2013-11-20 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / ChangeLog
blob2bd67d0ef4954bb1d09c588e181f5689c6eb1c22
1 2013-11-20  Richard Biener  <rguenther@suse.de>
3         PR lto/59035
4         * lto-opts.c (lto_write_options): Write defaults only if
5         they were not explicitely specified.  Also write
6         -ffp-contract default.
7         * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
8         conservatively.
9         (run_gcc): Pass through -ffp-contract.
11 2013-11-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
13         * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
15 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
17         * gcc/config/aarch64/aarch64-builtins.c
18         (aarch64_simd_itype): Remove.
19         (aarch64_simd_builtin_datum): Remove itype, add
20         qualifiers pointer.
21         (VAR1): Use qualifiers.
22         (aarch64_build_scalar_type): New.
23         (aarch64_build_vector_type): Likewise.
24         (aarch64_build_type): Likewise.
25         (aarch64_init_simd_builtins): Refactor, remove special cases,
26         consolidate main loop.
27         (aarch64_simd_expand_args): Likewise.
29 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
31         PR c/53001
32         * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
34 2013-11-19  Miro Kropacek  <miro.kropacek@gmail.com>
36         * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
38 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
40         * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
41         to "vec<>" instances.
42         (build_pretty_printer): Register the vec<>* prettyprinter.
44 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
46         * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
47         (GdbSubprinter.handles_type): New.
48         (GdbSubprinterTypeList): New subclass of GdbSubprinter.
49         (GdbSubprinterRegex): New subclass of GdbSubprinter.
50         (GdbPrettyPrinters.add_printer): Remove in favor of...
51         (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
52         (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
53         (GdbPrettyPrinters.__call__): Update search for subprinter
54         to use handles_type method.
55         (build_pretty_printer): Update registration of subprinters to
56         use the new API above, supporting multiple spelling of each type,
57         and allowing for future regex-based subprinters.
59 2013-11-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
61         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
62         V16QI vector splat case for little endian.
64 2013-11-19  Jeff Law  <law@redhat.com>
66         * tree-ssa-threadedge.c (thread_across_edge): After threading
67         through a joiner, allow threading a normal block requiring duplication.
69         * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
70         jump threading requests that would muck up the loop structures.
72         * tree-ssa-threadupdate.c: Fix trailing whitespace.
73         * tree-ssa-threadupdate.h: Likewise.
75 2013-11-19  Mike Stump  <mikestump@comcast.net>
77         * gdbinit.in: Add pmz to print out mpz values.
79 2013-11-20  Jan Hubicka  <jh@suse.cz>
81         * common.opt (ffat-lto-objects): Disable by default.
82         * doc/invoke.texi (fat-lto-objects): Update documentation.
83         * opts.c: Enable fat-lto-objects on lto plugin disable setups.
85 2013-11-19  Martin Jambor  <mjambor@suse.cz>
87         PR rtl-optimization/59099
88         * ira.c (find_moveable_pseudos): Put back various analyses from ira()
89         here.
90         (ira): Move init_reg_equiv and call to
91         split_live_ranges_for_shrink_wrap up, remove analyses around call
92         to find_moveable_pseudos.
94 2013-11-20  Alan Modra  <amodra@gmail.com>
96         * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
97         * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
98         to strict alignment on older processors when little-endian.
99         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
100         for ELFv2.
102 2013-11-19  Teresa Johnson  <tejohnson@google.com>
104         * common/config/i386/i386-common.c: Enable
105         -freorder-blocks-and-partition at -O2 and up for x86.
106         * doc/invoke.texi: Update -freorder-blocks-and-partition default.
107         * opts.c (finish_options): Only warn if
108         -freorder-blocks-and-partition was set on command line.
110 2013-11-19  Sriraman Tallam  <tmsriram@google.com>
112         * final.c (final_scan_insn): Emit a label for the split
113         cold function part.  Label name is formed by suffixing
114         the original function name with "cold".
116 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
118         * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
119         (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
120         (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
121         (EXIT_BLOCK_PTR_FOR_FN): ...this.
122         (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
123         cfun be explicit.
124         (EXIT_BLOCK_PTR): Likewise.
125         (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
126         (FOR_ALL_BB_FN): Update for renaming of
127         "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
129         * cfg.c (init_flow): Likewise.
130         (check_bb_profile): Likewise.
131         * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
132         * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
133         * cfghooks.c (account_profile_record): Likewise.
134         * cfgloop.c (init_loops_structure): Likewise.
135         * cgraphbuild.c (record_eh_tables): Likewise.
136         (compute_call_stmt_bb_frequency): Likewise.
137         * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
138         * lto-streamer-in.c (input_cfg): Likewise.
139         * predict.c (maybe_hot_frequency_p): Likewise.
140         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
141         * tree-inline.c (initialize_cfun): Likewise.
142         (copy_cfg_body): Likewise.
143         (copy_body): Likewise.
144         (tree_function_versioning): Likewise.
146         * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
147         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
148         (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
149         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
150         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
151         (connect_traces): Likewise.
152         (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
153         (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
154         (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
155         macro.
156         (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
157         EXIT_BLOCK_PTR.
158         (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
159         (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
160         (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
161         (rotate_loop): Likewise.
162         * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
163         * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
164         EXIT_BLOCK_PTR.
165         (alloc_aux_for_edges): Likewise.
166         (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
167         (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
168         EXIT_BLOCK_PTR.
169         (compact_blocks): Likewise.
170         (clear_edges): Likewise.
171         * cfganal.c (single_pred_before_succ_order): Remove usage of
172         ENTRY_BLOCK_PTR macro.
173         (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
174         (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
175         (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
176         (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
177         (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
178         EXIT_BLOCK_PTR.
179         (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
180         (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
181         EXIT_BLOCK_PTR.
182         (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
183         (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
184         (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
185         (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
186         (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
187         (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
188         EXIT_BLOCK_PTR.
189         (print_edge_list): Likewise.
190         (create_edge_list): Likewise.
191         (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
192         (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
193         EXIT_BLOCK_PTR.
194         * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
195         macro.
196         (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
197         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
198         * cfgcleanup.c (delete_unreachable_blocks): Likewise.
199         (try_optimize_cfg): Likewise.
200         (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
201         (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
202         (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
203         (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
204         (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
205         (try_forward_edges): Likewise.
206         (try_simplify_condjump): Likewise.
207         * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
208         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
209         (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
210         (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
211         EXIT_BLOCK_PTR.
212         (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
213         (expand_gimple_tailcall): Likewise.
214         * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
215         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
216         (tidy_fallthru_edges): Likewise.
217         (verify_flow_info): Likewise.
218         * cfgloop.c (flow_bb_inside_loop_p): Likewise.
219         (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
220         (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
221         (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
222         (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
223         (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
224         (get_loop_body_in_dom_order): Likewise.
225         (get_loop_body): Likewise.
226         * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
227         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
228         * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
229         macro.
230         (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
231         (fix_bb_placement): Likewise.
232         * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
233         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
234         (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
235         (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
236         EXIT_BLOCK_PTR.
237         (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
238         (cfg_layout_can_merge_blocks_p): Remove uses of macros:
239         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
240         (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
241         macro.
242         (fixup_fallthru_exit_predecessor): Remove uses of macros:
243         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
244         (fixup_reorder_chain): Likewise.
245         (relink_block_chain): Likewise.
246         (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
247         (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
248         (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
249         (force_one_exit_fallthru): Likewise.
250         (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
251         EXIT_BLOCK_PTR.
252         (rtl_verify_edges): Likewise.
253         (commit_edge_insertions): Likewise.
254         (commit_one_edge_insertion): Likewise.
255         (rtl_split_edge): Likewise.
256         (force_nonfallthru_and_redirect): Likewise.
257         (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
258         (skip_insns_after_block): Likewise.
259         (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
260         EXIT_BLOCK_PTR.
261         (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
262         (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
263         EXIT_BLOCK_PTR.
264         (contains_no_active_insn_p): Likewise.
265         (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
266         (entry_of_function): Likewise.
267         (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
268         (fixup_new_cold_bb): Likewise.
269         (patch_jump_insn): Likewise.
270         (try_redirect_by_replacing_jump): Likewise.
271         (block_label): Likewise.
272         (could_fall_through): Likewise.
273         (can_fallthru): Likewise.
274         * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
275         ENTRY_BLOCK_PTR macro.
276         (rebuild_cgraph_edges): Likewise.
277         * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
278         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
279         (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
280         * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
281         (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
282         (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
283         (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
284         (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
285         macro.
286         (reg_nonzero_bits_for_combine): Likewise.
287         (set_nonzero_bits_and_sign_copies): Likewise.
288         (combine_instructions): Likewise.
289         * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
290         EXIT_BLOCK_PTR.
291         (bypass_conditional_jumps): Likewise.
292         (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
293         (find_implicit_sets): Likewise.
294         (cprop_jump): Likewise.
295         * cse.c (cse_cc_succs): Likewise.
296         (cse_find_path): Likewise.
297         * df-problems.c (df_lr_confluence_0): Likewise.
298         * df-scan.c (df_entry_block_defs_collect): Remove usage of
299         ENTRY_BLOCK_PTR macro.
300         (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
301         * dominance.c (iterate_fix_dominators): Remove usage of
302         ENTRY_BLOCK_PTR macro.
303         (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
304         (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
305         (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
306         EXIT_BLOCK_PTR.
307         (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
308         macro.
309         (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
310         EXIT_BLOCK_PTR.
311         * domwalk.c (cmp_bb_postorder): Likewise.
312         * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
313         * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
314         macro.
315         (sjlj_emit_function_enter): Likewise.
316         * final.c (compute_alignments): Likewise.
317         * function.c (thread_prologue_and_epilogue_insns): Remove uses of
318         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
319         (reposition_prologue_and_epilogue_notes): Remove usage of
320         EXIT_BLOCK_PTR macro.
321         (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
322         EXIT_BLOCK_PTR.
323         (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
324         (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
325         * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
326         (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
327         (compute_code_hoist_vbeinout): Likewise.
328         (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
329         (pre_expr_reaches_here_p_work): Likewise.
330         * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
331         (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
332         EXIT_BLOCK_PTR.
333         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
334         ENTRY_BLOCK_PTR macro.
335         * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
336         macro.
337         * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
338         ENTRY_BLOCK_PTR macro.
339         * graphite-scop-detection.c (build_scops): Likewise.
340         (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
341         (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
342         * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
343         macro.
344         (unlink_bb_notes): Likewise.
345         (create_check_block_twin): Likewise.
346         (init_before_recovery): Likewise.
347         (sched_extend_bb): Likewise.
348         (priority): Likewise.
349         * hw-doloop.c (reorder_loops): Likewise.
350         (discover_loop): Likewise.
351         * ifcvt.c (dead_or_predicable): Remove uses of macros:
352         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
353         (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
354         (block_has_only_trap): Likewise.
355         (cond_exec_find_if_block): Likewise.
356         (merge_if_block): Likewise.
357         * ipa-inline-analysis.c (param_change_prob): Remove usage of
358         ENTRY_BLOCK_PTR macro.
359         (record_modified): Likewise.
360         * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
361         EXIT_BLOCK_PTR macro.
362         (local_pure_const): Likewise.
363         * ipa-split.c (split_function): Remove uses of macros:
364         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
365         (find_split_points): Likewise.
366         (consider_split): Likewise.
367         (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
368         (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
369         * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
370         * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
371         * ira-emit.c (entered_from_non_parent_p): Remove usage of
372         ENTRY_BLOCK_PTR macro.
373         (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
374         * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
375         * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
376         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
377         * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
378         macro.
379         (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
380         EXIT_BLOCK_PTR.
381         (compute_farthest): Likewise.
382         (compute_available): Likewise.
383         (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
384         (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
385         EXIT_BLOCK_PTR.
386         (compute_earliest): Likewise.
387         (compute_antinout_edge): Likewise.
388         * loop-iv.c (simplify_using_initial_values): Remove usage of
389         ENTRY_BLOCK_PTR macro.
390         * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
391         macro.
392         * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
393         macro.
394         * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
395         macro.
396         * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
397         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
398         * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
399         macro.
400         * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
401         macro.
402         * lto-streamer-out.c (output_cfg): Likewise.
403         * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
404         EXIT_BLOCK_PTR.
405         (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
406         * mode-switching.c (optimize_mode_switching): Likewise.
407         (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
408         * modulo-sched.c (rest_of_handle_sms): Likewise.
409         (canon_loop): Likewise.
410         * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
411         * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
412         of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
413         * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
414         macro.
415         (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
416         (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
417         (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
418         (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
419         (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
420         (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
421         (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
422         (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
423         (gimple_predict_edge): Likewise.
424         (probably_never_executed): Likewise.
425         * profile.c (find_spanning_tree): Remove uses of macros:
426         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
427         (branch_prob): Likewise.
428         (compute_branch_probabilities): Likewise.
429         (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
430         (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
431         (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
432         (set_bb_counts): Likewise.
433         (correct_negative_edge_counts): Likewise.
434         (get_exec_counts): Likewise.
435         (instrument_values): Likewise.
436         (instrument_edges): Likewise.
437         * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
438         EXIT_BLOCK_PTR.
439         (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
440         (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
441         (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
442         (reg_to_stack): Likewise.
443         * regs.h (REG_N_SETS): Likewise.
444         * reload.c (find_dummy_reload): Likewise.
445         (combine_reloads): Likewise.
446         (push_reload): Likewise.
447         * reload1.c (has_nonexceptional_receiver): Remove usage of
448         EXIT_BLOCK_PTR macro.
449         * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
450         macro.
451         (find_basic_block): Likewise.
452         * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
453         (schedule_ebbs): Likewise.
454         * sched-int.h (sel_sched_p): Likewise.
455         * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
456         macro.
457         (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
458         (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
459         EXIT_BLOCK_PTR.
460         (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
461         (extend_rgns): Likewise.
462         (find_single_block_region): Likewise.
463         * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
464         ENTRY_BLOCK_PTR macro.
465         (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
466         (sel_create_recovery_block): Likewise.
467         (bb_ends_ebb_p): Likewise.
468         (sel_bb_end): Likewise.
469         (sel_bb_head): Likewise.
470         (free_lv_sets): Likewise.
471         (init_lv_sets): Likewise.
472         (tidy_control_flow): Likewise.
473         (maybe_tidy_empty_bb): Likewise.
474         * sel-sched-ir.h (_succ_iter_cond): Likewise.
475         (_succ_iter_start): Likewise.
476         (sel_bb_empty_or_nop_p): Likewise.
477         (get_loop_exit_edges_unique_dests): Likewise.
478         (inner_loop_header_p): Likewise.
479         * sel-sched.c (create_block_for_bookkeeping): Likewise.
480         (find_block_for_bookkeeping): Likewise.
481         * store-motion.c (remove_reachable_equiv_notes): Likewise.
482         (insert_store): Likewise.
483         * trans-mem.c (ipa_tm_transform_clone): Remove usage of
484         ENTRY_BLOCK_PTR macro.
485         (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
486         (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
487         (gate_tm_init): Likewise.
488         (tm_region_init): Likewise.
489         * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
490         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
491         (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
492         (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
493         EXIT_BLOCK_PTR.
494         (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
495         (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
496         EXIT_BLOCK_PTR.
497         (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
498         macro.
499         (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
500         EXIT_BLOCK_PTR.
501         (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
502         macro.
503         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
504         (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
505         (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
506         (build_gimple_cfg): Likewise.
507         (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
508         (gimple_can_merge_blocks_p): Likewise.
509         * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
510         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
511         * tree-complex.c (update_parameter_components): Remove usage of
512         ENTRY_BLOCK_PTR macro.
513         * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
514         EXIT_BLOCK_PTR macro.
515         * tree-inline.c (tree_function_versioning): Remove uses of macros:
516         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
517         (delete_unreachable_blocks_update_callgraph): Likewise.
518         (initialize_cfun): Likewise.
519         (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
520         (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
521         (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
522         * tree-into-ssa.c (update_ssa): Likewise.
523         (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
524         (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
525         (rewrite_into_ssa): Likewise.
526         (rewrite_debug_stmt_uses): Likewise.
527         * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
528         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
529         * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
530         ENTRY_BLOCK_PTR macro.
531         * tree-scalar-evolution.h (block_before_loop): Likewise.
532         * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
533         (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
534         EXIT_BLOCK_PTR.
535         (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
536         macro.
537         (propagate_dereference_distances): Remove uses of macros:
538         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
539         (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
540         macro.
541         * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
542         (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
543         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
544         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
545         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
546         (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
547         (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
548         (mark_control_dependent_edges_necessary): Remove uses of macros:
549         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
550         * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
551         ENTRY_BLOCK_PTR macro.
552         (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
553         * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
554         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
555         (calculate_live_on_exit): Likewise.
556         (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
557         (loe_visit_block): Likewise.
558         * tree-ssa-live.h (live_on_exit): Remove uses of macros:
559         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
560         (live_on_entry): Likewise.
561         * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
562         EXIT_BLOCK_PTR macro.
563         * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
564         ENTRY_BLOCK_PTR macro.
565         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
566         (bound_difference): Likewise.
567         * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
568         of EXIT_BLOCK_PTR macro.
569         * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
570         of ENTRY_BLOCK_PTR macro.
571         * tree-ssa-math-opts.c (register_division_in): Likewise.
572         * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
573         * tree-ssa-pre.c (compute_avail): Likewise.
574         (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
575         (insert): Remove usage of ENTRY_BLOCK_PTR macro.
576         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
577         (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
578         (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
579         EXIT_BLOCK_PTR.
580         (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
581         * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
582         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
583         (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
584         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
585         (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
586         * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
587         (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
588         (find_pdom): Likewise.
589         (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
590         * tree-stdarg.c (reachable_at_most_once): Likewise.
591         * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
592         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
593         (eliminate_tail_call): Likewise.
594         * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
595         macro.
596         (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
597         * var-tracking.c (vt_initialize): Remove uses of macros:
598         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
599         (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
600         (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
601         (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
602         EXIT_BLOCK_PTR.
603         * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
604         macro.
605         * config/bfin/bfin.c (hwloop_optimize): Likewise.
606         * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
607         of EXIT_BLOCK_PTR macro.
608         * config/arm/arm.c (require_pic_register): Remove usage of
609         ENTRY_BLOCK_PTR macro.
610         (arm_r3_live_at_start_p): Likewise.
611         (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
612         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
613         * config/frv/frv.c (frv_optimize_membar_global): Likewise.
614         * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
615         ENTRY_BLOCK_PTR macro.
616         * config/i386/i386.c (ix86_count_insn): Likewise.
617         (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
618         (ix86_pad_short_function): Likewise.
619         (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
620         (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
621         (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
622         (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
623         (ix86_expand_epilogue): Likewise.
624         * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
625         (ia64_expand_prologue): Likewise.
627 2013-11-19  Catherine Moore  <clm@codesourcery.com>
629         * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
630         * config/mips/mips.opt (mfix-rm7000): New option.
631         * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
632         * config/mips/mips.c (mips_reorg_process_insns): Disable
633         noreorder for TARGET_FIX_RM7000.
635 2013-11-19  Oleg Endo  <olegendo@gcc.gnu.org>
637         * config/sh/sh-c.c: Fix typo in include of file attribs.h.
639 2013-11-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
641         * config/arm/arm.c (arm_new_rtx_costs):
642         Handle narrow mode add-shifts properly.
643         * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
644         * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
645         Declare extern.
647 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
649         * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
651 2013-11-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
653         * config/rs6000/vector.md ("mov<mode>"): Do not call
654         rs6000_emit_le_vsx_move to move into or out of GPRs.
655         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
656         source and destination are not GPR hard regs.
658 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
660         * basic-block.h (n_edges_for_function): Rename macro to...
661         (n_edges_for_fn): ...this.
662         (n_edges): Eliminate macro as work towards making uses of
663         cfun be explicit.
665         * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
666         to "n_edges_for_fn".
668         * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
669         (clear_edges): Likewise.
670         (free_edge): Likewise.
671         * cfghooks.c (dump_flow_info): Likewise.
672         * cprop.c (is_too_expensive): Likewise.
673         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
674         * gcse.c (is_too_expensive): Likewise.
675         (prune_insertions_deletions): Likewise.
676         * mcf.c (create_fixup_graph): Likewise.
677         * sched-rgn.c (haifa_find_rgns): Likewise.
678         * tree-cfg.c (gimple_dump_cfg): Likewise.
679         * var-tracking.c (variable_tracking_main_1): Likewise.
681 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
683         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
684         length lines.
686 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
688         * config/aarch64/aarch64.md
689         (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
691 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
693         * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
695 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
697         * varasm.c (align_variable): Give error instead of warning for
698         unsupported alignment.
699         (assemble_noswitch_variable): Likewise.
701 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
703         * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
704         cb_file_change.
706 2013-11-19  Peter Bergner  <bergner@vnet.ibm.com>
708         * loop-doloop.c (doloop_optimize_loops): Remove unused
709         loop iterator argument from FOR_EACH_LOOP.
711 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
713         Convert gimple types from a union to C++ inheritance.
714         * Makefile.in (GIMPLE_H): Add dep on is-a.h.
715         * coretypes.h (union gimple_statement_d): Remove declaration.
716         (gimple): Convert from being a "union gimple_statement_d *"
717         to a "struct gimple_statement_base *".
718         (const_gimple): Likewise (with "const").
719         * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
720         (ggc_alloc_cleared_gimple_statement_stat): ...this.
721         * gimple-pretty-print.c (debug): Change parameter from a
722         "gimple_statement_d &" to a "gimple_statement_base &".
723         (debug): Change parameter from a "gimple_statement_d *" to
724         a "gimple_statement_base *".
725         * gimple-pretty-print.h (debug): Update declarations as above.
726         * gimple.c (gimple_alloc_stat): Update for renaming of
727         ggc_alloc_cleared_gimple_statement_d_stat to
728         ggc_alloc_cleared_gimple_statement_stat.
729         * gimple.h: Include "is-a.h" for use by is_a_helper
730         specializations in followup autogenerated patch.
731         (struct gimple statement_base): Make this type usable as a base
732         class by adding "desc", "tag" and "variable_size" to GTY, thus
733         using opting-in to gengtype's support for simple inheritance.
734         (gimple_statement_with_ops_base): Convert to a subclass of
735         gimple_statement_base, dropping initial "gsbase" field.  Note that
736         this type is abstract, with no GSS_ value, and thus no GTY tag value.
737         (gimple_statement_with_ops): Convert to a subclass of
738         gimple_statement_with_ops_base, dropping initial "opbase" field.
739         Add tag value to GTY marking.  Update marking of op field to
740         reflect how num_ops field is accessed via inheritance.
741         (gimple_statement_with_memory_ops_base): Convert to a subclass of
742         gimple_statement_with_ops_base, dropping initial "opbase" field.
743         Add tag value to GTY marking.
744         (gimple_statement_with_memory_ops): Convert to a subclass of
745         public gimple_statement_with_memory_ops_base, dropping initial
746         "membase" field.  Add tag value to GTY marking.  Update marking
747         of op field to reflect how num_ops field is accessed via inheritance.
748         (gimple_statement_call): Analogous changes that also update the
749         marking of the "u" union.
750         (gimple_statement_omp): Convert to a subclass of
751         gimple_statement_base, dropping initial "gsbase" field, adding
752         tag value to GTY marking.
753         (gimple_statement_bind): Likewise.
754         (gimple_statement_catch): Likewise.
755         (gimple_statement_eh_filter): Likewise.
756         (gimple_statement_eh_else): Likewise.
757         (gimple_statement_eh_mnt): Likewise.
758         (gimple_statement_phi): Likewise.
759         (gimple_statement_eh_ctrl): Likewise.
760         (gimple_statement_try): Likewise.
761         (gimple_statement_wce): Likewise.
762         (gimple_statement_asm): Convert to a subclass of
763         gimple_statement_with_memory_ops_base, dropping initial
764         "membase" field, adding tag value to GTY marking, and updating
765         marking of op field.
766         (gimple_statement_omp_critical): Convert to a subclass of
767         gimple_statement_omp, dropping initial "omp" field, adding tag
768         value to GTY marking.
769         (gimple_statement_omp_for): Likewise.
770         (gimple_statement_omp_parallel): Likewise.
771         (gimple_statement_omp_task): Convert to a subclass of
772         gimple_statement_omp_parallel, dropping initial "par" field,
773         adding tag value to GTY marking.
774         (gimple_statement_omp_sections): Convert to a subclass of
775         gimple_statement_omp, dropping initial "omp" field, adding
776         tag value to GTY marking.
777         (gimple_statement_omp_continue): Convert to a subclass of
778         gimple_statement_base, dropping initial "gsbase" field, adding
779         tag value to GTY marking.
780         (gimple_statement_omp_single): Convert to a subclass of
781         gimple_statement_omp, dropping initial "omp" field, adding
782         tag value to GTY marking.
783         (gimple_statement_omp_atomic_load): Convert to a subclass of
784         gimple_statement_base, dropping initial "gsbase" field, adding
785         tag value to GTY marking.
786         (gimple_statement_omp_atomic_store): Convert to a subclass of
787         gimple_statement_base, dropping initial "gsbase" field, adding
788         tag value to GTY marking.
789         (gimple_statement_transaction): Convert to a subclass of
790         gimple_statement_with_memory_ops_base, dropping initial "gsbase"
791         field, adding tag value to GTY marking.
792         (union gimple_statement_d): Remove.
793         * system.h (CONST_CAST_GIMPLE): Update to use
794         "struct gimple_statement_base *" rather than
795         "union gimple_statement_d *".
796         * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
797         gimple_statement_d to gimple_statement_base.
799         * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
800         (gimple_set_use_ops): Port from union to usage of as_a.
801         (gimple_set_vuse): Likewise.
802         (gimple_set_vdef): Likewise.
803         (gimple_call_internal_fn): Port from union to a static_cast,
804         given that the type has already been asserted.
805         (gimple_omp_body_ptr): Port from unchecked union usage to
806         a static_cast.
807         (gimple_omp_set_body): Likewise.
809         * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
810         gimple types to a true class hierarchy.
811         (update_call_edge_frequencies): Likewise.
812         (gsi_insert_seq_nodes_before): Likewise.
813         (gsi_insert_seq_nodes_after): Likewise.
814         (gsi_split_seq_after): Likewise.
815         (gsi_set_stmt): Likewise.
816         (gsi_split_seq_before): Likewise.
817         (gsi_remove): Likewise.
818         * gimple-iterator.h (gsi_one_before_end_p): Likewise.
819         (gsi_next): Likewise.
820         (gsi_prev): Likewise.
821         * gimple-pretty-print.c (dump_gimple_debug): Likewise.
822         * gimple-ssa.h (gimple_vuse_op): Likewise.
823         (gimple_vdef_op): Likewise.
824         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
825         * gimple-streamer-out.c (output_gimple_stmt): Likewise.
826         * gimple.c (gimple_set_code): Likewise.
827         (gimple_alloc_stat): Likewise.
828         (gimple_set_subcode): Likewise.
829         (gimple_build_call_internal_1): Likewise.
830         (gimple_check_failed): Likewise.
831         (gimple_call_flags): Likewise.
832         (gimple_set_bb): Likewise.
833         * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
834         (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
835         (is_a_helper <gimple_statement_call> (gimple)): Likewise.
836         (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
837         (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
838         (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
839         (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
840         (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
841         (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
842         (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
843         (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
844         (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
845         (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
846         (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
847         (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
848         (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
849         (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
850         (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
851         (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
852         (is_a_helper <gimple_statement_try> (gimple)): Likewise.
853         (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
854         (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
855         (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
856         (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
857         (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
858         (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
859         Likewise.
860         (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
861         Likewise.
862         (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
863         Likewise.
864         (is_a_helper <const gimple_statement_omp_atomic_store>
865         (const_gimple)): Likewise.
866         (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
867         Likewise.
868         (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
869         Likewise.
870         (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
871         Likewise.
872         (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
873         Likewise.
874         (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
875         Likewise.
876         (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
877         Likewise.
878         (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
879         Likewise.
880         (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
881         (is_a_helper <const gimple_statement_transaction> (const_gimple)):
882         Likewise.
883         (gimple_seq_last): Update for conversion of gimple types to a true
884         class hierarchy.
885         (gimple_seq_set_last): Likewise.
886         (gimple_code): Likewise.
887         (gimple_bb): Likewise.
888         (gimple_block): Likewise.
889         (gimple_set_block): Likewise.
890         (gimple_location): Likewise.
891         (gimple_location_ptr): Likewise.
892         (gimple_set_location): Likewise.
893         (gimple_no_warning_p): Likewise.
894         (gimple_set_no_warning): Likewise.
895         (gimple_set_visited): Likewise.
896         (gimple_visited_p): Likewise.
897         (gimple_set_plf): Likewise.
898         (gimple_plf): Likewise.
899         (gimple_set_uid): Likewise.
900         (gimple_uid): Likewise.
901         (gimple_init_singleton): Likewise.
902         (gimple_modified_p): Likewise.
903         (gimple_set_modified): Likewise.
904         (gimple_expr_code): Likewise.
905         (gimple_has_volatile_ops): Likewise.
906         (gimple_set_has_volatile_ops): Likewise.
907         (gimple_omp_subcode): Likewise.
908         (gimple_omp_set_subcode): Likewise.
909         (gimple_omp_return_set_nowait): Likewise.
910         (gimple_omp_section_set_last): Likewise.
911         (gimple_omp_parallel_set_combined_p): Likewise.
912         (gimple_omp_atomic_set_need_value): Likewise.
913         (gimple_omp_atomic_set_seq_cst): Likewise.
914         (gimple_num_ops): Likewise.
915         (gimple_set_num_ops): Likewise.
916         (gimple_assign_nontemporal_move_p): Likewise.
917         (gimple_assign_set_nontemporal_move): Likewise.
918         (gimple_assign_rhs_code): Likewise.
919         (gimple_assign_set_rhs_code): Likewise.
920         (gimple_call_internal_p): Likewise.
921         (gimple_call_with_bounds_p): Likewise.
922         (gimple_call_set_with_bounds): Likewise.
923         (gimple_call_set_tail): Likewise.
924         (gimple_call_tail_p): Likewise.
925         (gimple_call_set_return_slot_opt): Likewise.
926         (gimple_call_return_slot_opt_p): Likewise.
927         (gimple_call_set_from_thunk): Likewise.
928         (gimple_call_from_thunk_p): Likewise.
929         (gimple_call_set_va_arg_pack): Likewise.
930         (gimple_call_va_arg_pack_p): Likewise.
931         (gimple_call_set_nothrow): Likewise.
932         (gimple_call_set_alloca_for_var): Likewise.
933         (gimple_call_alloca_for_var_p): Likewise.
934         (gimple_call_copy_flags): Likewise.
935         (gimple_cond_code): Likewise.
936         (gimple_cond_set_code): Likewise.
937         (gimple_cond_make_false): Likewise.
938         (gimple_cond_make_true): Likewise.
939         (gimple_asm_volatile_p): Likewise.
940         (gimple_asm_set_volatile): Likewise.
941         (gimple_asm_set_input): Likewise.
942         (gimple_asm_input_p): Likewise.
943         (gimple_try_kind): Likewise.
944         (gimple_try_set_kind): Likewise.
945         (gimple_try_catch_is_cleanup): Likewise.
946         (gimple_try_set_catch_is_cleanup): Likewise.
947         (gimple_wce_cleanup_eh_only): Likewise.
948         (gimple_wce_set_cleanup_eh_only): Likewise.
949         (gimple_debug_bind_p): Likewise.
950         (gimple_debug_source_bind_p): Likewise.
951         (gimple_omp_for_set_kind): Likewise.
952         (gimple_omp_for_set_combined_p): Likewise.
953         (gimple_omp_for_set_combined_into_p): Likewise.
954         (gimple_omp_target_set_kind): Likewise.
955         (gimple_transaction_subcode): Likewise.
956         (gimple_transaction_set_subcode): Likewise.
957         (gimple_predict_predictor): Likewise.
958         (gimple_predict_set_predictor): Likewise.
959         (gimple_predict_outcome): Likewise.
960         (gimple_predict_set_outcome): Likewise.
961         (gimple_transaction_set_label): Likewise.
962         (gimple_transaction_set_body): Likewise.
963         (gimple_transaction_label_ptr): Likewise.
964         (gimple_transaction_label): Likewise.
965         (gimple_transaction_body_ptr): Likewise.
966         (gimple_omp_continue_set_control_use): Likewise.
967         (gimple_omp_continue_control_use_ptr): Likewise.
968         (gimple_omp_continue_control_use): Likewise.
969         (gimple_omp_continue_set_control_def): Likewise.
970         (gimple_omp_continue_control_def_ptr): Likewise.
971         (gimple_omp_continue_control_def): Likewise.
972         (gimple_omp_atomic_load_rhs_ptr): Likewise.
973         (gimple_omp_atomic_load_rhs): Likewise.
974         (gimple_omp_atomic_load_set_rhs): Likewise.
975         (gimple_omp_atomic_load_lhs_ptr): Likewise.
976         (gimple_omp_atomic_load_lhs): Likewise.
977         (gimple_omp_atomic_load_set_lhs): Likewise.
978         (gimple_omp_atomic_store_val_ptr): Likewise.
979         (gimple_omp_atomic_store_val): Likewise.
980         (gimple_omp_atomic_store_set_val): Likewise.
981         (gimple_omp_for_cond): Likewise.
982         (gimple_omp_for_set_cond): Likewise.
983         (gimple_omp_sections_set_control): Likewise.
984         (gimple_omp_sections_control_ptr): Likewise.
985         (gimple_omp_sections_control): Likewise.
986         (gimple_omp_sections_set_clauses): Likewise.
987         (gimple_omp_sections_clauses_ptr): Likewise.
988         (gimple_omp_sections_clauses): Likewise.
989         (gimple_omp_teams_set_clauses): Likewise.
990         (gimple_omp_teams_clauses_ptr): Likewise.
991         (gimple_omp_teams_clauses): Likewise.
992         (gimple_omp_target_set_data_arg): Likewise.
993         (gimple_omp_target_data_arg_ptr): Likewise.
994         (gimple_omp_target_data_arg): Likewise.
995         (gimple_omp_target_set_child_fn): Likewise.
996         (gimple_omp_target_child_fn_ptr): Likewise.
997         (gimple_omp_target_child_fn): Likewise.
998         (gimple_omp_target_set_clauses): Likewise.
999         (gimple_omp_target_clauses_ptr): Likewise.
1000         (gimple_omp_target_clauses): Likewise.
1001         (gimple_omp_single_set_clauses): Likewise.
1002         (gimple_omp_single_clauses_ptr): Likewise.
1003         (gimple_omp_single_clauses): Likewise.
1004         (gimple_omp_task_set_arg_align): Likewise.
1005         (gimple_omp_task_arg_align_ptr): Likewise.
1006         (gimple_omp_task_arg_align): Likewise.
1007         (gimple_omp_task_set_arg_size): Likewise.
1008         (gimple_omp_task_arg_size_ptr): Likewise.
1009         (gimple_omp_task_arg_size): Likewise.
1010         (gimple_omp_task_set_copy_fn): Likewise.
1011         (gimple_omp_task_copy_fn_ptr): Likewise.
1012         (gimple_omp_task_copy_fn): Likewise.
1013         (gimple_omp_task_set_data_arg): Likewise.
1014         (gimple_omp_task_data_arg_ptr): Likewise.
1015         (gimple_omp_task_data_arg): Likewise.
1016         (gimple_omp_task_set_child_fn): Likewise.
1017         (gimple_omp_task_child_fn_ptr): Likewise.
1018         (gimple_omp_task_child_fn): Likewise.
1019         (gimple_omp_task_set_clauses): Likewise.
1020         (gimple_omp_task_clauses_ptr): Likewise.
1021         (gimple_omp_task_clauses): Likewise.
1022         (gimple_omp_parallel_set_data_arg): Likewise.
1023         (gimple_omp_parallel_data_arg_ptr): Likewise.
1024         (gimple_omp_parallel_data_arg): Likewise.
1025         (gimple_omp_parallel_set_child_fn): Likewise.
1026         (gimple_omp_parallel_child_fn_ptr): Likewise.
1027         (gimple_omp_parallel_child_fn): Likewise.
1028         (gimple_omp_parallel_set_clauses): Likewise.
1029         (gimple_omp_parallel_clauses_ptr): Likewise.
1030         (gimple_omp_parallel_clauses): Likewise.
1031         (gimple_omp_for_set_pre_body): Likewise.
1032         (gimple_omp_for_pre_body_ptr): Likewise.
1033         (gimple_omp_for_set_incr): Likewise.
1034         (gimple_omp_for_incr_ptr): Likewise.
1035         (gimple_omp_for_incr): Likewise.
1036         (gimple_omp_for_set_final): Likewise.
1037         (gimple_omp_for_final_ptr): Likewise.
1038         (gimple_omp_for_final): Likewise.
1039         (gimple_omp_for_set_initial): Likewise.
1040         (gimple_omp_for_initial_ptr): Likewise.
1041         (gimple_omp_for_initial): Likewise.
1042         (gimple_omp_for_set_index): Likewise.
1043         (gimple_omp_for_index_ptr): Likewise.
1044         (gimple_omp_for_index): Likewise.
1045         (gimple_omp_for_collapse): Likewise.
1046         (gimple_omp_for_set_clauses): Likewise.
1047         (gimple_omp_for_clauses_ptr): Likewise.
1048         (gimple_omp_for_clauses): Likewise.
1049         (gimple_omp_critical_set_name): Likewise.
1050         (gimple_omp_critical_name_ptr): Likewise.
1051         (gimple_omp_critical_name): Likewise.
1052         (gimple_eh_dispatch_set_region): Likewise.
1053         (gimple_eh_dispatch_region): Likewise.
1054         (gimple_resx_set_region): Likewise.
1055         (gimple_resx_region): Likewise.
1056         (gimple_phi_set_arg): Likewise.
1057         (gimple_phi_arg): Likewise.
1058         (gimple_phi_set_result): Likewise.
1059         (gimple_phi_result_ptr): Likewise.
1060         (gimple_phi_result): Likewise.
1061         (gimple_phi_num_args): Likewise.
1062         (gimple_phi_capacity): Likewise.
1063         (gimple_wce_set_cleanup): Likewise.
1064         (gimple_wce_cleanup_ptr): Likewise.
1065         (gimple_try_set_cleanup): Likewise.
1066         (gimple_try_set_eval): Likewise.
1067         (gimple_try_cleanup_ptr): Likewise.
1068         (gimple_try_eval_ptr): Likewise.
1069         (gimple_eh_else_set_e_body): Likewise.
1070         (gimple_eh_else_set_n_body): Likewise.
1071         (gimple_eh_else_e_body_ptr): Likewise.
1072         (gimple_eh_else_n_body_ptr): Likewise.
1073         (gimple_eh_must_not_throw_set_fndecl): Likewise.
1074         (gimple_eh_must_not_throw_fndecl): Likewise.
1075         (gimple_eh_filter_set_failure): Likewise.
1076         (gimple_eh_filter_set_types): Likewise.
1077         (gimple_eh_filter_failure_ptr): Likewise.
1078         (gimple_eh_filter_types_ptr): Likewise.
1079         (gimple_eh_filter_types): Likewise.
1080         (gimple_catch_set_handler): Likewise.
1081         (gimple_catch_set_types): Likewise.
1082         (gimple_catch_handler_ptr): Likewise.
1083         (gimple_catch_types_ptr): Likewise.
1084         (gimple_catch_types): Likewise.
1085         (gimple_asm_string): Likewise.
1086         (gimple_asm_set_label_op): Likewise.
1087         (gimple_asm_label_op): Likewise.
1088         (gimple_asm_set_clobber_op): Likewise.
1089         (gimple_asm_clobber_op): Likewise.
1090         (gimple_asm_set_output_op): Likewise.
1091         (gimple_asm_output_op_ptr): Likewise.
1092         (gimple_asm_output_op): Likewise.
1093         (gimple_asm_set_input_op): Likewise.
1094         (gimple_asm_input_op_ptr): Likewise.
1095         (gimple_asm_input_op): Likewise.
1096         (gimple_asm_nlabels): Likewise.
1097         (gimple_asm_nclobbers): Likewise.
1098         (gimple_asm_noutputs): Likewise.
1099         (gimple_asm_ninputs): Likewise.
1100         (gimple_bind_set_block): Likewise.
1101         (gimple_bind_block): Likewise.
1102         (gimple_bind_add_seq): Likewise.
1103         (gimple_bind_add_stmt): Likewise.
1104         (gimple_bind_set_body): Likewise.
1105         (gimple_bind_body_ptr): Likewise.
1106         (gimple_bind_append_vars): Likewise.
1107         (gimple_bind_set_vars): Likewise.
1108         (gimple_bind_vars): Likewise.
1109         (gimple_call_clobber_set): Likewise.
1110         (gimple_call_use_set): Likewise.
1111         (gimple_call_set_internal_fn): Likewise.
1112         (gimple_call_set_fntype): Likewise.
1113         (gimple_call_fntype): Likewise.
1114         (gimple_omp_return_lhs_ptr): Likewise.
1115         (gimple_omp_return_lhs): Likewise.
1116         (gimple_omp_return_set_lhs): Likewise.
1117         (gimple_omp_taskreg_set_data_arg): Likewise.
1118         (gimple_omp_taskreg_data_arg_ptr): Likewise.
1119         (gimple_omp_taskreg_data_arg): Likewise.
1120         (gimple_omp_taskreg_set_child_fn): Likewise.
1121         (gimple_omp_taskreg_child_fn_ptr): Likewise.
1122         (gimple_omp_taskreg_child_fn): Likewise.
1123         (gimple_omp_taskreg_set_clauses): Likewise.
1124         (gimple_omp_taskreg_clauses_ptr): Likewise.
1125         (gimple_omp_taskreg_clauses): Likewise.
1126         (gimple_vuse): Likewise.
1127         (gimple_vdef): Likewise.
1128         (gimple_vuse_ptr): Likewise.
1129         (gimple_vdef_ptr): Likewise.
1130         * tree-inline.c (copy_debug_stmt): Likewise.
1131         * tree-phinodes.c (make_phi_node): Likewise.
1133         * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
1134         (is_a_helper <gimple_statement_with_ops>::test): New.
1135         (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
1136         (is_a_helper <gimple_statement_with_memory_ops>::test): New.
1138         * gimple-streamer-in.c (input_gimple_stmt): Port from union
1139         access to use of as_a.
1140         * gimple.c (gimple_build_asm_1): Likewise.
1141         (gimple_build_try): Likewise.  Also, return a specific subclass
1142         rather than just gimple.
1143         (gimple_build_resx): Port from union access to use of as_a.
1144         (gimple_build_eh_dispatch): Likewise.
1145         (gimple_build_omp_for): Likewise.  Also, convert allocation of iter
1146         now that gengtype no longer provides a typed allocator function.
1147         (gimple_copy): Likewise.
1148         * gimple.h (gimple_build_try): Return a specific subclass rather
1149         than just gimple.
1150         * gimplify.c (gimplify_cleanup_point_expr): Replace union access
1151         with subclass access by making use of new return type of
1152         gimple_build_try.
1153         * tree-phinodes.c: (allocate_phi_node): Return a
1154         "gimple_statement_phi *" rather than just a gimple.
1155         (resize_phi_node): Likewise.
1156         (make_phi_node): Replace union access with subclass access by
1157         making use of new return type of allocate_phi_node.
1158         (reserve_phi_args_for_new_edge): Replace union access with as_a.
1159         (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
1160         than just a gimple.
1161         (remove_phi_args): Update for change to remove_phi_arg_num.
1163         * gdbhooks.py (GimplePrinter.to_string): Update lookup of
1164         code field to reflect inheritance, rather than embedding of
1165         the base gimple type.
1167 2013-11-19  Richard Biener  <rguenther@suse.de>
1169         * cfgloop.h (struct loop_iterator): C++-ify, add constructor
1170         and destructor and make fel_next a member function.
1171         (fel_next): Transform into ...
1172         (loop_iterator::next): ... this.
1173         (fel_init): Transform into ...
1174         (loop_iterator::loop_iterator): ... this.
1175         (loop_iterator::~loop_iterator): New.
1176         (FOR_EACH_LOOP): Remove loop-iterator argument.
1177         (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
1178         * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
1179         graphite-clast-to-gimple.c, graphite-scop-detection.c,
1180         graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
1181         loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
1182         modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
1183         tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
1184         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
1185         tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
1186         tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
1187         tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
1188         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
1189         uses of FOR_EACH_LOOP and remove loop_iterator variables.  Replace
1190         FOR_EACH_LOOP_BREAK with break.
1192 2013-11-19  Richard Biener  <rguenther@suse.de>
1194         PR tree-optimization/59164
1195         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
1196         Uncomment assert.
1197         * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
1198         whether we can create an epilogue loop to reflect thecases where
1199         we create one.
1201 2013-11-19  Andrew MacLeod  <amacleod@redhat.com>
1203         * graphite-sese-to-poly.c: Include expr.h.
1205 2013-11-19  Richard Biener  <rguenther@suse.de>
1207         PR middle-end/58956
1208         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
1209         loads into stmts that may clobber it.
1211 2013-11-19  Bernd Schmidt  <bernds@codesourcery.com>
1213         * cgraphunit.c (symtab_terminator): New variable.
1214         (queued_nodes): Renamed from first.  Use symtab_terminator as
1215         initializer.
1216         (analyze_functions): Adjust accordingly.
1217         (cgraph_process_new_functions): Return void.
1218         * cgraph.h (cgraph_process_new_functions): Adjust declaration.
1220 2013-11-19  Marek Polacek  <polacek@redhat.com>
1222         * opts.c (common_handle_option): Add -fsanitize=null option.
1223         Turn off -fdelete-null-pointer-checks option when doing the
1224         NULL pointer checking.
1225         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
1226         * tree-pass.h (make_pass_ubsan): Declare.
1227         (make_pass_sanopt): Declare.
1228         * timevar.def (TV_TREE_UBSAN): New timevar.
1229         * passes.def: Add pass_sanopt and pass_ubsan.
1230         * ubsan.h (ubsan_null_ckind): New enum.
1231         (ubsan_mismatch_data): New struct.
1232         (ubsan_expand_null_ifn): Declare.
1233         (ubsan_create_data): Adjust declaration.
1234         (ubsan_type_descriptor): Likewise.
1235         * asan.c: Include "ubsan.h".
1236         (pass_data_sanopt): New pass.
1237         (execute_sanopt): New function.
1238         (gate_sanopt): Likewise.
1239         (make_pass_sanopt): Likewise.
1240         (class pass_sanopt): New class.
1241         * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
1242         gimple-iterator.h and cfgloop.h.
1243         (PROB_VERY_UNLIKELY): Define.
1244         (tree_type_map_hash): New function.
1245         (ubsan_type_descriptor): Add new parameter.
1246         Improve type name generation.
1247         (ubsan_create_data): Add new parameter.  Add pointer data into
1248         ubsan structure.
1249         (ubsan_expand_null_ifn): New function.
1250         (instrument_member_call): Likewise.
1251         (instrument_mem_ref): Likewise.
1252         (instrument_null): Likewise.
1253         (ubsan_pass): Likewise.
1254         (gate_ubsan): Likewise.
1255         (make_pass_ubsan): Likewise.
1256         (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
1257         (class pass_ubsan): New class.
1258         (pass_data_ubsan): New pass.
1259         * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
1260         * internal-fn.c (expand_UBSAN_NULL): New function.
1261         * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
1262         even when !flag_toplevel_reorder.
1263         * internal-fn.def (UBSAN_NULL): New.
1265 2013-11-19  Jan Hubicka  <jh@suse.cz>
1267         * cgraph.c (cgraph_create_indirect_edge): Use
1268         get_polymorphic_call_info.
1269         * cgraph.h (cgraph_indirect_call_info): Add outer_type,
1270         maybe_in_construction and maybe_derived_type.
1271         * ipa-utils.h (ipa_polymorphic_call_context): New structure.
1272         (ipa_dummy_polymorphic_call_context): New global var.
1273         (possible_polymorphic_call_targets): Add context paramter.
1274         (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
1275         (possible_polymorphic_call_target_p): Likewise.
1276         (get_polymorphic_call_info): New function.
1277         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
1278         (add_type_duplicate): Remove forgotten debug output.
1279         (method_class_type): Add sanity check.
1280         (maybe_record_node): Add FINALP parameter.
1281         (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
1282         by info by get_binfo_at_offset.
1283         (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
1284         parameters; pass them to record-binfo.
1285         (polymorphic_call_target_d): Add context and FINAL.
1286         (polymorphic_call_target_hasher::hash): Hash context.
1287         (polymorphic_call_target_hasher::equal): Compare context.
1288         (free_polymorphic_call_targets_hash):
1289         (get_class_context): New function.
1290         (contains_type_p): New function.
1291         (get_polymorphic_call_info): New function.
1292         (walk_bases): New function.
1293         (possible_polymorphic_call_targets): Add context parameter; honnor it.
1294         (dump_possible_polymorphic_call_targets): Dump context.
1295         (possible_polymorphic_call_target_p): Add context.
1296         (update_type_inheritance_graph): Update comment.s
1297         (ipa_set_jf_known_type): Assert that compoentn type is known.
1298         (ipa_note_param_call): Do not tamper with offsets.
1299         (ipa_analyze_indirect_call_uses): When offset is being changed; clear
1300         outer type.
1301         (update_indirect_edges_after_inlining): Likewise.
1302         (ipa_write_indirect_edge_info): Stream new fields.
1303         (ipa_read_indirect_edge_info): Stream in new fields.
1305 2013-11-19  Jan Hubicka  <jh@suse.cz>
1307         * tree-pretty-print.c (dump_generic_node): Print class type of
1308         OBJ_TYPE_REF.
1310 2013-11-19  Joey Ye  <joey.ye@arm.com>
1312         * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
1313         * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
1314         for new option.
1315         * config/arm/arm.c (arm_option_override): By default disable
1316         -marm-pic-data-is-text-relative.
1317         (legitimize_pic_address): Use arm_pic_data_is_text_relative.
1318         (arm_assemble_integer): Likewise.
1319         * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
1320         New macro to initialize -marm-pic-data-is-text-relative.
1322 2013-11-19  Bin Cheng  <bin.cheng@arm.com>
1324         * tree-ssa-loop-ivopts.c (enum ainc_type): New.
1325         (address_cost_data): New field.
1326         (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
1327         Use ainc_costs for auto-increment rtx patterns.  Cleanup TWS.
1329 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
1331         * config/aarch64/aarch64.md: Remove v8type from all insns.
1333 2013-11-19  Richard Biener  <rguenther@suse.de>
1335         PR tree-optimization/57517
1336         * tree-predcom.c (combinable_refs_p): Verify the combination
1337         is always executed when the refs are.
1339 2013-11-19  Jeff Law  <law@redhat.com>
1341         * tree-ssa-threadupdate.c: Include ssa-iterators.h
1342         (copy_phi_arg_into_existing_phi): New function.
1343         (any_remaining_duplicated_blocks): Likewise.
1344         (ssa_fix_duplicate_block_edges): Handle multiple duplicated
1345         blocks on a jump threading path.
1347         * tree-ssa-threadupdate.c (thread_through_loop_header):  Do not
1348         thread through a joiner which has the latch edge.
1350 2013-11-19  Jan Hubicka  <jh@suse.cz>
1352         * md.texi (setmem): Document new parameter.
1353         * optabs.c (maybe_gen_insn): Support 9 operands.
1354         * builtins.c (determine_block_size): Add probable_max_size;
1355         support anti-ranges.
1356         (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
1357         probable_max_size.
1358         * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
1359         emit_block_move, clear_storage_hints, set_storage_via_setmem):
1360         Likewise.
1361         * expr.h (emit_block_move_hints, clear_storage_hints,
1362         set_storage_via_setmem): Update prototype.
1363         * i386.md (setmem, movmem patterns): Add 9th operand.
1364         * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
1365         * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
1366         argument; pass it to decide_alg.
1368 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
1370         * basic-block.h (n_basic_blocks_for_function): Rename macro to...
1371         (n_basic_blocks_for_fn): ...this.
1373         (n_basic_blocks): Eliminate macro as work towards making uses of
1374         cfun be explicit.
1376         * cfgloop.c (init_loops_structure): Update for renaming of
1377         "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
1378         * graph.c (draw_cfg_nodes_no_loops): Likewise.
1379         * ipa-utils.c (ipa_merge_profiles): Likewise.
1380         * lto-streamer-in.c (make_new_block): Likewise.
1381         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1382         (dump_function_to_file): Likewise.
1384         * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
1385         macro with "n_basic_blocks_for_fn (cfun)".
1386         * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
1387         (duplicate_computed_gotos): Likewise.
1388         (reorder_basic_blocks): Likewise.
1389         * bt-load.c (augment_live_range): Likewise.
1390         * cfg.c (expunge_block): Likewise.
1391         (compact_blocks): Likewise.
1392         * cfganal.c (single_pred_before_succ_order): Likewise.
1393         (compute_idf): Likewise.
1394         (flow_dfs_compute_reverse_init): Likewise.
1395         (pre_and_rev_post_order_compute): Likewise.
1396         (pre_and_rev_post_order_compute_fn): Likewise.
1397         (inverted_post_order_compute): Likewise.
1398         (post_order_compute): Likewise.
1399         (print_edge_list): Likewise.
1400         (find_unreachable_blocks): Likewise.
1401         (mark_dfs_back_edges): Likewise.
1402         * cfgcleanup.c (try_optimize_cfg): Likewise.
1403         (try_forward_edges): Likewise.
1404         * cfghooks.c (dump_flow_info): Likewise.
1405         * cfgloop.c (verify_loop_structure): Likewise.
1406         (get_loop_body): Likewise.
1407         (flow_loops_find): Likewise.
1408         * cfgloopmanip.c (add_loop): Likewise.
1409         (remove_path): Likewise.
1410         (find_path): Likewise.
1411         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
1412         (rtl_verify_bb_layout): Likewise.
1413         (entry_of_function): Likewise.
1414         (rtl_create_basic_block): Likewise.
1415         * coverage.c (coverage_compute_cfg_checksum): Likewise.
1416         * cprop.c (one_cprop_pass): Likewise.
1417         (is_too_expensive): Likewise.
1418         * df-core.c (df_compute_cfg_image): Likewise.
1419         (df_compact_blocks): Likewise.
1420         (df_worklist_dataflow_doublequeue): Likewise.
1421         * dominance.c (calculate_dominance_info): Likewise.
1422         (calc_dfs_tree): Likewise.
1423         (calc_dfs_tree_nonrec): Likewise.
1424         (init_dom_info): Likewise.
1425         * domwalk.c (cmp_bb_postorder): Likewise.
1426         * function.c (thread_prologue_and_epilogue_insns): Likewise.
1427         (generate_setjmp_warnings): Likewise.
1428         * fwprop.c (build_single_def_use_links): Likewise.
1429         * gcse.c (is_too_expensive): Likewise.
1430         (one_code_hoisting_pass): Likewise.
1431         (one_pre_gcse_pass): Likewise.
1432         * graphite.c (graphite_initialize): Likewise.
1433         * haifa-sched.c (haifa_sched_init): Likewise.
1434         * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
1435         * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
1436         * ira-build.c (ira_build): Likewise.
1437         * lcm.c (compute_nearerout): Likewise.
1438         (compute_available): Likewise.
1439         (compute_laterin): Likewise.
1440         (compute_antinout_edge): Likewise.
1441         * lra-lives.c (lra_create_live_ranges): Likewise.
1442         * lra.c (has_nonexceptional_receiver): Likewise.
1443         * mcf.c (create_fixup_graph): Likewise.
1444         * profile.c (branch_prob): Likewise.
1445         * reg-stack.c (convert_regs_2): Likewise.
1446         * regrename.c (regrename_analyze): Likewise.
1447         * reload1.c (has_nonexceptional_receiver): Likewise.
1448         * reorg.c (dbr_schedule): Likewise.
1449         * sched-deps.c (sched_deps_init): Likewise.
1450         * sched-ebb.c (schedule_ebbs): Likewise.
1451         * sched-rgn.c (extend_regions): Likewise.
1452         (schedule_insns): Likewise.
1453         (sched_rgn_init): Likewise.
1454         (extend_rgns): Likewise.
1455         (haifa_find_rgns): Likewise.
1456         * sel-sched-ir.c (recompute_rev_top_order): Likewise.
1457         (sel_recompute_toporder): Likewise.
1458         * sel-sched.c (run_selective_scheduling): Likewise.
1459         * store-motion.c (one_store_motion_pass): Likewise.
1460         (remove_reachable_equiv_notes): Likewise.
1461         * tracer.c (tracer): Likewise.
1462         (tail_duplicate): Likewise.
1463         * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
1464         (dump_cfg_stats): Likewise.
1465         (gimple_dump_cfg): Likewise.
1466         (create_bb): Likewise.
1467         (build_gimple_cfg): Likewise.
1468         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
1469         * tree-inline.c (optimize_inline_calls): Likewise.
1470         (fold_marked_statements): Likewise.
1471         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
1472         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
1473         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
1474         * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
1475         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
1476         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
1477         * tree-ssa-pre.c (do_pre): Likewise.
1478         (init_pre): Likewise.
1479         (compute_avail): Likewise.
1480         * tree-ssa-reassoc.c (init_reassoc): Likewise.
1481         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
1482         * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
1483         (init_worklist): Likewise.
1484         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
1485         * var-tracking.c (variable_tracking_main_1): Likewise.
1486         (vt_find_locations): Likewise.
1487         (vt_stack_adjustments): Likewise.
1488         * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
1489         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1491 2013-11-18  Jan Hubicka  <jh@suse.cz>
1493         * profile.c (compute_branch_probabilities): Do not sanity check
1494         run_max.
1496 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
1498         * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
1499         GET_MODE_PRECISION.
1500         * fold-const.c (fold_single_bit_test_into_sign_test)
1501         (fold_binary_loc):  Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
1503 2013-11-18  Teresa Johnson  <tejohnson@google.com>
1505         * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
1506         cfglayout after bb reordering.
1507         * passes.def: Move compgotos before bb reordering since it goes into
1508         cfglayout.
1510 2013-11-18  Bernd Schmidt  <bernds@codesourcery.com>
1512         * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
1513         * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
1514         static.
1515         (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
1516         make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
1517         pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
1518         * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
1519         * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
1520         Remove all_lto_gen_passes.
1521         * passes.c (pass_manager::dump_passes): Remove its use.
1522         (pass_manager::register_pass): Likewise.
1523         (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
1524         (pass_manager::pass_manager): Don't initialize or use it.
1525         (write_lto): New static function.
1526         (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
1527         instead of using all_lto_gen_passes.
1528         * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
1529         pass_ipa_lto_finish_out): Delete.
1530         * tree-pass.h (make_pass_ipa_lto_gimple_out,
1531         make_pass_ipa_lto_finish_out): Don't declare.
1533 2013-11-18  Jeff Law  <law@redhat.com>
1535         * tree-ssa-threadupdate.c (redirection_data): Record two
1536         duplicated blocks instead of just one.
1537         (local_info): Explain why we don't create a template for the
1538         second duplicated block in a thread path.
1539         (create_block_for_threading): Accept argument indicating array
1540         index into redirection_data to store its result.
1541         (lookup_redirection_data): Initialize both duplicate blocks.
1542         (ssa_create_duplicates): If a jump threading path needs multiple
1543         blocks duplicated, then duplicate them.
1544         (ssa_fix_duplicate_block_edges): Corresponding changes.
1545         (ssa_fixup_template_block, thread_single_edge):  Likewise.
1547 2013-11-18  Marek Polacek  <polacek@redhat.com>
1549         * doc/invoke.texi: Extend -fsanitize=undefined documentation.
1551 2013-11-18  Andrew Pinski <apinski@cavium.com>
1552             Steve Ellcey  <sellcey@mips.com>
1554         PR target/56552
1555         * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
1556         type restriction from equality_operator on conditonal move.
1557         (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
1558         (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
1560 2013-11-18  Jeff Law  <law@redhat.com>
1562         * tree-ssa-threadupdate.c: Fix file block comment.
1563         Fix minor indention issue.
1565 2013-11-18  Uros Bizjak  <ubizjak@gmail.com>
1567         * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
1568         ix86_address_subreg_operand.  Move subreg checks to
1569         ix86_validate_address_register.  Move address override check to
1570         ix86_legitimate_address_p.
1571         (ix86_validate_address_register): New function.
1572         (ix86_legitimate_address_p): Call ix86_validate_address_register
1573         to validate base and index registers.  Add address override check
1574         from ix86_decompose_address.
1575         (ix86_decompose_address): Remove.
1577 2013-11-18  Richard Biener  <rguenther@suse.de>
1579         PR tree-optimization/59125
1580         PR tree-optimization/54570
1581         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
1582         is not complete do not treat component-references with offset zero
1583         but different fields as equal.
1584         * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
1585         (compute_object_sizes): Apply TLC.  Propagate the constant
1586         results into all uses and fold their stmts.
1587         * passes.def (pass_all_optimizations): Move pass_object_sizes
1588         after the first pass_forwprop and before pass_fre.
1590 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1592         * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
1593         * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
1594         (tree_ctz): Remove cast to unsigned type.
1595         * builtins.c (fold_builtin_memory_op): Likewise.
1596         * dwarf2out.c (descr_info_loc): Likewise.
1597         * godump.c (go_output_typedef): Likewise.
1598         * omp-low.c (expand_omp_simd): Likewise.
1599         * stor-layout.c (excess_unit_span): Likewise.
1600         * tree-object-size.c (addr_object_size): Likewise.
1601         * tree-sra.c (analyze_all_variable_accesses): Likewise.
1602         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
1603         (simplify_rotate): Likewise.
1604         * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
1605         (handle_pointer_plus): Likewise.
1606         * tree-switch-conversion.c (check_range): Likewise.
1607         * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
1608         * tsan.c (instrument_builtin_call): Likewise.
1609         * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
1610         * trans-mem.c (tm_log_add): Likewise.
1611         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
1612         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
1613         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
1614         * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
1616 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1618         * tree.h (host_integerp, tree_low_cst): Delete.
1619         * tree.c (host_integerp, tree_low_cst): Delete.
1621 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1623         * expr.h: Update comments to refer to tree_to_[su]hwi rather
1624         than tree_low_cst.
1625         * fold-const.c (fold_binary_loc): Likewise.
1626         * expr.c (store_constructor): Use tree_to_uhwi rather than
1627         tree_low_cst.
1628         * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
1629         * stmt.c (emit_case_dispatch_table): Likewise.
1630         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
1632 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1634         * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
1635         config/aarch64/aarch64.c, config/alpha/predicates.md,
1636         config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
1637         config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
1638         config/mep/mep-pragma.c, config/mips/mips.c,
1639         config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
1640         dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
1641         function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
1642         predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
1643         tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
1644         tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
1645         tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
1646         tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
1647         tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
1648         Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
1650 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1652         * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
1653         config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
1654         config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
1655         coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
1656         fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
1657         predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
1658         tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
1659         tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
1660         tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
1661         tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
1662         Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
1664 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1666         * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
1667         * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
1669 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1671         * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
1672         than host_integerp.
1674 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1676         * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
1677         config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
1678         gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
1679         tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
1680         tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
1681         tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
1682         tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
1683         config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
1684         config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
1685         config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
1686         gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
1687         tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
1688         tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
1689         tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
1690         tree_fits_uhwi_p throughout.
1692 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1694         * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
1695         config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
1696         config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
1697         expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
1698         gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
1699         omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
1700         stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
1701         tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
1702         tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
1703         tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
1704         tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
1705         tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
1706         varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
1707         throughout.
1709 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1711         * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
1712         * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
1714 2013-11-18  Kirill Yukhin  <kirill.yukhin@intel.com>
1716         * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
1717         flag if it kills its address, not its post-increment.
1719 2013-11-18  Ilya Enkovich  <ilya.enkovich@intel.com>
1721         * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
1722         * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
1723         * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
1724         * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
1725         * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
1726         (gimple_call_with_bounds_p): New.
1727         (gimple_call_set_with_bounds): New.
1728         (gimple_call_num_nobnd_args): Remove.
1729         (gimple_call_nobnd_arg): Remove.
1730         * tree.h (CALL_WITH_BOUNDS_P): New.
1731         * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
1733 2013-11-18  Trevor Saunders  <tsaunders@mozilla.com>
1735         * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
1736         (symtab_node_name): Rename to symtab_node::name.
1737         (cgraph_node_asm_name): Remove.
1738         (varpool_node_asm_name): Remove.
1739         * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
1740         ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
1741         ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
1742         ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
1743         tree-ssa-structalias.c value-prof.c varpool.c Adjust.
1745 2013-11-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1747         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
1748         * config/arm/arm.c (arm_cortex_a53_tune): New.
1749         * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
1751 2013-11-12  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
1753         * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
1754         (case ${target}): Add bdver4.
1755         * config/i386/bdver3.md: Add bdver4.
1756         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
1757         -march=native recognize bdver4 processors.
1758         * config/i386/i386-c.c (ix86_target_macros_internal): Add
1759         bdver4 def_and_undef
1760         * config/i386/i386.c (struct processor_costs bdver4_cost): New.
1761         (m_BDVER4): New definition.
1762         (m_AMD_MULTIPLE): Includes m_BDVER4.
1763         (processor_target_table): Add bdver4 entry.
1764         (static const char *const cpu_names): Add bdver4 entry.
1765         (software_prefetching_beneficial_p): Add bdver3.
1766         (ix86_option_override_internal): Add bdver4 instruction sets.
1767         (ix86_issue_rate): Add bdver4.
1768         (ix86_adjust_cost): Add bdver4.
1769         (ia32_multipass_dfa_lookahead): Add bdver4.
1770         (enum processor_model): Add M_AMDFAM15H_BDVER4.
1771         (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
1772         (has_dispatch): Add bdver4.
1773         * config/i386/i386.h (TARGET_BDVER4): New definition.
1774         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
1775         (enum processor_type): Add PROCESSOR_BDVER4.
1776         * config/i386/i386.md (define_attr "cpu"): Add bdver4.
1777         * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
1778         * doc/extend.texi: Add details about bdver4.
1779         * doc/invoke.texi: Add details about bdver4. Add
1780         fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
1782 2013-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1784         * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
1785         sdmode_stack_slot also in little-endian mode.
1787 2013-11-17  Jan Hubicka  <jh@suse.cz>
1789         * doc/md.texi (setmem, movstr): Update documentation.
1790         * builtins.c (determine_block_size): New function.
1791         (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
1792         (expand_builtin_memset_args): Use it and pass it to
1793         set_storage_via_setmem.
1794         * expr.c (emit_block_move_via_movmem): Add min_size/max_size
1795         parameters; update call to expander.
1796         (emit_block_move_hints): Add min_size/max_size parameters.
1797         (clear_storage_hints): Likewise.
1798         (set_storage_via_setmem): Likewise.
1799         (clear_storage): Update.
1800         * expr.h (emit_block_move_hints, clear_storage_hints,
1801         set_storage_via_setmem): Update prototypes.
1802         * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
1803         (ix86_expand_movmem, ix86_expand_setmem): Remove.
1804         (ix86_expand_movmem, ix86_expand_setmem): Remove.
1805         * i386.md (movmem, setmem): Pass parameters.
1807 2013-11-17  Uros Bizjak  <ubizjak@gmail.com>
1809         PR target/59153
1810         * config/i386/i386.c (ix86_address_subreg_operand): Do not
1811         reject non-integer subregs.
1812         (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
1813         Move check for invalid x32 constant addresses ...
1814         (ix86_legitimate_address_p): ... here.
1816 2011-11-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1818         * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
1819         parameter and use it in REG_FRAME_RELATED_EXPR note.
1820         (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
1821         parameter.
1822         (rs6000_emit_prologue): Likewise, but for little endian VSX
1823         stores, pass the source register of the store instead.
1825 2013-11-17  Andrew MacLeod  <amacleod@redhat.com>
1827         * gimple.h: Reorder prototypes to match .c declaration order, and
1828         remove protyotypes for functions not in gimple.c.
1829         (LABEL): Move to tree-into-ssa.c.
1830         * gimple.c: Remove unused prototypes.
1831         (get_base_address): Move to tree.c.
1832         * tree.c (get_base_address): Relocate from gimple.c.
1833         * builtins.h (validate_gimple_arglist): Add prototype.
1834         * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
1835         * cfgexpand.h: New File.
1836         (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
1837         * tree.h (build_addr): Move to tree-nested.h.
1838         * tree-nested.h: New File.
1839         (build_addr, lower_nested_functions, insert_field_into_struct): Add
1840         prototypes.
1841         * tree-inline.h (estimated_stack_frame_size): Remove prototype.
1842         * ipa-inline-analysis.c: Include cfgexpand.h.
1843         * cgraphunit.c: Include tree-nested.h.
1844         * omp-low.c: Likewise.
1845         * tree-parloops.c: Likewise.
1846         * gimple-low.h: Likewise.
1847         * tree-profile.h: Likewise.
1848         * expr.c: Include cfgexpand.h.
1849         * tree-affine.c: Likewise.
1850         * tree-ssa.c: Likewise.
1851         * tree-ssa-loop-im.c: Include trans-mem.h.
1852         * tree-ssa-tail-merge.c: Likewise.
1853         * value-prof.c: Include builtins.h and tree-nested.h.
1854         * tree-into-ssa.c (LABEL): Define here.
1856 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
1858         * config/arc/arc.c (arc_predicate_delay_insns): New function.
1859         (pass_data_arc_predicate_delay_insns): New pass_data instance.
1860         (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
1861         (make_pass_arc_predicate_delay_insns): New function.
1862         (arc_init): Register pass_arc_predicate_delay_insns if
1863         flag_delayed_branch is active.
1865 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
1867         * config/arc/constraints.md (Rcq): Simplify register number test.
1869 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
1871         * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
1873 2013-11-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1875         * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
1876         is null.
1878 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
1880         * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
1881         * gimple-pretty-print.c (dump_omp_for): Add case for
1882         GF_OMP_FOR_KIND_CILKSIMD.
1883         * gimple.h (enum gf_mask): Restructure entries to add
1884         GF_OMP_FOR_KIND_CILKSIMD.
1885         * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
1886         (gimplify_omp_for): Handle CILK_SIMD.
1887         (gimplify_expr): Add ccase for CILK_SIMD.
1888         * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
1889         (build_outer_var_ref): Same.
1890         (check_omp_nesting_restrictions): Same.
1891         (lower_rec_input_clauses): Same.
1892         (lower_lastprivate_clauses): Same.
1893         (expand_omp_for): Same.
1894         (execute_expand_omp): Check flag_enable_cilkplus.
1895         (execute_lower_omp): Same.
1896         (diagnose_sb_0): Handle CILK_SIMD.
1897         (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
1898         (setjmp_or_longjmp_p): New.
1899         (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
1900         * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
1901         * tree.def: Add tree code for CILK_SIMD.
1903 2013-11-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1905         * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
1906         Remove.
1907         (altivec_vperm_<mode>): Revert earlier little endian change.
1908         (*altivec_vperm_<mode>_internal): Remove.
1909         (altivec_vperm_<mode>_uns): Revert earlier little endian change.
1910         (*altivec_vperm_<mode>_uns_internal): Remove.
1911         * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
1913 2013-11-15  Jeff Law  <law@redhat.com>
1915         * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
1916         has_abnormal_or_outgoing_edge.  Check for EH edges as well.
1917         * gimple-ssa-isolate-paths.c
1918         (find_implicit_erroneous_behaviour): Corresponding changes.
1919         Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
1920         (find_explicit_erroneous_behaviour): Likewise.
1922 2013-11-15  Jeff Law  <law@redhat.com>
1924         * ifcvt.c (find_cond_trap): Properly handle case where
1925         trap_bb == else_bb.
1927 2013-11-15  Andreas Schwab  <schwab@linux-m68k.org>
1929         * configure: Regenerate.
1931 2013-11-15  James Greenhalgh  <james.greenhalgh@arm.com>
1933         * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
1934         * config/aarch64/aarch64.md: Likewise, correct "type" attribute
1935         where it is incorrect or missing.
1937 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
1939         * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
1940         host_integerp test.
1941         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
1942         Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
1943         constant.
1944         * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
1945         pair with a TREE_CODE test and TREE_INT_CST_LOW.
1946         * tree-vect-generic.c (expand_vector_divmod): Likewise.
1948 2013-11-15  Richard Biener  <rguenther@suse.de>
1950         PR tree-optimization/50262
1951         * tree-ssa-alias.h (struct pt_solution): Split
1952         vars_contains_global into vars_contains_nonlocal,
1953         vars_contains_escaped and vars_contains_escaped_heap.
1954         * tree-ssa-structalias.c (label_visit): Expand comment.
1955         (handle_lhs_call): Adjust comment.
1956         (set_uids_in_ptset): Set the new flags appropriately.
1957         (pt_solution_set): Adjust.
1958         (pt_solution_set_var): Likewise.
1959         (pt_solution_ior_into): Likewise.
1960         (pt_solution_includes_global): Likewise.
1961         (pt_solutions_intersect_1): Optimize escaped handling.
1962         (compute_points_to_sets): Remove heap variable globalization.
1963         (ipa_escaped_pt): Adjust initializer.
1964         (pass_data_ipa_pta): Do not run TODO_update_ssa.
1965         * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
1966         * tree-ssa-alias.c (dump_points_to_solution): Likewise.
1968 2013-11-15  Richard Biener  <rguenther@suse.de>
1970         * tree-loop-distribution.c (tree_loop_distribution): Make sure
1971         to distribute all stores.
1973 2013-11-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1975         * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
1977 2013-11-15  Joseph Myers  <joseph@codesourcery.com>
1979         * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
1980         * configure.ac: Determine target_header_dir earlier.
1981         (--with-glibc-version): New configure option.
1982         Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
1983         gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
1984         * configure: Regenerate.
1985         * doc/install.texi (--enable-gnu-unique-object): Don't refer to
1986         native toolchains for default.
1987         (--with-glibc-version): Document.
1989 2013-11-15  Eric Botcazou  <ebotcazou@adacore.com>
1991         * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
1993 2013-11-15  Uros Bizjak  <ubizjak@gmail.com>
1995         * lto-streamer-in.c (input function): Call cgraph_create_node if
1996         cgraph_get_node failed.
1998 2013-11-14   Olivier Hainque  <hainque@adacore.com>
2000         * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
2001         defer allocation of DECL_IGNORED_P variables at toplevel unless really
2002         small.  Factorize size threshold computation from the existing one.
2003         (expand_used_vars): Refine comment.
2005 2013-11-14  Cong Hou  <congh@google.com>
2007         * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
2008         address field as it can be obtained from dr.  Rename the struct.
2009         * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
2010         steps of data references during sort.
2011         (vect_prune_runtime_alias_test_list): Adjust with the change to
2012         struct dr_with_seg_len.
2013         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
2014         Adjust with the change to struct dr_with_seg_len.
2016 2013-11-14  Jeff Law  <law@redhat.com>
2018         PR middle-end/59127
2019         * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
2020         * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
2021         * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
2022         (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
2023         edges, then ignore it.  If the statement exhibiting erroneous
2024         behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
2025         then we can not optimize.
2026         (find_explicit_erroneous_behaviour): Likewise.
2028 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
2030         * gimplify-me.h:  New file.  Add prototypes.
2031         * gimplify.h: Don't include gimple.h.
2032         (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
2033         Relocate from gimple.h.
2034         * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
2035         is_gimple_sizepos): Move to gimplify.h.
2036         (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
2037         (enum gsi_iterator_update): Move to gimple-iterator.h.
2038         * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
2039         * gimplify-me.c: New File.
2040         (force_gimple_operand_1, force_gimple_operand,
2041         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
2042         gimple_regimplify_operands): Relocate from gimplify.c.
2043         * gimplify.c (force_gimple_operand_1, force_gimple_operand,
2044         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
2045         gimple_regimplify_operands): Move to gimplify-me.c.
2046         (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
2047         from gimple.h.
2048         * Makefile.in (OBJS): Add gimplify-me.o
2049         * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
2050         required.
2051         * cfgloopmanip.c: Likewise.
2052         * cgraphunit.c: Likewise.
2053         * cilk-common.c: Likewise.
2054         * fold-const.c: Likewise.
2055         * function.c: Likewise.
2056         * gimple-expr.c: Likewise.
2057         * gimple-fold.c: Likewise.
2058         * gimple-ssa-strength-reduction.c: Likewise.
2059         * gimple.c: Likewise.
2060         * graphite-clast-to-gimple.c: Likewise.
2061         * graphite-sese-to-poly.c: Likewise.
2062         * ipa-prop.c: Likewise.
2063         * ipa-split.c: Likewise.
2064         * ipa.c: Likewise.
2065         * langhooks.c: Likewise.
2066         * omp-low.c: Likewise.
2067         * sese.c: Likewise.
2068         * stor-layout.c: Likewise.
2069         * targhooks.c: Likewise.
2070         * trans-mem.c: Likewise.
2071         * tree-affine.c: Likewise.
2072         * tree-cfg.c: Likewise.
2073         * tree-cfgcleanup.c: Likewise.
2074         * tree-complex.c: Likewise.
2075         * tree-if-conv.c: Likewise.
2076         * tree-inline.c: Likewise.
2077         * tree-loop-distribution.c: Likewise.
2078         * tree-nested.c: Likewise.
2079         * tree-parloops.c: Likewise.
2080         * tree-predcom.c: Likewise.
2081         * tree-profile.c: Likewise.
2082         * tree-scalar-evolution.c: Likewise.
2083         * tree-sra.c: Likewise.
2084         * tree-ssa-address.c: Likewise.
2085         * tree-ssa-ccp.c: Likewise.
2086         * tree-ssa-dce.c: Likewise.
2087         * tree-ssa-forwprop.c: Likewise.
2088         * tree-ssa-ifcombine.c: Likewise.
2089         * tree-ssa-loop-im.c: Likewise.
2090         * tree-ssa-loop-ivopts.c: Likewise.
2091         * tree-ssa-loop-manip.c: Likewise.
2092         * tree-ssa-loop-niter.c: Likewise.
2093         * tree-ssa-loop-prefetch.c: Likewise.
2094         * tree-ssa-loop-unswitch.c: Likewise.
2095         * tree-ssa-math-opts.c: Likewise.
2096         * tree-ssa-phiopt.c: Likewise.
2097         * tree-ssa-phiprop.c: Likewise.
2098         * tree-ssa-pre.c: Likewise.
2099         * tree-ssa-propagate.c: Likewise.
2100         * tree-ssa-reassoc.c: Likewise.
2101         * tree-ssa-sccvn.c: Likewise.
2102         * tree-ssa-strlen.c: Likewise.
2103         * tree-ssa.c: Likewise.
2104         * tree-switch-conversion.c: Likewise.
2105         * tree-tailcall.c: Likewise.
2106         * tree-vect-data-refs.c: Likewise.
2107         * tree-vect-generic.c: Likewise.
2108         * tree-vect-loop-manip.c: Likewise.
2109         * tree-vect-loop.c: Likewise.
2110         * tree-vect-patterns.c: Likewise.
2111         * tree-vect-stmts.c: Likewise.
2112         * tree.c: Likewise.
2113         * tsan.c: Likewise.
2114         * value-prof.c: Likewise.
2115         * config/aarch64/aarch64.c: Likewise.
2116         * config/alpha/alpha.c: Likewise.
2117         * config/darwin.c: Likewise.
2118         * config/i386/i386.c: Likewise.
2119         * config/ia64/ia64.c: Likewise.
2120         * config/mep/mep.c: Likewise.
2121         * config/mips/mips.c: Likewise.
2122         * config/rs6000/rs6000.c: Likewise.
2123         * config/s390/s390.c: Likewise.
2124         * config/sh/sh.c: Likewise.
2125         * config/sparc/sparc.c: Likewise.
2126         * config/spu/spu.c: Likewise.
2127         * config/stormy16/stormy16.c: Likewise.
2128         * config/tilegx/tilegx.c: Likewise.
2129         * config/tilepro/tilepro.c: Likewise.
2130         * config/xtensa/xtensa.c: Likewise.
2132 2013-11-14  Diego Novillo  <dnovillo@google.com>
2134         * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
2136 2013-11-14  Diego Novillo  <dnovillo@google.com>
2138         * tree.h: Include fold-const.h.
2139         (aggregate_value_p): Moved to function.h.
2140         (alloca_call_p): Moved to calls.h.
2141         (allocate_struct_function): Moved to function.h.
2142         (apply_tm_attr): Moved to attribs.h.
2143         (array_at_struct_end_p): Moved to expr.h.
2144         (array_ref_element_size): Moved to tree-dfa.h.
2145         (array_ref_low_bound): Moved to tree-dfa.h.
2146         (array_ref_up_bound): Moved to tree.h.
2147         (assemble_alias): Moved to cgraph.h.
2148         (bit_from_pos): Moved to stor-layout.h.
2149         (build_addr): Moved to tree-nested.h.
2150         (build_duplicate_type): Moved to tree-inline.h.
2151         (build_fold_addr_expr): Moved to fold-const.h.
2152         (build_fold_addr_expr_with_type): Moved to fold-const.h.
2153         (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
2154         (build_fold_indirect_ref): Moved to fold-const.h.
2155         (build_fold_indirect_ref_loc): Moved to fold-const.h.
2156         (build_personality_function): Moved to tree.h.
2157         (build_range_check): Moved to fold-const.h.
2158         (build_simple_mem_ref): Moved to fold-const.h.
2159         (build_simple_mem_ref_loc): Moved to fold-const.h.
2160         (build_tm_abort_call): Moved to trans-mem.h.
2161         (byte_from_pos): Moved to stor-layout.h.
2162         (call_expr_flags): Moved to calls.h.
2163         (can_move_by_pieces): Moved to expr.h.
2164         (categorize_ctor_elements): Moved to expr.h.
2165         (change_decl_assembler_name): Moved to gcc-symtab.h.
2166         (combine_comparisons): Moved to fold-const.h.
2167         (complete_ctor_at_level_p): Moved to tree.h.
2168         (component_ref_field_offset): Moved to tree-dfa.h.
2169         (compute_builtin_object_size): Moved to tree-object-size.h.
2170         (compute_record_mode): Moved to stor-layout.h.
2171         (constant_boolean_node): Moved to fold-const.h.
2172         (constructor_static_from_elts_p): Moved to varasm.h.
2173         (cxx11_attribute_p): Moved to attribs.h.
2174         (debug_body): Moved to print-tree.h.
2175         (debug_find_tree): Moved to tree-inline.h.
2176         (debug_fold_checksum): Moved to fold-const.h.
2177         (debug_head): Moved to print-tree.h.
2178         (debug_head): Moved to print-tree.h.
2179         (debug_raw): Moved to print-tree.h.
2180         (debug_tree): Moved to print-tree.h.
2181         (debug_vec_tree): Moved to print-tree.h.
2182         (debug_verbose): Moved to print-tree.h.
2183         (debug_verbose): Moved to print-tree.h.
2184         (decl_attributes): Moved to attribs.h.
2185         (decl_binds_to_current_def_p): Moved to varasm.h.
2186         (decl_default_tls_model): Moved to varasm.h.
2187         (decl_replaceable_p): Moved to varasm.h.
2188         (div_if_zero_remainder): Moved to fold-const.h.
2189         (double_int mem_ref_offset): Moved to fold-const.h.
2190         (dump_addr): Moved to print-tree.h.
2191         (element_precision): Moved to machmode.h.
2192         (expand_dummy_function_end): Moved to function.h.
2193         (expand_function_end): Moved to function.h.
2194         (expand_function_start): Moved to function.h.
2195         (expand_label): Moved to stmt.h.
2196         (expr_first): Moved to tree-iterator.h.
2197         (expr_last): Moved to tree-iterator.h.
2198         (finalize_size_functions): Moved to stor-layout.h.
2199         (finish_builtin_struct): Moved to stor-layout.h.
2200         (finish_record_layout): Moved to stor-layout.h.
2201         (fixup_signed_type): Moved to stor-layout.h.
2202         (fixup_unsigned_type): Moved to stor-layout.h.
2203         (flags_from_decl_or_type): Moved to calls.h.
2204         (fold): Moved to fold-const.h.
2205         (fold_abs_const): Moved to fold-const.h.
2206         (fold_binary): Moved to fold-const.h.
2207         (fold_binary_loc): Moved to fold-const.h.
2208         (fold_binary_to_constant): Moved to fold-const.h.
2209         (fold_build1): Moved to fold-const.h.
2210         (fold_build1_initializer_loc): Moved to fold-const.h.
2211         (fold_build1_loc): Moved to fold-const.h.
2212         (fold_build1_stat_loc): Moved to fold-const.h.
2213         (fold_build2): Moved to fold-const.h.
2214         (fold_build2_initializer_loc): Moved to fold-const.h.
2215         (fold_build2_loc): Moved to fold-const.h.
2216         (fold_build2_stat_loc): Moved to fold-const.h.
2217         (fold_build3): Moved to fold-const.h.
2218         (fold_build3_loc): Moved to fold-const.h.
2219         (fold_build3_stat_loc): Moved to fold-const.h.
2220         (fold_build_call_array): Moved to fold-const.h.
2221         (fold_build_call_array_initializer): Moved to fold-const.h.
2222         (fold_build_call_array_initializer_loc): Moved to fold-const.h.
2223         (fold_build_call_array_loc): Moved to fold-const.h.
2224         (fold_build_cleanup_point_expr): Moved to fold-const.h.
2225         (fold_convert): Moved to fold-const.h.
2226         (fold_convert_loc): Moved to fold-const.h.
2227         (fold_convertible_p): Moved to fold-const.h.
2228         (fold_defer_overflow_warnings): Moved to fold-const.h.
2229         (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
2230         (fold_fma): Moved to fold-const.h.
2231         (fold_ignored_result): Moved to fold-const.h.
2232         (fold_indirect_ref): Moved to fold-const.h.
2233         (fold_indirect_ref_1): Moved to fold-const.h.
2234         (fold_indirect_ref_loc): Moved to fold-const.h.
2235         (fold_read_from_constant_string): Moved to fold-const.h.
2236         (fold_real_zero_addition_p): Moved to fold-const.h.
2237         (fold_single_bit_test): Moved to fold-const.h.
2238         (fold_strip_sign_ops): Moved to fold-const.h.
2239         (fold_ternary): Moved to fold-const.h.
2240         (fold_ternary_loc): Moved to fold-const.h.
2241         (fold_unary): Moved to tree-data-ref.h.
2242         (fold_unary_ignore_overflow): Moved to fold-const.h.
2243         (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
2244         (fold_unary_loc): Moved to fold-const.h.
2245         (fold_unary_to_constant): Moved to fold-const.h.
2246         (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
2247         (fold_undefer_overflow_warnings): Moved to fold-const.h.
2248         (folding_initializer): Moved to fold-const.h.
2249         (free_temp_slots): Moved to function.h.
2250         (generate_setjmp_warnings): Moved to function.h.
2251         (get_attribute_name): Moved to attribs.h.
2252         (get_identifier): Moved to stringpool.h.
2253         (get_identifier_with_length): Moved to stringpool.h.
2254         (get_inner_reference): Moved to tree.h.
2255         (gimple_alloca_call_p): Moved to calls.h.
2256         (gimplify_parameters): Moved to function.h.
2257         (highest_pow2_factor): Moved to expr.h.
2258         (indent_to): Moved to print-tree.h.
2259         (init_attributes): Moved to attribs.h.
2260         (init_dummy_function_start): Moved to function.h.
2261         (init_function_start): Moved to function.h.
2262         (init_inline_once): Moved to tree-inline.h.
2263         (init_object_sizes): Moved to tree-object-size.h.
2264         (init_temp_slots): Moved to function.h.
2265         (init_tree_optimization_optabs): Moved to optabs.h.
2266         (initialize_sizetypes): Moved to stor-layout.h.
2267         (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
2268         (initializer_constant_valid_p): Moved to varasm.h.
2269         (int_const_binop): Moved to fold-const.h.
2270         (internal_reference_types): Moved to stor-layout.h.
2271         (invert_tree_comparison): Moved to fold-const.h.
2272         (invert_truthvalue): Moved to fold-const.h.
2273         (invert_truthvalue_loc): Moved to fold-const.h.
2274         (is_tm_ending_fndecl): Moved to trans-mem.h.
2275         (is_tm_may_cancel_outer): Moved to trans-mem.h.
2276         (is_tm_pure): Moved to trans-mem.h.
2277         (is_tm_safe): Moved to trans-mem.h.
2278         (layout_decl): Moved to stor-layout.h.
2279         (layout_type): Moved to stor-layout.h.
2280         (lookup_attribute_spec): Moved to attribs.h.
2281         (make_accum_type): Moved to stor-layout.h.
2282         (make_decl_one_only): Moved to varasm.h.
2283         (make_decl_rtl): Moved to tree.h.
2284         (make_decl_rtl_for_debug): Moved to varasm.h.
2285         (make_fract_type): Moved to stor-layout.h.
2286         (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
2287         (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
2288         (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
2289         (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
2290         (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
2291         (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
2292         (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
2293         (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
2294         (make_range): Moved to fold-const.h.
2295         (make_range_step): Moved to fold-const.h.
2296         (make_sat_signed_accum_type): Moved to stor-layout.h.
2297         (make_sat_signed_fract_type): Moved to stor-layout.h.
2298         (make_sat_unsigned_accum_type): Moved to stor-layout.h.
2299         (make_sat_unsigned_fract_type): Moved to stor-layout.h.
2300         (make_signed_accum_type): Moved to stor-layout.h.
2301         (make_signed_fract_type): Moved to stor-layout.h.
2302         (make_signed_type): Moved to stor-layout.h.
2303         (make_unsigned_accum_type): Moved to stor-layout.h.
2304         (make_unsigned_fract_type): Moved to stor-layout.h.
2305         (make_unsigned_type): Moved to stor-layout.h.
2306         (mark_decl_referenced): Moved to varasm.h.
2307         (mark_referenced): Moved to varasm.h.
2308         (may_negate_without_overflow_p): Moved to fold-const.h.
2309         (maybe_get_identifier): Moved to stringpool.h.
2310         (merge_ranges): Moved to fold-const.h.
2311         (merge_weak): Moved to varasm.h.
2312         (mode_for_size_tree): Moved to stor-layout.h.
2313         (multiple_of_p): Moved to fold-const.h.
2314         (must_pass_in_stack_var_size): Moved to calls.h.
2315         (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
2316         (native_encode_expr): Moved to fold-const.h.
2317         (native_interpret_expr): Moved to fold-const.h.
2318         (non_lvalue): Moved to fold-const.h.
2319         (non_lvalue_loc): Moved to fold-const.h.
2320         (normalize_offset): Moved to stor-layout.h.
2321         (normalize_rli): Moved to stor-layout.h.
2322         (notice_global_symbol): Moved to varasm.h.
2323         (omit_one_operand): Moved to fold-const.h.
2324         (omit_one_operand_loc): Moved to fold-const.h.
2325         (omit_two_operands): Moved to fold-const.h.
2326         (omit_two_operands_loc): Moved to fold-const.h.
2327         (operand_equal_p): Moved to tree-data-ref.h.
2328         (parse_input_constraint): Moved to stmt.h.
2329         (parse_output_constraint): Moved to stmt.h.
2330         (place_field): Moved to stor-layout.h.
2331         (pop_function_context): Moved to function.h.
2332         (pop_temp_slots): Moved to function.h.
2333         (pos_from_bit): Moved to stor-layout.h.
2334         (preserve_temp_slots): Moved to function.h.
2335         (print_node): Moved to print-tree.h.
2336         (print_node_brief): Moved to print-tree.h.
2337         (print_rtl): Moved to rtl.h.
2338         (process_pending_assemble_externals): Moved to varasm.h.
2339         (ptr_difference_const): Moved to fold-const.h.
2340         (push_function_context): Moved to function.h.
2341         (push_struct_function): Moved to function.h.
2342         (push_temp_slots): Moved to function.h.
2343         (record_tm_replacement): Moved to trans-mem.h.
2344         (relayout_decl): Moved to stor-layout.h.
2345         (resolve_asm_operand_names): Moved to stmt.h.
2346         (resolve_unique_section): Moved to varasm.h.
2347         (rli_size_so_far): Moved to stor-layout.h.
2348         (rli_size_unit_so_far): Moved to stor-layout.h.
2349         (round_down): Moved to fold-const.h.
2350         (round_down_loc): Moved to fold-const.h.
2351         (round_up): Moved to fold-const.h.
2352         (round_up_loc): Moved to fold-const.h.
2353         (set_decl_incoming_rtl): Moved to emit-rtl.h.
2354         (set_decl_rtl): Moved to tree.h.
2355         (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
2356         (set_user_assembler_name): Moved to varasm.h.
2357         (setjmp_call_p): Moved to calls.h.
2358         (size_binop): Moved to fold-const.h.
2359         (size_binop_loc): Moved to fold-const.h.
2360         (size_diffop): Moved to fold-const.h.
2361         (size_diffop_loc): Moved to fold-const.h.
2362         (size_int_kind): Moved to fold-const.h.
2363         (stack_protect_epilogue): Moved to function.h.
2364         (start_record_layout): Moved to stor-layout.h.
2365         (supports_one_only): Moved to varasm.h.
2366         (swap_tree_comparison): Moved to fold-const.h.
2367         (tm_malloc_replacement): Moved to trans-mem.h.
2368         (tree build_fold_addr_expr_loc): Moved to fold-const.h.
2369         (tree build_invariant_address): Moved to fold-const.h.
2370         (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
2371         (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
2372         (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
2373         (tree_expr_nonnegative_p): Moved to fold-const.h.
2374         (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
2375         (tree_output_constant_def): Moved to varasm.h.
2376         (tree_overlaps_hard_reg_set): Moved to stmt.h.
2377         (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
2378         (tree_single_nonzero_warnv_p): Moved to fold-const.h.
2379         (tree_swap_operands_p): Moved to fold-const.h.
2380         (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
2381         (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
2382         (update_alignment_for_field): Moved to stor-layout.h.
2383         (use_register_for_decl): Moved to function.h.
2384         (variable_size): Moved to rtl.h.
2385         (vector_type_mode): Moved to stor-layout.h.
2386         * cgraph.h: Corresponding changes.
2387         * emit-rtl.h: Corresponding changes.
2388         * expr.h: Corresponding changes.
2389         * function.h: Corresponding changes.
2390         * optabs.h: Corresponding changes.
2391         * trans-mem.h: Corresponding changes.
2392         Protect against multiple inclusion.
2393         * tree-inline.h: Corresponding changes.
2394         * tree-iterator.h: Corresponding changes.
2395         * tree-dfa.h: Include expr.h.
2396         * tree-ssanames.h: Include stringpool.h.
2397         * attribs.h: New file.
2398         * calls.h: New file.
2399         * fold-const.h: New file.
2400         * gcc-symtab.h: New file.
2401         * print-rtl.h: New file.
2402         * print-tree.h: New file.
2403         * stmt.h: New file.
2404         * stor-layout.h: New file.
2405         * strinpool.h: New file.
2406         * tree-nested.h: New file
2407         * tree-object-size.h: New file.
2408         * varasm.h: New file.
2410 2013-11-14  Diego Novillo  <dnovillo@google.com>
2412         * alias.c: Include varasm.h.
2413         Include expr.h.
2414         * asan.c: Include calls.h.
2415         Include stor-layout.h.
2416         Include varasm.h.
2417         * attribs.c: Include stringpool.h.
2418         Include attribs.h.
2419         Include stor-layout.h.
2420         * builtins.c: Include stringpool.h.
2421         Include stor-layout.h.
2422         Include calls.h.
2423         Include varasm.h.
2424         Include tree-object-size.h.
2425         * calls.c: Include stor-layout.h.
2426         Include varasm.h.
2427         Include stringpool.h.
2428         Include attribs.h.
2429         * cfgexpand.c: Include stringpool.h.
2430         Include varasm.h.
2431         Include stor-layout.h.
2432         Include stmt.h.
2433         Include print-tree.h.
2434         * cgraph.c: Include varasm.h.
2435         Include calls.h.
2436         Include print-tree.h.
2437         * cgraphclones.c: Include stringpool.h.
2438         Include function.h.
2439         Include emit-rtl.h.
2440         Move inclusion of rtl.h earlier in the file.
2441         * cgraphunit.c: Include varasm.h.
2442         Include stor-layout.h.
2443         Include stringpool.h.
2444         * cilk-common.c: Include stringpool.h.
2445         Include stor-layout.h.
2446         * combine.c: Include stor-layout.h.
2447         * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
2448         Include stringpool.h.
2449         Include calls.h.
2450         * config/aarch64/aarch64.c: Include stringpool.h.
2451         Include stor-layout.h.
2452         Include calls.h.
2453         Include varasm.h.
2454         * config/alpha/alpha.c: Include stor-layout.h.
2455         Include calls.h.
2456         Include varasm.h.
2457         * config/arc/arc.c: Include varasm.h.
2458         Include stor-layout.h.
2459         Include stringpool.h.
2460         Include calls.h.
2461         * config/arm/arm.c: Include stringpool.h.
2462         Include stor-layout.h.
2463         Include calls.h.
2464         Include varasm.h.
2465         * config/avr/avr-c.c: Include stor-layout.h.
2466         * config/avr/avr-log.c: Include print-tree.h.
2467         * config/avr/avr.c: Include print-tree.h.
2468         Include calls.h.
2469         Include stor-layout.h.
2470         Include stringpool.h.
2471         * config/bfin/bfin.c: Include varasm.h.
2472         Include calls.h.
2473         * config/c6x/c6x.c: Include stor-layout.h.
2474         Include varasm.h.
2475         Include calls.h.
2476         Include stringpool.h.
2477         * config/cr16/cr16.c: Include stor-layout.h.
2478         Include calls.h.
2479         * config/cris/cris.c: Include varasm.h.
2480         Include stor-layout.h.
2481         Include calls.h.
2482         Include stmt.h.
2483         * config/darwin.c: Include stringpool.h.
2484         Include varasm.h.
2485         Include stor-layout.h.
2486         * config/epiphany/epiphany.c: Include stor-layout.h.
2487         Include varasm.h.
2488         Include calls.h.
2489         Include stringpool.h.
2490         * config/fr30/fr30.c: Include stor-layout.h.
2491         Include varasm.h.
2492         * config/frv/frv.c: Include varasm.h.
2493         Include stor-layout.h.
2494         Include stringpool.h.
2495         * config/h8300/h8300.c: Include stor-layout.h.
2496         Include varasm.h.
2497         Include calls.h.
2498         Include stringpool.h.
2499         * config/i386/i386.c: Include stringpool.h.
2500         Include attribs.h.
2501         Include calls.h.
2502         Include stor-layout.h.
2503         Include varasm.h.
2504         * config/i386/winnt-cxx.c: Include stringpool.h.
2505         Include attribs.h.
2506         * config/i386/winnt.c: Include stringpool.h.
2507         Include varasm.h.
2508         * config/ia64/ia64-c.c: Include stringpool.h.
2509         * config/ia64/ia64.c: Include stringpool.h.
2510         Include stor-layout.h.
2511         Include calls.h.
2512         Include varasm.h.
2513         * config/iq2000/iq2000.c: Include stor-layout.h.
2514         Include calls.h.
2515         Include varasm.h.
2516         * config/lm32/lm32.c: Include calls.h.
2517         * config/m32c/m32c.c: Include stor-layout.h.
2518         Include varasm.h.
2519         Include calls.h.
2520         * config/m32r/m32r.c: Include stor-layout.h.
2521         Include varasm.h.
2522         Include stringpool.h.
2523         Include calls.h.
2524         * config/m68k/m68k.c: Include calls.h.
2525         Include stor-layout.h.
2526         Include varasm.h.
2527         * config/mcore/mcore.c: Include stor-layout.h.
2528         Include varasm.h.
2529         Include stringpool.h.
2530         Include calls.h.
2531         * config/mep/mep.c: Include varasm.h.
2532         Include calls.h.
2533         Include stringpool.h.
2534         Include stor-layout.h.
2535         * config/microblaze/microblaze.c: Include varasm.h.
2536         Include stor-layout.h.
2537         Include calls.h.
2538         * config/mips/mips.c: Include varasm.h.
2539         Include stringpool.h.
2540         Include stor-layout.h.
2541         Include calls.h.
2542         * config/mmix/mmix.c: Include varasm.h.
2543         Include stor-layout.h.
2544         Include calls.h.
2545         * config/mn10300/mn10300.c: Include stor-layout.h.
2546         Include varasm.h.
2547         Include calls.h.
2548         * config/moxie/moxie.c: Include stor-layout.h.
2549         Include varasm.h.
2550         Include calls.h.
2551         * config/msp430/msp430.c: Include stor-layout.h.
2552         Include calls.h.
2553         * config/nds32/nds32.c: Include stor-layout.h.
2554         Include varasm.h.
2555         Include calls.h.
2556         * config/pa/pa.c: Include stor-layout.h.
2557         Include stringpool.h.
2558         Include varasm.h.
2559         Include calls.h.
2560         * config/pdp11/pdp11.c: Include stor-layout.h.
2561         Include varasm.h.
2562         Include calls.h.
2563         * config/picochip/picochip.c: Include calls.h.
2564         Include stor-layout.h.
2565         Include stringpool.h.
2566         Include varasm.h.
2567         * config/rl78/rl78.c: Include varasm.h.
2568         Include stor-layout.h.
2569         Include calls.h.
2570         * config/rs6000/rs6000-c.c: Include stor-layout.h.
2571         Include stringpool.h.
2572         * config/rs6000/rs6000.c: Include stringpool.h.
2573         Include stor-layout.h.
2574         Include calls.h.
2575         Include print-tree.h.
2576         Include varasm.h.
2577         * config/rx/rx.c: Include varasm.h.
2578         Include stor-layout.h.
2579         Include calls.h.
2580         * config/s390/s390.c: Include print-tree.h.
2581         Include stringpool.h.
2582         Include stor-layout.h.
2583         Include varasm.h.
2584         Include calls.h.
2585         * config/score/score.c: Include stringpool.h.
2586         Include calls.h.
2587         Include varasm.h.
2588         Include stor-layout.h.
2589         * config/sh/sh-c.c: Include stringpool.h.
2590         Include attribs.h.h.
2591         * config/sh/sh.c: Include stringpool.h.
2592         Include stor-layout.h.
2593         Include calls.h.
2594         Include varasm.h.
2595         * config/sol2-c.c: Include stringpool.h.
2596         Include attribs.h.
2597         * config/sol2-cxx.c: Include stringpool.h.
2598         * config/sol2.c: Include stringpool.h.
2599         Include varasm.h.
2600         * config/sparc/sparc.c: Include stringpool.h.
2601         Include stor-layout.h.
2602         Include calls.h.
2603         Include varasm.h.
2604         * config/spu/spu-c.c: Include stringpool.h.
2605         * config/spu/spu.c: Include stringpool.h.
2606         Include stor-layout.h.
2607         Include calls.h.
2608         Include varasm.h.
2609         * config/stormy16/stormy16.c: Include stringpool.h.
2610         Include stor-layout.h.
2611         Include varasm.h.
2612         Include calls.h.
2613         * config/tilegx/tilegx.c: Include stringpool.h.
2614         Include stor-layout.h.
2615         Include varasm.h.
2616         Include calls.h.
2617         * config/tilepro/tilepro.c: Include stringpool.h.
2618         Include stor-layout.h.
2619         Include varasm.h.
2620         Include calls.h.
2621         * config/v850/v850-c.c: Include stringpool.h.
2622         Include attribs.h.
2623         * config/v850/v850.c: Include stringpool.h.
2624         Include stor-layout.h.
2625         Include varasm.h.
2626         Include calls.h.
2627         * config/vax/vax.c: Include calls.h.
2628         Include varasm.h.
2629         * config/vms/vms.c: Include stringpool.h.
2630         * config/vxworks.c: Include stringpool.h.
2631         * config/xtensa/xtensa.c: Include stringpool.h.
2632         Include stor-layout.h.
2633         Include calls.h.
2634         Include varasm.h.
2635         * convert.c: Include stor-layout.h.
2636         * coverage.c: Include stringpool.h.
2637         Include stor-layout.h.
2638         * dbxout.c: Include varasm.h.
2639         Include stor-layout.h.
2640         * dojump.c: Include stor-layout.h.
2641         * dse.c: Include stor-layout.h.
2642         * dwarf2asm.c: Include stringpool.h.
2643         Include varasm.h.
2644         * dwarf2cfi.c: Include stor-layout.h.
2645         * dwarf2out.c: Include rtl.h.
2646         Include stringpool.h.
2647         Include stor-layout.h.
2648         Include varasm.h.
2649         Include function.h.
2650         Include emit-rtl.h.
2651         Move inclusion of rtl.h earlier in the file.
2652         * emit-rtl.c: Include varasm.h.
2653         * except.c: Include stringpool.h.
2654         Include stor-layout.h.
2655         * explow.c: Include stor-layout.h.
2656         * expmed.c: Include stor-layout.h.
2657         * expr.c: Include stringpool.h.
2658         Include stor-layout.h.
2659         Include attribs.h.
2660         Include varasm.h.
2661         * final.c: Include varasm.h.
2662         * fold-const.c: Include stor-layout.h.
2663         Include calls.h.
2664         Include tree-iterator.h.
2665         * function.c: Include stor-layout.h.
2666         Include varasm.h.
2667         Include stringpool.h.
2668         * genattrtab.c (write_header): Emit includes for varasm.h,
2669         stor-layout.h and calls.h.
2670         * genautomata.c (main): Likewise.
2671         * genemit.c: Likewise.
2672         * genopinit.c: Likewise.
2673         * genoutput.c (output_prologue): Likewise.
2674         * genpeep.c: Likewise.
2675         * genpreds.c (write_insn_preds_c): Likewise.
2676         * gengtype.c (open_base_files): Add stringpool.h.
2677         * gimple-expr.c: Include stringpool.h.
2678         Include stor-layout.h.
2679         * gimple-fold.c: Include stringpool.h.
2680         Include expr.h.
2681         Include stmt.h.
2682         Include stor-layout.h.
2683         * gimple-low.c: Include tree-nested.h.
2684         Include calls.h.
2685         * gimple-pretty-print.c: Include stringpool.h.
2686         * gimple-ssa-strength-reduction.c: Include stor-layout.h.
2687         Include expr.h.
2688         * gimple-walk.c: Include stmt.h.
2689         * gimple.c: Include calls.h.
2690         Include stmt.h.
2691         Include stor-layout.h.
2692         * gimplify.c: Include stringpool.h.
2693         Include calls.h.
2694         Include varasm.h.
2695         Include stor-layout.h.
2696         Include stmt.h.
2697         Include print-tree.h.
2698         Include expr.h.
2699         * gimplify-me.c: Include stmt.h
2700         Include stor-layout.h
2701         * internal-fn.c: Include stor-layout.h.
2702         * ipa-devirt.c: Include print-tree.h.
2703         Include calls.h.
2704         * ipa-inline-analysis.c: Include stor-layout.h.
2705         Include stringpool.h.
2706         Include print-tree.h.
2707         * ipa-inline.c: Include trans-mem.h.
2708         Include calls.h.
2709         * ipa-prop.c: Include expr.h.
2710         Include stor-layout.h.
2711         Include print-tree.h.
2712         * ipa-pure-const.c: Include print-tree.h.
2713         Include calls.h.
2714         * ipa-reference.c: Include calls.h.
2715         * ipa-split.c: Include stringpool.h.
2716         Include expr.h.
2717         Include calls.h.
2718         * ipa.c: Include calls.h.
2719         Include stringpool.h.
2720         * langhooks.c: Include stringpool.h.
2721         Include attribs.h.
2722         * lto-cgraph.c: Include stringpool.h.
2723         * lto-streamer-in.c: Include stringpool.h.
2724         * lto-streamer-out.c: Include stor-layout.h.
2725         Include stringpool.h.
2726         * omp-low.c: Include stringpool.h.
2727         Include stor-layout.h.
2728         Include expr.h.
2729         * optabs.c: Include stor-layout.h.
2730         Include stringpool.h.
2731         Include varasm.h.
2732         * passes.c: Include varasm.h.
2733         * predict.c: Include calls.h.
2734         * print-rtl.c: Include print-tree.h.
2735         * print-tree.c: Include varasm.h.
2736         Include print-rtl.h.
2737         Include stor-layout.h.
2738         * realmpfr.c: Include stor-layout.h.
2739         * reg-stack.c: Include varasm.h.
2740         * sdbout.c: Include varasm.h.
2741         Include stor-layout.h.
2742         * simplify-rtx.c: Include varasm.h.
2743         * stmt.c: Include varasm.h.
2744         Include stor-layout.h.
2745         * stor-layout.c: Include stor-layout.h.
2746         Include stringpool.h.
2747         Include varasm.h.
2748         Include print-tree.h.
2749         * symtab.c: Include rtl.h.
2750         Include print-tree.h.
2751         Include varasm.h.
2752         Include function.h.
2753         Include emit-rtl.h.
2754         * targhooks.c: Include stor-layout.h.
2755         Include varasm.h.
2756         * toplev.c: Include varasm.h.
2757         Include tree-inline.h.
2758         * trans-mem.c: Include calls.h.
2759         Include function.h.
2760         Include rtl.h.
2761         Include emit-rtl.h.
2762         * tree-affine.c: Include expr.h.
2763         * tree-browser.c: Include print-tree.h.
2764         * tree-call-cdce.c: Include stor-layout.h.
2765         * tree-cfg.c: Include trans-mem.h.
2766         Include stor-layout.h.
2767         Include print-tree.h.
2768         * tree-complex.c: Include stor-layout.h.
2769         * tree-data-ref.c: Include expr.h.
2770         * tree-dfa.c: Include stor-layout.h.
2771         * tree-eh.c: Include expr.h.
2772         Include calls.h.
2773         * tree-emutls.c: Include stor-layout.h.
2774         Include varasm.h.
2775         * tree-if-conv.c: Include stor-layout.h.
2776         * tree-inline.c: Include stor-layout.h.
2777         Include calls.h.
2778         * tree-loop-distribution.c: Include stor-layout.h.
2779         * tree-nested.c: Include stringpool.h.
2780         Include stor-layout.h.
2781         * tree-object-size.c: Include tree-object-size.h.
2782         * tree-outof-ssa.c: Include stor-layout.h.
2783         * tree-parloops.c: Include stor-layout.h.
2784         Include tree-nested.h.
2785         * tree-pretty-print.c: Include stor-layout.h.
2786         Include expr.h.
2787         * tree-profile.c: Include varasm.h.
2788         Include tree-nested.h.
2789         * tree-scalar-evolution.c: Include expr.h.
2790         * tree-sra.c: Include stor-layout.h.
2791         * tree-ssa-address.c: Include stor-layout.h.
2792         * tree-ssa-ccp.c: Include stor-layout.h.
2793         * tree-ssa-dce.c: Include calls.h.
2794         * tree-ssa-dom.c: Include stor-layout.h.
2795         * tree-ssa-forwprop.c: Include stor-layout.h.
2796         * tree-ssa-ifcombine.c: Include stor-layout.h.
2797         * tree-ssa-loop-ivopts.c: Include stor-layout.h.
2798         * tree-ssa-loop-niter.c: Include calls.h.
2799         Include expr.h.
2800         * tree-ssa-loop-prefetch.c: Include stor-layout.h.
2801         * tree-ssa-math-opts.c: Include stor-layout.h.
2802         * tree-ssa-operands.c: Include stmt.h.
2803         Include print-tree.h.
2804         * tree-ssa-phiopt.c: Include stor-layout.h.
2805         * tree-ssa-reassoc.c: Include stor-layout.h.
2806         * tree-ssa-sccvn.c: Include stor-layout.h.
2807         * tree-ssa-sink.c: Include stor-layout.h.
2808         * tree-ssa-strlen.c: Include stor-layout.h.
2809         * tree-ssa-structalias.c: Include stor-layout.h.
2810         Include stmt.h.
2811         * tree-ssa-tail-merge.c: Include stor-layout.h.
2812         Include trans-mem.h.
2813         * tree-ssa-uncprop.c: Include stor-layout.h.
2814         * tree-ssa.c: Include stor-layout.h.
2815         * tree-ssanames.c: Include stor-layout.h.
2816         * tree-streamer-in.c: Include stringpool.h.
2817         * tree-streamer-out.c: Include stor-layout.h.
2818         * tree-switch-conversion.c: Include varasm.h.
2819         Include stor-layout.h.
2820         * tree-tailcall.c: Include stor-layout.h.
2821         * tree-vect-data-refs.c: Include stor-layout.h.
2822         * tree-vect-generic.c: Include stor-layout.h.
2823         * tree-vect-loop.c: Include stor-layout.h.
2824         * tree-vect-patterns.c: Include stor-layout.h.
2825         * tree-vect-slp.c: Include stor-layout.h.
2826         * tree-vect-stmts.c: Include stor-layout.h.
2827         * tree-vectorizer.c: Include stor-layout.h.
2828         * tree-vrp.c: Include stor-layout.h.
2829         Include calls.h.
2830         * tree.c: Include stor-layout.h.
2831         Include calls.h.
2832         Include attribs.h.
2833         Include varasm.h.
2834         * tsan.c: Include expr.h.
2835         * ubsan.c: Include stor-layout.h.
2836         Include stringpool.h.
2837         * value-prof.c: Include tree-nested.h.
2838         Include calls.h.
2839         * var-tracking.c: Include varasm.h.
2840         Include stor-layout.h.
2841         * varasm.c: Include stor-layout.h.
2842         Include stringpool.h.
2843         Include gcc-symtab.h.
2844         Include varasm.h.
2845         * varpool.c: Include varasm.h.
2846         * vmsdbgout.c: Include varasm.h.
2847         * xcoffout.c: Include varasm.h.
2849 2013-11-14  Joern Rennecke  <joern.rennecke@embecosm.com>
2851         * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
2852         use (.&-4) idiom.
2854 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2856         * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
2858 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2859             Alan Modra  <amodra@gmail.com>
2861         * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
2862         (RS6000_SAVE_TOC): Remove.
2863         (RS6000_TOC_SAVE_SLOT): New macro.
2864         * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
2865         (rs6000_parm_start): Use it.
2866         (rs6000_function_arg_advance_1): Likewise.
2867         (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
2868         (rs6000_emit_epilogue): Likewise.
2869         (rs6000_call_aix): Likewise.
2870         (rs6000_output_function_prologue): Do not save/restore r11
2871         around calling _mcount for ABI_ELFv2.
2873 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2874             Alan Modra  <amodra@gmail.com>
2876         * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
2877         Add prototype.
2878         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
2879         (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
2880         * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
2881         (rs6000_function_parms_need_stack): Likewise.
2882         (rs6000_reg_parm_stack_space): Likewise.
2883         (rs6000_function_arg): Do not replace BLKmode by Pmode when
2884         returning a register argument.
2886 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2887             Michael Gschwind  <mkg@us.ibm.com>
2889         * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
2890         (ALTIVEC_ARG_MAX_RETURN): Likewise.
2891         (FUNCTION_VALUE_REGNO_P): Use them.
2892         * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
2893         (rs6000_return_in_msb): New function.
2894         (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
2895         Handle aggregates of up to 16 bytes for ELFv2.
2896         (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
2898 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2899             Michael Gschwind  <mkg@us.ibm.com>
2901         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
2902         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
2903         (rs6000_discover_homogeneous_aggregate): Likewise.
2904         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
2905         (rs6000_function_arg_advance_1): Likewise.
2906         (rs6000_function_arg): Likewise.
2907         (rs6000_arg_partial_bytes): Likewise.
2908         (rs6000_psave_function_arg): Handle BLKmode arguments.
2910 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2911             Michael Gschwind  <mkg@us.ibm.com>
2913         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
2914         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
2915         (rs6000_discover_homogeneous_aggregate): Likewise.
2916         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
2917         (rs6000_function_arg_advance_1): Likewise.
2918         (rs6000_function_arg): Likewise.
2919         (rs6000_arg_partial_bytes): Likewise.
2920         (rs6000_psave_function_arg): Handle BLKmode arguments.
2922 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2924         * config/rs6000/rs6000.c (machine_function): New member
2925         r2_setup_needed.
2926         (rs6000_emit_prologue): Set r2_setup_needed if necessary.
2927         (rs6000_output_mi_thunk): Set r2_setup_needed.
2928         (rs6000_output_function_prologue): Output global entry point
2929         prologue and local entry point marker if needed for ABI_ELFv2.
2930         Output -mprofile-kernel code here.
2931         (output_function_profiler): Do not output -mprofile-kernel
2932         code here; moved to rs6000_output_function_prologue.
2933         (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
2935         (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
2936         (rs6000_output_function_entry): Likewise.
2937         (rs6000_assemble_integer): Likewise.
2938         (rs6000_elf_encode_section_info): Likewise.
2939         (rs6000_elf_declare_function_name): Do not create dot symbols
2940         or .opd section for ABI_ELFv2.
2942         (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
2943         (rs6000_trampoline_init): Likewise.
2944         (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
2946         (rs6000_call_aix): Handle ELFv2 indirect calls.  Do not check
2947         for function descriptors in ABI_ELFv2.
2949         * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
2950         on ABI_AIX only, not ABI_ELFv2.
2951         ("*call_value_indirect_aix<mode>"): Likewise.
2952         ("*call_indirect_elfv2<mode>"): New pattern.
2953         ("*call_value_indirect_elfv2<mode>"): Likewise.
2955         * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
2956         check for function descriptors in ABI_ELFv2.
2957         ("current_file_function_operand"): Likewise.
2959         * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
2960         (toc): Undefine.
2961         (FUNC_NAME): Define ELFv2 variant.
2962         (JUMP_TARGET): Likewise.
2963         (FUNC_START): Likewise.
2964         (HIDDEN_FUNC): Likewise.
2965         (FUNC_END): Likeiwse.
2967 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2969         * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
2970         and --with-abi=elfv2.
2971         * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
2972         * config/rs6000/rs6000.opt (mabi=elfv1): New option.
2973         (mabi=elfv2): Likewise.
2974         * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
2975         * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
2976         if !RS6000_BI_ARCH.
2977         (ELFv2_ABI_CHECK): New macro.
2978         (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
2979         rs6000_current_abi to ABI_AIX or ABI_ELFv2.
2980         (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
2981         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
2982         _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
2984         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
2985         (debug_stack_info): Likewise.
2986         (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
2987         (rs6000_legitimize_tls_address): Likewise.
2988         (rs6000_conditional_register_usage): Likewise.
2989         (rs6000_emit_move): Likewise.
2990         (init_cumulative_args): Likewise.
2991         (rs6000_function_arg_advance_1): Likewise.
2992         (rs6000_function_arg): Likewise.
2993         (rs6000_arg_partial_bytes): Likewise.
2994         (rs6000_output_function_entry): Likewise.
2995         (rs6000_assemble_integer): Likewise.
2996         (rs6000_savres_strategy): Likewise.
2997         (rs6000_stack_info): Likewise.
2998         (rs6000_function_ok_for_sibcall): Likewise.
2999         (rs6000_emit_load_toc_table): Likewise.
3000         (rs6000_savres_routine_name): Likewise.
3001         (ptr_regno_for_savres): Likewise.
3002         (rs6000_emit_prologue): Likewise.
3003         (rs6000_emit_epilogue): Likewise.
3004         (rs6000_output_function_epilogue): Likewise.
3005         (output_profile_hook): Likewise.
3006         (output_function_profiler): Likewise.
3007         (rs6000_trampoline_size): Likewise.
3008         (rs6000_trampoline_init): Likewise.
3009         (rs6000_elf_output_toc_section_asm_op): Likewise.
3010         (rs6000_elf_encode_section_info): Likewise.
3011         (rs6000_elf_reloc_rw_mask): Likewise.
3012         (rs6000_elf_declare_function_name): Likewise.
3013         (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
3014         except that rs6000_compat_align_parm is always assumed false.
3015         (rs6000_gimplify_va_arg): Likewise.
3016         (rs6000_call_aix): Update comment.
3017         (rs6000_sibcall_aix): Likewise.
3018         * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
3019         Treat ABI_ELFv2 the same as ABI_AIX.
3020         ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
3021         ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
3022         ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
3023         ("load_toc_aix_si"): Likewise.
3024         ("load_toc_aix_di"): Likewise.
3025         ("call"): Likewise.
3026         ("call_value"): Likewise.
3027         ("*call_local_aix<mode>"): Likewise.
3028         ("*call_value_local_aix<mode>"): Likewise.
3029         ("*call_nonlocal_aix<mode>"): Likewise.
3030         ("*call_value_nonlocal_aix<mode>"): Likewise.
3031         ("*call_indirect_aix<mode>"): Likewise.
3032         ("*call_value_indirect_aix<mode>"): Likewise.
3033         ("sibcall"): Likewise.
3034         ("sibcall_value"): Likewise.
3035         ("*sibcall_aix<mode>"): Likewise.
3036         ("*sibcall_value_aix<mode>"): Likewise.
3037         * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
3038         ("current_file_function_operand"): Likewise.
3040 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3042         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
3043         by making use of the fact that for vector / floating point arguments
3044         passed both in VRs/FPRs and in the fixed parameter area, the partial
3045         bytes mechanism is in fact not used.
3047 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3049         * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
3050         (rs6000_finish_function_arg): Likewise.
3051         (rs6000_function_arg): Use rs6000_psave_function_arg and
3052         rs6000_finish_function_arg to handle both vector and floating
3053         point arguments that are also passed in GPRs / the stack.
3055 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3057         * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
3058         (USE_ALTIVEC_FOR_ARG_P): Likewise.
3059         (rs6000_darwin64_record_arg_advance_recurse): Update uses.
3060         (rs6000_function_arg_advance_1):Likewise.
3061         (rs6000_darwin64_record_arg_recurse): Likewise.
3062         (rs6000_function_arg): Likewise.
3063         (rs6000_arg_partial_bytes): Likewise.
3065 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3067         * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
3068         "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
3069         (rs6000_savres_strategy): Likewise.
3070         (rs6000_return_addr): Likewise.
3071         (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
3072         testing for ABI_V4 (since ABI_DARWIN is impossible here).
3073         (rs6000_emit_prologue): Likewise.
3074         (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
3075         (rs6000_elf_declare_function_name): Remove duplicated test.
3076         * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
3077         for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
3078         ("load_toc_v4_PIC_1_normal"): Likewise.
3079         ("load_toc_v4_PIC_1_476"): Likewise.
3080         ("load_toc_v4_PIC_1b"): Likewise.
3081         ("load_toc_v4_PIC_1b_normal"): Likewise.
3082         ("load_toc_v4_PIC_1b_476"): Likewise.
3083         ("load_toc_v4_PIC_2"): Likewise.
3084         ("load_toc_v4_PIC_3b"): Likewise.
3085         ("load_toc_v4_PIC_3c"): Likewise.
3086         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
3087         (RS6000_SAVE_AREA): Likewise.
3088         (FP_ARG_MAX_REG): Likewise.
3089         (RETURN_ADDRESS_OFFSET): Likewise.
3090         * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
3091         of ABI_AIX.
3092         (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
3093         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
3095 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3097         * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
3098         (rs6000_call_aix): ... this.  Handle both direct and indirect calls.
3099         Create call insn directly instead of via various gen_... routines.
3100         Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
3101         (rs6000_sibcall_aix): New function.
3102         * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
3103         (TOC_SAVE_OFFSET_64BIT): Likewise.
3104         (AIX_FUNC_DESC_TOC_32BIT): Likewise.
3105         (AIX_FUNC_DESC_TOC_64BIT): Likewise.
3106         (AIX_FUNC_DESC_SC_32BIT): Likewise.
3107         (AIX_FUNC_DESC_SC_64BIT): Likewise.
3108         ("call" expander): Call rs6000_call_aix.
3109         ("call_value" expander): Likewise.
3110         ("call_indirect_aix<ptrsize>"): Replace this pattern ...
3111         ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
3112         ("*call_indirect_aix<mode>"): ... by this insn pattern.
3113         ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
3114         ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
3115         ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
3116         ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
3117         ("*call_nonlocal_aix<mode>"): ... this pattern.
3118         ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
3119         ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
3120         ("*call_local_aix<mode>"): New insn pattern.
3121         ("*call_value_local_aix<mode>"): Likewise.
3122         ("sibcall" expander): Call rs6000_sibcall_aix.
3123         ("sibcall_value" expander): Likewise.  Move earlier in file.
3124         ("*sibcall_nonlocal_aix<mode>"): Replace by ...
3125         ("*sibcall_aix<mode>"): ... this pattern.
3126         ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
3127         ("*sibcall_value_aix<mode>"): ... this pattern.
3128         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
3129         (rs6000_call_aix): Add prototype.
3130         (rs6000_sibcall_aix): Likewise.
3132 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
3134         PR sanitizer/59122
3135         * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
3136         isn't confused by the artificial decl.
3138 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3140         * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
3141         RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
3142         Instead, add USEs of all modified call-saved CR fields to the
3143         insn storing the result to the stack slot, and provide an
3144         appropriate REG_FRAME_RELATED_EXPR for that insn.
3145         * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
3146         * config/rs6000/predicates.md ("crsave_operation"): New predicate.
3148 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3149             Alan Modra  <amodra@gmail.com>
3151         * function.c (assign_parms): Use all.reg_parm_stack_space instead
3152         of re-evaluating REG_PARM_STACK_SPACE target macro.
3153         (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE.  Use it
3154         instead of evaluating target macro REG_PARM_STACK_SPACE every time.
3155         (assign_parm_find_entry_rtl): Update call.
3156         * calls.c (initialize_argument_information): Update call.
3157         (emit_library_call_value_1): Likewise.
3158         * expr.h (locate_and_pad_parm): Update prototype.
3160 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3162         * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
3163         arguments.
3165 2013-11-14  DJ Delorie  <dj@redhat.com>
3167         * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
3168         to 16 bits.
3170 2013-11-14  Jeff Law  <law@redhat.com>
3172         * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
3173         EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
3175 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
3177         * doc/invoke.texi: Update documentation for AArch64's -mcpu
3178         and -mtune options.
3180 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
3182         * config/aarch64/aarch64-cores.def (example-1): Remove.
3183         (example-2): Likewise.
3184         * config/aarch64/aarch64-tune.md: Regenerate.
3185         * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
3186         (generic_sched): Remove "large", "small".
3187         * config/aarch64/large.md: Delete.
3188         * config/aarch64/small.md: Delete.
3190 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
3192         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
3193         * config/aarch64/aarch64-tune.md: Regenerate.
3194         * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
3195         (generic_sched): "no" if we are tuning for cortexa15.
3196         * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
3197         relative path.
3199 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
3201         * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
3202         * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
3203         * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
3204         (all_cores): Use cortexa53 when tuning for "generic".
3205         (aarch64_override_options): Fix comment.
3206         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
3207         * config/aarch64/aarch64-generic.md: Delete.
3209 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
3211         * config/aarch64/aarch64.c (all_architectures): Remove "generic".
3213 2013-11-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3215         * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
3216         (generic_rtx_cost_table): Remove.
3217         (aarch64_rtx_costs): Use fields from cpu_cost_table.
3218         * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
3219         insn_extra_cost.
3220         (cpu_rtx_cost_table): Remove.
3222 2013-11-14  Julian Brown  <julian@codesourcery.com>
3223             Joey Ye  <joey.ye@arm.com>
3225         * config/arm/arm.c (arm_cortex_m_branch_cost): New.
3226         (arm_v7m_tune): New.
3227         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
3228         arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
3229         arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
3230         * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
3232 2013-11-14  Kirill Yukhin  <kirill.yukhin@intel.com>
3234         PR target/57491
3235         * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
3236         flag setting.
3238 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
3239             Uros Bizjak  <ubizjak@gmail.com>
3241         PR target/59101
3242         * config/i386/i386.md (*anddi_2): Only allow CCZmode if
3243         operands[2] satisfies_constraint_Z that might have bit 31 set.
3245 2013-11-13  Jeff Law  <law@redhat.com>
3247         PR tree-optimization/59102
3248         * gimple-ssa-isolate-paths.c
3249         (insert_trap_and_remove_trailing_statments): Ensure STMT is a
3250         gimple assignment before looking at gimple_assign_lhs.
3252 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
3254         * ira.c: Add comment about threads at the top of file.
3256 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
3258         * ira-color.c (coalesce_allocnos): Don't allocate and free
3259         sorted_copies.
3261 2013-11-14  Tom de Vries  <tom@codesourcery.com>
3263         * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
3264         equality for GIMPLE_ASSIGN.
3266 2013-11-14  Tom de Vries  <tom@codesourcery.com>
3268         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
3269         function out of ...
3270         (gimple_equal_p): ... here.
3272 2013-11-14  Tom de Vries  <tom@codesourcery.com>
3274         * trans-mem.c (is_tm_ending): New function.
3275         * gimple.h (is_tm_ending): Declare.
3276         * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
3277         BUILT_IN_TM_COMMIT.
3278         (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
3280 2013-11-14  Tom de Vries  <tom@codesourcery.com>
3282         * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
3284 2013-11-13  Andrew MacLeod  <amacleod@redhat.com>
3286         * gimple-walk.h: New File.  Relocate prototypes from gimple.h.
3287         (struct walk_stmt_info):  Relocate here from gimple.h.
3288         * gimple-iterator.h: New File.  Relocate prototypes from gimple.h.
3289         (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
3290         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
3291         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
3292         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
3293         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
3294         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
3295         * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
3296         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
3297         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
3298         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
3299         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
3300         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
3301         (struct walk_stmt_info): Move to gimple-walk.h.
3302         (gimple_seq_set_location): Move to gimple.c
3303         * gimple-walk.c: New File.
3304         (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
3305         walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
3306         walk_stmt_load_store_ops): Relocate here from gimple.c.
3307         * gimple-iterator.c: Include gimple-iterator.h.
3308         * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
3309         walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
3310         walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
3311         gimple-walk.c.
3312         (gimple_seq_set_location): Relocate from gimple.h.
3313         * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
3314         * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
3315         * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
3316         * Makefile.in (OBJS): Add gimple-walk.o
3317         * asan.c: Update Include list as required for gimple-iterator.h and
3318         gimple-walk.h.
3319         * cfgexpand.c: Likewise.
3320         * cfgloop.c: Likewise.
3321         * cfgloopmanip.c: Likewise.
3322         * cgraph.c: Likewise.
3323         * cgraphbuild.c: Likewise.
3324         * cgraphunit.c: Likewise.
3325         * gimple-fold.c: Likewise.
3326         * gimple-low.c: Likewise.
3327         * gimple-pretty-print.c: Likewise.
3328         * gimple-ssa-isolate-paths.c: Likewise.
3329         * gimple-ssa-strength-reduction.c: Likewise.
3330         * gimple-streamer-in.c: Likewise.
3331         * gimple-streamer-out.c: Likewise.
3332         * gimplify.c: Likewise.
3333         * graphite-blocking.c: Likewise.
3334         * graphite-clast-to-gimple.c: Likewise.
3335         * graphite-dependences.c: Likewise.
3336         * graphite-interchange.c: Likewise.
3337         * graphite-optimize-isl.c: Likewise.
3338         * graphite-poly.c: Likewise.
3339         * graphite-scop-detection.c: Likewise.
3340         * graphite-sese-to-poly.c: Likewise.
3341         * graphite.c: Likewise.
3342         * ipa-inline-analysis.c: Likewise.
3343         * ipa-profile.c: Likewise.
3344         * ipa-prop.c: Likewise.
3345         * ipa-pure-const.c: Likewise.
3346         * ipa-split.c: Likewise.
3347         * lto-streamer-in.c: Likewise.
3348         * lto-streamer-out.c: Likewise.
3349         * omp-low.c: Likewise.
3350         * predict.c: Likewise.
3351         * profile.c: Likewise.
3352         * sese.c: Likewise.
3353         * tracer.c: Likewise.
3354         * trans-mem.c: Likewise.
3355         * tree-call-cdce.c: Likewise.
3356         * tree-cfg.c: Likewise.
3357         * tree-cfgcleanup.c: Likewise.
3358         * tree-complex.c: Likewise.
3359         * tree-data-ref.c: Likewise.
3360         * tree-dfa.c: Likewise.
3361         * tree-eh.c: Likewise.
3362         * tree-emutls.c: Likewise.
3363         * tree-if-conv.c: Likewise.
3364         * tree-inline.c: Likewise.
3365         * tree-into-ssa.c: Likewise.
3366         * tree-loop-distribution.c: Likewise.
3367         * tree-nested.c: Likewise.
3368         * tree-nrv.c: Likewise.
3369         * tree-object-size.c: Likewise.
3370         * tree-outof-ssa.c: Likewise.
3371         * tree-parloops.c: Likewise.
3372         * tree-predcom.c: Likewise.
3373         * tree-profile.c: Likewise.
3374         * tree-scalar-evolution.c: Likewise.
3375         * tree-sra.c: Likewise.
3376         * tree-ssa-ccp.c: Likewise.
3377         * tree-ssa-coalesce.c: Likewise.
3378         * tree-ssa-copy.c: Likewise.
3379         * tree-ssa-copyrename.c: Likewise.
3380         * tree-ssa-dce.c: Likewise.
3381         * tree-ssa-dom.c: Likewise.
3382         * tree-ssa-dse.c: Likewise.
3383         * tree-ssa-forwprop.c: Likewise.
3384         * tree-ssa-ifcombine.c: Likewise.
3385         * tree-ssa-live.c: Likewise.
3386         * tree-ssa-loop-ch.c: Likewise.
3387         * tree-ssa-loop-im.c: Likewise.
3388         * tree-ssa-loop-ivcanon.c: Likewise.
3389         * tree-ssa-loop-ivopts.c: Likewise.
3390         * tree-ssa-loop-manip.c: Likewise.
3391         * tree-ssa-loop-niter.c: Likewise.
3392         * tree-ssa-loop-prefetch.c: Likewise.
3393         * tree-ssa-loop.c: Likewise.
3394         * tree-ssa-math-opts.c: Likewise.
3395         * tree-ssa-phiopt.c: Likewise.
3396         * tree-ssa-phiprop.c: Likewise.
3397         * tree-ssa-pre.c: Likewise.
3398         * tree-ssa-propagate.c: Likewise.
3399         * tree-ssa-reassoc.c: Likewise.
3400         * tree-ssa-sink.c: Likewise.
3401         * tree-ssa-strlen.c: Likewise.
3402         * tree-ssa-structalias.c: Likewise.
3403         * tree-ssa-tail-merge.c: Likewise.
3404         * tree-ssa-ter.c: Likewise.
3405         * tree-ssa-threadedge.c: Likewise.
3406         * tree-ssa-threadupdate.c: Likewise.
3407         * tree-ssa-uncprop.c: Likewise.
3408         * tree-ssa-uninit.c: Likewise.
3409         * tree-ssa.c: Likewise.
3410         * tree-stdarg.c: Likewise.
3411         * tree-switch-conversion.c: Likewise.
3412         * tree-tailcall.c: Likewise.
3413         * tree-vect-data-refs.c: Likewise.
3414         * tree-vect-generic.c: Likewise.
3415         * tree-vect-loop-manip.c: Likewise.
3416         * tree-vect-loop.c: Likewise.
3417         * tree-vect-patterns.c: Likewise.
3418         * tree-vect-slp.c: Likewise.
3419         * tree-vect-stmts.c: Likewise.
3420         * tree-vectorizer.c: Likewise.
3421         * tree-vrp.c: Likewise.
3422         * tree.c: Likewise.
3423         * tsan.c: Likewise.
3424         * value-prof.c: Likewise.
3425         * vtable-verify.c: Likewise.
3427 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
3429         * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
3430         fix.
3432 2013-11-13  Jeff Law  <law@redhat.com>
3434         * PR middle-end/59119
3435         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
3436         function, extracted from gimple_ssa_isolate_erroneous_paths.
3437         (find_explicit_erroneous_behaviour): Similarly.
3438         (insert_trap_and_remove_trailing_statements): Remove statements
3439         in reverse order.
3441 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
3443         * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
3444         Make that check explicit.  BB_HEAD cannot be NULL, remove check for it.
3445         * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
3446         looking at INSN_CODE.
3447         * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
3448         active_insn_p object, respect basic block boundaries.
3449         * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
3450         follows immediately after the jump table data label.
3451         * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
3452         * config/sh/sh.c (barrier_align): Likewise.  Rearrange code such
3453         that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
3455 2013-11-13  Teresa Johnson  <tejohnson@google.com>
3457         PR ipa/58862
3458         * predict.c (drop_profile): Error is currently too strict.
3459         (handle_missing_profiles): Pass call_count to drop_profile.
3461 2013-11-13  Teresa Johnson  <tejohnson@google.com>
3463         PR ipa/58862
3464         * ipa-inline.c (edge_badness): Fix overflow.
3466 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
3468         PR rtl-optimization/59036
3469         * ira-color.c (struct allocno_color_data): Add new members
3470         first_thread_allocno, next_thread_allocno, thread_freq.
3471         (sorted_copies): New static var.
3472         (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
3473         (allocno_thread_conflict_p, merge_threads)
3474         (form_threads_from_copies, form_threads_from_bucket)
3475         (form_threads_from_colorable_allocno, init_allocno_threads): New
3476         functions.
3477         (bucket_allocno_compare_func): Add comparison by thread frequency
3478         and threads.
3479         (add_allocno_to_ordered_bucket): Rename to
3480         add_allocno_to_ordered_colorable_bucket.  Remove parameter.
3481         (push_only_colorable): Call form_threads_from_bucket.
3482         (color_pass): Call init_allocno_threads.  Use
3483         consideration_allocno_bitmap instead of coloring_allocno_bitmap
3484         for nuillify allocno color data.
3485         (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
3486         (coalesce_allocnos): Use static sorted copies.
3488 2013-11-13  Jakub Jelinek  <jakub@redhat.com>
3490         * passes.c (execute_todo): Don't call do_per_function if
3491         flags are zero.
3492         (execute_one_ipa_transform_pass, execute_one_pass): Don't call
3493         execute_function_dump if dump_file is NULL.
3495 2013-11-13  Martin Jambor  <mjambor@suse.cz>
3497         * cgraph.c (cgraph_get_create_node): Do what
3498         cgraph_get_create_real_symbol_node used to do.
3499         (cgraph_get_create_real_symbol_node): Removed.  Changed all users to
3500         call cgraph_get_create_node.
3501         * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
3502         * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
3503         cgraph_get_create_node.  Assert we get a node.
3505 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
3507         * config/aarch64/aarch64-simd.md (vec_extract): New.
3509 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
3511         * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
3512         the constraint.
3514 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
3516         * cfgexpand.c (expand_used_vars): Allocate space for partitions based
3517         on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
3518         or if optimization is enabled.
3519         * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
3520         require that all the names based on a PARM_DECL or a RESULT_DECL that
3521         isn't ignored for debug info be coalesced.
3523 2013-11-13  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
3525         * config/c6x/c6x.c: Include "gimple-expr.h".
3527 2013-11-13  Richard Biener  <rguenther@suse.de>
3529         * gimple-streamer-out.c (output_gimple_stmt): Also wrap
3530         decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
3531         * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
3532         dealing with type mismatches inside component reference chains.
3534 2013-11-13  Marc Glisse  <marc.glisse@inria.fr>
3536         PR tree-optimization/59077
3537         * ipa-pure-const.c (better_state): Update *state.
3539 2013-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
3541         * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
3542         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
3543         Update offset calculations.
3545 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
3547         PR ada/35998
3548         * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
3549         for fields.  Do not add the attribute if the size is negative.
3551 2013-11-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3553         * config/arm/arm.c: Include aarch-cost-tables.h.
3554         (generic_extra_costs): Move from here...
3555         * config/arm/aarch-cost-tables.h: ... To here.  New file.
3557 2013-11-13  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3558             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3559             Sergey Lega  <sergey.s.lega@intel.com>
3560             Anna Tikhonova  <anna.tikhonova@intel.com>
3561             Ilya Tocar  <ilya.tocar@intel.com>
3562             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3563             Ilya Verbin  <ilya.verbin@intel.com>
3564             Kirill Yukhin  <kirill.yukhin@intel.com>
3565             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3567         * config/i386/i386.c (ix86_print_operand): Support z-masking.
3568         * config/i386/predicate.md (const_0_to_4_operand): New.
3569         (const_0_to_5_operand): Ditto.
3570         * config/i386/sse.md (UNSPEC_COMPRESS): New.
3571         (UNSPEC_COMPRESS_STORE): Ditto.
3572         (UNSPEC_EXPAND): Ditto.
3573         (UNSPEC_EMBEDDED_ROUNDING): Ditto.
3574         (define_mode_attr ssescalarsize): Ditto.
3575         (avx512f_load<mode>_mask): Ditto.
3576         (avx512f_store<mode>_mask): Ditto.
3577         (avx512f_storedqu<mode>_mask): Ditto.
3578         (avx512f_vmcmp<mode>3_mask): Ditto.
3579         (avx512f_fmadd_<mode>_mask): Ditto.
3580         (avx512f_fmadd_<mode>_mask3): Ditto.
3581         (avx512f_fmsub_<mode>_mask): Ditto.
3582         (avx512f_fmsub_<mode>_mask3): Ditto.
3583         (avx512f_fnmadd_<mode>_mask): Ditto.
3584         (avx512f_fnmadd_<mode>_mask3): Ditto.
3585         (avx512f_fnmsub_<mode>_mask): Ditto.
3586         (avx512f_fnmsub_<mode>_mask3): Ditto.
3587         (avx512f_fmaddsub_<mode>_mask): Ditto.
3588         (avx512f_fmaddsub_<mode>_mask3): Ditto.
3589         (avx512f_fmsubadd_<mode>_mask): Ditto.
3590         (avx512f_fmsubadd_<mode>_mask3): Ditto.
3591         (vec_unpacku_float_lo_v16si): Ditto.
3592         (avx512f_vextract<shuffletype>32x4_mask): Ditto.
3593         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
3594         (avx512f_vextract<shuffletype>64x4_mask): Ditto.
3595         (vec_extract_lo_<mode>_maskm): Ditto.
3596         (vec_extract_hi_<mode>_maskm): Ditto.
3597         (avx512f_vternlog<mode>_mask): Ditto.
3598         (avx512f_shufps512_mask): Ditto.
3599         (avx512f_fixupimm<mode>_mask): Ditto.
3600         (avx512f_shufpd512_mask): Ditto.
3601         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
3602         (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
3603         (*avx512f_<code>v8div16qi2_store_mask): Ditto.
3604         (ashr<mode>3<mask_name>): Ditto.
3605         (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
3606         (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
3607         (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
3608         (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
3609         (avx512f_pshufdv3_mask): Ditto.
3610         (avx512f_perm<mode>_mask): Ditto.
3611         (avx512f_vpermi2var<mode>3_mask): Ditto.
3612         (avx512f_vpermt2var<mode>3_mask): Ditto.
3613         (avx512f_compress<mode>_mask): Ditto.
3614         (avx512f_compressstore<mode>_mask): Ditto.
3615         (avx512f_expand<mode>_mask): Ditto.
3616         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
3617         to support masking.
3618         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
3619         (<plusminus_insn><mode>3<mask_name>): Ditto.
3620         (*<plusminus_insn><mode>3<mask_name>): Ditto.
3621         (mul<mode>3<mask_name>): Ditto.
3622         (*mul<mode>3<mask_name>): Ditto.
3623         (<sse>_div<mode>3<mask_name>): Ditto.
3624         (<mask_codefor>rcp14<mode><mask_name>): Ditto.
3625         (<sse>_sqrt<mode>2<mask_name>): Ditto.
3626         (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
3627         (<code><mode>3<mask_name>/smaxmin): Ditto.
3628         (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
3629         (*<code><mode>3<mask_name>/smaxmin): Ditto.
3630         (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
3631         (ufloatv16siv16sf2<mask_name>): Ditto.
3632         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
3633         (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
3634         (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
3635         (float<si2dfmodelower><mode>2<mask_name>): Ditto.
3636         (ufloatv8siv8df<mask_name>): Ditto.
3637         (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
3638         (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
3639         (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
3640         (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
3641         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
3642         (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
3643         (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
3644         (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
3645         (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
3646         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
3647         (vec_extract_lo_<mode><mask_name>): Ditto.
3648         (vec_extract_hi_<mode><mask_name>): Ditto.
3649         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
3650         (avx512f_movddup512<mask_name>): Ditto.
3651         (avx512f_unpcklpd512<mask_name>): Ditto.
3652         (*avx512f_unpcklpd512<mask_name>): Ditto.
3653         (*avx512f_vmscalef<mode>): Ditto.
3654         (avx512f_scalef<mode><mask_name>): Ditto.
3655         (avx512f_getexp<mode><mask_name>): Ditto.
3656         (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
3657         (avx512f_rndscale<mode><mask_name>): Ditto.
3658         (avx512f_shufps512_1<mask_name>): Ditto.
3659         (avx512f_shufpd512_1<mask_name>): Ditto.
3660         (<plusminus_insn><mode>3<mask_name>): Ditto.
3661         (*<plusminus_insn><mode>3<mask_name>): Ditto.
3662         (vec_widen_umult_even_v16si<mask_name>): Ditto.
3663         (*vec_widen_umult_even_v16si<mask_name>): Ditto.
3664         (vec_widen_smult_even_v16si<mask_name>): Ditto.
3665         (*vec_widen_smult_even_v16si<mask_name>): Ditto.
3666         (mul<mode>3<mask_name>): Ditto.
3667         (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
3668         (<shift_insn><mode>3<mask_name>): Ditto.
3669         (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
3670         (avx512f_<rotate><mode><mask_name>): Ditto.
3671         (<code><mode>3<mask_name>/maxmin): Ditto.
3672         (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
3673         (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
3674         (*andnot<mode>3<mask_name>): Ditto.
3675         (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
3676         (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
3677         (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
3678         (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
3679         (vec_set_lo_<mode><mask_name>): Ditto.
3680         (vec_set_hi_<mode><mask_name>): Ditto.
3681         (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
3682         (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
3683         (avx512f_pshufd_1<mask_name>): Ditto.
3684         (<mask_codefor>abs<mode>2<mask_name>): Ditto.
3685         (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
3686         (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
3687         (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
3688         (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
3689         (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
3690         (avx512er_exp2<mode><mask_name>): Ditto.
3691         (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
3692         (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
3693         (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
3694         (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
3695         (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
3696         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
3697         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
3698         (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
3699         (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
3700         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
3701         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
3702         (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
3703         (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
3704         (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
3705         (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
3706         (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
3707         (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
3708         (avx512f_getmant<mode><mask_name>): Ditto.
3709         (clz<mode>2<mask_name>): Ditto.
3710         (<mask_codefor>conflict<mode><mask_name>): Ditto.
3711         (*srcp14<mode>): Remove visibility.
3712         (*rsqrt14<mode>): Ditto.
3713         (*fma_fmsub_<mode>): Ditto.
3714         (*fma_fnmadd_<mode>): Ditto.
3715         (*avx512f_rndscale<mode>): Ditto.
3716         * config/i386/subst.md: New file.
3718 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
3720         * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
3721         * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
3722         (atomic_load_explicit, atomic_exchange_explicit)
3723         (atomic_compare_exchange_strong_explicit)
3724         (atomic_compare_exchange_weak_explicit): Use __auto_type to
3725         declare variable initialized with PTR argument.
3727 2013-11-12  Jeff Law  <law@redhat.com>
3729         * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
3730         backedge_seen_p.  Set, use and pass it to children appropriately.
3731         (thread_through_normal_block): Similarly.
3732         (thread_across_edge): Similarly.
3734         * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
3735         memory references as volatile.
3736         (insert_trap_and_remove_trailing_statements): Fix comment.
3738 2013-11-12  Vladimir Makarov  <vmakarov@redhat.com>
3740         PR other/58712
3741         * ira-costs.c (record_operand_costs): Check operands number for
3742         the single set.
3744 2013-11-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
3746         PR target/59054
3747         * config/rs6000/rs6000.md (movdi_internal32): Eliminate
3748         constraints that would allow DImode into the traditional Altivec
3749         registers, but cause undesirable code generation when loading 0 as
3750         a constant.
3751         (movdi_internal64): Likewise.
3752         (cmp<mode>_fpr): Do not use %x for CR register output.
3753         (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
3754         -mallow-upper-sf debug switches are used.
3756 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
3758         * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
3759         create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
3760         Relocate prototypes from gimple.h.
3761         * gimplify.h: New File.  Relocate some prototypes from gimple.h here.
3762         (gimple_predicate, enum fallback, enum gimplify_status): Relocate
3763         from gimple.h.
3764         * gimple.h: Move some prototypes to gimplify.h.
3765         (gimple_predicate, enum fallback, enum gimplify_status): Move to
3766         gimplify.h.
3767         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
3768         Relocate from gimpify.c.
3769         * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
3770         create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
3771         is_gimple_reg_rhs) Relocate from gimplify.c.
3772         * gimplify.c (mark_addressable): Move to gimple-expr.c.
3773         (gimple_seq_add_stmt_without_update): Move to gimple.c.
3774         (remove_suffix, tmp_var_id_num, create_tmp_var_name,
3775         create_tmp_var_raw, create_tmp_var, create_tmp_reg,
3776         is_gimple_reg_rhs): Move to gimple-expr.c.
3777         (should_carry_location_p): Move to gimple.c.
3778         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
3779         to gimple.h.
3780         (annotate_one_with_location, annotate_all_with_location_after,
3781         annotate_all_with_location): Move to gimple.c.
3782         (compare_case_labels, sort_case_labels,
3783         preprocess_case_label_vec_for_gimple): Move to gimple.c.
3784         (rhs_predicate_for): Make static.
3785         (gimplify_assign): Relocate from gimple.c.
3786         * gimple.c (gimplify_assign): Move to gimplify.c.
3787         (gimple_seq_add_stmt_without_update, should_carry_location_p,
3788         annotate_one_with_location, annotate_all_with_location_after,
3789         annotate_all_with_location, compare_case_labels, sort_case_labels,
3790         preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
3791         * tree.h (unshare_expr, unshare_expr_without_location,
3792         mark_addressable): Move prototypes to gimplify.h.
3793         * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
3794         tmp_var_id_num
3795         * asan.c: Include gimplify.h rather than gimple.h.
3796         * cfgloopmanip.c: Likewise.
3797         * cgraphunit.c: Likewise.
3798         * cilk-common.c: Likewise.
3799         * dwarf2out.c: Dont include gimple.h.
3800         * fold-const.c: Include gimplify.h rather than gimple.h.
3801         * function.c: Likewise.
3802         * gimple-fold.c: Likewise.
3803         * gimple-ssa-strength-reduction.c: Likewise.
3804         * graphite-clast-to-gimple.c: Likewise.
3805         * graphite-sese-to-poly.c: Likewise.
3806         * ipa-prop.c: Likewise.
3807         * ipa-split.c: Likewise.
3808         * ipa.c: Likewise.
3809         * langhooks.c: Dont include gimple.h.
3810         * loop-init.c: Include gimplify.h rather than gimple.h.
3811         * omp-low.c: Likewise.
3812         * sese.c: Likewise.
3813         * stor-layout.c: Likewise.
3814         * targhooks.c: Likewise.
3815         * trans-mem.c: Likewise.
3816         * tree-affine.c: Likewise.
3817         * tree-cfg.c: Likewise.
3818         * tree-cfgcleanup.c: Likewise.
3819         * tree-complex.c: Likewise.
3820         * tree-if-conv.c: Likewise.
3821         * tree-inline.c: Likewise.
3822         * tree-iterator.c: Likewise.
3823         * tree-loop-distribution.c: Likewise.
3824         * tree-nested.c: Likewise.
3825         * tree-parloops.c: Likewise.
3826         * tree-predcom.c: Likewise.
3827         * tree-profile.c: Likewise.
3828         * tree-scalar-evolution.c: Likewise.
3829         * tree-sra.c: Likewise.
3830         * tree-ssa-address.c: Likewise.
3831         * tree-ssa-ccp.c: Likewise.
3832         * tree-ssa-dce.c: Likewise.
3833         * tree-ssa-forwprop.c: Likewise.
3834         * tree-ssa-ifcombine.c: Likewise.
3835         * tree-ssa-loop-im.c: Likewise.
3836         * tree-ssa-loop-ivopts.c: Likewise.
3837         * tree-ssa-loop-manip.c: Likewise.
3838         * tree-ssa-loop-niter.c: Likewise.
3839         * tree-ssa-loop-prefetch.c: Likewise.
3840         * tree-ssa-loop-unswitch.c: Likewise.
3841         * tree-ssa-math-opts.c: Likewise.
3842         * tree-ssa-phiopt.c: Likewise.
3843         * tree-ssa-phiprop.c: Likewise.
3844         * tree-ssa-pre.c: Likewise.
3845         * tree-ssa-propagate.c: Likewise.
3846         * tree-ssa-reassoc.c: Likewise.
3847         * tree-ssa-sccvn.c: Likewise.
3848         * tree-ssa-strlen.c: Likewise.
3849         * tree-ssa.c: Likewise.
3850         * tree-switch-conversio: Likewise.n.c
3851         * tree-tailcall.c: Likewise.
3852         * tree-vect-data-refs.c: Likewise.
3853         * tree-vect-generic.c: Likewise.
3854         * tree-vect-loop-manip.c: Likewise.
3855         * tree-vect-loop.c: Likewise.
3856         * tree-vect-patterns.c: Likewise.
3857         * tree-vect-stmts.c: Likewise.
3858         * tsan.c: Likewise.
3859         * value-prof.c: Likewise.
3860         * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
3861         * config/alpha/alpha.c: Likewise.
3862         * config/darwin.c: Likewise.
3863         * config/i386/i386.c: Likewise.
3864         * config/ia64/ia64.c: Likewise.
3865         * config/mep/mep.c: Likewise.
3866         * config/mips/mips.c: Likewise.
3867         * config/rs6000/rs6000.c: Likewise.
3868         * config/s390/s390.c: Likewise.
3869         * config/sh/sh.c: Likewise.
3870         * config/sparc/sparc.c: Likewise.
3871         * config/spu/spu.c: Likewise.
3872         * config/stormy16/stormy16.c: Likewise.
3873         * config/tilegx/tilegx.c: Likewise.
3874         * config/tilepro/tilepro.c: Likewise.
3875         * config/xtensa/xtensa.c: Likewise.
3877 2013-11-12  Adam Butcher  <adam@jessamine.co.uk>
3879         * tree.c (grow_tree_vec_stat): New function ...
3880         * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
3881         and macro front-end.
3883 2013-11-12  Marek Polacek  <polacek@redhat.com>
3885         * final.c (update_alignments): Initialize label to NULL_RTX.
3887 2013-11-12  Jeff Law  <law@redhat.com>
3889         * gimple-ssa-isolate-paths.c (check_loadstore): New function.
3890         (insert_trap_and_remove_trailing_statements): New argument OP which
3891         is the NULL pointer.  Emit the trap after the load/store through
3892         the NULL pointer.  Simplify the RHS of a store through a NULL pointer
3893         when trivial to do so.
3894         (isolate_path): Corresponding changes.
3895         (gimple_ssa_isolate_erroneous_path): Likewise.
3897 2013-11-12  Teresa Johnson  <tejohnson@google.com>
3898             Jan Hubicka  <jh@suse.cz>
3900         * predict.c (drop_profile): New function.
3901         (handle_missing_profiles): Ditto.
3902         (counts_to_freqs): Don't overwrite estimated frequencies
3903         when function has no profile counts.
3904         * predict.h (handle_missing_profiles): Declare.
3905         * tree-inline.c (freqs_to_counts): New function.
3906         (copy_cfg_body): Invoke freqs_to_counts as needed.
3907         * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
3909 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
3911         PR target/59088
3912         * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
3913         Set for m_HASWELL.
3914         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
3916 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
3918         PR target/59084
3919         * config/i386/i386.c (ix86_option_override_internal): Check
3920         X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
3921         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
3922         MASK_AVX256_SPLIT_UNALIGNED_LOAD and
3923         MASK_AVX256_SPLIT_UNALIGNED_STORE.
3925         * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
3926         Clear m_COREI7_AVX and update comments.
3927         (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
3929 2013-11-12  Martin Jambor  <mjambor@suse.cz>
3931         PR rtl-optimization/10474
3932         * ira.c (interesting_dest_for_shprep): New function.
3933         (split_live_ranges_for_shrink_wrap): Likewise.
3934         (find_moveable_pseudos): Move calculation of dominance info,
3935         df_analysios and the final anlyses to...
3936         (ira): ...here, call split_live_ranges_for_shrink_wrap.
3938 2013-11-12  Bin Cheng  <bin.cheng@arm.com>
3940         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
3941         Handle type conversion.
3943 2013-11-11  Martin Liska  <marxin.liska@gmail.com>
3944             Jan Hubicka  <jh@suse.cz>
3946         * cgraph.c (dump_cgraph_node): Profile dump added.
3947         * cgraph.h (struct cgraph_node): New time profile variable added.
3948         * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
3949         * gcov-io.h (gcov_type): New profiler type introduced.
3950         * ipa-profile.c (lto_output_node): Streaming for time profile added.
3951         (input_node): Time profiler is read from LTO stream.
3952         * predict.c (maybe_hot_count_p): Hot prediction changed.
3953         * profile.c (instrument_values): New case for time profiler added.
3954         (compute_value_histograms): Read of time profile.
3955         * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
3956         * tree-profile.c (init_ic_make_global_vars): Time profiler
3957         function added.
3958         (gimple_init_edge_profiler): TP function instrumentation.
3959         (gimple_gen_time_profiler): New.
3960         * value-prof.c (gimple_add_histogram_value): Support for time profiler
3961         added.
3962         (dump_histogram_value): TP type added to dumps.
3963         (visit_hist): More sensitive check that takes TP into account.
3964         (gimple_find_values_to_profile): TP instrumentation.
3965         * value-prof.h (hist_type): New histogram type added.
3966         (struct histogram_value_t): Pointer to struct function added.
3967         * libgcc/Makefile.in: New GCOV merge function for TP added.
3968         * libgcov.c: function_counter variable introduced.
3969         (_gcov_merge_time_profile): New.
3970         (_gcov_time_profiler): New.
3972 2013-11-11  Marc Glisse  <marc.glisse@inria.fr>
3973             Jeff Law  <law@redhat.com>
3975         * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
3976         ao_ref_init_from_ptr_and_size for builtins.
3978 2013-11-11  Uros Bizjak  <ubizjak@gmail.com>
3979             H.J. Lu  <hongjiu.lu@intel.com>
3981         PR target/58853
3982         * config/i386/x86-tune.def
3983         (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
3984         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
3985         * config/i386/i386.h
3986         (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
3987         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES.  Update for renamed
3988         X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
3989         * config/i386/i386.c (ix86_expand_set_or_movmem): Use
3990         TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
3991         misaligned_prologue_used.  Check that
3992         desired_aling <= epilogue_size_needed.
3994 2013-11-11  Cong Hou  <congh@google.com>
3996         PR tree-optimization/59050
3997         * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
3999 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
4001         PR middle-end/59049
4002         * expmed.c (emit_store_flag): Fail for const-const comparison.
4004 2013-11-11  Tristan Gingold  <gingold@adacore.com>
4005             Eric Botcazou  <ebotcazou@adacore.com>
4007         * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
4008         * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
4009         * tree.def (CONSTRUCTOR): Likewise.
4010         * doc/generic.texi (CONSTRUCTOR): Likewise.  Update description.
4011         * gimplify.c (gimplify_init_constructor): Do not clear the object when
4012         the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
4014 2013-11-11  Basile Starynkevitch  <basile@starynkevitch.net>
4016         * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
4017         diagnostic_finish.
4019 2013-11-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4021         * config/arm/arm.c (arm_new_rtx_costs): Return after handling
4022         comparisons.
4024 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
4026         * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
4028 2013-11-08  Jeff Law  <law@redhat.com>
4030         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
4031         threading paths first, then perform PHI node checks if applicable.
4033 2013-11-10  Karlson2k  <k2k@narod.ru>
4034             Kai Tietz  <ktietz@redhat.com>
4036         PR plugin/52872
4037         * configure.ac: Adding for exported symbols check
4038         and for rdynamic-check executable-extension.
4039         * configure: Regenerated.
4041 2013-11-10  Uros Bizjak  <ubizjak@gmail.com>
4043         * mode-switching.c (optimize_mode_switching): Mark block as
4044         nontransparent, if last_mode at block exit is different from no_mode.
4046 2013-11-09  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
4048         * function.c (NAME__MAIN): Move to...
4049         * cfgexpand.c (NAME__MAIN): ...here.
4051 2013-11-09  Richard Sandiford  <rdsandiford@googlemail.com>
4053         * target.def (can_use_doloop_p): New hook.
4054         * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
4055         * doc/tm.texi: Regenerate.
4056         * doc/md.texi (doloop_begin, doloop_end): Update documentation.
4057         * hooks.h (hook_bool_dint_dint_uint_true): Declare.
4058         * hooks.c (hook_bool_dint_dint_uint_true): New function.
4059         * targhooks.h (can_use_doloop_if_innermost): Declare.
4060         * targhooks.c (can_use_doloop_if_innermost): New function.
4061         * target.h: Include double-int.h.
4062         * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
4063         Remove iteration count, maximum iteration count, loop depth and
4064         enter-at-top inputs from doloop_begin and doloop_end.
4065         * config/arc/arc.md (doloop_begin, doloop_end): Update for new
4066         interface.
4067         * config/arc/arc.c (arc_can_use_doloop_p): New function.
4068         (TARGET_CAN_USE_DOLOOP_P): Define.
4069         * config/arm/thumb2.md (doloop_end): Update for new interface.
4070         * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
4071         * config/bfin/bfin.md (doloop_end): Update for new interface.
4072         * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
4073         (TARGET_CAN_USE_DOLOOP_P): Define.
4074         * config/c6x/c6x.md (doloop_end): Update for new interface.
4075         * config/ia64/ia64.md (doloop_end): Update for new interface.
4076         * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
4077         * config/mep/mep.md (doloop_begin, doloop_end): Update for new
4078         interface.
4079         * config/mep/mep.c (mep_emit_doloop): Likewise.
4080         (TARGET_CAN_USE_DOLOOP_P): Define.
4081         * config/rs6000/rs6000.md (doloop_end): Update for new interface.
4082         * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
4083         * config/s390/s390.md (doloop_end): Update for new interface.
4084         * config/sh/sh.md (doloop_end): Likewise.
4085         * config/spu/spu.md (doloop_end): Likewise.
4086         * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
4087         * config/tilegx/tilegx.md (doloop_end): Update for new interface.
4088         * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
4089         * config/tilepro/tilepro.md (doloop_end): Update for new interface.
4090         * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
4091         * config/v850/v850.md (doloop_begin, doloop_end): Update for new
4092         interface.
4093         * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
4095 2013-11-08  H.J. Lu  <hongjiu.lu@intel.com>
4097         PR other/59055
4098         * doc/extend.texi: Move Cilk Plus Builtins node before Other
4099         Builtins node.
4101 2013-11-08  Andrew MacLeod  <amacleod@redhat.com>
4102             Joseph Myers  <joseph@codesourcery.com>
4104         * ginclude/stdatomic.h: New file.
4105         * Makefile.in (USER_H): Add stdatomic.h.
4107 2013-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4109         * config/arm/arm.c (arm_new_rtx_costs): Break after handling
4110         comparisons.
4112 2013-11-08  Jeff Law  <law@redhat.com>
4114         * tree-ssa-threadupdate.h (delete_thread_path): Declare.
4115         * tree-ssa-threadupdate.c (delete_thread_path): New function.
4116         (ssa_redirect_edges, thread_block_1): Use it.
4117         (thread_through_loop_header, mark_threaded_blocks): Likewise.
4118         (thread_through_all_blocks, register_jump_thread): Likewise.
4119         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
4121 2013-11-08  James Greenhalgh  <james.greenhalgh@arm.com>
4123         * config/arm/aarch-common.c
4124         (search_term): New typedef.
4125         (shift_rtx_costs): New array.
4126         (arm_rtx_shift_left_p): New.
4127         (arm_find_sub_rtx_with_search_term): Likewise.
4128         (arm_find_sub_rtx_with_code): Likewise.
4129         (arm_early_load_addr_dep): Add sanity checking.
4130         (arm_no_early_alu_shift_dep): Likewise.
4131         (arm_no_early_alu_shift_value_dep): Likewise.
4132         (arm_no_early_mul_dep): Likewise.
4133         (arm_no_early_store_addr_dep): Likewise.
4135 2013-11-08  Richard Biener  <rguenther@suse.de>
4137         PR tree-optimization/59047
4138         * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
4140 2013-11-08  Ilya Enkovich  <ilya.enkovich@intel.com>
4142         * common.opt (fcheck-pointer-bounds): Move to ...
4143         * c-family/c.opt: ... here.
4144         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
4145         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
4146         * langhooks.h (lang_hooks): Remove chkp_supported field.
4147         * toplev.c (process_options): Remove chkp_supported check.
4149 2013-11-08  Richard Biener  <rguenther@suse.de>
4151         PR tree-optimization/59038
4152         PR tree-optimization/58955
4153         * tree-loop-distribution.c (pg_add_dependence_edges): Revert
4154         previous change.  Handle known dependences correctly.
4156 2013-11-08  Tom de Vries  <tom@codesourcery.com>
4158         * config/rs6000/t-xilinx: Remove duplicate contents.
4160 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
4161             Joseph Myers  <joseph@codesourcery.com>
4163         * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
4164         (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
4165         TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
4166         (struct tree_base): Add atomic_flag field.
4167         * tree.h (TYPE_ATOMIC): New accessor macro.
4168         (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
4169         (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
4170         (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
4171         (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
4172         * tree.c (set_type_quals): Set TYPE_ATOMIC.
4173         (find_atomic_core_type): New function.
4174         (build_qualified_type): Adjust alignment for qualified types.
4175         (build_atomic_base): New function
4176         (build_common_tree_nodes): Build atomicQI_type_node,
4177         atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
4178         atomicTI_type_node.
4179         * print-tree.c (print_node): Print atomic qualifier.
4180         * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
4181         * target.def (atomic_assign_expand_fenv): New hook.
4182         * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
4183         * doc/tm.texi: Regenerate.
4184         * targhooks.c (default_atomic_assign_expand_fenv): New function.
4185         * targhooks.h (default_atomic_assign_expand_fenv): Declare.
4186         * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
4187         * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
4188         function type.
4189         * config/i386/i386.c (enum ix86_builtins): Add
4190         IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
4191         IX86_BUILTIN_FNCLEX.
4192         (bdesc_special_args): Add __builtin_ia32_fnstenv,
4193         __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
4194         (ix86_expand_builtin): Handle the new built-in functions.
4195         (ix86_atomic_assign_expand_fenv): New function.
4196         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
4197         * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
4198         (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
4199         (fnstenv, fldenv, fnstsw, fnclex): New insns.
4201 2013-11-07  Steve Ellcey  <sellcey@mips.com>
4203         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
4204         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
4205         (MULTILIB_DIRNAMES): Add fp64 directory.
4206         (MULTILIB_EXCEPTIONS): Add new exclusions.
4208 2013-11-07  Aldy Hernandez  <aldyh@redhat.com>
4210         * gimplify.c (gimple_regimplify_operands): Do not set
4211         SSA_NAME_DEF_STMT.
4212         * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
4213         (rewrite_close_phi_out_of_ssa): Same.
4214         (rewrite_phi_out_of_ssa): Same.
4215         (rewrite_degenerate_phi): Same.
4216         (handle_scalar_deps_crossing_scop_limits): Same.
4217         * tree-if-conv.c (predicate_scalar_phi): Same.
4218         * tree-parloops.c (create_loads_for_reductions): Same.
4219         (create_final_loads_for_reduction): Same.
4220         (create_loads_and_stores_for_name): Same.
4221         (transform_to_exit_first_loop): Same.
4222         (create_parallel_loop): Same.
4223         * tree-ssa-loop-im.c
4224         (move_computations_dom_walker::before_dom_children): Same.
4225         * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
4226         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
4227         * tree-ssa-propagate.c (substitute_and_fold): Same.
4228         * tree-vect-loop.c (vect_finalize_reduction): Same.
4229         * tree-vect-stmts.c (vectorizable_call): Same.
4231 2013-11-07  Mike Stump  <mikestump@comcast.net>
4233         * config/pdp11/pdp11.c: Include dbxout.h.
4234         * config/picochip/picochip.c: Likewise.
4236 2013-11-07  Cong Hou  <congh@google.com>
4238         PR tree-optimization/56764
4239         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
4240         Combine alias checks if it is possible to amortize the runtime
4241         overhead.  Return the number of alias checks after merging.
4242         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
4243         Use the function vect_create_cond_for_alias_checks () to check
4244         the number of alias checks.
4246 2013-11-07  Jeff Law  <law@redhat.com>
4248         * varpool.c (ctor_for_folding): Fix typo in comment.
4250 2013-11-07  Joern Rennecke  <joern.rennecke@embecosm.com>
4252         * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
4253         reg_a := reg_b + reg_a  ==>  reg_a := reg_a + reg_b
4255 2013-11-07  Jeff Law  <law@redhat.com>
4257         * doc/invoke.texi (-fisolate-erroneous-paths): Document.
4259         * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
4260         No longer check if we have __builtin_trap, assume it's available.
4262 2013-11-07  Diego Novillo  <dnovillo@google.com>
4264         * attribs.c (lookup_scoped_attribute_spec): Make static.
4265         (get_attribute_namespace): Likewise.
4266         * builtins.c (more_const_call_expr_args_p): Move from tree.h.
4267         (validate_arglist): Move earlier in the file. Make static.
4268         (expand_stack_restore): Move from stmt.c
4269         (expand_stack_save): Move from stmt.c
4270         (rewrite_call_expr_array): Move earlier in the file.
4271         (rewrite_call_expr_valist): Likewise.
4272         * cfgexpand.c: Include hard-reg-set.h before tree.h
4273         Include recog.h.
4274         Include output.h.
4275         (expand_asm_loc): Move from stmt.c.
4276         (n_occurrences): Move from stmt.c.
4277         (check_operand_nalternatives): Move from stmt.c.
4278         (tree_conflicts_with_clobbers_p): Move from stmt.c.
4279         (expand_asm_operands): Move from stmt.c
4280         (expand_asm_stmt): Move from stmt.c
4281         (expand_computed_goto): Move from stmt.c
4282         (expand_goto): Move from stmt.c
4283         (expand_null_return_1): Move from stmt.c
4284         (expand_null_return): Move from stmt.c
4285         (expand_value_return): Move from stmt.c
4286         (expand_return): Move from stmt.c
4287         (expand_main_function): Move from function.c
4288         (stack_protect_prologue): Move from function.c
4289         * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
4290         (build_function_decl_skip_args): Move from tree.c.
4291         * explow.c (tree_expr_size): Move from tree.c.
4292         * expr.c (addr_expr_of_non_mem_decl_p): Remove.
4293         (fields_length): Move from tree.c.
4294         * fold-const.c (size_low_cst): Move from tree.c.
4295         (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
4296         (tree_expr_nonzero_p): Make static. Move earlier in the file.
4297         (fold_build3_initializer_loc): Remove.
4298         (tree_invalid_nonnegative_warnv_p): Make static.
4299         * function.c (expand_main_function): Move to cfgexpand.c.
4300         (stack_protect_prologue): Move to cfgexpand.c.
4301         (set_insn_locations): Move earlier in the file.
4302         * gimple-fold.c: Include langhooks.h.
4303         (truth_type_for): Move from tree.c.
4304         * print-tree.c (print_vec_tree): Remove.
4305         * stmt.c (expand_computed_goto): Move to cfgexpand.c.
4306         (expand_goto): Move to cfgexpand.c.
4307         (n_occurrences): Move to cfgexpand.c.
4308         (expand_asm_loc): Move to cfgexpand.c
4309         (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
4310         (expand_asm_operands): Move to cfgexpand.c.
4311         (expand_asm_stmt): Move to cfgexpand.c.
4312         (check_operand_nalternatives): Move to cfgexpand.c
4313         (expand_null_return): Move to cfgexpand.c.
4314         (expand_value_return): Move to cfgexpand.c.
4315         (expand_null_return_1): Move to cfgexpand.c.
4316         (expand_return): Move to cfgexpand.c.
4317         (expand_stack_save): Move to builtins.c.
4318         (expand_stack_restore): Move to builtins.c
4319         * symtab.c: Include output.h.
4320         (decl_assembler_name_hash): Move from tree.c.
4321         (decl_assembler_name_equal): Move from tree.c.
4322         * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
4323         * tree-eh.c (in_array_bounds_p): Move from tree.c.
4324         (range_in_array_bounds_p): Move from tree.c.
4325         * tree-object-size.c (fini_object_sizes): Make static.
4326         * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
4327         * tree-vrp.c (ssa_name_nonnegative_p): Remove.
4328         * tree.c (decl_assembler_name_equal): Move to symtab.c.
4329         (tree_expr_size): Move to explow.c.
4330         (decl_assembler_name_hash): Move to symtab.c.
4331         (real_twop): Remove.
4332         (tree_expr_size): Move to explow.c.
4333         (stabilize_reference_1): Move earlier in the file. Make static.
4334         (omp_remove_redundant_declare_simd_attrs): Remove.
4335         (simple_cst_list_equal): Move earlier in the file. Make static.
4336         (size_low_cst): Move to fold-const.c.
4337         (build_type_no_quals): Remove.
4338         (build_function_type_skip_args): Move to cgraphclones.c.
4339         (build_function_decl_skip_args): Move to cgraphclones.c.
4340         (in_array_bounds_p): Move to tree-eh.c.
4341         (range_in_array_bounds_p): Move to tree-eh.c.
4342         (truth_type_for): Move to gimple-fold.c.
4343         (list_equal_p): Remove.
4344         * tree.h (decl_assembler_name_equal): Remove.
4345         (decl_assembler_name_hash): Remove.
4346         (truth_type_for): Remove.
4347         (build_type_no_quals): Remove.
4348         (build_function_decl_skip_args): Remove.
4349         (in_array_bounds_p): Remove.
4350         (range_in_array_bounds_p): Remove.
4351         (size_low_cst): Remove.
4352         (omp_remove_redundant_declare_simd_attrs): Remove.
4353         (tree_expr_size): Remove.
4354         (fields_length): Remove.
4355         (stabilize_reference_1): Remove.
4356         (expand_goto): Remove.
4357         (expand_stack_save): Remove.
4358         (expand_stack_restore): Remove.
4359         (expand_return): Remove.
4360         (fold_build3_initializer_loc): Remove.
4361         (tree_expr_nonzero_p): Remove.
4362         (tree_invalid_nonnegative_warnv_p): Remove.
4363         (tree_expr_nonzero_warnv_p): Remove.
4364         (fold_builtin_snprintf_chk): Remove.
4365         (validate_arglist): Remove.
4366         (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
4367         (simple_cst_list_equal): Remove.
4368         (real_twop): Remove.
4369         (expand_main_function): Remove.
4370         (stack_protect_prologue): Remove.
4371         (print_vec_tree): Remove.
4372         (lookup_scoped_attribute_spec): Remove.
4373         (get_attribute_namespace): Remove.
4374         (expand_computed_goto): Remove.
4375         (expand_asm_stmt): Remove.
4376         (list_equal_p): Remove.
4377         (ssa_name_nonnegative_p): Remove.
4378         (fini_object_sizes): Remove.
4379         (addr_expr_of_non_mem_decl_p): Remove.
4380         (is_tm_safe_or_pure): Move to trans-mem.c.
4381         (more_const_call_expr_args_p): Remove.
4382         (save_vtable_map_decl): Remove.
4384 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
4386         * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
4387         linker plugins, too.
4389         * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
4390         link to libgomp and its dependencies.
4391         * config/ia64/hpux.h (LIB_SPEC): Likewise.
4392         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
4393         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
4394         * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
4396 2013-11-07  Jakub Jelinek  <jakub@redhat.com>
4398         * tree-ssa-loop-niter.c: Include tree-ssanames.h.
4399         (determine_value_range): Add loop argument.  Use get_range_info to
4400         improve range.
4401         (bound_difference): Adjust caller.
4403 2013-11-07  Richard Biener  <rguenther@suse.de>
4404             Jakub Jelinek  <jakub@redhat.com>
4406         * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
4407         latches from header PHI arguments from the latch edge.
4409 2013-11-07  Paolo Carlini  <paolo.carlini@oracle.com>
4411         PR c++/58176
4412         * varasm.c (output_constant): Handle NULLPTR_TYPE.
4414 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
4416         * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
4417         misaligned_prologue_used when it has been set.
4419 2013-11-07  Yury Gribov  <y.gribov@samsung.com>
4420             Jakub Jelinek  <jakub@redhat.com>
4422         PR sanitizer/59029
4423         * asan.c (get_mem_refs_of_builtin_call): Allow
4424         integer literals as addresses in instrumented builtins.
4426 2013-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4428         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
4429         Explain why plus_constant is not used.
4431 2013-11-07  Richard Biener  <rguenther@suse.de>
4433         * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
4434         (canonicalize_value): ... this.  Also handle stripping of
4435         TREE_OVERFLOW.
4436         (get_value, set_lattice_value, get_value_for_expr): Adjust.
4437         * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
4438         * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
4440 2013-11-07  Richard Biener  <rguenther@suse.de>
4442         * tree-dfa.c (get_ref_base_and_extent): Fix casting.
4444 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
4446         PR target/59034
4447         * config/i386/i386.md (push peepholer/splitter): Use Pmode
4448         with stack_pointer_rtx.
4450 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
4452         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
4453         using operand_equal_p.
4455 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
4457         * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
4458         * tree-affine.c (get_inner_reference_aff): Return base.
4459         * tree-affine.h (get_inner_reference_aff): Change prototype.
4461 2013-11-06  Tobias Burnus  <burnus@net-b.de>
4463         * doc/invoke.texi (Wdate-time): Fix typo.
4465 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
4467         * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
4468         cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
4469         fp_arith_reg_operand instead of arith_reg_operand.
4471 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
4473         * config/sh/sh.md (adddi3): Remove empty constraints.
4474         Remove can_create_pseudo_p and arith_reg_operand check.
4475         (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
4476         Split before reload.
4478 2013-11-06  Jeff Law  <law@redhat.com>
4479             Tom Tromey  <tromey@redhat.com>
4481         * gdbinit.in: Disable strict type checking.
4483 2013-11-06  Vladimir Makarov  <vmakarov@redhat.com>
4485         * tree-pass.h (make_pass_live_range_shrinkage): New external.
4486         * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
4487         * sched-rgn.c (gate_handle_live_range_shrinkage): New.
4488         (rest_of_handle_live_range_shrinkage): Ditto
4489         (class pass_live_range_shrinkage): Ditto.
4490         (pass_data_live_range_shrinkage): Ditto.
4491         (make_pass_live_range_shrinkage): Ditto.
4492         * sched-int.h (initialize_live_range_shrinkage): New prototype.
4493         (finish_live_range_shrinkage): Ditto.
4494         * sched-deps.c (create_insn_reg_set): Make void return value.
4495         * passes.def: Add pass_live_range_shrinkage.
4496         * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
4497         * haifa-sched.c (live_range_shrinkage_p): New.
4498         (initialize_live_range_shrinkage, finish_live_range_shrinkage):
4499         New functions.
4500         (rank_for_schedule): Add code for pressure relief through live
4501         range shrinkage.
4502         (schedule_insn): Print more debug info.
4503         (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
4504         through live range shrinkage.
4505         * doc/invoke.texi (-flive-range-shrinkage): New.
4506         * common.opt (flive-range-shrinkage): New.
4508 2013-11-06  Uros Bizjak  <ubizjak@gmail.com>
4510         PR target/59021
4511         * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
4512         AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
4513         (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
4514         RTXes that return in AVX256 register.
4516 2013-11-06  Richard Biener  <rguenther@suse.de>
4518         PR tree-optimization/58653
4519         * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
4520         (prepare_initializers_chain): Adjust.
4522 2013-11-06  Andrew MacLeod  <amacleod@redhat.com>
4524         * gimple.h (block_in_transaction): Move to basic-block.h and rename.
4525         (gimple_in_transaction): Use bb_in_transaction.
4526         * basic-block.h (bb_in_transaction): Relocate here and rename.
4527         * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
4529 2013-11-06  Richard Biener  <rguenther@suse.de>
4531         * tree.c (drop_tree_overflow): New function.
4532         * tree.h (drop_tree_overflow): Declare.
4533         * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
4534         * tree-vrp.c (range_int_cst_singleton_p): Use
4535         is_overflow_infinity instead of testing TREE_OVERFLOW.
4536         (extract_range_from_assert): Likewise.
4537         (zero_nonzero_bits_from_vr): Likewise.
4538         (extract_range_basic): Likewise.
4539         (register_new_assert_for): Use drop_tree_overflow.
4540         (vrp_visit_phi_node): Likewise.
4542 2013-11-06  Eric Botcazou  <ebotcazou@adacore.com>
4544         * config/i386/i386.c (ix86_expand_prologue): Optimize stack
4545         checking for leaf functions without dynamic stack allocation.
4546         * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
4547         (ia64_expand_prologue): Likewise.
4548         * config/mips/mips.c (mips_expand_prologue): Likewise.
4549         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4550         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4551         (sparc_flat_expand_prologue): Likewise.
4553 2013-11-06  James Greenhalgh  <james.greenhalgh@arm.com>
4555         * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
4556         (__ST3_LANE_FUNC): Likewise.
4557         (__ST4_LANE_FUNC): Likewise.
4559 2013-11-06  Nick Clifton  <nickc@redhat.com>
4561         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
4562         name returned by msp430_mcu_name.
4563         (LIB_SPEC): If a -T option has not been specified then set a
4564         default, mcu-specific, linker script.
4565         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
4566         * config/msp430/msp430.c (msp430x_names): Likewise.
4567         Alpha sort the names for ease of comparison.
4568         (msp430_mcu_name): New function:  Returns a string suitable for
4569         use as a C preprocessor symbol based upon the name of the MCU
4570         being targeted.
4571         (msp430_option_override): Accept msp430x and msp430xv2 as generic
4572         mcu names.
4573         * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
4575         * gcc.c (do_spec_1): Do not insert a space after a %* substitution
4576         unless it is the last part of a spec substring.
4577         * doc/invoke.texi (Spec Files): Document space insertion
4578         behaviour of %*.
4580 2013-11-06  Christian Bruel  <christian.bruel@st.com>
4582         * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
4583         Factorize probabilities, Use adjust_address instead of
4584         adjust_automodify_address when possible. Enable for optimize.
4585         (sh_expand_strlen): New function.
4586         * config/sh/sh-protos.h (sh_expand_strlen): Declare.
4587         * config/sh/sh.md (strlensi): New pattern.
4588         (UNSPEC_BUILTIN_STRLEN): Define.
4590 2013-11-06  Jakub Jelinek  <jakub@redhat.com>
4592         PR middle-end/58970
4593         * expr.c (get_bit_range): Handle *offset == NULL_TREE.
4594         (expand_assignment): If *bitpos is negative, set *offset
4595         and adjust *bitpos, so that it is not negative.
4597 2013-11-06  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
4599         * config/i386/bdver3.md : Added two additional decoder units
4600         to support issue rate of 4 and remodeled vector unit.
4601         * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
4602         architectures is set to 4.
4603         * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
4604         lookahead is set to 4 for BD architectures.
4606 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4608         * config/rs6000/rs6000.c (rs6000_option_override_internal):
4609         Remove restriction against use of VSX instructions when generating
4610         code for little endian mode.
4612 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4614         * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
4615         for both big and little endian.
4616         (mulv8hi3): Swap input operands for merge high and merge low
4617         instructions for little endian.
4619 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4621         * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
4622         define_insn to define_expand that uses even patterns for big
4623         endian and odd patterns for little endian.
4624         (vec_widen_smult_even_v16qi): Likewise.
4625         (vec_widen_umult_even_v8hi): Likewise.
4626         (vec_widen_smult_even_v8hi): Likewise.
4627         (vec_widen_umult_odd_v16qi): Likewise.
4628         (vec_widen_smult_odd_v16qi): Likewise.
4629         (vec_widen_umult_odd_v8hi): Likewise.
4630         (vec_widen_smult_odd_v8hi): Likewise.
4631         (altivec_vmuleub): New define_insn.
4632         (altivec_vmuloub): Likewise.
4633         (altivec_vmulesb): Likewise.
4634         (altivec_vmulosb): Likewise.
4635         (altivec_vmuleuh): Likewise.
4636         (altivec_vmulouh): Likewise.
4637         (altivec_vmulesh): Likewise.
4638         (altivec_vmulosh): Likewise.
4640 2013-11-05  Mike Stump  <mikestump@comcast.net>
4642         * Makefile.in (mostlyclean): Remove c-family objects.
4644 2013-11-05  Ian Lance Taylor  <iant@google.com>
4646         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
4647         If possible, add .cfi directives to record change to bx.
4648         * config/i386/i386.c (ix86_emit_cfi): New function.
4649         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
4651 2013-11-05  Steven Bosscher  <steven@gcc.gnu.org>
4653         * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
4654         immediately after a label for a tablejump pattern.
4656         * config/arm/arm.c (is_jump_table): Remove.
4657         (create_fix_barrier): Use tablejump_p instead.
4658         (arm_reorg): Likewise.
4659         (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
4660         (thumb2_output_casesi): Likewise.
4661         * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
4662         * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
4663         casesi_shift_media, casesi_load_media): Likewise.
4664         * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
4665         * config/microblaze/microblaze.md: Likewise.
4667 2013-11-05  Tobias Burnus  <burnus@net-b.de>
4669         * doc/invoke.texi (-Wdate-time): Document.
4671 2013-11-05  Richard Sandiford  <rdsandiford@googlemail.com>
4673         * double-int.c (lshift_double, rshift_double): Remove
4674         SHIFT_COUNT_TRUNCATED handling.
4676 2013-11-05  Jeff Law  <law@redhat.com>
4678         * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
4679         * common.opt (-fisolate-erroneous-paths): Add option and documentation.
4680         * gimple-ssa-isolate-paths.c: New file.
4681         * gimple.c (check_loadstore): New function.
4682         (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
4683         Verify OP is in the argument list and the argument corresponding
4684         to OP is a pointer type.  Use operand_equal_p rather than
4685         pointer equality when testing if OP is on the nonnull list.
4686         Use check_loadstore rather than count_ptr_derefs.  Handle
4687         GIMPLE_RETURN statements.
4688         * tree-vrp.c (infer_nonnull_range): Remove.
4689         * gimple.h (infer_nonnull_range): Declare.
4690         * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
4691         * passes.def: Add pass_isolate_erroneous_paths.
4692         * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
4693         * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
4694         * tree-ssa.c (struct count_ptr_d): Remove.
4695         (count_ptr_derefs, count_uses_and_derefs): Remove.
4696         * tree-ssa.h (count_uses_and_derefs): Remove.
4698 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
4700         PR rtl-optimization/58997
4701         * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
4702         get_iv_value to be in iv->mode rather than iv->extend_mode.
4703         (iv_extend): Likewise.  Otherwise, if iv->extend != extend,
4704         use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
4705         * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
4706         mode.
4708 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
4710         * gimple.h: Move some prototypes to gimple-expr.h and add to include
4711         list.
4712         (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
4713         Move to gimple-expr.h.
4714         * gimple-expr.h: New file.  Relocate some prototypes from gimple.h.
4715         (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
4716         is_gimple_id, virtual_operand_p, is_gimple_addressable,
4717         is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
4718         Relocate here.
4719         * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
4720         gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
4721         is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
4722         is_gimple_address, is_gimple_invariant_address,
4723         is_gimple_ip_invariant_address, is_gimple_min_invariant,
4724         is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
4725         virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
4726         is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
4727         gimple_decl_printable_name, useless_type_conversion_p,
4728         types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
4729         gimple-expr.[ch].
4730         * gimple-expr.c: New File.
4731         (useless_type_conversion_p, gimple_set_body, gimple_body,
4732         gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
4733         gimple_can_coalesce_p, extract_ops_from_tree_1,
4734         gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
4735         is_gimple_address, is_gimple_invariant_address,
4736         is_gimple_ip_invariant_address, is_gimple_min_invariant,
4737         is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
4738         is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
4739         is_gimple_mem_ref_addr): Relocate here.
4740         * Makefile.in (OBJS): Add gimple-expr.o.
4742 2013-11-05  David Malcolm  <dmalcolm@redhat.com>
4744         * gengtype-parse.c (struct_field_seq): Support empty structs.
4746 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
4748         * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
4750 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
4752         * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
4753         for !TARGET_80387.
4754         * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
4755         _SOFT_FLOAT here.
4756         (LONG_DOUBLE_TYPE_SIZE): New define.
4757         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
4759 2013-11-05  Paolo Carlini  <paolo.carlini@oracle.com>
4761         PR c++/58724
4762         * doc/extend.texi [visibility ("visibility_type")]: Add example
4763         about visibility attribute on namespace declaration.
4765 2013-11-05  Richard Biener  <rguenther@suse.de>
4767         PR ipa/58492
4768         * passes.def (all_passes): Start with pass_fixup_cfg again.
4770 2013-11-05  Richard Biener  <rguenther@suse.de>
4772         PR tree-optimization/58955
4773         * tree-loop-distribution.c (pg_add_dependence_edges): Fix
4774         edge direction.
4776 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4778         * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
4779         little endian.
4780         (vec_pack_ufix_trunc_v2df): Likewise.
4782 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
4784         PR middle-end/58981
4785         * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
4786         pattern, instead of word_mode.
4788         * expr.c (emit_block_move_via_movmem): Don't use mode wider than
4789         Pmode for size.
4790         (set_storage_via_setmem): Likewise.
4792 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
4794         * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
4795         gimple.h and the rest of the condition in eliminate_build.
4796         (eliminate_build): Call new routine.
4797         * gimple.h (phi_ssa_name_p): Delete.
4799 2013-11-05  Trevor Saunders  <tsaunders@mozilla.com>
4801         * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
4802         case of no prefix and reserving zero slots, because when that's the
4803         case we'll never get here.
4804         * vec.h (va_heap::reserve): Don't try and handle
4805         vec_prefix::calculate_allocation returning zero because that should
4806         never happen.
4808 2013-11-05  Richard Biener  <rguenther@suse.de>
4810         PR middle-end/58941
4811         * tree-dfa.c (get_ref_base_and_extent): Merge common code
4812         in MEM_REF and TARGET_MEM_REF handling.  Make sure to
4813         process trailing array detection before diving into the
4814         view-converted object (and possibly apply some extra offset).
4816 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
4818         * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
4819         New function.
4820         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
4822 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
4824         PR tree-optimization/58958
4825         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
4826         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
4828 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
4830         * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
4831         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
4833 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
4835         PR tree-optimization/58984
4836         * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
4837         set *SIZE_P if non-NULL on success.
4838         (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
4839         callers.
4840         (ipcp_transform_function): Likewise.  Punt if size of access
4841         is different from TYPE_SIZE on v->value's type.
4843 2013-11-05  Tobias Burnus  <burnus@net-b.de>
4845         * doc/invoke.texi (-fopenmp-simd): Document new option.
4846         * gimplify.c (gimplify_body): Accept -fopenmp-simd.
4847         * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
4848         * tree.c (attribute_value_equal): Ditto.
4850 2013-11-04  Wei Mi  <wmi@google.com>
4852         * sched-rgn.c (add_branch_dependences): Keep insns in
4853         a SCHED_GROUP at the end of BB to remain their location.
4855 2013-11-04  Wei Mi  <wmi@google.com>
4857         * config/i386/i386.c (memory_address_length): Extract a part
4858         of code to rip_relative_addr_p.
4859         (rip_relative_addr_p): New Function.
4860         (ix86_macro_fusion_p): Ditto.
4861         (ix86_macro_fusion_pair_p): Ditto.
4862         * config/i386/i386.h: Add new tune features about macro-fusion.
4863         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
4864         * doc/tm.texi: Generated.
4865         * doc/tm.texi.in: Ditto.
4866         * haifa-sched.c (try_group_insn): New Function.
4867         (group_insns_for_macro_fusion): Ditto.
4868         (sched_init): Call group_insns_for_macro_fusion.
4869         * target.def: Add two hooks: macro_fusion_p and
4870         macro_fusion_pair_p.
4872 2013-11-04  Kostya Serebryany  <kcc@google.com>
4874         Update to match the changed asan API.
4875         * asan.c (asan_function_start): New function.
4876         (asan_emit_stack_protection): Update the string stored in the
4877         stack red zone to match new API.  Store the PC of the current
4878         function in the red zone.
4879         (asan_global_struct): Update the __asan_global definition to match
4880         the new API.
4881         (asan_add_global): Ditto.
4882         * asan.h (asan_function_start): New prototype.
4883         * final.c (final_start_function): Call asan_function_start.
4884         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
4885         to __asan_init_v3.
4887 2013-11-04  Wei Mi  <wmi@google.com>
4889         * config/i386/i386-c.c (ix86_target_macros_internal): Separate
4890         PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
4891         * config/i386/i386.c (ix86_option_override_internal): Ditto.
4892         (ix86_issue_rate): Ditto.
4893         (ix86_adjust_cost): Ditto.
4894         (ia32_multipass_dfa_lookahead): Ditto.
4895         (ix86_sched_init_global): Ditto.
4896         (get_builtin_code_for_version): Ditto.
4897         * config/i386/i386.h (enum target_cpu_default): Ditto.
4898         (enum processor_type): Ditto.
4899         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
4901 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
4903         PR rtl-optimization/58967
4904         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
4905         !lra_in_progress for mode sizes bigger word.
4907 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4909         * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
4910         arguments to merge instruction for little endian.
4911         (vec_widen_umult_lo_v16qi): Likewise.
4912         (vec_widen_smult_hi_v16qi): Likewise.
4913         (vec_widen_smult_lo_v16qi): Likewise.
4914         (vec_widen_umult_hi_v8hi): Likewise.
4915         (vec_widen_umult_lo_v8hi): Likewise.
4916         (vec_widen_smult_hi_v8hi): Likewise.
4917         (vec_widen_smult_lo_v8hi): Likewise.
4919 2013-11-04  Ian Lance Taylor  <iant@google.com>
4921         * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
4922         * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
4923         builtins that take pointers.
4924         * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
4925         * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
4926         (run_gcc): Pass -fnon-call-exceptions.
4928 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
4930         * optabs.c (expand_vec_perm): Revert one incorrect line from
4931         2013-10-31 change.
4933         PR tree-optimization/58978
4934         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
4935         use_stmt by single_imm_use directly.  Only call single_imm_use
4936         on SSA_NAMEs.
4938 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
4940         PR rtl-optimization/58968
4941         * lra-spills.c (return_regno_p): New function.
4942         (lra_final_code_change): Use it.
4944 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
4946         * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
4947         * target.def (float_exceptions_rounding_supported_p): New hook.
4948         * targhooks.c (default_float_exceptions_rounding_supported_p): New
4949         function.
4950         * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
4951         * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
4952         New @hook.
4953         * doc/tm.texi: Regenerate.
4954         * config.gcc (powerpc*-*-linux*): Set extra_objs.
4955         * config/rs6000/rs6000-linux.c: New file.
4956         * config/rs6000/rs6000-protos.h
4957         (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
4958         * config/rs6000/linux.h
4959         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
4960         * config/rs6000/linux64.h
4961         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
4962         * config/rs6000/t-linux (rs6000-linux.o): New rule.
4963         * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
4965 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4967         * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
4968         Replace the define_insn_and_split with a define_insn and two
4969         define_splits, with the split after reload re-permuting the source
4970         register to its original value.
4971         (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
4972         (*vsx_le_perm_store_v8hi): Likewise.
4973         (*vsx_le_perm_store_v16qi): Likewise.
4975 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4977         * config/rs6000/vector.md (vec_pack_trunc_v2df):  Adjust for
4978         little endian.
4980 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
4982         PR tree-optimization/58946
4983         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
4984         bbs with bbinfo[idx].op != NULL before all blocks with
4985         bbinfo[idx].op == NULL.
4987 2013-11-04  Richard Sandiford  <rdsandiford@googlemail.com>
4989         * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
4990         (avr_dump_double_int_hex): Likewise.
4991         (avr_log_vadump): Remove %D and %X handling.
4992         * config/avr/avr.c (avr_double_int_push_digit): Delete.
4993         (avr_map_op_t): Change map from double_int to unsigned int.
4994         (avr_map_op): Update accordingly.
4995         (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
4996         (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
4997         unsigned ints rather than double_ints.
4999 2013-11-03  Marek Polacek  <polacek@redhat.com>
5001         Implement -fsanitize=vla-bound.
5002         * opts.c (common_handle_option): Handle vla-bound.
5003         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
5004         * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
5005         * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
5007 2013-11-02  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
5009         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
5010         little endian.
5012 2013-11-02  Uros Bizjak  <ubizjak@gmail.com>
5014         * config/i386/constraints.md (Ts, Tv): New address constrains.
5015         * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
5016         constraint for address_no_seg_operand.
5017         * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
5018         (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
5019         (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
5020         (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
5021         (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
5022         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
5023         (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
5024         (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
5025         constraint for vsib_address_operand.
5027 2013-11-02  Steven Bosscher  <steven@gcc.gnu.org>
5029         * gcse.c (pre_delete): Remove references to regmove from comments.
5030         * recog.c: (validate_replace_rtx_1): Likewise.
5031         * config/rl78/rl78.c: Likewise.
5032         * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
5033         * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
5034         * common/config/mmix/mmix-common.c: Likewise.
5036 2013-11-01  Trevor Saunders  <tsaunders@mozilla.com>
5038         * function.c (reorder_blocks): Convert block_stack to a stack_vec.
5039         * gimplify.c (gimplify_compound_lval): Likewise.
5040         * graphite-clast-to-gimple.c (gloog): Likewise.
5041         * graphite-dependences.c (loop_is_parallel_p): Likewise.
5042         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
5043         (limit_scop); Likewise.
5044         (build_scops): Likewise.
5045         (dot_scop): Likewise.
5046         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
5047         (build_scop_drs): Likewise.
5048         (insert_stmts): Likewise.
5049         (insert_out_of_ssa_copy): Likewise.
5050         (remove_phi): Likewise.
5051         (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
5052         * hw-doloop.c (discover_loop): Likewise.
5053         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
5054         * tree-dfa.c (dump_enumerated_decls): Likewise.
5055         * tree-if-conv.c (if_convertable_loop_p): Likewise.
5056         * tree-inline.c (tree_function_versioning): Likewise.
5057         * tree-loop-distribution.c (build_rdg): Likewise.
5058         (rdg_flag_vertex_and_dependent): Likewise.
5059         (distribute_loop): Likewise.
5060         * tree-parloops.c (loop_parallel_p): Likewise.
5061         (eliminate_local_variables): Likewise.
5062         (separate_decls_in_region): Likewise.
5063         * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
5064         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
5065         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
5066         * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
5067         * tree-vect-patterns.c (vect_pattern_recog): Likewise.
5068         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
5069         (vectorizable_condition): Likewise.
5071 2013-11-01  Uros Bizjak  <ubizjak@gmail.com>
5073         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
5074         * configure: Regenerate.
5075         * config/i386/i386.md (*movdi_internal): Change
5076         HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
5077         (*movdf_internal): Ditto.
5078         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
5079         * config/i386/sse.md (vec_concatv2di): Output interunit movq
5080         for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
5082 2013-10-31  Robert Suchanek  <Robert.Suchanek@imgtec.com>
5084         * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
5085         after comment.
5087 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
5089         Automated part of renaming of symtab_node_base to symtab_node.
5091         Patch autogenerated by rename_symtab.py from
5092         https://github.com/davidmalcolm/gcc-refactoring-scripts
5093         revision 58bb219cc090b2f4516a9297d868c245495ee622
5094         with ChangeLog entry fixed up by hand.
5096         * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
5097         symtab_node.
5098         (cgraph_node_for_asm): Likewise.
5099         * cgraph.h (symtab_node_base): Likewise.
5100         (cgraph_node): Likewise.
5101         (varpool_node): Likewise.
5102         (is_a_helper <cgraph_node>::test): Likewise.
5103         (is_a_helper <varpool_node>::test): Likewise.
5104         (symtab_nodes): Likewise.
5105         (symtab_register_node): Likewise.
5106         (symtab_unregister_node): Likewise.
5107         (symtab_remove_node): Likewise.
5108         (symtab_get_node): Likewise.
5109         (symtab_node_for_asm): Likewise.
5110         (symtab_node_asm_name): Likewise.
5111         (symtab_node_name): Likewise.
5112         (symtab_insert_node_to_hashtable): Likewise.
5113         (symtab_add_to_same_comdat_group): Likewise.
5114         (symtab_dissolve_same_comdat_group_list): Likewise.
5115         (dump_symtab_node): Likewise.
5116         (debug_symtab_node): Likewise.
5117         (dump_symtab_base): Likewise.
5118         (verify_symtab_node): Likewise.
5119         (verify_symtab_base): Likewise.
5120         (symtab_used_from_object_file_p): Likewise.
5121         (symtab_alias_ultimate_target): Likewise.
5122         (symtab_resolve_alias): Likewise.
5123         (fixup_same_cpp_alias_visibility): Likewise.
5124         (symtab_for_node_and_aliases): Likewise.
5125         (symtab_nonoverwritable_alias): Likewise.
5126         (availability symtab_node_availability): Likewise.
5127         (symtab_semantically_equivalent_p): Likewise.
5128         (fixup_same_cpp_alias_visibility): Likewise.
5129         (symtab_prevail_in_asm_name_hash): Likewise.
5130         (cgraph): Likewise.
5131         (varpool): Likewise.
5132         (varpool_first_variable): Likewise.
5133         (varpool_next_variable): Likewise.
5134         (varpool_first_static_initializer): Likewise.
5135         (varpool_next_static_initializer): Likewise.
5136         (varpool_first_defined_variable): Likewise.
5137         (varpool_next_defined_variable): Likewise.
5138         (cgraph_first_defined_function): Likewise.
5139         (cgraph_next_defined_function): Likewise.
5140         (cgraph_first_function): Likewise.
5141         (cgraph_next_function): Likewise.
5142         (cgraph_first_function_with_gimple_body): Likewise.
5143         (cgraph_next_function_with_gimple_body): Likewise.
5144         (symtab_alias_target): Likewise.
5145         (symtab_real_symbol_p): Likewise.
5146         (symtab_can_be_discarded): Likewise.
5147         * cgraphbuild.c (mark_address): Likewise.
5148         (mark_load): Likewise.
5149         (mark_store): Likewise.
5150         * cgraphunit.c (decide_is_symbol_needed): Likewise.
5151         (first): Likewise.
5152         (enqueue_node): Likewise.
5153         (referred_to_p): Likewise.
5154         (cgraph_process_same_body_aliases): Likewise.
5155         (analyze_functions): Likewise.
5156         (handle_alias_pairs): Likewise.
5157         (output_weakrefs): Likewise.
5158         (compile): Likewise.
5159         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
5160         * ipa-inline-analysis.c (inline_write_summary): Likewise.
5161         * ipa-prop.c (remove_described_reference): Likewise.
5162         (try_decrement_rdesc_refcount): Likewise.
5163         (ipa_edge_duplication_hook): Likewise.
5164         * ipa-ref.c (ipa_record_reference): Likewise.
5165         (ipa_maybe_record_reference): Likewise.
5166         (ipa_clone_ref): Likewise.
5167         (ipa_clone_references): Likewise.
5168         (ipa_clone_referring): Likewise.
5169         (ipa_find_reference): Likewise.
5170         (ipa_remove_stmt_references): Likewise.
5171         (ipa_clear_stmts_in_references): Likewise.
5172         * ipa-ref.h (symtab_node_base): Likewise.
5173         (ipa_ref): Likewise.
5174         (ipa_record_reference): Likewise.
5175         (ipa_maybe_record_reference): Likewise.
5176         (ipa_clone_references): Likewise.
5177         (ipa_clone_referring): Likewise.
5178         (ipa_clone_ref): Likewise.
5179         (ipa_find_reference): Likewise.
5180         (ipa_remove_stmt_references): Likewise.
5181         (ipa_clear_stmts_in_references): Likewise.
5182         * ipa-reference.c (ipa_reference_write_optimization_summary):
5183         Likewise.
5184         * ipa.c (enqueue_node): Likewise.
5185         (process_references): Likewise.
5186         (walk_polymorphic_call_targets): Likewise.
5187         (symtab_remove_unreachable_nodes): Likewise.
5188         (address_taken_from_non_vtable_p): Likewise.
5189         (comdat_can_be_unshared_p_1): Likewise.
5190         (comdat_can_be_unshared_p): Likewise.
5191         (can_replace_by_local_alias): Likewise.
5192         (function_and_variable_visibility): Likewise.
5193         * is-a.h: Likewise (within example in comment).
5194         * lto-cgraph.c (input_cgraph_opt_summary): 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         (output_refs): Likewise.
5200         (compute_ltrans_boundary): Likewise.
5201         (output_symtab): Likewise.
5202         (input_node): Likewise.
5203         (input_ref): Likewise.
5204         (input_edge): Likewise.
5205         (input_cgraph_1): Likewise.
5206         (input_refs): Likewise.
5207         (output_cgraph_opt_summary): Likewise.
5208         (input_node_opt_summary): Likewise.
5209         (input_cgraph_opt_section): Likewise.
5210         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
5211         Likewise.
5212         * lto-streamer-out.c (lto_output): Likewise.
5213         (output_symbol_p): Likewise.
5214         (produce_symtab): Likewise.
5215         * lto-streamer.h (lto_encoder_entry): Likewise.
5216         (lto_free_function_in_decl_state_for_node): Likewise.
5217         (lto_symtab_encoder_encode): Likewise.
5218         (lto_symtab_encoder_delete_node): Likewise.
5219         (lto_symtab_encoder_in_partition_p): Likewise.
5220         (lto_set_symtab_encoder_in_partition): Likewise.
5221         (lto_symtab_encoder_lookup): Likewise.
5222         (lsei_node): Likewise.
5223         (lto_symtab_encoder_deref): Likewise.
5224         * symtab.c (symtab_hash): Likewise.
5225         (assembler_name_hash): Likewise.
5226         (symtab_nodes): Likewise.
5227         (hash_node): Likewise.
5228         (eq_node): Likewise.
5229         (hash_node_by_assembler_name): Likewise.
5230         (eq_assembler_name): Likewise.
5231         (insert_to_assembler_name_hash): Likewise.
5232         (unlink_from_assembler_name_hash): Likewise.
5233         (symtab_prevail_in_asm_name_hash): Likewise.
5234         (symtab_register_node): Likewise.
5235         (symtab_insert_node_to_hashtable): Likewise.
5236         (symtab_unregister_node): Likewise.
5237         (symtab_get_node): Likewise.
5238         (symtab_remove_node): Likewise.
5239         (symtab_initialize_asm_name_hash): Likewise.
5240         (symtab_node_for_asm): Likewise.
5241         (symtab_add_to_same_comdat_group): Likewise.
5242         (symtab_dissolve_same_comdat_group_list): Likewise.
5243         (symtab_node_asm_name): Likewise.
5244         (symtab_node_name): Likewise.
5245         (dump_symtab_base): Likewise.
5246         (dump_symtab_node): Likewise.
5247         (dump_symtab): Likewise.
5248         (debug_symtab_node): Likewise.
5249         (verify_symtab_base): Likewise.
5250         (verify_symtab_node): Likewise.
5251         (verify_symtab): Likewise.
5252         (symtab_used_from_object_file_p): Likewise.
5253         (symtab_node_availability): Likewise.
5254         (symtab_alias_ultimate_target): Likewise.
5255         (fixup_same_cpp_alias_visibility): Likewise.
5256         (symtab_resolve_alias): Likewise.
5257         (symtab_for_node_and_aliases): Likewise.
5258         (symtab_for_node_and_aliases): Likewise.
5259         (symtab_nonoverwritable_alias_1): Likewise.
5260         (symtab_nonoverwritable_alias): Likewise.
5261         (symtab_semantically_equivalent_p): Likewise.
5262         * value-prof.c (init_node_map): Likewise.
5263         * varasm.c (find_decl): Likewise.
5264         * varpool.c (varpool_node_for_asm): Likewise.
5265         (varpool_remove_unreferenced_decls): Likewise.
5267 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
5269         Manual part of renaming of symtab_node_base to symtab_node.
5271         * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
5272         clashes with the preferred name for the base class.
5273         (const_symtab_node): Remove redundant typedef.
5275 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
5277         * optabs.c (expand_vec_perm): Avoid vector mode punning
5278         SUBREGs in SET_DEST.
5279         * expmed.c (store_bit_field_1): Likewise.
5280         * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
5281         vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
5282         vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
5283         * config/i386/i386.c (ix86_expand_vector_move_misalign,
5284         ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
5285         ix86_expand_sse_unpack, ix86_expand_args_builtin,
5286         ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
5287         emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
5288         expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
5289         expand_vec_perm_vpshufb2_vpermq,
5290         expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
5291         expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
5292         ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
5293         (expand_vec_perm_palignr): Likewise.  Modify a copy of *d rather
5294         than *d itself.
5296 2013-10-31  Uros Bizjak  <ubizjak@gmail.com>
5298         * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
5299         Use gcc_unreachable for unhandled modes.  Do not check results of
5300         expand_simple_binop.  If not expanded to target, move the result.
5302 2013-10-31  Chung-Ju Wu  <jasonwucj@gmail.com>
5303             Shiva Chen  <shiva0217@gmail.com>
5305         * config.gcc (nds32*-*-*): Add nds32 target.
5306         * config/nds32/nds32.c: New file.
5307         * config/nds32/nds32.h: New file.
5308         * config/nds32/nds32.md: New file.
5309         * config/nds32/constants.md: New file.
5310         * config/nds32/constraints.md: New file.
5311         * config/nds32/iterators.md: New file.
5312         * config/nds32/nds32-doubleword.md: New file.
5313         * config/nds32/nds32-intrinsic.md: New file.
5314         * config/nds32/nds32_intrinsic.h: New file.
5315         * config/nds32/nds32-modes.def: New file.
5316         * config/nds32/nds32-multiple.md: New file.
5317         * config/nds32/nds32.opt: New file.
5318         * config/nds32/nds32-opts.h: New file.
5319         * config/nds32/nds32-protos.h: New file.
5320         * config/nds32/nds32-peephole2.md: New file.
5321         * config/nds32/pipelines.md: New file.
5322         * config/nds32/predicates.md: New file.
5323         * config/nds32/t-mlibs: New file.
5324         * common/config/nds32: New directory and files.
5326         * doc/invoke.texi (NDS32 options): Document nds32 specific options.
5327         * doc/md.texi (NDS32 family): Document nds32 specific constraints.
5328         * doc/install.texi (Cross-Compiler-Specific Options): Document
5329         --with-nds32-lib for nds32 target.
5330         * doc/extend.texi (Function Attributes, Target Builtins): Document
5331         nds32 specific attributes.
5333 2013-10-31  Vladimir Makarov  <vmakarov@redhat.com>
5335         * lra-constraints (process_alt_operands): Use the result
5336         elimination register for operand when matching constraints.
5338 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
5340         * tree-vrp.c (maybe_set_nonzero_bits): New function.
5341         (remove_range_assertions): Call it.
5343         * tree.c (tree_ctz): New function.
5344         * tree.h (tree_ctz): New prototype.
5345         * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
5346         first argument from tree to const_tree.
5347         * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
5348         * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
5349         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
5350         static.
5351         * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
5352         * tree-vect-loop.c (vect_analyze_loop_operations,
5353         vect_transform_loop): Don't force scalar loop for bound just because
5354         number of iterations is unknown, only do it if it is not known to be
5355         a multiple of vectorization_factor.
5356         * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
5358         * gimple-pretty-print.c (dump_ssaname_info): Print newline also
5359         in case of VR_VARYING.  Print get_nonzero_bits if not all ones.
5360         * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
5361         (set_nonzero_bits, get_nonzero_bits): New prototypes.
5362         * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
5363         a default def isn't partially constant.
5364         (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
5365         is known to be partially zero.
5366         (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
5367         to see if a default def isn't partially constant.
5368         * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
5369         creation of a range, if VR_RANGE, try to improve nonzero_bits from
5370         the range.
5371         (set_nonzero_bits, get_nonzero_bits): New functions.
5373         * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
5374         * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
5375         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
5376         (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
5377         uses but in the condition and ASSERT_EXPR and the other successor of
5378         the predecessor bb is __builtin_unreachable (), set_range_info of the
5379         ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
5381 2013-10-31  Martin Jambor  <mjambor@suse.cz>
5383         PR rtl-optimization/58934
5384         Revert:
5385         2013-10-30  Martin Jambor  <mjambor@suse.cz>
5386         PR rtl-optimization/10474
5387         * ira.c (find_moveable_pseudos): Do not calculate dominance info
5388         nor df analysis.
5389         (interesting_dest_for_shprep): New function.
5390         (split_live_ranges_for_shrink_wrap): Likewise.
5391         (ira): Calculate dominance info and df analysis. Call
5392         split_live_ranges_for_shrink_wrap.
5394 2013-10-31  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
5395             Yury Gribov  <y.gribov@samsung.com>
5397         PR sanitizer/58543
5398         * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
5399         shadow pointer to avoid clobbering the main one.
5401 2013-10-31  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
5403         * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
5405 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
5407         PR bootstrap/58933
5408         * ira-color.c (update_costs_from_copies): Add new parameter.  Use
5409         it for calling update_costs_from_allocno.
5410         (assign_hard_reg): Call restore_costs_from_copies only for
5411         !retry_p.  Pass new argument to update_costs_from_copies.
5412         (color_pass): Pass new argument to update_costs_from_copies.
5413         (ira_mark_allocation_change): Ditto.
5415 2013-10-30  Sharad Singhai  <singhai@google.com>
5417         PR middle-end/58134
5418         * opts.c (common_handle_option): Remove deprecated option
5419         -ftree-vectorizer-verbose.
5420         * doc/invoke.texi (Debugging Options): Ditto.
5421         * opts-global.c (handle_common_deferred_options): Ditto.
5422         (dump_remap_tree_vectorizer_verbose): Delete.
5423         * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
5425 2013-10-30  DJ Delorie  <dj@redhat.com>
5427         * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
5428         that take no arguments.
5430 2013-10-30  Joern Rennecke  <joern.rennecke@embecosm.com>
5432         PR other/58545
5433         * reload1.c (update_eliminables_and_spill): New function, broken
5434         out of reload.
5435         (reload): Use it.  Check for frame size change after frame size
5436         alignment, and call update_eliminables_and_spill first if continue-ing.
5438 2013-10-30  Cong Hou  <congh@google.com>
5440         PR target/58762
5441         * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
5442         * config/i386/i386.c (ix86_expand_sse2_abs): New function.
5443         * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
5445 2013-10-18  Mikael Pettersson  <mikpelinux@gmail.com>
5447         PR rtl-optimization/58369
5448         * reload1.c (compute_reload_subreg_offset): New function.
5449         (choose_reload_regs): Use it to pass endian-correct
5450         offset to subreg_regno_offset.
5452 2013-10-30  Tobias Burnus  <burnus@net-b.de>
5454         PR other/33426
5455         * tree-cfg.c (replace_loop_annotate): Replace warning by
5456         warning_at.
5458 2013-10-30  Jason Merrill  <jason@redhat.com>
5460         * configure.ac (loose_warn): Add -Wno-format if
5461         --disable-build-format-warnings.
5463 2013-10-30  David Malcolm  <dmalcolm@redhat.com>
5465         * cgraphunit.c (analyze_functions): Split symtab_node declarations
5466         onto multiple lines to make things easier for rename_symtab.py.
5468         * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
5469         (symtab_semantically_equivalent_p): Likewise.
5471 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
5473         PR target/58784
5474         * lra.c (check_rtl): Remove address check before LRA work.
5476 2013-10-30  Marc Glisse  <marc.glisse@inria.fr>
5478         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
5479         POINTER_PLUS_EXPR in the defining statement.
5481 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
5483         * regmove.c: Remove.
5484         * tree-pass.h (make_pass_regmove): Remove.
5485         * timevar.def (TV_REGMOVE): Remove.
5486         * passes.def (pass_regmove): Remove.
5487         * opts.c (default_options_table): Remove entry for regmove.
5488         * doc/passes.texi: Remove regmove pass description.
5489         * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
5490         options.
5491         (-fdump-rtl-regmove): Ditto.
5492         * common.opt (foptimize-register-move, fregmove): Ignore.
5493         * Makefile.in (OBJS): Remove regmove.o.
5494         * regmove.c: Remove.
5495         * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
5496         and type.
5497         (struct ira_allocno) New member allocno_prefs.
5498         (ALLOCNO_PREFS): New macro.
5499         (ira_prefs, ira_prefs_num): New external vars.
5500         (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
5501         (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
5502         (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
5503         Ditto.
5504         (ira_add_allocno_copy_to_list): Remove prototype.
5505         (ira_swap_allocno_copy_ends_if_necessary): Ditto.
5506         (ira_pref_iterator): New type.
5507         (ira_pref_iter_init, ira_pref_iter_cond): New functions.
5508         (FOR_EACH_PREF): New macro.
5509         * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
5510         (ira_get_dup_out_num): Ditto. Rename from get_dup_num.  Modify the
5511         code.
5512         (ira_setup_alts): New function.
5513         (decrease_live_ranges_number): New function.
5514         (ira): Call the above function.
5515         * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
5516         (ira_create_allocno): Initialize allocno prefs.
5517         (pref_pool, pref_vec): New static vars.
5518         (initiate_prefs, find_allocno_pref, ira_create_pref): New
5519         functions.
5520         (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
5521         (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
5522         (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
5523         (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
5524         (ira_add_allocno_copy_to_list): Make static.  Rename to
5525         add_allocno_copy_to_list.
5526         (ira_swap_allocno_copy_ends_if_necessary): Make static.  Rename to
5527         swap_allocno_copy_ends_if_necessary.
5528         (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
5529         ira_remove_allocno_prefs.
5530         (ira_flattening): Ditto.
5531         (ira_build): Call initiate_prefs, print_prefs.
5532         (ira_destroy): Call finish_prefs.
5533         * ira-color.c (struct update_cost_record): New.
5534         (struct allocno_color_data): Add new member update_cost_records.
5535         (update_cost_record_pool): New static var.
5536         (init_update_cost_records, get_update_cost_record): New functions.
5537         (free_update_cost_record_list, finish_update_cost_records): Ditto.
5538         (struct update_cost_queue_elem): Add member from.
5539         (initiate_cost_update): Call init_update_cost_records.
5540         (finish_cost_update): Call finish_update_cost_records.
5541         (queue_update_cost, get_next_update_cost): Add new param from.
5542         (Update_allocno_cost, update_costs_from_allocno): New functions.
5543         (update_costs_from_prefs): Ditto.
5544         (update_copy_costs): Rename to update_costs_from_copies.
5545         (restore_costs_from_copies): New function.
5546         (update_conflict_hard_regno_costs): Don't go back.
5547         (assign_hard_reg): Call restore_costs_from_copies.  Add printing
5548         more debug info.
5549         (pop_allocnos): Add priniting more debug info.
5550         (color_allocnos): Remove prefs for conflicting hard regs.
5551         Call update_costs_from_prefs.
5552         * ira-conflicts.c (commutative_constraint_p): Move to ira.c
5553         (get_dup_num): Rename, modify, and move to ira.c
5554         (process_regs_for_copy): Add prefs.
5555         (add_insn_allocno_copies): Put src as first arg of
5556         process_regs_for_copy.  Remove dead code.  Call ira_setup_alts.
5557         * ira-costs.c (record_reg_classes): Modify and move code into
5558         record_operands_costs.
5559         (find_costs_and_classes): Create prefs for the hard reg of small
5560         reg class.
5561         (process_bb_node_for_hard_reg_moves): Add prefs.
5563 2013-10-30  Richard Biener  <rguenther@suse.de>
5565         PR middle-end/57100
5566         * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
5567         * cfganal.c (pre_and_rev_post_order_compute_fn): New function
5568         as worker for ...
5569         (pre_and_rev_post_order_compute): ... which now wraps it.
5570         * graph.c (draw_cfg_nodes_no_loops): Use
5571         pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
5572         on cfun.
5574 2013-10-30  Christian Bruel  <christian.bruel@st.com>
5576         * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
5577         (sh_expand_cmpstr): Handle known align and schedule improvements.
5578         * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
5579         * config/sh/sh.md (cmpstrnsi): New pattern.
5581 2013-10-30  Martin Jambor  <mjambor@suse.cz>
5583         PR rtl-optimization/10474
5584         * ira.c (find_moveable_pseudos): Do not calculate dominance info
5585         nor df analysis.
5586         (interesting_dest_for_shprep): New function.
5587         (split_live_ranges_for_shrink_wrap): Likewise.
5588         (ira): Calculate dominance info and df analysis. Call
5589         split_live_ranges_for_shrink_wrap.
5591 2013-10-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5593         PR target/58854
5594         * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
5596 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
5598         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
5599         * tree.h (POINTER_BOUNDS_P): New.
5600         (BOUNDED_TYPE_P): New.
5601         (BOUNDED_P): New.
5602         (pointer_bounds_type_node): New.
5603         * tree.c (build_common_tree_nodes): Initialize
5604         pointer_bounds_type_node.
5605         * gimple.h (gimple_call_get_nobnd_arg_index): New.
5606         (gimple_call_num_nobnd_args): New.
5607         (gimple_call_nobnd_arg): New.
5608         (gimple_return_retbnd): New.
5609         (gimple_return_set_retbnd): New
5610         * gimple.c (gimple_build_return): Increase number of ops
5611         for return statement.
5612         (gimple_call_get_nobnd_arg_index): New.
5613         * gimple-pretty-print.c (dump_gimple_return): Print second op.
5615 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
5617         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
5618         with "chkp ctor" and "bnd_legacy" attributes.
5619         * gimplify.c (gimplify_init_constructor): Avoid infinite
5620         loop during gimplification of bounds initializer.
5622 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
5624         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
5625         (handle_bnd_legacy): New.
5626         (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
5627         * doc/extend.texi: Document bnd_variable_size and bnd_legacy
5628         attributes.
5630 2013-10-29  Ilya Enkovich  <ilya.enkovich@intel.com>
5632         * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
5633         (BT_FN_PTR_CONST_PTR): New.
5634         (BT_FN_CONST_PTR_CONST_PTR): New.
5635         (BT_FN_PTR_CONST_PTR_SIZE): New.
5636         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
5637         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
5638         (BT_FN_VOID_CONST_PTR_SIZE): New.
5639         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
5640         * chkp-builtins.def: New.
5641         * builtins.def: include chkp-builtins.def.
5642         (DEF_CHKP_BUILTIN): New.
5643         * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
5644         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
5645         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
5646         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
5647         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
5648         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
5649         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
5650         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
5651         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
5652         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
5653         * common.opt (fcheck-pointer-bounds): New.
5654         * toplev.c (process_options): Check Pointer Bounds Checker is
5655         supported.
5656         * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
5658 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
5660         * target.def (builtin_chkp_function): New.
5661         (chkp_bound_type): New.
5662         (chkp_bound_mode): New.
5663         (fn_abi_va_list_bounds_size): New.
5664         (load_bounds_for_arg): New.
5665         (store_bounds_for_arg): New.
5666         * targhooks.h (default_load_bounds_for_arg): New.
5667         (default_store_bounds_for_arg): New.
5668         (default_fn_abi_va_list_bounds_size): New.
5669         (default_chkp_bound_type): New.
5670         (default_chkp_bound_mode): New.
5671         (default_builtin_chkp_function): New.
5672         * targhooks.c (default_load_bounds_for_arg): New.
5673         (default_store_bounds_for_arg): New.
5674         (default_fn_abi_va_list_bounds_size): New.
5675         (default_chkp_bound_type): New.
5676         (default_chkp_bound_mode); New.
5677         (default_builtin_chkp_function): New.
5678         * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
5679         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
5680         (TARGET_STORE_BOUNDS_FOR_ARG): New.
5681         (TARGET_BUILTIN_CHKP_FUNCTION): New.
5682         (TARGET_CHKP_BOUND_TYPE): New.
5683         (TARGET_CHKP_BOUND_MODE): New.
5684         * doc/tm.texi: Regenerated.
5685         * langhooks.h (lang_hooks): Add chkp_supported field.
5686         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
5687         (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
5689 2013-10-29  Andrew Pinski <apinski@cavium.com>
5691         * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
5692         (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
5693         fails, combining the branches anyways.
5694         (tree_ssa_ifcombine): Inverse the order of the basic block walk,
5695         increases the number of combinings.
5696         * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
5698 2013-10-29  Mike Stump  <mikestump@comcast.net>
5700         * machmode.def (PARTIAL_INT_MODE): Add precision and name.
5701         * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
5702         (make_vector_mode): Increase namebuf to 16.
5703         (emit_insn_modes_h): When processing BImode, don't
5704         also match partial int modes.
5705         (emit_class_narrowest_mode): Likewise.
5707         * config/bfin/bfin-modes.def: Add precision to PDI.
5708         * config/m32c/m32c-modes.def: Add precision to PSI.
5709         * config/msp430/msp430-modes.def: Add precision to PSI.
5710         * config/rs6000/rs6000-modes.def: Add precision to PTI.
5711         * config/sh/sh-modes.def: Add precision to PSI and PDI.
5713 2013-10-29  Oleg Endo  <olegendo@gcc.gnu.org>
5715         PR target/54236
5716         * config/sh/sh.md (*addc): Rename existing variations to ...
5717         (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
5718         (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
5719         *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
5720         * config/sh/sh.c (addsubcosts): Handle some addc special cases.
5722 2013-10-29  Teresa Johnson  <tejohnson@google.com>
5724         PR ipa/58862
5725         * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
5726         insanities when updating probabilities.
5728 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
5730         * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
5731         prettyprinter for cgraph_node to reflect the conversion of the
5732         symtable types to a C++ class hierarchy: it now *is* a
5733         symtab_node_base, rather than having one (named "symbol").
5735 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
5737         * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
5738         __cilkrts_pop_frame.  If matched, then return true for built-in
5739         function name.
5740         (expand_builtin): Added BUILT_IN_CILK_DETACH and
5741         BUILT_IN_CILK_POP_FRAME case.
5742         * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
5743         (lhs_cilk_detect_spawn): Likewise.
5744         (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
5745         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
5746         (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
5747         (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
5748         (LANG_HOOKS_CILKPLUS): Likewise.
5749         * tree.h (CILK_SPAWN_FN): Likewise.
5750         * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
5751         * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
5752         (OBJS): Added cilk-common.o.
5753         (BUILTINS_DEF): Added cilk-builtins.def.
5754         * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
5755         (lhd_cilk_detect_spawn): Likewise.
5756         * langhooks.h (lang_hooks_for_cilkplus): New struct.
5757         (struct lang_hooks): Added new field called "cilkplus."
5758         * cilk-common.c: New file.
5759         * cilk.h: Likewise.
5760         * cilk-builtins.def: Likewise.
5761         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
5762         "__cilk" macro and set it to 200.
5763         * function.h (struct function::cilk_frame_decl): New field.
5764         (struct function::is_cilk_function): Likewise.
5765         (struct function::calls_cilk_spawn): Likewise.
5766         * gimplify.c (gimplify_call_expr): Added a check if the function call
5767         being gimplified is a spawn detach point.  If so, then add pop_frame
5768         and detach function calls.
5769         (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
5770         for gimplifying _Cilk_spawn and _Cilk_sync statements.
5771         (gimplify_return_expr): Added a check for _Cilk_spawn usage in
5772         function.  If so, added a _Cilk_sync and gimplified it.
5773         (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
5774         INIT_EXPRs.  If so, then call gimplify_cilk_spawn.
5775         * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
5776         spawner function.
5777         (can_inline_edge_p): Prevent inling of spawnee function.
5778         * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
5779         for functions that use Cilk keywords.
5780         * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
5781         * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
5782         CILK_SYNC_STMT cases.
5783         * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
5784         trees.
5785         * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
5786         (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
5787         * passes.texi (Cilk Keywords): New section that describes the compiler
5788         code changes for handling Cilk Keywords.
5790 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
5792         Patch autogenerated by refactor_symtab.py from
5793         https://github.com/davidmalcolm/gcc-refactoring-scripts
5794         revision 58bb219cc090b2f4516a9297d868c245495ee622
5796         * asan.c (asan_finish_file): Update for conversion of symtab types to
5797         a true class hierarchy.
5798         * cfgexpand.c (estimated_stack_frame_size): Likewise.
5799         * cgraph.c (cgraph_get_body): Likewise.
5800         (cgraph_get_create_real_symbol_node): Likewise.
5801         (verify_cgraph_node): Likewise.
5802         (verify_edge_corresponds_to_fndecl): Likewise.
5803         (verify_edge_count_and_frequency): Likewise.
5804         (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
5805         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
5806         (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
5807         (cgraph_node_cannot_return): Likewise.
5808         (cgraph_set_pure_flag_1): Likewise.
5809         (cgraph_set_const_flag_1): Likewise.
5810         (cgraph_set_nothrow_flag_1): Likewise.
5811         (cgraph_make_node_local_1): Likewise.
5812         (cgraph_for_node_and_aliases): Likewise.
5813         (cgraph_for_node_thunks_and_aliases): Likewise.
5814         (cgraph_node_can_be_local_p): Likewise.
5815         (cgraph_node_cannot_be_local_p_1): Likewise.
5816         (cgraph_function_body_availability): Likewise.
5817         (dump_cgraph_node): Likewise.
5818         (cgraph_rtl_info): Likewise.
5819         (cgraph_mark_address_taken_node): Likewise.
5820         (cgraph_remove_node): Likewise.
5821         (cgraph_release_function_body): Likewise.
5822         (cgraph_update_edges_for_call_stmt_node): Likewise.
5823         (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
5824         (cgraph_make_edge_direct): Likewise.
5825         (cgraph_resolve_speculation): Likewise.
5826         (cgraph_speculative_call_info): Likewise.
5827         (cgraph_turn_edge_to_speculative): Likewise.
5828         (cgraph_create_edge_1): Likewise.
5829         (cgraph_set_call_stmt): Likewise.
5830         (cgraph_node_for_asm): Likewise.
5831         (cgraph_add_thunk): Likewise.
5832         (cgraph_same_body_alias): Likewise.
5833         (cgraph_create_function_alias): Likewise.
5834         (cgraph_create_node): Likewise.
5835         (cgraph_create_empty_node): Likewise.
5836         (record_function_versions): Likewise.
5837         (used_from_object_file_p): Likewise.
5838         * cgraph.h (symtab_can_be_discarded): Likewise.
5839         (symtab_real_symbol_p): Likewise.
5840         (cgraph_mark_force_output_node): Likewise.
5841         (cgraph_edge_recursive_p): Likewise.
5842         (symtab_alias_target): Likewise.
5843         (varpool_all_refs_explicit_p): Likewise.
5844         (varpool_can_remove_if_no_refs): Likewise.
5845         (cgraph_only_called_directly_or_aliased_p): Likewise.
5846         (cgraph_next_function_with_gimple_body): Likewise.
5847         (cgraph_first_function_with_gimple_body): Likewise.
5848         (cgraph_function_with_gimple_body_p): Likewise.
5849         (cgraph_next_function): Likewise.
5850         (cgraph_first_function): Likewise.
5851         (cgraph_next_defined_function): Likewise.
5852         (cgraph_first_defined_function): Likewise.
5853         (varpool_next_defined_variable): Likewise.
5854         (varpool_first_defined_variable): Likewise.
5855         (varpool_next_static_initializer): Likewise.
5856         (varpool_first_static_initializer): Likewise.
5857         (varpool_next_variable): Likewise.
5858         (varpool_first_variable): Likewise.
5859         (varpool_node_name): Likewise.
5860         (varpool): Likewise.
5861         (cgraph): Likewise.
5862         (is_a_helper <varpool_node>::test): Likewise.
5863         (is_a_helper <cgraph_node>::test): Likewise.
5864         (varpool_variable_node): Likewise.
5865         (cgraph_function_or_thunk_node): Likewise.
5866         (varpool_alias_target): Likewise.
5867         (cgraph_alias_target): Likewise.
5868         (cgraph_node_name): Likewise.
5869         (varpool_node_asm_name): Likewise.
5870         (cgraph_node_asm_name): Likewise.
5871         * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
5872         (cgraph_rebuild_references): Likewise.
5873         (rebuild_cgraph_edges): Likewise.
5874         (record_eh_tables): Likewise.
5875         (build_cgraph_edges): Likewise.
5876         (mark_store): Likewise.
5877         (mark_load): Likewise.
5878         (mark_address): Likewise.
5879         (record_type_list): Likewise.
5880         (record_reference): Likewise.
5881         * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
5882         (cgraph_materialize_clone): Likewise.
5883         (cgraph_function_versioning): Likewise.
5884         (cgraph_copy_node_for_versioning): Likewise.
5885         (update_call_expr): Likewise.
5886         (cgraph_find_replacement_node): Likewise.
5887         (cgraph_create_virtual_clone): Likewise.
5888         (cgraph_clone_node): Likewise.
5889         * cgraphunit.c (compile): Likewise.
5890         (output_weakrefs): Likewise.
5891         (output_in_order): Likewise.
5892         (expand_function): Likewise.
5893         (assemble_thunks_and_aliases): Likewise.
5894         (expand_thunk): Likewise.
5895         (mark_functions_to_output): Likewise.
5896         (handle_alias_pairs): Likewise.
5897         (analyze_functions): Likewise.
5898         (walk_polymorphic_call_targets): Likewise.
5899         (varpool_finalize_decl): Likewise.
5900         (process_function_and_variable_attributes): Likewise.
5901         (cgraph_process_same_body_aliases): Likewise.
5902         (analyze_function): Likewise.
5903         (cgraph_add_new_function): Likewise.
5904         (cgraph_finalize_function): Likewise.
5905         (referred_to_p): Likewise.
5906         (cgraph_reset_node): Likewise.
5907         (cgraph_process_new_functions): Likewise.
5908         (enqueue_node): Likewise.
5909         (decide_is_symbol_needed): Likewise.
5910         * coverage.c (coverage_compute_profile_id): Likewise.
5911         * dbxout.c (dbxout_expand_expr): Likewise.
5912         * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
5913         (reference_to_unused): Likewise.
5914         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
5915         * gimplify.c (unvisit_body): Likewise.
5916         (unshare_body): Likewise.
5917         * ipa-cp.c (ipcp_generate_summary): Likewise.
5918         (ipcp_decision_stage): Likewise.
5919         (identify_dead_nodes): Likewise.
5920         (decide_whether_version_node): Likewise.
5921         (decide_about_value): Likewise.
5922         (perhaps_add_new_callers): Likewise.
5923         (create_specialized_node): Likewise.
5924         (update_profiling_info): Likewise.
5925         (ipcp_propagate_stage): Likewise.
5926         (estimate_local_effects): Likewise.
5927         (good_cloning_opportunity_p): Likewise.
5928         (devirtualization_time_bonus): Likewise.
5929         (propagate_constants_accross_call): Likewise.
5930         (initialize_node_lattices): Likewise.
5931         (ipcp_cloning_candidate_p): Likewise.
5932         (determine_versionability): Likewise.
5933         (print_all_lattices): Likewise.
5934         (print_lattice): Likewise.
5935         (ipcp_discover_new_direct_edges): Likewise.
5936         * ipa-devirt.c (ipa_devirt): Likewise.
5937         (likely_target_p): Likewise.
5938         (update_type_inheritance_graph): Likewise.
5939         (possible_polymorphic_call_target_p): Likewise.
5940         (dump_possible_polymorphic_call_targets): Likewise.
5941         (devirt_variable_node_removal_hook): Likewise.
5942         (record_binfo): Likewise.
5943         (maybe_record_node): Likewise.
5944         (build_type_inheritance_graph): Likewise.
5945         * ipa-inline-analysis.c (inline_write_summary): Likewise.
5946         (inline_generate_summary): Likewise.
5947         (inline_analyze_function): Likewise.
5948         (do_estimate_growth): Likewise.
5949         (simple_edge_hints): Likewise.
5950         (estimate_node_size_and_time): Likewise.
5951         (estimate_edge_devirt_benefit): Likewise.
5952         (compute_inline_parameters): Likewise.
5953         (estimate_function_body_sizes): Likewise.
5954         (compute_bb_predicates): Likewise.
5955         (initialize_inline_failed): Likewise.
5956         (dump_inline_summary): Likewise.
5957         (dump_inline_edge_summary): Likewise.
5958         * ipa-inline-transform.c (inline_transform): Likewise.
5959         (preserve_function_body_p): Likewise.
5960         (save_inline_function_body): Likewise.
5961         (inline_call): Likewise.
5962         (clone_inlined_nodes): Likewise.
5963         (can_remove_node_now_p): Likewise.
5964         (can_remove_node_now_p_1): Likewise.
5965         * ipa-inline.c (early_inliner): Likewise.
5966         (early_inline_small_functions): Likewise.
5967         (inline_always_inline_functions): Likewise.
5968         (ipa_inline): Likewise.
5969         (flatten_function): Likewise.
5970         (inline_small_functions): Likewise.
5971         (speculation_useful_p): Likewise.
5972         (recursive_inlining): Likewise.
5973         (update_caller_keys): Likewise.
5974         (reset_edge_caches): Likewise.
5975         (update_edge_key): Likewise.
5976         (edge_badness): Likewise.
5977         (relative_time_benefit): Likewise.
5978         (want_inline_self_recursive_call_p): Likewise.
5979         (want_inline_small_function_p): Likewise.
5980         (want_early_inline_function_p): Likewise.
5981         (num_calls): Likewise.
5982         (can_early_inline_edge_p): Likewise.
5983         (can_inline_edge_p): Likewise.
5984         (report_inline_failed_reason): Likewise.
5985         * ipa-profile.c (ipa_profile): Likewise.
5986         (ipa_propagate_frequency): Likewise.
5987         (ipa_propagate_frequency_1): Likewise.
5988         (ipa_profile_generate_summary): Likewise.
5989         * ipa-prop.c (ipcp_transform_function): Likewise.
5990         (read_replacements_section): Likewise.
5991         (ipa_prop_read_section): Likewise.
5992         (ipa_modify_call_arguments): Likewise.
5993         (ipa_print_node_params): Likewise.
5994         (propagate_controlled_uses): Likewise.
5995         (update_indirect_edges_after_inlining): Likewise.
5996         (remove_described_reference): Likewise.
5997         (ipa_make_edge_direct_to_target): Likewise.
5998         (ipa_analyze_node): Likewise.
5999         (ipa_analyze_params_uses): Likewise.
6000         (ipa_compute_jump_functions): Likewise.
6001         (ipa_get_callee_param_type): Likewise.
6002         (ipa_print_node_jump_functions): Likewise.
6003         (ipa_initialize_node_params): Likewise.
6004         (ipa_populate_param_decls): Likewise.
6005         (ipa_func_spec_opts_forbid_analysis_p): Likewise.
6006         (write_agg_replacement_chain): Likewise.
6007         (ipa_write_node_info): Likewise.
6008         (ipa_edge_duplication_hook): Likewise.
6009         (try_decrement_rdesc_refcount): Likewise.
6010         * ipa-pure-const.c (propagate_nothrow): Likewise.
6011         (propagate_pure_const): Likewise.
6012         (pure_const_read_summary): Likewise.
6013         (pure_const_write_summary): Likewise.
6014         (analyze_function): Likewise.
6015         * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
6016         (ipa_ref_referring_ref_list): Likewise.
6017         * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
6018         (ipa_remove_stmt_references): Likewise.
6019         (ipa_find_reference): Likewise.
6020         (ipa_dump_referring): Likewise.
6021         (ipa_dump_references): Likewise.
6022         (ipa_record_reference): Likewise.
6023         * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
6024         (ipa_reference_write_optimization_summary): Likewise.
6025         (write_node_summary_p): Likewise.
6026         (propagate): Likewise.
6027         (read_write_all_from_decl): Likewise.
6028         (generate_summary): Likewise.
6029         (analyze_function): Likewise.
6030         (propagate_bits): Likewise.
6031         (ipa_reference_get_not_written_global): Likewise.
6032         (ipa_reference_get_not_read_global): Likewise.
6033         * ipa-split.c (execute_split_functions): Likewise.
6034         (split_function): Likewise.
6035         * ipa-utils.c (ipa_merge_profiles): Likewise.
6036         (dump_cgraph_node_set): Likewise.
6037         (ipa_reverse_postorder): Likewise.
6038         (ipa_edge_within_scc): Likewise.
6039         (ipa_get_nodes_in_cycle): Likewise.
6040         (ipa_free_postorder_info): Likewise.
6041         (ipa_reduced_postorder): Likewise.
6042         (searchc): Likewise.
6043         (recursive_call_p): Likewise.
6044         * ipa.c (ipa_cdtor_merge): Likewise.
6045         (record_cdtor_fn): Likewise.
6046         (function_and_variable_visibility): Likewise.
6047         (varpool_externally_visible_p): Likewise.
6048         (cgraph_externally_visible_p): Likewise.
6049         (comdat_can_be_unshared_p): Likewise.
6050         (comdat_can_be_unshared_p_1): Likewise.
6051         (address_taken_from_non_vtable_p): Likewise.
6052         (ipa_discover_readonly_nonaddressable_vars): Likewise.
6053         (symtab_remove_unreachable_nodes): Likewise.
6054         (walk_polymorphic_call_targets): Likewise.
6055         (process_references): Likewise.
6056         (enqueue_node): Likewise.
6057         (has_addr_references_p): Likewise.
6058         (cgraph_non_local_node_p_1): Likewise.
6059         * is-a.h (varpool_analyze_node): Likewise.
6060         * lto-cgraph.c (input_symtab): Likewise.
6061         (merge_profile_summaries): Likewise.
6062         (input_cgraph_1): Likewise.
6063         (input_edge): Likewise.
6064         (input_varpool_node): Likewise.
6065         (input_node): Likewise.
6066         (input_overwrite_node): Likewise.
6067         (compute_ltrans_boundary): Likewise.
6068         (output_refs): Likewise.
6069         (lto_output_varpool_node): Likewise.
6070         (lto_output_node): Likewise.
6071         (reachable_from_other_partition_p): Likewise.
6072         (referenced_from_other_partition_p): Likewise.
6073         (lto_output_edge): Likewise.
6074         (output_node_opt_summary): Likewise.
6075         (add_node_to): Likewise.
6076         (reachable_from_this_partition_p): Likewise.
6077         (lto_set_symtab_encoder_in_partition): Likewise.
6078         (lto_symtab_encoder_in_partition_p): Likewise.
6079         (lto_set_symtab_encoder_encode_initializer): Likewise.
6080         (lto_symtab_encoder_encode_initializer_p): Likewise.
6081         (lto_set_symtab_encoder_encode_body): Likewise.
6082         (lto_symtab_encoder_encode_body_p): Likewise.
6083         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
6084         Likewise.
6085         * lto-streamer-in.c (lto_read_body): Likewise.
6086         (fixup_call_stmt_edges): Likewise.
6087         (fixup_call_stmt_edges_1): Likewise.
6088         * lto-streamer-out.c (produce_symtab): Likewise.
6089         (output_symbol_p): Likewise.
6090         (write_symbol): Likewise.
6091         (lto_output): Likewise.
6092         (copy_function): Likewise.
6093         (output_function): Likewise.
6094         * passes.c (function_called_by_processed_nodes_p): Likewise.
6095         (ipa_write_optimization_summaries): Likewise.
6096         (ipa_write_summaries): Likewise.
6097         (do_per_function_toporder): Likewise.
6098         (do_per_function): Likewise.
6099         (dump_passes): Likewise.
6100         * symtab.c (symtab_semantically_equivalent_p): Likewise.
6101         (symtab_nonoverwritable_alias): Likewise.
6102         (symtab_nonoverwritable_alias_1): Likewise.
6103         (symtab_for_node_and_aliases): Likewise.
6104         (symtab_resolve_alias): Likewise.
6105         (fixup_same_cpp_alias_visibility): Likewise.
6106         (symtab_alias_ultimate_target): Likewise.
6107         (symtab_used_from_object_file_p): Likewise.
6108         (verify_symtab_base): Likewise.
6109         (dump_symtab_base): Likewise.
6110         (symtab_node_name): Likewise.
6111         (symtab_node_asm_name): Likewise.
6112         (symtab_dissolve_same_comdat_group_list): Likewise.
6113         (symtab_add_to_same_comdat_group): Likewise.
6114         (symtab_unregister_node): Likewise.
6115         (symtab_insert_node_to_hashtable): Likewise.
6116         (symtab_register_node): Likewise.
6117         (unlink_from_assembler_name_hash): Likewise.
6118         (insert_to_assembler_name_hash): Likewise.
6119         (eq_assembler_name): Likewise.
6120         (hash_node_by_assembler_name): Likewise.
6121         (eq_node): Likewise.
6122         (hash_node): Likewise.
6123         * toplev.c (wrapup_global_declaration_2): Likewise.
6124         * trans-mem.c (ipa_tm_execute): Likewise.
6125         (ipa_tm_transform_clone): Likewise.
6126         (ipa_tm_transform_transaction): Likewise.
6127         (ipa_tm_transform_calls_redirect): Likewise.
6128         (ipa_tm_insert_gettmclone_call): Likewise.
6129         (ipa_tm_insert_irr_call): Likewise.
6130         (ipa_tm_create_version): Likewise.
6131         (ipa_tm_create_version_alias): Likewise.
6132         (ipa_tm_mark_forced_by_abi_node): Likewise.
6133         (ipa_tm_mark_force_output_node): Likewise.
6134         (ipa_tm_diagnose_tm_safe): Likewise.
6135         (ipa_tm_mayenterirr_function): Likewise.
6136         (ipa_tm_scan_irr_function): Likewise.
6137         (ipa_tm_note_irrevocable): Likewise.
6138         (ipa_tm_scan_calls_clone): Likewise.
6139         (get_cg_data): Likewise.
6140         * tree-eh.c (tree_could_trap_p): Likewise.
6141         * tree-emutls.c (ipa_lower_emutls): Likewise.
6142         (create_emultls_var): Likewise.
6143         (lower_emutls_function_body): Likewise.
6144         (gen_emutls_addr): Likewise.
6145         (emutls_decl): Likewise.
6146         (new_emutls_decl): Likewise.
6147         * tree-inline.c (tree_function_versioning): Likewise.
6148         (optimize_inline_calls): Likewise.
6149         (expand_call_inline): Likewise.
6150         (estimate_num_insns): Likewise.
6151         (copy_bb): Likewise.
6152         (delete_unreachable_blocks_update_callgraph): Likewise.
6153         * tree-nested.c (gimplify_all_functions): Likewise.
6154         (create_nesting_tree): Likewise.
6155         (check_for_nested_with_variably_modified): Likewise.
6156         * tree-pretty-print.c (dump_function_header): Likewise.
6157         * tree-profile.c (tree_profiling): Likewise.
6158         * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6159         (modify_function): Likewise.
6160         (convert_callers): Likewise.
6161         (convert_callers_for_node): Likewise.
6162         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
6163         (associate_varinfo_to_alias): Likewise.
6164         (create_variable_info_for): Likewise.
6165         (get_constraint_for_ssa_var): Likewise.
6166         * tree-vectorizer.c (increase_alignment): Likewise.
6167         * tree.c (find_decls_types_in_var): Likewise.
6168         (find_decls_types_in_node): Likewise.
6169         (free_lang_data_in_decl): Likewise.
6170         * value-prof.c (gimple_ic_transform): Likewise.
6171         (gimple_ic): Likewise.
6172         (check_ic_target): Likewise.
6173         (init_node_map): Likewise.
6174         * varasm.c (decl_binds_to_current_def_p): Likewise.
6175         (default_binds_local_p_1): Likewise.
6176         (dump_tm_clone_pairs): Likewise.
6177         (assemble_alias): Likewise.
6178         (find_decl): Likewise.
6179         (mark_decl_referenced): Likewise.
6180         * varpool.c (varpool_for_node_and_aliases): Likewise.
6181         (varpool_extra_name_alias): Likewise.
6182         (varpool_create_variable_alias): Likewise.
6183         (add_new_static_var): Likewise.
6184         (varpool_finalize_named_section_flags): Likewise.
6185         (varpool_remove_unreferenced_decls): Likewise.
6186         (enqueue_node): Likewise.
6187         (varpool_assemble_decl): Likewise.
6188         (assemble_aliases): Likewise.
6189         (varpool_analyze_node): Likewise.
6190         (cgraph_variable_initializer_availability): Likewise.
6191         (varpool_add_new_variable): Likewise.
6192         (ctor_for_folding): Likewise.
6193         (dump_varpool_node): Likewise.
6194         (varpool_remove_initializer): Likewise.
6195         (varpool_remove_node): Likewise.
6196         (varpool_node_for_decl): Likewise.
6197         (varpool_create_empty_node): Likewise.
6198         * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
6199         (ix86_get_function_versions_dispatcher): Likewise.
6201 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
6203         * cgraph.h (symtab_node_base): Convert to a class;
6204         add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
6205         chain_next/prev from symtab_node_def.
6206         (cgraph_node): Inherit from symtab_node; add GTY option
6207         tag ("SYMTAB_FUNCTION").
6208         (varpool_node): Inherit from symtab_node; add GTY option
6209         tag ("SYMTAB_VARIABLE").
6210         (symtab_node_def): Remove.
6211         (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
6212         (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
6213         (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
6214         (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
6216         * ipa-ref.h (symtab_node_def): Drop.
6217         (symtab_node): Change underlying type from symtab_node_def to
6218         symtab_node_base.
6219         (const_symtab_node): Likwise.
6221         * is-a.h: Update examples in comment.
6223         * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
6224         (assembler_name_hash): Likewise.
6226 2013-10-29  Martin Liska  <marxin.liska@gmail.com>
6228         * doc/tree-ssa.texi (gimple_phi_result): Document.
6229         (gimple_phi_num_args, gimple_phi_arg): Likewise.
6230         (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
6231         (PHI_RESULT, PHI_NUM_ARGS): Remove.
6232         (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
6234 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
6236         * expr.h: Revert change and include tree-core.h.
6237         * rtl.h: Revert change and don't include tree-core.h.
6239 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
6241         * config/darwin.c: Include gimple.h.
6242         * config/i386/winnt.c: Likewise.
6244 2013-10-29  Marc Glisse  <marc.glisse@inria.fr>
6246         PR tree-optimization/19831
6247         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
6249 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
6251         * tree-outof-ssa.h: Remove include files.
6252         * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
6253         * expr.c: Likewise.
6254         * tree-ssa-coalesce.c: Likewise.
6255         * cfgexpand.c: Likewise.
6256         * tree-ssa-ter.c: Likewise.
6257         * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
6258         * lto-streamer.h: Likewise.
6259         * cgraphbuild.c: Add gimple.h to include list.
6260         * data-streamer-in.c: Likewise.
6261         * ipa-cp.c: Likewise.
6262         * tree-streamer.c: Likewise.
6263         * lto-compress.c: Likewise.
6264         * ipa-reference.c: Likewise.
6265         * data-streamer-out.c: Likewise.
6266         * lto-cgraph.c: Likewise.
6267         * cgraphclones.c: Likewise.
6268         * ipa-utils.c: Likewise.
6269         * data-streamer.c: Likewise.
6270         * ipa-split.c: Likewise.
6271         * lto-section-in.c: Likewise.
6272         * tree-streamer-out.c: Likewise.
6273         * ipa-prop.c: Likewise.
6274         * tree-streamer-in.c: Likewise.
6275         * symtab.c: Likewise.
6276         * opts-global.c: Likewise.
6277         * lto-opts.c: Likewise.
6278         * lto-section-out.c: Likewise.
6279         * lto-streamer.c: Likewise.
6280         * rtl.h: Add tree-core.h to include list.
6281         * expr.h: Remove tree-core.h from include list.
6282         * gimple.h: Likewise.
6283         * ipa-utils.h: Likewise.
6284         * streamer-hooks.h: Likewise.
6285         * streamer-hooks.c: Include input.h.
6287 2013-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6289         * config/arm/arm.c (cortexa7_extra_costs): New table.
6290         (arm_cortex_a7_tune): New.
6291         * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
6293 2013-10-29  Eric Botcazou  <ebotcazou@adacore.com>
6295         * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
6297 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
6299         * doc/gty.texi ("Inheritance and GTY"): Make it clear that
6300         to use autogenerated markers for a class-hierarchy, every class
6301         must have a GTY marker.
6302         * gengtype.h (struct type): Add linked list of subclasses to
6303         the "s" member of the union.
6304         (add_subclass): New decl.
6305         * gengtype-state.c (read_state_struct_type): Set up subclass
6306         linked list.
6307         * gengtype.c (get_ultimate_base_class): New.
6308         (add_subclass): New.
6309         (new_structure): Set up subclass linked list.
6310         (set_gc_used_type): Propagate usage information to subclasses.
6311         (output_mangled_typename): Use get_ultimate_base_class.
6312         (walk_subclasses): Use the subclass linked list, avoiding an
6313         O(N^2) when writing out all types.
6314         (walk_type): Issue an error if the base class is missing a tag,
6315         rather than generating bogus C code.  Add a gcc_unreachable
6316         default case, in case people omit tags from concrete subclasses,
6317         or get the values wrong.
6318         (write_func_for_structure): Issue an error for subclasses for
6319         which the base doesn't have a "desc", since otherwise the
6320         autogenerated routines for the base would silently fail to visit
6321         any subclass fields.
6322         (write_root): Use get_ultimate_base_class, tweaking constness of
6323         tp to match that function's signature.
6325 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
6327         * doc/gty.texi (GTY Options): Add note about inheritance to
6328         description of desc and tag.
6329         (Inheritance and GTY): New.
6331 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
6333         * gengtype-parse.c (opts_have): Drop "static" so that
6334         we can use this from gengtype.c.
6335         * gengtype.c (set_gc_used_type): Mark any base class as used;
6336         update field traversal to visit inherited fields.
6337         (output_mangled_typename):  Convert references to classes within
6338         an inheritance hierarchy to reference the ultimate base class,
6339         since only it will have gt_ functions.
6340         (get_string_option): New.
6341         (walk_subclasses): New.
6342         (walk_type): Treat GTY structs that have a "desc" as being the
6343         root of an inheritance hierarchy.  Generate a switch on it
6344         within the marking function which walks all subclasses, adding
6345         cases for them via walk_subclasses.  For subclasses, visit all
6346         fields of the type (including inherited ones).
6347         (write_func_for_structure): Don't write fns for subclasses, only
6348         for the ultimate base class within an inheritance hierarchy.
6349         Subclasses-marking will be handled by the base class marking functions.
6350         (write_types): Likewise.
6351         (write_local_func_for_structure): Likewise.
6352         (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
6353         a "tag" option (and are thus concrete subclasses).
6354         (write_root): Use the marker function for the ultimate base class.
6355         * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
6356         (opts_have): Add declaration.
6358 2013-10-28  Vladimir Makarov  <vmakarov@redhat.com>
6360         * lra-spills.c (lra_final_code_change): Remove useless move insns
6361         originated from moves of pseudos.
6363 2013-10-28  Jeff Law  <law@redhat.com>
6365         * lower-subreg.c (resolve_simple_move): Fix comment typo.
6367 2013-10-28  Trevor Saunders  <tsaunders@mozilla.com>
6369         * df-scan.c (df_collection_rec): Adjust.
6370         (copy_defs): New constant.
6371         (copy_uses): Likewise.
6372         (copy_eq_uses): Likewise.
6373         (copy_mw): Likewise.
6374         (copy_all): Likewise.
6375         (df_insn_rescan): Adjust.
6376         (df_notes_rescan): Likewise.
6377         (df_swap_refs): Likewise.
6378         (df_sort_and_compress_refs): Likewise.
6379         (df_sort_and_compress_mws): Likewise.
6380         (df_install_refs): Likewise.
6381         (df_install_mws): Likewise.
6382         (df_refs_add_to_chains): Add flags parameter controlling which vectors
6383         are coppied.
6384         (df_bb_refs_record): Adjust.
6385         (df_record_entry_block_defs): Likewise.
6386         (df_record_exit_block_defs): Likewise.
6387         (df_refs_verify): Likewise.
6388         (df_mws_verify): Likewise.
6389         (df_insn_refs_verify): Likewise.
6390         (df_bb_verify): Likewise.
6391         * ipa-pure-const.c (finish_state): Remove.
6392         (propagate): Adjust.
6393         * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
6394         tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
6395         var-tracking.c: Adjust.
6396         * vec.c (stack_vecs): Remove.
6397         (register_stack_vec): Likewise.
6398         (stack_vec_register_index): Likewise.
6399         (unregister_stack_vec): Likewise.
6400         * vec.h (struct va_stack): Remove.
6401         (struct vec<T, A, vl_ptr>): Specialize as
6402         struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
6403         allocation strategy compatable with the vl_ptr layout.
6404         (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
6405         specialization anyway.
6406         (class stack_vec): New class.
6407         (vec_stack_alloc): Remove.
6408         (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
6410 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6411             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6412             Sergey Lega  <sergey.s.lega@intel.com>
6413             Anna Tikhonova  <anna.tikhonova@intel.com>
6414             Ilya Tocar  <ilya.tocar@intel.com>
6415             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6416             Ilya Verbin  <ilya.verbin@intel.com>
6417             Kirill Yukhin  <kirill.yukhin@intel.com>
6418             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6420         * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
6421         (*prefetch_avx512pf_<mode>): New.
6422         * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
6423         (avx512f_maskcmp<mode>3): Ditto.
6424         (vashrv16si3): Ditto.
6426 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6427             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6428             Sergey Lega  <sergey.s.lega@intel.com>
6429             Anna Tikhonova  <anna.tikhonova@intel.com>
6430             Ilya Tocar  <ilya.tocar@intel.com>
6431             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6432             Ilya Verbin  <ilya.verbin@intel.com>
6433             Kirill Yukhin  <kirill.yukhin@intel.com>
6434             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6436         * config/i386/i386.md (any_truncate): New.
6437         (trunsuffix): Ditto.
6438         * config/i386/predicates.md (const_8_to_9_operand): New.
6439         (const_10_to_11_operand): Ditto.
6440         (const_12_to_13_operand): Ditto.
6441         (const_14_to_15_operand): Ditto.
6442         (const_16_to_19_operand): Ditto.
6443         (const_20_to_23_operand): Ditto.
6444         (const_24_to_27_operand): Ditto.
6445         (const_28_to_31_operand): Ditto.
6446         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
6447         (cvtusi2<ssescalarmodesuffix>32): New.
6448         (cvtusi2<ssescalarmodesuffix>64): Ditto.
6449         (ufloatv16siv16sf2): Ditto.
6450         (avx512f_fix_notruncv16sfv16si): Ditto.
6451         (avx512f_ufix_notruncv16sfv16si): Ditto.
6452         (avx512f_vcvtss2usi): Ditto.
6453         (avx512f_vcvtss2usiq): Ditto.
6454         (avx512f_vcvttss2usi): Ditto.
6455         (avx512f_vcvttss2usiq): Ditto.
6456         (avx512f_vcvtsd2usi): Ditto.
6457         (avx512f_vcvtsd2usiq): Ditto.
6458         (avx512f_vcvttsd2usi): Ditto.
6459         (avx512f_vcvttsd2usiq): Ditto.
6460         (ufloatv8siv8df): Ditto.
6461         (avx512f_cvtdq2pd512_2): Ditto.
6462         (avx512f_cvtpd2dq512): Ditto.
6463         (avx512f_ufix_notruncv8dfv8si): Ditto.
6464         (avx512f_cvtpd2ps512): Ditto.
6465         (vec_unpacks_lo_v16sf): Ditto.
6466         (vec_unpacks_hi_v16sf): Ditto.
6467         (vec_unpacks_float_hi_v16si): Ditto.
6468         (vec_unpacks_float_lo_v16si): Ditto.
6469         (avx512f_unpckhps512): Ditto.
6470         (avx512f_unpcklps512): Ditto.
6471         (avx512f_movshdup512): Ditto.
6472         (avx512f_movsldup512): Ditto.
6473         (vec_extract_lo_v32hi): Ditto.
6474         (vec_extract_hi_v32hi): Ditto.
6475         (vec_extract_lo_v64qi): Ditto.
6476         (vec_extract_hi_v64qi): Ditto.
6477         (avx512f_unpckhpd512): Ditto.
6478         (avx512f_movddup512): Ditto.
6479         (avx512f_unpcklpd512): Ditto.
6480         (*avx512f_unpcklpd512): Ditto.
6481         (avx512f_shufps512_1): Ditto.
6482         (avx512f_shufpd512_1): Ditto.
6483         (avx512f_interleave_highv8di): Ditto.
6484         (avx512f_interleave_lowv8di): Ditto.
6485         (PMOV_DST_MODE): Ditto.
6486         (pmov_src_mode): Ditto.
6487         (pmov_src_lower): Ditto.
6488         (pmov_suff): Ditto.
6489         (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
6490         (*avx512f_<code>v8div16qi2): Ditto.
6491         (*avx512f_<code>v8div16qi2_store): Ditto.
6492         (vec_widen_umult_even_v16si): Ditto.
6493         (*vec_widen_umult_even_v16si): Ditto.
6494         (vec_widen_smult_even_v16si): Ditto.
6495         (*vec_widen_smult_even_v16si): Ditto.
6496         (avx512f_interleave_highv16si): Ditto.
6497         (avx512f_interleave_lowv16si): Ditto.
6498         (avx512f_<code>v16qiv16si2): Ditto.
6499         (avx512f_<code>v16hiv16si2): Ditto.
6500         (avx512f_<code>v8qiv8di2): Ditto.
6501         (avx512f_<code>v8hiv8di2): Ditto.
6502         (avx512f_<code>v8siv8di2): Ditto.
6503         (avx512cd_maskb_vec_dupv8di): Ditto.
6504         (avx512cd_maskw_vec_dupv16si): Ditto.
6505         (avx512f_vcvtph2ps512): Ditto.
6506         (avx512f_vcvtps2ph512): Ditto.
6507         (VEC_EXTRACT_MODE): Extened with wider modes.
6508         (VEC_PERM_AVX2): Ditto.
6509         (VEC_PERM_CONST): Ditto.
6511 2013-10-28  Joern Rennecke  <joern.rennecke@embecosm.com>
6513         * config/arc/arc.c (arc_ccfsm_post_advance):
6514         Add comment about TYPE_RETURN.
6516 2013-10-28  Bin Cheng  <bin.cheng@arm.com>
6518         * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
6519         Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
6520         (strip_offset): Convert offset to unsigned number.
6522 2013-10-27  Tom de Vries  <tom@codesourcery.com>
6524         * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
6525         Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
6527 2013-10-27  Oleg Endo  <olegendo@gcc.gnu.org>
6529         * config/sh/sh.c (MSW, LSW): Move and rename macros to...
6530         * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
6531         (TARGET_BIG_ENDIAN): New macro.
6532         * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
6533         Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
6534         * config/sh/sh.c: Likewise.
6535         * config/sh/sh.h: Likewise.
6537 2013-10-27  Hans-Peter Nilsson  <hp@axis.com>
6539         * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
6540         removed PRED_MUDFLAP with PRED_NORETURN.  Correct file-path in comment.
6542 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
6544         * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
6545         Fix formatting.
6546         (cmpstr_t, cmpstrsi): Fix formatting.
6548 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
6550         PR target/52483
6551         * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
6552         addressing, do not use general_operand for memory operands.
6554 2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
6556         Revert:
6557         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
6558         * lra-spills.c (lra_final_code_change): Remove useless move insns.
6560 2013-10-26  Jeff Law  <law@redhat.com>
6562         * predict.c (PRED_MUDFLAP): Remove.
6563         * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
6565         * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
6566         (OBJS): Remove tree-nomudflap.o
6567         (GTFILES): Remove tree-mudflap.c
6568         * builtins.c (expand_builtin_alloc): Remove mudflap support.
6569         * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
6570         (mfwrap_spec, mflib_spec): Likewise.
6571         (cpp_unique_options, cc1_options, static_specs): Likewise.
6572         * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
6573         * passes.def: Likewise.
6574         * toplev.c (compile_file, process_options): Likewise.
6575         * tree-inline.c (copy_tree_r): Likewise.
6576         * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
6577         * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
6578         (build_constant_desc, output_constant_def_contents): Likewise.
6579         (categorize_decl_for_section): Likewise.
6580         * tree-mudflap.c: Removed.
6581         * tree-mudflap.h: Removed.
6582         * tree-nomudflap.c: Removed.
6583         * bfin/uclinux.h (MFWRAP_SPEC): Remove.
6584         * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
6585         * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
6586         * config/sol2.h (MFLIB_SPEC): Likewise.
6587         * doc/install.texi: Remove mudflap references.
6588         * doc/passes.texi: Similarly.
6589         * doc/sourcebuild.texi: Similarly.
6590         * doc/invoke.texi: Remove mudlfap related options.
6592 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
6594         PR rtl-optimization/58759
6595         * lra-constraints.c (lra_constraints): Remove wrong condition to
6596         remove insn setting up an equivalent pseudo.
6598 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
6600         * config/rs6000/rs6000-protos.h
6601         (rs6000_secondary_memory_needed_mode): New prototype.
6602         * config/rs6000/rs6000.c: Include ira.h.
6603         (TARGET_LRA_P): Redefine.
6604         (rs6000_legitimate_offset_address_p): Call
6605         legitimate_constant_pool_address_p in strict mode for LRA.
6606         (rs6000_legitimate_address_p): Ditto.
6607         (legitimate_lo_sum_address_p): Add code for LRA.  Use lra_in_progress.
6608         (rs6000_emit_move): Add LRA version of code to generate load/store
6609         of SDmode values.
6610         (rs6000_secondary_memory_needed_mode): New.
6611         (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
6612         (rs6000_secondary_reload_class): Return NO_REGS for LRA for
6613         constants, memory, and FP registers.
6614         (rs6000_lra_p): New.
6615         * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
6616         * config/rs6000/rs6000.opt (mlra): New option.
6617         * lra-spills.c (lra_final_code_change): Remove useless move insns.
6619 2013-10-25  Yufeng Zhang  <yufeng.zhang@arm.com>
6621         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
6622         has_single_use () and not do the conversion if has_single_use ()
6623         returns false for the multiplication result.
6625 2013-10-25  David Malcolm  <dmalcolm@redhat.com>
6627         * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
6628         to "NODE", since this works on a "tree", not an
6629         "enum tree_code".
6630         (CONSTANT_CLASS_P): Likewise.
6631         (TYPE_P): Likewise.
6632         (DECL_P): Likewise.
6633         (INDIRECT_REF_P): Likewise.
6634         (REFERENCE_CLASS_P): Likewise.
6635         (COMPARISON_CLASS_P): Likewise.
6636         (UNARY_CLASS_P): Likewise.
6637         (BINARY_CLASS_P): Likewise.
6638         (STATEMENT_CLASS_P): Likewise.
6639         (VL_EXP_CLASS_P): Likewise.
6640         (EXPRESSION_CLASS_P): Likewise.
6641         (IS_TYPE_OR_DECL_P): Likewise.
6643 2013-10-25  Marc Glisse  <marc.glisse@inria.fr>
6645         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
6646         ADDR_EXPR in the defining statement.
6648 2013-10-25  Richard Biener  <rguenther@suse.de>
6650         PR tree-optimization/58626
6651         * tree-loop-distribution.c (enum rdg_dep_type): Remove
6652         anti_dd, output_dd and input_dd.
6653         (struct rdg_edge): Remove level and relation members.
6654         (RDGE_LEVEL, RDGE_RELATION): Remove.
6655         (dot_rdg_1): Adjust.
6656         (create_rdg_edge_for_ddr): Remove.
6657         (create_rdg_edges_for_scalar): Adjust.
6658         (create_edge_for_control_dependence): Likewise.
6659         (create_rdg_edges): Split into ...
6660         (create_rdg_flow_edges): ... this
6661         (create_rdg_cd_edges): ... and this.
6662         (free_rdg): Adjust.
6663         (build_rdg): Likewise, do not compute data dependences or
6664         add edges for them.
6665         (pg_add_dependence_edges): New function.
6666         (pgcmp): Likewise.
6667         (distribute_loop): First apply all non-dependence based
6668         partition mergings.  Then compute dependences between partitions
6669         and merge and order partitions according to them.
6671 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
6673         PR rtl-optimization/58831
6674         * alias.c (init_alias_analysis): At the beginning of each iteration,
6675         set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
6677 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
6679         * recog.c (search_ofs): New static variable moved from...
6680         (peep2_find_free_register): ...here.
6681         (peephole2_optimize): Initialize it.
6683 2013-10-25  Tobias Burnus  <burnus@net-b.de>
6685         * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
6687 2013-10-25  Uros Bizjak  <ubizjak@gmail.com>
6689         * config/i386/i386.h (TARGET_MPX): New define.
6690         (TARGET_MPX_P): Ditto.
6692 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
6694         * config/i386/constraints.md (B): New.
6695         (Ti): New.
6696         (Tb): New.
6697         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
6698         * config/i386/i386-modes.def (BND32): New.
6699         (BND64): New.
6700         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
6701         * config/i386/i386.c (isa_opts): Add mmpx.
6702         (regclass_map): Add bound registers.
6703         (dbx_register_map): Likewise.
6704         (dbx64_register_map): Likewise.
6705         (svr4_dbx_register_map): Likewise.
6706         (PTA_MPX): New.
6707         (ix86_option_override_internal): Support MPX ISA.
6708         (ix86_conditional_register_usage): Support bound registers.
6709         (print_reg): Likewise.
6710         (ix86_code_end): Add MPX bnd prefix.
6711         (output_set_got): Likewise.
6712         (ix86_output_call_insn): Likewise.
6713         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
6714         (ix86_print_operand_punct_valid_p): Likewise.
6715         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
6716         UNSPEC_BNDMK_ADDR.
6717         (ix86_class_likely_spilled_p): Add bound regs support.
6718         (ix86_hard_regno_mode_ok): Likewise.
6719         (x86_order_regs_for_local_alloc): Likewise.
6720         (ix86_bnd_prefixed_insn_p): New.
6721         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
6722         (FIXED_REGISTERS): Add bound registers.
6723         (CALL_USED_REGISTERS): Likewise.
6724         (REG_ALLOC_ORDER): Likewise.
6725         (HARD_REGNO_NREGS): Likewise.
6726         (TARGET_MPX): New.
6727         (VALID_BND_REG_MODE): New.
6728         (FIRST_BND_REG): New.
6729         (LAST_BND_REG): New.
6730         (reg_class): Add BND_REGS.
6731         (REG_CLASS_NAMES): Likewise.
6732         (REG_CLASS_CONTENTS): Likewise.
6733         (BND_REGNO_P): New.
6734         (ANY_BND_REG_P): New.
6735         (BNDmode): New.
6736         (HI_REGISTER_NAMES): Add bound registers.
6737         * config/i386/i386.md (UNSPEC_BNDMK): New.
6738         (UNSPEC_BNDMK_ADDR): New.
6739         (UNSPEC_BNDSTX): New.
6740         (UNSPEC_BNDLDX): New.
6741         (UNSPEC_BNDLDX_ADDR): New.
6742         (UNSPEC_BNDCL): New.
6743         (UNSPEC_BNDCU): New.
6744         (UNSPEC_BNDCN): New.
6745         (UNSPEC_MPX_FENCE): New.
6746         (BND0_REG): New.
6747         (BND1_REG): New.
6748         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
6749         (length_immediate): Likewise.
6750         (prefix_0f): Likewise.
6751         (memory): Likewise.
6752         (prefix_rep): Check for bnd prefix.
6753         (length_nobnd): New.
6754         (length): Use length_nobnd if specified.
6755         (BND): New.
6756         (bnd_ptr): New.
6757         (BNDCHECK): New.
6758         (bndcheck): New.
6759         (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
6760         (*jcc_2): Likewise.
6761         (jump): Likewise.
6762         (simple_return_internal): Likewise.
6763         (simple_return_pop_internal): Likewise.
6764         (*indirect_jump): Add MPX bnd prefix.
6765         (*tablejump_1): Likewise.
6766         (simple_return_internal_long): Likewise.
6767         (simple_return_indirect_internal): Likewise.
6768         (<mode>_mk): New.
6769         (*<mode>_mk): New.
6770         (mov<mode>): New.
6771         (*mov<mode>_internal_mpx): New.
6772         (<mode>_<bndcheck>): New.
6773         (*<mode>_<bndcheck>): New.
6774         (<mode>_ldx): New.
6775         (*<mode>_ldx): New.
6776         (<mode>_stx): New.
6777         (*<mode>_stx): New.
6778         * config/i386/predicates.md (lea_address_operand): Rename to...
6779         (address_no_seg_operand): ... this.
6780         (address_mpx_no_base_operand): New.
6781         (address_mpx_no_index_operand): New.
6782         (bnd_mem_operator): New.
6783         * config/i386/i386.opt (mmpx): New.
6784         * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
6785         * doc/rtl.texi Add documentation for BND32mode and BND64mode.
6787 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
6789         * mode-classes.def (MODE_POINTER_BOUNDS): New.
6790         * tree.def (POINTER_BOUNDS_TYPE): New.
6791         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
6792         (POINTER_BOUNDS_MODE): New.
6793         (make_pointer_bounds_mode): New.
6794         * machmode.h (POINTER_BOUNDS_MODE_P): New.
6795         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
6796         (layout_type): Support POINTER_BOUNDS_TYPE.
6797         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
6798         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
6799         (type_contains_placeholder_1): Likewise.
6800         * tree.h (POINTER_BOUNDS_TYPE_P): New.
6801         * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
6802         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
6804 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
6806         * expr.c (expand_expr_real_1): Use mode of memory reference rather than
6807         mode of address computation when calling memory_address_addr_space.
6809 2013-08-24  Richard Henderson  <rth@twiddle.net>
6811         PR rtl/58542
6812         * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
6813         instead of create_convert_operand_to.
6814         (maybe_emit_sync_lock_test_and_set): Likewise.
6815         (expand_atomic_compare_and_swap): Likewise.
6816         (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
6818 2013-08-24  Sriraman Tallam  <tmsriram@google.com>
6820         * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
6821         Change param_is to use the struct and not the pointer to the struct.
6823 2013-10-24  Andrew MacLeod  <amacleod@redhat.com>
6825         * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
6826         * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
6827         Move to targhooks.c.
6828         (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
6829         * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
6830         Relocate from gimplify.c.
6831         * targhooks.h: Add 2 prototypes.
6832         * tree.h: Delete 2 prototypes.
6834 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
6836         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
6837         [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
6839 2013-10-24  Cong Hou  <congh@google.com>
6841         * convert.c (convert_to_real): Guard those unsafe math function
6842         convertions with flag_unsafe_math_optimizations.  Handle sqrt()
6843         specially.
6845 2013-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
6847         PR ipa/58712
6848         * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
6849         as argument.
6850         (cgraph_create_edge): Use the new argument.
6851         (cgraph_create_indirect_edge): Likewise.
6853 2013-10-24  Joern Rennecke  <joern.rennecke@embecosm.com>
6855         * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
6856         TYPE_UNCOND_BRANCH.
6857         (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
6858         changes statep->state.
6860 2013-10-24  Tobias Burnus  <burnus@net-b.de>
6862         PR other/33426
6863         * tree-cfg.c (replace_loop_annotate): New function.
6864         (execute_build_cfg): Call it.
6865         * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
6866         * internal-fn.c (expand_ANNOTATE): New function.
6867         * internal-fn.def (ANNOTATE): Define as new internal function.
6868         * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
6869         * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
6870         * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
6871         * doc/extend.texi (Pragmas): Document #pragma ivdep.
6872         * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
6874 2013-10-17  Ian Bolton  <ian.bolton@arm.com>
6875             Marcus Shawcroft  <marcus.shawcroft@arm.com>
6877         * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
6878         Special case reload SP+C into none GENERAL_REGS.
6880 2013-10-24  Michael Matz  <matz@suse.de>
6882         * gengtype.c (is_file_equal): Check that files will be same length.
6884 2013-10-25  Christian Bruel  <christian.bruel@st.com>
6886         * config.gcc (sh-*): Add sh-mem.o to extra_obj.
6887         * config/sh/t-sh (sh-mem.o): New rule.
6888         * config/sh/sh-mem.cc (expand_block_move): Moved here.
6889         (sh_expand_cmpstr): New function.
6890         * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
6891         * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
6892         * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
6893         (rotlhi3_8): Rename.
6895 2013-10-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
6897         * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
6898         * Makefile.in (CXXDEPMODE): Assign and change users.
6899         (CCDEPMODE): Delete.
6900         * configure: Regenerate.
6902 2013-10-23  David Malcolm  <dmalcolm@redhat.com>
6904         * gengtype-parse.c (require_without_advance): New.
6905         (type): For GTY-marked types that are not GTY((user)), parse any
6906         base classes, requiring them to be single-inheritance, and not
6907         be templates.  For non-GTY-marked types and GTY((user)),
6908         continue to skip over any C++ inheritance specification.
6909         * gengtype-state.c (state_writer::write_state_struct_type):
6910         Write base class of type (if any).
6911         (read_state_struct_type): Read base class of type (if any).
6912         * gengtype.c (new_structure): Add a "base_class" parameter.
6913         (create_optional_field_): Update for new parameter to new_structure.
6914         (adjust_field_rtx_def): Likewise.
6915         (adjust_field_tree_exp): Likewise.
6916         * gengtype.h (struct type): Add "base_class" field to the s
6917         union field.
6918         (new_structure): Add "base" parameter.
6920 2013-10-23  Sriraman Tallam  <tmsriram@google.com>
6922         PR target/57756
6923         * config/i386/i386.c (ix86_option_override_internal):
6924         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
6925         (ix86_valid_target_attribute_tree):
6926         Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
6927         Change TARGET_SSE to TARGET_SSE_P (opts->...)
6929 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
6931         * tree-ssa-loop.h: Remove include files.
6932         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
6933         * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
6934         * graphite-clast-to-gimple.c: Likewise.
6935         * graphite-scop-detection.c: Likewise.
6936         * graphite-sese-to-poly.c: Likewise.
6937         * ipa-inline-analysis.c: Likewise.
6938         * ipa-pure-const.c: Likewise.
6939         * loop-init.c: Likewise.
6940         * passes.c: Likewise.
6941         * predict.c: Likewise.
6942         * tree-cfg.c: Likewise.
6943         * tree-cfgcleanup.c: Likewise.
6944         * tree-chrec.c: Likewise.
6945         * tree-data-ref.c: Likewise.
6946         * tree-loop-distribution.c: Likewise.
6947         * tree-parloops.c: Likewise.
6948         * tree-predcom.c: Likewise.
6949         * tree-scalar-evolution.c: Likewise.
6950         * tree-ssa-address.c: Likewise.
6951         * tree-ssa.c: Likewise.
6952         * tree-ssa-dce.c: Likewise.
6953         * tree-ssa-loop.c: Likewise.
6954         * tree-ssa-loop-im.c: Likewise.
6955         * tree-ssa-loop-ivcanon.c: Likewise.
6956         * tree-ssa-loop-ivopts.c: Likewise.
6957         * tree-ssa-loop-manip.c: Likewise.
6958         * tree-ssa-loop-niter.c: Likewise.
6959         * tree-ssa-loop-prefetch.c: Likewise.
6960         * tree-ssa-loop-unswitch.c: Likewise.
6961         * tree-ssa-reassoc.c: Likewise.
6962         * tree-vect-data-refs.c: Likewise.
6963         * tree-vect-loop.c: Likewise.
6964         * tree-vect-loop-manip.c: Likewise.
6965         * tree-vectorizer.c: Likewise.
6966         * tree-vect-stmts.c: Likewise.
6967         * tree-vrp.c: Likewise.
6969 2013-10-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6971         * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
6973 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
6975         PR tree-optimization/58775
6976         PR tree-optimization/58791
6977         * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
6978         (insert_stmt_after): Rewritten, don't move the stmt, but really
6979         insert it.
6980         (get_stmt_uid_with_default): Remove.
6981         (build_and_add_sum): Use insert_stmt_after and
6982         reassoc_stmt_dominates_stmt_p.  Fix up uid if bb contains only labels.
6983         (update_range_test): Set uid on stmts added by
6984         force_gimple_operand_gsi.  Don't immediately modify statements
6985         in inter-bb optimization, just update oe->op values.
6986         (optimize_range_tests): Return bool whether any changed have been made.
6987         (update_ops): New function.
6988         (struct inter_bb_range_test_entry): New type.
6989         (maybe_optimize_range_tests): Perform statement changes here.
6990         (not_dominated_by, appears_later_in_bb, get_def_stmt,
6991         ensure_ops_are_available): Remove.
6992         (find_insert_point): Rewritten.
6993         (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
6994         return LHS of the (new resp. old) stmt.  Don't call
6995         ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
6996         instead of last, move new stmt at the right place.
6997         (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
6998         (negate_value): Likewise.  Set uids.
6999         (break_up_subtract_bb): Initialize uids.
7000         (reassociate_bb): Adjust rewrite_expr_tree caller.
7001         (do_reassoc): Don't call renumber_gimple_stmt_uids.
7003 2013-10-23  David Edelsohn  <dje.gcc@gmail.com>
7005         PR target/58838
7006         * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
7007         TARGET_32BIT final condition.
7008         (mulsi3_internal2 and splitter): Same.
7010 2013-10-23  Jeff Law  <law@redhat.com>
7012         * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
7013         through joiner blocks with abnormal outgoing edges.
7015         * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
7016         Add parameter JOINERS, to allow/disallow threading through joiner
7017         blocks.
7018         (thread_block): New.  Call thread_block_1.
7019         (mark_threaded_blocks): Remove code to filter out certain cases
7020         of threading through joiner blocks.
7021         (thread_through_all_blocks): Document how we can have a dangling
7022         edge AUX field and clear it.
7024 2013-10-23  Ian Lance Taylor  <iant@google.com>
7026         * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
7027         (C++ Dialect Options): Likewise.
7028         (Optimize Options): Likewise.
7030 2013-10-23  Tom de Vries  <tom@codesourcery.com>
7032         PR tree-optimization/58805
7033         * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
7035 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
7037         * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
7038         sequence based on get_range_info returned range.
7040 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
7042         * tree-ssa.h: Remove all #include's
7043         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
7044         * alias.c: Move required includes from tree-ssa.h.
7045         * asan.c: Likewise.
7046         * builtins.c: Likewise.
7047         * calls.c: Likewise.
7048         * cfgexpand.c: Likewise.
7049         * cfghooks.c: Likewise.
7050         * cfgloop.c: Likewise.
7051         * cfgloopmanip.c: Likewise.
7052         * cgraph.c: Likewise.
7053         * cgraphbuild.c: Likewise.
7054         * cgraphclones.c: Likewise.
7055         * cgraphunit.c: Likewise.
7056         * dse.c: Likewise.
7057         * except.c: Likewise.
7058         * expr.c: Likewise.
7059         * final.c: Likewise.
7060         * fold-const.c: Likewise.
7061         * ggc-page.c: Likewise.
7062         * gimple-builder.c: Likewise.
7063         * gimple-fold.c: Likewise.
7064         * gimple-iterator.c: Likewise.
7065         * gimple-low.c: Likewise.
7066         * gimple-pretty-print.c: Likewise.
7067         * gimple-ssa-strength-reduction.c: Likewise.
7068         * gimple-streamer-in.c: Likewise.
7069         * gimple-streamer-out.c: Likewise.
7070         * gimplify.c: Likewise.
7071         * graphite-blocking.c: Likewise.
7072         * graphite-clast-to-gimple.c: Likewise.
7073         * graphite-dependences.c: Likewise.
7074         * graphite-interchange.c: Likewise.
7075         * graphite-optimize-isl.c: Likewise.
7076         * graphite-poly.c: Likewise.
7077         * graphite-scop-detection.c: Likewise.
7078         * graphite-sese-to-poly.c: Likewise.
7079         * graphite.c: Likewise.
7080         * ipa-cp.c: Likewise.
7081         * ipa-inline-analysis.c: Likewise.
7082         * ipa-inline-transform.c: Likewise.
7083         * ipa-inline.c: Likewise.
7084         * ipa-prop.c: Likewise.
7085         * ipa-pure-const.c: Likewise.
7086         * ipa-reference.c: Likewise.
7087         * ipa-split.c: Likewise.
7088         * ipa-utils.c: Likewise.
7089         * loop-init.c: Likewise.
7090         * lto-cgraph.c: Likewise.
7091         * lto-section-in.c: Likewise.
7092         * lto-section-out.c: Likewise.
7093         * lto-streamer-in.c: Likewise.
7094         * lto-streamer-out.c: Likewise.
7095         * lto-streamer.c: Likewise.
7096         * omp-low.c: Likewise.
7097         * passes.c: Likewise.
7098         * predict.c: Likewise.
7099         * print-tree.c: Likewise.
7100         * profile.c: Likewise.
7101         * sese.c: Likewise.
7102         * targhooks.c: Likewise.
7103         * tracer.c: Likewise.
7104         * trans-mem.c: Likewise.
7105         * tree-call-cdce.c: Likewise.
7106         * tree-cfg.c: Likewise.
7107         * tree-cfgcleanup.c: Likewise.
7108         * tree-chrec.c: Likewise.
7109         * tree-complex.c: Likewise.
7110         * tree-data-ref.c: Likewise.
7111         * tree-dfa.c: Likewise.
7112         * tree-eh.c: Likewise.
7113         * tree-emutls.c: Likewise.
7114         * tree-if-conv.c: Likewise.
7115         * tree-inline.c: Likewise.
7116         * tree-into-ssa.c: Likewise.
7117         * tree-loop-distribution.c: Likewise.
7118         * tree-mudflap.c: Likewise.
7119         * tree-nested.c: Likewise.
7120         * tree-nrv.c: Likewise.
7121         * tree-object-size.c: Likewise.
7122         * tree-outof-ssa.c: Likewise.
7123         * tree-parloops.c: Likewise.
7124         * tree-phinodes.c: Likewise.
7125         * tree-predcom.c: Likewise.
7126         * tree-pretty-print.c: Likewise.
7127         * tree-profile.c: Likewise.
7128         * tree-scalar-evolution.c: Likewise.
7129         * tree-sra.c: Likewise.
7130         * tree-ssa-address.c: Likewise.
7131         * tree-ssa-alias.c: Likewise.
7132         * tree-ssa-ccp.c: Likewise.
7133         * tree-ssa-coalesce.c: Likewise.
7134         * tree-ssa-copy.c: Likewise.
7135         * tree-ssa-copyrename.c: Likewise.
7136         * tree-ssa-dce.c: Likewise.
7137         * tree-ssa-dom.c: Likewise.
7138         * tree-ssa-dse.c: Likewise.
7139         * tree-ssa-forwprop.c: Likewise.
7140         * tree-ssa-ifcombine.c: Likewise.
7141         * tree-ssa-live.c: Likewise.
7142         * tree-ssa-loop-ch.c: Likewise.
7143         * tree-ssa-loop-im.c: Likewise.
7144         * tree-ssa-loop-ivcanon.c: Likewise.
7145         * tree-ssa-loop-ivopts.c: Likewise.
7146         * tree-ssa-loop-manip.c: Likewise.
7147         * tree-ssa-loop-niter.c: Likewise.
7148         * tree-ssa-loop-prefetch.c: Likewise.
7149         * tree-ssa-loop-unswitch.c: Likewise.
7150         * tree-ssa-loop.c: Likewise.
7151         * tree-ssa-math-opts.c: Likewise.
7152         * tree-ssa-operands.c: Likewise.
7153         * tree-ssa-phiopt.c: Likewise.
7154         * tree-ssa-phiprop.c: Likewise.
7155         * tree-ssa-pre.c: Likewise.
7156         * tree-ssa-propagate.c: Likewise.
7157         * tree-ssa-reassoc.c: Likewise.
7158         * tree-ssa-sccvn.c: Likewise.
7159         * tree-ssa-sink.c: Likewise.
7160         * tree-ssa-strlen.c: Likewise.
7161         * tree-ssa-structalias.c: Likewise.
7162         * tree-ssa-tail-merge.c: Likewise.
7163         * tree-ssa-ter.c: Likewise.
7164         * tree-ssa-threadedge.c: Likewise.
7165         * tree-ssa-threadupdate.c: Likewise.
7166         * tree-ssa-uncprop.c: Likewise.
7167         * tree-ssa-uninit.c: Likewise.
7168         * tree-ssa.c: Likewise.
7169         * tree-ssanames.c: Likewise.
7170         * tree-stdarg.c: Likewise.
7171         * tree-streamer-in.c: Likewise.
7172         * tree-switch-conversion.c: Likewise.
7173         * tree-tailcall.c: Likewise.
7174         * tree-vect-data-refs.c: Likewise.
7175         * tree-vect-generic.c: Likewise.
7176         * tree-vect-loop-manip.c: Likewise.
7177         * tree-vect-loop.c: Likewise.
7178         * tree-vect-patterns.c: Likewise.
7179         * tree-vect-slp.c: Likewise.
7180         * tree-vect-stmts.c: Likewise.
7181         * tree-vectorizer.c: Likewise.
7182         * tree-vrp.c: Likewise.
7183         * tree.c: Likewise.
7184         * tsan.c: Likewise.
7185         * value-prof.c: Likewise.
7186         * var-tracking.c: Likewise.
7187         * varpool.c: Likewise.
7188         * vtable-verify.c: Likewise.
7190 2013-10-23  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7192         * config/tilegx/tilegx.c: Include "tree.h".
7194 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
7196         * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
7197         the info, not after it.
7198         (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
7199         dump_ssaname_info call.
7200         (pp_gimple_stmt_1): Adjust caller.
7201         (dump_phi_nodes): Likewise.  Don't print "# " here.
7203 2013-10-22  Jan Hubicka  <jh@suse.cz>
7205         * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
7206         tuning flag.
7207         * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
7208         * i386.c (expand_small_movmem_or_setmem): New function.
7209         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
7210         function.
7211         (alg_usable_p): Add support for value ranges; cleanup.
7212         (ix86_expand_set_or_movmem): Add support for misaligned moves.
7214 2013-10-22  Sterling Augustine  <saugustine@google.com>
7216         * doc/invoke.texi: Document -ggnu-pubnames.
7217         * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
7218         logic.
7219         * dwarf2out.c: Include gdb/gdb-index.h.
7220         (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
7221         debug_generate_pub_sections.
7222         (is_java, output_pubtables, output_pubname): New functions.
7223         (include_pubname_in_output): Handle debug_generate_pub_sections at
7224         level 2.
7225         (size_of_pubnames): Use new local space_for_flags based on
7226         debug_generate_pub_sections.
7227         (output_pubnames): Unify pubnames and pubtypes output logic.
7228         Genericize comments.  Call output_pubname.
7229         (dwarf2out_finish): Move logic to output_pubnames and call it.
7231 2013-10-22  Uros Bizjak  <ubizjak@gmail.com>
7233         PR target/58779
7234         * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
7235         Remove CCCmode handling.
7236         <case LTU>: Return 'c' suffix for CCCmode.
7237         <case GEU>: Return 'nc' suffix for CCCmode.
7238         (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
7239         * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
7240         (*sub<mode>3_cc_overflow): Ditto.
7241         (*subsi3_zext_cc_overflow): Ditto.
7243 2013-10-22  Steve Ellcey  <sellcey@mips.com>
7245         * config/mips/mips.c (mips_rtx_costs):  Fix cost estimate for nor
7246         (AND (NOT OP1) (NOT OP2)).
7248 2013-10-22  Bill Schmidt  <wschmidt@vnet.ibm.com>
7250         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
7251         meaning of merge-high and merge-low masks for little endian; avoid
7252         use of vector-pack masks for little endian for mismatched modes.
7254 2013-10-22  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7256         * config/tilepro/tilepro.c: Include "tree.h".
7258 2013-10-22  Andreas Schwab  <schwab@suse.de>
7260         * config/m68k/m68k.c (notice_update_cc): Handle register conflict
7261         with PRE_DEC.
7263 2013-10-22  Paolo Carlini  <paolo.carlini@oracle.com>
7265         * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
7266         [Ed Smith-Rowland]): New entries.
7267         ([Stephen M. Webb]): Update.
7269 2013-10-22  Andrew MacLeod  <amacleod@redhat.com>
7271         * tree-ssa-ter.h: Remove duplicate copy of file contents.
7273 2013-10-21  Marek Polacek  <polacek@redhat.com>
7275         PR middle-end/58809
7276         * fold-const.c (fold_range_test): Return 0 if the type is not
7277         an integral type.
7279 2013-10-21  Richard Sandiford  <rdsandiford@googlemail.com>
7281         * system.h: Move hwint.h include further down.
7282         * hwint.h (sext_hwi, zext_hwi): Define unconditionally.  Add
7283         gcc_checking_asserts.
7284         * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
7286 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7288         Fix volatile issues in optimize_bit_field_compare.
7289         * fold-const.c (optimize_bit_field_compare): Bail out if
7290         lvolatilep or rvolatilep.
7292 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7294         Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
7295         and get_inner_reference returning different pmode for non-volatile
7296         bit-field members dependent on flag_strict_volatile_bitfields.
7297         * stor-layout.c (layout_decl): Remove special handling of
7298         flag_strict_volatile_bitfields.
7299         * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
7300         if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
7302 2013-10-21  Paulo Matos  <pmatos@broadcom.com>
7304         * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
7305         calculations.
7307 2013-10-21  Jeff Law  <law@redhat.com>
7309         * tree-ssa-threadedge.c (thread_through_normal_block): New
7310         argument VISITED.  Remove VISISTED as a local variable.  When we
7311         have a threadable jump, verify the destination of the jump has not
7312         been visised.
7313         (thread_across_edge): Allocate VISITED bitmap once at function
7314         scope and use it throughout.  Make sure to set appropriate bits in
7315         VISITED for E (start of jump thread path).
7316         * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
7317         through a joiner if any edge on the path has a recorded jump thread.
7319 2013-10-21  Ian Lance Taylor  <iant@google.com>
7321         * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
7322         don't imply that attributes can solve all problems.
7323         (Directory Options): Fix typo.
7325 2013-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7327         * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
7328         extend and extend_add.
7330 2013-10-21  Richard Biener  <rguenther@suse.de>
7332         PR tree-optimization/58794
7333         * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
7334         of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
7336 2013-10-21  Richard Biener  <rguenther@suse.de>
7338         PR middle-end/58742
7339         * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
7340         to (T) X for sign-changing conversions (or no conversion).
7342 2013-10-20  Uros Bizjak  <ubizjak@gmail.com>
7344         * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
7346 2013-10-20  Jan Hubicka  <jh@suse.cz>
7348         * config/i386/i386-tune.def: Add comment; organize into categories
7350 2013-10-21  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
7352         * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
7353         argument.  Update function comment.
7354         (expand_set_or_movmem_via_rep): New function combining
7355         expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
7356         (expand_movmem_via_rep_mov): Remove.
7357         expand_setmem_via_rep_stos): Remove.
7358         (expand_movmem_epilogue): Update calls correspondingly.
7359         (expand_setmem_epilogue_via_loop): Likewise.
7360         (emit_memset): New.
7361         (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
7362         (expand_set_or_movmem_prologue): New function combining
7363         expand_movmem_prologue and expand_setmem_prologue.
7364         (expand_movmem_prologue): Remove.
7365         (expand_setmem_prologue): Remove.
7366         (expand_set_or_movmem_constant_prologue): New function combining
7367         expand_constant_movmem_prologue and expand_constant_setmem_prologue.
7368         (expand_constant_movmem_prologue): Remove.
7369         (expand_constant_setmem_prologue): Remove.
7370         (promote_duplicated_reg): Allow vector-const0 value.
7371         (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
7372         and ix86_expand_setmem.
7373         (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
7374         (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
7376 2013-10-21  Diego Novillo  <dnovillo@google.com>
7378         * asan.c: Include tree.h
7379         * bb-reorder.c: Likewise.
7380         * cfgcleanup.c: Likewise.
7381         * cfgloopmanip.c: Likewise.
7382         * data-streamer-in.c: Likewise.
7383         * data-streamer-out.c: Likewise.
7384         * data-streamer.c: Likewise.
7385         * dwarf2cfi.c: Likewise.
7386         * graphite-blocking.c: Likewise.
7387         * graphite-clast-to-gimple.c: Likewise.
7388         * graphite-dependences.c: Likewise.
7389         * graphite-interchange.c: Likewise.
7390         * graphite-optimize-isl.c: Likewise.
7391         * graphite-poly.c: Likewise.
7392         * graphite-scop-detection.c: Likewise.
7393         * graphite-sese-to-poly.c: Likewise.
7394         * graphite.c: Likewise.
7395         * ipa-devirt.c: Likewise.
7396         * ipa-profile.c: Likewise.
7397         * ipa.c: Likewise.
7398         * ira.c: Likewise.
7399         * loop-init.c: Likewise.
7400         * loop-unroll.c: Likewise.
7401         * lower-subreg.c: Likewise.
7402         * lto/lto-object.c: Likewise.
7403         * recog.c: Likewise.
7404         * reginfo.c: Likewise.
7405         * tree-loop-distribution.c: Likewise.
7406         * tree-parloops.c: Likewise.
7407         * tree-ssa-strlen.c: Likewise.
7408         * tree-streamer.c: Likewise.
7409         * value-prof.c: Likewise.
7410         * target-globals.c: Likewise.
7411         * expr.h: Include tree-core.h instead of tree.h.
7412         * gimple.h: Likewise.
7413         * ipa-prop.h: Likewise.
7414         * ipa-utils.h: Likewise.
7415         * lto-streamer.h: Likewise.
7416         * streamer-hooks.h: Likewise.
7417         * ipa-reference.h: Include cgraph.h instead of tree.h.
7418         * cgraph.h: Include basic-block.h instead of tree.h.
7419         * tree-streamer.h: Do not include tree.h.
7420         * genattrtab.c (write_header): Generate inclusion of tree.h.
7421         * genautomata.c (main): Likewise.
7422         * genemit.c: Likewise.
7423         * genopinit.c: Likewise.
7424         * genoutput.c (output_prologue): Likewise.
7425         * genpeep.c: Likewise.
7427 2013-10-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7429         * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
7430         little endian.
7431         (vec_unpacku_hi_v8hi): Likewise.
7432         (vec_unpacku_lo_v16qi): Likewise.
7433         (vec_unpacku_lo_v8hi): Likewise.
7435 2013-10-20  Jan Hubicka  <jh@suse.cz>
7437         * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
7438         X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
7439         (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
7441 2013-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
7443         * config/mips/mips.h (ISA_HAS_WSBH): Define.
7444         * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
7445         constants.
7446         (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
7448 2013-10-19  John David Anglin  <danglin@gcc.gnu.org>
7450         PR target/58603
7451         * system.h: Undef m_slot.
7453 2013-10-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7455         * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
7456         all elements for both endian flavors.
7458 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
7460         PR target/58792
7461         * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
7462         ST1_REG and XMM1_REG for 32bit and 64bit targets.  Also add DI_REG
7463         and SI_REG for 64bit SYSV ABI targets.
7465 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
7467         * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
7468         to multi_reg_return.  Clarify that we are skipping USEs of multiple
7469         return registers.  Use bool type where appropriate.
7471 2013-10-18  Jan Hubicka  <jh@suse.cz>
7473         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
7474         for cold functions.
7475         * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
7476         (X86_TUNE_PUSH_MEMORY): Likewise.
7477         (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
7478         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
7479         (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
7480         New.
7481         * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
7482         x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
7483         Remove.
7484         (ix86_option_override_internal): Update to use tune features instead
7485         of variables.
7487 2013-10-18  Cong Hou  <congh@google.com>
7489         PR tree-optimization/58508
7490         * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
7491         statement that contains data refs with zero-step.
7493 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
7495         * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
7496         sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
7497         * gimple-low.c (gimple_check_call_arg,
7498         gimple_check_call_matching_types): Move to cgraph.c.
7499         * gimple-low.h: Remove prototype.
7500         * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
7501         Relocate from gimple-low.c.
7502         * cgraph.h: Add prototype.  Don't include basic-block.h.
7503         * gimplify.c: Add gimple-low to include list.
7504         * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
7505         * tree-eh.c: Add gimple-low to include list.
7506         * tree-nested.c: Likewise.
7507         * cfgexpand.c: Add tree-ssa-address.h to include list.
7508         * expr.c: Likewise.
7509         * gimple-fold.c: Likewise.
7510         * gimple-ssa-strength-reduction.c: Likewise.
7511         * trans-mem.c: Likewise.
7512         * tree-mudflap.c: Likewise.
7513         * tree-ssa-loop-ivopts.c: Likewise.
7514         * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
7515         (degenerate_phi_result): Move to tree-phinodes.c.
7516         * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
7517         * tree-ssa-threadedge.c: Likewise.
7518         * tree-vrp.c: Likewise.
7519         * tree-phinodes.c (degenerate_phi_result): Relocate here.
7520         * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
7521         * tree-phinodes.h (degenerate_phi_result): Add prototype.
7522         * tree-ssa-copy.c: Include tree-ssa-dom.h.
7523         * tree-ssa-forwprop.c: Likewise.
7524         * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
7525         pass_data_cleanup_cfg_post_optimizing,
7526         make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
7527         * tree-optimize.c: Delete File.
7528         * graphite.c: Include tree-cfgcleanup.h.
7529         * passes.c: Likewise.
7530         * tree-cfg.c: Likewise.
7531         * tree-profile.c: Likewise.
7532         * tree-ssa-dse.c: Likewise.
7533         * tree-ssa-loop-ivcanon.c: Likewise.
7534         * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
7535         * tree-outof-ssa.c: Include sbitmap.h.
7536         * tree-ssa-live.c: Likewise.
7537         * tree-ssa-propagate.c: Likewise.
7538         * tree-ssa-structalias.c: Likewise.
7539         * tree-stdarg.c: Likewise.
7540         * Makefile.in (OBJS): Delete tree-optimize.o.
7541         * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
7542         * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
7543         * varasm.c: Include basic-block.h.
7544         * cfgloop.h: Include function.h instead of basic-block.h
7545         (bb_loop_depth): Move to cfgloop.c.
7546         * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
7548 2013-10-18  Teresa Johnson  <tejohnson@google.com>
7550         * predict.c (probably_never_executed): Compare frequency-based
7551         count to number of training runs.
7552         * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
7554 2013-10-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7556         * config/arm/arm.c (cortexa9_extra_costs): New table.
7557         (arm_cortex_a9_tune): Use cortexa9_extra_costs.
7559 2013-10-18  Jeff Law  <law@redhat.com>
7561         * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
7563         * tree-ssa-threadupdate.c: Include "dbgcnt.h".
7564         (register_jump_thread): Add "registered_jump_thread" debug
7565         counter support.
7566         * dbgcnt.def (registered_jump_thread): New debug counter.
7568 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
7570         * config/rs6000/rs6000.c: Include cgraph.h.
7572 2013-10-18  Teresa Johnson  <tejohnson@google.com>
7574         * tree-ssa-tail-merge.c (replace_block_by): Update edge
7575         weights during merging.
7577 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
7579         * tree-cfg.h: Rename from tree-flow.h.  Remove #includes.
7580         * tree-ssa.h: Relocate required #includes from tree-cfg.h.
7581         * tree-ssa-operands.h: Remove prototype.
7582         * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
7583         * gimple.c (virtual_operand_p): Relocate from gimple.c.
7584         * gimple.h: Add prototype.
7585         * gimple-ssa.h: Include tree-ssa-operands.h.
7586         * tree-dump.c: Add tree-cfg.h to include list.
7587         * tree-ssa-alias.c: Add ipa-reference.h to include list.
7588         * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
7589         * config/i386/i386.c: Don't include tree-flow.h.
7590         * config/rs6000/rs6000.c: Likewise.
7592 2013-10-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7594         * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
7596 2013-10-18  Richard Biener  <rguenther@suse.de>
7598         * stor-layout.c (layout_type): Do not change TYPE_PRECISION
7599         or TYPE_UNSIGNED of integral types.
7600         (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
7601         NULL_TREE for zero-precision integral types.
7603 2013-10-18  James Greenhalgh  <james.greenhalgh@arm.com>
7605         * config/aarch64/arm_neon.h
7606         (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
7608 2013-10-17  Sriraman Tallam  <tmsriram@google.com>
7610         PR target/57756
7611         * opth-gen.awk: Define target_flags_explicit.
7613 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
7615         * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
7616         fields to the reg_addr array that describes the valid addressing
7617         mode for any register, general purpose registers, floating point
7618         registers, and Altivec registers.
7619         (FIRST_RELOAD_REG_CLASS): Likewise.
7620         (LAST_RELOAD_REG_CLASS): Likewise.
7621         (struct reload_reg_map_type): Likewise.
7622         (reload_reg_map_type): Likewise.
7623         (RELOAD_REG_VALID): Likewise.
7624         (RELOAD_REG_MULTIPLE): Likewise.
7625         (RELOAD_REG_INDEXED): Likewise.
7626         (RELOAD_REG_OFFSET): Likewise.
7627         (RELOAD_REG_PRE_INCDEC): Likewise.
7628         (RELOAD_REG_PRE_MODIFY): Likewise.
7629         (reg_addr): Likewise.
7630         (mode_supports_pre_incdec_p): New helper functions to say whether
7631         a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
7632         (mode_supports_pre_modify_p): Likewise.
7633         (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
7634         print the valid address mode bits for each mode.
7635         (rs6000_debug_print_mode): Likewise.
7636         (rs6000_debug_reg_global): Likewise.
7637         (rs6000_setup_reg_addr_masks): New function to set up the address
7638         mask bits for each type.
7639         (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
7640         Call rs6000_setup_reg_addr_masks to set up the address mask bits.
7641         (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
7642         mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
7643         PRE_MODIFY are supported.
7644         (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
7645         registers, instead of {src,dest}_av_p.
7646         (rs6000_print_options_internal): Tweak the debug output slightly.
7648 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
7650         * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
7651         isa attribute.
7653 2013-10-17  Andrew MacLeod  <amacleod@redhat.com>
7655         * tree-flow.h (struct omp_region): Move to omp-low.c.
7656         Remove omp_ prototypes and variables.
7657         * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
7658         (copy_var_decl): Relocate prototype from tree-flow.h.
7659         * gimple.c (copy_var_decl): Relocate from omp-low.c.
7660         * tree.h: Move prototype to omp-low.h.
7661         * omp-low.h: New File.  Relocate prototypes here.
7662         * omp-low.c (struct omp_region): Make local here.
7663         (root_omp_region): Make static.
7664         (copy_var_decl) Move to gimple.c.
7665         (new_omp_region): Make static.
7666         (make_gimple_omp_edges): New.  Refactored from tree-cfg.c make_edges.
7667         * tree-cfg.c: Include omp-low.h.
7668         (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
7669         * gimplify.c: Include omp-low.h.
7670         * tree-parloops.c: Likewise.
7672 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
7674         * config/i386/i386.c (ix86_fixup_binary_operands): When both source
7675         operands are in memory, prefer to force non-matched operand 1 to
7676         the register.
7678 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
7680         PR target/58673
7681         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
7682         restrict TImode addresses to single indirect registers if both
7683         -mquad-memory and -mvsx-timode are used.
7684         (rs6000_output_move_128bit): Use quad_load_store_p to determine if
7685         we should emit load/store quad.  Remove using %y for quad memory
7686         addresses.
7688         * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
7689         constraints to allow load/store quad on machines where TImode is
7690         not allowed in VSX registers.  Use 'n' instead of 'F' constraint
7691         for TImode to load integer constants.
7693 2013-10-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7695         * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
7697 2013-10-17  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7699         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
7700         handling of STACK_REG.
7702 2013-10-17  Richard Biener  <rguenther@suse.de>
7704         PR tree-optimization/58143
7705         * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
7706         New function.
7707         (rewrite_to_defined_overflow): Likewise.
7708         (move_computations_dom_walker::before_dom): Rewrite stmts
7709         with undefined signed overflow that are not always executed
7710         into unsigned arithmetic.
7712 2013-10-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
7714         PR target/57756
7715         * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
7716         explicit isa flag to be an options variable, instead of using
7717         global_options_set.  Remove define from rs6000.h.
7718         * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
7720         * config/rs6000/rs6000.c (rs6000_option_override_internal):
7721         Initialize rs6000_isa_flags_explicit.
7722         (rs6000_function_specific_save): Add gcc_options* parameter, so
7723         that the powerpc builds after the 2013-10-15 changes.
7724         (rs6000_function_specific_restore): Likewise.
7726 2013-10-16  DJ Delorie  <dj@redhat.com>
7728         * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
7729         op is a REG before checking REGNO.
7730         (rl78_alloc_physical_registers): Verify pattern is a SET before
7731         checking SET_SRC.
7733 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7735         * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
7736         endianness.
7737         (vec_unpacks_lo_v4sf): Likewise.
7738         (vec_unpacks_float_hi_v4si): Likewise.
7739         (vec_unpacks_float_lo_v4si): Likewise.
7740         (vec_unpacku_float_hi_v4si): Likewise.
7741         (vec_unpacku_float_lo_v4si): Likewise.
7743 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7745         * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
7746         (vsx_concat_v2sf): Likewise.
7748 2013-10-16  James Greenhalgh  <james.greenhalgh@arm.com>
7750         * config/aarch64/aarch64.md
7751         (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
7753 2013-10-16  Andrew MacLeod  <amacleod@redhat.com>
7755         PR tree-optimization/58697
7756         * cfgloop.c (get_estimated_loop_iterations_int): Rename from
7757         estimated_loop_iterations_int.
7758         (max_stmt_executions_int): Call get_max_loop_iterations_int.
7759         (get_max_loop_iterations_int): New.  HWINT version of
7760         get_max_loop_iterations.
7761         * cfgloop.h: Add prototypes.
7762         * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
7763         * loop-unroll.c (decide_peel_once_rolling): Call
7764         get_estimated_loop_iterations_int.
7765         * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
7766         * tree-ssa-loop-niter.h: Tweak prototypes.
7768 2013-10-16  David Malcolm  <dmalcolm@redhat.com>
7770         * gengtype-parse.c (struct_field_seq): Ignore access-control
7771         keywords ("public:" etc).
7773 2013-10-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7775         * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
7776         FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
7778 2013-10-16  Yvan Roux  <yvan.roux@linaro.org>
7780         * config/arm/arm.opt (mlra): New option.
7781         * config/arm/arm.c (arm_lra_p): New function.
7782         (TARGET_LRA_P): Define.
7784 2013-10-16  Paulo Matos  <pmatos@broadcom.com>
7786         * tree-core.h (tree_code_name): Remove.
7787         * tree.h (get_tree_code_name): New prototype.
7788         * tree.c (tree_code_name): Make static.
7789         (get_tree_code_name): New function.
7790         (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
7791         tree_class_check_failed, tree_range_check_failed,
7792         tree_not_class_check_failed, omp_clause_check_failed,
7793         tree_contains_struct_check_failed, tree_operand_check_failed): Use new
7794         wrapper get_tree_code_name instead of calling tree_code_name directly.
7795         * tree-vrp.c (dump_asserts_for): Likewise.
7796         * tree-dump.c (dequeue_and_dump): Likewise.
7797         * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
7798         * tree-pretty-print.h (pp_unsupported_tree): Likewise.
7799         * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
7800         * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
7801         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
7802         dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
7803         dump_gimple_omp_for): Likewise.
7804         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
7805         * tree-ssa-pre.c (print_pre_expr): Likewise.
7806         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
7807         * print-tree.c (print_node_brief, print_node): Likewise.
7808         * gimple.c (gimple_check_failed): Likewise.
7809         * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
7810         * config/frv/frv.c (frv_init_cumulative_args): Likewise.
7811         * config/mep/mep.c (mep_validate_vliw): Likewise.
7812         * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
7813         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
7815 2013-10-16 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
7817         * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
7818         for AMD bdver3.
7820 2013-10-16  Hans-Peter Nilsson  <hp@axis.com>
7822         * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
7823         (MULTILIB_MATCHES): Add multilib for -march=v8.
7825 2013-10-15 Sriraman Tallam  <tmsriram@google.com>
7827         PR target/57756
7828         * optc-save-gen.awk: Add extra parameter to the save and restore
7829         target calls.
7830         * opth-gen.awk: Generate new TARGET_* macros  to accept a parameter.
7831         * tree.c (build_optimization_node): New parameter.  Add extra parameter
7832         to call to cl_optimization_save.
7833         (build_target_option_node): New parameter. Add extra parameter
7834         to call to cl_target_option_save.
7835         * tree.h (build_optimization_node): New parameter.
7836         (build_target_option_node): New parameter.
7837         * c-family/c-common.c (handle_optimize_attribute): Fix calls to
7838         build_optimization_node and build_target_option_node.
7839         * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
7840         (handle_pragma_push_options): Ditto.
7841         * toplev.c (process_options): Ditto.
7842         * opts.c (init_options_struct): Check for opts_set non-null.
7843         * target.def (target_option.save): New parameter.
7844         (target_option.restore): New parameter.
7845         * tm.texi: Generate.
7846         * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
7847         (ix86_pragma_target_parse): Ditto.
7848         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
7849         parameters.
7850         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
7851         to  build_optimization_node and build_target_option_node.
7852         (rs6000_valid_attribute_p): Ditto.
7853         (rs6000_pragma_target_parse): Ditto.
7854         * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
7855         data.
7856         * config/i386/i386.h:
7857         TARGET_64BIT_P: New Macro
7858         TARGET_MMX_P: New Macro.
7859         TARGET_3DNOW_P: New Macro.
7860         TARGET_3DNOW_A_P: New Macro.
7861         TARGET_SSE_P: New Macro.
7862         TARGET_SSE2_P: New Macro.
7863         TARGET_SSE3_P: New Macro.
7864         TARGET_SSSE3_P: New Macro.
7865         TARGET_SSE4_1_P: New Macro.
7866         TARGET_SSE4_2_P: New Macro.
7867         TARGET_AVX_P: New Macro.
7868         TARGET_AVX2_P: New Macro.
7869         TARGET_AVX512F_P: New Macro.
7870         TARGET_AVX512PF_P: New Macro.
7871         TARGET_AVX512ER_P: New Macro.
7872         TARGET_AVX512CD_P: New Macro.
7873         TARGET_FMA_P: New Macro.
7874         TARGET_SSE4A_P: New Macro.
7875         TARGET_FMA4_P: New Macro.
7876         TARGET_XOP_P: New Macro.
7877         TARGET_LWP_P: New Macro.
7878         TARGET_ABM_P: New Macro.
7879         TARGET_BMI_P: New Macro.
7880         TARGET_BMI2_P: New Macro.
7881         TARGET_LZCNT_P: New Macro.
7882         TARGET_TBM_P: New Macro.
7883         TARGET_POPCNT_P: New Macro.
7884         TARGET_SAHF_P: New Macro.
7885         TARGET_MOVBE_P: New Macro.
7886         TARGET_CRC32_P: New Macro.
7887         TARGET_AES_P: New Macro.
7888         TARGET_PCLMUL_P: New Macro.
7889         TARGET_CMPXCHG16B_P: New Macro.
7890         TARGET_FSGSBASE_P: New Macro.
7891         TARGET_RDRND_P: New Macro.
7892         TARGET_F16C_P: New Macro.
7893         TARGET_RTM_P: New Macro.
7894         TARGET_HLE_P: New Macro.
7895         TARGET_RDSEED_P: New Macro.
7896         TARGET_PRFCHW_P: New Macro.
7897         TARGET_ADX_P: New Macro.
7898         TARGET_FXSR_P: New Macro.
7899         TARGET_XSAVE_P: New Macro.
7900         TARGET_XSAVEOPT_P: New Macro.
7901         TARGET_LP64_P: New Macro.
7902         TARGET_X32_P: New Macro.
7903         TARGET_FPMATH_DEFAULT_P: New Macro.
7904         TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
7905         * config/i386/i386.c (ix86_option_override_internal): New parameters.
7906         opts and opts_set.
7907         Change ix86_tune_string to access opts->x_ix86_tune_string.
7908         Change ix86_isa_flags to access opts->x_ix86_isa_flags.
7909         Change ix86_arch_string to access opts->x_ix86_arch_string.
7910         Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
7911         Change ix86_pmode to access opts->x_ix86_pmode.
7912         Change ix86_abi to access opts->x_ix86_abi.
7913         Change ix86_cmodel to access opts->x_ix86_cmodel.
7914         Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
7915         Change ix86_isa_flags_explicit to access
7916         opts->x_ix86_isa_flags_explicit.
7917         Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
7918         Change ix86_regparm to access opts->x_ix86_regparm.
7919         Change ix86_branch_cost to access opts->x_ix86_branch_cost.
7920         Change ix86_preferred_stack_boundary_arg to access
7921         opts->x_ix86_preferred_stack_boundary_arg.
7922         Change ix86_force_align_arg_pointer to access
7923         opts->x_ix86_force_align_arg_pointer.
7924         Change ix86_incoming_stack_boundar_arg to access
7925         opts->x_ix86_incoming_stack_boundar_arg.
7926         Change ix86_fpmath to access opts->x_ix86_fpmath.
7927         Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
7928         Change ix86_recip_name to access opts->x_ix86_recip_name.
7929         Change ix86_stack_protector_guard to access
7930         opts->x_ix86_stack_protector_guard.
7931         Change ix86_tune_memcpy_strategy to access
7932         opts->x_ix86_tune_memcpy_strategy.
7933         Change ix86_tune_memset_strategy to access
7934         opts->x_ix86_tune_memset_strategy.
7935         Change global_options to access opts.
7936         Change global_options_set to access opts_set.
7937         Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
7938         Change TARGET_MMX to TARGET_MMX_P (opts->...).
7939         Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
7940         Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
7941         Change TARGET_SSE to TARGET_SSE_P (opts->...).
7942         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
7943         Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
7944         Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
7945         Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
7946         Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
7947         Change TARGET_AVX to TARGET_AVX_P (opts->...).
7948         Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
7949         Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
7950         Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
7951         Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
7952         Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
7953         Change TARGET_FMA to TARGET_FMA_P (opts->...).
7954         Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
7955         Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
7956         Change TARGET_XOP to TARGET_XOP_P (opts->...).
7957         Change TARGET_LWP to TARGET_LWP_P (opts->...).
7958         Change TARGET_ABM to TARGET_ABM_P (opts->...).
7959         Change TARGET_BMI to TARGET_BMI_P (opts->...).
7960         Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
7961         Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
7962         Change TARGET_TBM to TARGET_TBM_P (opts->...).
7963         Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
7964         Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
7965         Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
7966         Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
7967         Change TARGET_AES to TARGET_AES_P (opts->...).
7968         Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
7969         Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
7970         Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
7971         Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
7972         Change TARGET_F16C to TARGET_F16C_P (opts->...).
7973         Change TARGET_RTM to TARGET_RTM_P (opts->...).
7974         Change TARGET_HLE to TARGET_HLE_P (opts->...).
7975         Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
7976         Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
7977         Change TARGET_ADX to TARGET_ADX_P (opts->...).
7978         Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
7979         Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
7980         Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
7981         Change TARGET_LP64 to TARGET_LP64_P (opts->...).
7982         Change TARGET_X32 to TARGET_X32_P (opts->...).
7983         Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
7984         Change TARGET_FLOAT_RETURNS_IN_80387 to
7985         TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
7986         (ix86_function_specific_save): New parameter. Use opts-> fields
7987         to replace global fields.
7988         (ix86_function_specific_restore): Ditto.
7989         (ix86_valid_target_attribute_inner_p): New parameters.
7990         Fix recursive call.
7991         Fix call to ix86_handle_option and set_option.
7992         (ix86_valid_target_attribute_tree): New parameters.
7993         Change global_options to access opts.
7994         Change global_options_set to access opts_set.
7995         Fix call to ix86_valid_target_attribute_inner_p.
7996         Change ix86_tune_string to access opts->x_ix86_tune_string.
7997         Change ix86_arch_string to access opts->x_ix86_arch_string.
7998         Change ix86_fpmath to access opts->x_ix86_fpmath
7999         Fix call to ix86_option_override_internal.
8000         Fix call to ix86_add_new_builtins.
8001         Fix calls to build_optimization_node and build_target_option_node.
8002         (ix86_valid_target_attribute_p): Remove access to global_options.
8003         Use new gcc_options structure func_options.
8004         Fix call to ix86_valid_target_attribute_tree.
8005         Fix call to  build_optimization_node.
8006         (get_builtin_code_for_version): Fix call to
8007         ix86_valid_target_attribute_tree.
8009 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
8011         * Makefile.in (PICFLAG): New.
8012         (enable_host_shared): New.
8013         (INTERNAL_CFLAGS): Use PICFLAG.
8014         (LIBIBERTY): Use pic build of libiberty.a if configured with
8015         --enable-host-shared.
8016         * configure.ac: Add --enable-host-shared, setting up new
8017         PICFLAG variable.
8018         * configure: Regenerate.
8019         * doc/install.texi (--enable-shared): Add note contrasting it with ...
8020         (--enable-host-shared): New option.
8022 2013-10-15  Richard Biener  <rguenther@suse.de>
8024         * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
8025         for built-in functions.
8027 2013-10-15  Zhenqiang Chen  <zhenqiang.chen@arm.com>
8029         * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
8030         (optimize_range_tests_1): New function,
8031         extracted from optimize_range_tests.
8032         (optimize_range_tests_xor): Similarly.
8033         (optimize_range_tests_diff): New function.
8034         (optimize_range_tests): Use optimize_range_tests_1.
8036 2013-10-15  Cong Hou  <congh@google.com>
8038         * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
8039         requirement of the reduction pattern so that one operand of the
8040         reduction operation can come from outside of the loop.
8042 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
8044         * config/arm/neon-schedgen.ml: Remove.
8045         * config/arm/cortex-a9-neon.md: Remove comment regarding
8046         neon-schedgen.ml.
8048 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
8050         * config/arm/types: Remove old neon types.
8052 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
8054         * config/arm/cortex-a7.md
8055         (cortex_a7_neon_type): New.
8056         (cortex_a7_neon_mul): Update for new types.
8057         (cortex_a7_neon_mla): Likewise.
8058         (cortex_a7_neon): Likewise.
8060 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
8062         * config/arm/cortex-a15-neon.md
8063         (cortex_a15_neon_type): New,
8065         (cortex_a15_neon_int_1): Remove.
8066         (cortex_a15_neon_int_2): Likewise.
8067         (cortex_a15_neon_int_3): Likewise.
8068         (cortex_a15_neon_int_4): Likewise.
8069         (cortex_a15_neon_int_5): Likewise.
8070         (cortex_a15_neon_vqneg_vqabs): Likewise.
8071         (cortex_a15_neon_vmov): Likewise.
8072         (cortex_a15_neon_vaba): Likewise.
8073         (cortex_a15_neon_vaba_qqq): Likewise.
8074         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8075         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
8076         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
8077         Likewise.
8078         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8079         (cortex_a15_neon_mla_qqq_8_16): Likewise.
8080         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
8081         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
8082         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
8083         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
8084         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
8085         (cortex_a15_neon_shift_1): Likewise.
8086         (cortex_a15_neon_shift_2): Likewise.
8087         (cortex_a15_neon_shift_3): Likewise.
8088         (cortex_a15_neon_vshl_ddd): Likewise.
8089         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
8090         (cortex_a15_neon_vsra_vrsra): Likewise.
8091         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
8092         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
8093         (cortex_a15_neon_bp_3cycle): Likewise.
8094         (cortex_a15_neon_ldm_2): Likewise.
8095         (cortex_a15_neon_stm_2): Likewise.
8096         (cortex_a15_neon_mcr): Likewise.
8097         (cortex_a15_neon_mrc): Likewise.
8098         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
8099         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
8100         (cortex_a15_neon_fp_vmul_ddd): Likewise.
8101         (cortex_a15_neon_fp_vmul_qqd): Likewise.
8102         (cortex_a15_neon_fp_vmla_ddd): Likewise.
8103         (cortex_a15_neon_fp_vmla_qqq): Likewise.
8104         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
8105         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
8106         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
8107         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
8108         (cortex_a15_neon_bp_simple): Likewise.
8109         (cortex_a15_neon_bp_2cycle): Likewise.
8110         (cortex_a15_neon_bp_3cycle): Likewise.
8111         (cortex_a15_neon_vld1_1_2_regs): Likewise.
8112         (cortex_a15_neon_vld1_3_4_regs): Likewise.
8113         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
8114         (cortex_a15_neon_vld2_4_regs): Likewise.
8115         (cortex_a15_neon_vld3_vld4): Likewise.
8116         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
8117         (cortex_a15_neon_vst1_3_4_regs): Likewise.
8118         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
8119         (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
8120         (cortex_a15_neon_vst3_vst4): Rename to...
8121         (cortex_a15_neon_vst4): This, update for new attributes.
8122         (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
8123         (cortex_a15_neon_vld3_vld4_lane): Likewise.
8124         (cortex_a15_neon_vst1_vst2_lane): Likewise.
8125         (cortex_a15_neon_vst3_vst4_lane): Likewise.
8126         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
8127         (cortex_a15_neon_ldm_2): Likewise.
8128         (cortex_a15_neon_stm_2): Likewise.
8129         (cortex_a15_neon_mcr): Likewise.
8130         (cortex_a15_neon_mcr_2_mcrr): Likewise.
8131         (cortex_a15_neon_mrc): Likewise.
8132         (cortex_a15_neon_mrrc): Likewise.
8134         (cortex_a15_neon_abd): New.
8135         (cortex_a15_neon_abd_q): Likewise.
8136         (cortex_a15_neon_aba): Likewise.
8137         (cortex_a15_neon_aba_q): Likewise.
8138         (cortex_a15_neon_acc): Likewise.
8139         (cortex_a15_neon_acc_q): Likewise.
8140         (cortex_a15_neon_arith_basic): Likewise.
8141         (cortex_a15_neon_arith_complex): Likewise.
8142         (cortex_a15_neon_multiply): Likewise.
8143         (cortex_a15_neon_multiply_q): Likewise.
8144         (cortex_a15_neon_mla): Likewise.
8145         (cortex_a15_neon_mla_q): Likewise.
8146         (cortex_a15_neon_sat_mla_long): Likewise.
8147         (cortex_a15_neon_shift_acc): Likewise.
8148         (cortex_a15_neon_shift_imm_basic): Likewise.
8149         (cortex_a15_neon_shift_imm_complex): Likewise.
8150         (cortex_a15_neon_shift_reg_basic): Likewise.
8151         (cortex_a15_neon_shift_reg_basic_q): Likewise.
8152         (cortex_a15_neon_shift_reg_complex): Likewise.
8153         (cortex_a15_neon_shift_reg_complex_q): Likewise.
8154         (cortex_a15_neon_fp_negabs): Likewise
8155         (cortex_a15_neon_fp_arith): Likewise
8156         (cortex_a15_neon_fp_arith_q): Likewise
8157         (cortex_a15_neon_fp_cvt_int): Likewise
8158         (cortex_a15_neon_fp_cvt_int_q): Likewise
8159         (cortex_a15_neon_fp_cvt_16): Likewise
8160         (cortex_a15_neon_fp_mul): Likewise
8161         (cortex_a15_neon_fp_mul_q): Likewise
8162         (cortex_a15_neon_fp_mla): Likewise
8163         (cortex_a15_neon_fp_mla_q): Likewise
8164         (cortex_a15_neon_fp_recps_rsqrte): Likewise.
8165         (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
8166         (cortex_a15_neon_bitops): Likewise.
8167         (cortex_a15_neon_bitops_q): Likewise.
8168         (cortex_a15_neon_from_gp): Likewise.
8169         (cortex_a15_neon_from_gp_q): Likewise.
8170         (cortex_a15_neon_tbl3_tbl4): Likewise.
8171         (cortex_a15_neon_zip_q): Likewise.
8172         (cortex_a15_neon_to_gp): Likewise.
8173         (cortex_a15_neon_load_a): Likewise.
8174         (cortex_a15_neon_load_b): Likewise.
8175         (cortex_a15_neon_load_c): Likewise.
8176         (cortex_a15_neon_load_d): Likewise.
8177         (cortex_a15_neon_load_e): Likewise.
8178         (cortex_a15_neon_load_f): Likewise.
8179         (cortex_a15_neon_store_a): Likewise.
8180         (cortex_a15_neon_store_b): Likewise.
8181         (cortex_a15_neon_store_c): Likewise.
8182         (cortex_a15_neon_store_d): Likewise.
8183         (cortex_a15_neon_store_e): Likewise.
8184         (cortex_a15_neon_store_f): Likewise.
8185         (cortex_a15_neon_store_g): Likewise.
8186         (cortex_a15_neon_store_h): Likewise.
8187         (cortex_a15_vfp_to_from_gp): Likewise.
8189 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
8191         * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
8193         (cortex_a9_neon_vshl_ddd): Remove.
8194         (cortex_a9_neon_vst3_vst4): Likewise.
8195         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
8197         (cortex_a9_neon_bit_ops_q): New.
8199         (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
8200         (cortex_a9_neon_int_2): Likewise.
8201         (cortex_a9_neon_int_3): Likewise.
8202         (cortex_a9_neon_int_4): Likewise.
8203         (cortex_a9_neon_int_5): Likewise.
8204         (cortex_a9_neon_vqneg_vqabs): Likewise.
8205         (cortex_a9_neon_vmov): Likewise.
8206         (cortex_a9_neon_vaba): Likewise.
8207         (cortex_a9_neon_vaba_qqq): Likewise.
8208         (cortex_a9_neon_shift_1): Likewise.
8209         (cortex_a9_neon_shift_2): Likewise.
8210         (cortex_a9_neon_shift_3): Likewise.
8211         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
8212         (cortex_a9_neon_vsra_vrsra): Likewise.
8213         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8214         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
8215         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
8216         Likewise.
8217         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8218         (cortex_a9_neon_mla_qqq_8_16): Likewise.
8219         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
8220         Likewise.
8221         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
8222         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
8223         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
8224         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
8225         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
8226         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
8227         (cortex_a9_neon_fp_vsum): Likewise.
8228         (cortex_a9_neon_fp_vmul_ddd): Likewise.
8229         (cortex_a9_neon_fp_vmul_qqd): Likewise.
8230         (cortex_a9_neon_fp_vmla_ddd): Likewise.
8231         (cortex_a9_neon_fp_vmla_qqq): Likewise.
8232         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
8233         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
8234         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
8235         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
8236         (cortex_a9_neon_bp_simple): Likewise.
8237         (cortex_a9_neon_bp_2cycle): Likewise.
8238         (cortex_a9_neon_bp_3cycle): Likewise.
8239         (cortex_a9_neon_ldr): Likewise.
8240         (cortex_a9_neon_str): Likewise.
8241         (cortex_a9_neon_vld1_1_2_regs): Likewise.
8242         (cortex_a9_neon_vld1_3_4_regs): Likewise.
8243         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
8244         (cortex_a9_neon_vld2_4_regs): Likewise.
8245         (cortex_a9_neon_vld3_vld4): Likewise.
8246         (cortex_a9_neon_vld1_vld2_lane): Likewise.
8247         (cortex_a9_neon_vld3_vld4_lane): Likewise.
8248         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
8249         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
8250         (cortex_a9_neon_vst1_3_4_regs): Likewise.
8251         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
8252         (cortex_a9_neon_vst1_vst2_lane): Likewise.
8253         (cortex_a9_neon_vst3_vst4_lane): Likewise.
8254         (cortex_a9_neon_mcr): Likewise.
8255         (cortex_a9_neon_mcr_2_mcrr): Likewise.
8256         (cortex_a9_neon_mrc): Likewise.
8257         (cortex_a9_neon_mrrc): Likewise.
8259 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
8261         * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
8263         (cortex_a8_neon_vshl_ddd): Remove.
8264         (cortex_a8_neon_vst3_vst4): Likewise.
8265         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
8267         (cortex_a8_neon_bit_ops_q): New.
8269         (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
8270         (cortex_a8_neon_int_2): Likewise..
8271         (cortex_a8_neon_int_3): Likewise.
8272         (cortex_a8_neon_int_5): Likewise.
8273         (cortex_a8_neon_vqneg_vqabs): Likewise.
8274         (cortex_a8_neon_int_4): Likewise.
8275         (cortex_a8_neon_vaba): Likewise.
8276         (cortex_a8_neon_vaba_qqq): Likewise.
8277         (cortex_a8_neon_shift_1): Likewise.
8278         (cortex_a8_neon_shift_2): Likewise.
8279         (cortex_a8_neon_shift_3): Likewise.
8280         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
8281         (cortex_a8_neon_vsra_vrsra): Likewise.
8282         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8283         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
8284         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
8285         Likewise.
8286         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8287         (cortex_a8_neon_mla_qqq_8_16): Likewise.
8288         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
8289         Likewise.
8290         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
8291         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
8292         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
8293         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
8294         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
8295         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
8296         (cortex_a8_neon_fp_vsum): Likewise.
8297         (cortex_a8_neon_fp_vmul_ddd): Likewise.
8298         (cortex_a8_neon_fp_vmul_qqd): Likewise.
8299         (cortex_a8_neon_fp_vmla_ddd): Likewise.
8300         (cortex_a8_neon_fp_vmla_qqq): Likewise.
8301         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
8302         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
8303         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
8304         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
8305         (cortex_a8_neon_bp_simple): Likewise.
8306         (cortex_a8_neon_bp_2cycle): Likewise.
8307         (cortex_a8_neon_bp_3cycle): Likewise.
8308         (cortex_a8_neon_ldr): Likewise.
8309         (cortex_a8_neon_str): Likewise.
8310         (cortex_a8_neon_vld1_1_2_regs): Likewise.
8311         (cortex_a8_neon_vld1_3_4_regs): Likewise.
8312         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
8313         (cortex_a8_neon_vld2_4_regs): Likewise.
8314         (cortex_a8_neon_vld3_vld4): Likewise.
8315         (cortex_a8_neon_vld1_vld2_lane): Likewise.
8316         (cortex_a8_neon_vld3_vld4_lane): Likewise.
8317         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
8318         (cortex_a8_neon_vst1_3_4_regs): Likewise.
8319         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
8320         (cortex_a8_neon_vst1_vst2_lane): Likewise.
8321         (cortex_a8_neon_vst3_vst4_lane): Likewise.
8322         (cortex_a8_neon_mcr): Likewise.
8323         (cortex_a8_neon_mcr_2_mcrr): Likewise.
8324         (cortex_a8_neon_mrc): Likewise.
8325         (cortex_a8_neon_mrrc): Likewise.
8327 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
8329         * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
8330         (fp): New.
8331         * config/aarch64/aarch64-simd.md (neon_type): Remove.
8332         (aarch64_simd_dup<mode>): Add "type" attribute.
8333         (aarch64_dup_lane<mode>): Likewise.
8334         (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
8335         (*aarch64_simd_mov<mode>): Likewise.
8336         (aarch64_simd_mov_from_<mode>low): Likewise.
8337         (aarch64_simd_mov_from_<mode>high): Likewise.
8338         (orn<mode>3): Likewise.
8339         (bic<mode>3): Likewise.
8340         (add<mode>3): Likewise.
8341         (sub<mode>3): Likewise.
8342         (mul<mode>3): Likewise.
8343         (*aarch64_mul3_elt<mode>): Likewise.
8344         (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
8345         (*aarch64_mul3_elt_to_128df): Likewise.
8346         (*aarch64_mul3_elt_to_64v2df): Likewise.
8347         (neg<mode>2): Likewise.
8348         (abs<mode>2): Likewise.
8349         (abd<mode>_3): Likewise.
8350         (aba<mode>_3): Likewise.
8351         (fabd<mode>_3): Likewise.
8352         (*fabd_scalar<mode>3): Likewise.
8353         (and<mode>3): Likewise.
8354         (ior<mode>3): Likewise.
8355         (xor<mode>3): Likewise.
8356         (one_cmpl<mode>2): Likewise.
8357         (aarch64_simd_vec_set<mode>): Likewise.
8358         (aarch64_simd_lshr<mode>): Likewise.
8359         (aarch64_simd_ashr<mode>): Likewise.
8360         (aarch64_simd_imm_shl<mode>): Likewise.
8361         (aarch64_simd_reg_sshl<mode): Likewise.
8362         (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
8363         (aarch64_simd_reg_shl<mode>_signed): Likewise.
8364         (aarch64_simd_vec_setv2di): Likewise.
8365         (aarch64_simd_vec_set<mode>): Likewise.
8366         (aarch64_mla<mode>): Likewise.
8367         (*aarch64_mla_elt<mode>): Likewise.
8368         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
8369         (aarch64_mls<mode>): Likewise.
8370         (*aarch64_mls_elt<mode>): Likewise.
8371         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
8372         (<su><maxmin><mode>3): Likewise.
8373         (move_lo_quad_<mode>): Likewise.
8374         (aarch64_simd_move_hi_quad_<mode>): Likewise.
8375         (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
8376         (vec_pack_trunc_<mode>): Likewise.
8377         (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
8378         (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
8379         (*aarch64_<su>mlal_lo<mode>): Likewise.
8380         (*aarch64_<su>mlal_hi<mode>): Likewise.
8381         (*aarch64_<su>mlsl_lo<mode>): Likewise.
8382         (*aarch64_<su>mlsl_hi<mode>): Likewise.
8383         (*aarch64_<su>mlal<mode>): Likewise.
8384         (*aarch64_<su>mlsl<mode>): Likewise.
8385         (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
8386         (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
8387         (add<mode>3): Likewise.
8388         (sub<mode>3): Likewise.
8389         (mul<mode>3): Likewise.
8390         (div<mode>3): Likewise.
8391         (neg<mode>2): Likewise.
8392         (abs<mode>2): Likewise.
8393         (fma<mode>4): Likewise.
8394         (*aarch64_fma4_elt<mode>): Likewise.
8395         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
8396         (*aarch64_fma4_elt_to_128df): Likewise.
8397         (*aarch64_fma4_elt_to_64v2df): Likewise.
8398         (fnma<mode>4): Likewise.
8399         (*aarch64_fnma4_elt<mode>): Likewise.
8400         (*aarch64_fnma4_elt_<vswap_width_name><mode>
8401         (*aarch64_fnma4_elt_to_128df): Likewise.
8402         (*aarch64_fnma4_elt_to_64v2df): Likewise.
8403         (<frint_pattern><mode>2): Likewise.
8404         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
8405         (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
8406         (vec_unpacks_lo_v4sf): Likewise.
8407         (aarch64_float_extend_lo_v2df): Likewise.
8408         (vec_unpacks_hi_v4sf): Likewise.
8409         (aarch64_float_truncate_lo_v2sf): Likewise.
8410         (aarch64_float_truncate_hi_v4sf): Likewise.
8411         (aarch64_vmls<mode>): Likewise.
8412         (<su><maxmin><mode>3): Likewise.
8413         (<maxmin_uns><mode>3): Likewise.
8414         (reduc_<sur>plus_<mode>): Likewise.
8415         (reduc_<sur>plus_v2di): Likewise.
8416         (reduc_<sur>plus_v2si): Likewise.
8417         (reduc_<sur>plus_<mode>): Likewise.
8418         (aarch64_addpv4sf): Likewise.
8419         (clz<mode>2): Likewise.
8420         (reduc_<maxmin_uns>_<mode>): Likewise.
8421         (reduc_<maxmin_uns>_v2di): Likewise.
8422         (reduc_<maxmin_uns>_v2si): Likewise.
8423         (reduc_<maxmin_uns>_<mode>): Likewise.
8424         (reduc_<maxmin_uns>_v4sf): Likewise.
8425         (aarch64_simd_bsl<mode>_internal): Likewise.
8426         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
8427         (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
8428         (aarch64_get_lane<mode>): Likewise.
8429         (*aarch64_combinez<mode>): Likewise.
8430         (aarch64_combine<mode>): Likewise.
8431         (aarch64_simd_combine<mode>): Likewise.
8432         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
8433         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
8434         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
8435         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
8436         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
8437         (aarch64_<sur>h<addsub><mode>): Likewise.
8438         (aarch64_<sur><addsub>hn<mode>): Likewise.
8439         (aarch64_<sur><addsub>hn2<mode>): Likewise.
8440         (aarch64_pmul<mode>): Likewise.
8441         (aarch64_<su_optab><optab><mode>): Likewise.
8442         (aarch64_<sur>qadd<mode>): Likewise.
8443         (aarch64_sqmovun<mode>): Likewise.
8444         (aarch64_<sur>qmovn<mode>): Likewise.
8445         (aarch64_s<optab><mode>): Likewise.
8446         (aarch64_sq<r>dmulh<mode>): Likewise.
8447         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
8448         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
8449         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
8450         (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
8451         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
8452         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
8453         (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
8454         (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
8455         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
8456         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
8457         (aarch64_sqdmull<mode>): Likewise.
8458         (aarch64_sqdmull_lane<mode>_internal): Likewise.
8459         (aarch64_sqdmull_n<mode>): Likewise.
8460         (aarch64_sqdmull2<mode>_internal): Likewise.
8461         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
8462         (aarch64_sqdmull2_n<mode>_internal): Likewise.
8463         (aarch64_<sur>shl<mode>): Likewise.
8464         (aarch64_<sur>q<r>shl<mode>
8465         (aarch64_<sur>shll_n<mode>): Likewise.
8466         (aarch64_<sur>shll2_n<mode>): Likewise.
8467         (aarch64_<sur>shr_n<mode>): Likewise.
8468         (aarch64_<sur>sra_n<mode>): Likewise.
8469         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
8470         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
8471         (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
8472         (aarch64_cm<optab><mode>): Likewise.
8473         (aarch64_cm<optab>di): Likewise.
8474         (aarch64_cm<optab><mode>): Likewise.
8475         (aarch64_cm<optab>di): Likewise.
8476         (aarch64_cmtst<mode>): Likewise.
8477         (aarch64_cmtstdi): Likewise.
8478         (aarch64_cm<optab><mode>): Likewise.
8479         (*aarch64_fac<optab><mode>): Likewise.
8480         (aarch64_addp<mode>): Likewise.
8481         (aarch64_addpdi): Likewise.
8482         (sqrt<mode>2): Likewise.
8483         (vec_load_lanesoi<mode>): Likewise.
8484         (vec_store_lanesoi<mode>): Likewise.
8485         (vec_load_lanesci<mode>): Likewise.
8486         (vec_store_lanesci<mode>): Likewise.
8487         (vec_load_lanesxi<mode>): Likewise.
8488         (vec_store_lanesxi<mode>): Likewise.
8489         (*aarch64_mov<mode>): Likewise.
8490         (aarch64_ld2<mode>_dreg): Likewise.
8491         (aarch64_ld2<mode>_dreg): Likewise.
8492         (aarch64_ld3<mode>_dreg): Likewise.
8493         (aarch64_ld3<mode>_dreg): Likewise.
8494         (aarch64_ld4<mode>_dreg): Likewise.
8495         (aarch64_ld4<mode>_dreg): Likewise.
8496         (aarch64_tbl1<mode>): Likewise.
8497         (aarch64_tbl2v16qi): Likewise.
8498         (aarch64_combinev16qi): Likewise.
8499         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
8500         (aarch64_st2<mode>_dreg): Likewise.
8501         (aarch64_st2<mode>_dreg): Likewise.
8502         (aarch64_st3<mode>_dreg): Likewise.
8503         (aarch64_st3<mode>_dreg): Likewise.
8504         (aarch64_st4<mode>_dreg): Likewise.
8505         (aarch64_st4<mode>_dreg): Likewise.
8506         (*aarch64_simd_ld1r<mode>): Likewise.
8507         (aarch64_frecpe<mode>): Likewise.
8508         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
8509         (aarch64_frecps<mode>): Likewise.
8511 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
8513         * config/arm/iterators.md (V_elem_ch): New.
8514         (q): Likewise.
8515         (VQH_type): Likewise.
8516         * config/arm/arm.md (is_neon_type): New.
8517         (conds): Use is_neon_type.
8518         (anddi3_insn): Update type attribute.
8519         (xordi3_insn): Likewise.
8520         (one_cmpldi2): Likewise.
8521         * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
8522         * config/arm/neon.md (neon_mov): Update type attribute.
8523         (*movmisalign<mode>_neon_store): Likewise.
8524         (*movmisalign<mode>_neon_load): Likewise.
8525         (vec_set<mode>_internal): Likewise.
8526         (vec_set<mode>_internal): Likewise.
8527         (vec_setv2di_internal): Likewise.
8528         (vec_extract<mode>): Likewise.
8529         (vec_extract<mode>): Likewise.
8530         (vec_extractv2di): Likewise.
8531         (*add<mode>3_neon): Likewise.
8532         (adddi3_neon): Likewise.
8533         (*sub<mode>3_neon): Likewise.
8534         (subdi3_neon): Likewise.
8535         (fma<VCVTF:mode>4): Likewise.
8536         (fma<VCVTF:mode>4_intrinsic): Likewise.
8537         (*fmsub<VCVTF:mode>4): Likewise.
8538         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
8539         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
8540         (ior<mode>3): Likewise.
8541         (and<mode>3): Likewise.
8542         (orn<mode>3_neon): Likewise.
8543         (orndi3_neon): Likewise.
8544         (bic<mode>3_neon): Likewise.
8545         (bicdi3_neon): Likewise.
8546         (xor<mode>3): Likewise.
8547         (one_cmpl<mode>2): Likewise.
8548         (abs<mode>2): Likewise.
8549         (neg<mode>2): Likewise.
8550         (negdi2_neon): Likewise.
8551         (*umin<mode>3_neon): Likewise.
8552         (*umax<mode>3_neon): Likewise.
8553         (*smin<mode>3_neon): Likewise.
8554         (*smax<mode>3_neon): Likewise.
8555         (vashl<mode>3): Likewise.
8556         (vashr<mode>3_imm): Likewise.
8557         (vlshr<mode>3_imm): Likewise.
8558         (ashl<mode>3_signed): Likewise.
8559         (ashl<mode>3_unsigned): Likewise.
8560         (neon_load_count): Likewise.
8561         (ashldi3_neon_noclobber): Likewise.
8562         (ashldi3_neon): Likewise.
8563         (signed_shift_di3_neon): Likewise.
8564         (unsigned_shift_di3_neon): Likewise.
8565         (ashrdi3_neon_imm_noclobber): Likewise.
8566         (lshrdi3_neon_imm_noclobber): Likewise.
8567         (<shift>di3_neon): Likewise.
8568         (widen_ssum<mode>3): Likewise.
8569         (widen_usum<mode>3): Likewise.
8570         (quad_halves_<code>v4si): Likewise.
8571         (quad_halves_<code>v4sf): Likewise.
8572         (quad_halves_<code>v8hi): Likewise.
8573         (quad_halves_<code>v16qi): Likewise.
8574         (reduc_splus_v2di): Likewise.
8575         (neon_vpadd_internal<mode>): Likewise.
8576         (neon_vpsmin<mode>): Likewise.
8577         (neon_vpsmax<mode>): Likewise.
8578         (neon_vpumin<mode>): Likewise.
8579         (neon_vpumax<mode>): Likewise.
8580         (*ss_add<mode>_neon): Likewise.
8581         (*us_add<mode>_neon): Likewise.
8582         (*ss_sub<mode>_neon): Likewise.
8583         (*us_sub<mode>_neon): Likewise.
8584         (neon_vadd<mode>_unspec): Likewise.
8585         (neon_vaddl<mode>): Likewise.
8586         (neon_vaddw<mode>): Likewise.
8587         (neon_vhadd<mode>): Likewise.
8588         (neon_vqadd<mode>): Likewise.
8589         (neon_vaddhn<mode>): Likewise.
8590         (neon_vmul<mode>): Likewise.
8591         (neon_vfms<VCVTF:mode>): Likewise.
8592         (neon_vmlal<mode>): Likewise.
8593         (neon_vmls<mode>): Likewise.
8594         (neon_vmlsl<mode>): Likewise.
8595         (neon_vqdmulh<mode>): Likewise.
8596         (neon_vqdmlal<mode>): Likewise.
8597         (neon_vqdmlsl<mode>): Likewise.
8598         (neon_vmull<mode>): Likewise.
8599         (neon_vqdmull<mode>): Likewise.
8600         (neon_vsub<mode>_unspec): Likewise.
8601         (neon_vsubl<mode>): Likewise.
8602         (neon_vsubw<mode>): Likewise.
8603         (neon_vqsub<mode>): Likewise.
8604         (neon_vhsub<mode>): Likewise.
8605         (neon_vsubhn<mode>): Likewise.
8606         (neon_vceq<mode>): Likewise.
8607         (neon_vcge<mode>): Likewise.
8608         (neon_vcgeu<mode>): Likewise.
8609         (neon_vcgt<mode>): Likewise.
8610         (neon_vcgtu<mode>): Likewise.
8611         (neon_vcle<mode>): Likewise.
8612         (neon_vclt<mode>): Likewise.
8613         (neon_vcage<mode>): Likewise.
8614         (neon_vcagt<mode>): Likewise.
8615         (neon_vtst<mode>): Likewise.
8616         (neon_vabd<mode>): Likewise.
8617         (neon_vabdl<mode>): Likewise.
8618         (neon_vaba<mode>): Likewise.
8619         (neon_vabal<mode>): Likewise.
8620         (neon_vmax<mode>): Likewise.
8621         (neon_vmin<mode>): Likewise.
8622         (neon_vpaddl<mode>): Likewise.
8623         (neon_vpadal<mode>): Likewise.
8624         (neon_vpmax<mode>): Likewise.
8625         (neon_vpmin<mode>): Likewise.
8626         (neon_vrecps<mode>): Likewise.
8627         (neon_vrsqrts<mode>): Likewise.
8628         (neon_vqabs<mode>): Likewise.
8629         (neon_vqneg<mode>): Likewise.
8630         (neon_vcls<mode>): Likewise.
8631         (clz<mode>2): Likewise.
8632         (popcount<mode>2): Likewise.
8633         (neon_vrecpe<mode>): Likewise.
8634         (neon_vrsqrte<mode>): Likewise.
8635         (neon_vget_lane<mode>_sext_internal): Likewise.
8636         (neon_vget_lane<mode>_zext_internal): Likewise.
8637         (neon_vdup_n<mode>): Likewise.
8638         (neon_vdup_n<mode>): Likewise.
8639         (neon_vdup_nv2di): Likewise.
8640         (neon_vdup_lane<mode>_interal): Likewise.
8641         (*neon_vswp<mode>): Likewise.
8642         (neon_vcombine<mode>): Likewise.
8643         (float<mode><V_cvtto>2): Likewise.
8644         (floatuns<mode><V_cvtto>2): Likewise.
8645         (fix_trunc<mode><V_cvtto>2): Likewise.
8646         (fixuns_trunc<mode><V_cvtto>2
8647         (neon_vcvt<mode>): Likewise.
8648         (neon_vcvt<mode>): Likewise.
8649         (neon_vcvtv4sfv4hf): Likewise.
8650         (neon_vcvtv4hfv4sf): Likewise.
8651         (neon_vcvt_n<mode>): Likewise.
8652         (neon_vcvt_n<mode>): Likewise.
8653         (neon_vmovn<mode>): Likewise.
8654         (neon_vqmovn<mode>): Likewise.
8655         (neon_vqmovun<mode>): Likewise.
8656         (neon_vmovl<mode>): Likewise.
8657         (neon_vmul_lane<mode>): Likewise.
8658         (neon_vmul_lane<mode>): Likewise.
8659         (neon_vmull_lane<mode>): Likewise.
8660         (neon_vqdmull_lane<mode>): Likewise.
8661         (neon_vqdmulh_lane<mode>): Likewise.
8662         (neon_vqdmulh_lane<mode>): Likewise.
8663         (neon_vmla_lane<mode>): Likewise.
8664         (neon_vmla_lane<mode>): Likewise.
8665         (neon_vmlal_lane<mode>): Likewise.
8666         (neon_vqdmlal_lane<mode>): Likewise.
8667         (neon_vmls_lane<mode>): Likewise.
8668         (neon_vmls_lane<mode>): Likewise.
8669         (neon_vmlsl_lane<mode>): Likewise.
8670         (neon_vqdmlsl_lane<mode>): Likewise.
8671         (neon_vext<mode>): Likewise.
8672         (neon_vrev64<mode>): Likewise.
8673         (neon_vrev32<mode>): Likewise.
8674         (neon_vrev16<mode>): Likewise.
8675         (neon_vbsl<mode>_internal): Likewise.
8676         (neon_vshl<mode>): Likewise.
8677         (neon_vqshl<mode>): Likewise.
8678         (neon_vshr_n<mode>): Likewise.
8679         (neon_vshrn_n<mode>): Likewise.
8680         (neon_vqshrn_n<mode>): Likewise.
8681         (neon_vqshrun_n<mode>): Likewise.
8682         (neon_vshl_n<mode>): Likewise.
8683         (neon_vqshl_n<mode>): Likewise.
8684         (neon_vqshlu_n<mode>): Likewise.
8685         (neon_vshll_n<mode>): Likewise.
8686         (neon_vsra_n<mode>): Likewise.
8687         (neon_vsri_n<mode>): Likewise.
8688         (neon_vsli_n<mode>): Likewise.
8689         (neon_vtbl1v8qi): Likewise.
8690         (neon_vtbl2v8qi): Likewise.
8691         (neon_vtbl3v8qi): Likewise.
8692         (neon_vtbl4v8qi): Likewise.
8693         (neon_vtbl1v16qi): Likewise.
8694         (neon_vtbl2v16qi): Likewise.
8695         (neon_vcombinev16qi): Likewise.
8696         (neon_vtbx1v8qi): Likewise.
8697         (neon_vtbx2v8qi): Likewise.
8698         (neon_vtbx3v8qi): Likewise.
8699         (neon_vtbx4v8qi): Likewise.
8700         (*neon_vtrn<mode>_insn): Likewise.
8701         (*neon_vzip<mode>_insn): Likewise.
8702         (*neon_vuzp<mode>_insn): Likewise.
8703         (neon_vld1<mode>): Likewise.
8704         (neon_vld1_lane<mode>): Likewise.
8705         (neon_vld1_lane<mode>): Likewise.
8706         (neon_vld1_dup<mode>): Likewise.
8707         (neon_vld1_dup<mode>): Likewise.
8708         (neon_vld1_dupv2di): Likewise.
8709         (neon_vst1<mode>): Likewise.
8710         (neon_vst1_lane<mode>): Likewise.
8711         (neon_vst1_lane<mode>): Likewise.
8712         (neon_vld2<mode>): Likewise.
8713         (neon_vld2<mode>): Likewise.
8714         (neon_vld2_lane<mode>): Likewise.
8715         (neon_vld2_lane<mode>): Likewise.
8716         (neon_vld2_dup<mode>): Likewise.
8717         (neon_vst2<mode>): Likewise.
8718         (neon_vst2<mode>): Likewise.
8719         (neon_vst2_lane<mode>): Likewise.
8720         (neon_vst2_lane<mode>): Likewise.
8721         (neon_vld3<mode>): Likewise.
8722         (neon_vld3qa<mode>): Likewise.
8723         (neon_vld3qb<mode>): Likewise.
8724         (neon_vld3_lane<mode>): Likewise.
8725         (neon_vld3_lane<mode>): Likewise.
8726         (neon_vld3_dup<mode>): Likewise.
8727         (neon_vst3<mode>): Likewise.
8728         (neon_vst3qa<mode>): Likewise.
8729         (neon_vst3qb<mode>): Likewise.
8730         (neon_vst3_lane<mode>): Likewise.
8731         (neon_vst3_lane<mode>): Likewise.
8732         (neon_vld4<mode>): Likewise.
8733         (neon_vld4qa<mode>): Likewise.
8734         (neon_vld4qb<mode>): Likewise.
8735         (neon_vld4_lane<mode>): Likewise.
8736         (neon_vld4_lane<mode>): Likewise.
8737         (neon_vld4_dup<mode>): Likewise.
8738         (neon_vst4<mode>): Likewise.
8739         (neon_vst4qa<mode>): Likewise.
8740         (neon_vst4qb<mode>): Likewise.
8741         (neon_vst4_lane<mode>): Likewise.
8742         (neon_vst4_lane<mode>): Likewise.
8743         (neon_vec_unpack<US>_lo_<mode>): Likewise.
8744         (neon_vec_unpack<US>_hi_<mode>): Likewise.
8745         (neon_vec_<US>mult_lo_<mode>): Likewise.
8746         (neon_vec_<US>mult_hi_<mode>): Likewise.
8747         (neon_vec_<US>shiftl_<mode>): Likewise.
8748         (neon_unpack<US>_<mode>): Likewise.
8749         (neon_vec_<US>mult_<mode>): Likewise.
8750         (vec_pack_trunc_<mode>): Likewise.
8751         (neon_vec_pack_trunc_<mode>): Likewise.
8752         (neon_vabd<mode>_2): Likewise.
8753         (neon_vabd<mode>_3): Likewise.
8755 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
8757         * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
8758         (load_pair): Update type attribute.
8759         (store_pair): Update type attribute.
8760         * config/aarch64/iterators.md (q): New.
8762 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
8764         * config/arm/types.md: Add new types for Neon insns.
8766 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8767             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8768             Sergey Lega  <sergey.s.lega@intel.com>
8769             Anna Tikhonova  <anna.tikhonova@intel.com>
8770             Ilya Tocar  <ilya.tocar@intel.com>
8771             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8772             Ilya Verbin  <ilya.verbin@intel.com>
8773             Kirill Yukhin  <kirill.yukhin@intel.com>
8774             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8776         * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
8777         UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
8778         UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
8779         (rcp14<mode>): New.
8780         (srcp14<mode>): Ditto.
8781         (rsqrt14<mode>): Ditto.
8782         (rsqrt14<mode>): Ditto.
8783         (avx512f_vmscalef<mode>): Ditto.
8784         (avx512f_scalef<mode>): Ditto.
8785         (avx512f_getexp<mode>): Ditto.
8786         (avx512f_sgetexp<mode>): Ditto.
8787         (avx512f_fixupimm<mode>): Ditto.
8788         (avx512f_sfixupimm<mode>): Ditto.
8789         (avx512f_rndscale<mode>): Ditto.
8790         (*avx512er_exp2<mode>): Ditto.
8791         (*avx512er_rcp28<mode>): Ditto.
8792         (avx512er_rsqrt28<mode>): Ditto.
8793         (avx512f_getmant<mode>): Ditto.
8794         (avx512f_getmant<mode>): Ditto.
8795         (avx512f_rndscale<mode>): Fix formatting.
8797 2013-10-15  Martin Jambor  <mjambor@suse.cz>
8799         * ipa-utils.h (ipa_edge_within_scc): Declare.
8800         * ipa-cp.c (edge_within_scc): Moved...
8801         * ipa-utils.c (ipa_edge_within_scc): ...here.  Updated all callers.
8803 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8804             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8805             Sergey Lega  <sergey.s.lega@intel.com>
8806             Anna Tikhonova  <anna.tikhonova@intel.com>
8807             Ilya Tocar  <ilya.tocar@intel.com>
8808             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8809             Ilya Verbin  <ilya.verbin@intel.com>
8810             Kirill Yukhin  <kirill.yukhin@intel.com>
8811             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8813         * config/i386/predicates.md (const_8_to_15_operand): New.
8814         (const_16_to_31_operand): Ditto.
8815         * config/i386/sse.md (V8FI): New.
8816         (V16FI): Ditto.
8817         (reduc_splus_v8df): Ditto.
8818         (reduc_splus_v16sf): Ditto.
8819         (avx512f_vextract<shuffletype>32x4_1): Ditto.
8820         (vec_extract_hi_<mode>): Ditto.
8821         (avx512f_vinsert<shuffletype>32x4_1): Ditto.
8822         (vec_set_lo_<mode>): Ditto.
8823         (vec_set_hi_<mode>): Ditto.
8824         (avx512f_shuf_<shuffletype>64x2_1): Ditto.
8825         (avx512f_shuf_<shuffletype>32x4_1): Ditto.
8826         (avx512f_pshufd_1): Ditto.
8827         (avx512f_broadcast<mode>): Ditto.
8828         (avx512f_broadcast<mode>): Ditto.
8829         (define_split): Split vec_extract_lo into move.
8830         (ssequartermode): Ditto.
8831         (ssedoublemode): Extened with wider modes.
8832         (vec_extract_lo_<mode>): Ditto.
8834 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8835             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8836             Sergey Lega  <sergey.s.lega@intel.com>
8837             Anna Tikhonova  <anna.tikhonova@intel.com>
8838             Ilya Tocar  <ilya.tocar@intel.com>
8839             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8840             Ilya Verbin  <ilya.verbin@intel.com>
8841             Kirill Yukhin  <kirill.yukhin@intel.com>
8842             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8844         * config/i386/predicates.md (register_or_constm1_operand): New.
8845         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
8846         UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
8847         UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
8848         UNSPEC_SCATTER_PREFETCH
8849         (VI48_512): New.
8850         (avx512f_ucmp<mode>3): Ditto.
8851         (avx512f_vternlog<mode>): Ditto.
8852         (avx512f_align<mode>): Ditto.
8853         (<shift_insn><mode>3): Ditto.
8854         (avx512f_<rotate>v<mode>): Ditto.
8855         (avx512f_<rotate><mode>): Ditto.
8856         (avx512f_eq<mode>3): Ditto.
8857         (avx512f_eq<mode>3_1): Ditto.
8858         (avx512f_gt<mode>3): Ditto.
8859         (avx512f_testm<mode>3): Ditto.
8860         (avx512f_testnm<mode>3): Ditto.
8861         (avx512pf_gatherpf<mode>): Ditto.
8862         (*avx512pf_gatherpf<mode>_mask): Ditto.
8863         (*avx512pf_gatherpf<mode>): Ditto.
8864         (avx512pf_scatterpf<mode>): Ditto.
8865         (*avx512pf_scatterpf<mode>_mask): Ditto.
8866         (*avx512pf_scatterpf<mode>): Ditto.
8867         (avx512f_vec_dup_gpr<mode>): Ditto.
8868         (clz<mode>2): Ditto.
8869         (conflict<mode>): Ditto.
8870         (REDUC_SMINMAX_MODE): Extened with wider modes.
8871         (reduc_<code>_<mode>): Ditto.
8872         (vlshr<mode>3): Ditto.
8873         (vashl<mode>3): Ditto.
8875 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8876             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8877             Sergey Lega  <sergey.s.lega@intel.com>
8878             Anna Tikhonova  <anna.tikhonova@intel.com>
8879             Ilya Tocar  <ilya.tocar@intel.com>
8880             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8881             Ilya Verbin  <ilya.verbin@intel.com>
8882             Kirill Yukhin  <kirill.yukhin@intel.com>
8883             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8885         * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
8886         UNSPEC_SCATTER.
8887         (VI48F_512): New.
8888         (avx512fmaskmode): Ditto.
8889         (bcstscalarsuff): Ditto.
8890         (avx512f_blendm<mode>): Ditto.
8891         (cmp_imm_predicate): Ditto.
8892         (avx512f_cmp<mode>3): Ditto.
8893         (avx512f_vec_dup<mode>): Ditto.
8894         (avx512f_vec_dup_mem<mode>): Ditto.
8895         (avx512f_vpermi2var<mode>3): Ditto.
8896         (avx512f_vpermt2var<mode>3): Ditto.
8897         (vec_init<mode>): Ditto.
8898         (avx512f_gathersi<mode>): Ditto.
8899         (*avx512f_gathersi<mode>): Ditto.
8900         (*avx512f_gathersi<mode>_2): Ditto.
8901         (avx512f_gatherdi<mode>): Ditto.
8902         (*avx512f_gatherdi<mode>): Ditto.
8903         (*avx512f_gatherdi<mode>_2): Ditto.
8904         (avx512f_scattersi<mode>): Ditto.
8905         (*avx512f_scattersi<mode>): Ditto.
8906         (avx512f_scatterdi<mode>): Ditto.
8907         (*avx512f_scatterdi<mode>): Ditto.
8908         (sseintprefix): Extened with wider modes.
8909         (VEC_GATHER_IDXSI): Ditto.
8910         (VEC_GATHER_IDXDI): Ditto.
8911         (VEC_GATHER_SRCDI): Ditto.
8913 2013-10-15  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
8914             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8916         * config/arm/t-aprofile: New file.
8917         * config.gcc: Handle --with-multilib-list option.
8919 2013-10-15  Bernd Schmidt  <bernds@codesourcery.com>
8921         * reload1.c (reloads_unique_chain_p): Ensure that r1 is
8922         the input for r2.
8924 2013-10-15  Richard Biener  <rguenther@suse.de>
8926         * tree-loop-distribution.c (build_empty_rdg): Inline into
8927         single user.
8928         (rdg_flag_vertex): Inline into single user.
8929         (rdg_flag_vertex_and_dependent): Likewise.
8930         (build_rdg_partition_for_vertex): Remove processed bitmap.
8931         (rdg_build_partitions): Simplify.
8933 2013-10-15  Richard Biener  <rguenther@suse.de>
8935         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
8936         Restructure forwarding through conversions and copies to
8937         avoid performing copy-propagation the wrong way.  Adjust
8938         recursion invocations.
8939         (forward_propagate_addr_expr): Add argument stating if we
8940         are recursing from a single-use.
8941         (ssa_forward_propagate_and_combine): Adjust.
8943 2013-10-14  David Malcolm  <dmalcolm@redhat.com>
8945         * dumpfile.h (gcc::dump_manager): New class, to hold state
8946         relating to dumpfile management.
8947         (get_dump_file_name): Remove in favor of method of dump_manager.
8948         (dump_initialized_p): Likewise.
8949         (dump_start): Likewise.
8950         (dump_finish): Likewise.
8951         (dump_switch_p): Likewise.
8952         (dump_register): Likewise.
8953         (get_dump_file_info): Likewise.
8954         * context.c (gcc::context::context): Construct the dump_manager
8955         instance.
8956         * context.h (gcc::context::get_dumps): New.
8957         (gcc::context::m_dumps): New.
8958         * coverage.c (coverage_init): Port to dump_manager API.
8959         * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
8960         (extra_dump_files_in_use): Likewise.
8961         (extra_dump_files_alloced): Likewise.
8962         (gcc::dump_manager::dump_manager): New.
8963         (dump_register): Convert to...
8964         (gcc::dump_manager::dump_register): ...method, replacing
8965         function-static next_dump with m_next_dump field.
8966         (get_dump_file_info): Convert to...
8967         (gcc::dump_manager::get_dump_file_info): ...method.
8968         (get_dump_file_name): Convert to...
8969         (gcc::dump_manager::get_dump_file_name): ...method.
8970         (dump_start): Convert to...
8971         (gcc::dump_manager::dump_start): ...method.
8972         (dump_finish): Convert to...
8973         (gcc::dump_manager::dump_finish): ...method.
8974         (dump_begin): Replace body with...
8975         (gcc::dump_manager::dump_begin): ...new method.
8976         (dump_phase_enabled_p): Convert to...
8977         (gcc::dump_manager::dump_phase_enabled_p): ...method.
8978         (dump_phase_enabled_p): Convert to...
8979         (gcc::dump_manager::dump_phase_enabled_p): ...method.
8980         (dump_initialized_p):  Convert to...
8981         (gcc::dump_manager::dump_initialized_p): ...method.
8982         (dump_flag_name): Replace body with...
8983         (gcc::dump_manager::dump_flag_name): ...new method.
8984         (dump_enable_all): Convert to...
8985         (gcc::dump_manager::dump_enable_all): ...new method.
8986         (opt_info_enable_passes): Convert to...
8987         (gcc::dump_manager::opt_info_enable_passes): ...new method.
8988         (dump_switch_p_1): Convert to...
8989         (gcc::dump_manager::dump_switch_p_1): ...new method.
8990         (dump_switch_p):  Convert to...
8991         (gcc::dump_manager::dump_switch_p): ...new method.
8992         (opt_info_switch_p): Port to dump_manager API.
8993         (enable_rtl_dump_file): Likewise.
8994         * opts-global.c (handle_common_deferred_options): Port to new
8995         dump_manager API.
8996         * passes.c (pass_manager::finish_optimization_passes): Likewise.
8997         (pass_manager::register_one_dump_file): Likewise.
8998         (pass_manager::register_pass): Likewise.
8999         (pass_init_dump_file): Likewise.
9000         (pass_fini_dump_file): Likewise.
9001         * statistics.c (statistics_early_init): Likewise.
9003 2013-10-14  Richard Biener  <rguenther@suse.de>
9005         * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
9006         iterative_hash_canonical_type, gimple_canonical_type_hash,
9007         gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
9008         gimple_register_canonical_type, print_gimple_types_stats,
9009         free_gimple_type_tables): Move to lto/lto.c
9010         (gt-gimple.h): Do not include.
9011         * gimple.h (gimple_register_canonical_type,
9012         print_gimple_types_stats, free_gimple_type_tables): Remove.
9013         * Makefile.in (GTFILES): Remove gimple.c.
9015 2013-10-14  Travis Snoozy  <quandary@remstate.com>
9017         PR target/58716
9018         * config/msp430/msp430.c (msp430_option_override): Correct thinko
9019         scanning for msp430x targets.
9021 2013-10-14  Eric Botcazou  <ebotcazou@adacore.com>
9023         PR bootstrap/58509
9024         * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
9025         (registers_ok_for_ldd_peep): Move around.
9026         * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
9027         * config/sparc/sparc.md (widening peepholes): Use it.
9029 2013-10-14  Richard Biener  <rguenther@suse.de>
9031         PR middle-end/58712
9032         PR middle-end/55358
9033         * gimple.c (iterative_hash_canonical_type): Make sure to
9034         record the hash into the correct hashtable slot.
9036 2013-10-13  Eric Botcazou  <ebotcazou@adacore.com>
9038         PR rtl-optimization/58662
9039         * combine.c (try_combine): Take into account death nodes on I2 when
9040         splitting a PARALLEL of two independent SETs.  Fix dump message.
9042 2013-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
9044         PR target/51244
9045         * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
9046         * config.gcc (SH extra_objs): Add sh_ifcvt.o.
9047         * config/sh/t-sh (sh_treg_combine.o): New entry.
9048         * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
9049         implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
9050         (register_sh_passes): New function.  Register sh_treg_combine pass.
9051         (sh_option_override): Invoke it.
9052         (sh_canonicalize_comparison): Handle op0_preserve_value.
9053         * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
9054         opportunities.  Canonicalize branch condition.
9055         (nott): Allow only if pseudos can be created for non-SH2A.
9057 2013-10-12  H.J. Lu  <hongjiu.lu@intel.com>
9059         PR target/58690
9060         * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
9061         (ix86_expand_movmem): Replace copy_addr_to_reg with
9062         ix86_copy_addr_to_reg.
9063         (ix86_expand_setmem): Likewise.
9065 2013-10-12  Alexander Monakov  <amonakov@ispras.ru>
9067         * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
9068         provided by ix86_fp_compare_mode instead of CCFPUmode.
9070 2013-10-12  James Greenhalgh  <james.greenhalgh@arm.com>
9072         * config/aarch64/arm_neon.h
9073         (vtbx<1,3>_<psu>8): Fix register constriants.
9075 2013-10-11  Jeff Law  <law@redhat.com>
9077         PR tree-optimization/58640
9078         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
9079         threading paths that cross over two loop entry points.
9081 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9083         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
9084         handle vector float as well.
9085         (*vsx_le_perm_load_v4si): Likewise.
9086         (*vsx_le_perm_store_v2di): Likewise.
9087         (*vsx_le_perm_store_v4si): Likewise.
9089 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9091         * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
9092         directly to circumvent subtract from splat{31} workaround.
9093         * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
9094         prototype.
9095         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
9096         * config/rs6000/altivec.md (define_c_enum "unspec"): Add
9097         UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
9098         (altivec_vperm_<mode>): Convert to define_insn_and_split to
9099         separate big and little endian logic.
9100         (*altivec_vperm_<mode>_internal): New define_insn.
9101         (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
9102         separate big and little endian logic.
9103         (*altivec_vperm_<mode>_uns_internal): New define_insn.
9104         (vec_permv16qi): Add little endian logic.
9106 2013-10-11  Marc Glisse  <marc.glisse@inria.fr>
9108         * doc/extend.texi (returns_nonnull): Remove arguments.
9110 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9111             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9112             Sergey Lega  <sergey.s.lega@intel.com>
9113             Anna Tikhonova  <anna.tikhonova@intel.com>
9114             Ilya Tocar  <ilya.tocar@intel.com>
9115             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9116             Ilya Verbin  <ilya.verbin@intel.com>
9117             Kirill Yukhin  <kirill.yukhin@intel.com>
9118             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9120         * config/i386/sse.md (VI48F_256_512): New.
9121         (avx2_permvar<mode>): Change to ...
9122         (<avx2_avx512f>_permvar<mode>): This.
9124 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9125             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9126             Sergey Lega  <sergey.s.lega@intel.com>
9127             Anna Tikhonova  <anna.tikhonova@intel.com>
9128             Ilya Tocar  <ilya.tocar@intel.com>
9129             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9130             Ilya Verbin  <ilya.verbin@intel.com>
9131             Kirill Yukhin  <kirill.yukhin@intel.com>
9132             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9134         * config/i386/i386.c (bdesc_args): Change corresponding pattern for
9135         __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
9136         * config/i386/sse.md (VI4_AVX): New.
9137         (sf2simodelower): Ditto.
9138         (sse2_cvtps2dq): Change to ...
9139         (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
9141 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9142             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9143             Sergey Lega  <sergey.s.lega@intel.com>
9144             Anna Tikhonova  <anna.tikhonova@intel.com>
9145             Ilya Tocar  <ilya.tocar@intel.com>
9146             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9147             Ilya Verbin  <ilya.verbin@intel.com>
9148             Kirill Yukhin  <kirill.yukhin@intel.com>
9149             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9151         * config/i386/sse.md (V_512): New.
9152         (VI_512): Ditto.
9153         (vcond<V_512:mode><VF_512:mode>): Ditto.
9154         (vcond<V_512:mode><VI_512:mode>): Ditto.
9155         (vcondu<V_512:mode><VI_512:mode>): Ditto.
9157 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9158             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9159             Sergey Lega  <sergey.s.lega@intel.com>
9160             Anna Tikhonova  <anna.tikhonova@intel.com>
9161             Ilya Tocar  <ilya.tocar@intel.com>
9162             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9163             Ilya Verbin  <ilya.verbin@intel.com>
9164             Kirill Yukhin  <kirill.yukhin@intel.com>
9165             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9167         * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
9168         * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
9169         (FMAMODE): Ditto.
9170         (fma<mode>4): Removed condition.
9171         (fms<mode>4): Ditto.
9172         (fnma<mode>4): Ditto.
9173         (fnms<mode>4): Ditto.
9174         (fma4i_fmadd_<mode>): Ditto.
9175         (*fma_fmadd_<mode>): Ditto.
9176         (*fma_fmsub_<mode>): Ditto.
9177         (*fma_fnmadd_<mode>): Ditto.
9178         (*fma_fnmsub_<mode>): Ditto.
9179         (fmaddsub_<mode>): Allow for TARGET_AVX512F.
9180         (*fma_fmaddsub_<mode>): Ditto.
9181         (*fma_fmsubadd_<mode>): Ditto.
9182         (*fmai_fmadd_<mode>): Ditto.
9183         (*fmai_fmsub_<mode>): Ditto.
9184         (*fmai_fnmadd_<mode>): Ditto.
9185         (*fmai_fnmsub_<mode>): Ditto.
9187 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9188             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9189             Sergey Lega  <sergey.s.lega@intel.com>
9190             Anna Tikhonova  <anna.tikhonova@intel.com>
9191             Ilya Tocar  <ilya.tocar@intel.com>
9192             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9193             Ilya Verbin  <ilya.verbin@intel.com>
9194             Kirill Yukhin  <kirill.yukhin@intel.com>
9195             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9197         * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
9198         (VI124_256): Changed to ...
9199         (VI124_256_48_512): This.
9200         (ssepackmode): Extended with wider modes.
9201         (<code><mode>3): Changed iterator.
9202         (*avx2_<code><mode>3): Ditto.
9203         (vec_pack_trunc_<mode>): Ditto.
9205 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9206             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9207             Sergey Lega  <sergey.s.lega@intel.com>
9208             Anna Tikhonova  <anna.tikhonova@intel.com>
9209             Ilya Tocar  <ilya.tocar@intel.com>
9210             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9211             Ilya Verbin  <ilya.verbin@intel.com>
9212             Kirill Yukhin  <kirill.yukhin@intel.com>
9213             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9215         * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
9216         (VI8F_256_512): Ditto.
9217         (abs<mode>2): Changed iterator.
9218         (avx2_perm<mode>): Changed to ...
9219         (<avx2_avx512f>_perm<mode>): This.
9220         (avx2_perm<mode>_1): Changed to ...
9221         (<avx2_avx512f>_perm<mode>_1): This.
9223 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9224             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9225             Sergey Lega  <sergey.s.lega@intel.com>
9226             Anna Tikhonova  <anna.tikhonova@intel.com>
9227             Ilya Tocar  <ilya.tocar@intel.com>
9228             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9229             Ilya Verbin  <ilya.verbin@intel.com>
9230             Kirill Yukhin  <kirill.yukhin@intel.com>
9231             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9233         * config/i386/sse.md (VI48_AVX512F): New.
9234         (VI48_AVX2): Changed to ...
9235         (VI48_AVX2_48_AVX512F): This.
9236         (avx2_ashrv<mode>): Changed to ...
9237         (<avx2_avx512f>_ashrv<mode>): This.
9238         (avx2_<shift_insn>v<mode>): Changed to ...
9239         (<avx2_avx512f>_<shift_insn>v<mode>): This.
9241 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9242             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9243             Sergey Lega  <sergey.s.lega@intel.com>
9244             Anna Tikhonova  <anna.tikhonova@intel.com>
9245             Ilya Tocar  <ilya.tocar@intel.com>
9246             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9247             Ilya Verbin  <ilya.verbin@intel.com>
9248             Kirill Yukhin  <kirill.yukhin@intel.com>
9249             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9251         * config/i386/sse.md (VI4_AVX512F): New.
9252         (VI8_AVX2_AVX512F): Ditto.
9253         (mul<mode>3): Extended with wider modes.
9254         (*<sse4_1_avx2>_mul<mode>3): Ditto.
9255         (mul<mode>3): Ditto.
9256         (vec_widen_<s>mult_odd_<mode>): Ditto.
9258 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9259             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9260             Sergey Lega  <sergey.s.lega@intel.com>
9261             Anna Tikhonova  <anna.tikhonova@intel.com>
9262             Ilya Tocar  <ilya.tocar@intel.com>
9263             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9264             Ilya Verbin  <ilya.verbin@intel.com>
9265             Kirill Yukhin  <kirill.yukhin@intel.com>
9266             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9268         * config/i386/sse.md (VI2_AVX512F): New.
9269         (VI124_AVX512F): Ditto.
9270         (sseunpackmode): Extended with wider modes.
9271         (sseunpackfltmode): Ditto.
9272         (vec_unpacks_float_hi_<mode>): Ditto.
9273         (vec_unpacks_float_lo_<mode>): Ditto.
9274         (vec_unpacku_float_hi_<mode>): Ditto.
9275         (vec_unpacku_float_lo_<mode>): Ditto.
9276         (vec_unpacks_lo_<mode>): Ditto.
9277         (vec_unpacks_hi_<mode>): Ditto.
9278         (vec_unpacku_lo_<mode>): Ditto.
9279         (vec_unpacku_hi_<mode>): Ditto.
9281 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9282             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9283             Sergey Lega  <sergey.s.lega@intel.com>
9284             Anna Tikhonova  <anna.tikhonova@intel.com>
9285             Ilya Tocar  <ilya.tocar@intel.com>
9286             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9287             Ilya Verbin  <ilya.verbin@intel.com>
9288             Kirill Yukhin  <kirill.yukhin@intel.com>
9289             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9291         * config/i386/i386.md (multdiv): New.
9292         (multdiv_mnemonic): Ditto.
9293         * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
9294         (<sse>_vm<multdiv_mnemonic><mode>3): This.
9295         (<sse>_vmdiv<mode>3): Removed.
9297 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9298             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9299             Sergey Lega  <sergey.s.lega@intel.com>
9300             Anna Tikhonova  <anna.tikhonova@intel.com>
9301             Ilya Tocar  <ilya.tocar@intel.com>
9302             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9303             Ilya Verbin  <ilya.verbin@intel.com>
9304             Kirill Yukhin  <kirill.yukhin@intel.com>
9305             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9307         * config/i386/sse.md (V): Extended with wider modes.
9308         (VF2): Ditto.
9309         (ssehalfvecmode): Ditto.
9310         (i128): Ditto.
9311         (ssepackfltmode): Ditto.
9312         (avx_vec_concat<mode>): Ditto.
9313         (V_256_512): New iterator.
9314         (VF2_512_256): Ditto.
9315         (si2dfmode): New attribute.
9316         (si2dfmodelower): Ditto.
9317         (sf2dfmode): Ditto.
9318         (concat_tg_mode): Ditto.
9319         (floatv4siv4df2): Changed to ...
9320         (float<si2dfmodelower><mode>2): This.
9321         (avx_cvtps2pd256): Changed to ...
9322         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
9323         (vec_pack_trunc_v4df): Changed to ...
9324         (vec_pack_trunc_<mode>): This.
9325         (avx_vpermil<mode>): Changed to ...
9326         (<sse2_avx_avx512f>_vpermil<mode>): This.
9327         (<fixsuffix>fix_truncv8dfv8si2): New.
9328         (vec_pack_sfix_trunc_v8df): Ditto.
9329         (avx512f_rndscale<mode>): Ditto.
9330         (avx512f_roundpd512): Ditto.
9331         (vec_pack_ufix_trunc_<mode>): Updated iterator.
9333 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9334             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9335             Sergey Lega  <sergey.s.lega@intel.com>
9336             Anna Tikhonova  <anna.tikhonova@intel.com>
9337             Ilya Tocar  <ilya.tocar@intel.com>
9338             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9339             Ilya Verbin  <ilya.verbin@intel.com>
9340             Kirill Yukhin  <kirill.yukhin@intel.com>
9341             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9343         * config/i386/i386.md (any_fix): New iterator.
9344         (fixsuffix): New attribute.
9345         * config/i386/sse.md (VF1): Extened with wider modes.
9346         (VI): Ditto.
9347         (VI_AVX2): Ditto.
9348         (VI8): Ditto.
9349         (sseintvecmodelower): Ditto.
9350         (ssescalarmode): Ditto.
9351         (ssescalarnum): Ditto.
9352         (VF1_128_256): New.
9353         (ssexmmmode): Ditto.
9354         (<fixsuffix>fix_truncv16sfv16si2): Ditto.
9355         (<sse>_rcp<mode>2): Change iterator.
9356         (rsqrt<mode>2): Ditto.
9357         (<sse>_rsqrt<mode>2): Ditto.
9358         (avx2_vec_dup<mode>): Ditto.
9359         (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
9360         (round<mode>2_sfix): Ditto.
9361         (avx2_pbroadcast<mode>): Ditto.
9362         (*andnot<mode>3): Handle XI mode.
9363         (*<code><mode>3): Ditto.
9364         (AVXTOSSEMODE): Removed.
9365         (avx_vpermil<mode>): Changed to ...
9366         (<sse2_avx_avx512f>_vpermil<mode>): This.
9368 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9369             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9370             Sergey Lega  <sergey.s.lega@intel.com>
9371             Anna Tikhonova  <anna.tikhonova@intel.com>
9372             Ilya Tocar  <ilya.tocar@intel.com>
9373             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9374             Ilya Verbin  <ilya.verbin@intel.com>
9375             Kirill Yukhin  <kirill.yukhin@intel.com>
9376             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9378         * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
9379         (<sse>_comi): Ditto.
9380         (<sse>_ucomi): Ditto.
9381         (sse_cvtss2siq_2): Ditto.
9382         (sse2_cvtsd2si): Ditto.
9383         (sse2_cvtsd2siq): Ditto.
9384         (sse2_cvttsd2si): Ditto.
9385         (sse2_cvttsd2siq): Ditto.
9386         (<shift_insn><mode>3): Ditto.
9387         (sse2_cvtsi2sdq): Update constraint and prefix.
9388         (sse_cvtsi2ss): Update prefix.
9389         (sse_cvtsi2ssq): Ditto.
9391 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
9393         * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
9394         ignore internal calls.
9396 2013-10-11  Richard Biener  <rguenther@suse.de>
9398         * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
9399         and (ab) for SSA_NAMEs.  Mark INTEGER_CSTs with (OVF) if
9400         TREE_OVERFLOW is set.
9402 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
9404         * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
9406         * gimple.c: GIMPLE statements have subcodes, not sub-codes.
9407         * gimple.h: Likewise.
9409         * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
9411         * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
9412         macros.
9414         * doc/gimple.texi (is_gimple_omp): Move into the correct section.
9416         * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
9417         * configure: Regenerate.
9419 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
9421         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
9422         and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
9423         formatting fixes, use pp_colon instead of pp_character (..., ':'),
9424         similarly pp_right_paren.
9425         (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
9426         OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
9427         allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
9428         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
9429         clauses.
9430         (omp_declare_simd_clauses_equal,
9431         omp_remove_redundant_declare_simd_attrs): New functions.
9432         (attribute_value_equal): Use omp_declare_simd_clauses_equal.
9433         (walk_tree_1): Handle new OpenMP 4.0 clauses.
9434         * tree.h (OMP_LOOP_CHECK): Define.
9435         (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
9436         OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
9437         (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
9438         OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
9439         OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
9440         OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
9441         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
9442         OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
9443         OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
9444         OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
9445         OMP_CLAUSE_SIMDLEN_EXPR): Define.
9446         (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
9447         (omp_remove_redundant_declare_simd_attrs): New prototype.
9448         * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
9449         GIMPLE_OMP_TEAMS): New codes.
9450         (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
9451         * omp-low.c (struct omp_context): Add cancel_label and cancellable
9452         fields.
9453         (target_nesting_level): New variable.
9454         (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
9455         OMP_CLAUSE_DIST_SCHEDULE.  Don't fallback to library implementation
9456         for collapse > 1 static schedule unless ordered.
9457         (get_ws_args_for): Add par_stmt argument.  Handle combined loops.
9458         (determine_parallel_type): Adjust get_ws_args_for caller.
9459         (install_var_field): Handle mask & 4 for double indirection.
9460         (scan_sharing_clauses): Ignore shared clause on teams construct.
9461         Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
9462         (create_omp_child_function): If inside target or declare target
9463         constructs, set "omp declare target" attribute on the child function.
9464         (find_combined_for): New function.
9465         (scan_omp_parallel): Handle combined loops.
9466         (scan_omp_target, scan_omp_teams): New functions.
9467         (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
9468         restrictions and set ctx->cancellable for cancellable constructs.
9469         (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
9470         selected builtin calls.  Handle GIMPLE_OMP_TASKGROUP,
9471         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
9472         (build_omp_barrier): Add lhs argument, return gimple rather than tree.
9473         (omp_clause_aligned_alignment): New function.
9474         (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
9475         (lower_rec_input_clauses): Add FD argument.  Ignore shared clauses
9476         on teams constructs.  Handle user defined reductions and new
9477         OpenMP 4.0 clauses.
9478         (lower_reduction_clauses): Don't set placeholder to address of ref
9479         if it has already the right type.
9480         (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
9481         (expand_parallel_call): Use the new non-_start suffixed builtins,
9482         handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
9483         and GOMP_parallel_end after the call.
9484         (expand_task_call): Handle OMP_CLAUSE_DEPEND.
9485         (expand_omp_for_init_counts): Handle combined loops.
9486         (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
9487         loops.
9488         (expand_omp_for_generic): Likewise.  Use GOMP_loop_end_cancel at the
9489         end of cancellable loops.
9490         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
9491         Likewise.  Handle collapse > 1 loops.
9492         (expand_omp_simd): Handle combined loops.
9493         (expand_omp_for): Add inner_stmt argument, adjust callers of
9494         expand_omp_for* functions, use expand_omp_for_static*chunk even
9495         for collapse > 1 unless ordered.
9496         (expand_omp_sections): Use GOMP_sections_end_cancel at the end
9497         of cancellable sections.
9498         (expand_omp_single): Remove need_barrier variable, just rely on
9499         gimple_omp_return_nowait_p.  Adjust build_omp_barrier caller.
9500         (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
9501         (expand_omp_atomic_load, expand_omp_atomic_store,
9502         expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
9503         (expand_omp_target): New function.
9504         (expand_omp): Handle combined loops.  Handle GIMPLE_OMP_TASKGROUP,
9505         GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
9506         (build_omp_regions_1): Immediately close region for
9507         GF_OMP_TARGET_KIND_UPDATE.
9508         (maybe_add_implicit_barrier_cancel): New function.
9509         (lower_omp_sections): Adjust lower_rec_input_clauses caller.  Handle
9510         cancellation.
9511         (lower_omp_single): Likewise.  Add clobber after the barrier.
9512         (lower_omp_taskgroup): New function.
9513         (lower_omp_for): Handle combined loops.  Adjust
9514         lower_rec_input_clauses caller.  Handle cancellation.
9515         (lower_depend_clauses): New function.
9516         (lower_omp_taskreg): Lower depend clauses.  Adjust
9517         lower_rec_input_clauses caller.  Add clobber after the call.  Handle
9518         cancellation.
9519         (lower_omp_target, lower_omp_teams): New functions.
9520         (lower_omp_1): Handle cancellation.  Handle GIMPLE_OMP_TASKGROUP,
9521         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
9522         and GOMP_cancellation_point calls.
9523         (lower_omp): Fold stmts inside of target region.
9524         (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
9525         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
9526         * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
9527         (BT_FN_VOID_OMPFN_PTR_UINT,
9528         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
9529         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
9530         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
9531         (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
9532         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
9533         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
9534         BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
9535         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
9536         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
9537         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
9538         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
9539         call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
9540         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
9541         BUILT_IN_GOMP_SECTIONS_END_CANCEL.  Don't handle
9542         BUILT_IN_GOMP_PARALLEL_END.
9543         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
9544         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
9545         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
9546         GF_OMP_FOR_KIND_DISTRIBUTE.
9547         (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
9548         (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
9549         (dump_gimple_omp_return): Print lhs if it has any.
9550         (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
9551         gimple_omp_atomic_seq_cst_p.
9552         (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
9553         and GIMPLE_OMP_TEAMS.
9554         * langhooks.c (lhd_omp_mappable_type): New function.
9555         * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
9556         * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
9557         hook.
9558         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
9559         GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
9560         (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
9561         (struct gimplify_omp_ctx): Add combined_loop field.
9562         (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
9563         on stmts inside of target region.
9564         (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
9565         (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
9566         ORT_TARGET and ORT_TARGET_DATA.
9567         (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
9568         Handle GOVD_MAP.
9569         (omp_notice_threadprivate_variable): Complain about threadprivate
9570         variables in target region.
9571         (omp_notice_variable): Complain about vars with non-mappable type
9572         in target region.  Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
9573         (omp_check_private): Ignore ORT_TARGET* regions.
9574         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
9575         gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
9576         (find_combined_omp_for): New function.
9577         (gimplify_omp_for): Handle gimplification of combined loops.
9578         (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
9579         OMP_TEAMS.
9580         (gimplify_omp_target_update): New function.
9581         (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
9582         (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
9583         OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
9584         (gimplify_body): If fndecl has "omp declare target" attribute, add
9585         implicit ORT_TARGET context around it.
9586         * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
9587         OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
9588         * tree-nested.c (convert_nonlocal_reference_stmt,
9589         convert_local_reference_stmt, convert_gimple_call): Handle
9590         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
9591         * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
9592         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
9593         instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
9594         (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
9595         BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
9596         BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
9597         BUILT_IN_GOMP_LOOP_END_CANCEL,
9598         BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
9599         BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
9600         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
9601         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
9602         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
9603         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
9604         BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
9605         BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
9606         (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
9607         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
9608         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
9609         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
9610         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
9611         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
9612         * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
9613         Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
9614         * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
9615         gimple_build_omp_teams): New functions.
9616         (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
9617         GIMPLE_OMP_TASKGROUP.  Walk optional lhs on GIMPLE_OMP_RETURN.
9618         (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
9619         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
9620         * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
9621         GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
9622         GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
9623         GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
9624         GF_OMP_ATOMIC_SEQ_CST): New.
9625         (gimple_build_omp_taskgroup, gimple_build_omp_target,
9626         gimple_build_omp_teams): New prototypes.
9627         (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
9628         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
9629         (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
9630         GIMPLE_OMP_SINGLE as end of range.
9631         (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
9632         gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
9633         gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
9634         gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
9635         gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
9636         gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
9637         gimple_omp_target_kind, gimple_omp_target_set_kind,
9638         gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
9639         gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
9640         gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
9641         gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
9642         gimple_omp_teams_set_clauses): New inlines.
9643         (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
9644         and GIMPLE_OMP_TASKGROUP.
9645         * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
9646         (enum omp_clause_depend_kind, enum omp_clause_map_kind,
9647         enum omp_clause_proc_bind_kind): New.
9648         (union omp_clause_subcode): Add depend_kind, map_kind and
9649         proc_bind_kind fields.
9650         * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
9651         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
9652         * langhooks-def.h (lhd_omp_mappable_type): New prototype.
9653         (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
9654         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
9656 2013-10-10  Teresa Johnson  <tejohnson@google.com>
9658         * predict.c (tree_estimate_probability): Add new parameter
9659         for estimate_bb_frequencies.
9660         (estimate_bb_frequencies): Add new parameter to force estimation.
9661         (rebuild_frequencies): When max frequency in function is small,
9662         recompute counts from frequencies.
9663         * predict.h (estimate_bb_frequencies): New parameter.
9665 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
9667         * ipa-inline.c (ipa_inline): Fix leak of "order" when
9668         optimizations are disabled.
9670 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
9672         * coverage.c (coverage_finish): Fix leak of da_file_name.
9674 2013-10-10  Jan Hubicka  <jh@suse.cz>
9676         * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
9677         for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
9678         Bobcat and generic.
9680 2013-10-10  Jakub Jelinek  <jakub@redhat.com>
9682         PR middle-end/58670
9683         * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
9684         if any labels are in FALLTHRU_BB, use a special label emitted
9685         immediately after the asm goto insn rather than label_rtx
9686         of the LABEL_DECL.
9687         (expand_asm_stmt): Adjust caller.
9688         * cfgrtl.c (commit_one_edge_insertion): Force splitting of
9689         edge if the last insn in predecessor is a jump with single successor,
9690         but it isn't simplejump_p.
9692 2013-10-10  Richard Biener  <rguenther@suse.de>
9694         PR tree-optimization/58656
9695         * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
9697 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
9699         * gimplify.c: Include expr.h and tm_p.h for targets with special
9700         va-arg padding requirements.
9702 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
9704         * tree-flow.h: Move some prototypes to gimple.h.
9705         (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
9706         * gimple.h: Relocate some prototypes from tree-flow.h
9707         * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
9708         Move to gimplify.c.
9709         * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
9710         (build_va_arg_indirect_ref): Relocate and make static.
9711         (std_gimplify_va_arg_expr): Relocate here.
9712         * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
9713         * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
9715 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9717         * doc/md.texi: Document the mnemonic attribute.
9719 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9721         PR target/57377
9722         * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
9723         (set_attr_alternative x ...) when searching for user defined
9724         mnemonic attribute.
9726 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
9728         * config/aplha/alpha.c: Add gimple-ssa.h to include list.
9730 2013-10-09  Easwaran Raman <eraman@google.com>
9732         * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
9733         * cfgexpand.c (defer_stack_allocation): ...use here
9734         * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
9736 2013-10-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
9738         * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
9739         (operand_equal_for_value_replacement): New function, extracted from
9740         value_replacement and enhanced to catch more cases.
9741         (value_replacement): Use operand_equal_for_value_replacement.
9743 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
9745         * loop-doloop.c (doloop_modify, doloop_optimize): Use
9746         get_max_loop_iterations.
9748 2013-10-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9750         * config/arm/aarch-common.c (arm_early_load_addr_dep):
9751         Place comment above function.
9753 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
9755         * tree-flow.h: Remove all remaining prototypes, enums and structs that
9756         are not related to tree-cfg.c.
9757         * tree-ssa-address.h: New file.  Relocate prototypes.
9758         * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
9759         (addr_for_mem_ref): New.  Combine call to get_address_description and
9760         return addr_for_mem_ref.
9761         * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
9762         * tree-ssa-live.h: Adjust prototypes.
9763         * passes.c: Include tree-ssa-live.h.
9764         * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
9765         * graphite.c (graphite_transform_loops): Make static.
9766         (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
9767         make_pass_graphite, pass_data_graphite_transforms,
9768         make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
9769         * ipa-pure-const.c (warn_function_noreturn): Make static.
9770         (execute_warn_function_noreturn, gate_warn_function_noreturn,
9771         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
9772         Relocate from tree-cfg.c
9773         * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
9774         static.
9775         (execute_warn_function_noreturn, gate_warn_function_noreturn,
9776         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
9777         Move to ipa-pure-const.c.
9778         (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
9779         Relocate from tree-optimize.c.
9780         * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
9781         make_pass_fixup_cfg): Move to tree-cfg.c.
9782         * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
9783         Relocate some prototypes.
9784         * tree-data-ref.h (tree_check_data_deps) Add prototype.
9785         * tree-dump.c (dump_function_to_file): Remove prototype.
9786         Add tree-flow.h to the include file.
9787         * tree-dump.h: Remove prototype.
9788         * tree-parloops.h: New File.  Add prototypes.
9789         * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
9790         pass_data_parallelize_loops,  make_pass_parallelize_loops): Relocate
9791         from tree-ssa-loop.c.
9792         * tree-predcom.c (run_tree_predictive_commoning,
9793         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
9794         Relocate here from tree-ssa-loop.c.
9795         * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
9796         ssa_name_values.release ().
9797         * tree-ssa-threadedge.h: New File.  Relocate prototypes here.
9798         (ssa_name_values): Relocate from tree-flow.h.
9799         * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
9800         * tree-ssa-loop.c (run_tree_predictive_commoning,
9801         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
9802         graphite_transforms, gate_graphite_transforms, pass_data_graphite,
9803         make_pass_graphite, pass_data_graphite_transforms,
9804         make_pass_graphite_transforms, gate_tree_parallelize_loops,
9805         tree_parallelize_loops, pass_data_parallelize_loops,
9806         make_pass_parallelize_loops): Move to other files.
9807         * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
9808         moved here.
9809         * tree.h: Remove prototypes from tree-address.c.
9811 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
9813         * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
9814         (struct int_tree_map): Move to tree-hasher.h
9815         (SCALE, LABEL, PERCENT): Move to gimple.h
9816         * tree-flow-inline.h: Delete.  Move functions to other files.
9817         (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
9818         * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
9819         (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
9820         * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
9821         inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
9822         (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
9823         * tree-hasher.h: Don't include tree-flow.h.
9824         (struct int_tree_map): Relocate from tree-flow.h.
9825         * tree-sra.c (contains_view_convert_expr_p): Relocate from
9826         tree-flow-inline.h and make static.
9827         * tree-ssa-alias.h (ranges_overlap_p): Relocate from
9828         tree-flow-inline.h.
9829         * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
9830         tree-flow-inline.h and make static.
9831         * tree.h (is_global_var, may_be_aliased): Relocate from
9832         tree-flow-inline.h.
9833         * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
9834         * value-prof.c: No longer include tree-flow-inline.h.
9835         * tree-switch-conversion.c: No longer include tree-flow-inline.h.
9837 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
9839         * tree-flow.h: Move some protoypes.  Include new tree-ssa-loop.h.
9840         (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
9841         (enum move_pos): Move to tree-ssa-loop-im.h
9842         * cfgloop.h: Move some prototypes.
9843         (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
9844         * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
9845         * tree-ssa-loop.h: New File.  Include other tree-ssa-loop-*.h files.
9846         (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
9847         (loop_containing_stmt): Relocate from tree-flow-inline.h.
9848         * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
9849         * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
9850         (enum move_pos): Relocate here.
9851         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
9852         tree-ssa-loop.c.
9853         (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
9854         (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
9855         make_pass_lim): Relocate here from tree-ssa-loop.c.
9856         * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
9857         tree-ssa-loop.c.
9858         (loop_edge_to_cancel, unloop_loops): Make static.
9859         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
9860         make_pass_iv_canon): Relocate from tree-ssa-loop.c.
9861         (tree_complete_unroll, gate_tree_complete_unroll,
9862         pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
9863         (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
9864         pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
9865         * tree-ssa-loop-ivopts.c: Remove local prototypes.
9866         (stmt_invariant_in_loop_p): Remove unused function.
9867         * tree-ssa-loop-ivopts.h: New file.  Add prototypes.
9868         * tree-ssa-loop-manip.h: New file.  Add prototypes.
9869         * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
9870         (gcov_type_to_double_int): Move to cfgloop.h.
9871         (double_int_cmp, bound_index,
9872         estimate_numbers_of_iterations_loop): Make static.
9873         (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
9874         (max_loop_iterations): Factor out get_max_loop_iterations.
9875         (estimated_loop_iterations_int, max_stmt_executions_int): Move to
9876         cfgloop.c.
9877         * tree-ssa-loop-niter.h: New file.  Add prototypes.
9878         * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
9879         gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
9880         make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
9881         * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
9882         gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
9883         make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
9884         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
9885         pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
9886         (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
9887         pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
9888         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
9889         make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
9890         pass_data_complete_unroll, make_pass_complete_unroll,
9891         tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
9892         pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
9893         tree-ssa-loop-ivcanon.c.
9894         (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
9895         pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
9896         tree-ssa-loop-prefetch.c.
9897         (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
9898         tree-ssa-loop-im.c.
9899         (get_lsm_tmp_name): Relocate and add suffix parameter.
9900         (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
9901         * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
9902         * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
9903         max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
9904         (get_estimated_loop_iterations): Factor out accessor from
9905         estimated_loop_iterations in tree-ssa-loop-niter.c.
9906         (get_max_loop_iterations): Factor out accessor from
9907         _max_loop_iterations in tree-ssa-niter.c.
9908         * loop-unroll.c (decide_unroll_constant_iterations,
9909         decide_unroll_runtime_iterations, decide_peel_simple,
9910         decide_unroll_stupid): Use new get_* accessors.
9912 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
9914         PR tree-optimization/20318
9915         * doc/extend.texi (returns_nonnull): New function attribute.
9916         * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
9917         attribute.
9918         * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
9919         (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
9921 2013-10-09  Eric Botcazou  <ebotcazou@adacore.com>
9923         PR middle-end/58570
9924         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
9925         false if both components are bitfields.
9927 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
9929         * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
9930         (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
9931         (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
9932         * config/aarch64/aarch64.h
9933         (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
9934         * config/aarch64/aarch64-simd-builtins.def
9935         (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
9937 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
9939         * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
9941 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
9943         * config/aarch64/arm_neon.h (vdiv_f64): Added.
9945 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
9947         * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
9948         (vneg_f64): New intrinsic.
9949         (vneg_s8): Asm replaced with C.
9950         (vneg_s16): Likewise.
9951         (vneg_s32): Likewise.
9952         (vneg_s64): New intrinsic.
9953         (vnegq_f32): Asm replaced with C.
9954         (vnegq_f64): Likewise.
9955         (vnegq_s8): Likewise.
9956         (vnegq_s16): Likewise.
9957         (vnegq_s32): Likewise.
9958         (vnegq_s64): Likewise.
9960 2013-10-09  Renlin Li  <Renlin.Li@arm.com>
9962         * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
9964 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9966         * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
9967         packed stack special handling.
9968         (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
9969         back to fixed stack slots for FPRs saved due to stdarg.
9971 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9973         * config/s390/s390.c (s390_frame_info): Restructure function.
9975 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9977         * config/s390/s390.c (struct s390_frame_layout): New field
9978         gpr_save_slots.
9979         (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
9980         (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
9981         regs_ever_clobbered to char*.
9982         (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
9983         of cfun->has_nonlocal_label.  Ignore frame related restore INSNs.
9984         (s390_register_info): Enable FPR save slots.  Move/Copy some
9985         functionality into ...
9986         (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
9987         (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
9988         function.
9989         (s390_frame_info): Do gpr slot allocation here now.  stdarg does
9990         not imply a stack frame.
9991         (s390_init_frame_layout): Remove variable clobbered_regs.
9992         (s390_update_register_info): Remove function.
9993         (s390_hard_regno_rename_ok): Call-saved regs without a save slot
9994         cannot be used for register renaming.
9995         (s390_hard_regno_scratch_ok): New function.
9996         (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
9997         (s390_initial_elimination_offset): Change offset calculation of
9998         the return address pointer.
9999         (save_gprs): Deal with only r6 being saved from the call-saved regs.
10000         (restore_gprs): Set frame related flag.
10001         (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
10002         (s390_emit_prologue): Call s390_register_info instead of
10003         s390_update_frame_layout.  Call s390_save_gprs_to_fprs.
10004         (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
10005         (s390_optimize_prologue): Call s390_optimize_register_info.
10006         Try to remove also FPR slot save/restore INSNs.  Remove frame
10007         related flags from restore INSNs.
10009 2013-10-08  DJ Delorie  <dj@redhat.com>
10011         * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
10012         (movhi): Likewise.
10014         * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
10015         avoid conflict with the MI use of %c.
10016         * config/rl78/rl78-real.md: change %c to %C throughout.
10017         * config/rl78/rl78-virt.md: Likewise.
10019 2013-10-08  Jan Hubicka  <jh@suse.cz>
10021         * config/i386/i386.c (ix86_option_override_internal): Switch
10022         to SSE math for -ffast-math when target ISA supports SSE2.
10024 2013-10-08  Andrew MacLeod  <amacleod@redhat.com>
10026         * tree-flow.h: Remove some prototypes.
10027         * tree.h: Remove some protypes, add a couple.
10028         * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
10029         using_eh_for_cleanups_p): Add interface routines for front ends.
10030         * tree-eh.h: New file.  Add protoptyes.
10031         * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
10032         (add_stmt_to_eh_lp_fn): Make static.
10033         (lower_try_finally): Use new using_eh_for_cleanups_p.
10034         * emit-rtl.c: Include tree-eh.h.
10035         * gimple.h: Include tree-eh.h.
10037 2013-10-08  Marc Glisse  <marc.glisse@inria.fr>
10039         PR tree-optimization/58480
10040         * tree-vrp.c (infer_nonnull_range): New function.
10041         (infer_value_range): Call infer_nonnull_range.
10043 2013-10-08  Dehao Chen  <dehao@google.com>
10045         PR tree-optimization/58619
10046         * tree-inline.c (copy_phis_for_bb): Combine location data
10047         only if non-null.
10049 2013-10-08  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
10051         PR target/58423
10052         * config/arm/arm.c (arm_emit_ldrd_pop): Attach
10053         RTX_FRAME_RELATED_P on INSN.
10055 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10057         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
10058         (altivec_expand_vec_perm_const): Call it.
10060 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10062         * config/rs6000/vector.md (mov<mode>): Emit permuted move
10063         sequences for LE VSX loads and stores at expand time.
10064         * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
10065         prototype.
10066         * config/rs6000/rs6000.c (rs6000_const_vec): New.
10067         (rs6000_gen_le_vsx_permute): New.
10068         (rs6000_gen_le_vsx_load): New.
10069         (rs6000_gen_le_vsx_store): New.
10070         (rs6000_gen_le_vsx_move): New.
10071         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
10072         (*vsx_le_perm_load_v4si): New.
10073         (*vsx_le_perm_load_v8hi): New.
10074         (*vsx_le_perm_load_v16qi): New.
10075         (*vsx_le_perm_store_v2di): New.
10076         (*vsx_le_perm_store_v4si): New.
10077         (*vsx_le_perm_store_v8hi): New.
10078         (*vsx_le_perm_store_v16qi): New.
10079         (*vsx_xxpermdi2_le_<mode>): New.
10080         (*vsx_xxpermdi4_le_<mode>): New.
10081         (*vsx_xxpermdi8_le_V8HI): New.
10082         (*vsx_xxpermdi16_le_V16QI): New.
10083         (*vsx_lxvd2x2_le_<mode>): New.
10084         (*vsx_lxvd2x4_le_<mode>): New.
10085         (*vsx_lxvd2x8_le_V8HI): New.
10086         (*vsx_lxvd2x16_le_V16QI): New.
10087         (*vsx_stxvd2x2_le_<mode>): New.
10088         (*vsx_stxvd2x4_le_<mode>): New.
10089         (*vsx_stxvd2x8_le_V8HI): New.
10090         (*vsx_stxvd2x16_le_V16QI): New.
10092 2013-10-07  Renlin Li  <Renlin.Li@arm.com>
10094         * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
10096 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10098         * config/s390/s390.c (s390_register_info): Make the call-saved FPR
10099         loop to work also for 31bit ABI.
10100         Save the stack pointer for frame_size > 0.
10102 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10104         * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
10105         ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
10106         constraint letters from expanders.
10107         ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
10108         retry count to general_operand.
10109         ("tabort"): Give operand 0 a mode.
10110         ("tabort_1"): Add mode and constraint letter for operand 0.
10111         * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
10113 2013-10-04  Jeff Law  <law@redhat.com>
10115         * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
10117         * tree-ssa-threadedge.c (thread_through_normal_block): Broken
10118         out of ...
10119         (thread_across_edge): Here.  Call it.
10121 2013-10-04  Cary Coutant  <ccoutant@google.com>
10123         * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
10124         discarding a location list expression (or a piece of one).
10126 2013-10-03  Jan Hubicka  <jh@suse.cz>
10128         * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
10129         rate of 2.  Core2, Corei7 and Haswell has issue rate of 4.
10130         (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
10132 2013-10-03  Jan Hubicka  <jh@suse.cz>
10134         * config/i386/i386.c (ix86_option_override_internal): Do not enable
10135         accumulate-outgoing-args when producing unwind info.
10137 2013-10-03  Wei Mi  <wmi@google.com>
10139         * lra-constraints.c (insert_move_for_subreg): New function
10140         extracted from simplify_operand_subreg.
10141         (simplify_operand_subreg): Add reload for paradoxical subreg.
10143 2013-10-03  Rong Xu  <xur@google.com>
10145         * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
10146         the candidate of builtin_expect such that we should fix the
10147         size/time estimation.
10148         (estimate_function_body_sizes): Do the acutally size/time fix-up
10149         for builtin_expect.
10151 2013-10-03  Rong Xu  <xur@google.com>
10153         * predict.c (tree_predict_by_opcode): Get the probability
10154         for builtin_expect from param builtin_expect_probability.
10155         * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
10156         * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
10157         * doc/invoke.texi: Add documentation for builtin-expect-probability.
10159 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
10161         PR c++/19476
10162         * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
10163         * calls.c (alloca_call_p): Use get_callee_fndecl.
10164         * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
10165         * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
10166         Likewise.
10167         (vrp_visit_stmt): Remove duplicated code.
10169 2013-10-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
10171         * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
10172         ceildf2, btruncdf2, instead of vsx_* name.
10174         * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
10175         iterators to only do V2DF and V4SF here.  Move the DF code to
10176         rs6000.md where it is combined with SF mode.  Replace <VSv> with
10177         just 'v' since only vector operations are handled with these insns
10178         after moving the DF support to rs6000.md.
10179         (vsx_sub<mode>3): Likewise.
10180         (vsx_mul<mode>3): Likewise.
10181         (vsx_div<mode>3): Likewise.
10182         (vsx_fre<mode>2): Likewise.
10183         (vsx_neg<mode>2): Likewise.
10184         (vsx_abs<mode>2): Likewise.
10185         (vsx_nabs<mode>2): Likewise.
10186         (vsx_smax<mode>3): Likewise.
10187         (vsx_smin<mode>3): Likewise.
10188         (vsx_sqrt<mode>2): Likewise.
10189         (vsx_rsqrte<mode>2): Likewise.
10190         (vsx_fms<mode>4): Likewise.
10191         (vsx_nfma<mode>4): Likewise.
10192         (vsx_copysign<mode>3): Likewise.
10193         (vsx_btrunc<mode>2): Likewise.
10194         (vsx_floor<mode>2): Likewise.
10195         (vsx_ceil<mode>2): Likewise.
10196         (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
10197         (vsx_sminsf3): Likewise.
10198         (vsx_fmadf4): Likewise.
10199         (vsx_fmsdf4): Likewise.
10200         (vsx_nfmadf4): Likewise.
10201         (vsx_nfmsdf4): Likewise.
10202         (vsx_cmpdf_internal1): Likewise.
10204         * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
10205         simpler to select whether a target has SPE or traditional floating
10206         point support in iterators.
10207         (TARGET_DF_SPE): Likewise.
10208         (TARGET_SF_FPR): Likewise.
10209         (TARGET_DF_FPR): Likewise.
10210         (TARGET_SF_INSN): Macros to say whether floating point support
10211         exists for a given operation for expanders.
10212         (TARGET_DF_INSN): Likewise.
10214         * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
10215         combining of SF/DF mode operations, using both traditional and VSX
10216         registers.
10217         (Fvsx): Likewise.
10218         (Ff): Likewise.
10219         (Fv): Likewise.
10220         (Fs): Likewise.
10221         (Ffre): Likewise.
10222         (FFRE): Likewise.
10223         (abs<mode>2): Combine SF/DF modes using traditional floating point
10224         instructions.  Add support for using the upper DF registers with
10225         VSX support, and SF registers with power8-vector support.  Update
10226         expanders for operations supported by both the SPE and traditional
10227         floating point units.
10228         (abs<mode>2_fpr): Likewise.
10229         (nabs<mode>2): Likewise.
10230         (nabs<mode>2_fpr): Likewise.
10231         (neg<mode>2): Likewise.
10232         (neg<mode>2_fpr): Likewise.
10233         (add<mode>3): Likewise.
10234         (add<mode>3_fpr): Likewise.
10235         (sub<mode>3): Likewise.
10236         (sub<mode>3_fpr): Likewise.
10237         (mul<mode>3): Likewise.
10238         (mul<mode>3_fpr): Likewise.
10239         (div<mode>3): Likewise.
10240         (div<mode>3_fpr): Likewise.
10241         (sqrt<mode>3): Likewise.
10242         (sqrt<mode>3_fpr): Likewise.
10243         (fre<Fs>): Likewise.
10244         (rsqrt<mode>2): Likewise.
10245         (cmp<mode>_fpr): Likewise.
10246         (smax<mode>3): Likewise.
10247         (smin<mode>3): Likewise.
10248         (smax<mode>3_vsx): Likewise.
10249         (smin<mode>3_vsx): Likewise.
10250         (negsf2): Delete SF operations that are merged with DF.
10251         (abssf2): Likewise.
10252         (addsf3): Likewise.
10253         (subsf3): Likewise.
10254         (mulsf3): Likewise.
10255         (divsf3): Likewise.
10256         (fres): Likewise.
10257         (fmasf4_fpr): Likewise.
10258         (fmssf4_fpr): Likewise.
10259         (nfmasf4_fpr): Likewise.
10260         (nfmssf4_fpr): Likewise.
10261         (sqrtsf2): Likewise.
10262         (rsqrtsf_internal1): Likewise.
10263         (smaxsf3): Likewise.
10264         (sminsf3): Likewise.
10265         (cmpsf_internal1): Likewise.
10266         (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
10267         (negdf2): Delete DF operations that are merged with SF.
10268         (absdf2): Likewise.
10269         (nabsdf2): Likewise.
10270         (adddf3): Likewise.
10271         (subdf3): Likewise.
10272         (muldf3): Likewise.
10273         (divdf3): Likewise.
10274         (fred): Likewise.
10275         (rsqrtdf_internal1): Likewise.
10276         (fmadf4_fpr): Likewise.
10277         (fmsdf4_fpr): Likewise.
10278         (nfmadf4_fpr): Likewise.
10279         (nfmsdf4_fpr): Likewise.
10280         (sqrtdf2): Likewise.
10281         (smaxdf3): Likewise.
10282         (smindf3): Likewise.
10283         (cmpdf_internal1): Likewise.
10284         (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
10285         (btrunc<mode>2): Delete separate expander, and combine with the
10286         insn and add VSX instruction support.  Use TARGET_<MODE>_FPR.
10287         (btrunc<mode>2_fpr): Likewise.
10288         (ceil<mode>2): Likewise.
10289         (ceil<mode>2_fpr): Likewise.
10290         (floor<mode>2): Likewise.
10291         (floor<mode>2_fpr): Likewise.
10292         (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
10293         Add support for using the upper registers with VSX and
10294         power8-vector.  Move insns to be closer to the define_expands. On
10295         VSX systems, prefer the traditional form of FMA over the VSX
10296         version, since the traditional form allows the target not to
10297         overlap with the inputs.
10298         (fms<mode>4_fpr): Likewise.
10299         (nfma<mode>4_fpr): Likewise.
10300         (nfms<mode>4_fpr): Likewise.
10302 2013-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10303             Richard Earnshaw  <richard.earnshaw@arm.com>
10305         * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
10306         (struct mult_cost_table): Likewise.
10307         (struct mem_cost_table): Likewise.
10308         (struct fp_cost_table): Likewise.
10309         (struct vector_cost_table): Likewise.
10310         (cpu_cost_table): Likewise.
10311         * config/arm/arm.opt (mold-rts-costs): New option.
10312         (mnew-generic-costs): Likewise.
10313         * config/arm/arm.c (generic_extra_costs): New table.
10314         (cortexa15_extra_costs): Likewise.
10315         (arm_slowmul_tune): Use NULL as new costs.
10316         (arm_fastmul_tune): Likewise.
10317         (arm_strongarm_tune): Likewise.
10318         (arm_xscale_tune): Likewise.
10319         (arm_9e_tune): Likewise.
10320         (arm_v6t2_tune): Likewise.
10321         (arm_cortex_a5_tune): Likewise.
10322         (arm_cortex_a9_tune): Likewise.
10323         (arm_v6m_tune): Likewise.
10324         (arm_fa726te_tune): Likewise.
10325         (arm_cortex_a15_tune): Use cortex15_extra_costs.
10326         (arm_cortex_tune): Use generict_extra_costs.
10327         (shifter_op_p): New function.
10328         (arm_unspec_cost): Likewise.
10329         (LIBCALL_COST): Define.
10330         (arm_new_rtx_costs): New function.
10331         (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
10332         table is available. Use old costs otherwise unless mnew-generic-costs
10333         is specified.
10334         * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
10335         (cpu_cost_table): Declare.
10337 2013-10-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10339         PR target/58460
10340         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
10341         (*subs_mul_imm_<mode>)
10342         (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
10343         (*sub_<shift>_<mode>)
10344         (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
10345         Remove k constraint.
10347 2013-10-03  Ian Bolton  <ian.bolton@arm.com>
10349         * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
10350         code.
10351         * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
10353 2013-10-02  Teresa Johnson  <tejohnson@google.com>
10355         * predict.c (probably_never_executed): New function.
10356         (probably_never_executed_bb_p): Invoke probably_never_executed.
10357         (probably_never_executed_edge_p): Ditto.
10358         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
10359         Treat profile insanities conservatively.
10361 2013-10-02  John David Anglin  <danglin@gcc.gnu.org>
10363         * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
10365 2013-10-02  Vladimir Makarov  <vmakarov@redhat.com>
10367         * lra-constraints.c (process_alt_operand): Calculate scratch_p and
10368         use it.  Use smaller increase for scratch.  Don't increase reject
10369         for early clobber scratch.
10370         * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
10371         setting eliminated regs except setting fp from hfp.
10372         (lra_eliminate): Check lra_insn_recog_data on NULL.
10374 2013-10-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
10376         PR target/58587
10377         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
10378         setting -mvsx-timode by default until the underlying problem is fixed.
10379         (RS6000_CPU, power7 defaults): Likewise.
10381 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
10383         * config/x-linux (host-linux.o): Remove header dependencies.
10384         Use $(COMPILE) and $(POSTCOMPILE).
10385         * config/t-linux-android (linux-android.o): Ditto.
10387 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
10389         * Makefile.in (expmed.o-warn): Remove.
10391 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
10393         * graphite-scop-detection.c: Include tree-ssa-propagate,h.
10394         * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
10396 2013-10-02  Teresa Johnson  <tejohnson@google.com>
10398         * dojump.c (do_jump_1): Divide probability between
10399         both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
10401 2013-10-02  Tom Tromey  <tromey@redhat.com>
10403         * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
10405 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
10407         * tree-flow.h: Remove some prototypes.
10408         * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
10409         mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
10410         * tree-into-ssa.c (mark_virtual_operand_for_renaming,
10411         mark_virtual_phi_result_for_renaming): Relocate here.
10412         * tree-into-ssa.h: Add prototypes.
10413         * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
10414         single_pred_before_succ_order.
10415         (blocks_in_phiopt_order): Rename and move to cfganal.c.
10416         (nonfreeing_call_p) Move to gimple.c.
10417         * cfganal.c (single_pred_before_succ_order): Move and renamed from
10418         tree-ssa-phiopt.c.
10419         * basic-block.h (single_pred_before_succ_order): Add prototype.
10420         * gimple.c (nonfreeing_call_p): Relocate here.
10421         * gimple.h: Add prototype.
10422         * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
10423         * tree-ssa-dom.h: New file.  Relocate prototypes here.
10424         * tree-ssa.h: Include tree-ssa-dom.h.
10426 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
10428         * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
10429         Use $(COMPILE) and $(POSTCOMPILE).
10431         * config/alpha/x-alpha (driver-alpha.o): Ditto.
10433 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
10435         * tree-flow.h: Remove some prototypes.
10436         * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
10437         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
10438         * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
10439         propagate_tree_value*): Move from here to...
10440         * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
10441         propagate_tree_value*): Relocate here.
10442         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
10443         * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
10444         * gimple-fold.c: Remove gimple-fold.h from include list.
10445         * tree-vrp.c: Remove gimple-fold.h from include list.
10446         * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
10447         * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
10448         * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
10449         * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
10450         * sese.c: Add tree-ssa-propagate.h to include list.
10452 2013-10-02  Richard Biener  <rguenther@suse.de>
10454         * tree-loop-distribution.c: Include tree-vectorizer.h for
10455         find_loop_location.
10456         (enum partition_kind): Remove PKIND_REDUCTION.
10457         (struct partition_s): Remove has_writes member, add reduction_p member.
10458         (partition_alloc): Adjust.
10459         (partition_builtin_p): Likewise.
10460         (partition_has_writes): Remove.
10461         (partition_reduction_p): New function.
10462         (partition_merge_into): Likewise.
10463         (generate_code_for_partition): Commonize builtin partition
10464         handling tail.
10465         (rdg_cannot_recompute_vertex_p): Remove.
10466         (already_processed_vertex_p): Likewise.
10467         (rdg_flag_vertex): Do not set has_writes.
10468         (classify_partition): Adjust.
10469         (rdg_build_partitions): Do not set has_writes, treat all
10470         partitions as useful.
10471         (distribute_loop): Record number of library calls generated.  Adjust.
10472         (tree_loop_distribution): Report number of loops and library
10473         calls generated as opt-info.
10475 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
10477         * tree-flow.h: Include new .h files.  Move prototypes.
10478         * tree-cfgcleanup.h: New file.  Add prototypes from tree-flow.h.
10479         * tree-dfa.h: New File.  Add prototypes from tree-flow.h.
10480         (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
10481         * tree-pretty-print.h: Add prototypes from tree-flow.h.
10482         * tree-into-ssa.h: New File.  Add prototypes from tree-flow.h.
10483         ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
10484         * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
10485         * tree.h (get_ref_base_and_extent): Move prototype out.
10486         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
10487         tree-dfa.h.
10488         * gimple-low.h: New File.  Add prototypes from tree-flow.h.
10489         * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
10490         * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
10491         * tree-scalar-evolution.c: Include tree.h.
10492         * sese.c: Include tree.h.
10493         * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
10494         * dwarf2out.c: Include tree-dfa.h.
10495         * tree-chrec.c: Include tree.h.
10496         * tree-data-ref.c: Include tree.h.
10498 2013-10-02  Yufeng Zhang  <yufeng.zhang@arm.com>
10500         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
10501         Fix whitespace.
10503 2013-10-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10505         * config/t-sol2 (sol2-c.o): Remove header dependencies.
10506         Use $(COMPILE) and $(POSTCOMPILE).
10507         (sol2-cxx.o): Likewise.
10508         (sol2-stubs.o): Likewise.
10509         (sol2.o): Likewise.
10510         * config/x-solaris (host-solaris.o): Likewise.
10512         * config/sparc/t-sparc (sparc.o): Remove.
10513         (sparc-c.o): Remove header dependencies.
10514         Use $(COMPILE) and $(POSTCOMPILE).
10515         * config/sparc/x-sparc: Likewise.
10517 2013-10-02  Joern Rennecke  <joern.rennecke@embecosm.com>
10519         * config/arc/arc-opts.h: Add 2013 to Copyright years.
10520         * config/arc/arc700.md: Likewise.
10521         * config/arc/arc-modes.def: Likewise.
10522         * config/arc/arc-simd.h: Likewise.
10523         * config/arc/t-arc-uClibc: Likewise.
10524         * config/arc/t-arc-newlib: Likewise.
10526 2013-10-02  Renlin Li  <renlin.li@arm.com>
10528         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
10529         plus_constant.
10530         (aarch64_expand_epilogue): Likewise.
10532 2013-10-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10533             Yufeng Zhang  <yufeng.zhang@arm.com>
10535         * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
10536         declaration.
10537         (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
10538         'base_in' represent a conversion and legal_cast_p_1 holds; set
10539         'base_in' with the returned value from get_unwidened.
10541 2013-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10543         * config/arm/arm.c (arm_legitimize_reload_address): Explain why
10544         plus_constant is not used.
10546 2013-10-01  Wei Mi  <wmi@google.com>
10548         * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
10549         * config/i386/i386.md: Add define_peephole2 to
10550         break partial reg stall for cvtss2sd/cvtsd2ss.
10552 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
10554         * config/arc/arc.c (pass_arc_ifcvt::clone):
10555         Update for ctxt_ -> m_ctxt change.
10557 2013-10-01  Jeff Law  <law@redhat.com>
10559         * tree-ssa-threadupdate.c (struct redirection_data): Delete
10560         outgoing_edge and intermediate_edge fields.  Instead store the path.
10561         (redirection_data::hash): Hash on the last edge's destination index.
10562         (redirection_data::equal): Check the entire thread path.
10563         (lookup_redirectio_data): Corresponding changes.
10564         (create_edge_and_update_destination_phis): Likewise.
10565         (thread_single_edge): Likewise.
10567 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
10568             Diego Novillo <dnovillo@google.com>
10570         * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
10571         (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
10572         (vld32wh_insn, vld32wl_insn): Delete commented-out old
10573         versions of these patterns.
10575         * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
10576         (__builtin_arc_aligned): Likewise.
10578         * config/arc/arc.md: Expand adc_0 comment stating the intended
10579         purpose and why it isn't ready.
10580         Replace commented out call_value_via_label_mixed with a
10581         plain comment about bl_s.
10583         * config/arc/arc.c (stdio.h): Don't include directly.
10584         (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
10585         Remove if (1) condition.
10586         (arc_encode_section_info): Fix comment.
10588 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
10590         * config/arc/arc.c (arc_conditional_register_usage):
10591         Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
10592         Also set reg_alloc_order for DMA config regs.
10594 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
10595             Jeremy Bennett  <jeremy.bennett@embecosm.com>
10597         * doc/install.texi (--with-cpu): Mention ARC.
10598         (arc-*-elf32): New paragraph.
10599         (arc-linux-uclibc): Likewise.
10600         * doc/md.texi (Machine Constraints): Add ARC part.
10601         * doc/invoke.texi: (menu): Add ARC Options.
10602         (Machine Dependent Options) <ARC Options>: Add synopsis.
10603         (node ARC Options): Add.
10604         * doc/extend.texi (long_call / short_call attribute): Add ARC.
10605         (ARC Built-in Functions): New section defining
10606         generic ARC built-in functions.
10607         (ARC SIMD Built-in Functions): New section defining SIMD specific
10608         built-in functions.
10609         (Declaring Attributes of Functions): Extended
10610         description of short_call and long_call attributes for ARC and
10611         added index entries.
10613 2013-10-01  Saurabh Verma  <saurabh.verma@codito.com>
10614             Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
10615             Joern Rennecke  <joern.rennecke@embecosm.com>
10616             Muhammad Khurram Riaz  <khurram.riaz@arc.com>
10617             Brendan Kehoe  <brendan@zen.org>
10618             Michael Eager  <eager@eagercon.com>
10619             Simon Cook  <simon.cook@embecosm.com>
10620             Jeremy Bennett  <jeremy.bennett@embecosm.com>
10622         * config/arc, common/config/arc: New directories.
10624 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
10625             Brendan Kehoe  <brendan@zen.org>
10626             Simon Cook  <simon.cook@embecosm.com>
10628         * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
10630 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
10632         * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
10633         * tree-ssa-coalesce.h: New. Move prototype to here.
10634         * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
10635         * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
10636         (gimple_can_coalesce_p): Move to...
10637         * gimple.c (gimple_can_coalesce_p): Here.
10639 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
10641         * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
10642         (dump_decl_set): Move to gimple.c.
10643         * gimple.h: Don't include tree-ssa-operands.h.
10644         (dump_decl_set): Add prototype.
10645         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
10646         Move to gimple-ssa.h.
10647         (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
10648         gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
10649         gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
10650         gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
10651         * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
10652         than PHI_ARG_DEF.
10653         (dump_decl_set): Relocate here.
10654         * gimple-ssa.h: New file.
10655         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
10656         Relocate from gimple.h.
10657         * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
10658         * tree-ssa-operands.c (swap_ssa_operands): Rename from
10659         swap_tree_operands and remove non-ssa path.
10660         (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
10661         * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
10662         swap_ssa_operands.
10663         * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
10664         vect_is_simple_reduction_1): Use swap_ssa_operands.
10665         * tree-flow.h: Move various prototypes to tree-phinodes.h.
10666         (enum need_phi_state): Move to tree-into-ssa.c.
10667         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
10668         BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
10669         (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
10670         * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
10671         link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
10672         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
10673         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
10674         num_imm_uses): Move to ssa-iterators.h.
10675         (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
10676         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
10677         tree-phinodes.h.
10678         (op_iter_done, op_iter_next_def, op_iter_next_tree,
10679         clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
10680         op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
10681         single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
10682         num_ssa_operands, delink_stmt_imm_use, single_phi_def,
10683         op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
10684         end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
10685         first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
10686         end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
10687         (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
10688         gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
10689         gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
10690         phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
10691         (set_phi_nodes): Move to tree-phinodes.h.
10692         * tree-ssa-operands.h (enum ssa_op_iter_type,
10693         struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
10694         ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
10695         (dump_decl_set): Remove prototype.
10696         (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
10697         * tree-phinodes.h: New file.  Move some prototypes from tree-flow.h.
10698         (set_phi_nodes): Relocate from tree-flow-inline.h.
10699         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
10700         tree-flow-inline.h
10701         * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
10702         include list.  Temporarily add gimple.h to include list.
10703         * ssa-iterators.h: New file.
10704         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
10705         BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
10706         (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
10707         FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
10708         Relocate from tree-ssa-operands.h.
10709         (delink_imm_use, link_imm_use_to_list, link_imm_use,
10710         set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
10711         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
10712         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
10713         num_imm_uses, get_use_from_ptr, get_def_from_ptr,
10714         phi_arg_index_from_use, op_iter_done, op_iter_next_def,
10715         op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
10716         op_iter_init_use, op_iter_init_def, op_iter_init_tree,
10717         single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
10718         zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
10719         single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
10720         end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
10721         link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
10722         first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
10723         Relocate from tree-flow-inline.h.
10724         * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
10726 2013-10-01  Vidya Praveen  <vidyapraveen@arm.com>
10728         * aarch64-simd.md
10729         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
10730         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
10731         Insert '\t' to output template.
10732         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
10733         (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
10734         gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
10735         (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
10737 2013-10-01  Uros Bizjak  <ubizjak@gmail.com>
10739         * doc/install.texi (Host/target specific installation notes for GCC):
10740         Put @anchor before @heading.
10741         * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
10742         Use @email for email addresses.
10744 2013-10-01  Jeff Law  <law@redhat.com>
10746         * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
10747         a vec.  Only delete the path if we create one without successfully
10748         registering a jump thread.
10749         * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
10750         as a pointer.
10751         * tree-ssa-threadupdate.c (threaded_edges): Remove.  No longer used
10752         (paths): New vector of jump threading paths.
10753         (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
10754         (THREAD_PATH): New accessor macro for the entire thread path.
10755         (lookup_redirection_data): Get intermediate and final outgoing edge
10756         from the thread path.
10757         (create_edge_and_update_destination_phis): Copy the threading path.
10758         (ssa_fix_duplicate_block_edges): Get edges and block types from the
10759         jump threading path.
10760         (ssa_redirect_edges): Get edges and block types from the jump threading
10761         path.  Free the path vector.
10762         (thread_block): Get edges from the jump threading path.  Look at the
10763         entire path to see if we thread to a loop exit.  If we cancel a jump
10764         thread request, then free the path vector.
10765         (thread_single_edge): Get edges and block types from the jump threading
10766         path.  Free the path vector.
10767         (thread_through_loop_header): Get edges and block types from the jump
10768         threading path.  Free the path vector.
10769         (mark_threaded_blocks): Iterate over the vector of paths and store
10770         the path on the appropriate edge.  Get edges and block types from the
10771         jump threading path.
10772         (mark_threaded_blocks): Get edges and block types from the jump
10773         threading path.  Free the path vector.
10774         (thread_through_all_blocks): Use the vector of paths rather than
10775         a vector of 3-edge sets.
10776         (register_jump_thread): Accept pointer to a path vector rather
10777         than the path vector itself.  Store the path vector for later use.
10778         Simplify.
10780 2013-10-01  Jakub Jelinek  <jakub@redhat.com>
10781             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10783         PR target/58574
10784         * config/s390/s390.c (s390_split_branches): Modify check for table
10785         jump insns.
10786         (s390_chunkify_start): Rearrange table jump insn check in order to
10787         deal with compare and branch insns correctly.
10789 2013-10-01  Kugan Vivekanandarajah  <kuganv@linaro.org>
10791         PR target/58578
10792         Revert
10793         2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
10794         * config/arm/arm.md (arm_ashldi3_1bit):  define_insn into
10795         define_insn_and_split.
10796         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
10797         (shiftsi3_compare): New pattern.
10798         (rrx): New pattern.
10799         * config/arm/unspecs.md (UNSPEC_RRX): New.
10801 2013-10-01  Alan Modra  <amodra@gmail.com>
10803         * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
10804         casing inout operands.
10806 2013-10-01  Richard Biener  <rguenther@suse.de>
10808         PR tree-optimization/58553
10809         * tree-loop-distribution.c (struct partition_s): Add niter member.
10810         (classify_partition): Populate niter member for the partition
10811         and properly identify whether the relevant store happens before
10812         or after the loop exit.
10813         (generate_memset_builtin): Use niter member from the partition.
10814         (generate_memcpy_builtin): Likewise.
10816 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
10818         * vec.h (vec_prefix, vec): Prefix member names with "m_".
10819         * vec.c (vec_prefix::calculate_allocation): Update accordingly.
10821 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
10823         * basic-block.h (edge_list): Prefix member names with "m_".
10824         * context.h (context): Likewise.
10825         * domwalk.h (dom_walker): Likewise.
10826         * gengtype-state.c (s_expr_writer, state_writer): Likewise.
10827         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
10828         * hash-table.h (hash_table): Likewise.
10829         * machmode.h (bit_field_mode_iterator): Likewise.
10830         * pass_manager.h (pass_list): Likewise.
10831         * tree-into-ssa.c (mark_def_dom_walker): Likewise.
10832         * tree-pass.h (pass_data): Likewise.
10833         * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
10834         * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
10835         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
10836         * asan.c (pass_data_asan): Update accordingly.
10837         * cfganal.c (control_dependences::find_control_dependence): Likewise.
10838         (control_dependences::control_dependences): Likewise.
10839         (control_dependences::~control_dependences): Likewise.
10840         (control_dependences::~control_dependences): Likewise.
10841         (control_dependences::get_edges_dependent_on): Likewise.
10842         * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
10843         (pass_data_remove_cgraph_callee_edges::clone): Likewise.
10844         * context.c (gcc::context::context): Likewise.
10845         * cprop.c (pass_rtl_cprop::clone): Likewise.
10846         * domwalk.c (dom_walker::walk): Likewise.
10847         * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
10848         * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
10849         * mode-switching.c (pass_mode_switching::clone): Likewise.
10850         * passes.c (opt_pass::opt_pass): Likewise.
10851         (pass_manager::pass_manager): Likewise.
10852         * predict.c (pass_strip_predict_hints::clone): Likewise.
10853         * recog.c (pass_data pass_data_peephole2::clone): Likewise.
10854         (pass_split_all_insns::clone): Likewise.
10855         * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
10856         Likewise.
10857         (bit_field_mode_iterator::next_mode): Likewise.
10858         (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
10859         * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
10860         * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
10861         * tree-complex.c (pass_lower_complex::clone): Likewise.
10862         * tree-eh.c (pass_cleanup_eh::clone): Likewise.
10863         * tree-object-size.c (pass_object_sizes::clone): Likewise.
10864         * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
10865         * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
10866         (pass_fold_builtins::clone): Likewise.
10867         * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
10868         * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
10869         * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
10870         (pass_cd_dce::clone): Likewise.
10871         * tree-ssa-dom.c (pass_dominator::clone): Likewise.
10872         (pass_phi_only_cprop::clone): Likewise.
10873         * tree-ssa-dse.c (pass_dse::clone): Likewise.
10874         * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
10875         * tree-ssa-loop.c (pass_lim::clone): Likewise.
10876         * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
10877         * tree-ssa-pre.c (pass_fre::clone): Likewise.
10878         * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
10879         * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
10880         * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
10881         * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
10882         * tree-vrp.c (pass_vrp::clone): Likewise.
10883         * tsan.c (pass_tsan::clone): Likewise.
10885 2013-09-30  Jakub Jelinek  <jakub@redhat.com>
10887         PR middle-end/58564
10888         * fold-const.c (tree_unary_nonnegative_warnv_p): Use
10889         INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
10891         PR middle-end/58564
10892         * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
10893         optimization, punt if sign_bit_p looked through any zero extension.
10895 2013-09-30  Teresa Johnson  <tejohnson@google.com>
10897         * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
10898         Update redirected out edge count in joiner case.
10899         (ssa_redirect_edges): Common the joiner and non-joiner cases
10900         so that joiner case gets profile updates.
10902 2013-09-30  Richard Biener  <rguenther@suse.de>
10904         PR tree-optimization/58554
10905         * tree-loop-distribution.c (classify_partition): Require
10906         unconditionally executed stores for memcpy and memset recognition.
10907         (tree_loop_distribution): Calculate dominance info.
10909 2013-09-30  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
10911         * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
10912         (NO_PROFILE_COUNTERS): Likewise.
10913         (PROFILE_HOOK): Likewise.
10914         (FUNCTION_PROFILER): Likewise.
10915         * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
10917 2013-09-30  Iain Sandoe  <iain@codesourcery.com>
10919         * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
10920         calls and defines in TARGET_MACHO conditional.
10921         (load_macho_picbase_di): Likewise.
10922         (reload_macho_picbase): Likewise.
10923         (reload_macho_picbase_si): Likewise.
10924         (reload_macho_picbase_di): Likewise.
10925         (nonlocal_goto_receiver): Likewise.
10927 2013-09-30  Nick Clifton  <nickc@redhat.com>
10929         * config/msp430/msp430.c (msp430x_names): New array.  Lists MCUs
10930         that use the MSP430X ISA.
10931         (msp430_option_override): Scan -mmcu command line option for any
10932         MCU name that supports the MSP430X ISA.
10933         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
10934         -mmcu options which enable the MSP430X ISA.
10936 2013-09-30  Richard Biener  <rguenther@suse.de>
10938         PR middle-end/58532
10939         * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
10940         before looking for setjmp-like calls.
10942 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
10944         PR target/10901
10945         * config/darwin-protos.h (machopic_get_function_picbase): New.
10946         * config/darwin.c (machopic_get_function_picbase): New.
10947         * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
10948         label for a new func.  (load_macho_picbase_di): Likewise.
10949         (reload_macho_picbase): New expand.
10950         (reload_macho_picbase_si): New insn.
10951         (reload_macho_picbase_di): New insn.
10952         (nonlocal_goto_receiver): New define and split.
10953         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
10954         (unspecv enum): Add UNSPECV_NLGR.
10956 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
10958         * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
10959         that altivec registers are correctly sized on Darwin.
10961 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
10963         * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
10964         darwin-driver.o): Use COMPILE and POSTCOMPILE.
10965         * config/x-darwin (host-darwin.o): Likewise.
10966         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
10967         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
10968         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
10970 2013-09-29  Uros Bizjak  <ubizjak@gmail.com>
10972         * doc/invoke.texi: Fix usage of @tie{} command.
10974 2013-09-29  Eric Botcazou  <ebotcazou@adacore.com>
10976         * config/sparc/sync.md: Add peephole for consecutive memory barriers.
10978 2013-09-28  Jan Hubicka  <jh@suse.cz>
10980         * config/i386/x86-tune.def: Add documentation for each of the options;
10981         add whitespace.
10983 2013-09-28  Jan Hubicka  <jh@suse.cz>
10985         * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
10986         generic.
10987         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
10988         (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
10989         (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
10990         (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
10991         (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
10993 2013-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
10995         * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
10996         bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
10997         cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
10998         cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
10999         combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
11000         cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
11001         df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
11002         dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
11003         errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
11004         fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
11005         gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
11006         genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
11007         genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
11008         genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
11009         gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
11010         gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
11011         gimple.h, godump.c, graphite-clast-to-gimple.c,
11012         graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
11013         graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
11014         hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
11015         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
11016         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
11017         ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
11018         loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
11019         lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
11020         mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
11021         pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
11022         predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
11023         profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
11024         regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
11025         reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
11026         sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
11027         statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
11028         system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
11029         tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
11030         tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
11031         tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
11032         tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
11033         tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
11034         tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
11035         tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
11036         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
11037         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
11038         tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
11039         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
11040         tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
11041         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
11042         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
11043         tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
11044         tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
11045         tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
11046         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
11047         tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
11048         tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
11049         varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
11050         whitespace before "(".
11052 2013-09-28  Sandra Loosemore  <sandra@codesourcery.com>
11054         * expr.h (extract_bit_field): Remove packedp parameter.
11055         * expmed.c (extract_fixed_bit_field): Remove packedp parameter
11056         from forward declaration.
11057         (store_split_bit_field): Remove packedp arg from calls to
11058         extract_fixed_bit_field.
11059         (extract_bit_field_1): Remove packedp parameter and packedp
11060         argument from recursive calls and calls to extract_fixed_bit_field.
11061         (extract_bit_field): Remove packedp parameter and corresponding
11062         arg to extract_bit_field_1.
11063         (extract_fixed_bit_field): Remove packedp parameter.  Remove code
11064         to issue warnings.
11065         (extract_split_bit_field): Remove packedp arg from call to
11066         extract_fixed_bit_field.
11067         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
11068         (copy_blkmode_from_reg): Likewise.
11069         (copy_blkmode_to_reg): Likewise.
11070         (read_complex_part): Likewise.
11071         (store_field): Likewise.
11072         (expand_expr_real_1): Likewise.
11073         * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
11074         to extract_bit_field.
11075         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
11076         call to extract_bit_field.
11077         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
11078         call to extract_bit_field.
11079         * doc/invoke.texi (Code Gen Options): Remove mention of warnings
11080         and special packedp behavior from -fstrict-volatile-bitfields
11081         documentation.
11083 2013-09-27  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
11085         * lra-eliminations.c (init_elim_table): Guard value_p.
11087 2013-09-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
11089         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
11090         DFmode, DImode, and SFmode in the upper VSX registers based on the
11091         -mupper-regs-{df,sf} flags.  Fix wu constraint to be ALTIVEC_REGS
11092         if -mpower8-vector.  Combine -mvsx-timode handling with the rest
11093         of the VSX register handling.
11095         * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
11096         (f32_sv): Likewise.
11097         (zero_extendsidi2_lfiwzx): Add support for loading into the
11098         Altivec registers with -mpower8-vector.  Use wu/wv constraints to
11099         only do VSX memory options on Altivec registers.
11100         (extendsidi2_lfiwax): Likewise.
11101         (extendsfdf2_fpr): Likewise.
11102         (mov<mode>_hardfloat, SF/SD modes): Likewise.
11103         (mov<mode>_hardfloat32, DF/DD modes): Likewise.
11104         (mov<mode>_hardfloat64, DF/DD modes): Likewise.
11105         (movdi_internal64): Likewise.
11107 2013-09-27  Xinliang David Li  <davidxl@google.com>
11109         * opts.c (finish_options): Adjust parameters
11110         according to vect cost model.
11111         (common_handle_option): Set dynamic vect cost
11112         model for FDO.
11113         targhooks.c (default_add_stmt_cost): Compute stmt cost
11114         unconditionally.
11115         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
11116         Use helper function.
11117         * tree-vectorizer.h (unlimited_cost_model): New function.
11118         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
11119         * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
11120         function.
11121         (vect_enhance_data_refs_alignment): Ditto.
11122         * flag-types.h: New enum.
11123         * common/config/i386/i386-common.c (ix86_option_init_struct):
11124         No need to initialize vect_cost_model flag.
11125         * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
11126         unconditionally.
11128 2013-09-27  Diego Novillo  <dnovillo@google.com>
11130         * gimple.h (enum ssa_mode): Remove.
11132 2013-09-27  Paulo Matos  <pmatos@broadcom.com>
11134         * cfgloop.h (number_of_loops): Fix typo in check for null.
11136 2013-09-27  Jakub Jelinek  <jakub@redhat.com>
11138         PR middle-end/58551
11139         * tree-cfg.c (move_sese_region_to_fn): Also move loops that
11140         are children of outermost saved_cfun's loop, and set it up to
11141         be moved to dest_cfun's outermost loop.  Fix up num_nodes adjustments
11142         if loop != loop0 and SESE region contains bbs that belong to loop0.
11144 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
11146         * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
11147         (binary_scale_code_p, get_base_term, get_index_term): New functions.
11148         (set_address_segment, set_address_base, set_address_index)
11149         (set_address_disp): Accept the argument unconditionally.
11150         (baseness): Remove must_be_base_p and must_be_index_p checks.
11151         (decompose_normal_address): Classify as much as possible in the
11152         main loop.
11154 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
11156         * cse.c (count_reg_usage): Handle INT_LIST.
11157         * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
11158         * reginfo.c (reg_scan_mark_refs): Likewise.
11159         * reload1.c (eliminate_regs_1): Likewise.
11161 2013-09-27  Iain Sandoe  <iain@codesourcery.com>
11163         PR middle-end/58547
11164         * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
11165         signed.
11167 2013-09-27  Richard Biener  <rguenther@suse.de>
11169         PR tree-optimization/58459
11170         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
11171         restriction not propagating into loops.
11173 2013-09-26  Florian Weimer  <fw@deneb.enyo.de>
11175         * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
11176         * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
11177         * doc/tree-ssa.texi (Walking use-def chains): Delete.
11179 2013-09-26  Richard Biener  <rguenther@suse.de>
11181         * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
11183 2013-09-26  Richard Biener  <rguenther@suse.de>
11185         * alias.h (component_uses_parent_alias_set): Rename to ...
11186         (component_uses_parent_alias_set_from): ... this.
11187         * alias.c (component_uses_parent_alias_set): Rename to ...
11188         (component_uses_parent_alias_set_from): ... this and return
11189         the desired parent.
11190         (reference_alias_ptr_type_1): Use the result from
11191         component_uses_parent_alias_set_from instead of stripping
11192         components one at a time.
11193         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
11195 2013-09-26  Andrew MacLeod  <amacleod@redhat.com>
11197         * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
11198         Move prototypes to...
11199         * tree-ssa-ter.h: New File.  Move prototypes here.
11200         * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
11201         * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
11202         * tree-outof-ssa.c (ssa_is_replaceable_p): New.  Refactor common bits
11203         from is_replaceable_p.
11204         * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
11205         (ter_is_replaceable_p): New.  Use new refactored ssa_is_replaceable_p.
11206         (process_replaceable): Use ter_is_replaceable_p.
11207         (find_replaceable_in_bb): Use ter_is_replaceable_p.
11208         * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c.  Use
11209         newly refactored ssa_is_replaceable_p.
11210         * cfgexpand.c: Include tree-outof-ssa.h.
11211         * ssaexpand.h: Delete.
11213 2013-09-26  Andrew MacLeod <amacleod@redhat.com>
11215         * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
11216         (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
11217         tree-ssa.c
11218         (create_gimple_tmp): Delete.
11219         (get_expr_type, build_assign, build_type_cast): Move to...
11220         * gimple-builder.c: New File.
11221         (get_expr_type): Relocate from gimple.c.
11222         (build_assign, build_type_cast): Change to only create ssanames.
11223         * gimple.h: Move prototypes to...
11224         * gimple-builder.h: New File. Here.
11225         * tree-ssa.h: And here.
11226         * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
11227         count_uses_and_derefs): Relocate from gimple.c.
11228         (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
11229         * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
11230         * tree-ssa-math-opts (execute_cse_reciprocals): Use
11231         gimple_replace_ssa_lhs.
11232         * asan.c: Include gimple-builder.h.
11233         * Makefile.in: Add gimple-builder.o.
11235 2013-09-26  Richard Biener  <rguenther@suse.de>
11237         * tree-ssa-live.c (var_map_base_init): Handle SSA names with
11238         DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
11239         (loe_visit_block): Use gcc_checking_assert.
11240         * tree-ssa-coalesce.c (create_outofssa_var_map): Use
11241         gimple_assign_ssa_name_copy_p.
11242         (gimple_can_coalesce_p): Adjust according to the var_map_base_init
11243         change.
11245 2013-09-26  David Edelsohn  <dje.gcc@gmail.com>
11247         * config/rs6000/t-rs6000 (rs6000.o): Remove.
11248         (rs6000-c.o): Use COMPILE and POSTCOMPILE.
11250 2013-09-26  Richard Biener  <rguenther@suse.de>
11252         PR tree-optimization/58539
11253         * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
11254         the fact that debug statements are not taking part in loop-closed
11255         SSA construction.
11257 2013-09-26  Nick Clifton  <nickc@redhat.com>
11259         * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
11260         time warning message.
11261         (msp430_print_operand_raw): Delete unused letter parameter.
11262         (TARGET_PRINT_OPERAND_ADDRESS): Define.
11263         (msp430_print_operand_address): New function.
11264         (msp430_print_operand): Move address printing code from here to
11265         new function.
11266         * config/msp430/msp430.md (movsipsi2): Add comment in generated
11267         assembler.
11268         (zero_extendpsisi2): Likewise.
11269         (extendpsisi2): New pattern.
11270         (andneghi3): New pattern.
11272 2013-09-26  Yvan Roux  <yvan.roux@linaro.org>
11274         * config/aarch64/aarch64.opt (mlra): New option.
11275         * config/aarch64/aarch64.c (aarch64_lra_p): New function.
11276         (TARGET_LRA_P): Define.
11278 2013-09-26  Eric Botcazou  <ebotcazou@adacore.com>
11280         * expr.c (expand_assignment): Remove obsolete comment.
11282 2013-09-25  Jeff Law  <law@redhat.com>
11284         * tree-flow.h (thread_through_all_blocks): Prototype moved into
11285         tree-ssa-threadupdate.h.
11286         (register_jump_thread): Similarly.
11287         * tree-ssa-threadupdate.h: New header file.
11288         * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
11289         * tree-vrp.c: Likewise.
11290         * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
11291         (thread_around_empty_blocks): Change type of path vector argument to
11292         an edge,type pair from just an edge.  Initialize both elements when
11293         appending to a jump threading path.  Tweak references to elements
11294         appropriately.
11295         (thread_across_edge): Similarly.  Release memory for the elements
11296         as needed.
11297         * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
11298         (dump_jump_thread_path): New function broken out from
11299         register_jump_thread.
11300         (register_jump_thread): Use dump_jump_thread_path.  Change type of
11301         path vector entries.  Search the path for NULL edges and dump
11302         the path if one is found.  Tweak the conversion of path to 3-edge
11303         form to use the block copy type information embedded in the path.
11305 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
11307         * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
11309 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
11310             Vladimir Makarov  <vmakarov@redhat.com>
11312         * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
11313         from the least significant bit.
11314         (strip_address_mutations): Add bitfield operations handling.
11315         (must_be_index_p): Add shifting and rotate operations handling.
11316         (set_address_base): Use must_be_base_p predicate.
11317         (set_address_index): Use must_be_index_p predicate.
11319 2013-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11320             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11321             Sergey Lega  <sergey.s.lega@intel.com>
11322             Anna Tikhonova  <anna.tikhonova@intel.com>
11323             Ilya Tocar  <ilya.tocar@intel.com>
11324             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11325             Ilya Verbin  <ilya.verbin@intel.com>
11326             Kirill Yukhin  <kirill.yukhin@intel.com>
11327             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11329         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
11330         Use new names.
11331         (ix86_expand_vector_move_misalign): Support new unaligned load and
11332         stores and use new names.
11333         (CODE_FOR_sse2_storedqu): Rename to ...
11334         (CODE_FOR_sse2_storedquv16qi): ... this.
11335         (CODE_FOR_sse2_loaddqu): Rename to ...
11336         (CODE_FOR_sse2_loaddquv16qi): ... this.
11337         (CODE_FOR_avx_loaddqu256): Rename to ...
11338         (CODE_FOR_avx_loaddquv32qi): ... this.
11339         (CODE_FOR_avx_storedqu256): Rename to ...
11340         (CODE_FOR_avx_storedquv32qi): ... this.
11341         * config/i386/i386.md (fpint_logic): New.
11342         * config/i386/sse.md (VMOVE): Extend for AVX512.
11343         (VF): Ditto.
11344         (VF_128_256): New.
11345         (VF_512): Ditto.
11346         (VI_UNALIGNED_LOADSTORE): Ditto.
11347         (sse2_avx_avx512f): Ditto.
11348         (sse2_avx2): Extend for AVX512.
11349         (sse4_1_avx2): Ditto.
11350         (avx2_avx512f): New.
11351         (sse): Extend for AVX512.
11352         (sse2): Ditto.
11353         (sse4_1): Ditto.
11354         (avxsizesuffix): Ditto.
11355         (sseintvecmode): Ditto.
11356         (ssePSmode): Ditto.
11357         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
11358         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
11359         (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
11360         (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
11361         (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
11362         (<sse2_avx_avx512f>_storedqu<mode): ... this.
11363         (<sse>_movnt<mode>): Replace constraint "x" with "v".
11364         (STORENT_MODE): Extend for AVX512.
11365         (*absneg<mode>2): Replace constraint "x" with "v".
11366         (*mul<mode>3): Ditto.
11367         (*ieee_smin<mode>3): Ditto.
11368         (*ieee_smax<mode>3): Ditto.
11369         (avx_cmp<mode>3): Replace VF with VF_128_256.
11370         (*<sse>_maskcmp<mode>3_comm): Ditto.
11371         (<sse>_maskcmp<mode>3): Ditto.
11372         (<sse>_andnot<mode>3): Extend for AVX512.
11373         (<code><mode>3, anylogic): Replace VF with VF_128_256.
11374         (<code><mode>3, fpint_logic): New.
11375         (*<code><mode>3): Extend for AVX512.
11376         (avx512flogicsuff): New.
11377         (avx512f_<logic><mode>): Ditto.
11378         (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
11379         VF_128_256.
11380         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
11381         (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
11382         (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
11383         (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
11384         (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
11385         (xop_vpermil2<mode>3): Ditto.
11386         (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
11387         (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
11388         (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
11389         (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
11391 2013-09-25  Tom Tromey  <tromey@redhat.com>
11393         * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
11394         (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
11395         (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
11396         (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
11397         (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
11398         (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
11399         (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
11400         (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
11401         (GRAPHITE_HTAB_H): Remove.
11403 2013-09-25  Tom Tromey  <tromey@redhat.com>
11405         * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
11407 2013-09-25  Tom Tromey  <tromey@redhat.com>
11409         * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
11411 2013-09-25  Tom Tromey  <tromey@redhat.com>
11413         * config/i386/t-i386 (i386.o): Remove.
11414         (i386-c.o): Use COMPILE and POSTCOMPILE.
11416 2013-09-25  Tom Tromey  <tromey@redhat.com>
11418         * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
11420 2013-09-25  Tom Tromey  <tromey@redhat.com>
11422         * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
11423         (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
11424         (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
11425         (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
11426         (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
11427         (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
11428         (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
11429         (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
11430         (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
11431         (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
11432         (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
11433         (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
11434         (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
11435         (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
11436         (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
11437         (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
11438         (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
11439         (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
11440         (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
11441         (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
11442         (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
11443         (tree-ssa-pre.o, tree-ssa-sccvn.o)
11444         (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
11445         (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
11446         (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
11447         (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
11448         (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
11449         (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
11450         (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
11451         (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
11452         (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
11453         (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
11454         (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
11455         (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
11456         (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
11457         (graphite-clast-to-gimple.o, graphite-dependences.o)
11458         (graphite-interchange.o, graphite-poly.o)
11459         (graphite-scop-detection.o, graphite-sese-to-poly.o)
11460         (graphite-optimize-isl.o, tree-vect-loop.o)
11461         (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
11462         (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
11463         (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
11464         (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
11465         (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
11466         (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
11467         (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
11468         (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
11469         (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
11470         (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
11471         (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
11472         (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
11473         (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
11474         (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
11475         (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
11476         (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
11477         (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
11478         (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
11479         (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
11480         (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
11481         (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
11482         (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
11483         (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
11484         (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
11485         (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
11486         (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
11487         (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
11488         (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
11489         (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
11490         (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
11491         (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
11492         (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
11493         (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
11494         (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
11495         (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
11496         (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
11497         (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
11498         (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
11499         (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
11500         (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
11501         (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
11502         (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
11503         (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
11504         (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
11505         (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
11506         (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
11507         (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
11508         (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
11509         (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
11510         (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
11511         (gcov-dump.o): Remove.
11512         (default-c.o): Use COMPILE and POSTCOMPILE.
11513         (CFLAGS-gcc.o): New variable.
11514         ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
11516 2013-09-25  Tom Tromey  <tromey@redhat.com>
11518         * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
11519         (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
11520         (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
11521         (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
11522         (c-family/c-pragma.o, c-family/c-pretty-print.o)
11523         (c-family/c-semantics.o, c-family/c-ada-spec.o)
11524         (c-family/array-notation-common.o, c-family/stub-objc.o)
11525         (c-family/c-ubsan.o): Remove.
11527 2013-09-25  Tom Tromey  <tromey@redhat.com>
11529         * Makefile.in (C_TREE_H): Reference c/c-tree.h.
11531 2013-09-25  Tom Tromey  <tromey@redhat.com>
11533         * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
11534         to add -DENABLE_SHARED_LIBGCC.
11535         (gcc.o): Don't use subshell.
11537 2013-09-25  Tom Tromey  <tromey@redhat.com>
11539         * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
11540         * configure.ac: Don't invoke AM_PROG_CC_C_O.
11541         (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
11542         * configure, config.in: Rebuild.
11544 2013-09-25  Tom Tromey  <tromey@redhat.com>
11546         * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
11547         (COMPILE, POSTCOMPILE): New variables.
11548         (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
11549         (DEPFILES): New variable.
11550         Include ".Po" files.
11551         * configure.ac: Add checks for dependency checking.
11552         * configure, aclocal.m4: Regenerate.
11554 2013-09-25  Tom Tromey  <tromey@redhat.com>
11556         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
11557         ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
11559 2013-09-25  Tom Tromey  <tromey@redhat.com>
11561         * Makefile.in (generated_files): Add options.h,
11562         target-hooks-def.h, insn-opinit.h,
11563         common/common-target-hooks-def.h, pass-instances.def,
11564         c-family/c-target-hooks-def.h.
11566 2013-09-25  Jeff Law  <law@redhat.com>
11568         * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
11569         than foo[foo.length () - 1] to access last member in a vec.
11570         * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
11572 2013-09-25  Richard Biener  <rguenther@suse.de>
11574         PR middle-end/58521
11575         * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
11577 2013-09-25  Jan Hubicka  <jh@suse.cz>
11579         * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
11580         test.
11582 2013-09-25  Marek Polacek  <polacek@redhat.com>
11584         PR sanitizer/58420
11585         * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
11586         when determining the type name.
11588 2013-09-24  Oleg Endo  <olegendo@gcc.gnu.org>
11590         * config/sh/sh.md: Fix formatting.
11592 2013-09-24  Xinliang David Li  <davidxl@google.com>
11594         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
11595         max peel iterations parameter.
11596         * param.def: New parameter.
11597         * doc/invoke.texi: Document New parameter.
11599 2013-09-24  Christophe Lyon  <christophe.lyon@linaro.org>
11601         * gimple-pretty-print.c: Various whitespace tweaks.
11602         * tree-core.h: Likewise.
11603         * tree-pretty-print.c: Likewise.
11604         * tree-ssa-alias.c: Likewise.
11605         * tree-ssa-copy.c: Likewise.
11606         * tree-ssanames.c: Likewise.
11607         * tree-ssanames.h: Likewise.
11608         * tree-vrp.c: Likewise.
11610 2013-09-24  Alan Modra  <amodra@gmail.com>
11612         PR middle-end/57134
11613         PR middle-end/57586
11614         * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
11615         for output operands that disallow regs.  Don't use EXPAND_WRITE on
11616         inout operands.
11618 2013-09-24  Richard Biener  <rguenther@suse.de>
11620         PR middle-end/58513
11621         * tree.c (reference_alias_ptr_type): Move ...
11622         * alias.c (reference_alias_ptr_type): ... here and implement
11623         in terms of the new reference_alias_ptr_type_1.
11624         (ref_all_alias_ptr_type_p): New helper.
11625         (get_deref_alias_set_1): Drop flag_strict_aliasing here,
11626         use ref_all_alias_ptr_type_p.
11627         (get_deref_alias_set): Add flag_strict_aliasing check here.
11628         (reference_alias_ptr_type_1): New function, split out from ...
11629         (get_alias_set): ... here.
11630         (alias_ptr_types_compatible_p): New function.
11631         * alias.h (reference_alias_ptr_type): Declare.
11632         (alias_ptr_types_compatible_p): Likewise.
11633         * tree.h (reference_alias_ptr_type): Remove.
11634         * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
11635         to compare MEM_REF alias types.
11637 2013-09-24  Richard Biener  <rguenther@suse.de>
11639         * tree-vrp.c (vrp_finalize): Check for SSA name presence.
11641 2013-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
11643         * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
11644         reload helper function arrays into a single array reg_addr.
11645         (reload_fpr_gpr): Likewise.
11646         (reload_gpr_vsx): Likewise.
11647         (reload_vsx_gpr): Likewise.
11648         (struct rs6000_reg_addr): Likewise.
11649         (reg_addr): Likewise.
11650         (rs6000_debug_reg_global): Change rs6000_vector_reload,
11651         reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
11652         (rs6000_init_hard_regno_mode_ok): Likewise.
11653         (rs6000_secondary_reload_direct_move): Likewise.
11654         (rs6000_secondary_reload): Likewise.
11656         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
11657         constraints: wu, ww, and wy.  Repurpose wv constraint added during
11658         power8 changes.  Put wg constraint in alphabetical order.
11660         * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
11661         for future work to add ISA 2.07 VSX single precision support.
11662         (-mvsx-scalar-double): Change default from -1 to 1, update
11663         documentation comment.
11664         (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
11665         (-mupper-regs-df): New debug switch to control whether DF values
11666         can go in the traditional Altivec registers.
11667         (-mupper-regs-sf): New debug switch to control whether SF values
11668         can go in the traditional Altivec registers.
11670         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
11671         and wy constraints.
11672         (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
11673         loop variables.  Rename -mvsx-scalar-memory to -mupper-regs-df.
11674         Add new constraints, wu/ww/wy.  Repurpose wv constraint.
11675         (rs6000_debug_legitimate_address_p): Print if we are running
11676         before, during, or after reload.
11677         (rs6000_secondary_reload): Add a comment.
11678         (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
11680         * config/rs6000/constraints.md (wa constraint): Sort w<x>
11681         constraints.  Update documentation string.
11682         (wd constraint): Likewise.
11683         (wf constraint): Likewise.
11684         (wg constraint): Likewise.
11685         (wn constraint): Likewise.
11686         (ws constraint): Likewise.
11687         (wt constraint): Likewise.
11688         (wx constraint): Likewise.
11689         (wz constraint): Likewise.
11690         (wu constraint): New constraint for ISA 2.07 SFmode scalar
11691         instructions.
11692         (ww constraint): Likewise.
11693         (wy constraint): Likewise.
11694         (wv constraint): Repurpose ISA 2.07 constraint that we did not use
11695         in the previous submissions.
11696         * doc/md.texi (PowerPC and IBM RS6000): Likewise.
11698 2013-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
11700         * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
11701         (REG_BR_PROB): Say that the probability is stored in an int_list.
11702         * reg-notes.def: Update commentary to mention INT_LIST.
11703         * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
11704         (INT_LIST): New rtx.
11705         * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
11706         * rtlanal.c (int_reg_note_p): New function.
11707         (alloc_reg_note): Assert that the note does not have an int argument.
11708         (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
11709         * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
11710         * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
11711         rather than an INSN_LIST.  Handle INT_LIST.
11712         * ifcvt.c (cond_exec_process_insns): Take the probability as an int
11713         rather than an rtx.  Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
11714         (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
11715         Manipulate them as ints rather than rtxes.
11716         * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
11717         * regmove.c (copy_src_to_dest): Likewise.
11718         * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
11720         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
11721         into the cases that need it.
11722         * config/arm/arm.c (arm_unwind_emit): Likewise.
11724         * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
11725         * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
11726         * loop-doloop.c (add_test, doloop_modify): Likewise.
11727         * loop-unswitch.c (compare_and_jump_seq): Likewise.
11728         * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
11729         * predict.c (combine_predictions_for_insn): Likewise.
11730         * print-rtl.c (print_rtx): Handle INT_LIST.
11731         * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
11732         * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
11733         * config/arm/arm.c (emit_unlikely_jump): Likewise.
11734         * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
11735         (ix86_split_fp_branch, predict_jump): Likewise.
11736         * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
11737         * config/sh/sh.c (expand_cbranchsi4): Likewise.
11738         * config/spu/spu.c (ea_load_store_inline): Likewise.
11740         * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
11741         value of a REG_BR_PROB note.
11742         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
11743         (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
11744         * emit-rtl.c (try_split): Likewise.
11745         * predict.c (br_prob_note_reliable_p): Likewise.
11746         (invert_br_probabilities, combine_predictions_for_insn): Likewise.
11747         * reorg.c (mostly_true_jump): Likewise.
11748         * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
11749         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
11750         * config/i386/i386.c (ix86_print_operand): Likewise.
11751         * config/ia64/ia64.c (ia64_print_operand): Likewise.
11752         * config/mmix/mmix.c (mmix_print_operand): Likewise.
11753         * config/rs6000/rs6000.c (output_cbranch): Likewise.
11754         * config/s390/s390.c (s390_expand_tbegin): Likewise.
11755         * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
11756         * config/sparc/sparc.c (output_cbranch): Likewise.
11757         * config/spu/spu.c (get_branch_target): Likewise.
11758         * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
11759         * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
11761 2013-09-23  Jan Hubicka  <jh@suse.cz>
11763         * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
11764         for ipa-devirt.
11765         * ipa-utils.h (possible_polymorphic_call_target_p): New function.
11766         * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
11767         of external calls
11768         * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
11769         (gimple_fold_call): Dump inconsistent devirtualizations; add
11770         sanity check for type based devirtualizations.
11771         * ipa-prop.c: Include ipa-utils.h
11772         (ipa_intraprocedural_devirtualization): Add sanity check.
11773         (try_make_edge_direct_virtual_call): Likewise.
11775 2013-09-23  Eric Botcazou  <ebotcazou@adacore.com>
11777         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
11778         assignment statements.
11780 2013-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
11782         * gimple-pretty-print.c (dump_ssaname_info): New function.
11783         (dump_gimple_phi): Call it.
11784         (pp_gimple_stmt_1): Likewise.
11785         * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
11786         (range_info_def): Declare.
11787         * tree-pretty-print.c (pp_double_int): New function.
11788         (dump_generic_node): Call it.
11789         * tree-pretty-print.h (pp_double_int): Declare.
11790         * tree-ssa-alias.c (dump_alias_info): Check pointer type.
11791         * tree-ssanames.h (range_info_def): New structure.
11792         (value_range_type): Move definition here.
11793         (set_range_info, value_range_type, duplicate_ssa_name_range_info):
11794         Declare.
11795         * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
11796         initialization.
11797         (set_range_info): New function.
11798         (get_range_info): Likewise.
11799         (duplicate_ssa_name_range_info): Likewise.
11800         (duplicate_ssa_name_fn): Check pointer type and call
11801         duplicate_ssa_name_range_info.
11802         * tree-ssa-copy.c (fini_copy_prop): Likewise.
11803         * tree-vrp.c (value_range_type): Remove definition, now in
11804         tree-ssanames.h.
11805         (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
11806         * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
11807         (SSA_NAME_RANGE_INFO): New macro.
11809 2013-09-23  Richard Biener  <rguenther@suse.de>
11811         PR tree-optimization/58464
11812         * tree-ssa-pre.c (phi_trans_lookup): Remove.
11813         (phi_trans_add): Change to add conditionally on being not present.
11814         (phi_translate_1): Remove recursion detection here.
11815         (phi_translate): Pre-seed the cache with NULL to catch
11816         recursion here in a more generic way.
11817         (bitmap_find_leader): Adjust comment.
11818         (get_representative_for): Dump value-numbers.
11819         (create_expression_by_pieces): Likewise.
11820         (insert_into_preds_of_block): Likewise.
11822 2013-09-23  Christian Bruel  <christian.bruel@st.com>
11824         PR target/58475
11825         * config/sh/sh.md (movsf_ie): Allow fpul_operand.
11826         * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
11828 2013-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
11830         Revert r202780:
11831         2013-09-20  Renlin Li  <renlin.li@arm.com>
11833         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
11834         plus_constant.
11835         (aarch64_expand_epilogue): Likewise.
11836         (aarch64_legitimize_reload_address): Likewise.
11838 2013-09-22  Eric Botcazou  <ebotcazou@adacore.com>
11840         * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
11841         NULL_TREE before pushing them onto the vector.  Likewise for labels.
11843 2013-09-21  Eric Botcazou  <ebotcazou@adacore.com>
11845         * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
11846         comparison operators when -fno-trapping-math is in effect.
11847         * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
11848         comparison operators in TFmode and assert that unsupported operators
11849         cannot reach here.
11850         (ia64_print_operand): Likewise.
11852 2013-09-21  Jan Hubicka  <jh@suse.cz>
11854         * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
11855         (sse_typeless_stores): Enable for core
11856         (sse_load0_by_pxor): Likewise.
11857         (four_jump_limit): Disable for core.
11858         (pad_returns): Likewise.
11859         (avoid_vector_decode): Likewise.
11860         (fuse_cmp_and_branch): Enable for cores.
11861         * i386.c (x86_accumulate_outgoing_args): Disable for cores.
11863 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
11865         PR middle-end/56791
11866         * config/pa/pa.c (pa_option_override): Disable auto increment and
11867         decrement instructions until reload is completed.
11869         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
11870         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
11871         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
11873 2013-09-20  DJ Delorie  <dj@redhat.com>
11874             Nick Clifton  <nickc@redhat.com>
11876         * config/rl78/rl78.c: Various whitespace and comment tweaks.
11877         (need_to_save): Save bank 0 on interrupts.
11878         (characterize_address): Strip far address wrappers.
11879         (rl78_as_legitimate_address): Likewise.
11880         (transcode_memory_rtx): Likewise.
11881         (rl78_peep_movhi_p): Disable this peephole after devirt.
11882         (rl78_propogate_register_origins): Forget all origins when a
11883         CLOBBER is seen.
11884         * config/rl78/rl78-virt.md: Various whitespace tweaks.
11885         * config/rl78/rl78-real.md: Various whitespace tweaks.  Additional
11886         peephole2's.
11887         * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
11888         * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
11889         * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
11890         relocating.
11891         * config/rl78/constraints.md: Various whitespace and paren tweaks.
11893 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
11895         * config/pa/pa.md: In "scc" insn patterns, change output template to
11896         handle const0_rtx in reg_or_0_operand operands.
11898 2013-09-20  Martin Husemann  <martin@NetBSD.org>
11900         PR target/56875
11901         * config/vax/vax.c (vax_output_int_move): Use D format specifier.
11902         * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
11904 2013-09-20  Richard Biener  <rguenther@suse.de>
11906         PR middle-end/58484
11907         * tree-scalar-evolution.c (struct scev_info_str): Shrink by
11908         remembering SSA name version and block index.
11909         (new_scev_info_str): Adjust.
11910         (hash_scev_info): Likewise.  Also hash the block index.
11911         (eq_scev_info): Adjust.
11912         (find_var_scev_info): Likewise.
11913         (struct instantiate_cache_entry): Remove.
11914         (struct instantiate_cache_type): Use a htab to map name, block
11915         to chrec.
11916         (instantiate_cache_type::~instantiate_cache_type): Adjust.
11917         (get_instantiated_value_entry): Likewise.
11918         (hash_idx_scev_info, eq_idx_scev_info): New functions.
11919         (instantiate_scev_name): Adjust.
11921 2013-09-20  Jeff Law  <law@redhat.com>
11923         * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
11925 2013-09-20  Yufeng Zhang  <yufeng.zhang@arm.com>
11927         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
11928         Call aarch64_simd_expand_args to update op[argc].
11930 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
11932         * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
11933         plugin argument.
11935 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
11937         * gengtype.c (file_rules): Added rule for *.cc files.
11938         (get_output_file_with_visibility): Give fatal message when no
11939         rules found.
11941 2013-09-20  Renlin Li  <renlin.li@arm.com>
11943         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
11944         (aarch64_expand_epilogue): Likewise.
11945         (aarch64_legitimize_reload_address): Likewise.
11947 2013-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11949         PR middle-end/57748
11950         * expr.c (expand_assignment): Remove misalignp code path.
11952 2013-09-20  Marek Polacek  <polacek@redhat.com>
11954         PR sanitizer/58413
11955         * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
11956         TYPE_PRECISION.  Add asserts.
11958 2013-09-20  Richard Biener  <rguenther@suse.de>
11960         PR tree-optimization/58453
11961         * tree-loop-distribution.c (distribute_loop): Apply the cost
11962         model for -ftree-loop-distribute-patterns, too.
11964 2013-09-20  Richard Biener  <rguenther@suse.de>
11966         PR middle-end/58473
11967         * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
11968         make type comparison less strict.
11970 2013-09-20  Alan Modra  <amodra@gmail.com>
11972         * configure: Regenerate.
11973         * aclocal.m4: Regenerate.
11975 2013-09-20  Marek Polacek  <polacek@redhat.com>
11977         PR other/58467
11978         * doc/extend.texi: Document that attribute used is meant to be used
11979         on variables with static storage duration.
11981 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
11983         PR tree-optimization/58472
11984         * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
11985         simd_lane_access set inv_p = false.
11986         * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
11987         the simduid magic VAR_DECL.
11989 2013-09-19  Jan Hubicka  <jh@suse.cz>
11991         * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
11993 2013-09-17  Jeff Law  <law@redhat.com>
11995         * tree-ssa-dom.c (record_temporary_equivalences): New function
11996         split out of dom_opt_dom_walker::after_dom_children.
11997         (dom_opt_dom_walker::thread_across_edge): Move common code
11998         in here from dom_opt_dom_walker::after_dom_children.
11999         (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
12001 2013-09-19  Jan Hubicka  <jh@suse.cz>
12003         * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
12004         (TARGET_GENERIC): Use PROCESOR_GENERIC
12005         (enum processor_type): Unify generic32 and 64.
12006         * i386.md (cpu): Likewise.
12007         * x86-tune.def (use_leave): Enable for generic32.
12008         (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
12009         * athlon.md: Change generic64 to generic in all occurences.
12010         * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
12011         (ix86_target_macros_internal): Likewise.
12012         * driver-i386.c (host_detect_local_cpu): Likewise.
12013         * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
12014         to ..
12015         (generic_memcpy, generic_memset, generic_cost): This one.
12016         (generic32_memcpy, generic32_memset, generic32_cost): Remove.
12017         (m_GENERIC32, m_GENERIC64): Remove.
12018         (m_GENERIC): Turn into one flag.
12019         (processor_target): Unify generic tunnings.
12020         (ix86_option_override_internal): Replace generic32/64 by generic.
12021         (ix86_issue_rate): Likewise.
12022         (ix86_adjust_cost): Likewise.
12024 2013-09-19  Jan Hubicka  <jh@suse.cz>
12026         * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
12027         of speculative flag.
12029 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
12031         * omp-low.c (expand_omp_sections): Always pass len - 1 to
12032         GOMP_sections_start, even if !exit_reachable.
12034 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
12036         * lra-constraints.c (need_for_all_save_p): Use macro
12037         HARD_REGNO_CALL_PART_CLOBBERED.
12038         * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
12039         set up pseudo conflict hard regs.
12041 2013-09-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
12043         PR target/58452
12044         * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
12045         operands.
12047 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
12049         PR rtl-optimization/58438
12050         * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
12051         * lra-constraints.c (undo_optional_reloads): Keep optional reloads
12052         from previous subpasses.
12054 2013-09-18  Richard Earnshaw  <rearnsha@arm.com>
12056         * arm.c (arm_get_frame_offsets): Validate architecture supports
12057         LDRD/STRD before accepting the tuning preference.
12058         (arm_expand_prologue): Likewise.
12059         (arm_expand_epilogue): Likewise.
12061 2013-09-18  Richard Biener  <rguenther@suse.de>
12063         PR tree-optimization/58417
12064         * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
12065         have chrecs with symbols defined in the loop as operands.
12066         (chrec_fold_multiply): Likewise.
12067         * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
12068         parameters before folding binary operations.
12069         (struct instantiate_cache_entry_hasher): Remove.
12070         (struct instantiate_cache_type): Use a pointer-map.
12071         (instantiate_cache_type::instantiate_cache_type): New function.
12072         (instantiate_cache_type::get): Likewise.
12073         (instantiate_cache_type::set): Likewise.
12074         (instantiate_cache_type::~instantiate_cache_type): Adjust.
12075         (get_instantiated_value_entry): Likewise.
12076         (global_cache): New global.
12077         (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
12078         instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
12079         instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
12080         (instantiate_scev_name): Adjust.
12081         (instantiate_scev): Construct global instead of local cache.
12082         (resolve_mixers): Likewise.
12084 2013-09-18  Daniel Morris  <danielm@ecoscentric.com>
12085             Paolo Carlini  <paolo.carlini@oracle.com>
12087         PR c++/58458
12088         * doc/implement-cxx.texi: Fix references to the C++ standards.
12090 2013-09-18  Jakub Jelinek  <jakub@redhat.com>
12092         * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
12093         * tree-vect-data-refs.c (vect_analyze_data_refs): For
12094         simd_lane_access drs, update also DR_ALIGNED_TO.
12096 2013-09-18  Marek Polacek  <polacek@redhat.com>
12098         PR sanitizer/58411
12099         * doc/extend.texi: Document no_sanitize_undefined attribute.
12100         * builtins.c (fold_builtin_0): Don't sanitize function if it has the
12101         no_sanitize_undefined attribute.
12103 2013-09-18  Nick Clifton  <nickc@redhat.com>
12105         * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
12106         (ASM_DECLARE_FUNCTION_NAME): Define.
12108 2013-09-17  Trevor Saunders  <tsaunders@mozilla.com>
12110         * compare-elim.c (find_comparison_dom_walker): New class
12111         (find_comparisons_in_bb): Rename to
12112         find_comparison_dom_walker::before_dom_children
12113         (find_comparisons): Adjust
12114         * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
12115         adjust.
12116         (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
12117         * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
12118         (init_walk_dominator_tree): Remove declaration.
12119         (fini_walk_dominator_tree): Remove declaration.
12120         * fwprop.c (single_def_use_dom_walker): New class
12121         (single_def_use_enter_block): Convert to
12122         single_def_use_dom_walker::before_dom_children.
12123         (single_def_use_leave_block): Convert to
12124         single_def_use_dom_walker::after_dom_children.
12125         (build_single_def_use_links): Adjust.
12126         * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
12127         class.
12128         (find_candidates_in_block): Convert to
12129         find_candidates_dom_walker::before_dom_children.
12130         (execute_strength_reduction): Adjust.
12131         * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
12132         (sese_dom_walker): New class.
12133         (sese_dom_walker::sese_dom_walker): New constructor.
12134         (sese_dom_walker::~sese_dom_walker): New destructor.
12135         (build_sese_conditions_before): Convert to
12136         sese_dom_walker::before_dom_children.
12137         (build_sese_conditions_after): Convert to
12138         sese_dom_walker::after_dom_children.
12139         (build_poly_scop): Adjust
12140         * tree-into-ssa.c (rewrite_dom_walker): New class
12141         (rewrite_enter_block): Convert to
12142         rewrite_dom_walker::before_dom_children.
12143         (rewrite_leave_block): Convert to
12144         rewrite_dom_walker::after_dom_children.
12145         (rewrite_update_dom_walker): New class.
12146         (rewrite_update_enter_block): Convert to
12147         rewrite_update_dom_walker::before_dom_children.
12148         (rewrite_update_leave_block): Convert to
12149         rewrite_update_dom_walker::after_dom_children.
12150         (rewrite_blocks, rewrite_into_ssa): Adjust.
12151         (mark_def_dom_walker): New class.
12152         (mark_def_dom_walker::mark_def_dom_walker): New constructor.
12153         (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
12154         (mark_def_sites_blocks): Convert to
12155         mark_def_dom_walker::before_dom_children.
12156         (mark_def_site_blocks): Remove.
12157         * tree-ssa-dom.c (dom_opt_dom_walker): New class.
12158         (tree_ssa_dominator_optimize): Adjust.
12159         (dom_thread_across_edge): Convert to method
12160         dom_opt_dom_walker::thread_across_edge.
12161         (dom_opt_enter_block): Convert to member function
12162         dom_opt_dom_walker::before_dom_children.
12163         (dom_opt_leave_block): Convert to member function
12164         dom_opt_dom_walker::after_dom_children.
12165         * tree-ssa-dse.c (dse_dom_walker): New class.
12166         (dse_enter_block): Convert to member function
12167         dse_dom_walker::before_dom_children.
12168         (tree_ssa_dse): Adjust.
12169         * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
12170         (determine_invariantness_stmt): Convert to method
12171         invariantness_dom_walker::before_dom_children.
12172         (determine_invariantness): Remove
12173         (move_computations_dom_walker): New class.
12174         (move_computations_stmt): Convert to method
12175         move_computations_dom_walker::before_dom_children.
12176         (move_computations, tree_ssa_lim): Adjust.
12177         * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
12178         (nt_init_block): Convert to method
12179         notrappping_dom_walker::before_dom_children.
12180         (nt_fini_block): Convert to method
12181         method nontrapping_dom_walker::after_dom_children.
12182         (get_non_trapping): Adjust.
12183         * tree-ssa-pre.c (eliminate_dom_walker): New class.
12184         (eliminate_bb): Convert to method
12185         eliminate_dom_walker::before_dom_children.
12186         (eliminate_leave_block): Convert to method
12187         eliminate_dom_walker::after_dom_children.
12188         (eliminate): Adjust.
12189         * tree-ssa-strlen.c (strlen_dom_walker): New class.
12190         (strlen_enter_block): Convert to method
12191         strlen_dom_walker::before_dom_children.
12192         (strlen_leave_block): Convert to method
12193         method strlen_dom_walker::after_dom_children.
12194         (tree_ssa_strlen): Adjust.
12195         * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
12196         (tree_ssa_uncprop): Adjust.
12197         (uncprop_leave_block): Convert to method
12198         uncprop_dom_walker::after_dom_children.
12199         (uncprop_leave_block): Convert to method
12200         uncprop_dom_walker::before_dom_children.
12202 2013-09-18  Bin Cheng  <bin.cheng@arm.com>
12204         * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
12205         branch in same basic block.  Check both src and dest of the move insn.
12207 2013-09-17  Nick Clifton  <nickc@redhat.com>
12209         * config/rl78/rl78-real.md (bf): New pattern.
12210         (bt): New pattern.
12211         * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
12212         (rl78_print_operand): Do not put a # before a %B.
12213         * config/rl78/rl78.opt: Tweak doc strings.
12215 2013-09-17  DJ Delorie  <dj@redhat.com>
12217         * config/rl78/constraints.md (Wcv): Allow up to $r31.
12218         * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
12219         (rl78_option_override): Likewise, if -mallregs.
12220         (is_virtual_register): Likewise.
12221         * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
12222         (REGNO_OK_FOR_BASE_P): Likewise.
12223         * config/rl78/rl78.opt (-mallregs): New.
12225 2013-09-17  Nick Clifton  <nickc@redhat.com>
12227         * config/rl78/rl78.c (need_to_save): Change return type to bool.
12228         For interrupt functions: save all call clobbered registers if the
12229         interrupt handler is not a leaf function.
12230         (rl78_expand_prologue): Always recompute the frame information.
12231         For interrupt functions: only select bank 0 if one of the bank 0
12232         registers is going to be psuhed.
12234 2013-09-17  DJ Delorie  <dj@redhat.com>
12236         * config/rl78/constraints.md: For each W* constraint, rename to C*
12237         and create a W* constraint that checks for an optional ES: prefix
12238         pattern also.
12239         * config/rl78/rl78.md (UNS_ES_ADDR): New.
12240         (es_addr): New.  Used to wrap far addresses.
12241         * config/rl78/rl78-protos.h (rl78_es_addr): New.
12242         (rl78_es_base): New.
12243         * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
12244         wrapped far addresses.
12245         (rl78_print_operand_1): Unwrap far addresses before processing.
12246         (rl78_lo16): Wrap far addresses in unspecs.
12247         (rl78_es_addr): New.
12248         (rl78_es_base): New.
12249         (insn_ok_now): Check for not-yet-wrapped far addresses.
12250         (transcode_memory_rtx): Properly re-wrap far addresses.
12252 2013-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12254         * config/sparc/t-rtems: Add leon3 multilibs.
12256 2013-09-17  Cong Hou  <congh@google.com>
12258         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
12259         when checking the dot production pattern. The type of rhs operand
12260         of multiply is now checked correctly.
12262 2013-09-17  Jeff Law  <law@redhat.com>
12264         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
12265         edge implied equivalences into successor phis.
12266         * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
12267         here from tree-ssa-threadedge.c.
12268         (mark_threaded_blocks): When threading through a joiner, if both
12269         successors of the joiner's clone reach the same block, verify the
12270         PHI arguments are equal.  If not, cancel the jump threading request.
12271         * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
12272         tree-ssa-threadupdate.c
12273         (thread_across_edge): Don't check PHI argument equality when
12274         threading through joiner block here.
12276 2013-09-17  Andrew MacLeod <amacleod@redhat.com>
12278         * tree-flow.h (ssa_undefined_value_p): Remove prototype.
12279         * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
12280         (warn_uninit, warn_uninitialized_vars,
12281         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
12282         Move to tree-ssa-uninit.c.
12283         * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
12284         (has_undefined_value_p): New.  Pass dependant parts of
12285         ssa_undefined_value_p.
12286         (uninit_undefined_value_p): Use has_undefined_value_p.
12287         (warn_uninit, warn_uninitialized_vars,
12288         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
12289         Move from tree-ssa.c.
12290         * tree-ssa.h: Adjust prototypes.
12292 2013-09-17  Jan Hubicka  <jh@suse.cz>
12294         PR middle-end/58332
12295         * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
12296         * ipa-inline.c (can_inline_edge_p): Do not downgrade
12297         FUNCTION_NOT_OPTIMIZED.
12298         * ipa-inline-analysis.c (compute_inline_parameters): Function
12299         not optimized is not inlinable unless it is alwaysinline.
12300         (inline_analyze_function): Force calls in not optimized
12301         function not inlinable.
12303 2013-09-17  Jan Hubicka  <jh@suse.cz>
12305         PR middle-end/58329
12306         * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
12307         to return NULL.
12308         * ipa.c (function_and_variable_visibility): Likewise.
12309         * ipa-profile.c (ipa_profile): Likewise.
12311 2013-09-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12313         PR ipa/58398
12314         * cgraph.c (cgraph_function_body_availability): Check for ifunc
12315         attribute, and don't inline the resolver in this case.
12317 2013-09-17  Teresa Johnson  <tejohnson@google.com>
12319         * coverage.c (get_coverage_counts): Add missing newline.
12321 2013-09-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12323         PR tree-optimization/58088
12324         * fold-const.c (mask_with_trailing_zeros): New function.
12325         (fold_binary_loc): Make sure we don't recurse infinitely
12326         when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
12327         Use mask_with_trailing_zeros where appropriate.
12329 2013-09-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
12331         * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
12332         of 'prev' var to get better distance estimation.
12334 2013-09-17  Eric Botcazou  <ebotcazou@adacore.com>
12336         * tree-inline.h (struct copy_body_data): Add transform_parameter.
12337         * tree-inline.c (is_parameter_of): New predicate.
12338         (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
12339         a parameter has been remapped.
12340         (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
12341         (optimize_inline_calls): Initialize transform_parameter.
12342         (copy_gimple_seq_and_replace_locals): Likewise.
12343         (tree_function_versioning): Likewise.
12344         (maybe_inline_call_in_expr): Likewise.
12346 2013-09-17  Nick Clifton  <nickc@redhat.com>
12348         * config/msp430/msp430-protos.h: Add prototypes for new functions.
12349         * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
12350         interrupt handlers.
12351         (is_attr_func): New function.
12352         (msp430_is_interrupt_func): New function.
12353         (is_naked_func): New function.
12354         (is_reentrant_func): New function.
12355         (is_critical_func): New function.
12356         (msp430_start_function): Add annotations for function attributes.
12357         (msp430_attr): New function.
12358         (msp430_attribute_table): New.
12359         (msp430_function_section): New function.
12360         (TARGET_ASM_FUNCTION_SECTION): Define.
12361         (msp430_builtin): New enum.
12362         (msp430_init_builtins): New function.
12363         (msp430_builtin_devl): New function.
12364         (msp430_expand_builtin): New function.
12365         (TARGET_INIT_BUILTINS): Define.
12366         (TARGET_EXPAND_BUILTINS): Define.
12367         (TARGET_BUILTIN_DECL): Define.
12368         (msp430_expand_prologue): Add support for naked, interrupt,
12369         critical and reentrant functions.
12370         (msp430_expand_epilogue): Likewise.
12371         (msp430_print_operand): Handle 'O' character.
12372         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
12373         NO_TRAMPOLINES.
12374         * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
12375         UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
12376         (pushm): Use a 'n' rather than an 'i' constraint.
12377         (msp_return): Add generation of the interrupt return instruction.
12378         (disable_interrupts): New pattern.
12379         (enable_interrupts): New pattern.
12380         (push_intr_state): New pattern.
12381         (pop_intr_state): New pattern.
12382         (bic_SR): New pattern.
12383         (bis_SR): New pattern.
12384         * doc/extend.texi: Document MSP430 function attributes and builtin
12385         functions.
12387 2013-09-17  Richard Biener  <rguenther@suse.de>
12389         PR tree-optimization/58432
12390         * tree-loop-distribution.c (tree_loop_distribution): Also
12391         scan PHIs for outside loop uses and seed a partition from them.
12393 2013-09-17  Bin Cheng  <bin.cheng@arm.com>
12395         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
12396         (restructure_reference): Call backtrace_base_for_ref.
12398 2013-09-17  Alan Modra  <amodra@gmail.com>
12400         PR target/57589
12401         * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
12402         patch.
12404 2013-09-16  DJ Delorie  <dj@redhat.com>
12406         * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
12407         vregs location for RL78/G10.
12408         (rl78_expand_prologue): Avoid SEL on G10.
12409         (rl78_expand_epilogue): Likewise.
12410         (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
12411         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
12412         __RL78_G10__ when appropriate.
12413         (ASM_SPEC): Pass -mg10 along to the assembler.
12414         * config/rl78/rl78.md (sel_rb): Disable for G10.
12415         * config/rl78/rl78.opt: Add -mg10 option.
12416         * config/rl78/t-rl78: Add -mg10 multilib.
12418 2013-09-16  Xinliang David Li  <davidxl@google.com>
12420         * tree-if-conv.c (main_tree_if_conversion): Check new flag.
12421         * omp-low.c (omp_max_vf): Ditto.
12422         (expand_omp_simd): Ditto.
12423         * tree-vectorizer.c (vectorize_loops): Ditto.
12424         (gate_vect_slp): Ditto.
12425         (gate_increase_alignment): Ditto.
12426         * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
12427         * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
12428         (gate_tree_vectorize): Name change.
12429         (tree_vectorize): Ditto.
12430         (pass_vectorize::gate): Call new function.
12431         (pass_vectorize::execute): Ditto.
12432         * opts.c: O3 default setting change.
12433         (finish_options): Check new flag.
12434         * doc/invoke.texi: Document new flags.
12435         * common.opt: New flags.
12437 2013-09-16  Andreas Schwab  <schwab@linux-m68k.org>
12439         * doc/tm.texi.in (Cond Exec Macros): Remove node.
12440         (Condition Code): Don't reference it.
12441         * doc/tm.texi: Regenerate.
12443 2013-09-16  Vladimir Makarov  <vmakarov@redhat.com>
12445         PR middle-end/58418
12446         * lra-constraints.c (undo_optional_reloads): Consider all optional
12447         reload even if it did not get a hard reg.
12449 2013-09-16  Teresa Johnson  <tejohnson@google.com>
12451         * dumpfile.c (dump_loc): Remove newline emission.
12452         * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
12453         emission to dump_printf_loc calls where missing.
12454         (vect_mark_for_runtime_alias_test): Ditto.
12455         (vect_analyze_data_ref_dependence): Ditto.
12456         (vect_analyze_data_ref_dependences): Ditto.
12457         (vect_slp_analyze_data_ref_dependence): Ditto.
12458         (vect_slp_analyze_data_ref_dependences): Ditto.
12459         (vect_compute_data_ref_alignment): Ditto.
12460         (vect_update_misalignment_for_peel): Ditto.
12461         (vect_verify_datarefs_alignment): Ditto.
12462         (vector_alignment_reachable_p): Ditto.
12463         (vect_get_data_access_cost): Ditto.
12464         (vect_enhance_data_refs_alignment): Ditto.
12465         (vect_find_same_alignment_drs): Ditto.
12466         (vect_analyze_data_refs_alignment): Ditto.
12467         (vect_analyze_group_access): Ditto.
12468         (vect_analyze_data_ref_access): Ditto.
12469         (vect_analyze_data_ref_accesses): Ditto.
12470         (vect_prune_runtime_alias_test_list): Ditto.
12471         (vect_analyze_data_refs): Ditto.
12472         (vect_create_addr_base_for_vector_ref): Ditto.
12473         (vect_create_data_ref_ptr): Ditto.
12474         (vect_grouped_store_supported): Ditto.
12475         (vect_grouped_load_supported): Ditto.
12476         * value-prof.c (check_counter): Ditto.
12477         (check_ic_target): Ditto.
12478         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
12479         (vect_recog_widen_mult_pattern): Ditto.
12480         (vect_recog_widen_sum_pattern): Ditto.
12481         (vect_recog_over_widening_pattern): Ditto.
12482         (vect_recog_widen_shift_pattern): Ditto.
12483         (vect_recog_rotate_pattern): Ditto.
12484         (vect_recog_vector_vector_shift_pattern): Ditto.
12485         (vect_recog_divmod_pattern): Ditto.
12486         (vect_recog_mixed_size_cond_pattern): Ditto.
12487         (vect_recog_bool_pattern): Ditto.
12488         (vect_pattern_recog_1): Ditto.
12489         (vect_pattern_recog): Ditto.
12490         * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
12491         (vect_is_simple_iv_evolution): Ditto.
12492         (vect_analyze_scalar_cycles_1): Ditto.
12493         (vect_get_loop_niters): Ditto.
12494         (vect_analyze_loop_1): Ditto.
12495         (vect_analyze_loop_form): Ditto.
12496         (vect_analyze_loop_operations): Ditto.
12497         (vect_analyze_loop_2): Ditto.
12498         (vect_analyze_loop): Ditto.
12499         (report_vect_op): Ditto.
12500         (vect_is_slp_reduction): Ditto.
12501         (vect_is_simple_reduction_1): Ditto.
12502         (vect_get_known_peeling_cost): Ditto.
12503         (vect_estimate_min_profitable_iters): Ditto.
12504         (vect_model_reduction_cost): Ditto.
12505         (vect_model_induction_cost): Ditto.
12506         (get_initial_def_for_induction): Ditto.
12507         (vect_create_epilog_for_reduction): Ditto.
12508         (vectorizable_reduction): Ditto.
12509         (vectorizable_induction): Ditto.
12510         (vectorizable_live_operation): Ditto.
12511         (vect_loop_kill_debug_uses): Ditto.
12512         (vect_transform_loop): Ditto.
12513         * tree-vect-stmts.c (vect_mark_relevant): Ditto.
12514         (vect_stmt_relevant_p): Ditto.
12515         (process_use): Ditto.
12516         (vect_mark_stmts_to_be_vectorized): Ditto.
12517         (vect_model_simple_cost): Ditto.
12518         (vect_model_promotion_demotion_cost): Ditto.
12519         (vect_model_store_cost): Ditto.
12520         (vect_get_store_cost): Ditto.
12521         (vect_model_load_cost): Ditto.
12522         (vect_get_load_cost): Ditto.
12523         (vect_init_vector_1): Ditto.
12524         (vect_get_vec_def_for_operand): Ditto.
12525         (vect_finish_stmt_generation): Ditto.
12526         (vectorizable_call): Ditto.
12527         (vectorizable_conversion): Ditto.
12528         (vectorizable_assignment): Ditto.
12529         (vectorizable_shift): Ditto.
12530         (vectorizable_operation): Ditto.
12531         (vectorizable_store): Ditto.
12532         (vectorizable_load): Ditto.
12533         (vectorizable_condition): Ditto.
12534         (vect_analyze_stmt): Ditto.
12535         (vect_transform_stmt): Ditto.
12536         (vect_is_simple_use): Ditto.
12537         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
12538         (vect_can_advance_ivs_p): Ditto.
12539         (vect_update_ivs_after_vectorizer): Ditto.
12540         (vect_do_peeling_for_loop_bound): Ditto.
12541         (vect_gen_niters_for_prolog_loop): Ditto.
12542         (vect_update_inits_of_drs): Ditto.
12543         (vect_create_cond_for_alias_checks): Ditto.
12544         * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
12545         (vect_build_slp_tree_1): Ditto.
12546         (vect_supported_load_permutation_p): Ditto.
12547         (vect_analyze_slp_instance): Ditto.
12548         (vect_analyze_slp): Ditto.
12549         (vect_make_slp_decision): Ditto.
12550         (vect_detect_hybrid_slp): Ditto.
12551         (vect_bb_vectorization_profitable_p): Ditto.
12552         (vect_slp_analyze_bb_1): Ditto.
12553         (vect_update_slp_costs_according_to_vf): Ditto.
12554         (vect_get_mask_element): Ditto.
12555         (vect_transform_slp_perm_load): Ditto.
12556         (vect_schedule_slp_instance): Ditto.
12557         (vect_schedule_slp): Ditto.
12558         (vect_slp_transform_bb): Ditto.
12559         * profile.c (read_profile_edge_counts): Ditto.
12560         (compute_branch_probabilities): Ditto.
12561         * coverage.c (get_coverage_counts): Ditto.
12563 2013-09-16  Diego Novillo  <dnovillo@google.com>
12565         * tree-core.h: Add missing comment lines from refactoring of tree.h.
12567 2013-09-16  Jan Hubicka  <jh@suse.cz>
12569         * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
12570         abstract functions; for static functions check the presence of body.
12572 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
12574         * config/aarch64/aarch64-simd-builtins.def (fma): New.
12575         * config/aarch64/aarch64-simd.md
12576         (aarch64_mla_elt<mode>): New.
12577         (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
12578         (aarch64_mls_elt<mode>): Likewise.
12579         (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
12580         (aarch64_fma4_elt<mode>): Likewise.
12581         (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
12582         (aarch64_fma4_elt_to_128v2df): Likewise.
12583         (aarch64_fma4_elt_to_64df): Likewise.
12584         (fnma<mode>4): Likewise.
12585         (aarch64_fnma4_elt<mode>): Likewise.
12586         (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
12587         (aarch64_fnma4_elt_to_128v2df): Likewise.
12588         (aarch64_fnma4_elt_to_64df): Likewise.
12589         * config/aarch64/iterators.md (VDQSF): New.
12590         * config/aarch64/arm_neon.h
12591         (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
12592         (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
12594 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
12596         * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
12597         (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
12598         (aarch64_mul3_elt_to_128df): Likewise.
12599         (aarch64_mul3_elt_to_64v2df): Likewise.
12600         * config/aarch64/iterators.md (VEL): Also handle DFmode.
12601         (VMUL): New.
12602         (VMUL_CHANGE_NLANES) Likewise.
12603         (h_con): Likewise.
12604         (f): Likewise.
12605         * config/aarch64/arm_neon.h
12606         (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
12608 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
12610         * config/aarch64/arm_neon.h
12611         (vcvtx_high_f32_f64): Fix parameters.
12613 2013-09-16  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12614             Uros Bizjak  <ubizjak@gmail.com>
12616         * config/alpha.c: Include tree-ssanames.h.
12618 2013-09-16  Richard Biener  <rguenther@suse.de>
12620         * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
12621         (dot_rdg_1): Handle control_dd.
12622         (create_edge_for_control_dependence): New function.
12623         (create_rdg_edges): Add control dependences if asked for.
12624         (build_rdg): Likewise.
12625         (generate_loops_for_partition): If there are not necessary
12626         control stmts remove all their dependencies.
12627         (collect_condition_stmts, rdg_flag_loop_exits): Remove.
12628         (distribute_loop): Pass on control dependences.
12629         (tree_loop_distribution): Compute control dependences and remove
12630         restriction on number of loop nodes.
12632 2013-09-16  Jakub Jelinek  <jakub@redhat.com>
12634         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
12635         for internal calls.
12637 2013-09-16  Richard Sandiford  <rdsandiford@googlemail.com>
12639         * cse.c (try_const_anchors): Punt on CC modes.
12641 2013-09-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12643         * config/vax/constraints.md (T): Add missing CONSTANT_P check.
12645 2013-09-14  John David Anglin  <danglin@gcc.gnu.org>
12647         PR target/58382
12648         * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
12649         calls to word_mode.
12651 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
12653         PR target/48094
12654         * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
12655         seen.
12656         (darwin_objc1_section): Likewise.
12657         (darwin_file_end): Emit Image Info section when required.
12659 2013-09-14  Jan Hubicka  <jh@suse.cz>
12661         * tree-into-ssa.c (gate_into_ssa): New.
12662         (pass_data_build_ssa): Use it.
12663         * cgraph.h (expand_thunk): Update prototype.
12664         * cgraphunit.c (analyze_function): Expand thunks early.
12665         (expand_thunk): Fix DECL_CONTEXT of reust_decl;
12666         build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
12667         set lowered flag; do not add new function.
12668         (assemble_thunks_and_aliases): Update.
12669         * tree-ssa.c (gate_init_datastructures): New gate.
12670         (pass_data_init_datastructures): Use it.
12672 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
12674         PR target/58269
12675         * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
12676         xmm register set described in the psABI.
12678 2013-09-13  Evgeny Gavrin <e.gavrin@samsung.com>
12680         * dwarf2out.c (should_emit_struct_debug): Add check
12681         for type_decl variable is not NULL.
12683 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
12685         * config.gcc: Use new winnt-c.c target hooks
12686         * config/t-winnt: New file
12687         * config/winnt-c.c: New file
12688         * doc/tm.texi.in: Document new hook
12689         * doc/tm.texi: Regenerated
12691 2013-09-13  Jan Hubicka  <jh@suse.cz>
12693         PR middle-end/58094
12694         * ipa-inline.c (check_callers): New function.
12695         (check_caller_edge): Remove.
12696         (want_inline_function_to_all_callers_p): Also permit alises that are
12697         called dirrectly.
12698         (inline_to_all_callers): Terminate the walk when devirtualization
12699         introduce new calls.
12701 2013-09-13  Jan Hubicka  <jh@suse.cz>
12703         * ipa-inline-analysis.c (struct growth_data): Add node.
12704         (do_estimate_growth_1): Fix detection of recursion.
12706 2013-09-13  Jakub Jelinek  <jakub@redhat.com>
12708         PR tree-optimization/58392
12709         * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
12710         to avoid shadowing of outer loop variable.  If
12711         saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
12712         replace_by_duplicate_decl simduid of loops that have it set and
12713         set dest_cfun->has_simduid_loops and/or
12714         dest_cfun->has_force_vect_loops.
12715         * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
12716         instead of maybe_lookup_decl.
12717         * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
12718         Use id->blocks_to_copy instead of blocks_to_copy.  Adjust recursive
12719         call.  Copy over force_vect and copy and remap simduid.  Set
12720         cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
12721         (copy_cfg_body): Remove blocks_to_copy argument.  Use
12722         id->blocks_to_copy instead of blocks_to_copy.  Adjust copy_loops
12723         caller.  Don't set cfun->has_simduid_loops and/or
12724         cfun->has_force_vect_loops here.
12725         (copy_body): Remove blocks_to_copy argument.  Adjust copy_cfg_body
12726         caller.
12727         (expand_call_inline, tree_function_versioning): Adjust copy_body
12728         callers.
12730 2013-09-13  Martin Jambor  <mjambor@suse.cz>
12732         PR bootstrap/58388
12733         * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
12734         the assert if the edge was a speculative one.
12736 2013-09-13  Richard Biener  <rguenther@suse.de>
12738         * tree-data-ref.h (known_dependences_p): Move here ...
12739         * tree-loop-distribution.c (known_dependences_p): ... from here.
12740         (dump_rdg_component, debug_rdg_component): Remove.
12741         (dump_rdg): Adjust.
12742         (generate_loops_for_partition): Use gimple_uid instead of
12743         relying on matching stmt visit order.
12744         (rdg_build_partitions): Take starting stmt vector.
12745         (ldist_gen): Merge into ...
12746         (distribute_loop): ... this function.  Do not compute starting
12747         vertices vector.
12748         * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
12750 2013-09-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12752         * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
12753         Set type attribute correctly. Set predicable_short_it attribute.
12754         (cmpsi_shiftsi): Remove %? from output template.
12756 2013-09-13  Richard Biener  <rguenther@suse.de>
12758         * tree-loop-distribution.c (struct rdg_component,
12759         rdg_defs_used_in_other_loops_p, free_rdg_components,
12760         rdg_build_components): Remove.
12761         (stmts_from_loop): Do not record virtual PHIs.
12762         (generate_loops_for_partition): Skip virtual PHIs.
12763         (build_rdg_partition_for_component): Rename to ...
12764         (build_rdg_partition_for_vertex): ... this and adjust.
12765         (rdg_build_partitions): Take a vector of starting vertices
12766         instead of components.  Remove unnecessary leftover handling.
12767         (ldist_gen): Do not build components or record other stores.
12768         (distribute_loop): Do not distribute loops containing stmts
12769         with side-effects.
12771 2013-09-13  Christian Bruel  <christian.bruel@st.com>
12773         PR target/58314
12774         * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
12776 2013-09-13  Kai Tietz  <ktietz@redhat.com>
12778         * config.gcc: Separate cases for mingw and cygwin targets,
12779         and add 64-bit cygwin target case.
12781         * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
12782         dll-export inline-functions.
12783         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
12785 2013-09-13  Jeff Law  <law@redhat.com>
12787         PR middle-end/58387
12788         Revert:
12789         2013-09-06  Jeff Law  <law@redhat.com>
12791         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
12792         edge implied equivalences into successor phis.
12794 2013-09-12  DJ Delorie  <dj@redhat.com>
12796         * config/rl78/rl78-virt.md: Change from | to \; for asm line
12797         separators.
12799 2013-09-12  Brooks Moses  <bmoses@google.com>
12801         PR driver/42955
12802         * Makefile.in: Do not install driver binaries in $(target)/bin.
12804 2013-09-12  DJ Delorie  <dj@redhat.com>
12806         * config/rl78/rl78.opt (mrelax): New.
12807         * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
12808         * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
12810         * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
12811         between SP and FP.
12812         (rl78_expand_epilogue): Likewise.
12814 2013-09-12  Vladimir Makarov  <vmakarov@redhat.com>
12816         PR middle-end/58335
12817         * lra-eliminations.c (remove_reg_equal_offset_note): New.
12818         (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
12819         pointer elimination with using remove_reg_equal_offset_note.
12821 2013-09-12  DJ Delorie  <dj@redhat.com>
12823         * config/msp430/: New port.
12824         * config.gcc (msp430): Added.
12825         * doc/invoke.texi: Document MSP430 options.
12826         * doc/install.texi: Document msp430-elf
12827         * doc/md.texi: Document msp430-elf
12828         * doc/contrib.texi: Document msp430-elf
12830         * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
12831         PSImode.
12833 2013-09-12  Martin Jambor  <mjambor@suse.cz>
12835         PR ipa/58389
12836         * ipa-prop.c (remove_described_reference): Give up if the edge in the
12837         reference descriptor is NULL.
12838         (ipa_edge_removal_hook): If owning a reference descriptor, set its
12839         edge to NULL.
12841 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
12843         * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
12844         (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
12845         num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
12846         * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
12847         make_temp_ssa_name): move to tree-ssanames.h
12848         * tree-ssa-alias.h: Move prototype.
12849         * tree-ssa.h: Include tree-ssanames.h.
12850         * tree-ssanames.c (FREE_SSANAMES): Move to here.
12851         * tree-ssanames.h: New.  Move items from tree-flow*.h
12852         * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
12854 2013-09-12  Richard Biener  <rguenther@suse.de>
12856         PR tree-optimization/58404
12857         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
12858         propagate non-invariant addresses into dereferences wrapped
12859         in component references.
12861 2013-09-12  Richard Biener  <rguenther@suse.de>
12863         PR tree-optimization/58402
12864         * passes.def: Move pass_late_warn_uninitialized later.
12866 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
12868         * tree-ssa.h: New.  Move content from tree-flow.h and
12869         tree-flow-inline.h.
12870         * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
12871         Move prototypes belonging to tree-ssa.c.
12872         * tree-flow-inline.h (redirect_edge_var_map_def,
12873         redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
12874         tree-ssa.h.
12875         * gimple.h: Adjust prototypes.
12876         * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
12877         to...
12878         * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
12879         * tree.h: Move prototype to tree-ssa.h.
12880         * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
12881         * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
12882         * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
12883         cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
12884         cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
12885         ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
12886         gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
12887         gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
12888         graphite-blocking.c, graphite-clast-to-gimple.c,
12889         graphite-dependences.c, graphite-interchange.c,
12890         graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
12891         graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
12892         ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
12893         ipa-reference.c, ipa-split.c, ipa-utils.c,
12894         loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
12895         lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
12896         passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
12897         tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
12898         tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
12899         tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
12900         tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
12901         tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
12902         tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
12903         tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
12904         tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
12905         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
12906         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
12907         tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
12908         value-prof.c, var-tracking.c,
12909         varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
12911 2013-09-12  Richard Biener  <rguenther@suse.de>
12913         PR tree-optimization/58396
12914         * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
12915         (build_rdg): Take a loop-nest parameter, fix memleaks.
12916         (distribute_loop): Compute loop-nest here and pass it to build_rdg.
12918 2013-09-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
12920         * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
12921         for SLM.
12923 2013-09-12  Cameron McInally  <cameron.mcinally@nyu.edu>
12925         * doc/extend.texi: Fix errors in x86 FMA builtin naming.
12926         The FMA instruction names should have a 'v' prefix.
12928 2013-09-12  Richard Biener  <rguenther@suse.de>
12930         * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
12931         (dot_rdg): Use popen instead of system in optional code.
12932         (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
12933         (already_processed_vertex_p): Adjust.
12934         (has_anti_or_output_dependence, predecessor_has_mem_write,
12935         mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
12936         rdg_flag_uses): Remove.
12937         (rdg_flag_vertex): Simplify.
12938         (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
12939         remove recursion.
12940         (build_rdg_partition_for_component): Process the first vertex
12941         of a component only.
12942         (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
12944 2013-09-12  Alan Modra  <amodra@gmail.com>
12946         * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
12948 2013-09-11  DJ Delorie  <dj@redhat.com>
12949             Nick Clifton  <nickc@redhat.com>
12951         * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
12952         (rl78_stack_based_mem): New.
12953         * config/rl78/constraints.md (Iv08): New.
12954         (Iv16): New.
12955         (Iv24): New.
12956         (Is09): New.
12957         (Is17): New.
12958         (Is25): New.
12959         (ISsi): New.
12960         (IShi): New.
12961         (ISqi): New.
12962         * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
12963         (movhi): Likewise.
12964         (movsi): Change from expand to insn-and-split.
12965         (ashrsi3): Clobber AX.
12966         (lshrsi3): New.
12967         (ashlsi3): New.
12968         (cbranchsi4): New.
12969         * config/rl78/rl78.md (CC_REG): Fix.
12970         (addsi3): Allow memory and immediate operands.
12971         (addsi3_internal): Split into...
12972         (addsi3_internal_virt): ...new, and ...
12973         (addsi3_internal_real): ...new.
12974         (subsi): New.
12975         (subsi3_internal_virt): New.
12976         (subsi3_internal_real): New.
12977         (mulsi3): Add memory operand.
12978         (mulsi3_rl78): Likewise.
12979         (mulsi3_g13): Likewise.
12980         * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
12981         (cbranchqi4_real): Add more constraint options.
12982         (cbranchhi4_real): Expand pattern.
12983         (cbranchhi4_real_signed): New.
12984         (cbranchhi4_real_inverted): New.
12985         (cbranchsi4_real_lt): New.
12986         (cbranchsi4_real_ge): New.
12987         (cbranchsi4_real_signed): New.
12988         (cbranchsi4_real): New.
12989         (peephole2): New.
12990         * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
12991         constant shifts.
12992         (lshrsi3_virt): Likewise.
12993         (ashlsi3_virt): Likewise.
12994         (cbranchqi4_virt_signed): New.
12995         (cbranchhi4_virt_signed): New.
12996         (cbranchsi4_virt): New.
12997         * config/rl78/rl78.c: Whitespace fixes throughout.
12998         (move_elim_pass): New.
12999         (pass_data_rl78_move_elim): New.
13000         (pass_rl78_move_elim): New.
13001         (make_pass_rl78_move_elim): New.
13002         (rl78_devirt_info): Run devirt earlier.
13003         (rl78_move_elim_info): New.
13004         (rl78_asm_file_start): Register it.
13005         (rl78_split_movsi): New.
13006         (rl78_as_legitimate_address): Allow virtual base registers when
13007         appropriate.
13008         (rl78_addr_space_convert): Remove spurious debug stuff.
13009         (rl78_print_operand_1): Add z,s,S,r,E modifiers.
13010         (rl78_print_operand): More cases for not printing '#'.
13011         (rl78_expand_compare): Remove most of the logic.
13012         (content_memory): New.
13013         (clear_content_memory): New.
13014         (get_content_index): New.
13015         (get_content_name): New.
13016         (display_content_memory): New.
13017         (update_content): New.
13018         (record_content): New.
13019         (already_contains): New.
13020         (insn_ok_now): Re-recog insns with virtual registers.
13021         (add_postponed_content_update): New.
13022         (process_postponed_content_update): New.
13023         (gen_and_emit_move): New.
13024         (transcode_memory_rtx): Record new location content.
13025         Use gen_and_emit_move.
13026         (force_into_acc): New.
13027         (move_to_acc): Use gen_and_emit_move.
13028         (move_from_acc): Likewise.
13029         (move_acc_to_reg): Likewise.
13030         (move_to_x): Likewise.
13031         (move_to_hl): Likewise.
13032         (move_to_de): Likewise.
13033         (rl78_alloc_physical_registers_op1): Record location content.
13034         (has_constraint): New.
13035         (rl78_alloc_physical_registers_op2): Record location content.
13036         Optimize use of HL.
13037         (rl78_alloc_physical_registers_ro1): Likewise.
13038         (rl78_alloc_physical_registers_cmp): Likewise.
13039         (rl78_alloc_physical_registers_umul): Likewise.
13040         (rl78_alloc_address_registers_macax): New.
13041         (rl78_alloc_physical_registers): Initialize and set location
13042         content memory as needed.
13043         (rl78_reorg): Make sure split2 is called.
13044         (rl78_rtx_costs): New.
13046 2013-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
13048         * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
13049         for (not (neg ...)) and (neg (not ...)) cases.
13051 2013-09-11  Richard Biener  <rguenther@suse.de>
13053         PR middle-end/58377
13054         * passes.def: Split critical edges before late uninit warning passes.
13055         * tree-cfg.c (pass_split_crit_edges): Implement clone method.
13057 2013-09-11  Jakub Jelinek  <jakub@redhat.com>
13059         PR tree-optimization/58385
13060         * fold-const.c (build_range_check): If both low and high are NULL,
13061         use omit_one_operand_loc to preserve exp side-effects.
13063 2013-09-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13065         * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
13067 2013-09-11  Richard Biener  <rguenther@suse.de>
13069         * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
13070         dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
13071         dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
13072         create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
13073         stmts_from_loop, known_dependences_p, build_empty_rdg,
13074         build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
13075         * tree-loop-distribution.c: ... here.
13076         * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
13077         RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
13078         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
13079         struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
13080         * tree-loop-distribution.c: ... here.
13081         * tree-loop-distribution.c: Include gimple-pretty-print.h.
13082         (struct partition_s): Add loops member.
13083         (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
13084         rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
13085         build_rdg_partition_for_component, rdg_build_partitions): Adjust.
13087 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13088             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13089             Sergey Lega  <sergey.s.lega@intel.com>
13090             Anna Tikhonova  <anna.tikhonova@intel.com>
13091             Ilya Tocar  <ilya.tocar@intel.com>
13092             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13093             Ilya Verbin  <ilya.verbin@intel.com>
13094             Kirill Yukhin  <kirill.yukhin@intel.com>
13095             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13097         * config/i386/constraints.md (k): New.
13098         (Yk): Ditto.
13099         * config/i386/i386.c (const regclass_map): Add new mask registers.
13100         (dbx_register_map): Ditto.
13101         (dbx64_register_map): Ditto.
13102         (svr4_dbx_register_map): Ditto.
13103         (ix86_conditional_register_usage): Squash mask registers if AVX512F is
13104         disabled.
13105         (ix86_preferred_reload_class): Disable constants for mask registers.
13106         (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
13107         (ix86_hard_regno_mode_ok): Support new mask registers.
13108         (x86_order_regs_for_local_alloc): Ditto.
13109         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
13110         (FIXED_REGISTERS): Add new mask registers.
13111         (CALL_USED_REGISTERS): Ditto.
13112         (REG_ALLOC_ORDER): Ditto.
13113         (VALID_MASK_REG_MODE): New.
13114         (FIRST_MASK_REG): Ditto.
13115         (LAST_MASK_REG): Ditto.
13116         (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
13117         (MAYBE_MASK_CLASS_P): New.
13118         (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
13119         (REG_CLASS_CONTENTS): Ditto.
13120         (MASK_REGNO_P): New.
13121         (ANY_MASK_REG_P): Ditto.
13122         (HI_REGISTER_NAMES): Add new mask registers.
13123         * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
13124         MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
13125         mask registers.
13126         (attribute "type"): Add mskmov, msklog.
13127         (attribute "length_immediate"): Support them.
13128         (attribute "memory"): Ditto.
13129         (attribute "prefix_0f"): Ditto.
13130         (*movhi_internal): Support new mask registers.
13131         (*movqi_internal): Ditto.
13132         (define_split): Split out clobber pattern is a logic
13133         insn on mask registers.
13134         (*k<logic><mode>): New.
13135         (*andhi_1): Extend to support mask regs.
13136         (*andqi_1): Extend to support mask regs.
13137         (kandn<mode>): New.
13138         (define_split): Split and-not to and and not if operands
13139         are not mask regs.
13140         (*<code><mode>_1): Separate HI mode to new pattern...
13141         (*<code>hi_1): This.
13142         (*<code>qi_1): Extend to support mask regs.
13143         (kxnor<mode>): New.
13144         (kortestzhi): Ditto.
13145         (kortestchi): Ditto.
13146         (kunpckhi): Ditto.
13147         (*one_cmpl<mode>2_1): Remove HImode and handle it...
13148         (*one_cmplhi2_1): ...Here, now with mask registers support.
13149         (*one_cmplqi2_1): Support new mask registers.
13150         (HI/QImode arithmetics splitter): Don't split if mask registers
13151         are used.
13152         (HI/QImode not splitter): Ditto.
13153         * config/i386/predicated.md (mask_reg_operand): New.
13154         (general_reg_operand): Ditto.
13156 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13158         * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
13159         * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
13161 2013-09-10  Jeff Law  <law@redhat.com>
13163         PR tree-optimization/58380
13164         * tree-ssa-threadupdate.c (thread_block): Recognize another case
13165         of threading through a buried loop header.
13167         * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
13168         return value for single successor case.
13170 2013-09-10  Jan Hubicka  <jh@suse.cz>
13172         * ipa-devirt.c (ipa_devirt): Enable with LTO.
13174 2013-09-10  Richard Earnshaw  <rearnsha@arm.com>
13176         PR target/58361
13177         * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
13178         support conditional execution.
13179         (combine_vcvt_f64_<FCVTI32typename>): Likewise.
13181 2013-09-10  Vladimir Makarov  <vmakarov@redhat.com>
13183         * lra.c (lra): Clear lra_optional_reload_pseudos before every
13184         constraint pass.
13185         * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
13186         Check destination too to check move insn.
13187         (undo_optional_reloads): Add check that the original peudo did not
13188         changed its allocation and the optional reload was inherited on last
13189         inheritance pass.  Break loop after deciding to keep optional reload.
13190         (lra_undo_inheritance): Add check that inherited pseudo still in
13191         memory.
13193 2013-09-10  James Greenhalgh  <james.greenhalgh@arm.com>
13195         * config/aarch64/aarch64.md (generic_sched): New.
13196         * config/aarch64/aarch64-generic.md (load): Make conditional
13197         on generic_sched attribute.
13198         (nonload): Likewise.
13200 2013-09-10  Jan Hubicka  <jh@suse.cz>
13202         * lto-cgraph.c: Include ipa-utils.h.
13203         (compute_ltrans_boundary): Also add possible targets into the boundary.
13205 2013-09-10  Jan Hubicka  <jh@suse.cz>
13207         * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
13208         VAR_DECL of vtable rather than full expression.
13210 2013-09-10  Jan Hubicka  <jh@suse.cz>
13211             Paolo Carlini  <paolo.carlini@oracle.com>
13213         * cgraphunit.c (analyze_functions): Save input_location, set it
13214         to UNKNOWN_LOCATION and restore it at the end.
13216 2013-09-10  Martin Jambor  <mjambor@suse.cz>
13218         * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
13219         represented by a thunk.
13221 2013-09-10  Jeff Law  <law@redhat.com>
13223         PR tree-optimization/58343
13224         * tree-ssa-threadupdate.c (thread_block): Identify and disable
13225         jump threading requests through loop headers buried in the middle
13226         of a jump threading path.
13228         * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
13229         in return value/type.
13231 2013-09-10  Jakub Jelinek  <jakub@redhat.com>
13233         PR rtl-optimization/58365
13234         * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
13235         resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
13236         it differs.
13238 2013-09-10  Richard Biener  <rguenther@suse.de>
13240         * tree-data-ref.h (build_rdg): Drop all parameters but loop.
13241         * tree-data-ref.c (create_rdg_vertices): Collect all data
13242         references, signal failure to the caller, use data-ref API.
13243         (build_rdg): Compute data references only once.  Maintain lifetime
13244         of data references and data dependences from within RDG.
13245         (free_rdg): Free dependence relations.
13246         * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
13247         inventing extra dependences.
13248         (distribute_loop): Update for RDG API changes.
13250 2013-09-10  Kai Tietz  <ktietz@redhat.com>
13252         * doc/invoke.texi (fms-extensions): Document changed
13253         behavior for ms-abi targets.
13254         * config/i386/i386.c (ix86_option_override_internal):
13255         Set default value of option -fms-extension for ms-abi targets.
13257 2013-09-10  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
13259         * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
13261 2013-09-10  Alan Modra  <amodra@gmail.com>
13263         PR target/58330
13264         * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
13266 2013-09-10  Alan Modra  <amodra@gmail.com>
13268         * config/rs6000/predicates.md (add_cint_operand): New.
13269         (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
13270         * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
13271         using add_cint_operand.
13272         (largetoc_high_plus_aix): Likewise.
13274 2013-09-09  Jakub Jelinek  <jakub@redhat.com>
13276         PR tree-optimization/58364
13277         * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
13278         BOOLEAN_TYPE, only invert in_p and continue with arg0 if
13279         the current range can't be an unconditional true or false.
13281 2013-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
13283         * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
13285 2013-09-09  Uros Bizjak  <ubizjak@gmail.com>
13287         * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
13289 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
13291         PR c++/43452
13292         * doc/invoke.texi (-Wdelete-incomplete): Document it.
13294 2013-09-09  Ian Bolton  <ian.bolton@arm.com>
13296         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
13297         NO_REGS for immediate that can't be moved directly into FP_REGS.
13299 2013-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13301         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
13302         comparison with negated operand.
13303         * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
13304         RTL form.
13306 2013-09-09  Richard Biener  <rguenther@suse.de>
13308         PR middle-end/58326
13309         * cfgloopmanip.c (fix_bb_placements): When fixing the placement
13310         of a subloop record all its block as affecting loop-closed SSA form.
13312 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
13314         * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
13315         of an rtx/bitpos pair.
13316         (store_fixed_bit_field): Update accordingly.
13318 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
13320         * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
13321         GEN_INT.
13322         * builtins.c (expand_errno_check): Likewise.
13323         * dwarf2cfi.c (init_return_column_size): Likewise.
13324         * except.c (sjlj_mark_call_sites): Likewise.
13325         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
13326         * lra-constraints.c (emit_inc): Likewise.
13327         * ree.c (combine_set_extension): Likewise.
13328         * regmove.c (fixup_match_2): Likewise.
13329         * reload1.c (inc_for_reload): Likewise.
13331 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
13333         * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
13334         (force_to_mode, simplify_shift_const_1, simplify_comparison):
13335         Use gen_int_mode with the mode of the associated simplify_* call.
13336         * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
13337         * expmed.c (expand_shift_1): Likewise.
13338         * function.c (instantiate_virtual_regs_in_insn): Likewise.
13339         * loop-iv.c (iv_number_of_iterations): Likewise.
13340         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
13341         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13343 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
13345         * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
13346         of the associated expand_* call.
13347         (asan_emit_stack_protection): Likewise.
13348         * builtins.c (round_trampoline_addr): Likewise.
13349         * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
13350         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
13351         (emit_store_flag): Likewise.
13352         * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
13353         (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
13354         Likewise.
13355         * function.c (instantiate_virtual_regs_in_insn): Likewise.
13356         * ifcvt.c (noce_try_store_flag_constants): Likewise.
13357         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
13358         * modulo-sched.c (generate_prolog_epilog): Likewise.
13359         * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
13360         (expand_ctz, expand_ffs, expand_unop): Likewise.
13362 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
13364         * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
13365         of the associated gen_rtx_* call.
13366         * caller-save.c (init_caller_save): Likewise.
13367         * combine.c (find_split_point, make_extraction): Likewise.
13368         (make_compound_operation): Likewise.
13369         * dwarf2out.c (mem_loc_descriptor): Likewise.
13370         * explow.c (plus_constant, probe_stack_range): Likewise.
13371         * expmed.c (expand_mult_const): Likewise.
13372         * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
13373         * reload1.c (init_reload): Likewise.
13374         * valtrack.c (cleanup_auto_inc_dec): Likewise.
13375         * var-tracking.c (adjust_mems): Likewise.
13376         * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
13377         rather than gen_rtx_fmt_ee.
13379 2013-09-09  Jan Hubicka  <jh@suse.cz>
13381         PR middle-end/58294
13382         * value-prof.c (gimple_ic): Copy also abnormal edges.
13384 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
13386         * asan.c (asan_shadow_cst): Use gen_int_mode.
13388 2013-09-08  Jan Hubicka  <jh@suse.cz>
13390         * ipa-profile.c: Add toplevel comment.
13391         (ipa_propagate_frequency_1): Be more conservative when profile is read.
13392         (contains_hot_call_p): New function.
13393         (ipa_propagate_frequency): Set frequencies based on counts when
13394         profile is read.
13395         * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
13396         profile; do not tamper with profile after inlining if it is read.
13398 2013-09-08  Jan Hubicka  <jh@suse.cz>
13400         * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
13401         speculative edges.
13403 2013-09-08  Jan Hubicka  <jh@suse.cz>
13405         * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
13406         summary generation.
13408 2013-09-08  Jeff Law  <law@redhat.com>
13410         PR bootstrap/58340
13411         * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
13412         of 'found'.
13414 2013-09-08  Andi Kleen  <ak@linux.intel.com>
13416         * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
13418 2013-09-08  Jan Hubicka  <jh@suse.cz>
13420         * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
13422 2013-09-08  Richard Sandiford  <rdsandiford@googlemail.com>
13424         * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
13425         for non-debug insns.
13426         * lra.c (new_insn_reg): Take the containing insn as a parameter.
13427         Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
13428         (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
13429         accordingly.
13431 2013-09-08  Jan Hubicka  <jh@suse.cz>
13433         * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
13434         targets and devirtualize to BUILT_IN_UNREACHABLE.
13435         * timevar.def (TV_IPA_UNREACHABLE): New timevar.
13436         * ipa.c (walk_polymorphic_call_targets): New function.
13437         (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
13438         functions; use the new timevar.
13439         * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
13440         was removed from the program.
13441         (record_binfo): If BINFO corresponds to an anonymous namespace, we may
13442         not consider it in the walk when its vtable is dead.
13443         (possible_polymorphic_call_targets_1): Pass anonymous flag to
13444         record_binfo.
13445         (devirt_variable_node_removal_hook): New function.
13446         (possible_polymorphic_call_targets): Also register
13447         devirt_variable_node_removal_hook.
13448         (ipa_devirt): Do not do non-speculative devirtualization.
13449         (gate_ipa_devirt): One execute if devirtualizing speculatively.
13451 2013-09-08  Jan Hubicka  <jh@suse.cz>
13453         * cgraph.h (varpool_node_hook, varpool_node_hook_list,
13454         varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
13455         varpool_remove_variable_insertion_hook): Declare.
13456         * varpool.c (varpool_node_hook_list): New structure.
13457         (first_varpool_node_removal_hook,
13458         first_varpool_variable_insertion_hook): New variables.
13459         (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
13460         varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
13461         varpool_remove_variable_insertion_hook,
13462         varpool_call_variable_insertion_hooks): New functions.
13463         (varpool_remove_node): Use it.
13465 2013-09-08  Paolo Carlini  <paolo.carlini@oracle.com>
13467         PR c++/54941
13468         * diagnostic.c (diagnostic_build_prefix): When s.file is
13469         "<built-in>" don't output line and column numbers.
13471 2013-09-06  Jan Hubicka  <jh@suse.cz>
13473         * cgraphunit.c (expand_thunk): Get body before touching arguments.
13474         * lto-streamer-out.c: Stream thunks, too.
13475         * lto-streamer-in.c (input_function): Pop cfun here
13476         (lto_read_body): Instead of here.
13478 2013-09-06  Caroline Tice  <cmtice@google.com>
13480         * doc/install.texi: Add documentation for the --enable-vtable-verify
13481         and the --disable-libvtv configure options.
13483 2013-09-06  Jeff Law  <law@redhat.com>
13485         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
13486         edge implied equivalences into successor phis.
13488 2013-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
13490         * resource.c (mark_referenced_resources): Handle COND_EXEC.
13492 2013-09-06  Claudiu Zissulescu  <claziss@synopsys.com>
13494         * resource.c (mark_target_live_regs): Compute resources taking
13495         into account if a call is predicated or not.
13497 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
13499         * toplev.c (output_stack_usage): Be prepared for suffixes created by
13500         the compiler in the function names.
13502 2013-09-06  Jan Hubicka  <jh@suse.cz>
13504         PR middle-end/58094
13505         * ipa-inline.c (has_caller_p): New function.
13506         (want_inline_function_to_all_callers_p): Use it.
13507         (sum_callers, inline_to_all_callers): Break out from ...
13508         (ipa_inline): ... here.
13510 2013-09-06  Jan Hubicka  <jh@suse.cz>
13512         * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
13513         only when AVX is enabled.
13515 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
13517         * config/aarch64/aarch64.md
13518         (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
13519         is fpsimd_<load/store>2.
13520         (load_pair<mode>): Likewise.
13521         (store_pair<mode>): Likewise.
13523 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
13525         * config/arm/types.md (type): Add "mrs" type.
13526         * config/aarch64/aarch64.md
13527         (aarch64_load_tp_hard): Make type "mrs".
13528         * config/arm/arm.md
13529         (load_tp_hard): Make type "mrs".
13530         * config/arm/cortex-a15.md: Update with new attributes.
13531         * config/arm/cortex-a5.md: Update with new attributes.
13532         * config/arm/cortex-a53.md: Update with new attributes.
13533         * config/arm/cortex-a7.md: Update with new attributes.
13534         * config/arm/cortex-a8.md: Update with new attributes.
13535         * config/arm/cortex-a9.md: Update with new attributes.
13536         * config/arm/cortex-m4.md: Update with new attributes.
13537         * config/arm/cortex-r4.md: Update with new attributes.
13538         * config/arm/fa526.md: Update with new attributes.
13539         * config/arm/fa606te.md: Update with new attributes.
13540         * config/arm/fa626te.md: Update with new attributes.
13541         * config/arm/fa726te.md: Update with new attributes.
13543 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
13545         * config/aarch64/aarch64.md
13546         (*movti_aarch64): Use "multiple" for type where v8type is "move2".
13547         (*movtf_aarch64): Likewise.
13548         * config/arm/arm.md
13549         (thumb1_movdi_insn): Use "multiple" for type where more than one
13550         instruction is used for a move.
13551         (*arm32_movhf): Likewise.
13552         (*thumb_movdf_insn): Likewise.
13554 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
13556         * config/arm/types.md (type): Rename fcpys to fmov.
13557         * config/arm/vfp.md
13558         (*arm_movsi_vfp): Rename type fcpys as fmov.
13559         (*thumb2_movsi_vfp): Likewise
13560         (*movhf_vfp_neon): Likewise
13561         (*movhf_vfp): Likewise
13562         (*movsf_vfp): Likewise
13563         (*thumb2_movsf_vfp): Likewise
13564         (*movsfcc_vfp): Likewise
13565         (*thumb2_movsfcc_vfp): Likewise
13566         * config/aarch64/aarch64-simd.md
13567         (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
13568         * config/aarch64/aarch64.md
13569         (*movsi_aarch64): Replace type mov_reg with fmovs.
13570         (*movdi_aarch64): Likewise
13571         (*movsf_aarch64): Likewise
13572         (*movdf_aarch64): Likewise
13573         * config/arm/arm.c
13574         (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
13575         * config/arm/iwmmxt.md
13576         (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
13577         * config/arm/arm1020e.md: Update with new attributes.
13578         * config/arm/cortex-a15-neon.md: Update with new attributes.
13579         * config/arm/cortex-a5.md: Update with new attributes.
13580         * config/arm/cortex-a53.md: Update with new attributes.
13581         * config/arm/cortex-a7.md: Update with new attributes.
13582         * config/arm/cortex-a8-neon.md: Update with new attributes.
13583         * config/arm/cortex-a9.md: Update with new attributes.
13584         * config/arm/cortex-m4-fpu.md: Update with new attributes.
13585         * config/arm/cortex-r4f.md: Update with new attributes.
13586         * config/arm/marvell-pj4.md: Update with new attributes.
13587         * config/arm/vfp11.md: Update with new attributes.
13589 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
13591         * config/aarch64/aarch64.md
13592         (*madd<mode>): Fix type attribute.
13593         (*maddsi_uxtw): Likewise.
13594         (*msub<mode>): Likewise.
13595         (*msubsi_uxtw): Likewise.
13596         (<su_optab>maddsidi4): Likewise.
13597         (<su_optab>msubsidi4): Likewise.
13599 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
13601         * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
13602         * config/arm/arm.md (core_cycles): Remove fdiv.
13603         * config/arm/vfp.md:
13604         (*sqrtsf2_vfp): Update for attribute changes.
13605         (*sqrtdf2_vfp): Likewise.
13606         * config/aarch64/aarch64.md:
13607         (sqrt<mode>2): Update for attribute changes.
13608         * config/arm/arm1020e.md: Update with new attributes.
13609         * config/arm/cortex-a15-neon.md: Update with new attributes.
13610         * config/arm/cortex-a5.md: Update with new attributes.
13611         * config/arm/cortex-a53.md: Update with new attributes.
13612         * config/arm/cortex-a7.md: Update with new attributes.
13613         * config/arm/cortex-a8-neon.md: Update with new attributes.
13614         * config/arm/cortex-a9.md: Update with new attributes.
13615         * config/arm/cortex-m4-fpu.md: Update with new attributes.
13616         * config/arm/cortex-r4f.md: Update with new attributes.
13617         * config/arm/marvell-pj4.md: Update with new attributes.
13618         * config/arm/vfp11.md: Update with new attributes.
13620 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
13622         * config/arm/types.md
13623         (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
13624         * config/aarch64/aarch64.md
13625         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
13626         new attributes.
13627         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
13628         (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
13629         (float<GPI:mode><GPF:mode>2): Likewise.
13630         * config/arm/vfp.md
13631         (*truncsisf2_vfp): Update with new attributes.
13632         (*truncsidf2_vfp): Likewise.
13633         (fixuns_truncsfsi2): Likewise.
13634         (fixuns_truncdfsi2): Likewise.
13635         (*floatsisf2_vfp): Likewise.
13636         (*floatsidf2_vfp): Likewise.
13637         (floatunssisf2): Likewise.
13638         (floatunssidf2): Likewise.
13639         (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
13640         (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
13641         * config/arm/arm1020e.md: Update with new attributes.
13642         * config/arm/cortex-a15-neon.md: Update with new attributes.
13643         * config/arm/cortex-a5.md: Update with new attributes.
13644         * config/arm/cortex-a53.md: Update with new attributes.
13645         * config/arm/cortex-a7.md: Update with new attributes.
13646         * config/arm/cortex-a8-neon.md: Update with new attributes.
13647         * config/arm/cortex-a9.md: Update with new attributes.
13648         * config/arm/cortex-m4-fpu.md: Update with new attributes.
13649         * config/arm/cortex-r4f.md: Update with new attributes.
13650         * config/arm/marvell-pj4.md: Update with new attributes.
13651         * config/arm/vfp11.md: Update with new attributes.
13653 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
13655         * config/aarch64/arm_neon.h
13656         (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
13657         (vqtbx<1,2,3,4><q>_s8): Likewise.
13659 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
13661         * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
13662         * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
13663         (add<mode>3): Add type attribute.
13664         (add<mode>3): Likewise.
13665         (usadd<mode>3): Likewise.
13666         (ssadd<mode>3): Likewise.
13667         (sub<mode>3): Likewise.
13668         (sub<mode>3): Likewise.
13669         (ussub<mode>3): Likewise.
13670         (sssub<mode>3): Likewise.
13671         (ssmulsa3): Likewise.
13672         (usmulusa3): Likewise.
13673         (arm_usatsihi): Likewise.
13674         * config/arm/vfp.md
13675         (*movdi_vfp): Add types for all instructions.
13676         (*movdi_vfp_cortexa8): Likewise.
13677         (*movhf_vfp_neon): Likewise.
13678         (*movhf_vfp): Likewise.
13679         (*movdf_vfp): Likewise.
13680         (*thumb2_movdf_vfp): Likewise.
13681         (*thumb2_movdfcc_vfp): Likewise.
13682         * config/arm/arm.md: Add type attribute to all insn patterns.
13683         (*thumb1_adddi3): Add type attribute.
13684         (*arm_adddi3): Likewise.
13685         (*adddi_sesidi_di): Likewise.
13686         (*adddi_zesidi_di): Likewise.
13687         (*thumb1_addsi3): Likewise.
13688         (addsi3_compare0): Likewise.
13689         (*addsi3_compare0_scratch): Likewise.
13690         (*compare_negsi_si): Likewise.
13691         (cmpsi2_addneg): Likewise.
13692         (*addsi3_carryin_<optab>): Likewise.
13693         (*addsi3_carryin_alt2_<optab>): Likewise.
13694         (*addsi3_carryin_clobercc_<optab>): Likewise.
13695         (*subsi3_carryin): Likewise.
13696         (*subsi3_carryin_const): Likewise.
13697         (*subsi3_carryin_compare): Likewise.
13698         (*subsi3_carryin_compare_const): Likewise.
13699         (*arm_subdi3): Likewise.
13700         (*thumb_subdi3): Likewise.
13701         (*subdi_di_zesidi): Likewise.
13702         (*subdi_di_sesidi): Likewise.
13703         (*subdi_zesidi_di): Likewise.
13704         (*subdi_sesidi_di): Likewise.
13705         (*subdi_zesidi_ze): Likewise.
13706         (thumb1_subsi3_insn): Likewise.
13707         (*arm_subsi3_insn): Likewise.
13708         (*anddi3_insn): Likewise.
13709         (*anddi_zesidi_di): Likewise.
13710         (*anddi_sesdi_di): Likewise.
13711         (*ne_zeroextracts): Likewise.
13712         (*ne_zeroextracts): Likewise.
13713         (*ite_ne_zeroextr): Likewise.
13714         (*ite_ne_zeroextr): Likewise.
13715         (*anddi_notdi_di): Likewise.
13716         (*anddi_notzesidi): Likewise.
13717         (*anddi_notsesidi): Likewise.
13718         (andsi_notsi_si): Likewise.
13719         (thumb1_bicsi3): Likewise.
13720         (*iordi3_insn): Likewise.
13721         (*iordi_zesidi_di): Likewise.
13722         (*iordi_sesidi_di): Likewise.
13723         (*thumb1_iorsi3_insn): Likewise.
13724         (*xordi3_insn): Likewise.
13725         (*xordi_zesidi_di): Likewise.
13726         (*xordi_sesidi_di): Likewise.
13727         (*arm_xorsi3): Likewise.
13728         (*andsi_iorsi3_no): Likewise.
13729         (*smax_0): Likewise.
13730         (*smax_m1): Likewise.
13731         (*arm_smax_insn): Likewise.
13732         (*smin_0): Likewise.
13733         (*arm_smin_insn): Likewise.
13734         (*arm_umaxsi3): Likewise.
13735         (*arm_uminsi3): Likewise.
13736         (*minmax_arithsi): Likewise.
13737         (*minmax_arithsi_): Likewise.
13738         (*satsi_<SAT:code>): Likewise.
13739         (arm_ashldi3_1bit): Likewise.
13740         (arm_ashrdi3_1bit): Likewise.
13741         (arm_lshrdi3_1bit): Likewise.
13742         (*arm_negdi2): Likewise.
13743         (*thumb1_negdi2): Likewise.
13744         (*arm_negsi2): Likewise.
13745         (*thumb1_negsi2): Likewise.
13746         (*negdi_extendsid): Likewise.
13747         (*negdi_zero_extend): Likewise.
13748         (*arm_abssi2): Likewise.
13749         (*thumb1_abssi2): Likewise.
13750         (*arm_neg_abssi2): Likewise.
13751         (*thumb1_neg_abss): Likewise.
13752         (one_cmpldi2): Likewise.
13753         (extend<mode>di2): Likewise.
13754         (*compareqi_eq0): Likewise.
13755         (*arm_extendhisi2addsi): Likewise.
13756         (*arm_movdi): Likewise.
13757         (*thumb1_movdi_insn): Likewise.
13758         (*arm_movt): Likewise.
13759         (*thumb1_movsi_insn): Likewise.
13760         (pic_add_dot_plus_four): Likewise.
13761         (pic_add_dot_plus_eight): Likewise.
13762         (tls_load_dot_plus_eight): Likewise.
13763         (*thumb1_movhi_insn): Likewise.
13764         (*thumb1_movsf_insn): Likewise.
13765         (*movdf_soft_insn): Likewise.
13766         (*thumb_movdf_insn): Likewise.
13767         (cbranchsi4_insn): Likewise.
13768         (cbranchsi4_scratch): Likewise.
13769         (*negated_cbranchsi4): Likewise.
13770         (*tbit_cbranch): Likewise.
13771         (*tlobits_cbranch): Likewise.
13772         (*tstsi3_cbranch): Likewise.
13773         (*cbranchne_decr1): Likewise.
13774         (*addsi3_cbranch): Likewise.
13775         (*addsi3_cbranch_scratch): Likewise.
13776         (*arm_cmpdi_insn): Likewise.
13777         (*arm_cmpdi_unsig): Likewise.
13778         (*arm_cmpdi_zero): Likewise.
13779         (*thumb_cmpdi_zero): Likewise.
13780         (*deleted_compare): Likewise.
13781         (*mov_scc): Likewise.
13782         (*mov_negscc): Likewise.
13783         (*mov_notscc): Likewise.
13784         (*cstoresi_eq0_thumb1_insn): Likewise.
13785         (cstoresi_nltu_thumb1): Likewise.
13786         (cstoresi_ltu_thu): Likewise.
13787         (thumb1_addsi3_addgeu): Likewise.
13788         (*arm_jump): Likewise.
13789         (*thumb_jump): Likewise.
13790         (*check_arch2): Likewise.
13791         (arm_casesi_internal): Likewise.
13792         (thumb1_casesi_dispatch): Likewise.
13793         (*arm_indirect_jump): Likewise.
13794         (*thumb1_indirect_jump): Likewise.
13795         (nop): Likewise.
13796         (*and_scc): Likewise.
13797         (*ior_scc): Likewise.
13798         (*compare_scc): Likewise.
13799         (*cond_move): Likewise.
13800         (*cond_arith): Likewise.
13801         (*cond_sub): Likewise.
13802         (*cmp_ite0): Likewise.
13803         (*cmp_ite1): Likewise.
13804         (*cmp_and): Likewise.
13805         (*cmp_ior): Likewise.
13806         (*ior_scc_scc): Likewise.
13807         (*ior_scc_scc_cmp): Likewise.
13808         (*and_scc_scc): Likewise.
13809         (*and_scc_scc_cmp): Likewise.
13810         (*and_scc_scc_nod): Likewise.
13811         (*negscc): Likewise.
13812         (movcond_addsi): Likewise.
13813         (movcond): Likewise.
13814         (*ifcompare_plus_move): Likewise.
13815         (*if_plus_move): Likewise.
13816         (*ifcompare_move_plus): Likewise.
13817         (*if_move_plus): Likewise.
13818         (*ifcompare_arith_arith): Likewise.
13819         (*if_arith_arith): Likewise.
13820         (*ifcompare_arith_move): Likewise.
13821         (*if_arith_move): Likewise.
13822         (*ifcompare_move_arith): Likewise.
13823         (*if_move_arith): Likewise.
13824         (*ifcompare_move_not): Likewise.
13825         (*if_move_not): Likewise.
13826         (*ifcompare_not_move): Likewise.
13827         (*if_not_move): Likewise.
13828         (*ifcompare_shift_move): Likewise.
13829         (*if_shift_move): Likewise.
13830         (*ifcompare_move_shift): Likewise.
13831         (*if_move_shift): Likewise.
13832         (*ifcompare_shift_shift): Likewise.
13833         (*ifcompare_not_arith): Likewise.
13834         (*ifcompare_arith_not): Likewise.
13835         (*if_arith_not): Likewise.
13836         (*ifcompare_neg_move): Likewise.
13837         (*if_neg_move): Likewise.
13838         (*ifcompare_move_neg): Likewise.
13839         (*if_move_neg): Likewise.
13840         (prologue_thumb1_interwork): Likewise.
13841         (*cond_move_not): Likewise.
13842         (*sign_extract_onebit): Likewise.
13843         (*not_signextract_onebit): Likewise.
13844         (stack_tie): Likewise.
13845         (align_4): Likewise.
13846         (align_8): Likewise.
13847         (consttable_end): Likewise.
13848         (consttable_1): Likewise.
13849         (consttable_2): Likewise.
13850         (consttable_4): Likewise.
13851         (consttable_8): Likewise.
13852         (consttable_16): Likewise.
13853         (*thumb1_tablejump): Likewise.
13854         (prefetch): Likewise.
13855         (force_register_use): Likewise.
13856         (thumb_eh_return): Likewise.
13857         (load_tp_hard): Likewise.
13858         (load_tp_soft): Likewise.
13859         (tlscall): Likewise.
13860         (*arm_movtas_ze): Likewise.
13861         (*arm_rev): Likewise.
13862         (*arm_revsh): Likewise.
13863         (*arm_rev16): Likewise.
13864         * config/arm/thumb2.md
13865         (*thumb2_smaxsi3): Likewise.
13866         (*thumb2_sminsi3): Likewise.
13867         (*thumb32_umaxsi3): Likewise.
13868         (*thumb2_uminsi3): Likewise.
13869         (*thumb2_negdi2): Likewise.
13870         (*thumb2_abssi2): Likewise.
13871         (*thumb2_neg_abss): Likewise.
13872         (*thumb2_movsi_insn): Likewise.
13873         (tls_load_dot_plus_four): Likewise.
13874         (*thumb2_movhi_insn): Likewise.
13875         (*thumb2_mov_scc): Likewise.
13876         (*thumb2_mov_negs): Likewise.
13877         (*thumb2_mov_negs): Likewise.
13878         (*thumb2_mov_nots): Likewise.
13879         (*thumb2_mov_nots): Likewise.
13880         (*thumb2_movsicc_): Likewise.
13881         (*thumb2_movsfcc_soft_insn): Likewise.
13882         (*thumb2_indirect_jump): Likewise.
13883         (*thumb2_and_scc): Likewise.
13884         (*thumb2_ior_scc): Likewise.
13885         (*thumb2_ior_scc_strict_it): Likewise.
13886         (*thumb2_cond_move): Likewise.
13887         (*thumb2_cond_arith): Likewise.
13888         (*thumb2_cond_ari): Likewise.
13889         (*thumb2_cond_sub): Likewise.
13890         (*thumb2_negscc): Likewise.
13891         (*thumb2_movcond): Likewise.
13892         (thumb2_casesi_internal): Likewise.
13893         (thumb2_casesi_internal_pic): Likewise.
13894         (*thumb2_alusi3_short): Likewise.
13895         (*thumb2_mov<mode>_shortim): Likewise.
13896         (*thumb2_addsi_short): Likewise.
13897         (*thumb2_subsi_short): Likewise.
13898         (thumb2_addsi3_compare0): Likewise.
13899         (*thumb2_cbz): Likewise.
13900         (*thumb2_cbnz): Likewise.
13901         (*thumb2_one_cmplsi2_short): Likewise.
13902         (*thumb2_negsi2_short): Likewise.
13903         (*orsi_notsi_si): Likewise.
13904         * config/arm/arm1020e.md: Update with new attributes.
13905         * config/arm/arm1026ejs.md: Update with new attributes.
13906         * config/arm/arm1136jfs.md: Update with new attributes.
13907         * config/arm/arm926ejs.md: Update with new attributes.
13908         * config/arm/cortex-a15.md: Update with new attributes.
13909         * config/arm/cortex-a5.md: Update with new attributes.
13910         * config/arm/cortex-a53.md: Update with new attributes.
13911         * config/arm/cortex-a7.md: Update with new attributes.
13912         * config/arm/cortex-a8.md: Update with new attributes.
13913         * config/arm/cortex-a9.md: Update with new attributes.
13914         * config/arm/cortex-m4.md: Update with new attributes.
13915         * config/arm/cortex-r4.md: Update with new attributes.
13916         * config/arm/fa526.md: Update with new attributes.
13917         * config/arm/fa606te.md: Update with new attributes.
13918         * config/arm/fa626te.md: Update with new attributes.
13919         * config/arm/fa726te.md: Update with new attributes.
13921 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
13923         * config/aarch64/aarch64-simd.md
13924         (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
13925         <vwx> iterator to ensure correct register choice.
13926         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
13927         (aarch64_sqdmull_n<mode>): Likewise.
13928         (aarch64_sqdmull2_n<mode>_internal): Likewise.
13929         * config/aarch64/arm_neon.h
13930         (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
13931         (vml<as><q>_n_<su>16): Likewise.
13932         (vml<as>l_high_lane<q>_<su>16): Likewise.
13933         (vml<as>l_high_n_<su>16): Likewise.
13934         (vml<as>l_lane<q>_<su>16): Likewise.
13935         (vml<as>l_n_<su>16): Likewise.
13936         (vmul<q>_lane<q>_<su>16): Likewise.
13937         (vmul<q>_n_<su>16): Likewise.
13938         (vmull_lane<q>_<su>16): Likewise.
13939         (vmull_n_<su>16): Likewise.
13940         (vmull_high_lane<q>_<su>16): Likewise.
13941         (vmull_high_n_<su>16): Likewise.
13942         (vqrdmulh<q>_n_s16): Likewise.
13944 2013-09-06  Tejas Belagod  <tejas.belagod@arm.com>
13946         * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
13947         have the correct lane parameter.
13949 2013-09-06  Richard Biener <rguenther@suse.de>
13951         * cfganal.c (control_dependences::~control_dependences):
13952         Properly free all of the vector.
13954 2013-09-06  Kirill Yukhin  <kirill.yukhin@intel.com>
13956         PR target/58269
13957         * config/i386/i386.c (ix86_conditional_register_usage):
13958         Proper initialize extended SSE registers.
13960 2013-09-06  Jan Hubicka  <jh@suse.cz>
13962         PR tree-optimization/58311
13963         * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
13965 2013-09-06  Jan Hubicka  <jh@suse.cz>
13967         * Makefile.in (tree-sra.o): Update dependencies.
13968         * tree-sra.c: Include ipa-utils.h
13969         (scan_function): Use recursive_call_p.
13970         (has_caller_p): New function.
13971         (cgraph_for_node_and_aliases): Count also callers of aliases.
13973 2013-09-06  Jan Hubicka  <jh@suse.cz>
13975         PR middle-end/58094
13976         * cgraph.h (symtab_semantically_equivalent_p): Declare.
13977         * tree-tailcall.c: Include ipa-utils.h.
13978         (find_tail_calls): Use it.
13979         * ipa-pure-const.c (check_call): Likewise.
13980         * ipa-utils.c (recursive_call_p): New function.
13981         * ipa-utils.h (recursive_call_p): Dclare.
13982         * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
13983         (symtab_semantically_equivalent_p): New function.
13984         * Makefile.in (tree-tailcall.o): Update dependencies.
13986 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
13988         * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
13989         non-inlinable part.
13991 2013-09-06  Richard Biener  <rguenther@suse.de>
13993         * lto-streamer.h (lto_global_var_decls): Remove.
13994         * Makefile.in (OBJS): Remove lto-symtab.o.
13995         (lto-symtab.o): Remove.
13996         (GTFILES): Remove lto-symtab.c
13997         * lto-symtab.c: Move to lto/
13999 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14001         * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
14002         (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
14003         (UNSPEC_FPINT_RINT): New constant definitions.
14004         (FPINT, fpint_name, fpint_roundingmode): New integer iterator
14005         definition with 2 attributes.
14006         ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
14007         ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
14008         definitions.
14010 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14012         * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
14013         ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
14014         Set the mnemonic attribute to "bcr_flush".  Set the "z196prop"
14015         attribute to "z196_alone".
14016         * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
14017         "zEC12_simple".
14019 2013-09-06  Richard Biener  <rguenther@suse.de>
14021         * basic-block.h (class control_dependences): New.
14022         * tree-ssa-dce.c (control_dependence_map): Remove.
14023         (cd): New global.
14024         (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
14025         (set_control_dependence_map_bit, clear_control_dependence_bitmap,
14026         find_pdom, find_control_dependence, find_all_control_dependences):
14027         Move to cfganal.c.
14028         (mark_control_dependent_edges_necessary,
14029         find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
14030         tree_dce_done, perform_tree_ssa_dce): Adjust.
14031         * cfganal.c (set_control_dependence_map_bit,
14032         clear_control_dependence_bitmap, find_pdom, find_control_dependence,
14033         find_all_control_dependences): Move from tree-ssa-dce.c and
14034         implement as methods of control_dependences class.
14035         (control_dependences::control_dependences): New.
14036         (control_dependences::~control_dependences): Likewise.
14037         (control_dependences::get_edges_dependent_on): Likewise.
14038         (control_dependences::get_edge): Likewise.
14040 2013-09-04  Jan Hubicka  <jh@suse.cz>
14042         * tree.c (types_same_for_odr): Drop overactive check.
14043         * ipa-devirt.c (hash_type_name): Likewise.
14045 2013-09-04  Jan Hubicka  <jh@suse.cz>
14047         * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
14048         (analyze_functions): ... here.
14050 2013-09-04  Jan Hubicka  <jh@suse.cz>
14052         PR middle-end/58201
14053         * cgraphunit.c (analyze_functions): Clear AUX fields
14054         after processing; initialize assembler name has.
14056 2013-09-05  Jeff Law  <law@redhat.com>
14058         * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
14059         from thread_around_empty_block.  Record threading path into PATH.
14060         Recurse if threading through the initial block is successful.
14061         (thread_across_edge): Corresponding changes to slightly simplify.
14063 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
14065         * config/aarch64/aarch64.md
14066         (type): Remove frecpe, frecps, frecpx.
14067         (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
14068         fix to be a TARGET_SIMD instruction.
14069         (aarch64_frecps): Remove.
14070         * config/aarch64/aarch64-simd.md
14071         (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
14072         (aarch64_frecps<mode>): Handle all float/vector of float modes.
14074 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
14075             Sofiane Naci  <sofiane.naci@arm.com>
14077         * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
14078         into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
14079         Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
14080         "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
14081         "logic_reg", "logics_reg", "rev".  Expand "arlo_shift" into
14082         "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
14083         "logics_shift_imm".  Expand "arlo_shift_reg" into "alu_shift_reg",
14084         "alus_shift_reg", "logic_shift_reg", "logics_shift_reg".  Expand "clz"
14085         into "clz, "rbit".  Rename "shift" to "shift_imm".
14086         * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
14087         changes.  Update for attribute changes all occurrences of arlo_* and
14088         shift* types.
14089         * config/arm/arm-fixed.md: Update for attribute changes
14090         all occurrences of arlo_* types.
14091         * config/arm/thumb2.md: Update for attribute changes all occurrences
14092         of arlo_* types.
14093         * config/arm/arm.c (xscale_sched_adjust_cost):  (rtx insn, rtx
14094         (cortexa7_older_only): Likewise.
14095         (cortexa7_younger):  Likewise.
14096         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
14097         (1020alu_shift_op): Likewise.
14098         (1020alu_shift_reg_op): Likewise.
14099         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
14100         (alu_shift_op): Likewise.
14101         (alu_shift_reg_op): Likewise.
14102         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
14103         (11_alu_shift_op): Likewise.
14104         (11_alu_shift_reg_op): Likewise.
14105         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
14106         (9_alu_shift_reg_op): Likewise.
14107         * config/arm/cortex-a15.md (cortex_a15_alu): Update for
14108         attribute changes.
14109         (cortex_a15_alu_shift): Likewise.
14110         (cortex_a15_alu_shift_reg): Likewise.
14111         * config/arm/cortex-a5.md (cortex_a5_alu): Update for
14112         attribute changes.
14113         (cortex_a5_alu_shift): Likewise.
14114         * config/arm/cortex-a53.md (cortex_a53_alu): Update for
14115         attribute changes.
14116         (cortex_a53_alu_shift): Likewise.
14117         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
14118         attribute changes.
14119         (cortex_a7_alu_reg): Likewise.
14120         (cortex_a7_alu_shift): Likewise.
14121         * config/arm/cortex-a8.md (cortex_a8_alu): Update for
14122         attribute changes.
14123         (cortex_a8_alu_shift): Likewise.
14124         (cortex_a8_alu_shift_reg): Likewise.
14125         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
14126         (cortex_a9_dp_shift): Likewise.
14127         * config/arm/cortex-m4.md (cortex_m4_alu): Update for
14128         attribute changes.
14129         * config/arm/cortex-r4.md
14130         (cortex_r4_alu): Update for attribute changes.
14131         (cortex_r4_mov): Likewise.
14132         (cortex_r4_alu_shift_reg): Likewise.
14133         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
14134         (526_alu_shift_op): Likewise.
14135         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
14136         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
14137         (626te_alu_shift_op): Likewise.
14138         * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
14139         (726te_alu_shift_op): Likewise.
14140         (726te_alu_shift_reg_op): Likewise.
14141         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
14142         (mp626_alu_shift_op): Likewise.
14143         * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
14144         (pj4_alu_conds): Likewise.
14145         (pj4_shift): Likewise.
14146         (pj4_shift_conds): Likewise.
14147         (pj4_alu_shift): Likewise.
14148         (pj4_alu_shift_conds): Likewise.
14149         * config/aarch64/aarch64.md: Update for attribute change
14150         all occurrences of arlo_* and shift* types.
14152 2013-09-05  Mike Stump  <mikestump@comcast.net>
14154         * tree.h: Move documentation for tree_function_decl to tree-core.h
14155         with the declaration.
14157 2013-09-05  Peter Bergner  <bergner@vnet.ibm.com>
14159         PR target/58139
14160         * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
14161         looking for widest mode.
14163 2013-09-05  Eric Botcazou  <ebotcazou@adacore.com>
14165         * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
14167 2013-09-05  Richard Biener  <rguenther@suse.de>
14169         PR tree-optimization/58137
14170         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
14171         Do not create vectors of pointers.
14172         * tree-vect-loop.c (get_initial_def_for_induction): Use proper
14173         types for the components of the vector initializer.
14174         * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
14175         allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
14177 2013-09-05  Martin Jambor  <mjambor@suse.cz>
14179         * ipa-prop.c (remove_described_reference): Accept missing references,
14180         return false if that hppens, otherwise return true.
14181         (cgraph_node_for_jfunc): New function.
14182         (try_decrement_rdesc_refcount): Likewise.
14183         (try_make_edge_direct_simple_call): Use them.
14184         (ipa_edge_removal_hook): Remove references from rdescs.
14185         (ipa_edge_duplication_hook): Clone rdescs and their references
14186         when the new edge has the same caller as the old one.
14187         * cgraph.c (cgraph_resolve_speculation): Remove speculative
14188         reference before removing any edges.
14190 2013-09-05  Richard Earnshaw  <rearnsha@arm.com>
14192         * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
14193         initial store.
14194         * thumb2.md (thumb2_storewb_parisi): New pattern.
14196 2013-09-05  Yufeng Zhang  <yufeng.zhang@arm.com>
14198         * config/aarch64/aarch64-option-extensions.def: Add
14199         AARCH64_OPT_EXTENSION of 'crc'.
14200         * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
14201         (AARCH64_ISA_CRC): Ditto.
14202         * doc/invoke.texi (-march and -mcpu feature modifiers): Add
14203         description of the CRC extension.
14205 2013-09-05  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14207         * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
14208         * config/rs6000/linux.h: Ditto.
14209         * alpha/linux.h: Ditto.
14210         * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
14211         no_c99_libc_has_function.
14212         * config/c6x/uclinux-elf.h: Ditto.
14213         * config/lm32/uclinux-elf.h: Ditto.
14214         * config/m68k/uclinux.h: Ditto.
14215         * config/moxie/uclinux.h: Ditto.
14216         * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
14217         (crisv32-*-linux*, cris-*-linux*): Ditto.
14218         * config/bfin/bfin.c: Include "tm_p.h".
14220 2013-09-05  Richard Biener  <rguenther@suse.de>
14222         * tree-vect-loop.c (vect_analyze_loop_operations): Properly
14223         check for a definition without a basic-block.
14225 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
14226             Sofiane Naci <sofiane.naci@arm.com>
14228         * config/aarch64/aarch64.md
14229         (*movti_aarch64): Rename r_2_f and f_2_r.
14230         (*movsf_aarch64): Likewise.
14231         (*movdf_aarch64): Likewise.
14232         (*movtf_aarch64): Likewise.
14233         (aarch64_movdi_<mode>low): Likewise.
14234         (aarch64_movdi_<mode>high): Likewise.
14235         (aarch64_mov<mode>high_di): Likewise.
14236         (aarch64_mov<mode>low_di): Likewise.
14237         (aarch64_movtilow_tilow): Likewise.
14238         * config/arm/arm.md (attribute "neon_type"): Delete.  Move attribute
14239         values to config/arm/types.md
14240         (attribute "conds"): Update for attribute change.
14241         (anddi3_insn): Likewise.
14242         (iordi3_insn): Likewise.
14243         (xordi3_insn): Likewise.
14244         (one_cmpldi2): Likewise.
14245         * config/arm/types.md (type): Add Neon types.
14246         * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
14247         use "type" attribute.
14248         (movmisalign<mode>_neon_store): Likewise.
14249         (movmisalign<mode>_neon_load): Likewise.
14250         (vec_set<mode>_internal): Likewise.
14251         (vec_setv2di_internal): Likewise.
14252         (vec_extract<mode>): Likewise.
14253         (vec_extractv2di): Likewise.
14254         (add<mode>3_neon): Likewise.
14255         (adddi3_neon): Likewise.
14256         (sub<mode>3_neon): Likewise.
14257         (subdi3_neon): Likewise.
14258         (mul<mode>3_neon): Likewise.
14259         (mul<mode>3add<mode>_neon): Likewise.
14260         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
14261         (fma<VCVTF:mode>4)): Likewise.
14262         (fma<VCVTF:mode>4_intrinsic): Likewise.
14263         (fmsub<VCVTF:mode>4)): Likewise.
14264         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
14265         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
14266         (ior<mode>3): Likewise.
14267         (and<mode>3): Likewise.
14268         (anddi3_neon): Likewise.
14269         (orn<mode>3_neon): Likewise.
14270         (orndi3_neon): Likewise.
14271         (bic<mode>3_neon): Likewise.
14272         (bicdi3_neon): Likewise.
14273         (xor<mode>3): Likewise.
14274         (one_cmpl<mode>2): Likewise.
14275         (abs<mode>2): Likewise.
14276         (neg<mode>2): Likewise.
14277         (umin<mode>3_neon): Likewise.
14278         (umax<mode>3_neon): Likewise.
14279         (smin<mode>3_neon): Likewise.
14280         (smax<mode>3_neon): Likewise.
14281         (vashl<mode>3): Likewise.
14282         (vashr<mode>3_imm): Likewise.
14283         (vlshr<mode>3_imm): Likewise.
14284         (ashl<mode>3_signed): Likewise.
14285         (ashl<mode>3_unsigned): Likewise.
14286         (neon_load_count): Likewise.
14287         (ashldi3_neon_noclobber): Likewise.
14288         (signed_shift_di3_neon): Likewise.
14289         (unsigned_shift_di3_neon): Likewise.
14290         (ashrdi3_neon_imm_noclobber): Likewise.
14291         (lshrdi3_neon_imm_noclobber): Likewise.
14292         (widen_ssum<mode>3): Likewise.
14293         (widen_usum<mode>3): Likewise.
14294         (quad_halves_<code>v4si): Likewise.
14295         (quad_halves_<code>v4sf): Likewise.
14296         (quad_halves_<code>v8hi): Likewise.
14297         (quad_halves_<code>v16qi): Likewise.
14298         (reduc_splus_v2di): Likewise.
14299         (neon_vpadd_internal<mode>): Likewise.
14300         (neon_vpsmin<mode>): Likewise.
14301         (neon_vpsmax<mode>): Likewise.
14302         (neon_vpumin<mode>): Likewise.
14303         (neon_vpumax<mode>): Likewise.
14304         (ss_add<mode>_neon): Likewise.
14305         (us_add<mode>_neon): Likewise.
14306         (ss_sub<mode>_neon): Likewise.
14307         (us_sub<mode>_neon): Likewise.
14308         (neon_vadd<mode>_unspec): Likewise.
14309         (neon_vaddl<mode>): Likewise.
14310         (neon_vaddw<mode>): Likewise.
14311         (neon_vhadd<mode>): Likewise.
14312         (neon_vqadd<mode>): Likewise.
14313         (neon_vaddhn<mode>): Likewise.
14314         (neon_vmul<mode>): Likewise.
14315         (neon_vmla<mode>): Likewise.
14316         (neon_vmlal<mode>): Likewise.
14317         (neon_vmls<mode>): Likewise.
14318         (neon_vmlsl<mode>): Likewise.
14319         (neon_vqdmulh<mode>): Likewise.
14320         (neon_vqdmlal<mode>): Likewise.
14321         (neon_vqdmlsl<mode>): Likewise.
14322         (neon_vmull<mode>): Likewise.
14323         (neon_vqdmull<mode>): Likewise.
14324         (neon_vsub<mode>_unspec): Likewise.
14325         (neon_vsubl<mode>): Likewise.
14326         (neon_vsubw<mode>): Likewise.
14327         (neon_vqsub<mode>): Likewise.
14328         (neon_vhsub<mode>): Likewise.
14329         (neon_vsubhn<mode>): Likewise.
14330         (neon_vceq<mode>): Likewise.
14331         (neon_vcge<mode>): Likewise.
14332         (neon_vcgeu<mode>): Likewise.
14333         (neon_vcgt<mode>): Likewise.
14334         (neon_vcgtu<mode>): Likewise.
14335         (neon_vcle<mode>): Likewise.
14336         (neon_vclt<mode>): Likewise.
14337         (neon_vcage<mode>): Likewise.
14338         (neon_vcagt<mode>): Likewise.
14339         (neon_vtst<mode>): Likewise.
14340         (neon_vabd<mode>): Likewise.
14341         (neon_vabdl<mode>): Likewise.
14342         (neon_vaba<mode>): Likewise.
14343         (neon_vabal<mode>): Likewise.
14344         (neon_vmax<mode>): Likewise.
14345         (neon_vmin<mode>): Likewise.
14346         (neon_vpaddl<mode>): Likewise.
14347         (neon_vpadal<mode>): Likewise.
14348         (neon_vpmax<mode>): Likewise.
14349         (neon_vpmin<mode>): Likewise.
14350         (neon_vrecps<mode>): Likewise.
14351         (neon_vrsqrts<mode>): Likewise.
14352         (neon_vqabs<mode>): Likewise.
14353         (neon_vqneg<mode>): Likewise.
14354         (neon_vcls<mode>): Likewise.
14355         (clz<mode>2): Likewise.
14356         (popcount<mode>2): Likewise.
14357         (neon_vrecpe): Likewise.
14358         (neon_vrsqrte): Likewise.
14359         (neon_vget_lane<mode>_sext_internal): Likewise.
14360         (neon_vget_lane<mode>_zext_internal): Likewise.
14361         (neon_vdup_n<mode>): Likewise.
14362         (neon_vdup_nv2di): Likewise.
14363         (neon_vdpu_lane<mode>_internal): Likewise.
14364         (neon_vswp<mode>): Likewise.
14365         (float<mode><V_cvtto>2): Likewise.
14366         (floatuns<mode><V_cvtto>2): Likewise.
14367         (fix_trunc<mode><V_cvtto>)2): Likewise
14368         (fixuns_trunc<mode><V_cvtto)2): Likewise.
14369         (neon_vcvt<mode>): Likewise.
14370         (neon_vcvtv4sfv4hf): Likewise.
14371         (neon_vcvtv4hfv4sf): Likewise.
14372         (neon_vcvt_n<mode>): Likewise.
14373         (neon_vmovn<mode>): Likewise.
14374         (neon_vqmovn<mode>): Likewise.
14375         (neon_vqmovun<mode>): Likewise.
14376         (neon_vmovl<mode>): Likewise.
14377         (neon_vmul_lane<mode>): Likewise.
14378         (neon_vmull_lane<mode>): Likewise.
14379         (neon_vqdmull_lane<mode>): Likewise.
14380         (neon_vqdmulh_lane<mode>): Likewise.
14381         (neon_vmla_lane<mode>): Likewise.
14382         (neon_vmlal_lane<mode>): Likewise.
14383         (neon_vqdmlal_lane<mode>): Likewise.
14384         (neon_vmls_lane<mode>): Likewise.
14385         (neon_vmlsl_lane<mode>): Likewise.
14386         (neon_vqdmlsl_lane<mode>): Likewise.
14387         (neon_vext<mode>): Likewise.
14388         (neon_vrev64<mode>): Likewise.
14389         (neon_vrev32<mode>): Likewise.
14390         (neon_vrev16<mode>): Likewise.
14391         (neon_vbsl<mode>_internal): Likewise.
14392         (neon_vshl<mode>): Likewise.
14393         (neon_vqshl<mode>): Likewise.
14394         (neon_vshr_n<mode>): Likewise.
14395         (neon_vshrn_n<mode>): Likewise.
14396         (neon_vqshrn_n<mode>): Likewise.
14397         (neon_vqshrun_n<mode>): Likewise.
14398         (neon_vshl_n<mode>): Likewise.
14399         (neon_vqshl_n<mode>): Likewise.
14400         (neon_vqshlu_n<mode>): Likewise.
14401         (neon_vshll_n<mode>): Likewise.
14402         (neon_vsra_n<mode>): Likewise.
14403         (neon_vsri_n<mode>): Likewise.
14404         (neon_vsli_n<mode>): Likewise.
14405         (neon_vtbl1v8qi): Likewise.
14406         (neon_vtbl2v8qi): Likewise.
14407         (neon_vtbl3v8qi): Likewise.
14408         (neon_vtbl4v8qi): Likewise.
14409         (neon_vtbx1v8qi): Likewise.
14410         (neon_vtbx2v8qi): Likewise.
14411         (neon_vtbx3v8qi): Likewise.
14412         (neon_vtbx4v8qi): Likewise.
14413         (neon_vtrn<mode>_internal): Likewise.
14414         (neon_vzip<mode>_internal): Likewise.
14415         (neon_vuzp<mode>_internal): Likewise.
14416         (neon_vld1<mode>): Likewise.
14417         (neon_vld1_lane<mode>): Likewise.
14418         (neon_vld1_dup<mode>): Likewise.
14419         (neon_vld1_dupv2di): Likewise.
14420         (neon_vst1<mode>): Likewise.
14421         (neon_vst1_lane<mode>): Likewise.
14422         (neon_vld2<mode>): Likewise.
14423         (neon_vld2_lane<mode>): Likewise.
14424         (neon_vld2_dup<mode>): Likewise.
14425         (neon_vst2<mode>): Likewise.
14426         (neon_vst2_lane<mode>): Likewise.
14427         (neon_vld3<mode>): Likewise.
14428         (neon_vld3qa<mode>): Likewise.
14429         (neon_vld3qb<mode>): Likewise.
14430         (neon_vld3_lane<mode>): Likewise.
14431         (neon_vld3_dup<mode>): Likewise.
14432         (neon_vst3<mode>): Likewise.
14433         (neon_vst3qa<mode>): Likewise.
14434         (neon_vst3qb<mode>): Likewise.
14435         (neon_vst3_lane<mode>): Likewise.
14436         (neon_vld4<mode>): Likewise.
14437         (neon_vld4qa<mode>): Likewise.
14438         (neon_vld4qb<mode>): Likewise.
14439         (neon_vld4_lane<mode>): Likewise.
14440         (neon_vld4_dup<mode>): Likewise.
14441         (neon_vst4<mode>): Likewise.
14442         (neon_vst4qa<mode>): Likewise.
14443         (neon_vst4qb<mode>): Likewise.
14444         (neon_vst4_lane<mode>): Likewise.
14445         (neon_vec_unpack<US>_lo_<mode>): Likewise.
14446         (neon_vec_unpack<US>_hi_<mode>): Likewise.
14447         (neon_vec_<US>mult_lo_<mode>): Likewise.
14448         (neon_vec_<US>mult_hi_<mode>): Likewise.
14449         (neon_vec_<US>shiftl_<mode>): Likewise.
14450         (neon_unpack<US>_<mode>): Likewise.
14451         (neon_vec_<US>mult_<mode>): Likewise.
14452         (vec_pack_trunc_<mode>): Likewise.
14453         (neon_vec_pack_trunk_<mode>): Likewise.
14454         (neon_vabd<mode>_2): Likewise.
14455         (neon_vabd<mode>_3): Likewise.
14456         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
14457         (thumb2_movsi_vfp): Likewise.
14458         (movdi_vfp): Likewise.
14459         (movdi_vfp_cortexa8): Likewise.
14460         (movhf_vfp_neon): Likewise.
14461         (movhf_vfp): Likewiwse.
14462         (movsf_vfp): Likewiwse.
14463         (thumb2_movsf_vfp): Likewiwse.
14464         (movdf_vfp): Likewise.
14465         (thumb2_movdf_vfp): Likewise.
14466         (movsfcc_vfp): Likewise.
14467         (thumb2_movsfcc_vfp): Likewise.
14468         (movdfcc_vfp): Likewise.
14469         (thumb2_movdfcc_vfp): Likewise.
14470         * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
14471         * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
14472         (v10_v2c): Likewise.
14473         * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
14474         attribute change.
14475         (cortex_a15_neon_int_2): Likewise.
14476         (cortex_a15_neon_int_3): Likewise.
14477         (cortex_a15_neon_int_4): Likewise.
14478         (cortex_a15_neon_int_5): Likewise.
14479         (cortex_a15_neon_vqneg_vqabs): Likewise.
14480         (cortex_a15_neon_vmov): Likewise.
14481         (cortex_a15_neon_vaba): Likewise.
14482         (cortex_a15_neon_vaba_qqq): Likewise.
14483         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14484         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
14485         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
14486         scalar_64_32_long_scalar): Likewise.
14487         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14488         (cortex_a15_neon_mla_qqq_8_16): Likewise.
14489         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
14490         lotype_qdd_64_32_long): Likewise.
14491         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
14492         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
14493         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
14494         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
14495         (cortex_a15_neon_shift_1): Likewise.
14496         (cortex_a15_neon_shift_2): Likewise.
14497         (cortex_a15_neon_shift_3): Likewise.
14498         (cortex_a15_neon_vshl_ddd): Likewise.
14499         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
14500         (cortex_a15_neon_vsra_vrsra): Likewise.
14501         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
14502         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
14503         (cortex_a15_neon_fp_vmul_ddd): Likewise.
14504         (cortex_a15_neon_fp_vmul_qqd): Likewise.
14505         (cortex_a15_neon_fp_vmla_ddd): Likewise.
14506         (cortex_a15_neon_fp_vmla_qqq): Likewise.
14507         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
14508         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
14509         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
14510         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
14511         (cortex_a15_neon_bp_simple): Likewise.
14512         (cortex_a15_neon_bp_2cycle): Likewise.
14513         (cortex_a15_neon_bp_3cycle): Likewise.
14514         (cortex_a15_neon_vld1_1_2_regs): Likewise.
14515         (cortex_a15_neon_vld1_3_4_regs): Likewise.
14516         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
14517         (cortex_a15_neon_vld2_4_regs): Likewise.
14518         (cortex_a15_neon_vld3_vld4): Likewise.
14519         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
14520         (cortex_a15_neon_vst1_3_4_regs): Likewise.
14521         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
14522         (cortex_a15_neon_vst3_vst4): Likewise.
14523         (cortex_a15_neon_vld1_vld2_lane): Likewise.
14524         (cortex_a15_neon_vld3_vld4_lane" 10
14525         (cortex_a15_neon_vst1_vst2_lane): Likewise.
14526         (cortex_a15_neon_vst3_vst4_lane): Likewise.
14527         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
14528         (cortex_a15_neon_ldm_2): Likewise.0
14529         (cortex_a15_neon_stm_2): Likewise.
14530         (cortex_a15_neon_mcr): Likewise.
14531         (cortex_a15_neon_mcr_2_mcrr): Likewise.
14532         (cortex_a15_neon_mrc): Likewise.
14533         (cortex_a15_neon_mrrc): Likewise.
14534         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
14535         change.
14536         (cortex_a15_alu_shift): Likewise.
14537         (cortex_a15_alu_shift_reg): Likewise.
14538         (cortex_a15_mult32): Likewise.
14539         (cortex_a15_mult64): Likewise.
14540         (cortex_a15_block): Likewise.
14541         (cortex_a15_branch): Likewise.
14542         (cortex_a15_load1): Likewise.
14543         (cortex_a15_load3): Likewise.
14544         (cortex_a15_store1): Likewise.
14545         (cortex_a15_store3): Likewise.
14546         (cortex_a15_call): Likewise.
14547         * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
14548         (cortex_a5_f2r): Likewise.
14549         * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
14550         change.
14551         (cortex_a53_f2r): Likewise.
14552         * config/arm/cortex-a7.md
14553         (cortex_a7_branch): Update for attribute change.
14554         (cortex_a7_call): Likewise.
14555         (cortex_a7_alu_imm): Likewise.
14556         (cortex_a7_alu_reg): Likewise.
14557         (cortex_a7_alu_shift): Likewise.
14558         (cortex_a7_mul): Likewise.
14559         (cortex_a7_load1): Likewise.
14560         (cortex_a7_store1): Likewise.
14561         (cortex_a7_load2): Likewise.
14562         (cortex_a7_store2): Likewise.
14563         (cortex_a7_load3): Likewise.
14564         (cortex_a7_store3): Likewise.
14565         (cortex_a7_load4): Likewise.
14566         (cortex_a7_store4): Likewise.
14567         (cortex_a7_fpalu): Likewise.
14568         (cortex_a7_fconst): Likewise.
14569         (cortex_a7_fpmuls): Likewise.
14570         (cortex_a7_neon_mul): Likewise.
14571         (cortex_a7_fpmacs): Likewise.
14572         (cortex_a7_neon_mla: Likewise.
14573         (cortex_a7_fpmuld: Likewise.
14574         (cortex_a7_fpmacd: Likewise.
14575         (cortex_a7_fpfmad: Likewise.
14576         (cortex_a7_fdivs: Likewise.
14577         (cortex_a7_fdivd: Likewise.
14578         (cortex_a7_r2f: Likewise.
14579         (cortex_a7_f2r: Likewise.
14580         (cortex_a7_f_flags: Likewise.
14581         (cortex_a7_f_loads: Likewise.
14582         (cortex_a7_f_loadd: Likewise.
14583         (cortex_a7_f_stores: Likewise.
14584         (cortex_a7_f_stored: Likewise.
14585         (cortex_a7_neon): Likewise.
14586         * config/arm/cortex-a8-neon.md
14587         (cortex_a8_neon_mrc): Update for attribute change.
14588         (cortex_a8_neon_mrrc): Likewise.
14589         (cortex_a8_neon_int_1): Likewise.
14590         (cortex_a8_neon_int_2): Likewise.
14591         (cortex_a8_neon_int_3): Likewise.
14592         (cortex_a8_neon_int_4): Likewise.
14593         (cortex_a8_neon_int_5): Likewise.
14594         (cortex_a8_neon_vqneg_vqabs): Likewise.
14595         (cortex_a8_neon_vmov): Likewise.
14596         (cortex_a8_neon_vaba): Likewise.
14597         (cortex_a8_neon_vaba_qqq): Likewise.
14598         (cortex_a8_neon_vsma): Likewise.
14599         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14600         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
14601         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
14602         long_scalar): Likewise.
14603         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14604         (cortex_a8_neon_mla_qqq_8_16): Likewise.
14605         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
14606         long_scalar_qdd_64_32_long): Likewise.
14607         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
14608         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
14609         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
14610         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
14611         (cortex_a8_neon_shift_1): Likewise.
14612         (cortex_a8_neon_shift_2): Likewise.
14613         (cortex_a8_neon_shift_3): Likewise.
14614         (cortex_a8_neon_vshl_ddd): Likewise.
14615         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
14616         (cortex_a8_neon_vsra_vrsra): Likewise.
14617         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
14618         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
14619         (cortex_a8_neon_fp_vsum): Likewise.
14620         (cortex_a8_neon_fp_vmul_ddd): Likewise.
14621         (cortex_a8_neon_fp_vmul_qqd): Likewise.
14622         (cortex_a8_neon_fp_vmla_ddd): Likewise.
14623         (cortex_a8_neon_fp_vmla_qqq): Likewise.
14624         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
14625         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
14626         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
14627         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
14628         (cortex_a8_neon_bp_simple): Likewise.
14629         (cortex_a8_neon_bp_2cycle): Likewise.
14630         (cortex_a8_neon_bp_3cycle): Likewise.
14631         (cortex_a8_neon_ldr): Likewise.
14632         (cortex_a8_neon_str): Likewise.
14633         (cortex_a8_neon_vld1_1_2_regs): Likewise.
14634         (cortex_a8_neon_vld1_3_4_regs): Likewise.
14635         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
14636         (cortex_a8_neon_vld2_4_regs): Likewise.
14637         (cortex_a8_neon_vld3_vld4): Likewise.
14638         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
14639         (cortex_a8_neon_vst1_3_4_regs): Likewise.
14640         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
14641         (cortex_a8_neon_vst3_vst4): Likewise.
14642         (cortex_a8_neon_vld1_vld2_lane): Likewise.
14643         (cortex_a8_neon_vld3_vld4_lane): Likewise.
14644         (cortex_a8_neon_vst1_vst2_lane): Likewise.
14645         (cortex_a8_neon_vst3_vst4_lane): Likewise.
14646         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
14647         (cortex_a8_neon_mcr): Likewise.
14648         (cortex_a8_neon_mcr_2_mcrr): Likewise.
14649         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
14650         * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
14651         change.
14652         (ca9_neon_mrrc): Likewise.
14653         (cortex_a9_neon_int_1): Likewise.
14654         (cortex_a9_neon_int_2): Likewise.
14655         (cortex_a9_neon_int_3): Likewise.
14656         (cortex_a9_neon_int_4): Likewise.
14657         (cortex_a9_neon_int_5): Likewise.
14658         (cortex_a9_neon_vqneg_vqabs): Likewise.
14659         (cortex_a9_neon_vmov): Likewise.
14660         (cortex_a9_neon_vaba): Likewise.
14661         (cortex_a9_neon_vaba_qqq): Likewise.
14662         (cortex_a9_neon_vsma): Likewise.
14663         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14664         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
14665         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
14666         long_scalar): Likewise.
14667         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14668         (cortex_a9_neon_mla_qqq_8_16): Likewise.
14669         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
14670         long_scalar_qdd_64_32_long): Likewise.
14671         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
14672         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
14673         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
14674         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
14675         (cortex_a9_neon_shift_1): Likewise.
14676         (cortex_a9_neon_shift_2): Likewise.
14677         (cortex_a9_neon_shift_3): Likewise.
14678         (cortex_a9_neon_vshl_ddd): Likewise.
14679         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
14680         (cortex_a9_neon_vsra_vrsra): Likewise.
14681         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
14682         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
14683         (cortex_a9_neon_fp_vsum): Likewise.
14684         (cortex_a9_neon_fp_vmul_ddd): Likewise.
14685         (cortex_a9_neon_fp_vmul_qqd): Likewise.
14686         (cortex_a9_neon_fp_vmla_ddd): Likewise.
14687         (cortex_a9_neon_fp_vmla_qqq): Likewise.
14688         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
14689         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
14690         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
14691         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
14692         (cortex_a9_neon_bp_simple): Likewise.
14693         (cortex_a9_neon_bp_2cycle): Likewise.
14694         (cortex_a9_neon_bp_3cycle): Likewise.
14695         (cortex_a9_neon_ldr): Likewise.
14696         (cortex_a9_neon_str): Likewise.
14697         (cortex_a9_neon_vld1_1_2_regs): Likewise.
14698         (cortex_a9_neon_vld1_3_4_regs): Likewise.
14699         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
14700         (cortex_a9_neon_vld2_4_regs): Likewise.
14701         (cortex_a9_neon_vld3_vld4): Likewise.
14702         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
14703         (cortex_a9_neon_vst1_3_4_regs): Likewise.
14704         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
14705         (cortex_a9_neon_vst3_vst4): Likewise.
14706         (cortex_a9_neon_vld1_vld2_lane): Likewise.
14707         (cortex_a9_neon_vld3_vld4_lane): Likewise.
14708         (cortex_a9_neon_vst1_vst2_lane): Likewise.
14709         (cortex_a9_neon_vst3_vst4_lane): Likewise.
14710         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
14711         (cortex_a9_neon_mcr): Likewise.
14712         (cortex_a9_neon_mcr_2_mcrr): Likewise.
14713         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
14714         (cortex_a9_fps): Likewise.
14715         * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
14716         change.
14717         (cortex_m4_fmuls): Likewise.
14718         * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
14719         change.
14720         (cortex_r4_mrc): Likewise.
14721         * config/arm/iterators.md: Update comment referring to neon_type.
14722         * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
14723         (iwmmxt_movsi_insn): Likewise.
14724         * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
14725         attribute change.
14726         (pj4_core_to_vfp): Likewise.
14727         * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
14728         attribute change.
14729         * config/arm/vfp11.md (vfp_fload): Update for attribute change.
14730         (vfp_fstore): Likewise.
14731         * doc/md.texi: Change references to neon_type to refer to type.
14733 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
14735         * tree.h (DECL_BUILT_IN): Fix typo in comment.
14737 2013-09-04  David Edelsohn  <dje.gcc@gmail.com>
14739         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
14740         lglobl if not weak.
14742 2013-09-04  Easwaran Raman  <eraman@google.com>
14744         PR middle-end/57370
14745         * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
14746         (build_and_add_sum): Use it.
14747         (appears_later_in_bb): Simplify code.
14749 2013-09-04  Teresa Johnson  <tejohnson@google.com>
14751         * dumpfile.c (dump_finish): Don't close stderr/stdout.
14753 2013-09-04  James Greenhalgh  <james.greenhalgh@arm.com>
14755         * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
14757 2013-09-04  Jan Hubicka  <jh@suse.cz>
14759         * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
14760         * ipa-devirt.c: Include diganostic.h
14761         (odr_type_d): Add types and types_set.
14762         (hash_type_name): Work for types with vtables during LTO.
14763         (odr_hasher::remove): Fix comment; destroy types_set.
14764         (add_type_duplicate): New function,
14765         (get_odr_type): Use it.
14766         (dump_type_inheritance_graph): Dump type duplicates.
14767         * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
14768         graph.
14769         * tree.c (types_same_for_odr): Give exact answers on types with
14770         virtual tables.
14772 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
14774         * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
14775         explaining their differences.
14777 2013-09-04  Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
14779         * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
14781 2013-09-03  Jeff Law  <law@redhat.com>
14783         * tree-ssa-threadedge.c (thread_across_edge): Record entire path
14784         when not threading through a joiner block.  Pass joiner/no joiner
14785         state to register_jump_thread.
14786         * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
14787         state from argument rather than implying on path length.
14788         Dump the entire jump thread path into debugging dump.
14789         * tree-flow.h (register_jump_thread): Update prototype.
14791 2013-08-29  Xinliang David Li  <davidxl@google.com>
14793         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
14794         Remove a trivial gcc_assert.
14796 2013-08-29  Xinliang David Li  <davidxl@google.com>
14798         * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
14799         * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
14800         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
14801         Delay base decl alignment adjustment.
14802         * tree-vectorizer.c (vect_destroy_datarefs): New function.
14803         * tree-vectorizer.h: New data structure.
14804         (set_dr_misalignment): New function.
14805         (dr_misalignment): Ditto.
14806         * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
14807         (vectorizable_load): Ditto.
14808         (ensure_base_align): New function.
14809         (vectorize_loops): Add dbg_cnt support.
14810         (execute_vect_slp): Ditto.
14811         * dbgcnt.def: New debug counter.
14812         * Makefile: New dependency.
14814 2013-09-03  Meador Inge  <meadori@codesourcery.com>
14816         Revert:
14818         2013-08-30  Meador Inge  <meadori@codesourcery.com>
14820         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
14822 2013-09-03  David Edelsohn  <dje.gcc@gmail.com>
14824         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
14825         function descriptor.
14827 2013-09-03  Richard Biener  <rguenther@suse.de>
14829         * tree-affine.c (add_elt_to_tree): Fix association issue,
14830         avoid useless converts and make sure to always return a
14831         properly typed result.
14833 2013-09-03  Richard Biener  <rguenther@suse.de>
14835         PR middle-end/57656
14836         * fold-const.c (negate_expr_p): Fix division case.
14837         (negate_expr): Likewise.
14839 2013-09-03  Richard Biener  <rguenther@suse.de>
14841         PR lto/58285
14842         * tree-streamer-out.c: Include tm.h.
14843         * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
14845 2013-09-03  Jan Hubicka  <jh@suse.cz>
14847         * tree-profile.c (tree_profiling): Cleanup CFG when done.
14849 2013-09-03  Alan Modra  <amodra@gmail.com>
14851         * config.gcc (powerpc*-*-linux*): Add support for little-endian
14852         multilibs to big-endian target and vice versa.
14853         * config/rs6000/t-linux64: Use := assignment on all vars.
14854         (MULTILIB_EXTRA_OPTS): Remove fPIC.
14855         (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
14856         * config/rs6000/t-linux64le: New file.
14857         * config/rs6000/t-linux64bele: New file.
14858         * config/rs6000/t-linux64lebe: New file.
14860 2013-09-02  Jan Hubicka  <jh@suse.cz>
14862         * ipa-inline-transform.c (inline_transform): Do not
14863         optimize_inline_calls when not optimizing.
14865 2013-09-02  Jan Hubicka  <jh@suse.cz>
14867         * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
14868         duplicated nodes for assembler names.
14869         * symtab.c (symtab_unregister_node): Do not attempt to unlink
14870         hard registers from assembler name hash.
14872 2013-09-02  Jan Hubicka  <jh@suse.cz>
14874         * ipa-split.c (execute_split_functions): Split externally visible
14875         functions called once.
14877 2013-09-02  Martin Jambor  <mjambor@suse.cz>
14879         PR ipa/58106
14880         * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
14881         linked list.  When finding the correct duplicate, also consider also
14882         the caller in additon to its inlined_to node.
14884 2013-09-02  James Greenhalgh  <james.greenhalgh@arm.com>
14886         * config/aarch64/aarch64-simd-builtins.def
14887         (dup_lane_scalar): Remove.
14888         * config/aarch64/aarch64-simd.md
14889         (aarch64_simd_dup): Add 'w->w' alternative.
14890         (aarch64_dup_lane<mode>): Allow for VALL.
14891         (aarch64_dup_lane_scalar<mode>): Remove.
14892         (aarch64_dup_lane_<vswap_width_name><mode>): New.
14893         (aarch64_get_lane_signed<mode>): Add w->w altenative.
14894         (aarch64_get_lane_unsigned<mode>): Likewise.
14895         (aarch64_get_lane<mode>): Likewise.
14896         * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
14897         (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
14898         * config/aarch64/iterators.md (VSWAP_WIDTH): New.
14899         (VCON): Change container of V2SF.
14900         (vswap_width_name): Likewise.
14901         * config/aarch64/arm_neon.h
14902         (__aarch64_vdup_lane_any): New.
14903         (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
14904         (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
14905         (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
14907 2013-09-02  Eric Botcazou  <ebotcazou@adacore.com>
14909         PR middle-end/56382
14910         * expr.c (emit_move_complex): Do not move complex FP values as parts if
14911         the source or the destination is a single hard register.
14913 2013-09-02  Richard Biener  <rguenther@suse.de>
14915         PR middle-end/57511
14916         * tree-scalar-evolution.c (instantiate_scev_name): Allow
14917         non-linear SCEVs.
14919 2013-09-02  Richard Biener  <rguenther@suse.de>
14921         * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
14922         arithmetic to sizetype.
14924 2013-09-02  Bin Cheng  <bin.cheng@arm.com>
14926         * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
14927         Find auto-increment use both before and after candidate.
14929 2013-09-02  Marek Polacek  <polacek@redhat.com>
14931         * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
14933 2013-09-01  Jan Hubicka  <jh@suse.cz>
14935         * Makefile.in: Add ipa-profile.o
14936         (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
14937         * cgraph.c (struct cgraph_propagate_frequency_data,
14938         cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
14939         ipa-profile.c; replace cgraph_ by ipa_ prefix.
14940         * cgraph.h (cgraph_propagate_frequency): Remove.
14941         * ipa-inline-analysis.c: Include ipa-utils.h;
14942         drop duplicated cfgloop.h.
14943         (inline_update_callee_summaries): Update.
14944         * ipa-profile.c: New file.
14945         * ipa-utils.h (ipa_propagate_frequency): Declare.
14946         * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
14947         data-streamer.h, value-prof.h.
14948         (symtab_remove_unreachable_nodes): Update profile.
14949         (struct histogram_entry, histogram, histogram_pool, histogram_hash,
14950         account_time_size, cmp_counts, dump_histogram,
14951         ipa_profile_generate_summary, ipa_profile_write_summary,
14952         ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
14953         pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
14954         Move to ipa-profile.c.
14956 2013-09-01  John David Anglin  <danglin@gcc.gnu.org>
14958         * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
14960 2013-09-01  Jan Hubicka  <jh@suse.cz>
14962         * common.opt (fdevirtualize-speculatively): New function.
14963         * invoke.texi (fdevirtualize-speculatively): Document.
14964         * ipa-devirt.c: Include ipa-inline.h
14965         (likely_target_p): New function.
14966         (ipa_devirt): New function.
14967         (gate_ipa_devirt): New function.
14968         (pass_data_ipa_devirt): New static var.
14969         (pass_ipa_devirt): Likewise.
14970         (make_pass_ipa_devirt): New function.
14971         * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
14972         (common_handle_option): Disable devirtualization when
14973         value range profiling is available.
14974         * passes.def (pass_ipa_devirt): Add.
14975         * timever.def (TV_IPA_DEVIRT): New timevar.
14976         * tree-pass.h (make_pass_ipa_devirt):
14978 2013-09-01  Iain Sandoe  <iain@codesourcery.com>
14980         * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
14981         include sanitize(undefined).
14983 2013-08-31  Diego Novillo  <dnovillo@google.com>
14985         * Makefile.in (TREE_CORE_H): Define.
14986         (TREE_H): Use.
14987         (GTFILES): Add tree-core.h.
14988         * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
14989         size the array.
14990         * tree-core.h: New file.
14991         Move all data structures, enum, typedefs, global
14992         declarations and constants from ...
14993         * tree.h: ... here.
14995 2013-08-31  Jan Hubicka  <jh@suse.cz>
14997         * bulitins.c (expand_builtin): Do not early exit for gcov
14998         instrumented functions.
15000 2013-08-31  Marek Polacek  <polacek@redhat.com>
15002         * ubsan.c: Include tm_p.h.
15004 2013-08-31  Jan Hubicka  <jh@suse.cz>
15006         * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
15007         warning.
15009         * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
15010         * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
15011         * tree-cfg.c (verify_gimple_label): ... here.
15012         * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
15013         (ipa_merge_profiles): New function.
15014         * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
15015         (lto_input_function_body): Likewise.
15016         * ipa-utils.h (ipa_merge_profiles): Declare.
15017         * lto-streamer.h (lto_input_function_body): Update prototype.
15018         (emit_label_in_global_context_p): Remove.
15019         * lto-symtab.c: Include ipa-utils.h
15020         (lto_cgraph_replace_node): Use ipa_merge_profiles.
15022 2013-08-31  Jan Hubicka  <jh@suse.cz>
15024         * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
15026 2013-08-31  Jan Hubicka  <jh@suse.cz>
15028         * basic-block.h (apply_scale): Make scale parmeter gcov_type.
15030 2013-08-31  Uros Bizjak  <ubizjak@gmail.com>
15032         * config/alpha/alpha.c (alpha_emit_conditional_move): Update
15033         "cmp" RTX before signed_comparison_operator check to account
15034         for "code" changes.
15036 2013-08-30  Jan Hubicka  <jh@suse.cz>
15038         * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
15039         (detect_type_change_1): Rename to ...
15040         (detect_type_change): ... this one; early return on non-polymorphic
15041         types.
15042         (detect_type_change_ssa): Add comp_type parameter; update
15043         use of detect_type_change.
15044         (compute_complex_assign_jump_func): Add param_type parameter;
15045         update use of detect_type_change_ssa.
15046         (compute_complex_ancestor_jump_func): Likewise.
15047         (ipa_get_callee_param_type): New function.
15048         (ipa_compute_jump_functions_for_edge): Compute parameter type;
15049         update calls to the jump function computation functions.
15051 2013-08-30  Teresa Johnson  <tejohnson@google.com>
15052             Steven Bosscher  <steven@gcc.gnu.org>
15054         * cfgrtl.c (fixup_new_cold_bb): New routine.
15055         (commit_edge_insertions): Invoke fixup_partitions.
15056         (find_partition_fixes): New routine.
15057         (fixup_partitions): Ditto.
15058         (verify_hot_cold_block_grouping): Update comments.
15059         (rtl_verify_edges): Invoke find_partition_fixes.
15060         (rtl_verify_bb_pointers): Update comments.
15061         (rtl_verify_bb_layout): Ditto.
15062         * basic-block.h (probably_never_executed_edge_p): Declare.
15063         (fixup_partitions): Ditto.
15064         * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
15065         * bb-reorder.c (sanitize_hot_paths): New function.
15066         (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
15067         sanitize_hot_paths.
15068         * predict.c (probably_never_executed_edge_p): New routine.
15069         * cfg.c (check_bb_profile): Add partition insanity warnings.
15071 2013-08-30  Meador Inge  <meadori@codesourcery.com>
15073         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
15075 2013-08-30  Marek Polacek  <polacek@redhat.com>
15077         * Makefile.in (ubsan.o): Add.
15078         (c-family/c-ubsan.o): Add.
15079         (builtins.o): Add ubsan.h dependency.
15080         * ubsan.h: New file.
15081         * ubsan.c: New file.
15082         * common.opt: Add -fsanitize=undefined option.
15083         (flag_sanitize): Add variable.
15084         (fsanitize=): Add option.  Add Driver.
15085         (fsanitize=thread): Remove option.
15086         (fsanitize=address): Likewise.
15087         (static-libubsan): New option.
15088         * doc/invoke.texi: Document the new flag and -static-libubsan.
15089         * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
15090         (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
15091         * builtin-attrs.def (ATTR_COLD): Define.
15092         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
15093         * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
15094         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
15095         * flag-types.h (sanitize_code): New enum.
15096         * opts.c (common_handle_option): Parse command line arguments
15097         of -fsanitize=.  Add -fsanitize=unreachable option.
15098         * varasm.c (get_variable_section): Adjust.
15099         (assemble_noswitch_variable): Likewise.
15100         (assemble_variable): Likewise.
15101         (output_constant_def_contents): Likewise.
15102         (categorize_decl_for_section): Likewise.
15103         (place_block_symbol): Likewise.
15104         (output_object_block): Likewise.
15105         * builtins.def: Likewise.
15106         * toplev.c (compile_file): Likewise.
15107         (process_options): Likewise.
15108         * cppbuiltin.c: Likewise.
15109         * tsan.c (tsan_pass): Likewise.
15110         (tsan_gate): Likewise.
15111         (tsan_gate_O0): Likewise.
15112         * cfgexpand.c (partition_stack_vars): Likewise.
15113         (expand_stack_vars): Likewise.
15114         (defer_stack_allocation): Likewise.
15115         (expand_used_vars): Likewise.
15116         * cfgcleanup.c (old_insns_match_p): Likewise.
15117         * asan.c (asan_finish_file): Likewise.
15118         (asan_instrument): Likewise.
15119         (gate_asan): Likewise.
15120         (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
15121         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
15122         (asan_global_struct): Use pointer_sized_int_node instead
15123         calling build_nonstandard_integer_type.
15124         (initialize_sanitizer_builtins): Likewise.
15125         (asan_finish_file): Likewise.
15126         * gcc.c: Document %{%:function(args):X}.
15127         (static_spec_functions): Add sanitize.
15128         (handle_spec_function): Add retval_nonnull argument and if non-NULL,
15129         store funcval != NULL there.
15130         (do_spec_1): Adjust handle_spec_function caller.
15131         (handle_braces): Allow %:function(args) as condition.
15132         (sanitize_spec_function): New function.
15133         (ADD_STATIC_LIBUBSAN_LIBS): Define.
15134         (LIBUBSAN_SPEC): Likewise.
15135         (LIBUBSAN_EARLY_SPEC): Likewise.
15136         (SANITIZER_SPEC): Handle libubsan.
15137         (SANITIZER_EARLY_SPEC): Likewise.
15138         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
15139         instead of fsanitize=address.
15140         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
15141         instead of fsanitize=address*.
15142         * builtins.c: Include ubsan.h.
15143         (fold_builtin_0): Instrument __builtin_unreachable.
15144         * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
15145         instead of flag_asan.
15146         * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
15147         (pointer_sized_int_node): Define.
15148         * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
15150 2013-08-30  Mike Stump  <mikestump@comcast.net>
15152         * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
15153         with RE patterns.
15155 2013-08-29  Jan Hubicka  <jh@suse.cz>
15157         * cgraph.c (cgraph_function_body_availability): Handle weakref
15158         correctly.
15159         * passes.def: Remove pass_fixup_cfg.
15160         * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
15161         track when we need to remove functions.
15162         (gate_ipa_inline): Execute inlining always; add comment why.
15163         (pass_data_ipa_inline): Remove TODO_remove_functions.
15164         * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
15165         do not produce summaries.
15166         * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
15167         (symtab_nonoverwritable_alias): Assert we are not called on weakref.
15168         * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
15169         constant pool and vtable.
15171 2013-08-30  Tejas Belagod  <tejas.belagod@arm.com>
15173         * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
15174         New arm_neon.h's internal macros to specify 64-bit constants.
15175         Avoid using stdint.h's macros.
15177 2013-08-30  Joern Rennecke  <joern.rennecke@embecosm.com>
15179         * recog.c (verify_changes): Verify that changes[i].old is non-zero
15180         before applying REG_P.
15182 2013-08-30  Jakub Jelinek  <jakub@redhat.com>
15184         PR tree-optimization/58277
15185         * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
15186         after seeing too many stmts with vdef in between dombb and current
15187         bb, invalidate everything.
15189 2013-08-30  Richard Biener  <rguenther@suse.de>
15191         * fold-const.c (fold_single_bit_test): Fix overflow test.
15193 2013-08-30  Eric Botcazou  <ebotcazou@adacore.com>
15195         * function.c (assign_parm_setup_reg): For a parameter passed by pointer
15196         and which can live in a register, always retrieve the value on entry.
15197         * var-tracking.c (add_stores): Treat the copy on entry for a parameter
15198         passed by invisible reference specially.
15199         (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
15200         (vt_add_function_parameter): Correctly deal with a parameter passed by
15201         invisible reference.
15203 2013-08-30  Jan Hubicka  <jh@suse.cz>
15205         * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
15207 2013-08-30  Richard Biener  <rguenther@suse.de>
15209         PR tree-optimization/58228
15210         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
15211         allow invariant loads in nested loop vectorization.
15213 2013-08-30  Richard Biener  <rguenther@suse.de>
15215         PR tree-optimization/58223
15216         * tree-loop-distribution.c (has_anti_dependence): Rename to ...
15217         (has_anti_or_output_dependence): ... this and adjust to also
15218         look for output dependences.
15219         (mark_nodes_having_upstream_mem_writes): Adjust.
15220         (rdg_flag_uses): Likewise.
15222 2013-08-30  Richard Biener  <rguenther@suse.de>
15224         PR tree-optimization/58010
15225         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
15226         assert that we have a loop-closed PHI.
15228 2013-08-29  Jan Hubicka  <jh@suse.cz>
15230         * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
15231         * cgraph.c (cgraph_release_function_body): Free decl_in_state.
15232         * lto-section-in.c (lto_free_function_in_decl_state): New function.
15233         (lto_free_function_in_decl_state_for_node): New function.
15235 2013-08-29  Xinliang David Li  <davidxl@google.com>
15237         * loop-unroll.c (report_unroll_peel): Minor message change.
15238         * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
15239         Emit alignment peeling message with default -fopt-info.
15240         (vect_loop_versioning): Emit loop version info message.
15241         * tree-vectorizer.c (vectorize_loops): Minor message change.
15242         (execute_vect_slp): Ditto.
15244 2013-08-29  Eric Botcazou  <ebotcazou@adacore.com>
15246         * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
15247         of the clone from the DECL_NAME of the original function.
15249 2013-08-29  Oleg Endo  <olegendo@gcc.gnu.org>
15251         * passes.c (register_pass): Add overload.
15252         * tree-pass.h (register_pass): Forward declare it.  Add comment.
15254 2013-08-29  Jan Hubicka  <jh@suse.cz>
15256         * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
15257         DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
15258         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
15259         DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
15260         (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
15261         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
15262         Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
15263         (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
15265 2013-08-29  Teresa Johnson  <tejohnson@google.com>
15267         * dumpfile.c (dump_loc): Output column number.
15268         * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
15269         * doc/invoke.texi: Document optall -fopt-info flag.
15270         * profile.c (read_profile_edge_counts): Use new dump framework.
15271         (compute_branch_probabilities): Ditto.
15272         * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
15273         when pass not in any opt group.
15274         * pass_manager.h (pass_manager::get_pass_profile): New method.
15275         * value-prof.c (check_counter): Use new dump framework.
15276         (check_ic_target): Ditto.
15277         * coverage.c (get_coverage_counts): Ditto.
15278         (coverage_init): Setup new dump framework.
15280 2013-08-29  Richard Biener  <rguenther@suse.de>
15282         PR tree-optimization/58246
15283         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
15284         handle the dominance check inside a basic-block.
15286 2013-08-29  Richard Biener  <rguenther@suse.de>
15288         PR middle-end/57287
15289         * tree-ssa-copy.c (may_propagate_copy): Allow propagating
15290         of default defs that appear in abnormal PHI nodes.
15292 2013-08-29  Richard Biener  <rguenther@suse.de>
15294         PR tree-optimization/57685
15295         * tree-vrp.c (register_edge_assert_for_1): Recurse only for
15296         single-use operands to avoid exponential complexity.
15298 2013-08-28  Dehao Chen  <dehao@google.com>
15300         * ipa-inline.c (edge_badness): Fix integer underflow.
15302 2013-08-28  Uros Bizjak  <ubizjak@gmail.com>
15304         * gtm-builtins.def (_ITM_free): Declare leaf.
15306 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
15308         PR target/58067
15309         * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
15310         (*tls_local_dynamic_base_64_largepic): Likewise.
15311         (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
15312         Remove predicate from call operand.
15313         * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
15314         return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
15316 2013-08-28  Jeff Law  <law@redhat.com>
15318         * tree-ssa-threadedge.c (thread_around_empty_block): Remove
15319         checks for the number of predecessors and successors allowed.
15320         * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
15321         which require copying a joiner block if there is a request which
15322         is a subpath that requires no joiner block copying.
15324 2013-08-28  Jan Hubicka  <jh@suse.cz>
15326         * lto-streamer-out.c (DFS_write_tree_body): Drop
15327         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
15328         (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
15329         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
15330         * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
15331         Do not read DECL_ERROR_ISSUED.
15332         (unpack_ts_decl_with_vis_value_fields): Do not read
15333         DECL_DEFER_OUTPUT.
15334         (lto_input_ts_binfo_tree_pointers): Do not read
15335         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
15336         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
15337         write DECL_ERROR_ISSUED..
15338         (pack_ts_decl_with_vis_value_fields): Do not write
15339         DECL_DEFER_OUTPUT.
15340         (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
15341         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
15342         * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
15343         * tree.h (tree_decl_common): Update comment.
15344         (DECL_ERROR_ISSUED): Remove.
15346 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
15348         PR middle-end/58257
15349         * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
15351 2013-08-28  Jan Hubicka  <jh@suse.cz>
15353         * builtins.def (free): Declare leaf.
15355 2013-08-27  David Malcolm  <dmalcolm@redhat.com>
15357         * gdbhooks.py: New.
15358         * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
15359         * configure: Regenerate.
15361 2013-08-27  Martin Jambor  <mjambor@suse.cz>
15363         * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
15364         (ipa_ancestor_jf_data): Likewise.
15365         (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
15366         (ipa_get_jf_pass_through_type_preserved): New function.
15367         (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
15368         (ipa_get_jf_ancestor_type_preserved): New function.
15369         * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
15370         (ipa_get_jf_ancestor_result): Likewise.
15371         (propagate_vals_accross_pass_through): Use
15372         ipa_get_jf_pass_through_result to do all the value mappings.
15373         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
15374         type_preserved flag.
15375         (ipa_set_jf_cst_copy): New function.
15376         (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
15377         (ipa_set_jf_arith_pass_through): Likewise.
15378         (ipa_set_ancestor_jf): Likewise.
15379         (compute_complex_assign_jump_func): Set type_preserved instead of
15380         punting.
15381         (ipa_compute_jump_functions_for_edge): Likewise.
15382         (combine_known_type_and_ancestor_jfs): Honor type_preserved.
15383         (update_jump_functions_after_inlining): Update type_preserved.
15384         Explicitely create jump functions when combining one with pass_through.
15385         (ipa_write_jump_function): Stream the type_preserved flags.
15386         (ipa_read_jump_function): Likewise.
15388 2013-08-27  Jakub Jelinek  <jakub@redhat.com>
15389             Aldy Hernandez  <aldyh@redhat.com>
15391         * Makefile.in (omp-low.o): Depend on $(TARGET_H).
15392         * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
15393         * function.h (struct function): Add has_force_vect_loops and
15394         has_simduid_loops.
15395         * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
15396         * gimple.c (gimple_build_omp_critical): Add KIND argument and
15397         handle it.
15398         * gimple.def: Update CLAUSES comments.
15399         * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
15400         (gimple_build_omp_for): Add argument to prototype.
15401         (gimple_omp_for_kind): New.
15402         (gimple_omp_for_set_kind): New.
15403         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
15404         GOVD_DATA_SHARE_CLASS.
15405         (enum omp_region_type): Add ORT_SIMD.
15406         (gimple_add_tmp_var): Handle ORT_SIMD.
15407         (gimplify_var_or_parm_decl): Same.
15408         (is_gimple_stmt): Same.
15409         (omp_firstprivatize_variable): Same.
15410         (omp_add_variable): Only use splay_tree_insert if lookup failed.
15411         (omp_notice_variable): Handle ORT_SIMD.
15412         (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
15413         (omp_check_private): Handle ORT_SIMD.
15414         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
15415         OMP_CLAUSE_SAFELEN.
15416         (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
15417         Handle OMP_CLAUSE_LASTPRIVATE.
15418         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
15419         OMP_CLAUSE_SAFELEN.
15420         (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
15421         (gimplify_expr): Handle OMP_SIMD.
15422         * internal-fn.c (expand_GOMP_SIMD_LANE): New.
15423         (expand_GOMP_SIMD_VF): New.
15424         (expand_GOMP_SIMD_LAST_LANE): New.
15425         * internal-fn.def (GOMP_SIMD_LANE): New.
15426         (GOMP_SIMD_VF): New.
15427         (GOMP_SIMD_LAST_LANE): New.
15428         * omp-low.c: Include target.h.
15429         (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
15430         OMP_CLAUSE_SAFELEN.
15431         (check_omp_nesting_restrictions): Same.
15432         (omp_max_vf): New.
15433         (lower_rec_simd_input_clauses): New.
15434         (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
15435         OMP_CLAUSE_LINEAR.
15436         (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
15437         GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
15438         (expand_omp_build_assign): New.
15439         (expand_omp_for_init_counts): New.
15440         (expand_omp_for_init_vars): New.
15441         (extract_omp_for_update_vars): New.
15442         (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
15443         and rewrite accordingly.
15444         (expand_omp_simd): New.
15445         (expand_omp_for): Use expand_omp_simd.
15446         (lower_omp_for_lastprivate): Unshare vinit when appropriate.
15447         (lower_omp_for): Do not lower the body.
15448         * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
15449         in their own loops.
15450         * tree-flow.h (find_omp_clause): Remove prototype.
15451         * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
15452         forcing vectorization of the loop, or if flag_tree_vectorize.
15453         (gate_tree_if_conversion): Similarly.
15454         * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
15455         gimple_build_omp_for.
15456         (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
15457         * tree-parloops (create_parallel_loop): Pass kind argument to
15458         gimple_build_omp_for.
15459         * tree-pretty-print.c (dump_omp_clause): Add cases for
15460         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
15461         OMP_CLAUSE__SIMDUID_.
15462         (dump_generic_node): Handle OMP_SIMD.
15463         * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
15464         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
15465         unroll OMP_SIMD loops here.
15466         * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
15467         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
15468         loop->safelen.
15469         (vect_analyze_data_refs): Handle simd loops.
15470         * tree-vect-loop.c (vectorizable_live_operation): Handle
15471         IFN_GOMP_SIMD*.
15472         * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
15473         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
15474         (vectorizable_load): Same.
15475         * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
15476         (struct simduid_to_vf): New.
15477         (simduid_to_vf::hash): New.
15478         (simduid_to-vf::equal): New.
15479         (struct simd_array_to_simduid): New.
15480         (simd_array_to_simduid::hash): New.
15481         (simd_array_to_simduid::equal): New.
15482         (adjust_simduid_builtins): New.
15483         (struct note_simd_array_uses_struct): New.
15484         (note_simd_array_uses_cb): New.
15485         (note_simd_array_uses): New.
15486         (vectorize_loops): Handle simd hints and adjust simd builtins
15487         accordingly.
15488         * tree-vectorizer.h (struct _stmt_vec_info): Add
15489         simd_lane_access_p field.
15490         (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
15491         * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
15492         OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
15493         (omp_clause_code_name): Same.
15494         (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
15495         OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
15496         * tree.def (OMP_SIMD): New entry.
15497         * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
15498         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
15499         (OMP_CLAUSE_DECL): Adjust range for new clauses.
15500         (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
15501         (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
15502         (OMP_CLAUSE_LINEAR_STEP): New.
15503         (OMP_CLAUSE_SAFELEN_EXPR): New.
15504         (OMP_CLAUSE__SIMDUID__DECL): New.
15505         (find_omp_clause): New prototype.
15507 2013-08-27  H.J. Lu  <hongjiu.lu@intel.com>
15509         * config/i386/driver-i386.c (host_detect_local_cpu): Update
15510         Haswell processor detection.
15512 2013-08-27  Christian Widmer  <shadow@umbrox.de>
15514         PR target/57927
15515         * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
15516         of Ivy Bridge and Haswell processors.  Assume core-avx2 for unknown
15517         AVX2 capable processors.
15519 2013-08-27  Tejas Belagod  <tejas.belagod@arm.com>
15521         * config/aarch64/arm_neon.h: Replace all inline asm implementations
15522         of vget_low_* with implementations in terms of other intrinsics.
15524 2013-08-27  Marc Glisse  <marc.glisse@inria.fr>
15526         PR middle-end/57219
15527         * doc/extend.texi (__builtin_isinf_sign): Restrict the return
15528         values to -1, 0 and 1.
15530 2013-08-27  Vidya Praveen  <vidyapraveen@arm.com>
15532         * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
15533         UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
15534         (<optab><mode>3_insn): Remove.
15535         (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
15536         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
15537         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
15538         (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
15539         (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
15540         (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
15541         (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
15542         (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
15543         (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
15544         (ror<mode>3_insn): Likewise.
15545         * config/aarch64/predicates.md (aarch64_simd_register): New.
15547 2013-08-27  Richard Biener  <rguenther@suse.de>
15549         PR tree-optimization/57521
15550         * tree-if-conv.c (if_convertible_bb_p): Verify that at least
15551         one edge is non-critical.
15552         (find_phi_replacement_condition): Make sure to use a non-critical
15553         edge.  Cleanup and remove old bug workarounds.
15554         (bb_postdominates_preds): Remove.
15555         (if_convertible_loop_p_1): Do not compute post-dominators.
15556         (combine_blocks): Do not free post-dominators.
15557         (main_tree_if_conversion): Likewise.
15558         (pass_data_if_conversion): Add TODO_verify_ssa.
15560 2013-08-27  DJ Delorie  <dj@redhat.com>
15562         * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
15564 2013-08-27  Yufeng Zhang  <yufeng.zhang@arm.com>
15566         * function.c (assign_parm_find_data_types): Set passed_mode and
15567         nominal_mode to the TYPE_MODE of nominal_type for the built
15568         pointer type in case of the struct-pass-by-reference.
15570 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
15572         * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
15573         (UINT16_TYPE): Change default to "unsigned int".
15575         * config/avr/avr.opt (mfract-convert-truncate): New option.
15576         * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
15577         is set, round negative fractional integers according to n1169
15578         when converting to integer types.
15580 2013-08-26  Jan Hubicka  <jh@suse.cz>
15582         * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
15583         methods can not be called indirectly when their address is not taken.
15585 2013-08-26  Jan Hubicka  <jh@suse.cz>
15587         * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
15588         ctor_for_folding.
15590 2013-08-26  Jan Hubicka  <jh@suse.cz>
15592         * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
15593         can be unshared.
15595 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
15597         * reload.c (find_valid_class): Allow classes that do not include
15598         FIRST_PSEUDO_REGISTER - 1.
15600 2013-08-26  Jan Hubicka  <jh@suse.cz>
15602         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
15603         fix edge count/frequency when speculation failed; fix type check
15604         for the direct call.
15606 2013-08-26  Jan Hubicka  <jh@suse.cz>
15608         * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
15610 2013-08-26  Jan Hubicka  <jh@suse.cz>
15612         * ipa-inline-transform.c (inline_transform): Be ready for basic block
15613         to be changed by edge redirection.
15615 2013-08-26  Jan Hubicka  <jh@suse.cz>
15617         * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
15618         formating; add sanity check.
15619         (cgraph_resolve_speculation): Add FIXME about scaling profiles.
15620         (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
15621         * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
15622         (resolve_noninline_speculation): Update callee keys, too.
15624 2013-08-26  Jan Hubicka  <jh@suse.cz>
15626         * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
15627         (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
15629 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
15631         * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
15632         into proper place.
15634 2013-08-26  Uros Bizjak  <ubizjak@gmail.com>
15636         * config/i386/i386.c (ix86_debug_options): Remove prototype.
15637         (x86_64_elf_select_section): Ditto.
15638         (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
15639         arguments.
15640         (ix86_pass_by_reference): Ditto.
15641         (output_set_got): Ditto.
15642         (ix86_unary_operator_ok): Ditto.
15643         (ix86_expand_builtin): Ditto.
15645 2013-08-23  Jan Hubicka  <jh@suse.cz>
15647         * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
15649 2013-08-23  Jan Hubicka  <jh@suse.cz>
15651         * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
15652         (tree_decl_with_vis): Add FINAL field.
15654 2013-08-23  Jeff Law  <law@redhat.com>
15656         * tree-ssa-pre.c (do_regular_insertion): Include the expression in
15657         the debugging dump when the expression is fully redundant.
15659 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
15661         * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
15662         * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
15663         * pretty-print.c (pp_formatted_text_data): Likewise.
15664         (pp_write_text_to_stream): Likewise.
15665         (pp_write_text_as_dot_label_to_stream): Likewise.
15666         (pp_append_r): Likewise.
15667         (pp_format): Likewise.
15668         (pp_flush): Likewise.
15669         (pp_clear_output_area): Likewise.
15670         (pp_append_text): Likewise.
15671         (pp_formatted_text): Likewise.
15672         (pp_remaining_character_count_for_line): Likewise.
15673         (pp_newline): Likewise.
15674         (pp_character): Likewise.
15675         (output_buffer::~output_buffer): Define.
15676         (pretty_printer::~pretty_printer): Destruct output buffer.
15677         * pretty-print.h (output_buffer::~output_buffer): Declare.
15678         (pretty_printer::~pretty_printer): Declare virtual.
15680 2013-08-24  Marc Glisse  <marc.glisse@inria.fr>
15682         PR other/57324
15683         * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
15684         HOST_WIDE_INT_M1U): New macros.
15685         * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
15686         fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
15687         unsigned -1 for lshift.
15688         * cse.c (cse_insn): Likewise.
15689         * double-int.c (rshift_double, lshift_double): Likewise.
15690         * builtins.c (fold_builtin_bitop): Likewise.
15691         * combine.c (force_to_mode): Likewise.
15692         * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
15693         * simplify-rtx.c (simplify_const_unary_operation,
15694         simplify_const_binary_operation): Likewise.
15695         * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
15696         check_va_list_escapes): Likewise.
15697         * rtlanal.c (nonzero_bits1): Likewise.
15698         * expmed.c (expand_smod_pow2): Likewise.
15699         * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
15701 2013-08-23  Jan Hubicka  <jh@suse.cz>
15703         * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
15704         as having address taken.
15706 2013-08-23  Jan Hubicka  <jh@suse.cz>
15708         * ipa-utils.h (method_class_type): Declare.
15709         * ipa-devirt.c (method_class_type): Export.
15711         * cgraphunit.c (analyze_functions): Do basic devirtualization;
15712         do not walk base classes of anonymous types.
15714 2013-08-23  Kaz Kojima  <kkojima@gcc.gnu.org>
15716         PR rtl-optimization/58220
15717         PR regression/58221
15718         * final.c (reemit_insn_block_notes): Use NEXT_INSN to
15719         handle SEQUENCE insns properly.
15721 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
15723         * pretty-print.h (pp_newline_and_flush): Declare.  Remove macro
15724         definition.
15725         (pp_newline_and_indent): Likewise.
15726         (pp_separate_with): Likewise.
15727         * pretty-print.c (pp_newline_and_flush): Define.
15728         (pp_newline_and_indent): Likewise.
15729         (pp_separate_with): Likewise.
15731 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
15733         PR target/58218
15734         * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
15735         * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
15737 2013-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
15739         * config/i386/predicates.md (ext_sse_reg_operand): New.
15740         * config/i386/i386.md (*movti_internal): Use
15741         predicate to determine if EVEX is needed.
15742         (*movsi_internal): Ditto.
15743         (*movdf_internal): Ditto.
15744         (*movsf_internal): Ditto.
15745         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
15747 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
15749         PR tree-optimization/58209
15750         * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
15751         (find_tail_calls): Give up for pointer result types if m is non-NULL.
15752         (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
15753         emit POINTER_PLUS_EXPR.
15754         (create_tailcall_accumulator): For pointer result type accumulate in
15755         sizetype type.
15757 2013-08-22  Paolo Carlini  <paolo.carlini@oracle.com>
15759         * configure.ac: Add backslashes missing from the last change.
15760         * configure: Regenerate.
15762 2013-08-22  Jan Hubicka  <jh@susue.cz>
15764         * ipa.c (function_and_variable_visibility): First remember function
15765         was global and then make it local.
15767 2013-08-22  Julian Brown  <julian@codesourcery.com>
15769         * configure.ac: Add aarch64 to list of arches which use "nop" in
15770         debug_line test.
15771         * configure: Regenerate.
15773 2013-08-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15775         * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
15776         gnu_libc_has_function.
15777         * config/s390/tpf.h: Likewise.
15779 2013-08-22  Jan Hubicka  <jh@susue.cz>
15781         * timevar.c (validate_phases): Add cast.
15783 2013-08-22  Jan Hubicka  <jh@susue.cz>
15785         * timevar.c (validate_phases): Use size_t for memory.
15786         * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
15788 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
15790         * pretty-print.h (output_buffer::output_buffer): Declare.
15791         (pretty_printer::pretty_printer): Likewise.
15792         (pp_construct): Remove.
15793         * pretty-print.c (output_buffer::output_buffer): Define.
15794         (pretty_printer::pretty_printer): Rename from pp_construct.  Simplify.
15795         * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
15796         (print_gimple_expr): Likewise.
15797         (print_gimple_seq): Likewise.
15798         (gimple_dump_bb): Likewise.
15799         * sched-vis.c (dump_value_slim): Likewise.
15800         (dump_insn_slim): Likewise.
15801         (dump_rtl_slim): Likewise.
15802         (str_pattern_slim): Likewise.
15803         * tree-mudflap.c (mf_varname_tree): Likewise.
15804         * graph.c (print_graph_cfg): Likewise.
15805         (start_graph_dump): Likewise.
15806         * tree-pretty-print.c (maybe_init_pretty_print): Likewise.  Use
15807         placement-new.
15808         * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
15809         pretty printer initialization.
15810         * coretypes.h (diagnostic_context): Remove superflous type alias
15811         declaration.
15812         (pretty_printer): Likewise.  Declare directly as a class.
15813         (pretty_print_info): Remove declaration as class.
15814         * asan.c (asan_emit_stack_protection): Remove call to pp_construct
15815         and pp_clear_output_area.
15816         (asan_add_global): Likewise.
15818 2013-08-22  Jan Hubicka  <jh@suse.cz>
15820         * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
15821         * ipa-utils.h (update_type_inheritance_graph): Declare.
15822         (possible_polymorphic_call_target_p): Declare.
15823         (possible_polymorphic_call_target_p): New.
15824         * ipa-devirt.c: Update toplevel comments.
15825         (cached_polymorphic_call_targets): Move up.
15826         (odr_type_d): Move ID down.
15827         (polymorphic_type_binfo_p): Update comment.
15828         (odr_hasher::remove): Likewise;
15829         (get_odr_type): Set anonymous_namespace.
15830         (dump_odr_type): Dump it.
15831         (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
15832         (maybe_record_node): Record node in cached_polymorphic_call_targets.
15833         (record_binfo): Add comment.
15834         (free_polymorphic_call_targets_hash): Do not ICE when cache is not
15835         built.
15836         (devirt_node_removal_hook): Do not iCE when cache is freed.
15837         (possible_polymorphic_call_target_p): New predicate.
15838         (update_type_inheritance_graph): New function.
15840 2013-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15841             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15842             Sergey Lega  <sergey.s.lega@intel.com>
15843             Anna Tikhonova  <anna.tikhonova@intel.com>
15844             Ilya Tocar  <ilya.tocar@intel.com>
15845             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15846             Ilya Verbin  <ilya.verbin@intel.com>
15847             Kirill Yukhin  <kirill.yukhin@intel.com>
15848             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15850         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
15851         (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
15852         (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
15853         (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
15854         (OPTION_MASK_ISA_AVX2_UNSET): Update.
15855         (OPTION_MASK_ISA_AVX512F_UNSET): New.
15856         (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
15857         (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
15858         (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
15859         (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
15860         OPT_mavx512pf, OPT_mavx512er cases.
15861         * config/i386/constraints.md (v): New constraint.
15862         (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
15863         * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
15864         (bit_AVX512CD): New.
15865         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
15866         AVX512F, AVX512ER, AVX512PF, AVX512CD features.
15867         * config/i386/i386-c.c (ix86_target_macros_internal):
15868         Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
15869         __AVX512PF__.
15870         * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
15871         (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
15872         * config/i386/i386.c (regclass_map, dbx_register_map)
15873         (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
15874         (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
15875         (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
15876         -mavx512pf options.
15877         (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
15878         PTA_AVX512PF, PTA_AVX512CD.  Handle -mavx512f, -mavx512er, -mavx512cd,
15879         -mavx512pf options.  Fix formatting.
15880         (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
15881         targets.  Squash EVEX_SSE_REGS if AVX512F is disabled.
15882         (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
15883         -mavx512cd, -mavx512pf options.
15884         (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
15885         (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
15886         (ix86_preferred_output_reload_class): Replace SSE_REGS with
15887         ALL_SSE_REGS.
15888         (ix86_hard_regno_mode_ok): Support 512-bit registers.
15889         (ix86_set_reg_reg_cost): Ditto.
15890         (x86_order_regs_for_local_alloc): Ditto.
15891         (MAX_VECT_LEN): Extend to 64-byte.
15892         (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
15893         * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
15894         (TARGET_AVX512ER, TARGET_AVX512CD): New.
15895         (BIGGEST_ALIGNMENT): Extend to 512-bits.
15896         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
15897         (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
15898         (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
15899         (SSE_REG_MODE_P): Support new modes.
15900         (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
15901         (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
15902         (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
15903         (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
15904         (REG_CLASS_CONTENTS): Add new registers.
15905         (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
15906         (EXT_REX_SSE_REGNO_P): New.
15907         (HI_REGISTER_NAMES): Add new registers.
15908         * config/i386/i386.md: Define constants for new registers.
15909         (mode): Add new 512-bit modes.
15910         (prefix): Support evex prefix.
15911         (isa): Support avx512f, noavx512f, fma_avx512f.
15912         (ssemodesuffix): Add new 512-bit modes.
15913         (movxi): New.
15914         (*movxi_internal_avx512f): Ditto.
15915         (*movdi_internal): Replace constraint "x" with the new constraint "v".
15916         Support MODE_XI.
15917         (*movsi_internal): Likewise.
15918         (*movdf_internal): Likewise.
15919         (*movsf_internal): Likewise.
15920         (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
15921         (<code><mode>3): Likewise.
15922         * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
15923         New.
15924         * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
15925         with the new constraint "v".
15926         * config/i386/sse.md (*mov<mode>_internal): Support new registers and
15927         modes.
15928         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
15929         with the new constraint "v".
15930         (<sse2>_loaddqu<avxsizesuffix>): Likewise.
15931         (<sse2>_storedqu<avxsizesuffix>): Likewise.
15932         (*<plusminus_insn><mode>3): Likewise.
15933         (<sse>_vm<plusminus_insn><mode>3): Likewise.
15934         (*mul<mode>3): Likewise.
15935         (<sse>_vmmul<mode>3): Likewise.
15936         (<sse>_div<mode>3): Likewise.
15937         (<sse>_vmdiv<mode>3): Likewise.
15938         (<sse>_sqrt<mode>2): Likewise.
15939         (<sse>_vmsqrt<mode>2): Likewise.
15940         (*<code><mode>3_finite): Likewise.
15941         (*<code><mode>3) <smaxmin>: Likewise.
15942         (<sse>_vm<code><mode>3): Likewise.
15943         (*<code><mode>3) <any_logic>: Likewise.
15944         (*fma_fmadd_<mode>): Likewise.
15945         (*fma_fmsub_<mode>): Likewise.
15946         (*fma_fnmadd_<mode>): Likewise.
15947         (*fma_fnmsub_<mode>): Likewise.
15948         (*fma_fmaddsub_<mode>): Likewise.
15949         (*fma_fmsubadd_<mode>): Likewise.
15950         (*fmai_fmadd_<mode>): Likewise.
15951         (*fmai_fmsub_<mode>): Likewise.
15952         (*fmai_fnmadd_<mode>): Likewise.
15953         (*fmai_fnmsub_<mode>): Likewise.
15954         (sse_cvtsi2ss): Likewise.
15955         (sse_cvtsi2ssq): Likewise.
15956         (sse_cvtss2si): Likewise.
15957         (sse_cvtss2si_2): Likewise.
15958         (sse_cvtss2siq): Likewise.
15959         (sse_cvtss2siq_2): Likewise.
15960         (sse_cvttss2si): Likewise.
15961         (sse_cvtss2siq_2): Likewise.
15962         (float<sseintvecmodelower><mode>2): Likewise.
15963         (sse2_cvtsd2si_2): Likewise.
15964         (sse2_cvtsd2siq_2): Likewise.
15965         (*<plusminus_insn><mode>3): Likewise.
15966         (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
15967         (*<sse4_1_avx2>_mul<mode>3): Likewise.
15968         (ashr<mode>3): Likewise.
15969         (<shift_insn><mode>3): Likewise.
15970         (avx2_<code><mode>3): Likewise.
15971         (*avx2_<code><mode>3): Likewise.
15972         (*andnot<mode>3): Likewise.
15973         (*<code><mode>3) <any_logic>: Likewise.
15974         (abs<mode>2): Likewise.
15975         (avx2_permvar<mode>): Likewise.
15976         (avx2_perm<mode>_1): Likewise.
15977         (*avx_vpermilp<mode>): Likewise.
15978         (avx_vpermilvar<mode>3): Likewise.
15979         (avx2_ashrv<mode>): Likewise.
15980         (avx2_<shift_insn>v<mode>): Likewise.
15981         * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
15982         -mavx512cd.
15983         * doc/rtl.texi: Document XImode.
15985 2013-08-21  Jeff Law  <law@redhat.com>
15987         * tree-flow.h (register_jump_thread): Pass vector of edges
15988         instead of each important edge.
15989         * tree-ssa-threadedge.c (thread_across_edge): Build the jump
15990         thread path into a vector and pass that to register_jump_thread.
15991         * tree-ssa-threadupdate.c (register_jump_thread): Conver the
15992         passed in edge vector to the current 3-edge form.
15994         Revert:
15995         2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
15997         * dce.c (fini_dce): Call df_analyze again just in case
15998         delete_unmarked_insns removed anything.
16000 2013-08-21  Joern Rennecke  <joern.rennecke@embecosm.com>
16002         * reload.h (struct reg_equivs): Rename to ..
16003         (struct reg_equivs_s): .. this.
16005 2013-08-20  Martin Liska  <marxin.liska@gmail.com>
16007         * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
16009 2013-08-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16011         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
16013 2013-08-21  Jeff Law  <law@redhat.com>
16015         * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
16016         simplify assignments too.  If the RHS collapses to a singleton
16017         range, then return the value for the range.
16019 2013-08-21  Kirill Yukhin  <kirill.yukhin@intel.com>
16021         * config/i386/sse.md (V16): Rename to...
16022         (VMOVE): this.
16023         (mov<mode>): Update iterator name.
16024         (*mov<mode>_internal): Ditto.
16025         (push<mode>1): Ditto.
16026         (movmisalign<mode>): Ditto.
16028 2013-08-20  Jan Hubicka  <jh@suse.cz>
16030         PR bootstrap/58186
16031         * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
16032         entry for direct edges.
16033         (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
16035 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
16037         Revert my last two changes, r201865 and r201864:
16039         Revert r201865:
16040         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
16042         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
16043         instances can own GC refs.
16045         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
16046         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
16047         (gcc::context::gt_pch_nx): Likewise.
16048         (gcc::context::gt_pch_nx):  Likewise.
16049         * ggc.h (gt_ggc_mx <T>): New.
16050         (gt_pch_nx_with_op <T>): New.
16051         (gt_pch_nx <T>): New.
16052         * passes.c (opt_pass::gt_ggc_mx): New.
16053         (opt_pass::gt_pch_nx): New.
16054         (opt_pass::gt_pch_nx_with_op): New.
16055         (pass_manager::gt_ggc_mx): New.
16056         (pass_manager::gt_pch_nx): New.
16057         (pass_manager::gt_pch_nx_with_op): New.
16058         (pass_manager::operator new): Use
16059         ggc_internal_cleared_alloc_stat rather than xcalloc.
16060         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
16061         (pass_manager::gt_ggc_mx): New.
16062         (pass_manager::gt_pch_nx): New.
16063         (pass_manager::gt_pch_nx_with_op): New.
16064         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
16065         (opt_pass::operator new): New.
16066         (opt_pass::gt_ggc_mx): New.
16067         (opt_pass::gt_pch_nx): New.
16068         (opt_pass::gt_pch_nx_with_op): New.
16070         Revert r201864:
16071         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
16073         * Makefile.in (GTFILES): Add context.h.
16074         * context.c (gcc::context::operator new): New.
16075         (gcc::context::gt_ggc_mx): New.
16076         (gcc::context::gt_pch_nx): New.
16077         (gcc::context::gt_pch_nx): New.
16078         * context.h (gcc::context): Add GTY((user)) marking.
16079         (gcc::context::operator new): New.
16080         (gcc::context::gt_ggc_mx): New.
16081         (gcc::context::gt_pch_nx): New.
16082         (gcc::context::gt_pch_nx): New.
16083         (g): Add GTY marking.
16084         (gt_ggc_mx (gcc::context *)): New.
16085         (gt_pch_nx (gcc::context *)): New.
16086         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
16087         void *cookie)): New.
16088         * gengtype.c (open_base_files) <ifiles>: Add context.h.
16090 2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
16092         * dce.c (fini_dce): Call df_analyze again just in case
16093         delete_unmarked_insns removed anything.
16095 2013-08-20  Teresa Johnson  <tejohnson@google.com>
16097         PR rtl-optimizations/57451
16098         * final.c (reemit_insn_block_notes): Prevent lexical blocks
16099         from crossing split section boundaries.
16101 2013-08-20  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
16103         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
16104         * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
16105         with MULTLIB_DEFAULTS.
16107 2013-08-20  Nick Clifton  <nickc@redhat.com>
16109         * target.def (narrow_volatile_bitfield): Note that the default
16110         value is false, not !TARGET_STRICT_ALIGN.
16111         * doc/tm.texi: Regenerate.
16113 2013-08-20  Pavel Chupin  <pavel.v.chupin@intel.com>
16115         Fix LIB_SPEC for systems without libpthread.
16117         * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
16118         * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
16119         for Android.
16120         * config/i386/linux-common.h: Likewise.
16121         * config/mips/linux-common.h: Likewise.
16123 2013-08-20  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
16125         * tree-ssa-ccp.c (get_default_value): Remove redundant condition
16126         checks.
16128 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
16130         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
16131         instances can own GC refs.
16133         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
16134         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
16135         (gcc::context::gt_pch_nx): Likewise.
16136         (gcc::context::gt_pch_nx):  Likewise.
16137         * ggc.h (gt_ggc_mx <T>): New.
16138         (gt_pch_nx_with_op <T>): New.
16139         (gt_pch_nx <T>): New.
16140         * passes.c (opt_pass::gt_ggc_mx): New.
16141         (opt_pass::gt_pch_nx): New.
16142         (opt_pass::gt_pch_nx_with_op): New.
16143         (pass_manager::gt_ggc_mx): New.
16144         (pass_manager::gt_pch_nx): New.
16145         (pass_manager::gt_pch_nx_with_op): New.
16146         (pass_manager::operator new): Use
16147         ggc_internal_cleared_alloc_stat rather than xcalloc.
16148         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
16149         (pass_manager::gt_ggc_mx): New.
16150         (pass_manager::gt_pch_nx): New.
16151         (pass_manager::gt_pch_nx_with_op): New.
16152         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
16153         (opt_pass::operator new): New.
16154         (opt_pass::gt_ggc_mx): New.
16155         (opt_pass::gt_pch_nx): New.
16156         (opt_pass::gt_pch_nx_with_op): New.
16158 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
16160         * Makefile.in (GTFILES): Add context.h.
16161         * context.c (gcc::context::operator new): New.
16162         (gcc::context::gt_ggc_mx): New.
16163         (gcc::context::gt_pch_nx): New.
16164         (gcc::context::gt_pch_nx): New.
16165         * context.h (gcc::context): Add GTY((user)) marking.
16166         (gcc::context::operator new): New.
16167         (gcc::context::gt_ggc_mx): New.
16168         (gcc::context::gt_pch_nx): New.
16169         (gcc::context::gt_pch_nx): New.
16170         (g): Add GTY marking.
16171         (gt_ggc_mx (gcc::context *)): New.
16172         (gt_pch_nx (gcc::context *)): New.
16173         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
16174         void *cookie)): New.
16175         * gengtype.c (open_base_files) <ifiles>: Add context.h.
16177 2013-08-20  Alan Modra  <amodra@gmail.com>
16179         PR target/57865
16180         * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
16181         (rs6000_emit_epilogue): Likewise.
16183 2013-08-19  Dehao Chen  <dehao@google.com>
16185         * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
16187 2013-08-19  Peter Bergner  <bergner@vnet.ibm.com>
16188             Jakub Jelinek  <jakub@redhat.com>
16190         * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
16191         (BUILT_IN_FABSD64): Likewise.
16192         (BUILT_IN_FABSD128): Likewise.
16193         * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
16194         (fold_builtin_1): Likewise.
16195         * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
16196         destination and source operands.
16197         (*abstd2_fpr): Likewise.
16198         (*nabstd2_fpr): Likewise.
16200 2013-08-19  Richard Sandiford  <rdsandiford@googlemail.com>
16202         * config/mips/mips.c (mips_adjust_insn_length): Add checks for
16203         JUMP_P and INSN_P.
16205 2013-08-19  Aldy Hernandez  <aldyh@redhat.com>
16207         * doc/invoke.texi (-fcilkplus): Clarify that implementation is
16208         incomplete.
16210 2013-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16212         * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
16213         * builtins.c (default_libc_has_function): New.
16214         (gnu_libc_has_function): Ditto.
16215         (no_c99_libc_has_function): Ditto.
16216         (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
16217         instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
16218         (fold_builtin_sincos): Likewise.
16219         (fold_builtin_cexp): Likewise.
16220         * builtins.def (DEF_C94_BUILTIN): Likewise.
16221         (DEF_C99_BUILTIN): Likewise.
16222         (DEF_C99_C90RES_BUILTIN): Likewise.
16223         (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
16224         definitions to using this define.
16225         * config/darwin-protos.h (darwin_libc_has_function): New.
16226         * config/darwin.c (darwin_libc_has_function): Ditto.
16227         * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
16228         TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
16229         * config/darwin.h: Ditto.
16230         * config/elfos.h: Ditto.
16231         * config/freebsd.h: Ditto.
16232         * config/i386/cygming.h: Ditto.
16233         * config/i386/djgpp.h: Ditto.
16234         * config/i386/i386-interix.h: Ditto.
16235         * config/microblaze/microblaze.h: Ditto.
16236         * config/mmix/mmix.h: Ditto.
16237         * config/gnu-user.h: Ditto.
16238         * config/ia64/hpux.h: Ditto.
16239         * config/pa/pa-hpux.h: Ditto.
16240         * config/pdp11/pdp11.h: Ditto.
16241         * config/picochip/picochip.h: Ditto.
16242         * config/linux.h: Ditto.
16243         * config/netbsd.h: Ditto.
16244         * config/openbsd.h: Ditto.
16245         * config/rs6000/aix43.h: Ditto.
16246         * config/rs6000/aix51.h: Ditto.
16247         * config/rs6000/aix52.h: Ditto.
16248         * config/rs6000/aix53.h: Ditto.
16249         * config/rs6000/aix61.h: Ditto.
16250         * config/rs6000/darwin.h: Ditto.
16251         * config/rs6000/linux.h: Ditto.
16252         * config/rs6000/linux64.h: Ditto.
16253         * config/s390/tpf.h: Ditto.
16254         * config/sol2-10.h: Ditto.
16255         * config/sol2.h: Ditto.
16256         * config/vms/vms.h: Ditto.
16257         * config/vxworks.h: Ditto.
16258         * config/linux-android.c (linux_android_libc_has_function):
16259         New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
16260         * config/linux-protos.h (linux_android_libc_has_function):
16261         New declaration.
16262         * config/i386/i386.c (ix86_libc_has_function): New.
16263         * config/i386/i386-protos.h
16264         (ix86_libc_has_function): New declaration.
16265         * config/i386/i386.md
16266         ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
16267         ("isinf<mode>2): Likewise.
16268         * convert.c (convert_to_integer): Using new target hook
16269         TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
16270         TARGET_C99_FUNCTIONS.
16271         * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
16272         * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
16273         * coretypes.h (function_class): New enum for different
16274         classes of functions.
16275         * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
16276         * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
16277         (TARGET_HAS_SINCOS): Likewise.
16278         (TARGET_LIBC_HAS_FUNCTION): New.
16279         * doc/tm.texi: Regenerated.
16280         * targhooks.h (default_libc_has_function): New declaration.
16281         (no_c99_libc_has_function): Ditto.
16282         (gnu_libc_has_function): Ditto.
16283         * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
16284         and TARGET_HAS_SINCOS.
16286 2013-08-18  Jan Hubicka  <jh@suse.cz>
16288         * Makeifle-in (ipa-devirt.o): New.
16289         (GTFILES): Add ipa-utils.h and ipa-devirt.c
16290         * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
16291         (analyze_functions): Look into possible targets of polymorphic call.
16292         * dumpfile.c (dump_files): Add type-inheritance dump.
16293         * dumpfile.h (TDI_inheritance): New.
16294         * ipa-devirt.c: New file.
16295         * ipa-utils.h (odr_type_d): Forward declare.
16296         (odr_type): New type.
16297         (build_type_inheritance_graph): Declare.
16298         (possible_polymorphic_call_targets): Declare and introduce inline
16299         variant when only edge is pased.
16300         (dump_possible_polymorphic_call_targets): Likewise.
16301         * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
16302         * tree.c (type_in_anonymous_namespace_p): Break out from ...
16303         (types_same_for_odr): ... here.
16304         * tree.h (type_in_anonymous_namespace_p): Declare.
16306 2013-08-18  Jakub Jelinek  <jakub@redhat.com>
16308         PR tree-optimization/58006
16309         * tree-parloops.c (take_address_of): Don't ICE if get_name
16310         returns NULL.
16311         (eliminate_local_variables_stmt): Remove clobber stmts.
16313 2013-08-18  Eric Botcazou  <ebotcazou@adacore.com>
16315         * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
16316         error message is issued for an alias to undefined symbol.
16318 2013-08-18  Jan Hubicka  <jh@suse.cz>
16320         * cgraph.c (cgraph_create_indirect_edge): Discover
16321         polymorphic calls and record basic info into indirect_info.
16322         * gimple-fold.c (gimple_fold_call): When doing BINFO based
16323         devirtualization, ignore objc function calls.
16324         * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
16325         call with no parm index info.
16326         * ipa-prop.c (ipa_analyze_call_uses): Likewise.
16327         * tree.c (virtual_method_call_p): New function.
16328         * tree.h (virtual_method_call_p): Declare.
16330 2013-08-16  Jan Hubicka  <jh@suse.cz>
16332         PR middle-end/58179
16333         * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
16335 2013-08-16  David Edelsohn  <dje.gcc@gmail.com>
16337         * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
16338         attribute.
16340 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
16342         * gengtype.c (type_for_name): Add special-case support for
16343         locating types within the "gcc::" namespace.
16344         (open_base_files): Emit a "using namespace gcc" directive.
16346 2013-08-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
16348         PR target/58160
16349         * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
16350         memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
16352         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
16353         array instead of each individual operand as a separate argument.
16354         (emit_fusion_gpr_load): Likewise.
16355         (expand_fusion_gpr_load): Add new function declaration.
16357         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
16358         signature to have the operands passed as an array, instead of as
16359         separate arguments.  Allow ZERO_EXTEND to be in the memory
16360         address, and also SIGN_EXTEND if -mpower8-fusion-sign.  Do not
16361         depend on the register live/dead flags when peepholes are run.
16362         (expand_fusion_gpr_load): New function to be called from the
16363         peephole2 pass, to change the register that addis sets to be the
16364         target register.
16365         (emit_fusion_gpr_load): Change the calling signature to have the
16366         operands passed as an array, instead of as separate arguments.
16367         Allow ZERO_EXTEND to be in the memory address, and also
16368         SIGN_EXTEND if -mpower8-fusion-sign.
16370         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
16371         unspec enumeration.
16372         (power8 fusion peephole/peephole2): Rework the fusion peepholes to
16373         adjust the register addis loads up in the peephole2 pass.  Do not
16374         depend on the register live/dead state when the peephole pass is done.
16376 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
16378         * gengtype.c (create_user_defined_type): Ensure that the kind
16379         is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
16380         declaration is seen before the GTY((user)) marking.
16382 2013-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16384         PR target/58105
16385         * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
16387 2013-08-16  Jan Hubicka  <jh@suse.cz>
16389         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
16390         arugment expected_type.
16391         (gimple_fold_call): Use it.
16392         * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
16393         * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
16394         * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
16395         (try_make_edge_direct_virtual_call): Likewise.
16396         * tree.c (obj_type_ref_class): New.
16397         * tree.h (obj_type_ref_class): Use it.
16399 2013-08-16  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16401         * sched-vis.c (rtl_slim_pp_initialized): Remove.
16402         (rtl_slim_pp): Likewise.
16403         (init_rtl_slim_pretty_print): Likewise.
16404         (dump_value_slim):  Don't call it.  Use local pretty printer.
16405         (dump_insn_slim): Likewise.
16406         (dump_rtl_slim): Likewise.
16407         (str_pattern_slim): Likewise.
16408         * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
16409         Simplify.
16411 2013-08-16  Jakub Jelinek  <jakub@redhat.com>
16413         PR tree-optimization/58164
16414         * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
16415         walk gimple_goto_dest of GIMPLE_GOTO.
16417         PR tree-optimization/58165
16418         * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
16419         bi_call must be the last stmt in a bb, don't split_block, instead
16420         use fallthru edge from it and give up if there is none.
16421         Release conds vector when returning early.
16423 2013-08-14  Xinliang David Li  <davidxl@google.com>
16425         * config/i386/i386.c (ix86_option_override_internal):
16426         Remove unused variable and field.
16428 2013-08-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16430         PR target/57949
16431         * doc/invoke.texi: Add documentation of mcompat-align-parm option.
16432         * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
16433         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
16434         and Linux, correct BLKmode alignment when 128-bit alignment is
16435         required and compatibility flag is not set.
16436         (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
16437         for zero-size arguments when compatibility flag is not set.
16439 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
16441         PR tree-optimization/58145
16442         * tree-sra.c (build_ref_for_offset): If prev_base has
16443         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
16445 2013-08-14  Xinliang David Li  <davidxl@google.com>
16447         * config/i386/i386.c (ix86_option_override_internal):
16448         Fix uninitialized variable error.
16450 2013-08-14  Xinliang David Li  <davidxl@google.com>
16452         * config/i386/i386.opt: Define two new options.
16453         * config/i386/x86-tune.def: Add arch selector field in macros.
16454         * config/i386/i386.h: Adjust macro definition.
16455         * config/i386/i386.c (ix86_option_override_internal):
16456         Refactor the code.
16457         (parse_mtune_ctrl_str): New function.
16458         (set_ix86_tune_features): New function.
16459         (ix86_function_specific_restore): Call the new helper function.
16461 2013-08-14  Andrey Belevantsev  <abel@ispras.ru>
16463         PR rtl-optimization/57662
16464         * sel-sched.c (code_motion_process_successors): When the current insn
16465         is removed after the recursive traversal, break from the loop.
16466         Add comments and debug printouts.
16468 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
16469             Alexandre Oliva  <aoliva@redhat.com>
16471         PR target/58067
16472         * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
16473         and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
16474         there also UNSPEC_PLTOFF.
16476 2013-08-14  Marek Polacek  <polacek@redhat.com>
16478         * ipa-inline-analysis.c (add_clause): Avoid shifting integer
16479         NUM_CONDITIONS bit positions.
16481 2013-08-13  Cary Coutant  <ccoutant@google.com>
16483         * dwarf2out.c (CHECKSUM_BLOCK): New macro.
16484         (attr_checksum): Hash vector contents instead of pointer.
16485         (attr_checksum_ordered): Likewise.
16487 2013-08-13  Uros Bizjak  <ubizjak@gmail.com>
16489         * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
16490         when Pmode != word_mode.  Add length_address attribute.
16491         (sse3_monitor_<mode>): Merge from sse3_monitor and
16492         sse3_monitor64_<mode> insn patterns.  Emit addr32 prefix when
16493         Pmode != word_mode.  Update insn length attribute.
16494         * config/i386/i386.c (ix86_option_override_internal): Update
16495         ix86_gen_monitor selection for merged sse3_monitor insn.
16497 2013-08-13  Julian Brown  <julian@codesourcery.com>
16499         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
16500         perform invalid legitimization on greater-than-word-size modes for
16501         TARGET_E500_DOUBLE.
16503 2013-08-13  Vladimir Makarov  <vmakarov@redhat.com>
16505         * ira.c (setup_class_translate_array): Use aclass instead of cl
16506         for classes not fully covered by allocno classes.
16508 2013-08-13  Jakub Jelinek  <jakub@redhat.com>
16510         PR tree-optimization/57661
16511         * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
16512         * tree-inline.c (tree_function_versioning): Initialize it.
16513         (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
16514         if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
16515         that is not being copied.
16517         PR sanitizer/56417
16518         * asan.c (instrument_strlen_call): Fix typo in comment.
16519         Use char * type even for the lhs of POINTER_PLUS_EXPR.
16521 2013-08-13  Steve Ellcey  <sellcey@mips.com>
16523         * config/mips/mips.md (prefetch): Use lw instead of ld on
16524         loongson in 32bit mode.
16526 2013-08-13  Nick Clifton  <nickc@redhat.com>
16528         * config.gcc: (avr-linux): Allow for tmake_file not being empty.
16530 2013-08-13  Jan Hubicka  <jh@suse.cz>
16532         * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
16533         introduced edge; fix typo in sanity check.
16534         (cgraph_resolve_speculation): Export; improve diagnostic.
16535         (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
16536         speculation at type mismatch.
16537         * cgraph.h (cgraph_turn_edge_to_speculative): Update.
16538         (cgraph_resolve_speculation): Declare.
16539         (symtab_can_be_discarded): New function.
16540         * value-prof.c (gimple_ic_transform): Remove actual transform code.
16541         * ipa-inline-transform.c (speculation_removed): New global var.
16542         (clone_inlined_nodes): See if speculation can be removed.
16543         (inline_call): If speculations was removed, we growths may not match.
16544         * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
16545         (speculation_useful_p): New function.
16546         (resolve_noninline_speculation): New function.
16547         (inline_small_functions): Resolve useless speculations.
16548         * ipa-inline.h (speculation_useful_p): Declare
16549         * ipa.c (can_replace_by_local_alias): Simplify.
16550         (ipa_profile): Produce speculative calls in non-lto, too;
16551         add simple cost model; produce local aliases.
16553 2013-08-13  David Malcolm  <dmalcolm@redhat.com>
16555         * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
16556         PASS_MANAGER_H.
16558 2013-08-12  Paolo Carlini  <paolo.carlini@oracle.com>
16560         * config/i386/i386.c (ix86_function_versions): Use error + inform.
16562 2013-08-12  Uros Bizjak  <ubizjak@gmail.com>
16564         * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
16565         iterator instead of X87MODEF.
16567 2013-08-12  Perez Read  <netfirewall@gmail.com>
16569         PR target/58132
16570         * config/i386/i386.md (*movabs<mode>_1):  Add <ptrsize> PTR before
16571         operand 0 for intel asm alternative.
16572         (*movabs<mode>_2): Ditto for operand 1.
16574 2013-08-12  James Greenhalgh  <james.greenhalgh@arm.com>
16576         * config/aarch64/arm_none.h
16577         (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
16579 2013-08-12  Nick Clifton  <nickc@redhat.com>
16581         * config.gcc (m32r-linux): Allow for tmake_file not being empty.
16583 2013-08-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
16585         * config/i386/i386.md (floatunssi<mode>2 expand): Add new
16586         expand for QI/HImode operand to produce more effictive code for
16587         unsigned char(short) --> float(double) conversion.
16589 2013-08-12  Alexander Monakov  <amonakov@ispras.ru>
16591         * doc/invoke.texi: Mention that -ftls-model does not force the final
16592         model.
16594 2013-08-12  Marek Polacek  <polacek@redhat.com>
16595             Marc Glisse  <marc.glisse@inria.fr>
16597         PR tree-optimization/57980
16598         * tree-tailcall.c (process_assignment): Call build_minus_one_cst
16599         when creating -1 constant.
16601 2013-08-10  Jan Hubicka  <jh@suse.cz>
16603         Workaround binutils PR14342.
16604         * tree-profile.c (init_ic_make_global_vars): Add LTO path.
16605         (gimple_init_edge_profiler): Likewise.
16606         (gimple_gen_ic_func_profiler): Likewise.
16608 2013-08-09  Jan Hubicka  <jh@suse.cz>
16610         * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
16612 2013-08-09  Xinliang David Li  <davidxl@google.com>
16614         * config/i386/stringop.def: New file.
16615         * config/i386/stringop.opt: New file.
16616         * config/i386/i386-opts.h: Include stringopt.def.
16617         * config/i386/i386.opt: Include stringopt.opt.
16618         * config/i386/i386.c (ix86_option_override_internal):
16619         Override default size based stringop inline strategies with options.
16620         * config/i386/i386.c (ix86_parse_stringop_strategy_string):
16621         New function.
16623 2013-08-09  Jan Hubicka  <jh@suse.cz>
16625         * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
16627 2013-08-09  Jan Hubicka  <jh@suse.cz>
16629         * cgraph.c (cgraph_resolve_speculation): Cut frequency to
16630         CGRAPH_FREQ_MAX.
16631         (dump_cgraph_node): Dump profile-id.
16632         * cgraph.h (cgraph_indirect_call_info): Add common_target_id
16633         and common_target_probability.
16634         * lto-cgraph.c (lto_output_edge): Stream common targets.
16635         (lto_output_node): Stream profile ids.
16636         (input_node): Stream profile ids.
16637         (input_edge): Stream common targets.
16638         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
16639         * ipa.c: Include value-prof.h
16640         (ipa_profile_generate_summary): Turn indirect call statement histograms
16641         into common targets.
16642         (ipa_profile): Turn common targets into speculative edges.
16644 2013-08-09  Jan Hubicka  <jh@suse.cz>
16646         * cgraph.h (cgraph_node): Add profile_id.
16647         * value-prof.c (cgraph_node_map): Turn into pointer_map.
16648         (init_node_map): Rewrite to handle hashes increas of incremental IDs.
16649         (del_node_map): Update.
16650         (find_func_by_funcdef_no): Replace by ...
16651         (find_func_by_profile_id): ... this one.
16652         (gimple_ic_transform): Do not remove useful histograms when
16653         speculation is not done; dump info when indirect call removal
16654         can happen at LTO.
16655         * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
16656         * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
16657         (__gcov_indirect_call_profiler_v2): .. this one.
16658         * profile.h (init_node_map): Update.
16659         * coverage.c (coverage_compute_profile_id): New function.
16660         * coverage.h (coverage_compute_profile_id): Declare.
16661         * tree-profile.c (init_ic_make_global_vars): Make
16662         __gcov_indirect_call_callee and  __gcov_indirect_call_counters global.
16663         (gimple_init_edge_profiler): Update prototype of
16664         __gcov_indirect_call_profiler.
16665         (gimple_gen_ic_func_profiler): Simplify.
16666         (tree_profiling): Use init_node_map
16668 2013-08-09  Jan Hubicka  <jh@suse.cz>
16670         * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
16671         non-speculative refs.
16672         * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
16673         (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
16674         (cgraph_set_call_stmt): Likewise.
16675         (cgraph_create_edge_1): Fix release checking compilatoin;
16676         clear lto_stmt_uid.
16677         (cgraph_free_edge): Free indirect info.
16678         (cgraph_turn_edge_to_speculative): New function.
16679         (cgraph_speculative_call_info): New function.
16680         (cgraph_make_edge_direct): Return direct edge; handle speculation.
16681         (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
16682         (dump_cgraph_node): Dump speculation.
16683         (verify_edge_count_and_frequency): Accept speculative edges.
16684         (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
16685         (verify_cgraph_node): Handle speculation.
16686         * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
16687         (cgraph_set_call_stmt): Update prototype.
16688         (cgraph_make_edge_direct): Update prototype.
16689         (cgraph_speculative_call_info): Declare.
16690         * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
16691         to change; update call of ipa_find_references.
16692         * ipa-ref.c (ipa_record_reference): Fix return value; clear
16693         lto_stmt_uid and speculative flags.
16694         (ipa_dump_references): Dump speculation.
16695         (ipa_clone_references): Clone speculative flag.
16696         (ipa_clone_referring): Likewise.
16697         (ipa_clone_ref): New function.
16698         (ipa_find_reference): Look into lto_stmt_uids
16699         (ipa_clear_stmts_in_references): Do not clear speculative calls.
16700         * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
16701         (ipa_find_reference): Update declaration.
16702         (ipa_clone_ref): Declare.
16703         * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
16704         stream speculative flag.
16705         (lto_output_ref): Stream statements uids and speculation.
16706         (input_ref): Likewise.
16707         (input_edge): Stream speuclation.
16708         * cgraphclones.c (cgraph_clone_edge): Clone speculation.
16709         (cgraph_set_call_stmt_including_clones): Handle speculation.
16710         * ipa-inline.c (heap_edge_removal_hook): New function.
16711         (inline_small_functions): Register it.
16712         * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
16713         also initialize refs.
16714         * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
16715         edge to change.
16716         (try_make_edge_direct_simple_call): Likewise.
16717         (try_make_edge_direct_simple_call): Likewise.
16718         (update_indirect_edges_after_inlining): Likewise.
16719         (remove_described_reference): Look proper lto_stmt_uid.
16720         (propagate_controlled_uses): Likewise.
16721         (propagate_controlled_uses): Liekwise.
16722         * tree-inline.c (copy_bb): Copy speculative edges.
16723         (redirect_all_calls): New function.
16724         (copy_cfg_body): Do redirection after loop info is updated.
16725         (delete_unreachable_blocks_update_callgraph): Updadte speculation.
16727 2013-08-09  Jan Hubicka  <jh@suse.cz>
16729         * lto-streamer-out.c (output_function): Renumber PHIs.
16730         * lto-streamer-in.c (input_function): Likewise.
16732 2013-08-09  James Greenhalgh  <james.greenhalgh@arm.com>
16734         * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
16735         (get_lane_unsigned): Likewise.
16736         (dup_lane_scalar): Likewise.
16737         (get_lane): enable for VALL.
16738         * config/aarch64/aarch64-simd.md
16739         (aarch64_dup_lane_scalar<mode>): Remove.
16740         (aarch64_get_lane_signed<mode>): Likewise.
16741         (aarch64_get_lane_unsigned<mode>): Likewise.
16742         (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
16743         (aarch64_get_lane_zero_extendsi<mode>): Likewise.
16744         (aarch64_get_lane<mode>): Enable for all vector modes.
16745         (aarch64_get_lanedi): Remove misleading constraints.
16746         * config/aarch64/arm_neon.h
16747         (__aarch64_vget_lane_any): Define.
16748         (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
16749         (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
16750         (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
16751         * config/aarch64/iterators.md (VDQQH): New.
16752         (VDQQHS): Likewise.
16753         (vwcore): Likewise.
16755 2013-08-09  Eric Botcazou  <ebotcazou@adacore.com>
16757         * configure.ac: Add GAS check for LEON instructions on SPARC.
16758         * configure: Regenerate.
16759         * config.in: Likewise.
16760         * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
16761         sparc*-*-* block.
16762         * config/sparc/sparc.opt (LEON, LEON3): New masks.
16763         * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
16764         for LEON or LEON3.
16765         (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
16766         (AS_LEON_FLAG): New macro.
16767         * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
16768         and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
16769         Deal with LEON and LEON3 for the memory model.
16770         * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
16771         (atomic_compare_and_swap<mode>_1): Likewise.
16772         (*atomic_compare_and_swap<mode>_1): Likewise.
16774 2013-08-09  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
16776         * config/arm/neon.md (vcond): Fix floating-point vector
16777         comparisons against 0.
16779 2013-08-08  Vladimir Makarov  <vmakarov@redhat.com>
16781         * lra-constraints.c (emit_spill_move): Remove assert.
16782         (process_alt_operands): Add more debugging
16783         output.  Increase reject for spilling into memory.  Decrease
16784         reject for reloading scratch.
16785         (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
16787 2013-08-08  Steve Ellcey  <sellcey@mips.com>
16789         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
16790         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
16791         micromips incompatible.  Add nan2008.
16792         (MULTILIB_DIRNAMES): Add nan2008.
16793         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
16794         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
16795         and micromips incompatible.  Add nan2008.
16796         (MULTILIB_DIRNAMES): Add nan2008.
16797         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
16799 2013-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
16801         PR rtl-optimization/58079
16802         * combine.c (combine_simplify_rtx): Avoid using SUBST if
16803         simplify_comparison has widened a comparison with an integer.
16805 2013-08-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16807         * config/arm/neon.md (movmisalign<mode>): Disable when we
16808         don't allow unaligned accesses.
16809         (*movmisalign<mode>_neon_store): Likewise.
16810         (*movmisalign<mode>_neon_load): Likewise.
16811         (*movmisalign<mode>_neon_store): Likewise.
16812         (*movmisalign<mode>_neon_load): Likewise.
16814 2013-08-08  Jan Hubicka  <jh@suse.cz>
16816         * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
16817         (make_pass_rebuild_cgraph_edges): Also clear references.
16818         * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
16819         * ipa-inline-transform.c (inline_transform): Remove all references
16820         after inlining.
16821         * cgraphunit.c (expand_function): Remove all references after
16822         expansion.
16823         * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
16824         (ipa_find_reference): Rewrite to iterator.
16825         (remove_stmt_references): Likewise.
16826         (ipa_clear_stmts_in_references): New function.
16827         * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
16828         * cgraphclones.c (cgraph_materialize_all_clones): Remove or
16829         clear references.
16830         * ipa-split.c (split_function): Remove references in split function.
16832 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
16834         PR target/57431
16835         * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
16836         (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
16838 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
16840         PR target/56979
16841         * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
16842         suggested mode for the assignment isn't compatible with the
16843         registers required.
16845 2013-08-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16847         PR target/58065
16848         * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
16850 2013-08-07  Xinliang David Li  <davidxl@google.com>
16852         * config/i386/i386.opt: New option -mtune-ctrl=.
16853         * config/i386/x86-tune.def: New file.
16854         * config/i386/i386.h: include x86-tune.def.
16855         * config/i386/i386.c (ix86_option_override_internal):
16856         Parsing -mtune-ctrl= option and set tune features.
16858 2013-08-07  Oleg Endo  <olegendo@gcc.gnu.org>
16860         PR other/12081
16861         * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
16862         (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
16863         to gen_2arg_fn_t.
16865 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
16867         * rtl.h (update_alignments): Declare.
16868         * final.c (grow_label_align): New function extracted from...
16869         (shorten_branches): ...here.  Call it.
16870         (update_alignments): New function.
16871         * reorg.c (sibling_labels): New variable.
16872         (get_label_before): Add SIBLING parameter.  If it is non-zero, push
16873         the new label along with it onto the sibling_labels vector.
16874         (fill_simple_delay_slots): Adjust call to get_label_before.
16875         (fill_slots_from_thread): Likewise.
16876         (relax_delay_slots): Likewise.
16877         (make_return_insns): Likewise.
16878         (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
16880 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
16882         * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
16883         document its semantics.
16884         (diagnostic_report_diagnostic): Adjust accordingly.
16886 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
16888         * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
16889         (sparc_option_override): ...and port to new C++ pass API.
16890         * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
16892 2013-08-07  Peter Bergner  <bergner@vnet.ibm.com>
16894         * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
16896 2013-08-06  Caroline Tice  <cmtice@google.com>
16898         * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
16899         (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
16900         * tree-pass.h: Add pass_vtable_verify.
16901         * varasm.c (assemble_variable): Add code to properly set the comdat
16902         section and name for the .vtable_map_vars section.
16903         (assemble_vtyv_preinit_initializer): New function.
16904         (default_sectin_type_flags):  Make sure .vtable_map_vars section has
16905         LINK_ONCE flag.
16906         * output.h: Add function decl for assemble_vtv_preinit_initializer.
16907         * vtable-verify.c: New file.
16908         * vtable-verify.h: New file.
16909         * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
16910         initialiation levels.
16911         * timevar.def (TV_VTABLE_VERIFICATION): New definition.
16912         * passes.def: Insert pass_vtable_verify.
16913         * aclocal.m4: Reorder includes.
16914         * doc/invoke.texi:  Document the -fvtable-verify=, -fvtv-debug, and
16915         -fvtv-counts options.
16916         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
16917         as appropriate, if -fvtable-verify=... is used.
16918         (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
16919         -fvtable-verify=... is used.
16920         * Makefile.in (OBJS):  Add vtable-verify.o to list.
16921         (vtable-verify.o): Add new build rule.
16922         (GTFILES): Add vtable-verify.c to list.
16923         * common.opt (fvtable-verify=): New flag.
16924         (vtv_priority): Values for fvtable-verify= flag.
16925         (fvtv-counts): New flag.
16926         (fvtv-debug): New flag.
16927         * tree.h (save_vtable_map_decl): New extern function decl.
16929 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
16931         * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
16932         (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
16933         (pass_data_rl78_devirt): ...new pass_data instance and...
16934         (make_pass_rl78_devirt): ...new function.
16935         (rl78_asm_file_start): Port pass registration to new C++ API.
16937 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
16939         * coretypes.h (rtl_opt_pass): Add.
16940         (gcc::context): Add.
16941         * config/epiphany/epiphany.c (pass_mode_switch_use): New.
16942         (epiphany_init): Port to new C++ pass API.
16943         (epiphany_optimize_mode_switching): Likewise.
16944         * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
16945         (pass_manager::get_pass_mode_switching): New.
16946         (pass_manager::get_pass_peephole2): New.
16947         * mode-switching.c (pass_mode_switching): Add clone method.
16948         * recog.c (pass_peephole2): Add clone method.
16949         (pass_split_all_insns): Add clone method.
16951 2013-08-06  David Malcolm  <dmalcolm@redhat.com>
16953         * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
16954         (mips_option_override): ...here, porting to new C++ API for passes.
16956 2013-08-06  Jan Hubicka  <jh@suse.cz>
16958         * cgraph.c (cgraph_get_body): New function based on lto.c
16959         implementation.
16960         * cgraph.h (cgraph_get_body): Declare.
16961         * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
16962         LTO paths.
16963         * cgraphunit.c (expand_function): Get body prior expanding.
16964         * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
16965         * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
16966         really need.
16967         * passes.c (do_per_function_toporder): Get body.
16968         * tree-inline.c (expand_call_inline): Get body prior inlining it.
16969         * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
16971 2013-08-06  Martin Jambor  <mjambor@suse.cz>
16973         PR fortran/57987
16974         * cgraphunit.c (cgraph_finalize_function): Assert that nested function
16975         is not re-finalized.  Rename second parameter to no_collect.
16977 2013-08-06  Martin Jambor  <mjambor@suse.cz>
16979         PR middle-end/58041
16980         * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
16981         MEM_REF has proper alignment information.
16983 2013-08-05  Oleg Endo  <olegendo@gcc.gnu.org>
16985         PR other/12081
16986         * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
16987         class insn_gen_fn.
16988         * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
16989         rtx (*) (rtx, ...) with insn_gen_fn.
16990         * genoutput.c (output_insn_data): Cast gen_? function pointers to
16991         insn_gen_fn::stored_funcptr.  Add initializer braces.
16993 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
16995         Rewrite how instances of passes are cloned to remove assumptions
16996         about their sizes (thus allowing pass subclasses to have
16997         additional data fields, albeit non-GC-managed ones at this point).
16999         * passes.c (make_pass_instance): Now that passes have clone
17000         methods, rewrite this function to eliminate XNEW and memcpy
17001         calls that used hardcoded sizes.  Since this function no longer
17002         creates pass instances, rename it to...
17003         (add_pass_instance): ...this.  Document the old way that passes were
17004         numbered and flagged, and rework this function to continue using it.
17005         (next_pass_1): Add an initial_pass argument for use by
17006         add_pass_instance.
17007         (position_pass): When adding multiple instances of a pass, use
17008         the pass's clone method, rather than relying on the XNEW/memcpy
17009         within the former make_pass_instance (now add_pass_instance).
17010         (pass_manager::pass_manager): When invoking next_pass_1, also supply
17011         the initial instance of the current pass within the pass manager.
17013 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
17015         This is the automated part of the conversion of passes from C
17016         structs to C++ classes.
17018         Patch autogenerated by refactor_passes.py from
17019         https://github.com/davidmalcolm/gcc-refactoring-scripts
17020         revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
17022         * asan.c (pass_asan): Convert from a global struct to a subclass of
17023         gimple_opt_pass along with...
17024         (pass_data_asan): ...new pass_data instance and...
17025         (make_pass_asan): ...new function.
17026         (pass_asan_O0): Convert from a global struct to a subclass of
17027         gimple_opt_pass along with...
17028         (pass_data_asan_O0): ...new pass_data instance and...
17029         (make_pass_asan_O0): ...new function.
17030         * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
17031         subclass of rtl_opt_pass along with...
17032         (pass_data_inc_dec): ...new pass_data instance and...
17033         (make_pass_inc_dec): ...new function.
17034         * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
17035         a subclass of rtl_opt_pass along with...
17036         (pass_data_reorder_blocks): ...new pass_data instance and...
17037         (make_pass_reorder_blocks): ...new function.
17038         (pass_duplicate_computed_gotos): Convert from a global struct to a
17039         subclass of rtl_opt_pass along with...
17040         (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
17041         (make_pass_duplicate_computed_gotos): ...new function.
17042         (pass_partition_blocks): Convert from a global struct to a subclass of
17043         rtl_opt_pass along with...
17044         (pass_data_partition_blocks): ...new pass_data instance and...
17045         (make_pass_partition_blocks): ...new function.
17046         * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
17047         struct to a subclass of rtl_opt_pass along with...
17048         (pass_data_branch_target_load_optimize1): ...new pass_data instance
17049         and...
17050         (make_pass_branch_target_load_optimize1): ...new function.
17051         (pass_branch_target_load_optimize2): Convert from a global struct to a
17052         subclass of rtl_opt_pass along with...
17053         (pass_data_branch_target_load_optimize2): ...new pass_data instance
17054         and...
17055         (make_pass_branch_target_load_optimize2): ...new function.
17056         * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
17057         of rtl_opt_pass along with...
17058         (pass_data_jump): ...new pass_data instance and...
17059         (make_pass_jump): ...new function.
17060         (pass_jump2): Convert from a global struct to a subclass of
17061         rtl_opt_pass along with...
17062         (pass_data_jump2): ...new pass_data instance and...
17063         (make_pass_jump2): ...new function.
17064         * cfgexpand.c (pass_expand): Convert from a global struct to a
17065         subclass of rtl_opt_pass along with...
17066         (pass_data_expand): ...new pass_data instance and...
17067         (make_pass_expand): ...new function.
17068         * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
17069         of rtl_opt_pass along with...
17070         (pass_data_free_cfg): ...new pass_data instance and...
17071         (make_pass_free_cfg): ...new function.
17072         (pass_into_cfg_layout_mode): Convert from a global struct to a
17073         subclass of rtl_opt_pass along with...
17074         (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
17075         (make_pass_into_cfg_layout_mode): ...new function.
17076         (pass_outof_cfg_layout_mode): Convert from a global struct to a
17077         subclass of rtl_opt_pass along with...
17078         (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
17079         (make_pass_outof_cfg_layout_mode): ...new function.
17080         * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
17081         struct to a subclass of gimple_opt_pass along with...
17082         (pass_data_build_cgraph_edges): ...new pass_data instance and...
17083         (make_pass_build_cgraph_edges): ...new function.
17084         (pass_rebuild_cgraph_edges): Convert from a global struct to a
17085         subclass of gimple_opt_pass along with...
17086         (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
17087         (make_pass_rebuild_cgraph_edges): ...new function.
17088         (pass_remove_cgraph_callee_edges): Convert from a global struct to a
17089         subclass of gimple_opt_pass along with...
17090         (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
17091         and...
17092         (make_pass_remove_cgraph_callee_edges): ...new function.
17093         * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
17094         struct to a subclass of rtl_opt_pass along with...
17095         (pass_data_stack_adjustments): ...new pass_data instance and...
17096         (make_pass_stack_adjustments): ...new function.
17097         * combine.c (pass_combine): Convert from a global struct to a subclass
17098         of rtl_opt_pass along with...
17099         (pass_data_combine): ...new pass_data instance and...
17100         (make_pass_combine): ...new function.
17101         * compare-elim.c (pass_compare_elim_after_reload): Convert from a
17102         global struct to a subclass of rtl_opt_pass along with...
17103         (pass_data_compare_elim_after_reload): ...new pass_data instance
17104         and...
17105         (make_pass_compare_elim_after_reload): ...new function.
17106         * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
17107         of rtl_opt_pass along with...
17108         (pass_data_rtl_cprop): ...new pass_data instance and...
17109         (make_pass_rtl_cprop): ...new function.
17110         * cse.c (pass_cse): Convert from a global struct to a subclass of
17111         rtl_opt_pass along with...
17112         (pass_data_cse): ...new pass_data instance and...
17113         (make_pass_cse): ...new function.
17114         (pass_cse2): Convert from a global struct to a subclass of
17115         rtl_opt_pass along with...
17116         (pass_data_cse2): ...new pass_data instance and...
17117         (make_pass_cse2): ...new function.
17118         (pass_cse_after_global_opts): Convert from a global struct to a
17119         subclass of rtl_opt_pass along with...
17120         (pass_data_cse_after_global_opts): ...new pass_data instance and...
17121         (make_pass_cse_after_global_opts): ...new function.
17122         * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
17123         of rtl_opt_pass along with...
17124         (pass_data_ud_rtl_dce): ...new pass_data instance and...
17125         (make_pass_ud_rtl_dce): ...new function.
17126         (pass_fast_rtl_dce): Convert from a global struct to a subclass of
17127         rtl_opt_pass along with...
17128         (pass_data_fast_rtl_dce): ...new pass_data instance and...
17129         (make_pass_fast_rtl_dce): ...new function.
17130         * df-core.c (pass_df_initialize_opt): Convert from a global struct to
17131         a subclass of rtl_opt_pass along with...
17132         (pass_data_df_initialize_opt): ...new pass_data instance and...
17133         (make_pass_df_initialize_opt): ...new function.
17134         (pass_df_initialize_no_opt): Convert from a global struct to a
17135         subclass of rtl_opt_pass along with...
17136         (pass_data_df_initialize_no_opt): ...new pass_data instance and...
17137         (make_pass_df_initialize_no_opt): ...new function.
17138         (pass_df_finish): Convert from a global struct to a subclass of
17139         rtl_opt_pass along with...
17140         (pass_data_df_finish): ...new pass_data instance and...
17141         (make_pass_df_finish): ...new function.
17142         * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
17143         rtl_opt_pass along with...
17144         (pass_data_rtl_dse1): ...new pass_data instance and...
17145         (make_pass_rtl_dse1): ...new function.
17146         (pass_rtl_dse2): Convert from a global struct to a subclass of
17147         rtl_opt_pass along with...
17148         (pass_data_rtl_dse2): ...new pass_data instance and...
17149         (make_pass_rtl_dse2): ...new function.
17150         * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
17151         subclass of rtl_opt_pass along with...
17152         (pass_data_dwarf2_frame): ...new pass_data instance and...
17153         (make_pass_dwarf2_frame): ...new function.
17154         * except.c (pass_set_nothrow_function_flags): Convert from a global
17155         struct to a subclass of rtl_opt_pass along with...
17156         (pass_data_set_nothrow_function_flags): ...new pass_data instance
17157         and...
17158         (make_pass_set_nothrow_function_flags): ...new function.
17159         (pass_convert_to_eh_region_ranges): Convert from a global struct to a
17160         subclass of rtl_opt_pass along with...
17161         (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
17162         and...
17163         (make_pass_convert_to_eh_region_ranges): ...new function.
17164         * final.c (pass_compute_alignments): Convert from a global struct to a
17165         subclass of rtl_opt_pass along with...
17166         (pass_data_compute_alignments): ...new pass_data instance and...
17167         (make_pass_compute_alignments): ...new function.
17168         (pass_final): Convert from a global struct to a subclass of
17169         rtl_opt_pass along with...
17170         (pass_data_final): ...new pass_data instance and...
17171         (make_pass_final): ...new function.
17172         (pass_shorten_branches): Convert from a global struct to a subclass of
17173         rtl_opt_pass along with...
17174         (pass_data_shorten_branches): ...new pass_data instance and...
17175         (make_pass_shorten_branches): ...new function.
17176         (pass_clean_state): Convert from a global struct to a subclass of
17177         rtl_opt_pass along with...
17178         (pass_data_clean_state): ...new pass_data instance and...
17179         (make_pass_clean_state): ...new function.
17180         * function.c (pass_instantiate_virtual_regs): Convert from a global
17181         struct to a subclass of rtl_opt_pass along with...
17182         (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
17183         (make_pass_instantiate_virtual_regs): ...new function.
17184         (pass_leaf_regs): Convert from a global struct to a subclass of
17185         rtl_opt_pass along with...
17186         (pass_data_leaf_regs): ...new pass_data instance and...
17187         (make_pass_leaf_regs): ...new function.
17188         (pass_thread_prologue_and_epilogue): Convert from a global struct to a
17189         subclass of rtl_opt_pass along with...
17190         (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
17191         and...
17192         (make_pass_thread_prologue_and_epilogue): ...new function.
17193         (pass_match_asm_constraints): Convert from a global struct to a
17194         subclass of rtl_opt_pass along with...
17195         (pass_data_match_asm_constraints): ...new pass_data instance and...
17196         (make_pass_match_asm_constraints): ...new function.
17197         * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
17198         subclass of rtl_opt_pass along with...
17199         (pass_data_rtl_fwprop): ...new pass_data instance and...
17200         (make_pass_rtl_fwprop): ...new function.
17201         (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
17202         rtl_opt_pass along with...
17203         (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
17204         (make_pass_rtl_fwprop_addr): ...new function.
17205         * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
17206         rtl_opt_pass along with...
17207         (pass_data_rtl_pre): ...new pass_data instance and...
17208         (make_pass_rtl_pre): ...new function.
17209         (pass_rtl_hoist): Convert from a global struct to a subclass of
17210         rtl_opt_pass along with...
17211         (pass_data_rtl_hoist): ...new pass_data instance and...
17212         (make_pass_rtl_hoist): ...new function.
17213         * gimple-low.c (pass_lower_cf): Convert from a global struct to a
17214         subclass of gimple_opt_pass along with...
17215         (pass_data_lower_cf): ...new pass_data instance and...
17216         (make_pass_lower_cf): ...new function.
17217         * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
17218         from a global struct to a subclass of gimple_opt_pass along with...
17219         (pass_data_strength_reduction): ...new pass_data instance and...
17220         (make_pass_strength_reduction): ...new function.
17221         * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
17222         of rtl_opt_pass along with...
17223         (pass_data_rtl_ifcvt): ...new pass_data instance and...
17224         (make_pass_rtl_ifcvt): ...new function.
17225         (pass_if_after_combine): Convert from a global struct to a subclass of
17226         rtl_opt_pass along with...
17227         (pass_data_if_after_combine): ...new pass_data instance and...
17228         (make_pass_if_after_combine): ...new function.
17229         (pass_if_after_reload): Convert from a global struct to a subclass of
17230         rtl_opt_pass along with...
17231         (pass_data_if_after_reload): ...new pass_data instance and...
17232         (make_pass_if_after_reload): ...new function.
17233         * init-regs.c (pass_initialize_regs): Convert from a global struct to
17234         a subclass of rtl_opt_pass along with...
17235         (pass_data_initialize_regs): ...new pass_data instance and...
17236         (make_pass_initialize_regs): ...new function.
17237         * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
17238         of ipa_opt_pass_d along with...
17239         (pass_data_ipa_cp): ...new pass_data instance and...
17240         (make_pass_ipa_cp): ...new function.
17241         * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
17242         global struct to a subclass of gimple_opt_pass along with...
17243         (pass_data_inline_parameters): ...new pass_data instance and...
17244         (make_pass_inline_parameters): ...new function.
17245         * ipa-inline.c (pass_early_inline): Convert from a global struct to a
17246         subclass of gimple_opt_pass along with...
17247         (pass_data_early_inline): ...new pass_data instance and...
17248         (make_pass_early_inline): ...new function.
17249         (pass_ipa_inline): Convert from a global struct to a subclass of
17250         ipa_opt_pass_d along with...
17251         (pass_data_ipa_inline): ...new pass_data instance and...
17252         (make_pass_ipa_inline): ...new function.
17253         * ipa-pure-const.c (pass_local_pure_const): Convert from a global
17254         struct to a subclass of gimple_opt_pass along with...
17255         (pass_data_local_pure_const): ...new pass_data instance and...
17256         (make_pass_local_pure_const): ...new function.
17257         (pass_ipa_pure_const): Convert from a global struct to a subclass of
17258         ipa_opt_pass_d along with...
17259         (pass_data_ipa_pure_const): ...new pass_data instance and...
17260         (make_pass_ipa_pure_const): ...new function.
17261         * ipa-reference.c (pass_ipa_reference): Convert from a global struct
17262         to a subclass of ipa_opt_pass_d along with...
17263         (pass_data_ipa_reference): ...new pass_data instance and...
17264         (make_pass_ipa_reference): ...new function.
17265         * ipa-split.c (pass_split_functions): Convert from a global struct to
17266         a subclass of gimple_opt_pass along with...
17267         (pass_data_split_functions): ...new pass_data instance and...
17268         (make_pass_split_functions): ...new function.
17269         (pass_feedback_split_functions): Convert from a global struct to a
17270         subclass of gimple_opt_pass along with...
17271         (pass_data_feedback_split_functions): ...new pass_data instance and...
17272         (make_pass_feedback_split_functions): ...new function.
17273         * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
17274         global struct to a subclass of simple_ipa_opt_pass along with...
17275         (pass_data_ipa_function_and_variable_visibility): ...new pass_data
17276         instance and...
17277         (make_pass_ipa_function_and_variable_visibility): ...new function.
17278         (pass_ipa_free_inline_summary): Convert from a global struct to a
17279         subclass of simple_ipa_opt_pass along with...
17280         (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
17281         (make_pass_ipa_free_inline_summary): ...new function.
17282         (pass_ipa_whole_program_visibility): Convert from a global struct to a
17283         subclass of ipa_opt_pass_d along with...
17284         (pass_data_ipa_whole_program_visibility): ...new pass_data instance
17285         and...
17286         (make_pass_ipa_whole_program_visibility): ...new function.
17287         (pass_ipa_profile): Convert from a global struct to a subclass of
17288         ipa_opt_pass_d along with...
17289         (pass_data_ipa_profile): ...new pass_data instance and...
17290         (make_pass_ipa_profile): ...new function.
17291         (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
17292         ipa_opt_pass_d along with...
17293         (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
17294         (make_pass_ipa_cdtor_merge): ...new function.
17295         * ira.c (pass_ira): Convert from a global struct to a subclass of
17296         rtl_opt_pass along with...
17297         (pass_data_ira): ...new pass_data instance and...
17298         (make_pass_ira): ...new function.
17299         (pass_reload): Convert from a global struct to a subclass of
17300         rtl_opt_pass along with...
17301         (pass_data_reload): ...new pass_data instance and...
17302         (make_pass_reload): ...new function.
17303         * jump.c (pass_cleanup_barriers): Convert from a global struct to a
17304         subclass of rtl_opt_pass along with...
17305         (pass_data_cleanup_barriers): ...new pass_data instance and...
17306         (make_pass_cleanup_barriers): ...new function.
17307         * loop-init.c (pass_loop2): Convert from a global struct to a subclass
17308         of rtl_opt_pass along with...
17309         (pass_data_loop2): ...new pass_data instance and...
17310         (make_pass_loop2): ...new function.
17311         (pass_rtl_loop_init): Convert from a global struct to a subclass of
17312         rtl_opt_pass along with...
17313         (pass_data_rtl_loop_init): ...new pass_data instance and...
17314         (make_pass_rtl_loop_init): ...new function.
17315         (pass_rtl_loop_done): Convert from a global struct to a subclass of
17316         rtl_opt_pass along with...
17317         (pass_data_rtl_loop_done): ...new pass_data instance and...
17318         (make_pass_rtl_loop_done): ...new function.
17319         (pass_rtl_move_loop_invariants): Convert from a global struct to a
17320         subclass of rtl_opt_pass along with...
17321         (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
17322         (make_pass_rtl_move_loop_invariants): ...new function.
17323         (pass_rtl_unswitch): Convert from a global struct to a subclass of
17324         rtl_opt_pass along with...
17325         (pass_data_rtl_unswitch): ...new pass_data instance and...
17326         (make_pass_rtl_unswitch): ...new function.
17327         (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
17328         subclass of rtl_opt_pass along with...
17329         (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
17330         and...
17331         (make_pass_rtl_unroll_and_peel_loops): ...new function.
17332         (pass_rtl_doloop): Convert from a global struct to a subclass of
17333         rtl_opt_pass along with...
17334         (pass_data_rtl_doloop): ...new pass_data instance and...
17335         (make_pass_rtl_doloop): ...new function.
17336         * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
17337         a subclass of rtl_opt_pass along with...
17338         (pass_data_lower_subreg): ...new pass_data instance and...
17339         (make_pass_lower_subreg): ...new function.
17340         (pass_lower_subreg2): Convert from a global struct to a subclass of
17341         rtl_opt_pass along with...
17342         (pass_data_lower_subreg2): ...new pass_data instance and...
17343         (make_pass_lower_subreg2): ...new function.
17344         * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
17345         struct to a subclass of ipa_opt_pass_d along with...
17346         (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
17347         (make_pass_ipa_lto_gimple_out): ...new function.
17348         (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
17349         of ipa_opt_pass_d along with...
17350         (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
17351         (make_pass_ipa_lto_finish_out): ...new function.
17352         * mode-switching.c (pass_mode_switching): Convert from a global struct
17353         to a subclass of rtl_opt_pass along with...
17354         (pass_data_mode_switching): ...new pass_data instance and...
17355         (make_pass_mode_switching): ...new function.
17356         * modulo-sched.c (pass_sms): Convert from a global struct to a
17357         subclass of rtl_opt_pass along with...
17358         (pass_data_sms): ...new pass_data instance and...
17359         (make_pass_sms): ...new function.
17360         * omp-low.c (pass_expand_omp): Convert from a global struct to a
17361         subclass of gimple_opt_pass along with...
17362         (pass_data_expand_omp): ...new pass_data instance and...
17363         (make_pass_expand_omp): ...new function.
17364         (pass_lower_omp): Convert from a global struct to a subclass of
17365         gimple_opt_pass along with...
17366         (pass_data_lower_omp): ...new pass_data instance and...
17367         (make_pass_lower_omp): ...new function.
17368         (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
17369         of gimple_opt_pass along with...
17370         (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
17371         (make_pass_diagnose_omp_blocks): ...new function.
17372         * passes.c (pass_early_local_passes): Convert from a global struct to
17373         a subclass of simple_ipa_opt_pass along with...
17374         (pass_data_early_local_passes): ...new pass_data instance and...
17375         (make_pass_early_local_passes): ...new function.
17376         (pass_all_early_optimizations): Convert from a global struct to a
17377         subclass of gimple_opt_pass along with...
17378         (pass_data_all_early_optimizations): ...new pass_data instance and...
17379         (make_pass_all_early_optimizations): ...new function.
17380         (pass_all_optimizations): Convert from a global struct to a subclass
17381         of gimple_opt_pass along with...
17382         (pass_data_all_optimizations): ...new pass_data instance and...
17383         (make_pass_all_optimizations): ...new function.
17384         (pass_all_optimizations_g): Convert from a global struct to a subclass
17385         of gimple_opt_pass along with...
17386         (pass_data_all_optimizations_g): ...new pass_data instance and...
17387         (make_pass_all_optimizations_g): ...new function.
17388         (pass_rest_of_compilation): Convert from a global struct to a subclass
17389         of rtl_opt_pass along with...
17390         (pass_data_rest_of_compilation): ...new pass_data instance and...
17391         (make_pass_rest_of_compilation): ...new function.
17392         (pass_postreload): Convert from a global struct to a subclass of
17393         rtl_opt_pass along with...
17394         (pass_data_postreload): ...new pass_data instance and...
17395         (make_pass_postreload): ...new function.
17396         * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
17397         subclass of rtl_opt_pass along with...
17398         (pass_data_gcse2): ...new pass_data instance and...
17399         (make_pass_gcse2): ...new function.
17400         * postreload.c (pass_postreload_cse): Convert from a global struct to
17401         a subclass of rtl_opt_pass along with...
17402         (pass_data_postreload_cse): ...new pass_data instance and...
17403         (make_pass_postreload_cse): ...new function.
17404         * predict.c (pass_profile): Convert from a global struct to a subclass
17405         of gimple_opt_pass along with...
17406         (pass_data_profile): ...new pass_data instance and...
17407         (make_pass_profile): ...new function.
17408         (pass_strip_predict_hints): Convert from a global struct to a subclass
17409         of gimple_opt_pass along with...
17410         (pass_data_strip_predict_hints): ...new pass_data instance and...
17411         (make_pass_strip_predict_hints): ...new function.
17412         * recog.c (pass_peephole2): Convert from a global struct to a subclass
17413         of rtl_opt_pass along with...
17414         (pass_data_peephole2): ...new pass_data instance and...
17415         (make_pass_peephole2): ...new function.
17416         (pass_split_all_insns): Convert from a global struct to a subclass of
17417         rtl_opt_pass along with...
17418         (pass_data_split_all_insns): ...new pass_data instance and...
17419         (make_pass_split_all_insns): ...new function.
17420         (pass_split_after_reload): Convert from a global struct to a subclass
17421         of rtl_opt_pass along with...
17422         (pass_data_split_after_reload): ...new pass_data instance and...
17423         (make_pass_split_after_reload): ...new function.
17424         (pass_split_before_regstack): Convert from a global struct to a
17425         subclass of rtl_opt_pass along with...
17426         (pass_data_split_before_regstack): ...new pass_data instance and...
17427         (make_pass_split_before_regstack): ...new function.
17428         (pass_split_before_sched2): Convert from a global struct to a subclass
17429         of rtl_opt_pass along with...
17430         (pass_data_split_before_sched2): ...new pass_data instance and...
17431         (make_pass_split_before_sched2): ...new function.
17432         (pass_split_for_shorten_branches): Convert from a global struct to a
17433         subclass of rtl_opt_pass along with...
17434         (pass_data_split_for_shorten_branches): ...new pass_data instance
17435         and...
17436         (make_pass_split_for_shorten_branches): ...new function.
17437         * ree.c (pass_ree): Convert from a global struct to a subclass of
17438         rtl_opt_pass along with...
17439         (pass_data_ree): ...new pass_data instance and...
17440         (make_pass_ree): ...new function.
17441         * reg-stack.c (pass_stack_regs): Convert from a global struct to a
17442         subclass of rtl_opt_pass along with...
17443         (pass_data_stack_regs): ...new pass_data instance and...
17444         (make_pass_stack_regs): ...new function.
17445         (pass_stack_regs_run): Convert from a global struct to a subclass of
17446         rtl_opt_pass along with...
17447         (pass_data_stack_regs_run): ...new pass_data instance and...
17448         (make_pass_stack_regs_run): ...new function.
17449         * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
17450         subclass of rtl_opt_pass along with...
17451         (pass_data_cprop_hardreg): ...new pass_data instance and...
17452         (make_pass_cprop_hardreg): ...new function.
17453         * reginfo.c (pass_reginfo_init): Convert from a global struct to a
17454         subclass of rtl_opt_pass along with...
17455         (pass_data_reginfo_init): ...new pass_data instance and...
17456         (make_pass_reginfo_init): ...new function.
17457         * regmove.c (pass_regmove): Convert from a global struct to a subclass
17458         of rtl_opt_pass along with...
17459         (pass_data_regmove): ...new pass_data instance and...
17460         (make_pass_regmove): ...new function.
17461         * regrename.c (pass_regrename): Convert from a global struct to a
17462         subclass of rtl_opt_pass along with...
17463         (pass_data_regrename): ...new pass_data instance and...
17464         (make_pass_regrename): ...new function.
17465         * reorg.c (pass_delay_slots): Convert from a global struct to a
17466         subclass of rtl_opt_pass along with...
17467         (pass_data_delay_slots): ...new pass_data instance and...
17468         (make_pass_delay_slots): ...new function.
17469         (pass_machine_reorg): Convert from a global struct to a subclass of
17470         rtl_opt_pass along with...
17471         (pass_data_machine_reorg): ...new pass_data instance and...
17472         (make_pass_machine_reorg): ...new function.
17473         * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
17474         of rtl_opt_pass along with...
17475         (pass_data_sched): ...new pass_data instance and...
17476         (make_pass_sched): ...new function.
17477         (pass_sched2): Convert from a global struct to a subclass of
17478         rtl_opt_pass along with...
17479         (pass_data_sched2): ...new pass_data instance and...
17480         (make_pass_sched2): ...new function.
17481         * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
17482         to a subclass of rtl_opt_pass along with...
17483         (pass_data_stack_ptr_mod): ...new pass_data instance and...
17484         (make_pass_stack_ptr_mod): ...new function.
17485         * store-motion.c (pass_rtl_store_motion): Convert from a global struct
17486         to a subclass of rtl_opt_pass along with...
17487         (pass_data_rtl_store_motion): ...new pass_data instance and...
17488         (make_pass_rtl_store_motion): ...new function.
17489         * tracer.c (pass_tracer): Convert from a global struct to a subclass
17490         of gimple_opt_pass along with...
17491         (pass_data_tracer): ...new pass_data instance and...
17492         (make_pass_tracer): ...new function.
17493         * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
17494         to a subclass of gimple_opt_pass along with...
17495         (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
17496         (make_pass_diagnose_tm_blocks): ...new function.
17497         (pass_lower_tm): Convert from a global struct to a subclass of
17498         gimple_opt_pass along with...
17499         (pass_data_lower_tm): ...new pass_data instance and...
17500         (make_pass_lower_tm): ...new function.
17501         (pass_tm_init): Convert from a global struct to a subclass of
17502         gimple_opt_pass along with...
17503         (pass_data_tm_init): ...new pass_data instance and...
17504         (make_pass_tm_init): ...new function.
17505         (pass_tm_mark): Convert from a global struct to a subclass of
17506         gimple_opt_pass along with...
17507         (pass_data_tm_mark): ...new pass_data instance and...
17508         (make_pass_tm_mark): ...new function.
17509         (pass_tm_edges): Convert from a global struct to a subclass of
17510         gimple_opt_pass along with...
17511         (pass_data_tm_edges): ...new pass_data instance and...
17512         (make_pass_tm_edges): ...new function.
17513         (pass_tm_memopt): Convert from a global struct to a subclass of
17514         gimple_opt_pass along with...
17515         (pass_data_tm_memopt): ...new pass_data instance and...
17516         (make_pass_tm_memopt): ...new function.
17517         (pass_ipa_tm): Convert from a global struct to a subclass of
17518         simple_ipa_opt_pass along with...
17519         (pass_data_ipa_tm): ...new pass_data instance and...
17520         (make_pass_ipa_tm): ...new function.
17521         * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
17522         subclass of gimple_opt_pass along with...
17523         (pass_data_call_cdce): ...new pass_data instance and...
17524         (make_pass_call_cdce): ...new function.
17525         * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
17526         subclass of gimple_opt_pass along with...
17527         (pass_data_build_cfg): ...new pass_data instance and...
17528         (make_pass_build_cfg): ...new function.
17529         (pass_split_crit_edges): Convert from a global struct to a subclass of
17530         gimple_opt_pass along with...
17531         (pass_data_split_crit_edges): ...new pass_data instance and...
17532         (make_pass_split_crit_edges): ...new function.
17533         (pass_warn_function_return): Convert from a global struct to a
17534         subclass of gimple_opt_pass along with...
17535         (pass_data_warn_function_return): ...new pass_data instance and...
17536         (make_pass_warn_function_return): ...new function.
17537         (pass_warn_function_noreturn): Convert from a global struct to a
17538         subclass of gimple_opt_pass along with...
17539         (pass_data_warn_function_noreturn): ...new pass_data instance and...
17540         (make_pass_warn_function_noreturn): ...new function.
17541         (pass_warn_unused_result): Convert from a global struct to a subclass
17542         of gimple_opt_pass along with...
17543         (pass_data_warn_unused_result): ...new pass_data instance and...
17544         (make_pass_warn_unused_result): ...new function.
17545         * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
17546         a subclass of gimple_opt_pass along with...
17547         (pass_data_merge_phi): ...new pass_data instance and...
17548         (make_pass_merge_phi): ...new function.
17549         * tree-complex.c (pass_lower_complex): Convert from a global struct to
17550         a subclass of gimple_opt_pass along with...
17551         (pass_data_lower_complex): ...new pass_data instance and...
17552         (make_pass_lower_complex): ...new function.
17553         (pass_lower_complex_O0): Convert from a global struct to a subclass of
17554         gimple_opt_pass along with...
17555         (pass_data_lower_complex_O0): ...new pass_data instance and...
17556         (make_pass_lower_complex_O0): ...new function.
17557         * tree-eh.c (pass_lower_eh): Convert from a global struct to a
17558         subclass of gimple_opt_pass along with...
17559         (pass_data_lower_eh): ...new pass_data instance and...
17560         (make_pass_lower_eh): ...new function.
17561         (pass_refactor_eh): Convert from a global struct to a subclass of
17562         gimple_opt_pass along with...
17563         (pass_data_refactor_eh): ...new pass_data instance and...
17564         (make_pass_refactor_eh): ...new function.
17565         (pass_lower_resx): Convert from a global struct to a subclass of
17566         gimple_opt_pass along with...
17567         (pass_data_lower_resx): ...new pass_data instance and...
17568         (make_pass_lower_resx): ...new function.
17569         (pass_lower_eh_dispatch): Convert from a global struct to a subclass
17570         of gimple_opt_pass along with...
17571         (pass_data_lower_eh_dispatch): ...new pass_data instance and...
17572         (make_pass_lower_eh_dispatch): ...new function.
17573         (pass_cleanup_eh): Convert from a global struct to a subclass of
17574         gimple_opt_pass along with...
17575         (pass_data_cleanup_eh): ...new pass_data instance and...
17576         (make_pass_cleanup_eh): ...new function.
17577         * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
17578         to a subclass of simple_ipa_opt_pass along with...
17579         (pass_data_ipa_lower_emutls): ...new pass_data instance and...
17580         (make_pass_ipa_lower_emutls): ...new function.
17581         * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
17582         a subclass of gimple_opt_pass along with...
17583         (pass_data_if_conversion): ...new pass_data instance and...
17584         (make_pass_if_conversion): ...new function.
17585         * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
17586         subclass of gimple_opt_pass along with...
17587         (pass_data_build_ssa): ...new pass_data instance and...
17588         (make_pass_build_ssa): ...new function.
17589         * tree-loop-distribution.c (pass_loop_distribution): Convert from a
17590         global struct to a subclass of gimple_opt_pass along with...
17591         (pass_data_loop_distribution): ...new pass_data instance and...
17592         (make_pass_loop_distribution): ...new function.
17593         * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
17594         subclass of gimple_opt_pass along with...
17595         (pass_data_mudflap_1): ...new pass_data instance and...
17596         (make_pass_mudflap_1): ...new function.
17597         (pass_mudflap_2): Convert from a global struct to a subclass of
17598         gimple_opt_pass along with...
17599         (pass_data_mudflap_2): ...new pass_data instance and...
17600         (make_pass_mudflap_2): ...new function.
17601         * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
17602         subclass of gimple_opt_pass along with...
17603         (pass_data_mudflap_1): ...new pass_data instance and...
17604         (make_pass_mudflap_1): ...new function.
17605         (pass_mudflap_2): Convert from a global struct to a subclass of
17606         gimple_opt_pass along with...
17607         (pass_data_mudflap_2): ...new pass_data instance and...
17608         (make_pass_mudflap_2): ...new function.
17609         * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
17610         gimple_opt_pass along with...
17611         (pass_data_nrv): ...new pass_data instance and...
17612         (make_pass_nrv): ...new function.
17613         (pass_return_slot): Convert from a global struct to a subclass of
17614         gimple_opt_pass along with...
17615         (pass_data_return_slot): ...new pass_data instance and...
17616         (make_pass_return_slot): ...new function.
17617         * tree-object-size.c (pass_object_sizes): Convert from a global struct
17618         to a subclass of gimple_opt_pass along with...
17619         (pass_data_object_sizes): ...new pass_data instance and...
17620         (make_pass_object_sizes): ...new function.
17621         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
17622         global struct to a subclass of gimple_opt_pass along with...
17623         (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
17624         and...
17625         (make_pass_cleanup_cfg_post_optimizing): ...new function.
17626         (pass_fixup_cfg): Convert from a global struct to a subclass of
17627         gimple_opt_pass along with...
17628         (pass_data_fixup_cfg): ...new pass_data instance and...
17629         (make_pass_fixup_cfg): ...new function.
17630         * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
17631         (make_pass_mudflap_1): ...new function.
17632         (pass_mudflap_2): Replace declaration with that of...
17633         (make_pass_mudflap_2): ...new function.
17634         (pass_asan): Replace declaration with that of...
17635         (make_pass_asan): ...new function.
17636         (pass_asan_O0): Replace declaration with that of...
17637         (make_pass_asan_O0): ...new function.
17638         (pass_tsan): Replace declaration with that of...
17639         (make_pass_tsan): ...new function.
17640         (pass_tsan_O0): Replace declaration with that of...
17641         (make_pass_tsan_O0): ...new function.
17642         (pass_lower_cf): Replace declaration with that of...
17643         (make_pass_lower_cf): ...new function.
17644         (pass_refactor_eh): Replace declaration with that of...
17645         (make_pass_refactor_eh): ...new function.
17646         (pass_lower_eh): Replace declaration with that of...
17647         (make_pass_lower_eh): ...new function.
17648         (pass_lower_eh_dispatch): Replace declaration with that of...
17649         (make_pass_lower_eh_dispatch): ...new function.
17650         (pass_lower_resx): Replace declaration with that of...
17651         (make_pass_lower_resx): ...new function.
17652         (pass_build_cfg): Replace declaration with that of...
17653         (make_pass_build_cfg): ...new function.
17654         (pass_early_tree_profile): Replace declaration with that of...
17655         (make_pass_early_tree_profile): ...new function.
17656         (pass_cleanup_eh): Replace declaration with that of...
17657         (make_pass_cleanup_eh): ...new function.
17658         (pass_sra): Replace declaration with that of...
17659         (make_pass_sra): ...new function.
17660         (pass_sra_early): Replace declaration with that of...
17661         (make_pass_sra_early): ...new function.
17662         (pass_early_ipa_sra): Replace declaration with that of...
17663         (make_pass_early_ipa_sra): ...new function.
17664         (pass_tail_recursion): Replace declaration with that of...
17665         (make_pass_tail_recursion): ...new function.
17666         (pass_tail_calls): Replace declaration with that of...
17667         (make_pass_tail_calls): ...new function.
17668         (pass_tree_loop): Replace declaration with that of...
17669         (make_pass_tree_loop): ...new function.
17670         (pass_tree_loop_init): Replace declaration with that of...
17671         (make_pass_tree_loop_init): ...new function.
17672         (pass_lim): Replace declaration with that of...
17673         (make_pass_lim): ...new function.
17674         (pass_tree_unswitch): Replace declaration with that of...
17675         (make_pass_tree_unswitch): ...new function.
17676         (pass_predcom): Replace declaration with that of...
17677         (make_pass_predcom): ...new function.
17678         (pass_iv_canon): Replace declaration with that of...
17679         (make_pass_iv_canon): ...new function.
17680         (pass_scev_cprop): Replace declaration with that of...
17681         (make_pass_scev_cprop): ...new function.
17682         (pass_empty_loop): Replace declaration with that of...
17683         (make_pass_empty_loop): ...new function.
17684         (pass_record_bounds): Replace declaration with that of...
17685         (make_pass_record_bounds): ...new function.
17686         (pass_graphite): Replace declaration with that of...
17687         (make_pass_graphite): ...new function.
17688         (pass_graphite_transforms): Replace declaration with that of...
17689         (make_pass_graphite_transforms): ...new function.
17690         (pass_if_conversion): Replace declaration with that of...
17691         (make_pass_if_conversion): ...new function.
17692         (pass_loop_distribution): Replace declaration with that of...
17693         (make_pass_loop_distribution): ...new function.
17694         (pass_vectorize): Replace declaration with that of...
17695         (make_pass_vectorize): ...new function.
17696         (pass_slp_vectorize): Replace declaration with that of...
17697         (make_pass_slp_vectorize): ...new function.
17698         (pass_complete_unroll): Replace declaration with that of...
17699         (make_pass_complete_unroll): ...new function.
17700         (pass_complete_unrolli): Replace declaration with that of...
17701         (make_pass_complete_unrolli): ...new function.
17702         (pass_parallelize_loops): Replace declaration with that of...
17703         (make_pass_parallelize_loops): ...new function.
17704         (pass_loop_prefetch): Replace declaration with that of...
17705         (make_pass_loop_prefetch): ...new function.
17706         (pass_iv_optimize): Replace declaration with that of...
17707         (make_pass_iv_optimize): ...new function.
17708         (pass_tree_loop_done): Replace declaration with that of...
17709         (make_pass_tree_loop_done): ...new function.
17710         (pass_ch): Replace declaration with that of...
17711         (make_pass_ch): ...new function.
17712         (pass_ccp): Replace declaration with that of...
17713         (make_pass_ccp): ...new function.
17714         (pass_phi_only_cprop): Replace declaration with that of...
17715         (make_pass_phi_only_cprop): ...new function.
17716         (pass_build_ssa): Replace declaration with that of...
17717         (make_pass_build_ssa): ...new function.
17718         (pass_build_alias): Replace declaration with that of...
17719         (make_pass_build_alias): ...new function.
17720         (pass_build_ealias): Replace declaration with that of...
17721         (make_pass_build_ealias): ...new function.
17722         (pass_dominator): Replace declaration with that of...
17723         (make_pass_dominator): ...new function.
17724         (pass_dce): Replace declaration with that of...
17725         (make_pass_dce): ...new function.
17726         (pass_dce_loop): Replace declaration with that of...
17727         (make_pass_dce_loop): ...new function.
17728         (pass_cd_dce): Replace declaration with that of...
17729         (make_pass_cd_dce): ...new function.
17730         (pass_call_cdce): Replace declaration with that of...
17731         (make_pass_call_cdce): ...new function.
17732         (pass_merge_phi): Replace declaration with that of...
17733         (make_pass_merge_phi): ...new function.
17734         (pass_split_crit_edges): Replace declaration with that of...
17735         (make_pass_split_crit_edges): ...new function.
17736         (pass_pre): Replace declaration with that of...
17737         (make_pass_pre): ...new function.
17738         (pass_profile): Replace declaration with that of...
17739         (make_pass_profile): ...new function.
17740         (pass_strip_predict_hints): Replace declaration with that of...
17741         (make_pass_strip_predict_hints): ...new function.
17742         (pass_lower_complex_O0): Replace declaration with that of...
17743         (make_pass_lower_complex_O0): ...new function.
17744         (pass_lower_complex): Replace declaration with that of...
17745         (make_pass_lower_complex): ...new function.
17746         (pass_lower_vector): Replace declaration with that of...
17747         (make_pass_lower_vector): ...new function.
17748         (pass_lower_vector_ssa): Replace declaration with that of...
17749         (make_pass_lower_vector_ssa): ...new function.
17750         (pass_lower_omp): Replace declaration with that of...
17751         (make_pass_lower_omp): ...new function.
17752         (pass_diagnose_omp_blocks): Replace declaration with that of...
17753         (make_pass_diagnose_omp_blocks): ...new function.
17754         (pass_expand_omp): Replace declaration with that of...
17755         (make_pass_expand_omp): ...new function.
17756         (pass_expand_omp_ssa): Replace declaration with that of...
17757         (make_pass_expand_omp_ssa): ...new function.
17758         (pass_object_sizes): Replace declaration with that of...
17759         (make_pass_object_sizes): ...new function.
17760         (pass_strlen): Replace declaration with that of...
17761         (make_pass_strlen): ...new function.
17762         (pass_fold_builtins): Replace declaration with that of...
17763         (make_pass_fold_builtins): ...new function.
17764         (pass_stdarg): Replace declaration with that of...
17765         (make_pass_stdarg): ...new function.
17766         (pass_early_warn_uninitialized): Replace declaration with that of...
17767         (make_pass_early_warn_uninitialized): ...new function.
17768         (pass_late_warn_uninitialized): Replace declaration with that of...
17769         (make_pass_late_warn_uninitialized): ...new function.
17770         (pass_cse_reciprocals): Replace declaration with that of...
17771         (make_pass_cse_reciprocals): ...new function.
17772         (pass_cse_sincos): Replace declaration with that of...
17773         (make_pass_cse_sincos): ...new function.
17774         (pass_optimize_bswap): Replace declaration with that of...
17775         (make_pass_optimize_bswap): ...new function.
17776         (pass_optimize_widening_mul): Replace declaration with that of...
17777         (make_pass_optimize_widening_mul): ...new function.
17778         (pass_warn_function_return): Replace declaration with that of...
17779         (make_pass_warn_function_return): ...new function.
17780         (pass_warn_function_noreturn): Replace declaration with that of...
17781         (make_pass_warn_function_noreturn): ...new function.
17782         (pass_cselim): Replace declaration with that of...
17783         (make_pass_cselim): ...new function.
17784         (pass_phiopt): Replace declaration with that of...
17785         (make_pass_phiopt): ...new function.
17786         (pass_forwprop): Replace declaration with that of...
17787         (make_pass_forwprop): ...new function.
17788         (pass_phiprop): Replace declaration with that of...
17789         (make_pass_phiprop): ...new function.
17790         (pass_tree_ifcombine): Replace declaration with that of...
17791         (make_pass_tree_ifcombine): ...new function.
17792         (pass_dse): Replace declaration with that of...
17793         (make_pass_dse): ...new function.
17794         (pass_nrv): Replace declaration with that of...
17795         (make_pass_nrv): ...new function.
17796         (pass_rename_ssa_copies): Replace declaration with that of...
17797         (make_pass_rename_ssa_copies): ...new function.
17798         (pass_sink_code): Replace declaration with that of...
17799         (make_pass_sink_code): ...new function.
17800         (pass_fre): Replace declaration with that of...
17801         (make_pass_fre): ...new function.
17802         (pass_check_data_deps): Replace declaration with that of...
17803         (make_pass_check_data_deps): ...new function.
17804         (pass_copy_prop): Replace declaration with that of...
17805         (make_pass_copy_prop): ...new function.
17806         (pass_vrp): Replace declaration with that of...
17807         (make_pass_vrp): ...new function.
17808         (pass_uncprop): Replace declaration with that of...
17809         (make_pass_uncprop): ...new function.
17810         (pass_return_slot): Replace declaration with that of...
17811         (make_pass_return_slot): ...new function.
17812         (pass_reassoc): Replace declaration with that of...
17813         (make_pass_reassoc): ...new function.
17814         (pass_rebuild_cgraph_edges): Replace declaration with that of...
17815         (make_pass_rebuild_cgraph_edges): ...new function.
17816         (pass_remove_cgraph_callee_edges): Replace declaration with that of...
17817         (make_pass_remove_cgraph_callee_edges): ...new function.
17818         (pass_build_cgraph_edges): Replace declaration with that of...
17819         (make_pass_build_cgraph_edges): ...new function.
17820         (pass_local_pure_const): Replace declaration with that of...
17821         (make_pass_local_pure_const): ...new function.
17822         (pass_tracer): Replace declaration with that of...
17823         (make_pass_tracer): ...new function.
17824         (pass_warn_unused_result): Replace declaration with that of...
17825         (make_pass_warn_unused_result): ...new function.
17826         (pass_diagnose_tm_blocks): Replace declaration with that of...
17827         (make_pass_diagnose_tm_blocks): ...new function.
17828         (pass_lower_tm): Replace declaration with that of...
17829         (make_pass_lower_tm): ...new function.
17830         (pass_tm_init): Replace declaration with that of...
17831         (make_pass_tm_init): ...new function.
17832         (pass_tm_mark): Replace declaration with that of...
17833         (make_pass_tm_mark): ...new function.
17834         (pass_tm_memopt): Replace declaration with that of...
17835         (make_pass_tm_memopt): ...new function.
17836         (pass_tm_edges): Replace declaration with that of...
17837         (make_pass_tm_edges): ...new function.
17838         (pass_split_functions): Replace declaration with that of...
17839         (make_pass_split_functions): ...new function.
17840         (pass_feedback_split_functions): Replace declaration with that of...
17841         (make_pass_feedback_split_functions): ...new function.
17842         (pass_strength_reduction): Replace declaration with that of...
17843         (make_pass_strength_reduction): ...new function.
17844         (pass_ipa_lower_emutls): Replace declaration with that of...
17845         (make_pass_ipa_lower_emutls): ...new function.
17846         (pass_ipa_function_and_variable_visibility): Replace declaration with
17847         that of...
17848         (make_pass_ipa_function_and_variable_visibility): ...new function.
17849         (pass_ipa_tree_profile): Replace declaration with that of...
17850         (make_pass_ipa_tree_profile): ...new function.
17851         (pass_early_local_passes): Replace declaration with that of...
17852         (make_pass_early_local_passes): ...new function.
17853         (pass_ipa_whole_program_visibility): Replace declaration with that
17854         of...
17855         (make_pass_ipa_whole_program_visibility): ...new function.
17856         (pass_ipa_lto_gimple_out): Replace declaration with that of...
17857         (make_pass_ipa_lto_gimple_out): ...new function.
17858         (pass_ipa_increase_alignment): Replace declaration with that of...
17859         (make_pass_ipa_increase_alignment): ...new function.
17860         (pass_ipa_inline): Replace declaration with that of...
17861         (make_pass_ipa_inline): ...new function.
17862         (pass_ipa_free_lang_data): Replace declaration with that of...
17863         (make_pass_ipa_free_lang_data): ...new function.
17864         (pass_ipa_free_inline_summary): Replace declaration with that of...
17865         (make_pass_ipa_free_inline_summary): ...new function.
17866         (pass_ipa_cp): Replace declaration with that of...
17867         (make_pass_ipa_cp): ...new function.
17868         (pass_ipa_reference): Replace declaration with that of...
17869         (make_pass_ipa_reference): ...new function.
17870         (pass_ipa_pure_const): Replace declaration with that of...
17871         (make_pass_ipa_pure_const): ...new function.
17872         (pass_ipa_pta): Replace declaration with that of...
17873         (make_pass_ipa_pta): ...new function.
17874         (pass_ipa_lto_finish_out): Replace declaration with that of...
17875         (make_pass_ipa_lto_finish_out): ...new function.
17876         (pass_ipa_tm): Replace declaration with that of...
17877         (make_pass_ipa_tm): ...new function.
17878         (pass_ipa_profile): Replace declaration with that of...
17879         (make_pass_ipa_profile): ...new function.
17880         (pass_ipa_cdtor_merge): Replace declaration with that of...
17881         (make_pass_ipa_cdtor_merge): ...new function.
17882         (pass_cleanup_cfg_post_optimizing): Replace declaration with that
17883         of...
17884         (make_pass_cleanup_cfg_post_optimizing): ...new function.
17885         (pass_init_datastructures): Replace declaration with that of...
17886         (make_pass_init_datastructures): ...new function.
17887         (pass_fixup_cfg): Replace declaration with that of...
17888         (make_pass_fixup_cfg): ...new function.
17889         (pass_expand): Replace declaration with that of...
17890         (make_pass_expand): ...new function.
17891         (pass_instantiate_virtual_regs): Replace declaration with that of...
17892         (make_pass_instantiate_virtual_regs): ...new function.
17893         (pass_rtl_fwprop): Replace declaration with that of...
17894         (make_pass_rtl_fwprop): ...new function.
17895         (pass_rtl_fwprop_addr): Replace declaration with that of...
17896         (make_pass_rtl_fwprop_addr): ...new function.
17897         (pass_jump): Replace declaration with that of...
17898         (make_pass_jump): ...new function.
17899         (pass_jump2): Replace declaration with that of...
17900         (make_pass_jump2): ...new function.
17901         (pass_lower_subreg): Replace declaration with that of...
17902         (make_pass_lower_subreg): ...new function.
17903         (pass_cse): Replace declaration with that of...
17904         (make_pass_cse): ...new function.
17905         (pass_fast_rtl_dce): Replace declaration with that of...
17906         (make_pass_fast_rtl_dce): ...new function.
17907         (pass_ud_rtl_dce): Replace declaration with that of...
17908         (make_pass_ud_rtl_dce): ...new function.
17909         (pass_rtl_dce): Replace declaration with that of...
17910         (make_pass_rtl_dce): ...new function.
17911         (pass_rtl_dse1): Replace declaration with that of...
17912         (make_pass_rtl_dse1): ...new function.
17913         (pass_rtl_dse2): Replace declaration with that of...
17914         (make_pass_rtl_dse2): ...new function.
17915         (pass_rtl_dse3): Replace declaration with that of...
17916         (make_pass_rtl_dse3): ...new function.
17917         (pass_rtl_cprop): Replace declaration with that of...
17918         (make_pass_rtl_cprop): ...new function.
17919         (pass_rtl_pre): Replace declaration with that of...
17920         (make_pass_rtl_pre): ...new function.
17921         (pass_rtl_hoist): Replace declaration with that of...
17922         (make_pass_rtl_hoist): ...new function.
17923         (pass_rtl_store_motion): Replace declaration with that of...
17924         (make_pass_rtl_store_motion): ...new function.
17925         (pass_cse_after_global_opts): Replace declaration with that of...
17926         (make_pass_cse_after_global_opts): ...new function.
17927         (pass_rtl_ifcvt): Replace declaration with that of...
17928         (make_pass_rtl_ifcvt): ...new function.
17929         (pass_into_cfg_layout_mode): Replace declaration with that of...
17930         (make_pass_into_cfg_layout_mode): ...new function.
17931         (pass_outof_cfg_layout_mode): Replace declaration with that of...
17932         (make_pass_outof_cfg_layout_mode): ...new function.
17933         (pass_loop2): Replace declaration with that of...
17934         (make_pass_loop2): ...new function.
17935         (pass_rtl_loop_init): Replace declaration with that of...
17936         (make_pass_rtl_loop_init): ...new function.
17937         (pass_rtl_move_loop_invariants): Replace declaration with that of...
17938         (make_pass_rtl_move_loop_invariants): ...new function.
17939         (pass_rtl_unswitch): Replace declaration with that of...
17940         (make_pass_rtl_unswitch): ...new function.
17941         (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
17942         (make_pass_rtl_unroll_and_peel_loops): ...new function.
17943         (pass_rtl_doloop): Replace declaration with that of...
17944         (make_pass_rtl_doloop): ...new function.
17945         (pass_rtl_loop_done): Replace declaration with that of...
17946         (make_pass_rtl_loop_done): ...new function.
17947         (pass_web): Replace declaration with that of...
17948         (make_pass_web): ...new function.
17949         (pass_cse2): Replace declaration with that of...
17950         (make_pass_cse2): ...new function.
17951         (pass_df_initialize_opt): Replace declaration with that of...
17952         (make_pass_df_initialize_opt): ...new function.
17953         (pass_df_initialize_no_opt): Replace declaration with that of...
17954         (make_pass_df_initialize_no_opt): ...new function.
17955         (pass_reginfo_init): Replace declaration with that of...
17956         (make_pass_reginfo_init): ...new function.
17957         (pass_inc_dec): Replace declaration with that of...
17958         (make_pass_inc_dec): ...new function.
17959         (pass_stack_ptr_mod): Replace declaration with that of...
17960         (make_pass_stack_ptr_mod): ...new function.
17961         (pass_initialize_regs): Replace declaration with that of...
17962         (make_pass_initialize_regs): ...new function.
17963         (pass_combine): Replace declaration with that of...
17964         (make_pass_combine): ...new function.
17965         (pass_if_after_combine): Replace declaration with that of...
17966         (make_pass_if_after_combine): ...new function.
17967         (pass_ree): Replace declaration with that of...
17968         (make_pass_ree): ...new function.
17969         (pass_partition_blocks): Replace declaration with that of...
17970         (make_pass_partition_blocks): ...new function.
17971         (pass_match_asm_constraints): Replace declaration with that of...
17972         (make_pass_match_asm_constraints): ...new function.
17973         (pass_regmove): Replace declaration with that of...
17974         (make_pass_regmove): ...new function.
17975         (pass_split_all_insns): Replace declaration with that of...
17976         (make_pass_split_all_insns): ...new function.
17977         (pass_fast_rtl_byte_dce): Replace declaration with that of...
17978         (make_pass_fast_rtl_byte_dce): ...new function.
17979         (pass_lower_subreg2): Replace declaration with that of...
17980         (make_pass_lower_subreg2): ...new function.
17981         (pass_mode_switching): Replace declaration with that of...
17982         (make_pass_mode_switching): ...new function.
17983         (pass_sms): Replace declaration with that of...
17984         (make_pass_sms): ...new function.
17985         (pass_sched): Replace declaration with that of...
17986         (make_pass_sched): ...new function.
17987         (pass_ira): Replace declaration with that of...
17988         (make_pass_ira): ...new function.
17989         (pass_reload): Replace declaration with that of...
17990         (make_pass_reload): ...new function.
17991         (pass_clean_state): Replace declaration with that of...
17992         (make_pass_clean_state): ...new function.
17993         (pass_branch_prob): Replace declaration with that of...
17994         (make_pass_branch_prob): ...new function.
17995         (pass_value_profile_transformations): Replace declaration with that
17996         of...
17997         (make_pass_value_profile_transformations): ...new function.
17998         (pass_postreload_cse): Replace declaration with that of...
17999         (make_pass_postreload_cse): ...new function.
18000         (pass_gcse2): Replace declaration with that of...
18001         (make_pass_gcse2): ...new function.
18002         (pass_split_after_reload): Replace declaration with that of...
18003         (make_pass_split_after_reload): ...new function.
18004         (pass_branch_target_load_optimize1): Replace declaration with that
18005         of...
18006         (make_pass_branch_target_load_optimize1): ...new function.
18007         (pass_thread_prologue_and_epilogue): Replace declaration with that
18008         of...
18009         (make_pass_thread_prologue_and_epilogue): ...new function.
18010         (pass_stack_adjustments): Replace declaration with that of...
18011         (make_pass_stack_adjustments): ...new function.
18012         (pass_peephole2): Replace declaration with that of...
18013         (make_pass_peephole2): ...new function.
18014         (pass_if_after_reload): Replace declaration with that of...
18015         (make_pass_if_after_reload): ...new function.
18016         (pass_regrename): Replace declaration with that of...
18017         (make_pass_regrename): ...new function.
18018         (pass_cprop_hardreg): Replace declaration with that of...
18019         (make_pass_cprop_hardreg): ...new function.
18020         (pass_reorder_blocks): Replace declaration with that of...
18021         (make_pass_reorder_blocks): ...new function.
18022         (pass_branch_target_load_optimize2): Replace declaration with that
18023         of...
18024         (make_pass_branch_target_load_optimize2): ...new function.
18025         (pass_leaf_regs): Replace declaration with that of...
18026         (make_pass_leaf_regs): ...new function.
18027         (pass_split_before_sched2): Replace declaration with that of...
18028         (make_pass_split_before_sched2): ...new function.
18029         (pass_compare_elim_after_reload): Replace declaration with that of...
18030         (make_pass_compare_elim_after_reload): ...new function.
18031         (pass_sched2): Replace declaration with that of...
18032         (make_pass_sched2): ...new function.
18033         (pass_stack_regs): Replace declaration with that of...
18034         (make_pass_stack_regs): ...new function.
18035         (pass_stack_regs_run): Replace declaration with that of...
18036         (make_pass_stack_regs_run): ...new function.
18037         (pass_df_finish): Replace declaration with that of...
18038         (make_pass_df_finish): ...new function.
18039         (pass_compute_alignments): Replace declaration with that of...
18040         (make_pass_compute_alignments): ...new function.
18041         (pass_duplicate_computed_gotos): Replace declaration with that of...
18042         (make_pass_duplicate_computed_gotos): ...new function.
18043         (pass_variable_tracking): Replace declaration with that of...
18044         (make_pass_variable_tracking): ...new function.
18045         (pass_free_cfg): Replace declaration with that of...
18046         (make_pass_free_cfg): ...new function.
18047         (pass_machine_reorg): Replace declaration with that of...
18048         (make_pass_machine_reorg): ...new function.
18049         (pass_cleanup_barriers): Replace declaration with that of...
18050         (make_pass_cleanup_barriers): ...new function.
18051         (pass_delay_slots): Replace declaration with that of...
18052         (make_pass_delay_slots): ...new function.
18053         (pass_split_for_shorten_branches): Replace declaration with that of...
18054         (make_pass_split_for_shorten_branches): ...new function.
18055         (pass_split_before_regstack): Replace declaration with that of...
18056         (make_pass_split_before_regstack): ...new function.
18057         (pass_convert_to_eh_region_ranges): Replace declaration with that
18058         of...
18059         (make_pass_convert_to_eh_region_ranges): ...new function.
18060         (pass_shorten_branches): Replace declaration with that of...
18061         (make_pass_shorten_branches): ...new function.
18062         (pass_set_nothrow_function_flags): Replace declaration with that of...
18063         (make_pass_set_nothrow_function_flags): ...new function.
18064         (pass_dwarf2_frame): Replace declaration with that of...
18065         (make_pass_dwarf2_frame): ...new function.
18066         (pass_final): Replace declaration with that of...
18067         (make_pass_final): ...new function.
18068         (pass_rtl_seqabstr): Replace declaration with that of...
18069         (make_pass_rtl_seqabstr): ...new function.
18070         (pass_release_ssa_names): Replace declaration with that of...
18071         (make_pass_release_ssa_names): ...new function.
18072         (pass_early_inline): Replace declaration with that of...
18073         (make_pass_early_inline): ...new function.
18074         (pass_inline_parameters): Replace declaration with that of...
18075         (make_pass_inline_parameters): ...new function.
18076         (pass_update_address_taken): Replace declaration with that of...
18077         (make_pass_update_address_taken): ...new function.
18078         (pass_convert_switch): Replace declaration with that of...
18079         (make_pass_convert_switch): ...new function.
18080         * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
18081         to a subclass of simple_ipa_opt_pass along with...
18082         (pass_data_ipa_tree_profile): ...new pass_data instance and...
18083         (make_pass_ipa_tree_profile): ...new function.
18084         * tree-sra.c (pass_sra_early): Convert from a global struct to a
18085         subclass of gimple_opt_pass along with...
18086         (pass_data_sra_early): ...new pass_data instance and...
18087         (make_pass_sra_early): ...new function.
18088         (pass_sra): Convert from a global struct to a subclass of
18089         gimple_opt_pass along with...
18090         (pass_data_sra): ...new pass_data instance and...
18091         (make_pass_sra): ...new function.
18092         (pass_early_ipa_sra): Convert from a global struct to a subclass of
18093         gimple_opt_pass along with...
18094         (pass_data_early_ipa_sra): ...new pass_data instance and...
18095         (make_pass_early_ipa_sra): ...new function.
18096         * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
18097         subclass of gimple_opt_pass along with...
18098         (pass_data_ccp): ...new pass_data instance and...
18099         (make_pass_ccp): ...new function.
18100         (pass_fold_builtins): Convert from a global struct to a subclass of
18101         gimple_opt_pass along with...
18102         (pass_data_fold_builtins): ...new pass_data instance and...
18103         (make_pass_fold_builtins): ...new function.
18104         * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
18105         subclass of gimple_opt_pass along with...
18106         (pass_data_copy_prop): ...new pass_data instance and...
18107         (make_pass_copy_prop): ...new function.
18108         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
18109         global struct to a subclass of gimple_opt_pass along with...
18110         (pass_data_rename_ssa_copies): ...new pass_data instance and...
18111         (make_pass_rename_ssa_copies): ...new function.
18112         * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
18113         subclass of gimple_opt_pass along with...
18114         (pass_data_dce): ...new pass_data instance and...
18115         (make_pass_dce): ...new function.
18116         (pass_dce_loop): Convert from a global struct to a subclass of
18117         gimple_opt_pass along with...
18118         (pass_data_dce_loop): ...new pass_data instance and...
18119         (make_pass_dce_loop): ...new function.
18120         (pass_cd_dce): Convert from a global struct to a subclass of
18121         gimple_opt_pass along with...
18122         (pass_data_cd_dce): ...new pass_data instance and...
18123         (make_pass_cd_dce): ...new function.
18124         * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
18125         subclass of gimple_opt_pass along with...
18126         (pass_data_dominator): ...new pass_data instance and...
18127         (make_pass_dominator): ...new function.
18128         (pass_phi_only_cprop): Convert from a global struct to a subclass of
18129         gimple_opt_pass along with...
18130         (pass_data_phi_only_cprop): ...new pass_data instance and...
18131         (make_pass_phi_only_cprop): ...new function.
18132         * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
18133         subclass of gimple_opt_pass along with...
18134         (pass_data_dse): ...new pass_data instance and...
18135         (make_pass_dse): ...new function.
18136         * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
18137         a subclass of gimple_opt_pass along with...
18138         (pass_data_forwprop): ...new pass_data instance and...
18139         (make_pass_forwprop): ...new function.
18140         * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
18141         struct to a subclass of gimple_opt_pass along with...
18142         (pass_data_tree_ifcombine): ...new pass_data instance and...
18143         (make_pass_tree_ifcombine): ...new function.
18144         * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
18145         subclass of gimple_opt_pass along with...
18146         (pass_data_ch): ...new pass_data instance and...
18147         (make_pass_ch): ...new function.
18148         * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
18149         subclass of gimple_opt_pass along with...
18150         (pass_data_tree_loop): ...new pass_data instance and...
18151         (make_pass_tree_loop): ...new function.
18152         (pass_tree_loop_init): Convert from a global struct to a subclass of
18153         gimple_opt_pass along with...
18154         (pass_data_tree_loop_init): ...new pass_data instance and...
18155         (make_pass_tree_loop_init): ...new function.
18156         (pass_lim): Convert from a global struct to a subclass of
18157         gimple_opt_pass along with...
18158         (pass_data_lim): ...new pass_data instance and...
18159         (make_pass_lim): ...new function.
18160         (pass_tree_unswitch): Convert from a global struct to a subclass of
18161         gimple_opt_pass along with...
18162         (pass_data_tree_unswitch): ...new pass_data instance and...
18163         (make_pass_tree_unswitch): ...new function.
18164         (pass_predcom): Convert from a global struct to a subclass of
18165         gimple_opt_pass along with...
18166         (pass_data_predcom): ...new pass_data instance and...
18167         (make_pass_predcom): ...new function.
18168         (pass_vectorize): Convert from a global struct to a subclass of
18169         gimple_opt_pass along with...
18170         (pass_data_vectorize): ...new pass_data instance and...
18171         (make_pass_vectorize): ...new function.
18172         (pass_graphite): Convert from a global struct to a subclass of
18173         gimple_opt_pass along with...
18174         (pass_data_graphite): ...new pass_data instance and...
18175         (make_pass_graphite): ...new function.
18176         (pass_graphite_transforms): Convert from a global struct to a subclass
18177         of gimple_opt_pass along with...
18178         (pass_data_graphite_transforms): ...new pass_data instance and...
18179         (make_pass_graphite_transforms): ...new function.
18180         (pass_check_data_deps): Convert from a global struct to a subclass of
18181         gimple_opt_pass along with...
18182         (pass_data_check_data_deps): ...new pass_data instance and...
18183         (make_pass_check_data_deps): ...new function.
18184         (pass_iv_canon): Convert from a global struct to a subclass of
18185         gimple_opt_pass along with...
18186         (pass_data_iv_canon): ...new pass_data instance and...
18187         (make_pass_iv_canon): ...new function.
18188         (pass_scev_cprop): Convert from a global struct to a subclass of
18189         gimple_opt_pass along with...
18190         (pass_data_scev_cprop): ...new pass_data instance and...
18191         (make_pass_scev_cprop): ...new function.
18192         (pass_record_bounds): Convert from a global struct to a subclass of
18193         gimple_opt_pass along with...
18194         (pass_data_record_bounds): ...new pass_data instance and...
18195         (make_pass_record_bounds): ...new function.
18196         (pass_complete_unroll): Convert from a global struct to a subclass of
18197         gimple_opt_pass along with...
18198         (pass_data_complete_unroll): ...new pass_data instance and...
18199         (make_pass_complete_unroll): ...new function.
18200         (pass_complete_unrolli): Convert from a global struct to a subclass of
18201         gimple_opt_pass along with...
18202         (pass_data_complete_unrolli): ...new pass_data instance and...
18203         (make_pass_complete_unrolli): ...new function.
18204         (pass_parallelize_loops): Convert from a global struct to a subclass
18205         of gimple_opt_pass along with...
18206         (pass_data_parallelize_loops): ...new pass_data instance and...
18207         (make_pass_parallelize_loops): ...new function.
18208         (pass_loop_prefetch): Convert from a global struct to a subclass of
18209         gimple_opt_pass along with...
18210         (pass_data_loop_prefetch): ...new pass_data instance and...
18211         (make_pass_loop_prefetch): ...new function.
18212         (pass_iv_optimize): Convert from a global struct to a subclass of
18213         gimple_opt_pass along with...
18214         (pass_data_iv_optimize): ...new pass_data instance and...
18215         (make_pass_iv_optimize): ...new function.
18216         (pass_tree_loop_done): Convert from a global struct to a subclass of
18217         gimple_opt_pass along with...
18218         (pass_data_tree_loop_done): ...new pass_data instance and...
18219         (make_pass_tree_loop_done): ...new function.
18220         * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
18221         struct to a subclass of gimple_opt_pass along with...
18222         (pass_data_cse_reciprocals): ...new pass_data instance and...
18223         (make_pass_cse_reciprocals): ...new function.
18224         (pass_cse_sincos): Convert from a global struct to a subclass of
18225         gimple_opt_pass along with...
18226         (pass_data_cse_sincos): ...new pass_data instance and...
18227         (make_pass_cse_sincos): ...new function.
18228         (pass_optimize_bswap): Convert from a global struct to a subclass of
18229         gimple_opt_pass along with...
18230         (pass_data_optimize_bswap): ...new pass_data instance and...
18231         (make_pass_optimize_bswap): ...new function.
18232         (pass_optimize_widening_mul): Convert from a global struct to a
18233         subclass of gimple_opt_pass along with...
18234         (pass_data_optimize_widening_mul): ...new pass_data instance and...
18235         (make_pass_optimize_widening_mul): ...new function.
18236         * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
18237         subclass of gimple_opt_pass along with...
18238         (pass_data_phiopt): ...new pass_data instance and...
18239         (make_pass_phiopt): ...new function.
18240         (pass_cselim): Convert from a global struct to a subclass of
18241         gimple_opt_pass along with...
18242         (pass_data_cselim): ...new pass_data instance and...
18243         (make_pass_cselim): ...new function.
18244         * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
18245         subclass of gimple_opt_pass along with...
18246         (pass_data_phiprop): ...new pass_data instance and...
18247         (make_pass_phiprop): ...new function.
18248         * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
18249         subclass of gimple_opt_pass along with...
18250         (pass_data_pre): ...new pass_data instance and...
18251         (make_pass_pre): ...new function.
18252         (pass_fre): Convert from a global struct to a subclass of
18253         gimple_opt_pass along with...
18254         (pass_data_fre): ...new pass_data instance and...
18255         (make_pass_fre): ...new function.
18256         * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
18257         subclass of gimple_opt_pass along with...
18258         (pass_data_reassoc): ...new pass_data instance and...
18259         (make_pass_reassoc): ...new function.
18260         * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
18261         subclass of gimple_opt_pass along with...
18262         (pass_data_sink_code): ...new pass_data instance and...
18263         (make_pass_sink_code): ...new function.
18264         * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
18265         subclass of gimple_opt_pass along with...
18266         (pass_data_strlen): ...new pass_data instance and...
18267         (make_pass_strlen): ...new function.
18268         * tree-ssa-structalias.c (pass_build_alias): Convert from a global
18269         struct to a subclass of gimple_opt_pass along with...
18270         (pass_data_build_alias): ...new pass_data instance and...
18271         (make_pass_build_alias): ...new function.
18272         (pass_build_ealias): Convert from a global struct to a subclass of
18273         gimple_opt_pass along with...
18274         (pass_data_build_ealias): ...new pass_data instance and...
18275         (make_pass_build_ealias): ...new function.
18276         (pass_ipa_pta): Convert from a global struct to a subclass of
18277         simple_ipa_opt_pass along with...
18278         (pass_data_ipa_pta): ...new pass_data instance and...
18279         (make_pass_ipa_pta): ...new function.
18280         * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
18281         subclass of gimple_opt_pass along with...
18282         (pass_data_uncprop): ...new pass_data instance and...
18283         (make_pass_uncprop): ...new function.
18284         * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
18285         global struct to a subclass of gimple_opt_pass along with...
18286         (pass_data_late_warn_uninitialized): ...new pass_data instance and...
18287         (make_pass_late_warn_uninitialized): ...new function.
18288         * tree-ssa.c (pass_init_datastructures): Convert from a global struct
18289         to a subclass of gimple_opt_pass along with...
18290         (pass_data_init_datastructures): ...new pass_data instance and...
18291         (make_pass_init_datastructures): ...new function.
18292         (pass_early_warn_uninitialized): Convert from a global struct to a
18293         subclass of gimple_opt_pass along with...
18294         (pass_data_early_warn_uninitialized): ...new pass_data instance and...
18295         (make_pass_early_warn_uninitialized): ...new function.
18296         (pass_update_address_taken): Convert from a global struct to a
18297         subclass of gimple_opt_pass along with...
18298         (pass_data_update_address_taken): ...new pass_data instance and...
18299         (make_pass_update_address_taken): ...new function.
18300         * tree-ssanames.c (pass_release_ssa_names): Convert from a global
18301         struct to a subclass of gimple_opt_pass along with...
18302         (pass_data_release_ssa_names): ...new pass_data instance and...
18303         (make_pass_release_ssa_names): ...new function.
18304         * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
18305         subclass of gimple_opt_pass along with...
18306         (pass_data_stdarg): ...new pass_data instance and...
18307         (make_pass_stdarg): ...new function.
18308         * tree-switch-conversion.c (pass_convert_switch): Convert from a
18309         global struct to a subclass of gimple_opt_pass along with...
18310         (pass_data_convert_switch): ...new pass_data instance and...
18311         (make_pass_convert_switch): ...new function.
18312         * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
18313         to a subclass of gimple_opt_pass along with...
18314         (pass_data_tail_recursion): ...new pass_data instance and...
18315         (make_pass_tail_recursion): ...new function.
18316         (pass_tail_calls): Convert from a global struct to a subclass of
18317         gimple_opt_pass along with...
18318         (pass_data_tail_calls): ...new pass_data instance and...
18319         (make_pass_tail_calls): ...new function.
18320         * tree-vect-generic.c (pass_lower_vector): Convert from a global
18321         struct to a subclass of gimple_opt_pass along with...
18322         (pass_data_lower_vector): ...new pass_data instance and...
18323         (make_pass_lower_vector): ...new function.
18324         (pass_lower_vector_ssa): Convert from a global struct to a subclass of
18325         gimple_opt_pass along with...
18326         (pass_data_lower_vector_ssa): ...new pass_data instance and...
18327         (make_pass_lower_vector_ssa): ...new function.
18328         * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
18329         to a subclass of gimple_opt_pass along with...
18330         (pass_data_slp_vectorize): ...new pass_data instance and...
18331         (make_pass_slp_vectorize): ...new function.
18332         (pass_ipa_increase_alignment): Convert from a global struct to a
18333         subclass of simple_ipa_opt_pass along with...
18334         (pass_data_ipa_increase_alignment): ...new pass_data instance and...
18335         (make_pass_ipa_increase_alignment): ...new function.
18336         * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
18337         gimple_opt_pass along with...
18338         (pass_data_vrp): ...new pass_data instance and...
18339         (make_pass_vrp): ...new function.
18340         * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
18341         subclass of simple_ipa_opt_pass along with...
18342         (pass_data_ipa_free_lang_data): ...new pass_data instance and...
18343         (make_pass_ipa_free_lang_data): ...new function.
18344         * tsan.c (pass_tsan): Convert from a global struct to a subclass of
18345         gimple_opt_pass along with...
18346         (pass_data_tsan): ...new pass_data instance and...
18347         (make_pass_tsan): ...new function.
18348         (pass_tsan_O0): Convert from a global struct to a subclass of
18349         gimple_opt_pass along with...
18350         (pass_data_tsan_O0): ...new pass_data instance and...
18351         (make_pass_tsan_O0): ...new function.
18352         * var-tracking.c (pass_variable_tracking): Convert from a global
18353         struct to a subclass of rtl_opt_pass along with...
18354         (pass_data_variable_tracking): ...new pass_data instance and...
18355         (make_pass_variable_tracking): ...new function.
18356         * web.c (pass_web): Convert from a global struct to a subclass of
18357         rtl_opt_pass along with...
18358         (pass_data_web): ...new pass_data instance and...
18359         (make_pass_web): ...new function.
18360         * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
18361         declaration with that of...
18362         (make_pass_mode_switch_use): ...new function.
18363         (pass_resolve_sw_modes): Replace declaration with that of...
18364         (make_pass_resolve_sw_modes): ...new function.
18365         * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
18366         from a global struct to a subclass of rtl_opt_pass along with...
18367         (pass_data_mode_switch_use): ...new pass_data instance and...
18368         (make_pass_mode_switch_use): ...new function.
18369         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
18370         from a global struct to a subclass of rtl_opt_pass along with...
18371         (pass_data_resolve_sw_modes): ...new pass_data instance and...
18372         (make_pass_resolve_sw_modes): ...new function.
18373         * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
18374         struct to a subclass of rtl_opt_pass along with...
18375         (pass_data_insert_vzeroupper): ...new pass_data instance and...
18376         (make_pass_insert_vzeroupper): ...new function.
18377         * config/sparc/sparc.c (pass_work_around_errata): Convert from a
18378         global struct to a subclass of rtl_opt_pass along with...
18379         (pass_data_work_around_errata): ...new pass_data instance and...
18380         (make_pass_work_around_errata): ...new function.
18381         * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
18382         struct to a subclass of rtl_opt_pass along with...
18383         (pass_data_mips_machine_reorg2): ...new pass_data instance and...
18384         (make_pass_mips_machine_reorg2): ...new function.
18386 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
18388         * passes.c (pass_manager::operator new): New.
18390 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
18392         Handwritten part of conversion of passes to C++ classes.
18394         * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
18395         (toplev.o): Add dep on PASS_MANAGER_H.
18396         * cgraphunit.c (cgraph_process_new_functions): Rework invocation
18397         of early local pases to reflect this moving from a global to a
18398         member of gcc::pass_manager.
18399         (cgraph_add_new_function): Likewise.
18400         * lto-cgraph.c (lto_output_node): Update for conversion of
18401         struct ipa_opt_pass_d to a C++ subclass of opt_pass.
18402         * passes.c (opt_pass::clone): New.
18403         (opt_pass::gate): New.
18404         (opt_pass::execute): New.
18405         (opt_pass::opt_pass): New.
18406         (pass_manager::execute_early_local_passes): New.
18407         (pass_manager::execute_pass_mode_switching): new.
18408         (finish_optimization_passes): Convert to...
18409         (pass_manager::finish_optimization_passes): ...this.
18410         (finish_optimization_passes): Update for conversion of passes to
18411         C++ classes.
18412         (register_dump_files_1): Use has_gate since we cannot portably
18413         check a vtable entry against NULL.
18414         (dump_one_pass): Likewise.
18415         (ipa_write_summaries_2): Likewise.
18416         (ipa_write_optimization_summaries_1): Likewise.
18417         (ipa_read_summaries_1): Likewise.
18418         (ipa_read_optimization_summaries_1): Likewise.
18419         (execute_ipa_stmt_fixups): Likewise.
18420         (pass_manager::pass_manager): Rewrite pass-creation, invoking
18421         pass-creation functions rather than wiring up globals, and
18422         storing the results in fields of pass_manager generated using
18423         pass-instances.def.
18424         (pass_manager::dump_profile_report): Update for conversion of
18425         passes to C++ classes.
18426         (pass_manager::execute_ipa_summary_passes): Likewise.
18427         (execute_one_ipa_transform_pass): Likewise.
18428         (execute_one_pass): Use has_gate and has_execute since we cannot
18429         portably check a vtable entry against NULL.
18430         * pass_manager.h (pass_manager::finish_optimization_passes): New.
18431         (pass_manager): Use pass-instances.def to add fields for the
18432         various pass instances.
18433         * toplev.c (finalize): Update for move of
18434         finish_optimization_passes to a method of gcc::pass_manager.
18435         * toplev.h (finish_optimization_passes): Move to method of class
18436         pass_manager.
18437         * tree-pass.h (struct pass_data): New.
18438         (opt_pass): Convert to C++ class, make it a subclass of pass_data.
18439         (opt_pass::gate): Convert to virtual function.
18440         (opt_pass::~opt_pass): New.
18441         (opt_pass::clone): New.
18442         (opt_pass::execute): Convert to virtual function.
18443         (opt_pass::opt_pass): New.
18444         (opt_pass::ctxt_): new.
18445         (gimple_opt_pass): Convert to subclass of opt_pass.
18446         (gimple_opt_pass::gimple_opt_pass): New.
18447         (rtl_opt_pass): Convert to subclass of opt_pass.
18448         (rtl_opt_pass::rtl_opt_pass): New.
18449         (ipa_opt_pass_d): Convert to subclass of opt_pass.
18450         (ipa_opt_pass_d::ipa_opt_pass_d): New.
18451         (simple_ipa_opt_pass): Convert to subclass of opt_pass.
18452         (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
18453         * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
18454         invocation of pass_mode_switching to reflect this moving from a
18455         global to a member of gcc::pass_manager.
18456         (ix86_option_override): Rework how pass_insert_vzeroupper is
18457         added to the pass_manager to reflect autogenerated changes.
18458         * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
18460 2013-08-05  Richard Earnshaw  <rearnsha@arm.com>
18462         PR rtl-optimization/57708
18463         * recog.c (peep2_find_free_register): Validate all regs in a
18464         multi-reg mode.
18466 2013-08-05  Jan Hubicka  <jh@suse.cz>
18468         PR lto/57602
18469         * cgraph.c (verify_cgraph_node): Accept local flags from other
18470         partitions.
18471         * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
18472         (function_and_variable_visibility): Likewise.
18473         * trans-mem.c (ipa_tm_create_version): TM versions are not local.
18475 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18477         * graph.c (init_graph_slim_pretty_print): Remove.
18478         (print_graph_cfg): Do not call it.  Use local pretty printer.
18479         (start_graph_dump): Likewise.
18481 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18483         * gimple-pretty-print.c (buffer): Remove.
18484         (initialized): Likewise.
18485         (maybe_init_pretty_print): Likewise.
18486         (print_gimple_stmt): Do not call it.  Use non-static local
18487         pretty_printer variable.
18488         (print_gimple_expr): Likewise.
18489         (print_gimple_seq): Likewise.
18490         (gimple_dump_bb): Likewise.
18492 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18494         * asan.c (asan_pp): Remove.
18495         (asan_pp_initialized): Likewise.
18496         (asan_pp_initialize): Likewise.
18497         (asan_pp_string): Take a pretty_printer parameter.  Adjust callers.
18498         (asan_emit_stack_protection): Tidy.  Use local pretty printer.
18499         (asan_add_global): Likewise.
18501 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18503         * pretty-print.h (pp_base): Remove.  Adjust dependent macros.
18504         * diagnostic.h (diagnostic_flush_buffer): Adjust.
18505         * pretty-print.c (pp_formatted_text_data): Likewise.
18506         (pp_indent): Rename from pp_base_indent.
18507         (pp_format): Rename from pp_base_format.
18508         (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
18509         (pp_format_verbatim): Rename from pp_base_format_verbatim.
18510         (pp_flush): Rename from pp_base_flush.
18511         (pp_set_line_maximum_length): Rename from
18512         pp_base_set_line_maximum_length.
18513         (pp_clear_output_area): Rename from pp_base_clear_output_area.
18514         (pp_set_prefix): Rename from pp_base_set_prefix.
18515         (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
18516         (pp_emit_prefix): Rename from pp_base_emit_prefix.
18517         (pp_append_text): Rename from pp_base_append_text.
18518         (pp_formatted_text): Rename from pp_base_formatted_text.
18519         (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
18520         (pp_remaining_character_count_for_line): Rename from
18521         pp_base_remaining_character_count_for_line.
18522         (pp_newline): Rename from pp_base_newline.
18523         (pp_character): Rename from pp_base_character.
18524         (pp_string): Rename from pp_base_string.
18525         (pp_maybe_space): Rename from pp_base_maybe_space.
18526         * asan.c (asan_pp_string): Adjust.
18527         (asan_emit_stack_protection): Likewise.
18528         (asan_add_global): Likewise.
18529         * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
18530         * tree-mudflap.c (mf_varname_tree): Likewise.
18531         * tree-pretty-print.c (pp_tree_identifier): Rename from
18532         pp_base_tree_identifier.
18533         * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
18534         Declare as function.
18536 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18538         * pretty-print.h (pp_bar_bar): New.
18539         (pp_ampersand_ampersand): Likewise.
18540         (pp_less_equal): Likewise.
18541         (pp_greater_equal): Likewise.
18542         * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
18543         printer functions instead of pp_string or operators and punctuators.
18544         (dump_gimple_call): Likewise.
18545         (dump_gimple_omp_for): Likewise.
18546         (dump_gimple_transaction): Likewise.
18547         (dump_gimple_phi): Likewise.
18548         (pp_gimple_stmt_1): Likewise.
18549         * sched-vis.c (print_insn): Likewise.
18550         * tree-mudflap.c (mf_varname_tree): Likewise.
18551         * tree-pretty-print.c (dump_block_node): Likewise.
18552         (dump_generic_node): Likewise.
18554 2013-08-02  Jan Hubicka  <jh@suse.cz>
18556         * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
18557         boundaries.
18558         * lto-streamer-out.c (tree_is_indexable): Results decls and
18559         parm decls are not indexable.
18560         (DFS_write_tree_body): Do not follow args and results.
18561         (hash_tree): Likewise.
18562         (output_functions): Rearrange so struct function is needed
18563         only when real body is output; be able to also ouptut abstract
18564         functions; output DECL_ARGUMENTS and DECL_RESULT.
18565         (lto_output): When not in WPA, ale store abstract functions.
18566         (write_symbol): Do not care about RESULT_DECL.
18567         (output_symbol_p): Handle correctly sbtract decls.
18568         * lto-streamer-in.c (input_function): Rearrange so struct
18569         function can be NULL at entry; allow streaming of
18570         functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
18571         * ipa.c (symtab_remove_unreachable_nodes): Silence confused
18572         sanity check during LTO.
18573         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
18574         RESULT_DECl and DECL_ARGUMENTS.
18575         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
18576         Likewise.
18578 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18580         * pretty-print.h (pp_underscore): New.
18581         (pp_comma): Tidy.
18582         * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
18583         printer functions instead of pp_character.
18584         (dump_binary_rhs): Likewise.
18585         (dump_ternary_rhs): Likewise.
18586         (dump_gimple_call_args): Likewise.
18587         (pp_points_to_solution): Likewise.
18588         (dump_gimple_call): Likewise.
18589         (dump_gimple_switch): Likewise.
18590         (dump_gimple_cond): Likewise.
18591         (dump_gimple_bind): Likewise.
18592         (dump_gimple_try): Likewise.
18593         (dump_gimple_omp_for): Likewise.
18594         (dump_gimple_omp_continue): Likewise.
18595         (dump_gimple_omp_single): Likewise.
18596         (dump_gimple_omp_sections): Likewise.
18597         (dump_gimple_omp_block): Likewise.
18598         (dump_gimple_omp_critical): Likewise.
18599         (dump_gimple_transaction): Likewise.
18600         (dump_gimple_asm): Likewise.
18601         (dump_gimple_phi): Likewise.
18602         (dump_gimple_omp_parallel): Likewise.
18603         (dump_gimple_omp_task): Likewise.
18604         (dump_gimple_omp_atomic_load): Likewise.
18605         (dump_gimple_omp_atomic_store): Likewise.
18606         (dump_gimple_mem_ops): Likewise.
18607         (pp_gimple_stmt_1): Likewise.
18608         (pp_cfg_jump): Likewise.
18609         (dump_implicit_edges): Likewise.
18610         (gimple_dump_bb_for_graph): Likewise.
18611         * graph.c (draw_cfg_node): Likewise.
18612         * langhooks.c (lhd_print_error_function): Likewise.
18613         * sched-vis.c (print_exp): Likewise.
18614         (print_value): Likewise.
18615         (print_pattern): Likewise.
18616         (print_insn): Likewise.
18617         (rtl_dump_bb_for_graph): Likewise.
18618         * tree-pretty-print.c (dump_function_declaration): Likewise.
18619         (dump_array_domain): Likewise.
18620         (dump_omp_clause): Likewise.
18621         (dump_location): Likewise.
18622         (dump_generic_node): Likewise.
18623         (print_struct_decl): Likewise.
18624         * diagnostic.c (diagnostic_show_locus): Use pp_space.
18626 2013-08-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
18628         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
18629         candidate table when replacing a candidate statement.
18630         (replace_rhs_if_not_dup): Likewise.
18631         (replace_one_candidate): Likewise.
18633 2013-08-02  Jan Hubicka  <jh@suse.cz>
18634             Martin Liska  <marxin.liska@gmail.com>
18636         * cgraphunit.c (add_new_function): Fix logic when adding from
18637         late IPA pass.
18638         (assemble_thunk): Rename to ...
18639         (expand_thunk); .. this one; export; get it working with
18640         general functions; make produced gimple valid.
18641         * cgraph.h (expand_thunk): Declare.
18643 2013-08-02  Jan Hubicka  <jh@suse.cz>
18645         * ipa-cp.c (gather_context_independent_values): Use
18646         ipa_get_param_move_cost.
18647         (get_replacement_map): Remove PARAM; move parameter folding
18648         into tree-inline.c
18649         (create_specialized_node): Update.
18650         * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
18651         assert that we have gimple body; update move_cost.
18652         (count_formal_params): Assert that we have gimple body.
18653         (ipa_dump_param): New function.
18654         (ipa_alloc_node_params): Break out from ...
18655         (ipa_initialize_node_params): ... here.
18656         (ipa_get_vector_of_formal_parms): ICE when used in WPA.
18657         (ipa_write_node_info): Stream move costs.
18658         (ipa_read_node_info): Read move costs.
18659         (ipa_update_after_lto_read): Do not recompute node params.
18660         * ipa-prop.h (ipa_param_descriptor): Add move_cost.
18661         (ipa_get_param): Check we are not in WPA.
18662         (ipa_get_param_move_cost): New.
18663         * tree-inline.c (tree_function_versioning): Fold replacement as needed.
18664         * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
18665         parm numbers to be present.
18667 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
18669         PR rtl-optimization/58048
18670         * lra-constraints.c (process_alt_operands): Don't check asm
18671         operand on register.
18673 2013-08-02  Eric Botcazou  <ebotcazou@adacore.com>
18675         * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
18676         the implied StoreLoad barrier for atomic operations if before.
18678 2013-08-02  Jan Hubicka  <jh@suse.cz>
18679             Martin Liska  <marxin.liska@gmail.com>
18681         * cgraph.c (cgraph_function_body_availability): Do not check
18682         cgraph flags.
18683         * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
18684         symtab_node_availability): Declare.
18685         * ipa.c (can_replace_by_local_alias): New.
18686         (function_and_variable_visibility): Use it.
18687         * symtab.c (symtab_for_node_and_aliases,
18688         symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
18690 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
18692         PR rtl-optimization/57963
18693         * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
18694         (lra_constraints): Use them.
18696 2013-08-02  Sofiane Naci  <sofiane.naci@arm.com>
18698         * config/arm/types.md (define_attr "type"): Add "load_acq"
18699         and "store_rel".
18700         * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
18701         changes.
18702         (cortex_a53_store1): Likewise.
18704 2013-08-01  Jan Hubicka  <jh@suse.cz>
18706         * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
18707         partitions are not needed.
18709 2013-08-01  Uros Bizjak  <ubizjak@gmail.com>
18711         * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
18712         * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
18713         MAYBE_NON_Q_CLASS_P where appropriate.
18715 2013-08-01  Jan Hubicka  <jh@suse.cz>
18717         * cgraph.h (release_function_body): Declare.
18718         * tree.c (free_lang_data_in_decl): Free, parameters and return values
18719         of unused delcarations.
18721 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18723         * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
18724         RTL form when subtracting a constant.
18726 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18728         * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
18729         Generate canonical plus rtx with negated immediate instead of minus
18730         where appropriate.
18731         * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
18733 2013-08-01  Jan Hubicka  <jh@suse.cz>
18735         * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
18736         (cgraph_release_function_body): Likewise.
18737         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
18738         * cgraph.h (cgrpah_node): Rename abstract_and_needed
18739         to used_as_abstract_origin.
18740         * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
18741         symbols used as abstract origins.
18742         * cgraphunit.c (analyze_functions): Update.
18743         * ipa.c (symtab_remove_unreachable_nodes): Recompute
18744         used_as_abstract_origin.
18745         * tree-inline.c (tree_function_versioning): Update
18746         used_as_abstract_origin; be ready for DECL_RESULT and
18747         DECL_ARGUMENTS to be NULL.
18749         * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
18750         for abstract functions.
18751         * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
18752         real symbols.
18754 2013-08-01  Jan Hubicka  <jh@suse.cz>
18756         * profile.c (compute_value_histograms): Fix thinko.
18758 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
18760         * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs.  Add
18761         aarch-common-protos.h to extra_headers.
18762         (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
18763         * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
18764         * config/aarch64/t-aarch64 (aarch-common.o): Define.
18766 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
18768         * config/aarch64/aarch64.md (define_attr "type"): Delete.
18769         Include "../arm/types.md".  Define "type" attribute for all patterns.
18770         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
18771         attribute changes.
18773 2013-07-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
18775         * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
18776         to support power8 load fusion.
18777         (fusion_gpr_mem_load): Likewise.
18779         * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
18781         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
18782         declarations for power8 load fusion.
18783         (emit_fusion_gpr_load): Likewise.
18785         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
18786         tuning for power8, turn on fusion mode by default.  Turn on sign
18787         extending fusion mode if normal fusion mode is on, and we are at
18788         -O2 or -O3.
18789         (fusion_gpr_load_p): New function, return true if we can fuse an
18790         addis instruction with a dependent load to a GPR.
18791         (emit_fusion_gpr_load): Emit the instructions for power8 load
18792         fusion to GPRs.
18794         * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
18795         (VSX load fusion peepholes): New peepholes to fuse together an
18796         addi instruction with a VSX load instruction.
18798         * config/rs6000/rs6000.md (GPR load fusion peepholes): New
18799         peepholes to fuse an addis instruction with a load to a GPR base
18800         register.  If we are supporting sign extending fusions, convert
18801         sign extending loads to zero extending loads and add an explicit
18802         sign extension.
18804 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
18806         * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs.  Add
18807         aarch-common-protos.h to extra_headers.
18808         (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
18809         * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
18810         (arm_early_store_addr_dep): Likewise.
18811         (arm_no_early_alu_shift_dep): Likewise.
18812         (arm_no_early_alu_shift_value_dep): Likewise.
18813         (arm_no_early_mul_dep): Likewise.
18814         (arm_no_early_store_addr_dep): Likewise.
18815         (arm_mac_accumulator_is_mul_result): Likewise.
18816         (arm_mac_accumulator_is_result): Likewise.
18817         * config/arm/aarch-common.c: ... here.  New file.
18818         * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
18819         here to ...
18820         (arm_early_store_addr_dep): Likewise.
18821         (arm_no_early_alu_shift_dep): Likewise.
18822         (arm_no_early_alu_shift_value_dep): Likewise.
18823         (arm_no_early_mul_dep): Likewise.
18824         (arm_no_early_store_addr_dep): Likewise.
18825         (arm_mac_accumulator_is_mul_result): Likewise.
18826         (arm_mac_accumulator_is_result): Likewise.
18827         * config/arm/aarch-common-protos.h: ... here.  New file.
18828         * config/arm/t-arm (aarch-common.o): Define.
18830 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
18832         * config/arm/arm.md: Include new file "types.md".
18833         (define_attr "type"): Move from here to ...
18834         (define_attr "mul32"): Likewise.
18835         (define_attr "mul64"): Likewise.
18836         * config/arm/types.md: ... here.  New file.
18838 2013-07-31  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18840         * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
18841         * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
18843 2013-07-31  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
18845         * gen-pass-instances.awk: Fix offset of substr().
18847 2013-07-31  David Malcolm  <dmalcolm@redhat.com>
18849         * Makefile.in (pass-instances.def): New.
18850         (passes.o): Replace dependency on passes.def with one on
18851         pass-instances.def
18853         * gen-pass-instances.awk: New.
18855         * passes.c (pass_manager::pass_manager): Use pass-instances.def
18856         rather than passes.def, updating local definition of NEXT_PASS
18857         macro to add an extra NUM parameter (currently unused).
18859 2013-07-30  David Malcolm  <dmalcolm@redhat.com>
18861         * Makefile.in (PASS_MANAGER_H): New.
18862         (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
18863         (passes.o): Likewise.
18864         (statistics.o): Likewise.
18865         (cgraphunit.o): Likewise.
18866         (context.o): Depend on PASS_MANAGER_H.
18868         * pass_manager.h: New.
18870         * cgraphunit.c (cgraph_add_new_function): Update for moves
18871         of globals to fields of pass_manager.
18872         (analyze_function): Likewise.
18873         (expand_function): Likewise.
18874         (ipa_passes): Likewise.
18875         (compile): Likewise.
18877         * context.c (context::context): New.
18878         * context.h  (context::context): New.
18879         (context::get_passes): New.
18880         (context::passes_): New.
18882         * lto-cgraph.c (input_node): Update for moves of globals to
18883         fields of pass_manager.
18885         * passes.c (all_passes): Remove, in favor of a field of the
18886         same name within the new class pass_manager.
18887         (all_small_ipa_passes): Likewise.
18888         (all_lowering_passes): Likewise.
18889         (all_regular_ipa_passes): Likewise.
18890         (all_late_ipa_passes): Likewise.
18891         (all_lto_gen_passes): Likewise.
18892         (passes_by_id): Likewise.
18893         (passes_by_id_size): Likewise.
18894         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
18895         the new class pass_manager.
18896         (set_pass_for_id): Convert to...
18897         (pass_manager::set_pass_for_id): ...method.
18898         (get_pass_for_id): Convert to...
18899         (pass_manager::get_pass_for_id): ...method.
18900         (register_one_dump_file): Move body of implementation into...
18901         (pass_manager::register_one_dump_file): ...here.
18902         (register_dump_files_1): Convert to...
18903         (pass_manager::register_dump_files_1): ...method.
18904         (register_dump_files): Convert to...
18905         (pass_manager::register_dump_files): ...method.
18906         (create_pass_tab): Update for moves of globals to fields of
18907         pass_manager.
18908         (dump_passes): Move body of implementation into...
18909         (pass_manager::dump_passes): ...here.
18910         (register_pass): Move body of implementation into...
18911         (pass_manager::register_pass): ...here.
18912         (init_optimization_passes): Convert into...
18913         (pass_manager::pass_manager): ...constructor for new
18914         pass_manager class, and initialize the pass_lists array.
18915         (check_profile_consistency): Update for moves of globals to
18916         fields of pass_manager.
18917         (dump_profile_report): Move body of implementation into...
18918         (pass_manager::dump_profile_report): ...here.
18919         (ipa_write_summaries_1): Update for moves of pass lists from
18920         being globals to fields of pass_manager.
18921         (ipa_write_optimization_summaries): Likewise.
18922         (ipa_read_summaries):  Likewise.
18923         (ipa_read_optimization_summaries): Likewise.
18924         (execute_all_ipa_stmt_fixups): Likewise.
18926         * statistics.c (statistics_fini): Update for moves of globals to
18927         fields of pass_manager.
18929         * toplev.c (general_init): Replace call to
18930         init_optimization_passes with construction of the pass_manager
18931         instance.
18933         * tree-pass.h (all_passes): Remove, in favor of a field of the
18934         same name within the new class pass_manager.
18935         (all_small_ipa_passes): Likewise.
18936         (all_lowering_passes): Likewise.
18937         (all_regular_ipa_passes): Likewise.
18938         (all_lto_gen_passes): Likewise.
18939         (all_late_ipa_passes): Likewise.
18940         (passes_by_id): Likewise.
18941         (passes_by_id_size): Likewise.
18942         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
18943         the new class pass_manager.
18944         (get_pass_for_id): Remove.
18946 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
18948         * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
18949         configs.
18951 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
18953         * arm.md (mulhi3): New expand pattern.
18955 2013-07-30  Jan Hubicka  <jh@suse.cz>
18956             Martin Liska  <marxin.liska@gmail.com>
18958         * profile.c (compute_value_histograms): Do not ICE when
18959         there is mismatch only on some counters.
18961 2013-07-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18963         PR rtl-optimization/57637
18964         * function.c (move_insn_for_shrink_wrap): Also check the
18965         GEN set of the LIVE problem for the liveness analysis
18966         if it exists, otherwise give up.
18968 2013-07-29  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
18970         PR tree-optimization/57993
18971         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
18972         replaced statement in the candidate table.
18973         (phi_add_costs): Return infinite cost when the hidden basis does
18974         not dominate all phis on which the candidate is dependent.
18975         (replace_one_candidate): Record replaced statement in the
18976         candidate table.
18978 2013-07-29  Joern Rennecke  <joern.rennecke@embecosm.com>
18980         * config/epiphany/epiphany.md (*isub_i+2): New peephole.
18981         (ashlv2si3): New expander.
18982         (*ashlv2si3_i): New define_insn_and_split.
18983         * predicates.md (float_operation): Allow patterns with three
18984         basic sub-patterns.
18986         PR rtl-optimization/58021
18987         * mode-switching.c (create_pre_exit): Always split off preceding
18988         insns if we are not at the basic block head.
18990 2013-07-29  Maciej W. Rozycki  <macro@codesourcery.com>
18992         * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
18993         (UCLIBC_DYNAMIC_LINKER): New macro.
18994         * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
18995         `-mnan=2008'.
18996         (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
18997         (UCLIBC_DYNAMIC_LINKER32): Undefine macro first.  Handle
18998         `-mnan=2008'.
18999         (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
19000         (UCLIBC_DYNAMIC_LINKERN32): Likewise.
19001         * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
19002         for SF and DF modes.  Use ieee_quad_format for TF mode.
19003         * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
19004         * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
19005         (mips_option_override): Handle `-mnan=legacy'.
19006         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
19007         `-mabs=2008' and `-mnan=2008'.
19008         (OPTION_DEFAULT_SPECS): Add "nan" default.
19009         (ASM_SPEC): Handle `-mnan='.
19010         [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
19011         * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
19012         comment accordingly.
19013         (neg<mode>2): Likewise.
19014         * config/mips/mips.opt (mabs, mnan): New options.
19015         * doc/install.texi (Configuration): Document `--with-nan=' option.
19016         * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
19017         `-mnan=' options.
19018         (MIPS Options): Document them.
19019         * config.gcc <mips*-*-*>: Handle `--with-nan='.
19020         * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
19021         * configure: Regenerate.
19022         * config.in: Regenerate.
19024 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
19026         * config/i386/i386.md (float post-reload splitters): Do not check
19027         for subregs of SSE registers.
19029 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
19030             H.J. Lu  <hongjiu.lu@intel.com>
19032         PR target/57954
19033         PR target/57988
19034         * config/i386/i386.md (post-reload splitter
19035         to avoid partial SSE reg dependency stalls): New pattern.
19037 2013-07-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19039         * config/s390/s390.md ("movcc"): Swap load and store instructions.
19041 2013-07-27  Joern Rennecke  <joern.rennecke@embecosm.com>
19043         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
19044         Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
19046 2013-07-26  Cary Coutant  <ccoutant@google.com>
19048         * dwarf2out.c (die_checksum_ordered): Don't include template
19049         instantiations in signature.
19050         (is_template_parameter): New function.
19051         (is_template_instantiation): New function.
19052         (generate_skeleton_bottom_up): Don't include template instantiations
19053         in type unit DIE.
19054         (generate_skeleton): Likewise.
19055         (break_out_comdat_types): Move recursive call to break out nested
19056         types earlier.
19057         (prune_unused_types_mark_generic_parms_dies): Call
19058         is_template_parameter.
19060 2013-07-26  Ian Bolton  <ian.bolton@arm.com>
19062         * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
19063         uses vector registers.
19064         * config/aarch64/iterators.md: Add attributes rtn and vas.
19066 2013-07-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19067             Richard Earnshaw  <richard.earnshaw@arm.com>
19069         * combine.c (simplify_comparison): Re-canonicalize operands
19070         where appropriate.
19071         * config/arm/arm.md (movcond_addsi): New splitter.
19073 2013-07-25  Sterling Augustine  <saugustine@google.com>
19075         * dwarf2out.c (size_of_pubnames): Move code to...
19076         (include_pubname_in_output): ...here.  New.
19077         (want_pubnames): Rearrange.
19078         (output_pubnames): Call include_pubname_in_output.  Move assertion.
19080 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
19082         * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
19084 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
19086         PR target/38836
19087         * doc/extend.texi: Remove obsolete builtins. Fix
19088         typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
19090 2013-07-25  Jan Hubicka  <jh@suse.cz>
19092         * cgraph.c (release_function_body): Break out from ...
19093         (cgraph_release_function_body): ... this one; also release DECL_RESULT
19094         and DECL_ARGUMENTS.
19095         * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
19096         old_tree in the map.
19097         (create_specialized_node): Update.
19098         * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
19099         into index.
19100         * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
19101         DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
19102         * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
19103         * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
19104         DECL_RESULT.
19106 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19108         * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
19109         addsi3_carryin_alt2_<optab>): Correct output template.
19111 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19113         * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
19114         Adjust for arm_restrict_it.
19115         Remove trailing whitespace.
19117 2013-07-25 Â Mark Kettenis Â <kettenis@openbsd.org>
19119         * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
19120         libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
19122         * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
19124 2013-07-25  Vladimir Makarov  <vmakarov@redhat.com>
19126         PR rtl-optimization/57960
19127         * lra-constraints.c (process_alt_operands): Use the right mode
19128         when checking strict_low.
19130 2013-07-25  Jan Hubicka  <jh@suse.cz>
19132         * lto-symtab.c (lto_cgraph_replace_node): Release function body.
19133         * cgraph.c (cgraph_remove_node): Do not release function body
19134         when in cgraph streaming.
19135         * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
19136         in other partitions are not considered reachable; fix handling of
19137         clones.
19139 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19141         * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
19143 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19145         PR target/19599
19146         PR target/57731
19147         PR target/57837
19148         * config/arm/arm.md ("*sibcall_insn): Replace use of
19149         Ss with US. Adjust output for v5 and v4t.
19150         (*sibcall_value_insn): Likewise and loosen predicate on operand0.
19152         * config/arm/constraints.md ("Ss"): Rename to US.
19154 2013-07-25  Terry Guo  <terry.guo@arm.com>
19156         * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
19157         shift_add/shift_sub0/shift_sub1 RTXs.
19159 2013-07-24  Bill Schmidt  <wschmidt@linux.ibm.com>
19160             Anton Blanchard  <anton@au1.ibm.com>
19162         * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
19163         (altivec_vpks<VI_char>ss): Likewise.
19164         (altivec_vpks<VI_char>us): Likewise.
19165         (altivec_vpku<VI_char>us): Likewise.
19166         (altivec_vpku<VI_char>um): Likewise.
19168 2013-07-24  David Malcolm  <dmalcolm@redhat.com>
19170         Introduce context class.
19172         * Makefile.in (CONTEXT_H): New.
19173         (OBJS): Add context.o.
19174         (toplev.o): Add CONTEXT_H to dependencies.
19175         (context.o): New.
19177         * toplev.c (general_init): Create the singleton gcc::context instance.
19179         * context.c: New.
19181         * context.h: New.
19183 2013-07-24  Joern Rennecke  <joern.rennecke@embecosm.com>
19185         PR rtl-optimization/57968
19186         * mode-switching.c (create_pre_exit): Allow instructions that
19187         don't set a return register to need a non-exit mode.
19189 2013-07-24  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
19190             Anton Blanchard  <anton@au1.ibm.com>
19192         * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
19193         operands to vperm for little endian.
19194         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
19195         of lvsl to create the control mask for a vperm for little endian.
19197 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19198             Anton Blanchard  <anton@au1.ibm.com>
19200         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
19201         two operands for little-endian.
19203 2013-07-23  Steve Ellcey  <sellcey@mips.com>
19205         * config/mips/mips.c (mips_case_values_threshold): New.
19206         (TARGET_CASE_VALUES_THRESHOLD): Define.
19208 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19209             Anton Blanchard  <anton@au1.ibm.com>
19211         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
19212         selection of field for vector splat in little endian mode.
19214 2013-07-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
19216         * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
19217         expanders to rs6000.md.
19218         (ior<mode>3): Likewise.
19219         (and<mode>3): Likewise.
19220         (one_cmpl<mode>2): Likewise.
19221         (nor<mode>3): Likewise.
19222         (andc<mode>3): Likewise.
19223         (eqv<mode>3): Likewise.
19224         (nand<mode>3): Likewise.
19225         (orc<mode>3): Likewise.
19227         * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
19228         declaration.
19230         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
19231         to split multi-word logical operations.
19232         (rs6000_split_logical_di): Likewise.
19233         (rs6000_split_logical): Likewise.
19235         * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
19236         (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
19237         and allow TImode operations in 32-bit.
19238         (vsx_and<mode>3_64bit): Likewise.
19239         (vsx_ior<mode>3_32bit): Likewise.
19240         (vsx_ior<mode>3_64bit): Likewise.
19241         (vsx_xor<mode>3_32bit): Likewise.
19242         (vsx_xor<mode>3_64bit): Likewise.
19243         (vsx_one_cmpl<mode>2_32bit): Likewise.
19244         (vsx_one_cmpl<mode>2_64bit): Likewise.
19245         (vsx_nor<mode>3_32bit): Likewise.
19246         (vsx_nor<mode>3_64bit): Likewise.
19247         (vsx_andc<mode>3_32bit): Likewise.
19248         (vsx_andc<mode>3_64bit): Likewise.
19249         (vsx_eqv<mode>3_32bit): Likewise.
19250         (vsx_eqv<mode>3_64bit): Likewise.
19251         (vsx_nand<mode>3_32bit): Likewise.
19252         (vsx_nand<mode>3_64bit): Likewise.
19253         (vsx_orc<mode>3_32bit): Likewise.
19254         (vsx_orc<mode>3_64bit): Likewise.
19256         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
19257         logical types in GPRs.
19259         * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
19260         logical insns to rs6000.md, and allow TImode operations in
19261         32-bit.
19262         (altivec_ior<mode>3): Likewise.
19263         (altivec_xor<mode>3): Likewise.
19264         (altivec_one_cmpl<mode>2): Likewise.
19265         (altivec_nor<mode>3): Likewise.
19266         (altivec_andc<mode>3): Likewise.
19268         * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
19269         attributes for moving the 128-bit logical operations into
19270         rs6000.md.
19271         (BOOL_REGS_OUTPUT): Likewise.
19272         (BOOL_REGS_OP1): Likewise.
19273         (BOOL_REGS_OP2): Likewise.
19274         (BOOL_REGS_UNARY): Likewise.
19275         (BOOL_REGS_AND_CR0): Likewise.
19276         (one_cmpl<mode>2): Add support for DI logical operations on
19277         32-bit, splitting the operations to 32-bit.
19278         (anddi3): Likewise.
19279         (iordi3): Likewise.
19280         (xordi3): Likewise.
19281         (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
19282         changes to combine the 32/64-bit code, allow logical operations on
19283         TI mode in 32-bit, and to use similar match_operator patterns like
19284         scalar mode uses.  Combine the Altivec and VSX code for logical
19285         operations, and move it here.
19286         (ior<mode>3, 128-bit types): Likewise.
19287         (xor<mode>3, 128-bit types): Likewise.
19288         (one_cmpl<mode>3, 128-bit types): Likewise.
19289         (nor<mode>3, 128-bit types): Likewise.
19290         (andc<mode>3, 128-bit types): Likewise.
19291         (eqv<mode>3, 128-bit types): Likewise.
19292         (nand<mode>3, 128-bit types): Likewise.
19293         (orc<mode>3, 128-bit types): Likewise.
19294         (and<mode>3_internal): Likewise.
19295         (bool<mode>3_internal): Likewise.
19296         (boolc<mode>3_internal1): Likewise.
19297         (boolc<mode>3_internal2): Likewise.
19298         (boolcc<mode>3_internal1): Likewise.
19299         (boolcc<mode>3_internal2): Likewise.
19300         (eqv<mode>3_internal1): Likewise.
19301         (eqv<mode>3_internal2): Likewise.
19302         (one_cmpl1<mode>3_internal): Likewise.
19304 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
19306         * config/microblaze/microblaze.c (microblaze_expand_prologue):
19307         Rename flag_stack_usage to flag_stack_usage_info.
19309 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
19311         * config/microblaze/sync.md: New file.
19312         * config/microblaze/microblaze.md: Include sync.md
19313         * config/microblaze/microblaze.c: Add print_operand 'y'.
19314         * config/microblaze/constraints.md: Add memory_contraint
19315         'Q' which is a single register.
19317 2013-07-23  Eric Botcazou  <ebotcazou@adacore.com>
19319         * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
19321 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
19323         * reload.c (find_reloads): Exit loop once we find this operand
19324         cannot be reloaded somehow for this alternative.
19326         * reload.c (find_reloads): Exit loop once we find a hard register.
19328         * rtlanal.c (computed_jump_p): Exit loop once we find label
19329         reference is used.
19331         * i386.c (ix86_pad_returns): Exit loop after setting replace.
19333         * cfgloopmanip.c (remove_path): Exit loop after setting
19334         irred_invalidated.
19336         * gensupport.c (subst_dup): Avoid loop if code is not
19337         MATCH_DUP nor MATCH_OP_DUP.
19339 2013-07-23  Nicklas Bo Jensen  <nbjensen@gmail.com>
19341         * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
19343 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
19345         * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
19346         true for SP_REGNUM if mode == ptr_mode.
19347         * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
19348         with value R0_REGNUM + 31.
19350 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
19352         * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
19353         pad pointer-typed argument downward.
19355 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
19357         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
19358         and __ILP32__ when the ILP32 model is in use.
19360 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
19362         * config/aarch64/aarch64.c (POINTER_BYTES): New define.
19363         (aarch64_load_symref_appropriately): In the case of
19364         SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
19365         to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
19366         (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
19367         change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
19368         if 'mode' doesn't equal to 'ptr_mode'.
19369         (aarch64_output_mi_thunk): Add an assertion on the alignment of
19370         'vcall_offset'; change to call aarch64_emit_move differently depending
19371         on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
19372         to calculate the upper bound of 'vcall_offset'.
19373         (aarch64_cannot_force_const_mem): Change to also return true if
19374         mode != ptr_mode.
19375         (aarch64_legitimize_reload_address): In the case of large
19376         displacements, add new local variable 'xmode' and an assertion
19377         based on it; change to use 'xmode' to generate the new rtx and
19378         reload.
19379         (aarch64_asm_trampoline_template): Change to generate the template
19380         differently depending on TARGET_ILP32 or not; change to use
19381         'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
19382         (aarch64_trampoline_size): Removed.
19383         (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
19384         and replace immediate literals with it.  Change to use 'ptr_mode'
19385         instead of 'DImode' and call convert_memory_address if the mode
19386         of 'fnaddr' doesn't equal to 'ptr_mode'.
19387         (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
19388         to output symbol.
19389         (aarch64_elf_asm_destructor): Likewise.
19390         * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
19391         on TARGET_ILP32 instead of aarch64_trampoline_size.
19392         * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
19393         of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
19394         (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
19395         (loadwb_pair<GPI:mode>_<P:mode>): ... this.  Replace PTR with P.
19396         (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
19397         (storewb_pair<GPI:mode>_<P:mode>): ... this.
19398         (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
19399         depending on the value of 'mode'.
19400         (add_losym_<mode>): New.
19401         (ldr_got_small_<mode>): New, based on ldr_got_small.
19402         (ldr_got_small): Remove.
19403         (ldr_got_small_sidi): New.
19404         * config/aarch64/iterators.md (P): New.
19405         (PTR): Change to 'ptr_mode' in the condition.
19407 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
19409         * config.gcc (aarch64*-*-*): Support --with-abi.
19410         (aarch64*-*-elf): Support --with-multilib-list.
19411         (aarch64*-*-linux*): Likewise.
19412         (supported_defaults): Add abi to aarch64*-*-*.
19413         * configure.ac: Mention AArch64 for --with-multilib-list.
19414         * configure: Re-generated.
19415         * config/aarch64/biarchilp32.h: New file.
19416         * config/aarch64/biarchlp64.h: New file.
19417         * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
19418         (ABI_SPEC): Ditto.
19419         (MULTILIB_DEFAULTS): Ditto.
19420         (DRIVER_SELF_SPECS): Ditto.
19421         (ASM_SPEC): Update to also substitute -mabi.
19422         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
19423         file whose name depends on -mabi= and -mbig-endian.
19424         * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
19425         TARGET_ILP32.
19426         (POINTER_SIZE): New define.
19427         (POINTERS_EXTEND_UNSIGNED): Ditto.
19428         (enum aarch64_abi_type): New enumeration tag.
19429         (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
19430         (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
19431         (TARGET_ILP32): New define.
19432         * config/aarch64/aarch64.opt (mabi): New.
19433         (aarch64_abi): New.
19434         (ilp32, lp64): New values for -mabi.
19435         * config/aarch64/t-aarch64 (comma): New define.
19436         (MULTILIB_OPTIONS): Ditto.
19437         (MULTILIB_DIRNAMES): Ditto.
19438         * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
19439         * doc/invoke.texi: Document -mabi for AArch64.
19441 2013-07-23  Georg-Johann Lay  <avr@gjlay.de>
19443         * config/avr/avr.md: Explain asm print modifier 'r' for REG.
19445 2013-07-22  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
19446             Anton Blanchard  <anton@au1.ibm.com>
19448         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
19449         endianness when selecting field to splat.
19451 2013-07-22  Eric Christopher  <echristo@gmail.com>
19453         * dwarf2out.c (die_odr_checksum): New function to use
19454         CHECKSUM_ macros and ULEB128 for DIE tag.
19455         (generate_type_signature): Use.
19457 2013-07-22  Eric Botcazou  <ebotcazou@adacore.com>
19459         * config.gcc (sparc*-*-*): Accept leon3 processor.
19460         (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
19461         * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
19462         * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
19463         * config/sparc/sparc.opt (enum processor_type): Add leon3.
19464         (mfix-ut699): Adjust comment.
19465         * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
19466         (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
19467         (CPP_CPU_SPEC): Likewise.
19468         (ASM_CPU_SPEC): Likewise.
19469         * config/sparc/sparc.c (leon3_cost): New constant.
19470         (sparc_option_override): Add leon3 support.
19471         (mem_ref): New function.
19472         (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
19473         (sparc_do_work_around_errata): Look into the instruction in the delay
19474         slot and adjust accordingly.  Add fix for the data cache nullify issues
19475         of the UT699.  Change insertion position for the NOP.
19476         * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
19477         (leon3_load): New reservation.
19478         (leon_store): Bump latency to 2.
19479         (grfpu): New automaton.
19480         (grfpu_alu): New unit.
19481         (grfpu_ds): Likewise.
19482         (leon_fp_alu): Adjust.
19483         (leon_fp_mult): Delete.
19484         (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
19485         (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
19486         * config/sparc/sparc.md (cpu): Add leon3.
19487         * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
19488         (swapsi): Likewise.
19489         (atomic_test_and_set): Likewise.
19490         (ldstub): Likewise.
19492 2013-07-22  Jürgen Urban  <JuergenUrban@gmx.de>
19494         * config.gcc (mips*-*-*): Add --with-fpu support.  Make single the
19495         default for R5900 targets.
19496         * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
19497         (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
19498         * config/mips/mips.c (mips_option_override): Report an error for
19499         -march=r5900 -mhard-float -mdouble-float.  Use spu_single_format
19500         for -march=r5900 -mhard-float.
19502 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
19504         * df-problems.c (can_move_insns_across): Exit loop once we
19505         find a non-fixed, non-global register.
19507         * ipa-pure-const.c (propagate_nothrow): Exit loop after
19508         setting can_throw.
19510         * omega.c (omega_eliminate_red): Break after setting red_found.
19511         (omega_problem_has_red_equations): Similarly after setting found.
19512         (omega_query_variable): Similarly after setting coupled.
19514 2013-07-22  Marek Polacek  <polacek@redhat.com>
19516         * gimplify.c: Don't include gimple.h twice.
19518 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19520         * config/arm/constraints.md (Pd): Allow TARGET_THUMB
19521         instead of TARGET_THUMB1.
19522         (Pz): New constraint.
19523         * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
19524         encodings.
19525         (compare_negsi_si): Likewise.
19526         (compare_addsi2_op0): Likewise.
19527         (compare_addsi2_op1): Likewise.
19528         (addsi3_carryin_<optab>): Likewise.
19529         (addsi3_carryin_alt2_<optab>): Likewise.
19530         (addsi3_carryin_shift_<optab>): Disable cond_exec variant
19531         for arm_restrict_it.
19532         (subsi3_carryin): Likewise.
19533         (arm_subsi3_insn): Add alternatives for 16-bit encoding.
19534         (minmax_arithsi): Disable for arm_restrict_it.
19535         (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
19536         (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
19537         (satsi_<SAT:code>_shift): Likewise.
19538         (arm_shiftsi3): Add alternative for 16-bit encoding.
19539         (arm32_movhf): Disable for arm_restrict_it.
19540         (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
19541         (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
19543 2013-07-22  Sofiane Naci  <sofiane.naci@arm.com>
19545         * config/arm/arm.md (attribute "insn"): Delete.
19546         (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
19547         "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
19548         (not_shiftsi): Update for attribute change.
19549         (not_shiftsi_compare0): Likewise.
19550         (not_shiftsi_compare0_scratch): Likewise.
19551         (arm_one_cmplsi2): Likewise.
19552         (thumb1_one_cmplsi2): Likewise.
19553         (notsi_compare0): Likewise.
19554         (notsi_compare0_scratch): Likewise.
19555         (thumb1_movdi_insn): Likewise.
19556         (arm_movsi_insn): Likewise.
19557         (movhi_insn_arch4): Likewise.
19558         (movhi_bytes): Likewise.
19559         (arm_movqi_insn): Likewise.
19560         (thumb1_movqi_insn): Likewise.
19561         (arm32_movhf): Likewise.
19562         (thumb1_movhf): Likewise.
19563         (arm_movsf_soft_insn): Likewise.
19564         (thumb1_movsf_insn): Likewise.
19565         (thumb_movdf_insn): Likewise.
19566         (movsicc_insn): Likewise.
19567         (movsfcc_soft_insn): Likewise.
19568         (and_scc): Likewise.
19569         (cond_move): Likewise.
19570         (if_move_not): Likewise.
19571         (if_not_move): Likewise.
19572         (if_shift_move): Likewise.
19573         (if_move_shift): Likewise.
19574         (if_shift_shift): Likewise.
19575         (if_not_arith): Likewise.
19576         (if_arith_not): Likewise.
19577         (cond_move_not): Likewise.
19578         * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
19579         (neon_mov<mode>): Likewise.
19580         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
19581         (thumb2_movsi_vfp): Likewise.
19582         (movsf_vfp): Likewise.
19583         (thumb2_movsf_vfp): Likewise.
19584         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
19585         change.
19586         (cortexa7_older_only): Likewise.
19587         (cortexa7_younger): Likewise.
19588         * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
19589         (1020alu_shift_op): Likewise.
19590         (1020alu_shift_reg_op): Likewise.
19591         * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
19592         (alu_shift_op): Likewise.
19593         (alu_shift_reg_op): Likewise.
19594         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
19595         (11_alu_shift_op): Likewise.
19596         (11_alu_shift_reg_op): Likewise.
19597         * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
19598         (9_alu_shift_reg_op): Likewise.
19599         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
19600         change.
19601         (cortex_a15_alu_shift): Likewise.
19602         (cortex_a15_alu_shift_reg): Likewise.
19603         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
19604         (cortex_a5_alu_shift): Likewise.
19605         * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
19606         change.
19607         (cortex_a53_alu_shift): Likewise.
19608         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
19609         change.
19610         (cortex_a7_alu_reg): Likewise.
19611         (cortex_a7_alu_shift): Likewise.
19612         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
19613         (cortex_a8_alu_shift): Likewise.
19614         (cortex_a8_alu_shift_reg): Likewise.
19615         (cortex_a8_mov): Likewise.
19616         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
19617         (cortex_a9_dp_shift): Likewise.
19618         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
19619         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
19620         (cortex_r4_mov): Likewise.
19621         (cortex_r4_alu_shift): Likewise.
19622         (cortex_r4_alu_shift_reg): Likewise.
19623         * config/arm/fa526.md (526_alu_op): Update for attribute change.
19624         (526_alu_shift_op): Likewise.
19625         * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
19626         * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
19627         (626te_alu_shift_op): Likewise.
19628         * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
19629         (726te_alu_op): Likewise.
19630         (726te_alu_shift_op): Likewise.
19631         (726te_alu_shift_reg_op): Likewise.
19632         * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
19633         (mp626_alu_shift_op): Likewise.
19634         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
19635         (pj4_alu_e1_conds): Likewise.
19636         (pj4_alu): Likewise.
19637         (pj4_alu_conds): Likewise.
19638         (pj4_shift): Likewise.
19639         (pj4_shift_conds): Likewise.
19640         (pj4_alu_shift): Likewise.
19641         (pj4_alu_shift_conds): Likewise.
19643 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19645         * config/arm/predicates.md (shiftable_operator_strict_it):
19646         New predicate.
19647         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
19648         Disable cond_exec version for arm_restrict_it.
19649         (thumb2_smaxsi3): Convert to generate cond_exec.
19650         (thumb2_sminsi3): Likewise.
19651         (thumb32_umaxsi3): Likewise.
19652         (thumb2_uminsi3): Likewise.
19653         (thumb2_abssi2): Adjust constraints for arm_restrict_it.
19654         (thumb2_neg_abssi2): Likewise.
19655         (thumb2_mov_scc): Add alternative for 16-bit encoding.
19656         (thumb2_movsicc_insn): Adjust alternatives.
19657         (thumb2_mov_negscc): Disable for arm_restrict_it.
19658         (thumb2_mov_negscc_strict_it): New pattern.
19659         (thumb2_mov_notscc_strict_it): New pattern.
19660         (thumb2_mov_notscc): Disable for arm_restrict_it.
19661         (thumb2_ior_scc): Likewise.
19662         (thumb2_ior_scc_strict_it): New pattern.
19663         (thumb2_cond_move): Adjust for arm_restrict_it.
19664         (thumb2_cond_arith): Disable for arm_restrict_it.
19665         (thumb2_cond_arith_strict_it): New pattern.
19666         (thumb2_cond_sub): Adjust for arm_restrict_it.
19667         (thumb2_movcond): Likewise.
19668         (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
19669         (thumb2_zero_extendhisi2_v6): Likewise.
19670         (thumb2_zero_extendqisi2_v6): Likewise.
19671         (orsi_notsi_si): Likewise.
19672         (orsi_not_shiftsi_si): Likewise.
19674 2013-07-22  Georg-Johann Lay  <avr@gjlay.de>
19676         * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
19677         instruction sequence is 1 byte shorter.
19679 2013-07-22  Uros Bizjak  <ubizjak@gmail.com>
19681         * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
19682         it is not needed after split.
19684 2013-07-20  Iain Sandoe  <iain@codesourcery.com>
19686         PR target/51784
19687         * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
19688         second label for nonlocal goto receivers. Don't output pic base labels
19689         unless we're producing PIC; mark that action unreachable().
19690         (ix86_save_reg): If the function contains a nonlocal label, save the
19691         PIC base reg.
19692         * config/darwin-protos.h (machopic_should_output_picbase_label): New.
19693         * config/darwin.c (emitted_pic_label_num): New GTY.
19694         (update_pic_label_number_if_needed): New.
19695         (machopic_output_function_base_name): Adjust for nonlocal receiver
19696         case.
19697         (machopic_should_output_picbase_label): New.
19698         * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
19699         (nonlocal_goto_receiver): New insn and split.
19701 2013-07-20  James Greenhalgh  <james.greenhalgh@arm.com>
19703         * config/aarch64/aarch64-builtins.c
19704         (aarch64_fold_builtin): Fold abs in all modes.
19705         * config/aarch64/aarch64-simd-builtins.def
19706         (abs): Enable for all modes.
19707         * config/aarch64/arm_neon.h
19708         (vabs<q>_s<8,16,32,64): Rewrite using builtins.
19709         (vabs_f64): Add missing intrinsic.
19711 2013-07-19  Ian Bolton  <ian.bolton@arm.com>
19713         * config/aarch64/arm_neon.h (vabs_s64): New function
19715 2013-07-19  Georg-Johann Lay  <avr@gjlay.de>
19717         PR target/57516
19718         * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
19719         * config/avr/avr.md (adjust_len): Add `round'.
19720         * config/avr/avr-protos.h (avr_out_round): New prototype.
19721         (avr_out_plus): Add `out_label' argument.
19722         * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
19723         (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
19724         Handle the case where `insn' is just a pattern.
19725         (avr_out_bitop): Handle the case where `insn' is just a pattern.
19726         (avr_out_round): New function.
19727         (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
19729 2013-07-18  David Holsgrove  <david.holsgrove@xilinx.com>
19731         * config/microblaze/microblaze.c (microblaze_expand_prologue):
19732         Add check for flag_stack_usage to handle -fstack-usage support
19734 2013-07-18  Pat Haugen  <pthaugen@us.ibm.com>
19736         * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
19737         interaction for new Power8 flags and VSX.
19739 2013-07-18  Sriraman Tallam  <tmsriram@google.com>
19741         PR middle-end/57698
19742         * tree-inline.c (expand_call_inline): Emit errors during
19743         early_inlining only if optimization is not turned on.
19745 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
19747         * passes.def: New.
19749         * passes.c (init_optimization_passes): Move the construction of
19750         the pass hierarchy into a new passes.def file.
19752         * Makefile.in (passes.o): Add dependency on passes.def.
19754 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
19756         * passes.c (init_optimization_passes): Introduce macros for
19757         constructing the tree of passes (INSERT_PASSES_AFTER,
19758         PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
19759         TERMINATE_PASS_LIST).
19761 2013-07-18  Vladimir Makarov  <vmakarov@redhat.com>
19762             Wei Mi  <wmi@google.com>
19764         PR rtl-optimization/57878
19765         * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
19766         top.
19767         (reload_pseudo_compare_func): Check nregs first for reload
19768         pseudos.
19770 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
19772         * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
19774 2013-07-18  Po-Chun Chang  <pchang9@cs.wisc.edu>
19776         * read-rtl.c (validate_const_int): Once an invalid character is
19777         seen, quit the loop.
19779         * gengtype.c (write_roots): Similarly once we find the "deletable"
19780         or "if_marked" option.
19782 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
19784         * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
19785         "xtab" and "sat".  Move value "clz" from here to ...
19786         (attriubte "type"): ... here.
19787         (satsi_<SAT:code>): Delete "insn" attribute.
19788         (satsi_<SAT:code>_shift): Likewise.
19789         (arm_zero_extendqisi2addsi): Likewise.
19790         (arm_extendqisi2addsi): Likewise.
19791         (clzsi2): Update for attribute changes.
19792         (rbitsi2): Likewise.
19793         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
19794         attribute.
19795         (arm_usatsihi): Likewise.
19796         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
19798 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
19800         * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
19801         "arlo_imm".  Rename "alu_reg" to "arlo_reg".  Rename "simple_alu_shift"
19802         to "extend".  Split "alu_shift" into "shift" and "arlo_shift".  Split
19803         "alu_shift_reg" into "shift_reg" and "arlo_shift_reg".  List types
19804         in alphabetical order.
19805         (attribute "core_cycles"): Update for attribute changes.
19806         (arm_addsi3): Likewise.
19807         (addsi3_compare0): Likewise.
19808         (addsi3_compare0_scratch): Likewise.
19809         (addsi3_compare_op1): Likewise.
19810         (addsi3_compare_op2): Likewise.
19811         (compare_addsi2_op0): Likewise.
19812         (compare_addsi2_op1): Likewise.
19813         (addsi3_carryin_shift_<optab>): Likewise.
19814         (subsi3_carryin_shift): Likewise.
19815         (rsbsi3_carryin_shift): Likewise.
19816         (arm_subsi3_insn): Likewise.
19817         (subsi3_compare0): Likewise.
19818         (subsi3_compare): Likewise.
19819         (arm_andsi3_insn): Likewise.
19820         (thumb1_andsi3_insn): Likewise.
19821         (andsi3_compare0): Likewise.
19822         (andsi3_compare0_scratch): Likewise.
19823         (zeroextractsi_compare0_scratch
19824         (andsi_not_shiftsi_si): Likewise.
19825         (iorsi3_insn): Likewise.
19826         (iorsi3_compare0): Likewise.
19827         (iorsi3_compare0_scratch): Likewise.
19828         (arm_xorsi3): Likewise.
19829         (thumb1_xorsi3_insn): Likewise.
19830         (xorsi3_compare0): Likewise.
19831         (xorsi3_compare0_scratch): Likewise.
19832         (satsi_<SAT:code>_shift): Likewise.
19833         (rrx): Likewise.
19834         (arm_shiftsi3): Likewise.
19835         (shiftsi3_compare0): Likewise.
19836         (not_shiftsi): Likewise.
19837         (not_shiftsi_compare0): Likewise.
19838         (not_shiftsi_compare0_scratch): Likewise.
19839         (arm_one_cmplsi2): Likewise.
19840         (thumb_one_complsi2): Likewise.
19841         (notsi_compare0): Likewise.
19842         (notsi_compare0_scratch): Likewise.
19843         (thumb1_zero_extendhisi2): Likewise.
19844         (arm_zero_extendhisi2): Likewise.
19845         (arm_zero_extendhisi2_v6): Likewise.
19846         (arm_zero_extendhisi2addsi): Likewise.
19847         (thumb1_zero_extendqisi2): Likewise.
19848         (thumb1_zero_extendqisi2_v6): Likewise.
19849         (arm_zero_extendqisi2): Likewise.
19850         (arm_zero_extendqisi2_v6): Likewise.
19851         (arm_zero_extendqisi2addsi): Likewise.
19852         (thumb1_extendhisi2): Likewise.
19853         (arm_extendhisi2): Likewise.
19854         (arm_extendhisi2_v6): Likewise.
19855         (arm_extendqisi): Likewise.
19856         (arm_extendqisi_v6): Likewise.
19857         (arm_extendqisi2addsi): Likewise.
19858         (thumb1_extendqisi2): Likewise.
19859         (thumb1_movdi_insn): Likewise.
19860         (arm_movsi_insn): Likewise.
19861         (movsi_compare0): Likewise.
19862         (movhi_insn_arch4): Likewise.
19863         (movhi_bytes): Likewise.
19864         (arm_movqi_insn): Likewise.
19865         (thumb1_movqi_insn): Likewise.
19866         (arm32_movhf): Likewise.
19867         (thumb1_movhf): Likewise.
19868         (arm_movsf_soft_insn): Likewise.
19869         (thumb1_movsf_insn): Likewise.
19870         (movdf_soft_insn): Likewise.
19871         (thumb_movdf_insn): Likewise.
19872         (arm_cmpsi_insn): Likewise.
19873         (cmpsi_shiftsi): Likewise.
19874         (cmpsi_shiftsi_swp): Likewise.
19875         (arm_cmpsi_negshiftsi_si): Likewise.
19876         (movsicc_insn): Likewise.
19877         (movsfcc_soft_insn): Likewise.
19878         (arith_shiftsi): Likewise.
19879         (arith_shiftsi_compare0
19880         (arith_shiftsi_compare0_scratch
19881         (sub_shiftsi): Likewise.
19882         (sub_shiftsi_compare0
19883         (sub_shiftsi_compare0_scratch
19884         (and_scc): Likewise.
19885         (cond_move): Likewise.
19886         (if_plus_move): Likewise.
19887         (if_move_plus): Likewise.
19888         (if_move_not): Likewise.
19889         (if_not_move): Likewise.
19890         (if_shift_move): Likewise.
19891         (if_move_shift): Likewise.
19892         (if_shift_shift): Likewise.
19893         (if_not_arith): Likewise.
19894         (if_arith_not): Likewise.
19895         (cond_move_not): Likewise.
19896         (thumb1_ashlsi3): Set type attribute.
19897         (thumb1_ashrsi3): Likewise.
19898         (thumb1_lshrsi3): Likewise.
19899         (thumb1_rotrsi3): Likewise.
19900         (shiftsi3_compare0_scratch): Likewise.
19901         * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
19902         (neon_mov<mode>): Likewise.
19903         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
19904         attribute changes.
19905         (thumb2_movsi_insn): Likewise.
19906         (thumb2_cmpsi_neg_shiftsi): Likewise.
19907         (thumb2_extendqisi_v6): Likewise.
19908         (thumb2_zero_extendhisi2_v6): Likewise.
19909         (thumb2_zero_extendqisi2_v6): Likewise.
19910         (thumb2_shiftsi3_short): Likewise.
19911         (thumb2_addsi3_compare0_scratch): Likewise.
19912         (orsi_not_shiftsi_si): Likewise.
19913         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
19914         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
19915         changes.
19916         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
19917         (1020alu_shift_op): Likewise.
19918         (1020alu_shift_reg_op): Likewise.
19919         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
19920         (alu_shift_op): Likewise.
19921         (alu_shift_reg_op): Likewise.
19922         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
19923         (11_alu_shift_op): Likewise.
19924         (11_alu_shift_reg_op): Likewise.
19925         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
19926         (9_alu_shift_reg_op): Likewise.
19927         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
19928         changes.
19929         (cortex_a15_alu_shift): Likewise.
19930         (cortex_a15_alu_shift_reg): Likewise.
19931         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
19932         changes.
19933         (cortex_a5_alu_shift): Likewise.
19934         * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
19935         changes.
19936         (cortex_a53_alu_shift): Likewise.
19937         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
19938         changes.
19939         (cortex_a7_alu_reg): Likewise.
19940         (cortex_a7_alu_shift): Likewise.
19941         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
19942         changes.
19943         (cortex_a8_alu_shift): Likewise.
19944         (cortex_a8_alu_shift_reg): Likewise.
19945         (cortex_a8_mov): Likewise.
19946         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
19947         (cortex_a9_dp_shift): Likewise.
19948         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
19949         changes.
19950         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
19951         changes.
19952         (cortex_r4_mov): Likewise.
19953         (cortex_r4_alu_shift): Likewise.
19954         (cortex_r4_alu_shift_reg): Likewise.
19955         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
19956         (526_alu_shift_op): Likewise.
19957         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
19958         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
19959         (626te_alu_shift_op): Likewise.
19960         * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
19961         (726te_alu_op): Likewise.
19962         (726te_alu_shift_op): Likewise.
19963         (726te_alu_shift_reg_op): Likewise.
19964         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
19965         (mp626_alu_shift_op): Likewise.
19966         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
19967         (pj4_alu_e1_conds): Likewise.
19968         (pj4_alu): Likewise.
19969         (pj4_alu_conds): Likewise.
19970         (pj4_shift): Likewise.
19971         (pj4_shift_conds): Likewise.
19972         (pj4_alu_shift): Likewise.
19973         (pj4_alu_shift_conds): Likewise.
19974         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
19975         changes.
19976         (cortexa7_older_only): Likewise.
19977         (cortexa7_younger): Likewise.
19979 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
19981         * ipa-pure-const.c (generate_summary): Rename to...
19982         (pure_const_generate_summary): ... this.
19984 2013-07-17  Iain Sandoe  <iain@codesourcery.com>
19986         * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
19988 2013-07-17  Yvan Roux  <yvan.roux@linaro.org>
19990         PR target/57909
19991         * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
19992         usage in HI mode.
19994 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19996         * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
19997         enabled without -march=zEC12.
19998         * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
19999         flags to be set.
20001 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
20003         * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
20004         (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
20005         (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
20006         terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
20007         (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
20008         * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
20009         ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
20010         ISA_HAS_FP4.
20011         <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
20012         and ISA_HAS_NMADD3_NMSUB3.
20013         * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
20014         (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
20015         (nmsub4<mode>, nmsub3<mode>): Likewise.
20016         (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
20018 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
20020         * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
20021         TARGET_MIPS5400 checking.
20023 2013-07-16  Jakub Jelinek  <jakub@redhat.com>
20024             Peter Bergner  <bergner@vnet.ibm.com>
20026         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
20027         registers in the comment.
20028         (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
20029         (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
20030         rather than FIRST_PSEUDO_REGISTERS.
20032 2013-07-16  Peter Bergner  <bergner@vnet.ibm.com>
20034         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
20035         enable extra ISA flags with TARGET_HTM.
20037 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
20039         * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
20040         Fix comment typos.
20042 2013-07-15  Cong Hou  <congh@google.com>
20044         * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
20045         in compare function for sorting.
20047 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
20049         * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
20050         * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
20051         * config/rs6000/rs6000.opt: Add -mhtm option.
20052         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
20053         (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
20054         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
20055         __HTM__ if the HTM instructions are available.
20056         * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
20057         htm_spr_reg_operand): New define_predicates.
20058         * config/rs6000/rs6000.md (define_attr "type"): Add htm.
20059         (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
20060         Include htm.md.
20061         * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
20062         BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
20063         HTM builtin functions.
20064         * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
20065         (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
20066         (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
20067         (rs6000_builtin_mask_calculate): Likewise.
20068         (rs6000_option_override_internal): Likewise.
20069         (bdesc_htm): Add new HTM builtin support.
20070         (htm_spr_num): New function.
20071         (htm_spr_regno): Likewise.
20072         (rs6000_htm_spr_icode): Likewise.
20073         (htm_expand_builtin): Likewise.
20074         (htm_init_builtins): Likewise.
20075         (rs6000_expand_builtin): Add support for HTM builtin functions.
20076         (rs6000_init_builtins): Likewise.
20077         (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
20078         option.
20079         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
20080         (TARGET_HTM, MASK_HTM): Define macros.
20081         (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
20082         (FIXED_REGISTERS): Likewise.
20083         (CALL_USED_REGISTERS): Likewise.
20084         (CALL_REALLY_USED_REGISTERS): Likewise.
20085         (REG_ALLOC_ORDER): Likewise.
20086         (enum reg_class): Likewise.
20087         (REG_CLASS_NAMES): Likewise.
20088         (REG_CLASS_CONTENTS): Likewise.
20089         (REGISTER_NAMES): Likewise.
20090         (ADDITIONAL_REGISTER_NAMES): Likewise.
20091         (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
20092         RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
20093         (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
20094         * config/rs6000/htm.md: New file.
20095         * config/rs6000/htmintrin.h: New file.
20096         * config/rs6000/htmxlintrin.h: New file.
20098 2013-07-15  Marcus Shawcroft  <marcus.shawcroft@arm.com>
20100         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
20101         Define SYMBOL_TINY_GOT, update comment.
20102         * config/aarch64/aarch64.c
20103         (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
20104         (aarch64_expand_mov_immediate): Likewise.
20105         (aarch64_print_operand): Likewise.
20106         (aarch64_classify_symbol): Likewise.
20107         * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
20108         (ldr_got_tiny): Define.
20110 2013-07-13  Tobias Grosser  <tobias@grosser.es>
20112         PR tree-optimization/54094
20113         * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
20114           scheduling dimension for the parallelism check from the polyhedral
20115           information in the AST.
20116         * graphite-dependences.c (carries_deps): Do not assume the schedule is
20117           in 2D + 1 form.
20119 2013-07-13  Jason Merrill  <jason@redhat.com>
20121         * print-tree.c (debug_vec_tree): Use debug_raw.
20122         (debug_raw (vec<tree, va_gc> &)): New.
20123         (debug_raw (vec<tree, va_gc> *)): New.
20124         * tree.h: Declare them.
20126 2013-07-13  Bin Cheng  <bin.cheng@arm.com>
20128         * ifcvt.c (ifcvt_after_combine): New static variable.
20129         (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
20130         for size.
20131         (if_convert): New parameter after_combine.  Set ifcvt_after_combine.
20132         (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
20133         rest_of_handle_if_after_reload): Pass new argument for if_convert.
20135 2013-07-12  Maciej W. Rozycki  <macro@codesourcery.com>
20137         * config/mips/mips.c (mips_expand_call): Remove empty statement.
20139 2013-07-12  Michael Matz  <matz@suse.de>
20141         PR middle-end/55771
20142         * convert.c (convert_to_real): Reject non-float inner types.
20144 2013-07-12  Tejas Belagod  <tejas.belagod@arm.com>
20146         * config/aarch64/aarch64-protos.h
20147         (aarch64_simd_immediate_valid_for_move): Remove.
20148         * config/aarch64/aarch64.c (simd_immediate_info): New member.
20149         (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
20150         cases.
20151         (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
20153 2013-07-11  Steve Ellcey  <sellcey@mips.com>
20155         * config/mips/mips.c (mips_conditional_register_usage): Do not
20156         use t[0-7] registers in MIPS16 mode when optimizing for size.
20158 2013-07-11  Sriraman Tallam  <tmsriram@google.com>
20160         * config/i386/i386.c (dispatch_function_versions): Fix array
20161         indexing of function_version_info to match actual_versions.
20163 2013-07-11  Teresa Johnson  <tejohnson@google.com>
20165         * vec.h (struct va_gc): Move release out-of-line.
20166         (va_gc::release): Call ggc_free on released vec.
20168 2013-07-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20170         * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
20171         Require GOT register as additional operand in UNSPEC.
20172         ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
20173         ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
20174         ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
20175         ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
20176         ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
20177         ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
20178         ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
20180 2013-07-11  Georg-Johann Lay  <avr@gjlay.de>
20182         PR target/57631
20183         * config/avr/avr.c (avr_set_current_function): Sanity-check signal
20184         name seen by assembler/linker rather if available.
20186 2013-07-11  Andreas Schwab  <schwab@suse.de>
20188         * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
20190 2013-07-10  Vladimir Makarov  <vmakarov@redhat.com>
20192         * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
20194 2013-07-10  Joseph Myers  <joseph@codesourcery.com>
20196         * doc/tm.texi.in: Move hook documentation to ....
20197         * target.def: ... here.
20199         * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
20200         text on @hook line.
20201         * doc/tm.texi: Regenerate.
20203 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
20205         PR c++/57869
20206         * doc/invoke.texi: Document -Wconditionally-supported.
20208 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
20210         PR target/57844
20211         * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
20212         of my_fp.
20214 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
20216         PR target/57506
20217         * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
20218         (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
20219         (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
20220         Remove duplicate devices.
20221         * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
20222         * config/avr/t-multilib: Regenerate.
20223         * config/avr/avr-tables.opt: Regenerate.
20224         * doc/avr-mmcu.texi: Regenerate.
20226 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
20228         PR target/56987
20229         * config/avr/avr.opt (Waddr-space-convert): Fix typo.
20231 2013-07-10  Graham Stott  <graham.stott@btinternet.com>
20233         * config/mips/mips.c (mips_rtx_costs): Very slightly increase
20234         the cost of MULT when optimizing for size.
20236 2013-07-10  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20238         * config/cr16/cr16-protos.h: Don't include target.h.
20240 2013-07-09  Joseph Myers  <joseph@codesourcery.com>
20242         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
20243         adjust register size for TDmode and TFmode for VSX registers.
20245 2013-07-08  Kai Tietz  <ktietz@redhat.com>
20247         PR target/56892
20248         * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
20249         hook_bool_const_tree_true.
20251 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20253         * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
20254         * config/s390/s390.h: Remove F*_REGNUM macro definitions.
20255         * config/s390/s390.md: Define FPR*_REGNUM constants.
20256         Fix FPR2_REGNUM constant (18 -> 17).
20257         ("*trunc<BFP:mode><DFP_ALL:mode>2")
20258         ("*trunc<DFP_ALL:mode><BFP:mode>2")
20259         ("trunc<BFP:mode><DFP_ALL:mode>2")
20260         ("trunc<DFP_ALL:mode><BFP:mode>2")
20261         ("*extend<BFP:mode><DFP_ALL:mode>2")
20262         ("*extend<DFP_ALL:mode><BFP:mode>2")
20263         ("extend<BFP:mode><DFP_ALL:mode>2")
20264         ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
20265         FPR4_REGNUM.
20267 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
20269         * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
20271 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20273         * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
20274         and cfun_fpr_bit_p to cfun_fpr_save_p.
20275         (s390_frame_area, s390_register_info, s390_frame_info)
20276         (s390_emit_prologue, s390_emit_epilogue)
20277         (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
20278         register numbers.
20279         * config/s390/s390.h: Define *_REGNUM macros for floating point
20280         register numbers.
20282 2013-07-08  Eric Botcazou  <ebotcazou@adacore.com>
20284         * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
20286 2013-07-08  Po-Chun Chang  <pchang9@cs.wisc.edu>
20288         PR rtl-optimization/57786
20289         * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
20290         and break out of the loop when it is set to false.
20292 2013-07-08  Jakub Jelinek  <jakub@redhat.com>
20294         PR target/57819
20295         * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
20296         Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
20297         (const_int 63)) 0)).
20298         * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
20299         using simplify_gen_unary instead of gen_rtx_*_EXTEND.
20300         * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
20302         PR rtl-optimization/57829
20303         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
20304         mask bits outside of mode are just sign-extension from mode to HWI.
20306 2013-07-08  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
20308         * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
20309         * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
20310         adjust_address instead of change_address to keep info about alignment.
20311         (emit_strmov): Remove.
20312         (emit_memmov): New function.
20313         (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
20314         (expand_movmem_epilogue): Likewise and return updated rtx for
20315         destination.
20316         (expand_constant_movmem_prologue): Likewise and return updated rtx for
20317         destination and source.
20318         (decide_alignment): Refactor, handle vector_loop.
20319         (ix86_expand_movmem): Likewise.
20320         (ix86_expand_setmem): Likewise.
20321         * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
20323 2013-07-07  Uros Bizjak  <ubizjak@gmail.com>
20325         * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
20326         signature_TM2_ebx, it interferes with signature_INTEL_ebx.
20328 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
20330         * config/i386/sse.md (sse_movlhps): Change alternative 3
20331         of operand 2 to "m".
20333 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
20335         PR target/57807
20336         * config/i386/sse.md (iptr): New mode attribute.
20337         (sse2_movq128): Add pointer size overrides for Intel asm dialect.
20338         (<sse>_vm<plusminus_insn><mode>3): Ditto.
20339         (<sse>_vmmul<mode>3): Ditto.
20340         (<sse>_vmdiv<mode>3): Ditto.
20341         (sse_vmrcpv4sf2): Ditto.
20342         (<sse>_vmsqrt<mode>2): Ditto.
20343         (sse_vmrsqrtv4sf2): Ditto.
20344         (<sse>_vm<code><mode>3): Ditto.
20345         (avx_vmcmp<mode>3): Ditto.
20346         (<sse>_vmmaskcmp<mode>3): Ditto.
20347         (<sse>_comi): Ditto.
20348         (<sse>_ucomi): Ditto.
20349         (*xop_vmfrcz_<mode>): Ditto.
20350         (*fmai_fmadd_<mode>): Ditto.
20351         (*fmai_fmsub_<mode>): Ditto.
20352         (*fmai_fnmadd_<mode>): Ditto.
20353         (*fmai_fnmsub_<mode>): Ditto.
20354         (*fma4i_vmfmadd_<mode>): Ditto.
20355         (*fma4i_vmfmsub_<mode>): Ditto.
20356         (*fma4i_vmfnmadd_<mode>): Ditto.
20357         (*fma4i_vmfnmsub_<mode>): Ditto.
20358         (*xop_vmfrcz_<mode>): Ditto.
20359         (sse_cvtps2pi): Ditto.
20360         (sse_cvttps2pi): Ditto.
20361         (sse_cvtss2si): Ditto.
20362         (sse_cvtss2si_2): Ditto.
20363         (sse_cvtss2siq_2): Ditto.
20364         (sse_cvttss2si): Ditto.
20365         (sse_cvttss2siq): Ditto.
20366         (sse_cvtsd2si): Ditto.
20367         (sse_cvtsd2si_2): Ditto.
20368         (sse_cvtsd2siq_2): Ditto.
20369         (sse_cvttsd2si): Ditto.
20370         (sse_cvttsd2siq): Ditto.
20371         (sse_cvtsd2ss): Ditto.
20372         (sse_cvtss2sd): Ditto.
20373         (avx2_pbroadcast<mode>): Ditto.
20374         (avx2_pbroadcast<mode>_1): Ditto.
20375         (*avx_vperm_broadcast_v4sf): Ditto.
20377         (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
20378         (sse_movlhps): Ditto.
20379         (sse_storehps): Ditto.
20380         (sse_loadhps): Ditto.
20381         (sse_storelps): Ditto.
20382         (sse_loadlps): Ditto.
20383         (*vec_concatv4sf): Ditto.
20384         (*vec_interleave_highv2df): Ditto.
20385         (*vec_interleave_lowv2df): Ditto.
20386         (*vec_extractv2df_1_sse): Ditto.
20387         (*vec_extractv2df_0_sse): Ditto.
20388         (sse2_storelpd): Ditto.
20389         (sse2_loadlpd): Ditto.
20390         (sse2_movsd): Ditto.
20391         (*vec_concatv4si): Ditto.
20392         (vec_concatv2di): Ditto.
20394         * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
20395         for Intel asm dialect.
20396         (mmx_punpcklwd): Ditto.
20397         (mmx_punpckldq): Ditto.
20399         * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
20400         for intel assembler dialect.
20402 2013-07-06  Jakub Jelinek  <jakub@redhat.com>
20404         PR target/29776
20405         * fold-const.c (tree_call_nonnegative_warnv_p): Return true
20406         for BUILT_IN_C{LZ,LRSB}*.
20407         * tree.h (CASE_INT_FN): Add FN##IMAX case.
20408         * tree-vrp.c (extract_range_basic): Handle
20409         BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*.  For
20410         BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
20411         fall thru to code calling set_value*.
20412         * builtins.c (expand_builtin): Remove *IMAX cases.
20413         (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
20414         if width is bigger than 2*HWI.
20416 2013-07-05  Vladimir Makarov  <vmakarov@redhat.com>
20418         PR rtl-optimization/55342
20419         * lra-int.h (lra_subreg_reload_pseudos): New.
20420         * lra.c: Add undoing optional reloads to the block diagram.
20421         (lra_subreg_reload_pseudos): New.
20422         (lra_optional_reload_pseudos): Change comments.
20423         (lra): Init and clear lra_subreg_reload_pseudos.  Clear
20424         lra_optional_reload_pseudos after undo transformations.
20425         * lra-assigns.c (pseudo_prefix_title): New.
20426         (lra_setup_reg_renumber): Use it.
20427         (spill_for): Ditto.  Check subreg reload pseudos too.
20428         (assign_by_spills): Consider subreg reload pseudos too.
20429         * lra-constraints.c (simplify_operand_subreg): Use
20430         lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
20431         (curr_insn_transform): Recognize and do optional reloads.
20432         (undo_optional_reloads): New.
20433         (lra_undo_inheritance): Call undo_optional_reloads.
20435 2013-07-05  Thomas Quinot  <quinot@adacore.com>
20437         * tree-complex.c (expand_complex_operations_1): Fix typo.
20439 2013-07-04  Tejas Belagod  <tejas.belagod@arm.com>
20441         * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
20442         (tune_params): New member 'const vec_costs'.
20443         * config/aarch64/aarch64.c (generic_vector_cost): New.
20444         (generic_tunings): New member 'generic_vector_cost'.
20445         (aarch64_builtin_vectorization_cost): New.
20446         (aarch64_add_stmt_cost): New.
20447         (TARGET_VECTORIZE_ADD_STMT_COST): New.
20448         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
20450 2013-07-03  Jakub Jelinek  <jakub@redhat.com>
20452         PR target/57777
20453         * config/i386/predicates.md (vsib_address_operand): Disallow
20454         SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
20456 2013-07-03  Hans-Peter Nilsson  <hp@bitrange.com>
20458         PR middle-end/55030
20459         * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
20460         expand_builtin_setjmp_receiver.
20461         (expand_label): Adjust, call expand_builtin_setjmp_receiver
20462         with NULL for the label parameter.
20463         * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
20464         the frame-pointer.  Adjust comments.
20465         [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
20466         only if LABEL is non-NULL.
20468 2013-07-03  Yufeng Zhang  <yufeng.zhang@arm.com>
20470         * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
20471         (ARM_ABI_AAPCS64): Ditto.
20472         (arm_abi): Ditto.
20473         (ARM_DEFAULT_ABI): Ditto.
20475 2013-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
20477         * config/aarch64/aarch64-builtins.c
20478         (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
20479         * config/aarch64/aarch64-simd-builtins.def (ld1): New.
20480         (st1): Likewise.
20481         * config/aarch64/aarch64-simd.md
20482         (aarch64_ld1<VALL:mode>): New.
20483         (aarch64_st1<VALL:mode>): Likewise.
20484         * config/aarch64/arm_neon.h
20485         (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
20487 2013-07-02  Sriraman Tallam  <tmsriram@google.com>
20489         * config/i386/i386.c (gate_insert_vzeroupper): Check if
20490         target ISA is AVX.
20491         (ix86_option_override_internal):Turn on all -mavx target flags by
20492         default as they are dependent on AVX anyway.
20494 2013-07-02  Cary Coutant  <ccoutant@google.com>
20496         * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
20497         deterministic hash.
20498         (loc_checksum_ordered): Likewise.
20499         (hash_loc_operands): Remove inline keyword.
20501 2013-07-02  Jakub Jelinek  <jakub@redhat.com>
20503         PR tree-optimization/57741
20504         * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
20505         non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
20506         or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
20507         Allow REAL_CST step_exprs if flag_associative_math.
20508         (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
20510 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
20512         * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
20514 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
20516         * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
20518 2013-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20520         * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
20521         encoding.
20522         (iorsi3_insn): Likewise.
20523         (arm_xorsi3): Likewise.
20525 2013-07-01  Sofiane Naci  <sofiane.naci@arm.com>
20527         * arm.md (attribute "wtype"): Delete.  Move attribute values from here
20528         to ...
20529         (attribute "type"): ... here, and prefix with "wmmx_".
20530         (attribute "core_cycles"): Update for attribute changes.
20531         * iwmmxt.md (tbcstv8qi): Update for attribute changes.
20532         (tbcstv4hi): Likewise.
20533         (tbcstv2si): Likewise.
20534         (iwmmxt_iordi3): Likewise.
20535         (iwmmxt_xordi3): Likewise.
20536         (iwmmxt_anddi3): Likewise.
20537         (iwmmxt_nanddi3): Likewise.
20538         (iwmmxt_arm_movdi): Likewise.
20539         (iwmmxt_movsi_insn): Likewise.
20540         (mov<mode>_internal): Likewise.
20541         (and<mode>3_iwmmxt): Likewise.
20542         (ior<mode>3_iwmmxt): Likewise.
20543         (xor<mode>3_iwmmxt): Likewise.
20544         (add<mode>3_iwmmxt): Likewise.
20545         (ssaddv8qi3): Likewise.
20546         (ssaddv4hi3): Likewise.
20547         (ssaddv2si3): Likewise.
20548         (usaddv8qi3): Likewise.
20549         (usaddv4hi3): Likewise.
20550         (usaddv2si3): Likewise.
20551         (sub<mode>3_iwmmxt): Likewise.
20552         (sssubv8qi3): Likewise.
20553         (sssubv4hi3): Likewise.
20554         (sssubv2si3): Likewise.
20555         (ussubv8qi3): Likewise.
20556         (ussubv4hi3): Likewise.
20557         (ussubv2si3): Likewise.
20558         (mulv4hi3_iwmmxt): Likewise.
20559         (smulv4hi3_highpart): Likewise.
20560         (umulv4hi3_highpart): Likewise.
20561         (iwmmxt_wmacs): Likewise.
20562         (iwmmxt_wmacsz): Likewise.
20563         (iwmmxt_wmacu): Likewise.
20564         (iwmmxt_wmacuz): Likewise.
20565         (iwmmxt_clrdi): Likewise.
20566         (iwmmxt_clrv8qi): Likewise.
20567         (iwmmxt_clr4hi): Likewise.
20568         (iwmmxt_clr2si): Likewise.
20569         (iwmmxt_uavgrndv8qi3): Likewise.
20570         (iwmmxt_uavgrndv4hi3): Likewise.
20571         (iwmmxt_uavgv8qi3): Likewise.
20572         (iwmmxt_uavgv4hi3): Likewise.
20573         (iwmmxt_tinsrb): Likewise.
20574         (iwmmxt_tinsrh): Likewise.
20575         (iwmmxt_tinsrw): Likewise.
20576         (iwmmxt_textrmub): Likewise.
20577         (iwmmxt_textrmsb): Likewise.
20578         (iwmmxt_textrmuh): Likewise.
20579         (iwmmxt_textrmsh): Likewise.
20580         (iwmmxt_textrmw): Likewise.
20581         (iwmxxt_wshufh): Likewise.
20582         (eqv8qi3): Likewise.
20583         (eqv4hi3): Likewise.
20584         (eqv2si3): Likewise.
20585         (gtuv8qi3): Likewise.
20586         (gtuv4hi3): Likewise.
20587         (gtuv2si3): Likewise.
20588         (gtv8qi3): Likewise.
20589         (gtv4hi3): Likewise.
20590         (gtv2si3): Likewise.
20591         (smax<mode>3_iwmmxt): Likewise.
20592         (umax<mode>3_iwmmxt): Likewise.
20593         (smin<mode>3_iwmmxt): Likewise.
20594         (umin<mode>3_iwmmxt): Likewise.
20595         (iwmmxt_wpackhss): Likewise.
20596         (iwmmxt_wpackwss): Likewise.
20597         (iwmmxt_wpackdss): Likewise.
20598         (iwmmxt_wpackhus): Likewise.
20599         (iwmmxt_wpackwus): Likewise.
20600         (iwmmxt_wpackdus): Likewise.
20601         (iwmmxt_wunpckihb): Likewise.
20602         (iwmmxt_wunpckihh): Likewise.
20603         (iwmmxt_wunpckihw): Likewise.
20604         (iwmmxt_wunpckilb): Likewise.
20605         (iwmmxt_wunpckilh): Likewise.
20606         (iwmmxt_wunpckilw): Likewise.
20607         (iwmmxt_wunpckehub): Likewise.
20608         (iwmmxt_wunpckehuh): Likewise.
20609         (iwmmxt_wunpckehuw): Likewise.
20610         (iwmmxt_wunpckehsb): Likewise.
20611         (iwmmxt_wunpckehsh): Likewise.
20612         (iwmmxt_wunpckehsw): Likewise.
20613         (iwmmxt_wunpckelub): Likewise.
20614         (iwmmxt_wunpckeluh): Likewise.
20615         (iwmmxt_wunpckeluw): Likewise.
20616         (iwmmxt_wunpckelsb): Likewise.
20617         (iwmmxt_wunpckelsh): Likewise.
20618         (iwmmxt_wunpckelsw): Likewise.
20619         (ror<mode>3): Likewise.
20620         (ashr<mode>3_iwmmxt): Likewise.
20621         (lshr<mode>3_iwmmxt): Likewise.
20622         (ashl<mode>3_iwmmxt): Likewise.
20623         (ror<mode>3_di): Likewise.
20624         (ashr<mode>3_di): Likewise.
20625         (lshr<mode>3_di): Likewise.
20626         (ashl<mode>3_di): Likewise.
20627         (iwmmxt_wmadds): Likewise.
20628         (iwmmxt_wmaddu): Likewise.
20629         (iwmmxt_tmia): Likewise.
20630         (iwmmxt_tmiaph): Likewise.
20631         (iwmmxt_tmiabb): Likewise.
20632         (iwmmxt_tmiatb): Likewise.
20633         (iwmmxt_tmiabt): Likewise.
20634         (iwmmxt_tmiatt): Likewise.
20635         (iwmmxt_tmovmskb): Likewise.
20636         (iwmmxt_tmovmskh): Likewise.
20637         (iwmmxt_tmovmskw): Likewise.
20638         (iwmmxt_waccb): Likewise.
20639         (iwmmxt_wacch): Likewise.
20640         (iwmmxt_waccw): Likewise.
20641         (iwmmxt_waligni): Likewise.
20642         (iwmmxt_walignr): Likewise.
20643         (iwmmxt_walignr0): Likewise.
20644         (iwmmxt_walignr1): Likewise.
20645         (iwmmxt_walignr2): Likewise.
20646         (iwmmxt_walignr3): Likewise.
20647         (iwmmxt_wsadb): Likewise.
20648         (iwmmxt_wsadh): Likewise.
20649         (iwmmxt_wsadbz): Likewise.
20650         (iwmmxt_wsadhz): Likewise.
20651         * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
20652         (iwmmxt_wabsdiffb): Likewise.
20653         (iwmmxt_wabsdiffh): Likewise.
20654         (iwmmxt_wabsdiffw): Likewise.
20655         (iwmmxt_waddsubhx): Likewise
20656         (iwmmxt_wsubaddhx): Likewise.
20657         (addc<mode>3): Likewise.
20658         (iwmmxt_avg4): Likewise.
20659         (iwmmxt_avg4r): Likewise.
20660         (iwmmxt_wmaddsx): Likewise.
20661         (iwmmxt_wmaddux): Likewise.
20662         (iwmmxt_wmaddsn): Likewise.
20663         (iwmmxt_wmaddun): Likewise.
20664         (iwmmxt_wmulwsm): Likewise.
20665         (iwmmxt_wmulwum): Likewise.
20666         (iwmmxt_wmulsmr): Likewise.
20667         (iwmmxt_wmulumr): Likewise.
20668         (iwmmxt_wmulwsmr): Likewise.
20669         (iwmmxt_wmulwumr): Likewise.
20670         (iwmmxt_wmulwl): Likewise.
20671         (iwmmxt_wqmulm): Likewise.
20672         (iwmmxt_wqmulwm): Likewise.
20673         (iwmmxt_wqmulmr): Likewise.
20674         (iwmmxt_wqmulwmr): Likewise.
20675         (iwmmxt_waddbhusm): Likewise.
20676         (iwmmxt_waddbhusl): Likewise.
20677         (iwmmxt_wqmiabb): Likewise.
20678         (iwmmxt_wqmiabt): Likewise.
20679         (iwmmxt_wqmiatb): Likewise.
20680         (iwmmxt_wqmiatt): Likewise.
20681         (iwmmxt_wqmiabbn): Likewise.
20682         (iwmmxt_wqmiabtn): Likewise.
20683         (iwmmxt_wqmiatbn): Likewise.
20684         (iwmmxt_wqmiattn): Likewise.
20685         (iwmmxt_wmiabb): Likewise.
20686         (iwmmxt_wmiabt): Likewise.
20687         (iwmmxt_wmiatb): Likewise.
20688         (iwmmxt_wmiatt): Likewise.
20689         (iwmmxt_wmiabbn): Likewise.
20690         (iwmmxt_wmiabtn): Likewise.
20691         (iwmmxt_wmiatbn): Likewise.
20692         (iwmmxt_wmiattn): Likewise.
20693         (iwmmxt_wmiawbb): Likewise.
20694         (iwmmxt_wmiawbt): Likewise.
20695         (iwmmxt_wmiawtb): Likewise.
20696         (iwmmxt_wmiawtt): Likewise.
20697         (iwmmxt_wmiawbbn): Likewise.
20698         (iwmmxt_wmiawbtn): Likewise.
20699         (iwmmxt_wmiawtbn): Likewise.
20700         (iwmmxt_wmiawttn): Likewise.
20701         (iwmmxt_wmerge): Likewise.
20702         (iwmmxt_tandc<mode>3): Likewise.
20703         (iwmmxt_torc<mode>3): Likewise.
20704         (iwmmxt_torvsc<mode>3): Likewise.
20705         (iwmmxt_textrc<mode>3): Likewise.
20706         * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
20707         (wmmxt_pack): Likewise.
20708         (wmmxt_mult_c1): Likewise.
20709         (wmmxt_mult_c2): Likewise.
20710         (wmmxt_alu_c1): Likewise.
20711         (wmmxt_alu_c2): Likewise.
20712         (wmmxt_alu_c3): Likewise.
20713         (wmmxt_transfer_c1): Likewise.
20714         (wmmxt_transfer_c2): Likewise.
20715         (wmmxt_transfer_c3): Likewise.
20716         (marvell_f_iwmmxt_wstr): Likewise.
20717         (marvell_f_iwmmxt_wldr): Likewise.
20719 2013-06-29  Yufeng Zhang  <yufeng.zhang@arm.com>
20721         * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
20723 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
20725         Revert:
20726         2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
20727         * lra-constraints.c (need_for_split_p): Check call used hard regs
20728         living through calls.
20730         * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
20731         call used regs for call insn.
20733 2013-06-28  Jakub Jelinek  <jakub@redhat.com>
20735         PR target/57736
20736         * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
20737         mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
20739 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
20741         * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
20743 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
20745         * lra-constraints.c (need_for_split_p): Check call used hard regs
20746         living through calls.
20748 2013-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
20750         PR target/57744
20751         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
20752         to tie with any other modes.  Eliminate Altivec vector mode tests,
20753         since these are a subset of ALTIVEC or VSX vector modes.  Simplify
20754         code, to return 0 if testing MODE2 for a condition, if we've
20755         already tested MODE1 for the same condition.
20757 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
20759         * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
20760         layout.
20762 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
20764         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
20765         Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
20767 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
20769         * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
20770         Define.
20771         (aarch64_symbolic_constant_p): Remove.
20772         * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
20773         static.  Fix line length and white space.
20774         (aarch64_symbolic_constant_p): Remove.
20775         * config/aarch64/predicates.md (aarch64_valid_symref):
20776         Use aarch64_classify_symbol_expression.
20778 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20780         * config/arm/constraints.md (Ts): New constraint.
20781         * config/arm/arm.md (arm_movqi_insn): Add alternatives for
20782         16-bit encodings.
20783         (compare_scc): Use "Ts" constraint for operand 0.
20784         (ior_scc_scc): Likewise.
20785         (and_scc_scc): Likewise.
20786         (and_scc_scc_nodom): Likewise.
20787         (ior_scc_scc_cmp): Likewise for operand 7.
20788         (and_scc_scc_cmp): Likewise.
20789         * config/arm/thumb2.md (thumb2_movsi_insn):
20790         Add alternatives for 16-bit encodings.
20791         (thumb2_movhi_insn): Likewise.
20792         (thumb2_movsicc_insn): Likewise.
20793         (thumb2_and_scc): Take 'and' outside cond_exec.  Use "Ts" constraint.
20794         (thumb2_negscc): Use "Ts" constraint.
20795         Move mvn instruction outside cond_exec block.
20796         * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
20797         for 16-bit encodings.
20799 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20801         * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
20802         encoding.
20803         (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
20804         (mulsi3subsi): Likewise.
20805         (mulsidi3adddi): Likewise.
20806         (mulsidi3_v6): Likewise.
20807         (umulsidi3_v6): Likewise.
20808         (umulsidi3adddi_v6): Likewise.
20809         (smulsi3_highpart_v6): Likewise.
20810         (umulsi3_highpart_v6): Likewise.
20811         (mulhisi3tb): Likewise.
20812         (mulhisi3bt): Likewise.
20813         (mulhisi3tt): Likewise.
20814         (maddhisi4): Likewise.
20815         (maddhisi4tb): Likewise.
20816         (maddhisi4tt): Likewise.
20817         (maddhidi4): Likewise.
20818         (maddhidi4tb): Likewise.
20819         (maddhidi4tt): Likewise.
20820         (zeroextractsi_compare0_scratch): Likewise.
20821         (insv_zero): Likewise.
20822         (insv_t2): Likewise.
20823         (anddi_notzesidi_di): Likewise.
20824         (anddi_notsesidi_di): Likewise.
20825         (andsi_notsi_si): Likewise.
20826         (iordi_zesidi_di): Likewise.
20827         (xordi_zesidi_di): Likewise.
20828         (andsi_iorsi3_notsi): Likewise.
20829         (smax_0): Likewise.
20830         (smax_m1): Likewise.
20831         (smin_0): Likewise.
20832         (not_shiftsi): Likewise.
20833         (unaligned_loadsi): Likewise.
20834         (unaligned_loadhis): Likewise.
20835         (unaligned_loadhiu): Likewise.
20836         (unaligned_storesi): Likewise.
20837         (unaligned_storehi): Likewise.
20838         (extv_reg): Likewise.
20839         (extzv_t2): Likewise.
20840         (divsi3): Likewise.
20841         (udivsi3): Likewise.
20842         (arm_zero_extendhisi2addsi): Likewise.
20843         (arm_zero_extendqisi2addsi): Likewise.
20844         (compareqi_eq0): Likewise.
20845         (arm_extendhisi2_v6): Likewise.
20846         (arm_extendqisi2addsi): Likewise.
20847         (arm_movt): Likewise.
20848         (thumb2_ldrd): Likewise.
20849         (thumb2_ldrd_base): Likewise.
20850         (thumb2_ldrd_base_neg): Likewise.
20851         (thumb2_strd): Likewise.
20852         (thumb2_strd_base): Likewise.
20853         (thumb2_strd_base_neg): Likewise.
20854         (arm_negsi2): Add alternative for 16-bit encoding.
20855         (arm_one_cmplsi2): Likewise.
20857 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20859         * config/arm/predicates.md (arm_cond_move_operator): New predicate.
20860         * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
20861         (movdfcc): Likewise.
20862         * config/arm/vfp.md (*thumb2_movsf_vfp):
20863         Disable predication for arm_restrict_it.
20864         (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
20865         (*thumb2_movdfcc_vfp): Likewise.
20866         (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
20867         *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
20868         *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
20869         *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
20870         *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
20871         *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
20872         *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
20873         *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
20874         *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
20875         *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
20876         *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
20877         *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
20878         Disable predication for arm_restrict_it.
20880 2013-06-28  Kirill Yukhin  <kirill.yukhin@intel.com>
20882         * config/i386/bmiintrin.h (_bextr_u32): New.
20883         (_bextr_u64): Ditto.
20885 2013-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
20887         * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
20888         (mips64r5900el-*-elf*): Include mips/n32-elf.h.
20889         * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
20890         (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
20891         * config/mips/n32-elf.h: ...this new file.
20893 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
20895         PR target/57224
20896         * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
20897         IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
20899 2013-06-27  Catherine Moore  <clm@codesourcery.com>
20901         * config/mips/mips-tables.opt: Regenerate.
20902         * config/mips/mips-cpus.def: Add m14ke and m14kec.
20903         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
20904         * doc/invoke.texi: Add -m14kc.
20906 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
20908         PR target/57623
20909         * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
20910         constraints of operand 1 and 2.
20912         PR target/57623
20913         * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
20914         to match RTL canonicalization.  Swap predicates and
20915         constraints of operand 1 and 2.
20917 2013-06-27  Vladimir Makarov  <vmakarov@redhat.com>
20919         * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
20920         Process OP_INOUT regs for splitting too.
20922 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
20924         * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
20925         decl before the loop, initialize to NULL.
20926         (vectorizable_load): Initialize ptr_incr to NULL.
20928 2013-06-27  Martin Jambor  <mjambor@suse.cz>
20930         PR lto/57208
20931         * ipa-ref.h (ipa_maybe_record_reference): Declare.
20932         * ipa-ref.c (ipa_maybe_record_reference): New function.
20933         * cgraphclones.c (cgraph_create_virtual_clone): Use it.
20934         * ipa-cp.c (create_specialized_node): Record potential references from
20935         aggvals.
20936         * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
20938 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
20940         * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
20941         parameter 'mode' of type 'enum machine_mode mode'; change to pass
20942         'mode' to force_reg.
20943         (aarch64_add_offset): Update calls to aarch64_force_temporary.
20944         (aarch64_expand_mov_immediate): Likewise.
20946 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
20948         * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
20949         'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
20951 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20953         * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
20954         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
20955         (struct machine_function): Add tbegin_p.
20956         (s390_canonicalize_comparison): Fold CC mode compares to
20957         conditional jump if possible.
20958         (s390_emit_jump): Return the emitted jump.
20959         (s390_branch_condition_mask, s390_branch_condition_mnemonic):
20960         Handle CCRAWmode compares.
20961         (s390_option_override): Default to -mhtm if available.
20962         (s390_reg_clobbered_rtx): Handle floating point regs as well.
20963         (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
20964         FPRs instead of df_regs_ever_live_p.
20965         (s390_optimize_nonescaping_tx): New function.
20966         (s390_init_frame_layout): Extend clobbered_regs array to cover
20967         FPRs as well.
20968         (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
20969         (s390_expand_tbegin): New function.
20970         (enum s390_builtin): New enum definition.
20971         (code_for_builtin): New array definition.
20972         (s390_init_builtins): New function.
20973         (s390_expand_builtin): New function.
20974         (TARGET_INIT_BUILTINS): Define.
20975         (TARGET_EXPAND_BUILTIN): Define.
20976         * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
20977         * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
20978         (s390_alc_comparison): Likewise.
20979         * config/s390/s390-modes.def: Add CCRAWmode.
20980         * config/s390/s390.h (processor_flags): Add PF_TX.
20981         (TARGET_CPU_HTM): Define macro.
20982         (TARGET_HTM): Define macro.
20983         (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
20984         * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
20985         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
20986         (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
20987         (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
20988         (TBEGIN_MASK, TBEGINC_MASK): New constants.
20989         ("*cc_to_int"): Move up.
20990         ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
20991         constants other than 0.
20992         ("*ccraw_to_int"): New insn and splitter definition.
20993         ("tbegin", "tbegin_nofloat", "tbegin_retry")
20994         ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
20995         ("tx_assist"): New expander.
20996         ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
20997         ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
20998         * config/s390/s390.opt: Add -mhtm option.
20999         * config/s390/s390-protos.h (s390_emit_jump): Add return type.
21000         * config/s390/htmxlintrin.h: New file.
21001         * config/s390/htmintrin.h: New file.
21002         * config/s390/s390intrin.h: New file.
21003         * doc/extend.texi: Document htm builtins.
21004         * config.gcc: Add the new header files to extra_headers.
21006 2013-06-26  Thomas Schwinge  <thomas@codesourcery.com>
21008         * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
21009         (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
21011 2013-06-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
21012             Pat Haugen  <pthaugen@us.ibm.com>
21013             Peter Bergner  <bergner@vnet.ibm.com>
21015         * config/rs6000/power8.md: New.
21016         * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
21017         setting for power8 entry.
21018         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
21019         * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
21020         test for Power4/Power5 only.
21021         (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
21022         support.
21023         (force_new_group): Adjust comment.
21024         * config/rs6000/rs6000.md: Include power8.md.
21026 2013-06-26  Greta Yorsh  <Greta.Yorsh@arm.com>
21028         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
21029         * config/arm/arm-protos.h (arm_max_conditional_execute): New
21030         declaration.
21031         (tune_params): Update comment.
21032         * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
21033         (arm_max_conditional_execute): New function.
21034         (thumb2_final_prescan_insn): Use max_insn_skipped and
21035         MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
21037 2013-06-25  Jakub Jelinek  <jakub@redhat.com>
21039         PR tree-optimization/57705
21040         * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
21041         SSA_NAME step, provided that it is not defined inside the loop.
21042         (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
21043         (get_initial_def_for_induction): Handle SSA_NAME IV step.
21045 2013-06-25  Martin Jambor  <mjambor@suse.cz>
21047         PR middle-end/57670
21048         * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
21049         * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
21050         calls in the dump.
21051         (ipa_note_param_call): Initialize member_ptr flag.
21052         (ipa_analyze_indirect_call_uses): Set member_ptr flag.
21053         (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
21054         (ipa_write_indirect_edge_info): Stream member_ptr flag.
21055         (ipa_read_indirect_edge_info): Likewise.
21057 2013-06-25  Richard Biener  <rguenther@suse.de>
21059         PR middle-end/56977
21060         * passes.c (init_optimization_passes): Move pass_fold_builtins
21061         and pass_dce earlier with -Og.
21063 2013-06-25  Eric Botcazou  <ebotcazou@adacore.com>
21065         * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
21066         <BIT_FIELD_REF>: Remove trailing TAB.
21067         * varasm.c (output_constructor_bitfield): Fix formatting glitch and
21068         remove blank line.
21070 2013-06-24  Martin Jambor  <mjambor@suse.cz>
21072         PR tree-optimization/57358
21073         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
21074         (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
21075         (ipa_analyze_params_uses): Generate pessimistic info when true.
21077 2013-06-24  Martin Jambor  <mjambor@suse.cz>
21079         PR tree-optimization/57539
21080         * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
21081         global.inlined_to of the new node to it.  All callers changed.
21082         * ipa-inline-transform.c (clone_inlined_nodes): New variable
21083         inlining_into, pass it to cgraph_clone_node.
21084         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
21085         ipa_free_edge_args_substructures.
21086         (ipa_edge_duplication_hook): Only add edges from inlined nodes to
21087         rdesc linked list.  Do not assert rdesc edges have inlined caller.
21088         Assert we have found an rdesc in the rdesc list.
21090 2013-06-24  Richard Biener  <rguenther@suse.de>
21092         * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
21093         (pointer_set_lookup): Declare.
21094         (class pointer_map): New template class implementing a
21095         generic pointer to T map.
21096         (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
21097         pointer_map<T>::contains, pointer_map<T>::insert,
21098         pointer_map<T>::traverse): New functions.
21099         * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
21100         (pointer_set_lookup): New function.
21101         (pointer_set_contains): Use pointer_set_lookup.
21102         (pointer_set_insert): Likewise.
21103         (insert_aux): Remove.
21104         (struct pointer_map_t): Embed a pointer_set_t.
21105         (pointer_map_create): Adjust.
21106         (pointer_map_destroy): Likewise.
21107         (pointer_map_contains): Likewise.
21108         (pointer_map_insert): Likewise.
21109         (pointer_map_traverse): Likewise.
21110         * tree-streamer.h (struct streamer_tree_cache_d): Use a
21111         pointer_map<unsigned> instead of a pointer_map_t.
21112         * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
21113         (streamer_tree_cache_lookup): Likewise.
21114         (streamer_tree_cache_create): Likewise.
21115         (streamer_tree_cache_delete): Likewise.
21116         * lto-streamer.h (struct lto_tree_ref_encoder): Use a
21117         pointer_map<unsigned> instead of a pointer_map_t.
21118         (lto_init_tree_ref_encoder): Adjust.
21119         (lto_destroy_tree_ref_encoder): Likewise.
21120         * lto-section-out.c (lto_output_decl_index): Likewise.
21121         (lto_record_function_out_decl_state): Likewise.
21122         * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
21124 2013-06-24  Richard Biener  <rguenther@suse.de>
21126         PR tree-optimization/57488
21127         * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
21129 2013-06-24  Alan Modra  <amodra@gmail.com>
21131         * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
21132         (gen_easy_altivec_constant): Likewise.
21133         * config/rs6000/predicates.md (easy_vector_constant_add_self,
21134         easy_vector_constant_msb): Likewise.
21136 2013-06-23  Jakub Jelinek  <jakub@redhat.com>
21138         PR target/57688
21139         * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
21140         add missing return true.
21142 2013-06-23  Oleg Endo  <olegendo@gcc.gnu.org>
21144         PR target/52483
21145         * config/sh/predicates.md (general_extend_operand): Invoke
21146         general_movsrc_operand for memory operands.
21147         (general_movsrc_operand): Allow reg+reg addressing, do not use
21148         general_operand for memory operands.
21150 2013-06-23  Sriraman Tallam  <tmsriram@google.com>
21152         * config/i386/i386.c (ix86_pragma_target_parse):  Restore target
21153         when current target options does not apply.
21154         * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
21155         * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
21156         * config/i386/bmiintrin.h: Pass appropriate target
21157         attributes to header.
21158         * config/i386/mmintrin.h: Ditto.
21159         * config/i386/nmmintrin.h: Ditto.
21160         * config/i386/avx2intrin.h: Ditto.
21161         * config/i386/fxsrintrin.h: Ditto.
21162         * config/i386/tbmintrin.h: Ditto.
21163         * config/i386/xsaveintrin.h: Ditto.
21164         * config/i386/f16cintrin.h: Ditto.
21165         * config/i386/xtestintrin.h: Ditto.
21166         * config/i386/xsaveoptintrin.h: Ditto.
21167         * config/i386/bmi2intrin.h: Ditto.
21168         * config/i386/lzcntintrin.h: Ditto.
21169         * config/i386/smmintrin.h: Ditto.
21170         * config/i386/wmmintrin.h: Ditto.
21171         * config/i386/x86intrin.h: Remove all header include guards.
21172         * config/i386/prfchwintrin.h: Ditto.
21173         * config/i386/pmmintrin.h: Ditto.
21174         * config/i386/tmmintrin.h: Ditto.
21175         * config/i386/xmmintrin.h: Ditto.
21176         * config/i386/popcntintrin.h: Ditto.
21177         * config/i386/rdseedintrin.h: Ditto.
21178         * config/i386/ammintrin.h: Ditto.
21179         * config/i386/emmintrin.h: Ditto.
21180         * config/i386/immintrin.h: Remove all header include guards.
21181         * config/i386/fma4intrin.h: Ditto.
21182         * config/i386/lwpintrin.h: Ditto.
21183         * config/i386/xopintrin.h: Ditto.
21184         * config/i386/ia32intrin.h: Ditto.
21185         * config/i386/avxintrin.h: Ditto.
21186         * config/i386/rtmintrin.h: Ditto.
21187         * config/i386/fmaintrin.h: Ditto.
21188         * config/i386/mm3dnow.h: Ditto.
21190 2013-06-22  Sriraman Tallam  <tmsriram@google.com>
21192         * common/config/i386/i386-common.c: Handle LZCNT.
21194 2013-06-22  Andi Kleen  <ak@linux.intel.com>
21196         * doc/extend.texi: Use __atomic_store_n instead of
21197         __atomic_store in HLE example.
21199 2013-06-22  Oleg Endo  <olegendo@gcc.gnu.org>
21201         * config/sh/sh.c: Remove <cstdlib> workaround.
21203 2013-06-21  Andi Kleen  <ak@linux.intel.com>
21205         * doc/extend.texi: Dont use __atomic_clear in HLE example.  Fix typo.
21207 2013-06-21  Andi Kleen  <ak@linux.intel.com>
21209         * doc/extend.texi: Document that __atomic_clear and
21210           __atomic_test_and_set should only be used with bool.
21212 2013-06-20  Jan Hubicka  <jh@suse.cz>
21214         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
21215         types_same_for_odr.
21216         * tree.c (decls_same_for_odr): New function.
21217         (same_for_edr): New function.
21218         (types_same_for_odr): New function.
21219         (get_binfo_at_offset): Use it.
21220         * tree.h (types_same_for_odr): Declare.
21222 2013-06-20  Oleg Endo  <olegendo@gcc.gnu.org>
21223             Jason Merrill  <jason@redhat.com>
21225         * system.h: Include <cstdlib> as well as <stdlib.h>.
21227 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
21229         PR target/57655
21230         * config/i386/i386.c (construct_container): Report error if
21231         long double is used with disabled x87 float returns.
21233 2013-06-20  Jan Hubicka  <jh@suse.cz>
21235         * lto-cgraph.c (input_symtab): Do not set cgraph state.
21237 2013-06-20  Joern Rennecke  <joern.rennecke@embecosm.com>
21239         PR rtl-optimization/57425
21240         PR rtl-optimization/57569
21241         * alias.c (write_dependence_p): Remove parameters mem_mode and
21242         canon_mem_addr.  Add parameters x_mode, x_addr and x_canonicalized.
21243         Changed all callers.
21244         (canon_anti_dependence): Get comments and semantics in sync.
21245         Add parameter mem_canonicalized.  Changed all callers.
21246         * rtl.h (canon_anti_dependence): Update prototype.
21248 2013-06-20  Richard Biener  <rguenther@suse.de>
21250         * data-streamer-in.c (streamer_read_uhwi): Optimize single
21251         byte case, inline streamer_read_uchar and defer section
21252         overrun check.
21254 2013-06-20  Richard Biener  <rguenther@suse.de>
21256         PR tree-optimization/57584
21257         * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
21258         SSA names into the expanded expression that take part in
21259         abnormal coalescing.
21261 2013-06-19  Sharad Singhai  <singhai@google.com>
21263         * gcov.c (print_usage): Handle new option.
21264         (process_args): Ditto.
21265         (get_gcov_intermediate_filename): New function.
21266         (output_intermediate_file): New function.
21267         (output_gcov_file): New function
21268         (generate_results): Handle new option.
21269         (release_function): Relase demangled name.
21270         (read_graph_file): Handle demangled name.
21271         (output_lines): Ditto.
21272         * doc/gcov.texi: Document gcov intermediate format.
21274 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
21276         PR bootstrap/57604
21277         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
21278         (lra_emit_add): Use the functions.  Add comment about Y as an
21279         address segment.
21281 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
21283         PR driver/57652
21284         * collect2.c (collect_atexit): New.
21285         (collect_exit): Delete.
21286         (main): Register collect_atexit with atexit.
21287         (collect_wait): Change collect_exit to exit.
21288         (do_wait): Same.
21289         * collect2.h (collect_exit): Delete.
21290         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
21292 2013-06-19  Wei Mi  <wmi@google.com>
21294         PR rtl-optimization/57518
21295         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
21296         if regno is used in paradoxical subreg.
21297         (update_equiv_regs): Check pdx_subregs[regno] before
21298         set a reg to be equivalent with a mem.
21300 2013-06-19  Matthias Klose  <doko@ubuntu.com>
21302         PR driver/57651
21303         * file-find.h (find_a_file): Add a mode parameter.
21304         * file-find.c (find_a_file): Likewise.
21305         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
21306         with X_OK for the executables.
21307         * collect2.c (main): Call find_a_file with X_OK.
21309 2013-06-19  Steve Ellcey  <sellcey@mips.com>
21311         PR target/56942
21312         * config/mips/mips.md (casesi_internal_mips16_<mode>):
21313         Use NEXT_INSN instead of next_real_insn.
21315 2013-06-19  Jan Hubicka  <jh@suse.cz>
21317         * cgraph.h (const_value_known_p): Replace by ...
21318         (ctor_for_folding): .. this one.
21319         * cgraphunit.c (process_function_and_variable_attributes): Use it.
21320         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
21321         * expr.c (expand_expr_real_1): Likewise.
21322         (string_constant): Likewise.
21323         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
21324         * ipa.c (process_references): Likewise.
21325         (symtab_remove_unreachable_nodes): Likewise.
21326         * ipa-inline-analysis.c (param_change_prob): Likewise.
21327         * gimple-fold.c (canonicalize_constructor_val): Likewise.
21328         (get_base_constructor): Likwise.
21329         * varpool.c (varpool_remove_node): Likewise.
21330         (varpool_remove_initializer): LIkewise.
21331         (dump_varpool_node): LIkwise.
21332         (const_value_known_p): Rewrite to ...
21333         (ctor_for_folding): ... this one.
21335 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
21337         PR driver/57651
21338         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
21339         PERSONALITY in $PATH derived prefixes.
21341 2013-06-19  Jeff Law  <law@redhat.com>
21343         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
21344         in comment.
21346         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
21347         (simplify_bitwise_binary): Use it to simpify certain binary ops on
21348         booleans.
21350 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
21352         * config/arm/vfp.md: Move VFP instruction classification documentation
21353         to ...
21354         * config/arm/arm.md: ... here.  Update instruction classification
21355         documentation.
21357 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
21359         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
21360         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
21361         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
21363 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
21365         PR target/57609
21366         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
21367         with NEXT_INSN.  Use tablejump_p to check for jump table data
21368         insns.
21370 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
21372         PR c++/56544
21373         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
21374         that now in C++ the value is correct per the C++ standards.
21376 2013-06-19  Richard Biener  <rguenther@suse.de>
21378         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
21379         for global context.
21381 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21383         Revert:
21384         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21386         PR target/57609
21387         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
21388         with next_active_insn.
21390 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
21392         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
21393         functions are inlined during failures to flag an error.
21394         * tree-inline.c (expand_call_inline): Allow the error to be flagged
21395         in early inline pass.
21397 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
21399         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
21400         in comments.
21402 2013-06-18  Julian Brown  <julian@codesourcery.com>
21404         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
21405         Permit virtual register pre-reload if !strict.
21406         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
21407         change.
21408         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
21409         prototype.
21410         * config/arm/neon.md (movmisalign<mode>): Use
21411         neon_perm_struct_or_reg_operand instead of
21412         neon_struct_or_register_operand.
21413         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
21414         neon_permissive_struct_operand instead of neon_struct_operand.
21415         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
21416         neon_vector_mem_operand.
21417         * config/arm/predicates.md (neon_struct_operand): Adjust call to
21418         neon_vector_mem_operand.
21419         (neon_permissive_struct_operand): New.
21420         (neon_struct_or_register_operand): Rename to...
21421         (neon_perm_struct_or_reg_operand): This. Adjust call to
21422         neon_vector_mem_operand.
21424 2013-06-18  Richard Biener  <rguenther@suse.de>
21426         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
21427         * lto-streamer.h: Include pointer-set.h.
21428         (struct lto_decl_slot): Remove.
21429         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
21430         Remove next_index entry.
21431         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
21432         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
21433         (lto_init_tree_ref_encoder): Adjust.
21434         (lto_destroy_tree_ref_encoder): Likewise.
21435         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
21436         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
21437         (lto_output_decl_index): Adjust.
21438         (lto_new_out_decl_state): Likewise.
21439         (lto_record_function_out_decl_state): Likewise.
21440         * lto-streamer-out.c (copy_function): Likewise.
21442 2013-06-18  Richard Biener  <rguenther@suse.de>
21444         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
21445         * cgraphunit.c: Include cfgloop.h.
21446         (init_lowered_empty_function): Initialize the loop tree.
21447         (assemble_thunk): Insert new BBs into loops.
21449 2013-06-18  Richard Biener  <rguenther@suse.de>
21451         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
21452         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
21453         the map from cache entry to cache index optional.
21454         (streamer_tree_cache_replace_tree): Adjust accordingly.
21455         (streamer_tree_cache_append): Likewise.
21456         (streamer_tree_cache_delete): Likewise.
21457         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
21458         streamer cache map from cache entry to cache index.
21459         * lto-streamer-out.c (create_output_block): Adjust.
21461 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
21463         * config/arm/arm.md (attribute "insn"): Move multiplication and
21464         division attributes to...
21465         (attribute "type"): ... here.  Remove mult.
21466         (attribute "mul32"): New attribute.
21467         (attribute "mul64"): Add umaal.
21468         (*arm_mulsi3): Update attributes.
21469         (*arm_mulsi3_v6): Likewise.
21470         (*thumb_mulsi3): Likewise.
21471         (*thumb_mulsi3_v6): Likewise.
21472         (*mulsi3_compare0): Likewise.
21473         (*mulsi3_compare0_v6): Likewise.
21474         (*mulsi_compare0_scratch): Likewise.
21475         (*mulsi_compare0_scratch_v6): Likewise.
21476         (*mulsi3addsi): Likewise.
21477         (*mulsi3addsi_v6): Likewise.
21478         (*mulsi3addsi_compare0): Likewise.
21479         (*mulsi3addsi_compare0_v6): Likewise.
21480         (*mulsi3addsi_compare0_scratch): Likewise.
21481         (*mulsi3addsi_compare0_scratch_v6): Likewise.
21482         (*mulsi3subsi): Likewise.
21483         (*mulsidi3adddi): Likewise.
21484         (*mulsi3addsi_v6): Likewise.
21485         (*mulsidi3adddi_v6): Likewise.
21486         (*mulsidi3_nov6): Likewise.
21487         (*mulsidi3_v6): Likewise.
21488         (*umulsidi3_nov6): Likewise.
21489         (*umulsidi3_v6): Likewise.
21490         (*umulsidi3adddi): Likewise.
21491         (*umulsidi3adddi_v6): Likewise.
21492         (*smulsi3_highpart_nov6): Likewise.
21493         (*smulsi3_highpart_v6): Likewise.
21494         (*umulsi3_highpart_nov6): Likewise.
21495         (*umulsi3_highpart_v6): Likewise.
21496         (mulhisi3): Likewise.
21497         (*mulhisi3tb): Likewise.
21498         (*mulhisi3bt): Likewise.
21499         (*mulhisi3tt): Likewise.
21500         (maddhisi4): Likewise.
21501         (*maddhisi4tb): Likewise.
21502         (*maddhisi4tt): Likewise.
21503         (maddhidi4): Likewise.
21504         (*maddhidi4tb): Likewise.
21505         (*maddhidi4tt): Likewise.
21506         (divsi3): Likewise.
21507         (udivsi3): Likewise.
21508         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
21509         (thumb2_mulsi_short_compare0): Likewise.
21510         (thumb2_mulsi_short_compare0_scratch): Likewise.
21511         * config/arm/arm1020e.md (1020mult1): Update attribute change.
21512         (1020mult2): Likewise.
21513         (1020mult3): Likewise.
21514         (1020mult4): Likewise.
21515         (1020mult5): Likewise.
21516         (1020mult6): Likewise.
21517         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
21518         change.
21519         (cortex_a15_mult64): Likewise.
21520         (cortex_a15_sdiv): Likewise.
21521         (cortex_a15_udiv): Likewise.
21522         * config/arm/arm1026ejs.md (mult1): Update attribute change.
21523         (mult2): Likewise.
21524         (mult3): Likewise.
21525         (mult4): Likewise.
21526         (mult5): Likewise.
21527         (mult6): Likewise.
21528         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
21529         (pj4_ir_div): Likewise.
21530         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
21531         (11_mult2): Likewise.
21532         (11_mult3): Likewise.
21533         (11_mult4): Likewise.
21534         (11_mult5): Likewise.
21535         (11_mult6): Likewise.
21536         (11_mult7): Likewise.
21537         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
21538         (cortex_a8_mla): Likewise.
21539         (cortex_a8_mull): Likewise.
21540         (cortex_a8_smulwy): Likewise.
21541         (cortex_a8_smlald): Likewise.
21542         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
21543         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
21544         (cortex_r4_mul_3): Likewise.
21545         (cortex_r4_mla_4): Likewise.
21546         (cortex_r4_mla_3): Likewise.
21547         (cortex_r4_smlald): Likewise.
21548         (cortex_r4_mull): Likewise.
21549         (cortex_r4_sdiv): Likewise.
21550         (cortex_r4_udiv): Likewise.
21551         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
21552         (cortex_a7_idiv): Likewise.
21553         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
21554         (9_mult2): Likewise.
21555         (9_mult3): Likewise.
21556         (9_mult4): Likewise.
21557         (9_mult5): Likewise.
21558         (9_mult6): Likewise.
21559         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
21560         (cortex_a53_sdiv): Likewise.
21561         (cortex_a53_udiv): Likewise.
21562         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
21563         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
21564         (mp626_mult2): Likewise.
21565         (mp626_mult3): Likewise.
21566         (mp626_mult4): Likewise.
21567         * config/arm/fa526.md (526_mult1): Update attribute change.
21568         (526_mult2): Likewise.
21569         * config/arm/arm-generic.md (mult): Update attribute change.
21570         (mult_ldsched_strongarm): Likewise.
21571         (mult_ldsched): Likewise.
21572         (multi_cycle): Likewise.
21573         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
21574         * config/arm/fa606te.md (606te_mult1): Update attribute change.
21575         (606te_mult2): Likewise.
21576         (606te_mult3): Likewise.
21577         (606te_mult4): Likewise.
21578         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
21579         (cortex_a9_mac16): Likewise.
21580         (cortex_a9_multiply): Likewise.
21581         (cortex_a9_mac): Likewise.
21582         (cortex_a9_multiply_long): Likewise.
21583         * config/arm/fa626te.md (626te_mult1): Update attribute change.
21584         (626te_mult2): Likewise.
21585         (626te_mult3): Likewise.
21586         (626te_mult4): Likewise.
21588 2013-06-18  Richard Biener  <rguenther@suse.de>
21590         PR lto/57334
21591         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
21593 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21595         PR target/57609
21596         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
21597         with next_active_insn.
21599 2013-06-18  Alan Modra  <amodra@gmail.com>
21601         * config/rs6000/rs6000.h (enum data_align): New.
21602         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
21603         (DATA_ABI_ALIGNMENT): Define.
21604         (CONSTANT_ALIGNMENT): Correct comment.
21605         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
21606         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
21608 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
21610         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
21611         ATTRIBUTE_UNUSED marking.
21613 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
21615         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
21616         alternative and update.
21617         (aarch64_dup_lanedi): Delete.
21618         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
21619         * config/aarch64/aarch64-simd-builtins.def: Update.
21621 2013-06-17  Richard Biener  <rguenther@suse.de>
21623         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
21624         (lto_input_scc): Declare.
21625         (lto_input_tree_1): Likewise.
21626         (struct lto_stats_d): Add num_tree_bodies_output and
21627         num_pickle_refs_output.
21628         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
21629         (lto_read_tree_1): Split out from ...
21630         (lto_read_tree): ... this.
21631         (lto_input_scc): New function.
21632         (lto_input_tree_1): Split out from ...
21633         (lto_input_tree): ... this.  Handle LTO_tree_scc.
21634         (lto_data_in_create): Create the streamer cache without hashes.
21635         * lto-streamer-out.c (create_output_block): Create the streamer
21636         cache with hashes when not doing WPA.
21637         (lto_write_tree_1): Split out from ...
21638         (lto_write_tree): ... this.
21639         (get_symbol_initial_value): New function.
21640         (lto_output_tree_1): Split out from ...
21641         (lto_output_tree): ... this.  Write trees as series of SCCs
21642         using a DFS walk via DFS_write_tree.
21643         (struct sccs, struct scc_entry): New types.
21644         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
21645         (DFS_write_tree_body): New function.
21646         (DFS_write_tree): Likewise.
21647         (hash_tree): Likewise.
21648         (scc_entry_compare): Likewise.
21649         (hash_scc): Likewise.
21650         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
21651         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
21652         TREE_CHAIN as regular reference.
21653         (streamer_read_integer_cst): Remove.
21654         (streamer_get_pickled_tree): Adjust.
21655         * tree-streamer-out.c (streamer_write_chain): Disable streaming
21656         of DECL_EXTERNALs in BLOCK_VARS for now.
21657         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
21658         reference.
21659         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
21660         Add hash value argument and record that if hashes are recorded
21661         in the cache.
21662         (streamer_tree_cache_insert_1): Adjust.
21663         (streamer_tree_cache_insert): Likewise.
21664         (streamer_tree_cache_insert_at): Rename to ...
21665         (streamer_tree_cache_replace_tree): ... this and adjust.
21666         (streamer_tree_cache_append): Adjust.
21667         (record_common_node): Likewise.
21668         (streamer_tree_cache_create): Add argument whether to
21669         record hash values together with trees.
21670         (streamer_tree_cache_delete): Adjust.
21671         * tree-streamer.h (struct streamer_tree_cache_d): Add
21672         vector of hashes.
21673         (streamer_read_integer_cst): Remove.
21674         (streamer_tree_cache_insert): Adjust.
21675         (streamer_tree_cache_append): Likewise.
21676         (streamer_tree_cache_insert_at): Rename to ...
21677         (streamer_tree_cache_replace_tree): ... this and adjust.
21678         (streamer_tree_cache_create): Add argument whether to record hashes.
21679         (streamer_tree_cache_get): Rename to ...
21680         (streamer_tree_cache_get_tree): ... this.
21681         (streamer_tree_cache_get_hash): New function.
21682         * tree.c (cache_integer_cst): New function.
21683         * tree.h (cache_integer_cst): Declare.
21684         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
21685         * lto-symtab.c (lto_varpool_replace_node): Only release
21686         DECL_INITIAL of non-prevailing decls.
21687         * varpool.c (varpool_remove_initializer): Do not release
21688         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
21690 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
21692         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
21693         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
21694         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
21695         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
21696         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
21697         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
21698         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
21699         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
21700         instead of TARGET_64BIT.
21701         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
21702         Require ISA_HAS_<D>DIV.
21704 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
21706         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
21707         (mips*-*-linux*): Move default with_llsc setting to where other
21708         defaults are set.
21709         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
21710         with_arch block.
21711         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
21712         Likewise.  Remove default with_tune setting.  Move default float
21713         setting to its own block.  Handle with_llsc in the same block as above.
21715 2013-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
21717         PR rtl-optimization/57425
21718         PR rtl-optimization/57569
21719         * alias.c (write_dependence_p): Add new parameters mem_mode,
21720         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
21721         Changed all callers.
21722         (canon_anti_dependence): New function.
21723         * cse.c (check_dependence): Use canon_anti_dependence.
21724         * cselib.c (cselib_invalidate_mem): Likewise.
21725         * rtl.h (canon_anti_dependence): Declare.
21727 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
21729         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
21730         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
21731         ".set mips3" for 64-bit targets.
21733 2013-06-15  Dehao Chen  <dehao@google.com>
21735         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
21736         * gimple-low.c (gimple_check_call_matching_types): Likewise.
21737         (gimple_check_call_args): Likewise.
21738         * value-prof.c (check_ic_target): Likewise.
21739         * ipa-inline.c (early_inliner): Likewise.
21740         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
21741         * cgraph.c (cgraph_create_edge_1): Likewise.
21742         (cgraph_make_edge_direct): Likewise.
21744 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
21746         PR target/57615
21747         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
21748         rs6000_output_move_128bit to handle emitting quad memory
21749         operations.  Set attribute length to 8 bytes.
21751 2013-06-14  Vidya Praveen  <vidyapraveen@arm.com>
21753         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
21754         New pattern.
21755         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
21756         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
21757         (aarch64_<su>mlsl<mode>): Likewise.
21759 2013-06-14  Mike Stump  <mikestump@comcast.net>
21761         * Makefile.in (TARGET_H): Add insn-codes.h.
21763 2013-06-14  Alan Modra  <amodra@gmail.com>
21765         PR middle-end/57134
21766         PR middle-end/57586
21767         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
21768         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
21769         bitfield expansion when EXPAND_MEMORY.
21770         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
21772 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
21774         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
21775         test for clearing quad memory on 32-bit later.
21777 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
21779         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
21780         (fold_negate_expr): Likewise.
21781         (fold_real_zero_addition_p): Handle vectors.
21782         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
21784 2013-06-14  Alan Modra  <amodra@gmail.com>
21786         * varasm.c (force_const_mem): Revert 2013-06-07 change.
21788 2013-06-13  Jan Hubicka  <jh@suse.cz>
21790         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
21791         Local comdats are not externally visible.
21792         * symtab.c (dump_symtab_base): Dump externally visible.
21793         (verify_symtab_base): Verify back links in the symtab hash.
21795 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
21797         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
21798         CONVERT_EXPR as equal nodes.
21800 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
21802         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
21804 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
21806         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
21807         Generalize to complex and vector.
21808         * tree.c (build_all_ones_cst): New function.
21809         * tree.h (build_all_ones_cst): Declare it.
21811 2013-06-13  Alan Modra  <amodra@gmail.com>
21813         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
21814         * config/rs6000/rs6000.md (signbittf2): New insn.
21815         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
21816         (abstf2_internal, cmptf_internal2): Likewise.
21817         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
21819 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
21820             Pat Haugen  <pthaugen@us.ibm.com>
21821             Peter Bergner  <bergner@vnet.ibm.com>
21823         * config/rs6000/rs6000.c (emit_load_locked): Add support for
21824         power8 byte, half-word, and quad-word atomic instructions.
21825         (emit_store_conditional): Likewise.
21826         (rs6000_expand_atomic_compare_and_swap): Likewise.
21827         (rs6000_expand_atomic_op): Likewise.
21829         * config/rs6000/sync.md (larx): Add new modes for power8.
21830         (stcx): Likewise.
21831         (AINT): New mode iterator to include TImode as well as normal
21832         integer modes on power8.
21833         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
21834         that VSX registers are not considered.  Use AINT mode iterator
21835         instead of INT1 to allow inclusion of quad word atomic operations
21836         on power8.
21837         (load_locked<mode>): Likewise.
21838         (store_conditional<mode>): Likewise.
21839         (atomic_compare_and_swap<mode>): Likewise.
21840         (atomic_exchange<mode>): Likewise.
21841         (atomic_nand<mode>): Likewise.
21842         (atomic_fetch_<fetchop_name><mode>): Likewise.
21843         (atomic_nand_fetch<mode>): Likewise.
21844         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
21845         each type.
21846         (ATOMIC): On power8, add QImode, HImode modes.
21847         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
21848         modes that promote to SImode.
21849         (load_lockedti): Convert TImode arguments to PTImode, so that we
21850         get a guaranteed even/odd register pair.
21851         (load_lockedpti): Likewise.
21852         (store_conditionalti): Likewise.
21853         (store_conditionalpti): Likewise.
21855         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
21856         atomic load/store instructions.
21857         (HSI): Likewise.
21859 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
21861         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
21862         loads.
21863         (insn_count): New attribute, with most cases extracted from...
21864         (length): ...here.  Redefine most cases in terms of insn_count.
21865         (single_insn): Delete.
21866         (can_delay): Use insn_count to check for single instructions.
21867         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
21868         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
21869         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
21870         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
21871         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
21872         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
21873         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
21874         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
21875         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
21876         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
21877         rather than "length".
21878         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
21879         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
21880         Use "insn_count" rather than "length".
21881         * config/mips/mips-dsp.md
21882         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
21883         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
21884         length attributes.
21886 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
21888         PR tree-optimization/57361
21889         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
21891 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
21893         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
21894         to split.
21895         (aarch64_simd_combine<mode>): New instruction expansion.
21896         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
21897         function prototype.
21898         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
21899         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
21901 2013-06-12  Jan Hubicka  <jh@suse.cz>
21903         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
21904         decl has when in streaming stage.
21905         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
21906         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
21908 2013-06-12  Roland Stigge  <stigge@antcom.de>
21910         PR target/57578
21911         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
21913 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
21915         PR tree-optimization/57537
21916         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
21917         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
21919 2013-06-12  Richard Biener  <rguenther@suse.de>
21921         * data-streamer.h (streamer_write_char_stream): CSE
21922         obs->current_pointer.
21923         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
21924         streamer_write_char_stream manually and optimize the resulting loop.
21925         (streamer_write_hwi_stream): Likewise.
21927 2013-06-12  Jan Hubicka  <jh@suse.cz>
21929         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
21930         * cgraph.h (varpool_create_empty_node): Declare.
21931         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
21932         duplicated nodes.
21933         * symtab.c (symtab_unregister_node): Be lax about missin entries
21934         in node hash.
21935         (symtab_get_node): Update comment.
21936         * varpool.c (varpool_create_empty_node): Break out from ...
21937         (varpool_node_for_decl): ... here.
21938         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
21940 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
21942         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
21943         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
21944         part.  Use straight-line flow at the end.
21945         <COMPONENT_REF>: Remove superfluous else.
21946         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
21948 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
21950         PR target/56564
21951         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
21952         target hook even for !TREE_PUBLIC decls.  If no resolution info
21953         is available, return false for common and external decls.
21955 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
21957         * config/rl78/constraints.md (U): New constraint.
21958         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
21959         valloc attribute.
21961 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
21963         PR target/57589
21964         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
21965         to allow returning address to AT_PLATFORM name.
21967 2013-06-11  Jan Hubicka  <jh@suse.cz>
21969         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
21970         * cgraph.h (symtab_node_base): Add weakref flag.
21971         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
21972         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
21973         (output_weakrefs): Use weakref flag.
21974         * fold-const.c (simple_operand_p): Handle WEAK.
21975         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
21976         * ipa.c (varpool_externally_visible_p): Drop weakref.
21977         (function_and_variable_visibility): Update comment; fix weakref
21978         sanity checks; do not clear DECL_WEAK on them.
21979         * lto-cgraph.c (lto_output_node): update.
21980         (lto_output_varpool_node): Update.
21981         (input_overwrite_node): Update.
21982         (input_node): Update.
21983         (input_varpool_node): Update.
21984         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
21985         (lto_symtab_merge_symbols): Add sanity check.
21986         (lto_symtab_prevailing_decl): Do not special case weakrefs.
21987         * passes.c (rest_of_decl_compilation): Set static flag, too.
21988         * symtab.c (dump_symtab_base): Dump weakref.
21989         (verify_symtab_base): Sanity check weakrefs.
21990         (symtab_make_decl_local): Remove duplicated code.
21991         (symtab_alias_ultimate_target): Simplify.
21992         * varpool.c (varpool_create_variable_alias): Set weakref flag.
21994 2013-06-11  Tom de Vries  <tom@codesourcery.com>
21996         * genautomata.c (gen_regexp_sequence): Handle els_num == -1.  Handle
21997         sequence_vect == NULL.
21999 2013-06-11  DJ Delorie  <dj@redhat.com>
22001         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
22002         (rl78_unwind_word_mode): New.
22004 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
22006         * final.c (debug_prefix_maps): Make static.
22008 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
22010         * function.c (initial_trampoline): Remove stray copy.
22012 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
22014         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
22016 2013-06-11  Martin Jambor  <mjambor@suse.cz>
22018         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
22019         within bounds at the beginning of the function.
22021 2013-06-11  Alan Modra  <amodra@gmail.com>
22023         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
22024         reporting.
22025         (get_named_section): Don't NULL !DECL_P decl.
22027 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
22029         * doc/invoke.texi (core-avx2): Document.
22030         (slm): Likewise.
22031         (atom): Updated with MOVBE.
22033 2013-06-11  Richard Biener  <rguenther@suse.de>
22035         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
22037 2013-06-11  Anton Blanchard  <anton@samba.org>
22039         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
22040         correct shift value in little-endian mode.
22042 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
22044         PR target/56564
22045         * varasm.c (get_variable_align): Move #endif to the right place.
22047 2013-06-10  Cary Coutant  <ccoutant@google.com>
22049         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
22050         for hash so that hash table traversal order is deterministic.
22052 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
22053             Pat Haugen  <pthaugen@us.ibm.com>
22054             Peter Bergner  <bergner@vnet.ibm.com>
22056         * config/rs6000/vector.md (GPR move splitter): Do not split moves
22057         of vectors in GPRS if they are direct moves or quad word load or
22058         store moves.
22060         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
22061         declaration.
22062         (direct_move_p): Likewise.
22063         (quad_load_store_p): Likewise.
22065         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
22066         classes into bins based on the physical register type.
22067         (reg_class_to_reg_type): Likewise.
22068         (IS_STD_REG_TYPE): Likewise.
22069         (IS_FP_VECT_REG_TYPE): Likewise.
22070         (reload_fpr_gpr): Arrays to determine what insn to use if we can
22071         use direct move instructions.
22072         (reload_gpr_vsx): Likewise.
22073         (reload_vsx_gpr): Likewise.
22074         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
22075         information that is a simplification of register classes.  Also
22076         precalculate direct move reload helpers.
22077         (direct_move_p): New function to return true if the operation can
22078         be done as a direct move instruciton.
22079         (quad_load_store_p): New function to return true if the operation
22080         is a quad memory operation.
22081         (rs6000_legitimize_address): If quad memory, only allow register
22082         indirect for TImode addresses.
22083         (rs6000_legitimate_address_p): Likewise.
22084         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
22085         (rs6000_reload_register_type): Likewise.
22086         (register_to_reg_type): Return register type.
22087         (rs6000_secondary_reload_simple_move): New helper function for
22088         secondary reload and secondary memory needed to identify anything
22089         that is a simple move, and does not need reloading.
22090         (rs6000_secondary_reload_direct_move): New helper function for
22091         secondary reload to identify cases that can be done with several
22092         instructions via the direct move instructions.
22093         (rs6000_secondary_reload_move): New helper function for secondary
22094         reload to identify moves between register types that can be done.
22095         (rs6000_secondary_reload): Add support for quad memory operations
22096         and for direct move.
22097         (rs6000_secondary_memory_needed): Likewise.
22098         (rs6000_debug_secondary_memory_needed): Change argument names.
22099         (rs6000_output_move_128bit): New function to return the move to
22100         use for 128-bit moves, including knowing about the various
22101         limitations of quad memory operations.
22103         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
22104         memory operations.  call rs6000_output_move_128bit for the actual
22105         instruciton(s) to generate.
22106         (vsx_movti_64bit): Likewise.
22108         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
22109         (UNSPEC_P8V_MTVSRWZ): Likewise.
22110         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
22111         (UNSPEC_P8V_MTVSRD): Likewise.
22112         (UNSPEC_P8V_XXPERMDI): Likewise.
22113         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
22114         (UNSPEC_FUSION_GPR): Likewise.
22115         (FMOVE128_GPR): New iterator for direct move.
22116         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
22117         (f32_sv): Likewise.
22118         (f32_dm): Likewise.
22119         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
22120         loads and direct move instructions.
22121         (zero_extendsidi2_lfiwzx): Likewise.
22122         (extendsidi2_lfiwax): Likewise.
22123         (extendsidi2_nocell): Likewise.
22124         (floatsi<mode>2_lfiwax): Likewise.
22125         (lfiwax): Likewise.
22126         (floatunssi<mode>2_lfiwzx): Likewise.
22127         (lfiwzx): Likewise.
22128         (fix_trunc<mode>_stfiwx): Likewise.
22129         (fixuns_trunc<mode>_stfiwx): Likewise.
22130         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
22131         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
22132         (parity<mode>2_cmpb): Set length/type attr.
22133         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
22134         for 'mr.' to fast_compare.
22135         (bpermd_<mode>): Change type attr to popcnt.
22136         (p8_fmrgow_<mode>): New insns for power8 direct move support.
22137         (p8_mtvsrwz_1): Likewise.
22138         (p8_mtvsrwz_2): Likewise.
22139         (reload_fpr_from_gpr<mode>): Likewise.
22140         (p8_mtvsrd_1): Likewise.
22141         (p8_mtvsrd_2): Likewise.
22142         (p8_xxpermdi_<mode>): Likewise.
22143         (reload_vsx_from_gpr<mode>): Likewise.
22144         (reload_vsx_from_gprsf): Likewise.
22145         (p8_mfvsrd_3_<mode>): LIkewise.
22146         (reload_gpr_from_vsx<mode>): Likewise.
22147         (reload_gpr_from_vsxsf): Likewise.
22148         (p8_mfvsrd_4_disf): Likewise.
22149         (multi-word GPR splits): Do not split direct moves or quad memory
22150         operations.
22152 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
22154         * tree-into-ssa.c (interesting_blocks): Make static.
22156 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
22158         PR target/56564
22159         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
22160         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
22161         Use DATA_ABI_ALIGNMENT for that case instead if defined.
22162         (get_variable_align): New function.
22163         (get_variable_section, emit_bss, emit_common,
22164         assemble_variable_contents, place_block_symbol): Use
22165         get_variable_align instead of DECL_ALIGN.
22166         (assemble_noswitch_variable): Add align argument, use it
22167         instead of DECL_ALIGN.
22168         (assemble_variable): Adjust caller.  Use get_variable_align
22169         instead of DECL_ALIGN.
22170         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
22171         caller.
22172         (DATA_ABI_ALIGNMENT): Define.
22173         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
22174         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
22175         opt is false, only return the psABI mandated alignment increase.
22176         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
22177         (DATA_ABI_ALIGNMENT): ... this.
22178         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
22179         (DATA_ABI_ALIGNMENT): ... this.
22180         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
22181         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
22182         (DATA_ABI_ALIGNMENT): ... this.
22183         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
22184         * doc/tm.texi: Regenerated.
22186 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
22188         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
22189         cmp_code to construct REG_EQUAL note.
22191 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
22193         PR target/57568
22194         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
22195         that operands[2] doesn't overlap with operands[0].
22197 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
22198             Jan Hubicka  <jh@suse.cz>
22200         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
22201         hack to mark symbols as used.
22203 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
22205         PR rtl-optimization/57559
22206         * lra-constraints.c (process_alt_operands): Don't discourage
22207         memory with known offset for offsetable memory constraint.
22208         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
22210 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
22212         * varasm.c (struct oc_local_state): Reorder fields.
22213         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
22214         and adjust accordingly.
22215         (output_constructor): Reorder initialization code and adjust call to
22216         output_constructor_bitfield.
22218 2013-06-07  Jan Hubicka  <jh@suse.cz>
22220         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
22222 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
22224         * tree-object-size.c (unknown): Make const.
22226 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22228         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
22229         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
22230         for last alternative in the cpu_facility attribute.
22232 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22234         PR target/56315
22235         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
22236         (xordi3): Change operand 2 constraint to arm_xordi_operand.
22237         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
22238         * config/arm/constraints.md (Dg): New constraint.
22239         * config/arm/neon.md (xordi3_neon): Remove.
22240         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
22241         * config/arm/predicates.md (arm_xordi_operand): New predicate.
22243 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22245         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
22246         Clean up alternatives.
22248 2013-06-07  Alan Modra  <amodra@gmail.com>
22250         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
22251         va_list_gpr_size.
22253 2013-06-07  Alan Modra  <amodra@gmail.com>
22255         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
22257 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22259         * config/arm/constraints.md (Df): New constraint.
22260         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
22261         Correct length attribute for last two alternatives.
22263 2013-06-07  Alan Modra  <amodra@gmail.com>
22265         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
22266         override user -mfp-in-toc.
22267         (offsettable_ok_by_alignment): Consider just the current access
22268         rather than the whole object, unless BLKmode.  Handle
22269         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
22270         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
22271         for -mcmodel=medium.
22272         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
22273         override user -mfp-in-toc or -msum-in-toc.  Default to
22274         -mno-fp-in-toc for -mcmodel=medium.
22276 2013-06-06  DJ Delorie  <dj@redhat.com>
22278         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
22279         TARGET_VALID_POINTER_MODE.
22281 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
22282             Pat Haugen  <pthaugen@us.ibm.com>
22283             Peter Bergner  <bergner@vnet.ibm.com>
22285         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22286         Document new power8 builtins.
22288         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
22289         condition code register, to allow 128-bit logical operations to be
22290         done in the VSX or GPR registers.
22291         (nor<mode>3): Use the canonical form for nor.
22292         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
22293         vclz*, and vpopcnt* vector instructions.
22294         (nand<mode>3): Likewise.
22295         (orc<mode>3): Likewise.
22296         (clz<mode>2): LIkewise.
22297         (popcount<mode>2): Likewise.
22299         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
22300         that only the GPRs are recognized.
22302         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22303         support for new power8 builtins.
22305         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
22306         builtin functions.
22307         (xscvdpspn): Likewise.
22308         (vclz): Likewise.
22309         (vclzb): Likewise.
22310         (vclzh): Likewise.
22311         (vclzw): Likewise.
22312         (vclzd): Likewise.
22313         (vpopcnt): Likewise.
22314         (vpopcntb): Likewise.
22315         (vpopcnth): Likewise.
22316         (vpopcntw): Likewise.
22317         (vpopcntd): Likewise.
22318         (vgbbd): Likewise.
22319         (vmrgew): Likewise.
22320         (vmrgow): Likewise.
22321         (eqv): Likewise.
22322         (eqv_v16qi3): Likewise.
22323         (eqv_v8hi3): Likewise.
22324         (eqv_v4si3): Likewise.
22325         (eqv_v2di3): Likewise.
22326         (eqv_v4sf3): Likewise.
22327         (eqv_v2df3): Likewise.
22328         (nand): Likewise.
22329         (nand_v16qi3): Likewise.
22330         (nand_v8hi3): Likewise.
22331         (nand_v4si3): Likewise.
22332         (nand_v2di3): Likewise.
22333         (nand_v4sf3): Likewise.
22334         (nand_v2df3): Likewise.
22335         (orc): Likewise.
22336         (orc_v16qi3): Likewise.
22337         (orc_v8hi3): Likewise.
22338         (orc_v4si3): Likewise.
22339         (orc_v2di3): Likewise.
22340         (orc_v4sf3): Likewise.
22341         (orc_v2df3): Likewise.
22343         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
22344         allow power8 quad mode in 64-bit.
22345         (rs6000_builtin_vectorized_function): Add support to vectorize
22346         ISA 2.07 count leading zeros, population count builtins.
22347         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
22348         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
22349         (builtin_function_type): Add vgbbd builtin function which takes an
22350         unsigned argument.
22351         (altivec_expand_vec_perm_const): Add support for new power8 merge
22352         instructions.
22354         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
22355         that does not include TImdoe for use with 32-bit.
22356         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
22357         instructions.
22358         (UNSPEC_VSX_CVDPSPN): Likewise.
22359         (vsx_xscvdpspn): Likewise.
22360         (vsx_xscvspdpn): Likewise.
22361         (vsx_xscvdpspn_scalar): Likewise.
22362         (vsx_xscvspdpn_directmove): Likewise.
22363         (vsx_and<mode>3): Split logical operations into 32-bit and
22364         64-bit. Add support to do logical operations on TImode as well as
22365         VSX vector types.  Allow logical operations to be done in either
22366         VSX registers or in general purpose registers in 64-bit mode.  Add
22367         splitters if GPRs were used. For AND, add clobber of CCmode to
22368         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
22369         encoding.
22370         (vsx_and<mode>3_32bit): Likewise.
22371         (vsx_and<mode>3_64bit): Likewise.
22372         (vsx_ior<mode>3): Likewise.
22373         (vsx_ior<mode>3_32bit): Likewise.
22374         (vsx_ior<mode>3_64bit): Likewise.
22375         (vsx_xor<mode>3): Likewise.
22376         (vsx_xor<mode>3_32bit): Likewise.
22377         (vsx_xor<mode>3_64bit): Likewise.
22378         (vsx_one_cmpl<mode>2): Likewise.
22379         (vsx_one_cmpl<mode>2_32bit): Likewise.
22380         (vsx_one_cmpl<mode>2_64bit): Likewise.
22381         (vsx_nor<mode>3): Likewise.
22382         (vsx_nor<mode>3_32bit): Likewise.
22383         (vsx_nor<mode>3_64bit): Likewise.
22384         (vsx_andc<mode>3): Likewise.
22385         (vsx_andc<mode>3_32bit): Likewise.
22386         (vsx_andc<mode>3_64bit): Likewise.
22387         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
22388         and xxlorc instructions.
22389         (vsx_eqv<mode>3_64bit): Likewise.
22390         (vsx_nand<mode>3_32bit): Likewise.
22391         (vsx_nand<mode>3_64bit): Likewise.
22392         (vsx_orc<mode>3_32bit): Likewise.
22393         (vsx_orc<mode>3_64bit): Likewise.
22395         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
22397         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
22398         instruction.
22399         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
22400         (p8_vmrgow): Likewise.
22401         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
22402         GPRs to be split under VSX.
22403         (p8v_clz<mode>2): Add power8 count leading zero support.
22404         (p8v_popcount<mode>2): Add power8 population count support.
22405         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
22406         support.
22408         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
22409         instruction.
22411         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
22412         builtin functions.
22413         (vec_nand): Likewise.
22414         (vec_vclz): Likewise.
22415         (vec_vclzb): Likewise.
22416         (vec_vclzd): Likewise.
22417         (vec_vclzh): Likewise.
22418         (vec_vclzw): Likewise.
22419         (vec_vgbbd): Likewise.
22420         (vec_vmrgew): Likewise.
22421         (vec_vmrgow): Likewise.
22422         (vec_vpopcnt): Likewise.
22423         (vec_vpopcntb): Likewise.
22424         (vec_vpopcntd): Likewise.
22425         (vec_vpopcnth): Likewise.
22426         (vec_vpopcntw): Likewise.
22428 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
22430         PR rtl-optimization/57468
22431         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
22432         spilled pseudos.
22434 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
22436         PR rtl-optimization/57459
22437         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
22438         type when setting live regs.
22440 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
22442         * config/s390/s390.opt (mlra): New option.
22443         * config/s390/s390.c (s390_decompose_address): Check displacement
22444         for all registers for LRA.
22445         (s390_secondary_reload): Don't used secondary reloads for LRA.
22446         (s390_lra_p): New function.
22447         (TARGET_LRA_P): Define.
22448         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
22449         of attribute cpu_facility to zarch for the last alternative.
22450         (*cmpmem_short): Ditto.
22452 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
22454         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
22455         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
22456         (arm_expand_prologue): Likewise.
22458 2013-06-06  Teresa Johnson  <tejohnson@google.com>
22460         PR c++/53743
22461         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
22462         as this is now done by redirect_edge_and_branch_force.
22463         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
22464         barriers, and fix interaction with splitting.
22465         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
22466         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
22467         reflect changes made in the routine.
22468         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
22469         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
22470         since this is called in cfglayout mode, and replace partition fixup
22471         with assert as that is now done by force_nonfallthru_and_redirect.
22472         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
22473         already be marked with region crossing note.
22474         (insert_section_boundary_note): Make non-static, gate on flag
22475         has_bb_partition, rewrite to also check for multiple partitions.
22476         (rest_of_handle_reorder_blocks): Remove call to
22477         insert_section_boundary_note, now done later during free_cfg.
22478         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
22479         * bb-reorder.h (insert_section_boundary_note): Declare.
22480         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
22481         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
22482         invoke insert_section_boundary_note.
22483         (try_redirect_by_replacing_jump): Remove unnecessary
22484         check for region crossing note.
22485         (fixup_partition_crossing): New function.
22486         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
22487         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
22488         in non-cfglayout mode.
22489         (force_nonfallthru_and_redirect): Fixup partition boundaries,
22490         remove old code that tried to do this. Emit barrier correctly
22491         when we are in cfglayout mode.
22492         (last_bb_in_partition): New function.
22493         (rtl_split_edge): Correctly fixup partition boundaries.
22494         (commit_one_edge_insertion): Remove old code that tried to
22495         fixup region crossing edge since this is now handled in
22496         split_block, and set up insertion point correctly since
22497         block may now end in a jump.
22498         (verify_hot_cold_block_grouping): Guard against checking when not in
22499         linearized RTL mode.
22500         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
22501         notes.
22502         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
22503         rtl_verify_flow_info, so not called in cfglayout mode.
22504         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
22505         (fixup_reorder_chain): Remove old code that attempted to fixup region
22506         crossing note as this is now handled in force_nonfallthru_and_redirect.
22507         (duplicate_insn_chain): Don't duplicate switch section notes.
22508         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
22509         note.
22510         * basic-block.h (emit_barrier_after_bb): Declare.
22512 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22514         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
22515         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
22516         arm_usatsihi): Adjust alternatives for arm_restrict_it.
22518 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22520         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
22521         where appropriate.
22522         * config/arm/ldmstm.md: Regenerate.
22524 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22526         * config/arm/sync.md (atomic_loaddi_1):
22527         Disable predication for arm_restrict_it.
22528         (arm_load_exclusive<mode>): Likewise.
22529         (arm_load_exclusivesi): Likewise.
22530         (arm_load_exclusivedi): Likewise.
22531         (arm_load_acquire_exclusive<mode>): Likewise.
22532         (arm_load_acquire_exclusivesi): Likewise.
22533         (arm_load_acquire_exclusivedi): Likewise.
22534         (arm_store_exclusive<mode>): Likewise.
22535         (arm_store_exclusive<mode>): Likewise.
22536         (arm_store_release_exclusivedi): Likewise.
22537         (arm_store_release_exclusive<mode>): Likewise.
22539 2013-06-06  Richard Biener  <rguenther@suse.de>
22541         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
22542         after LTO_null.
22543         (lto_tag_is_tree_code_p): Adjust.
22544         (lto_tag_is_gimple_code_p): Likewise.
22545         (lto_gimple_code_to_tag): Likewise.
22546         (lto_tag_to_gimple_code): Likewise.
22547         (lto_tree_code_to_tag): Likewise.
22548         (lto_tag_to_tree_code): Likewise.
22549         * data-streamer.h (streamer_write_hwi_in_range): Use
22550         uhwi streaming to stream the normalized range.
22551         (streamer_read_hwi_in_range): Likewise.
22553 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22555         * config/arm/arm.md (enabled_for_depr_it): New attribute.
22556         (predicable_short_it): Likewise.
22557         (predicated): Likewise.
22558         (enabled): Handle above.
22559         (define_cond_exec): Set predicated attribute to yes.
22561 2013-06-05  Mike Stump  <mikestump@comcast.net>
22563         * gdbinit.in (__FUNCTION__): Add.
22565 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
22567         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
22568         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
22570 2013-06-05  Jan Hubicka  <jh@suse.cz>
22572         * varasm.c (mark_decl_referenced): Revert the removal until targets
22573         are fixed.
22575 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
22577         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
22578         instead of mark_decl_referenced.
22580 2013-06-05  Jan Hubicka  <jh@suse.cz>
22582         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
22583         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
22584         and symtab_used_from_object_file_p.
22585         (cgraph_make_node_local_1): Clear forced_by_abi.
22586         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
22587         * cgraph.h (symtab_node_base): Add forced_by_abi.
22588         (decide_is_variable_needed): Remove.
22589         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
22590         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
22591         (decide_is_symbol_needed): ... this one; handle symbols in general;
22592         always analyze virtuals; honnor forced_by_abi.
22593         (cgraph_finalize_function): Update.
22594         (varpool_finalize_decl): Update.
22595         (symbol_defined_and_needed): Remove.
22596         (analyze_functions): Update.
22597         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
22598         output_refs, input_overwrite_node): Handle forced_by_abi.
22599         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
22600         (address_taken_from_non_vtable_p): ... this one.
22601         (comdat_can_be_unshared_p_1): New function.
22602         (cgraph_comdat_can_be_unshared_p): Rename to ...
22603         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
22604         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
22605         (function_and_variable_visibility): Clear forced_by_abi as needed.
22606         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
22607         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
22608         * symtab.c (dump_symtab_base): Dump forced_by_abi.
22609         * varpool.c (decide_is_variable_needed): Remove.
22611 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22613         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
22614         (arm_option_override): Override arm_restrict_it where appropriate.
22615         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
22616         * config/arm/arm.opt (mrestrict-it): New command-line option.
22617         * doc/invoke.texi: Document -mrestrict-it.
22619 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
22621         * tsan.c (tsan_atomic_table): Make const.
22623 2013-06-05  Richard Biener  <rguenther@suse.de>
22625         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
22626         index associated with the tree we are supposed to replace.
22627         * tree-streamer-out.c (pack_ts_base_value_fields): Output
22628         TREE_ASM_WRITTEN as zero for everything but SSA names.
22630 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
22632         * tree-ssa-structalias.c (call_stmt_vars): Make static.
22634 2013-06-04  Jan Hubicka  <jh@suse.cz>
22636         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
22637         (input_node, input_varpool_node): Handle correctly external same
22638         body aliases.
22639         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
22640         nodes at ltrans stage.
22642 2013-06-04  Jan Hubicka  <jh@suse.cz>
22644         * ipa-inline.c (update_caller_keys): Fix availability test.
22645         (update_callee_keys): Likewise.
22646         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
22647         to follow ELF standard.
22649 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
22651         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
22652         (mips64r5900el-*-elf*): New configurations.
22653         * config/mips/mips-cpus.def (r5900): New processor.
22654         * config/mips/mips-tables.opt: Regenerate.
22655         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
22656         (mips_issue_rate): Handle PROCESSOR_R5900.
22657         (mips_reorg_process_insns): Force reorder mode for the R5900.
22658         * config/mips/mips.h (TARGET_MIPS5900): Define.
22659         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
22660         TARGET_MIPS5900.
22661         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
22662         TARGET_MIPS5900.
22663         * config/mips/mips.md (processor): Add r5900.
22664         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
22666 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
22668         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
22669         into function to generate MOVI instruction.
22670         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
22671         (aarch64_preferred_simd_mode): Turn into wrapper.
22672         (aarch64_output_scalar_simd_mov_immediate): New function.
22673         * config/aarch64/aarch64-protos.h: Add prototype for above.
22675 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
22677         * config/aarch64/aarch64.c (simd_immediate_info): Remove
22678         element_char member.
22679         (sizetochar): Return signed char.
22680         (aarch64_simd_valid_immediate): Remove elchar and other
22681         unnecessary variables.
22682         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
22683         Calculate element_char as required.
22684         * config/aarch64/aarch64-protos.h: Update and move prototype
22685         for aarch64_output_simd_mov_immediate.
22686         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
22687         Update arguments.
22689 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
22691         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
22692         information completed by aarch64_simd_valid_immediate.
22693         (aarch64_legitimate_constant_p): Update arguments.
22694         (aarch64_simd_valid_immediate): Work with struct rather than many
22695         pointers.
22696         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
22697         (aarch64_simd_make_constant): Update arguments.
22698         (aarch64_output_simd_mov_immediate): Work with struct rather than
22699         many pointers.  Output immediate directly rather than as operand.
22700         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
22701         Update prototype.
22702         * config/aarch64/constraints.md (Dn): Update arguments.
22704 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
22706         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
22707         longer static.
22708         (aarch64_simd_immediate_valid_for_move): Remove.
22709         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
22710         (aarch64_simd_make_constant): Update call.
22711         (aarch64_output_simd_mov_immediate): Update call.
22712         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
22713         Add prototype.
22714         * config/aarch64/constraints.md (Dn): Update call.
22716 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
22718         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
22719         return type to bool for prototype.
22720         (aarch64_legitimate_constant_p): Check for true instead of not -1.
22721         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
22722         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
22724 2013-06-04  Catherine Moore  <clm@codesourcery.com>
22726         * config/mips/mips.opt (meva): New.
22727         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
22728         (ASM_SPEC): Handle -meva.
22729         * doc/invoke.texi (meva):  Document.
22731 2013-06-04  Alan Modra  <amodra@gmail.com>
22733         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
22734         constant output.
22736 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22738         * rtl.def: Add extra fourth optional field to define_cond_exec.
22739         * gensupport.c (process_one_cond_exec): Process attributes from
22740         define_cond_exec.
22741         * doc/md.texi: Document fourth field in define_cond_exec.
22743 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
22745         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
22746         out the processing order as in store_bit_field_1.
22748 2013-06-04  Jan Hubicka  <jh@suse.cz>
22750         PR middle-end/57500
22751         * cgraphunit.c (cgraph_process_same_body_aliases): Create
22752         non-VAR_DECL node if it does not exist yet.
22754 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
22756         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
22757         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
22758         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
22759         target_cpu_default setting.
22761 2013-06-03  Teresa Johnson  <tejohnson@google.com>
22763         * dumpfile.c (opt_info_switch_p): Change -fopt-info
22764         default to -fopt-info=optimized instead of all.
22765         * doc/invoke.texi: Ditto.
22766         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
22767         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
22768         (execute_vect_slp): Emit BB vectorization success under
22769         MSG_OPTIMIZED_LOCATIONS.
22770         * tree-vect-slp.c (vect_slp_transform_bb): Change
22771         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
22772         * tree-vect-loop.c (vect_transform_loop): Ditto.
22774 2013-06-03  Jason Merrill  <jason@redhat.com>
22776         PR c++/57415
22777         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
22778         Use TARGET_EXPR for C++.
22780 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
22782         PR rtl-optimization/57268
22783         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
22784         if DEBUG_INSN_P (insn).
22786         Reapply
22787         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
22789         PR rtl-optimization/57268
22790         * sched-deps.c (sched_analyze_2): Flush dependence lists if
22791         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
22793 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
22795         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
22796         (ix86_avoid_lea_for_addr): Likewise.
22797         (exact_dependency_1): Likewise.
22798         (ix86_adjust_cost): Likewise.
22799         (swap_top_of_ready_list): Fix formatting and !reload_completed check
22800         removed.
22801         (do_reorder_for_imul): Fix typo, formatting and
22802         !reload_completed check removed.
22803         (ix86_sched_reorder): Fix typo and formatting.
22804         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
22805         list.
22807 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
22809         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
22811 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
22813         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
22814         <STRING_CST>: Likewise.
22815         <VECTOR_CST>: Likewise.
22817 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
22818             Mikael Morin  <mikael@gcc.gnu.org>
22820         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
22821         * config.in: Regenerated.
22822         * configure: Regenerated.
22824 2013-06-01  Jan Hubicka  <jh@suse.cz>
22826         PR middle-end/57366
22827         * cgraphunit.c (compile): When weakref is not supported,
22828         set up transparent aliases before final output pass.
22829         * varasm.c (assemble_alias): Do not try to do it here.
22831 2013-06-01  Jan Hubicka  <jh@suse.cz>
22833         PR middle-end/57467
22834         * passes.c (for_per_function): Skip unanalyzed functions.
22836 2013-06-01  Jan Hubicka  <jh@suse.cz>
22838         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
22839         (lto_symtab_merge_symbols_1): ... this one.
22840         (lto_symtab_merge_cgraph_nodes): Rename to ...
22841         (lto_symtab_merge_symbols): ... this one; simplify.
22842         * cgraph.c (same_body_aliases_done): Rename to ...
22843         (cpp_implicit_aliases_done): ... this one.
22844         (cgraph_create_function_alias): Update.
22845         (cgraph_same_body_alias): Update.
22846         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
22847         (verify_edge_corresponds_to_fndecl): Simplify.
22848         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
22849         (cgraph_node): Remove same_body_alias.
22850         (varpool_node): Remove alias_of and extra_name_alias.
22851         (same_body_aliases_done): Rename to ..
22852         (cpp_implicit_aliases_done): ... this one.
22853         (symtab_alias_ultimate_target): Add default parameter.
22854         (symtab_resolve_alias): New function.
22855         (fixup_same_cpp_alias_visibility): Declare.
22856         (cgraph_function_node): Add default parameter.
22857         (cgraph_node_asm_name): Likewise.
22858         (cgraph_function_or_thunk_node): Add default parameter; do
22859         not ICE when it is NULL.
22860         (varpool_variable_node): Likewise.
22861         * tree-emutls.c (create_emultls_var): Update.
22862         (ipa_lower_emutls): Update.
22863         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
22864         (cgraph_reset_node): Reset alias info.
22865         (cgraph_finalize_function): Update.
22866         (fixup_same_cpp_alias_visibility): Move to symtab.c.
22867         (analyze_function): Simplify.
22868         (cgraph_process_same_body_aliases): Simplify.
22869         (analyze_functions): Fixup same body aliases.
22870         (handle_alias_pairs): Simplify.
22871         (assemble_thunk): Update.
22872         (assemble_thunks_and_aliases): Update.
22873         (output_weakrefs): Rewrite.
22874         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
22875         (lto_output_varpool_node): Likewise.
22876         (compute_ltrans_boundary): Remve assert.
22877         (get_alias_symbol): New functoin.
22878         (input_node): Rewrite alias handling.
22879         (input_varpool_node): Likewise.
22880         * ipa-pure-const.c (propagate_pure_const): Fix formating.
22881         * ipa.c (process_references): Handle weakrefs correctly.
22882         (symtab_remove_unreachable_nodes): Likewise.
22883         * trans-mem.c (get_cg_data): Update.
22884         (ipa_tm_create_version_alias): Update.
22885         (ipa_tm_execute): Update.
22886         * symtab.c (dump_symtab_base): Dump aliases.
22887         (verify_symtab_base): Verify aliases.
22888         (symtab_node_availability): New function.
22889         (symtab_alias_ultimate_target): Simplify.
22890         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
22891         handle all the fixup cases.
22892         (symtab_resolve_alias): New function.
22893         * passes.c (ipa_write_summaries): Handle weakrefs.
22894         * varpool.c (varpool_analyze_node): Simplify.
22895         (assemble_aliases): Update.
22896         (varpool_create_variable_alias): Simplify.
22897         (varpool_extra_name_alias): Simplify.
22898         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
22899         (lto_symtab_merge_symbols): ... this one.
22901 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
22903         Revert
22904         PR rtl-optimization/57268
22905         * sched-deps.c (sched_analyze_2): Flush dependence lists if
22906         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
22908 2013-06-01  Tobias Burnus  <burnus@net-b.de>
22910         Partially reverted:
22911         2013-05-31  Tobias Burnus  <burnus@net-b.de>
22913         PR middle-end/57073
22914         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
22915         further up.
22917 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
22919         PR rtl-optimization/57268
22920         * sched-deps.c (sched_analyze_2): Flush dependence lists if
22921         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
22923 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
22925         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
22926         unordered comparison operators when -fno-trapping-math is in effect
22927         on the e500.
22928         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
22929         and implement unordered comparison operators properly on the e500.
22931 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
22933         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
22934         for constant scalar integers.
22935         (simplify_relational_operation_1): Likewise.
22937 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
22939         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
22940         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
22941         Fix comment.
22943 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
22944             Igor Zamyatin  <igor.zamyatin@intel.com>
22946         Silvermont (SLM) architecture performance tuning.
22947         * config/i386/i386.h (enum ix86_tune_indices): Add
22948         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
22949         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
22951         * config/i386/i386.c (initial_ix86_tune_features)
22952         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
22953         (ix86_lea_outperforms): Handle Silvermont tuning.
22954         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
22955         call.
22956         (ix86_use_lea_for_mov): Likewise.
22957         (ix86_avoid_lea_for_addr): Likewise.
22958         (ix86_lea_for_add_ok): Likewise.
22959         (exact_dependency_1): New function.
22960         (exact_store_load_dependency): Likewise.
22961         (ix86_adjust_cost): Handle Silvermont tuning.
22962         (do_reoder_for_imul): Likewise.
22963         (swap_top_of_ready_list): New function.
22964         (ix86_sched_reorder): Changed to handle Silvermont tuning.
22966         * config/i386/i386.md (peepholes that split memory operand in fp
22967         converts): New.
22969 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22971         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
22972         Remove un-necessary braces.
22974 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22976         * config/aarch64/aarch64.c (aarch64_classify_symbol):
22977         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
22979 2013-05-31  Tobias Burnus  <burnus@net-b.de>
22981         PR middle-end/57073
22982         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
22984 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22986         PR target/56315
22987         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
22988         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
22989         * config/arm/neon.md (iordi3_neon): Remove.
22990         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
22991         * config/arm/predicates.md (imm_for_neon_logic_operand):
22992         Move to earlier in the file.
22993         (neon_logic_op2): Likewise.
22994         (arm_iordi_operand_neon): New predicate.
22996 2013-05-31  Richard Biener  <rguenther@suse.de>
22998         PR tree-optimization/57478
22999         PR tree-optimization/57453
23000         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
23001         are life as well.
23003 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
23005         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
23006         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
23008 2013-05-30  Tobias Burnus  <burnus@net-b.de>
23009             Thomas Koenig  <tkoenig@gcc.gnu.org>
23011         PR middle-end/57073
23012         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
23013         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
23015 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
23017         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
23019 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
23021         * target.def (register_usage_leveling_p): New hook.
23022         * targhooks.c (default_register_usage_leveling_p): New.
23023         * targhooks.h (default_register_usage_leveling_p): New prototype.
23024         * lra-assigns.c (register_usage_leveling_p): Use the hook.
23025         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
23026         * doc/tm.texi: Update.
23027         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
23029 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
23031         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
23032         (*insv_reg<mode>): New define_insn.
23034 2013-05-30  Joern Rennecke  <joern.rennecke@embecosm.com>
23036         PR rtl-optimization/57439
23037         * postreload.c (move2add_valid_value_p): Check that we have
23038         a zero subreg_regno_offset when accessing the register in
23039         the requested mode.
23041 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
23042             Igor Zamyatin  <igor.zamyatin@intel.com>
23044         Silvermont (SLM) architecture pipeline model, tuning and
23045         insn selection.
23046         * config.gcc: Add slm config options and target.
23048         * config/i386/slm.md: New.
23050         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
23052         * config/i386/i386-c.c (ix86_target_macros_internal):  New case
23053         PROCESSOR_SLM.
23054         (ix86_target_macros_internal): Likewise.
23056         * config/i386/i386.c (slm_cost): New cost.
23057         (m_SLM): New macro flag.
23058         (initial_ix86_tune_features): Set m_SLM.
23059         (x86_accumulate_outgoing_args): Likewise.
23060         (x86_arch_always_fancy_math_387): Likewise.
23061         (processor_target_table): Add slm cost.
23062         (cpu_names): Add slm cpu name.
23063         (x86_option_override_internal): Set SLM ISA.
23064         (ix86_issue_rate): New case PROCESSOR_SLM.
23065         (ia32_multipass_dfa_lookahead): Likewise.
23066         (fold_builtin_cpu): Add slm.
23068         * config/i386/i386.h (TARGET_SLM): New target macro.
23069         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
23070         (processor_type): Add PROCESSOR_SLM.
23072         * config/i386/i386.md (cpu): Add new value "slm".
23073         (slm.md): Include slm.md.
23075 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
23076             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23078         * config/arm/arm-protos.h: Add and update function protos.
23079         * config/arm/arm.c (use_simple_return_p): New added.
23080         (thumb2_expand_return): Check simple_return flag.
23081         * config/arm/arm.md: Add simple_return and conditional simple_return.
23082         * config/arm/iterators.md: Add iterator for return and simple_return.
23084 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23086         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
23087         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
23088         (arm_emit_vfp_multi_reg_pop): Likewise.
23089         (thumb2_emit_ldrd_pop): Likewise.
23090         (arm_expand_epilogue): Add misc REG_CFA notes.
23091         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
23093 2013-05-29  Lawrence Crowl  <crowl@google.com>
23095         * config/arm/t-arm: Update for below.
23097         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
23098         Change type to hash_table.  Update dependent calls and types.
23100         * config/i386/t-cygming: Update for below.
23102         * config/i386/t-interix: Update for below.
23104         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
23105         Change type to hash_table.  Update dependent calls and types.
23106         (i386_find_on_wrapper_list::wrappers): Likewise.
23108         * config/ia64/t-ia64: Update for below.
23110         * config/ia64/ia64.c (bundle_state_table):
23111         Change type to hash_table.  Update dependent calls and types.
23113         * config/mips/mips.c (mips_reorg_process_insns::htab):
23114         Change type to hash_table.  Update dependent calls and types.
23116         * config/sol2.c (solaris_comdat_htab):
23117         Change type to hash_table.  Update dependent calls and types.
23119         * config/t-sol2: Update for above.
23121 2013-05-29  Teresa Johnson  <tejohnson@google.com>
23123         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
23124         functions are not yet marked as defined.
23126 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
23127             Pat Haugen  <pthaugen@us.ibm.com>
23128             Peter Bergner  <bergner@vnet.ibm.com>
23130         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
23131         instructions.
23132         (VEC_A): Likewise.
23133         (VEC_C): Likewise.
23134         (vrotl<mode>3): Likewise.
23135         (vashl<mode>3): Likewise.
23136         (vlshr<mode>3): Likewise.
23137         (vashr<mode>3): Likewise.
23139         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23140         support for power8 V2DI builtins.
23142         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
23143         power8 V2DI builtins.
23144         (vupkhsw): Likewise.
23145         (vupklsw): Likewise.
23146         (vaddudm): Likewise.
23147         (vminsd): Likewise.
23148         (vmaxsd): Likewise.
23149         (vminud): Likewise.
23150         (vmaxud): Likewise.
23151         (vpkudum): Likewise.
23152         (vpksdss): Likewise.
23153         (vpkudus): Likewise.
23154         (vpksdus): Likewise.
23155         (vrld): Likewise.
23156         (vsld): Likewise.
23157         (vsrd): Likewise.
23158         (vsrad): Likewise.
23159         (vsubudm): Likewise.
23160         (vcmpequd): Likewise.
23161         (vcmpgtsd): Likewise.
23162         (vcmpgtud): Likewise.
23163         (vcmpequd_p): Likewise.
23164         (vcmpgtsd_p): Likewise.
23165         (vcmpgtud_p): Likewise.
23166         (vupkhsw): Likewise.
23167         (vupklsw): Likewise.
23168         (vaddudm): Likewise.
23169         (vmaxsd): Likewise.
23170         (vmaxud): Likewise.
23171         (vminsd): Likewise.
23172         (vminud): Likewise.
23173         (vpksdss): Likewise.
23174         (vpksdus): Likewise.
23175         (vpkudum): Likewise.
23176         (vpkudus): Likewise.
23177         (vrld): Likewise.
23178         (vsld): Likewise.
23179         (vsrad): Likewise.
23180         (vsrd): Likewise.
23181         (vsubudm): Likewise.
23183         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
23184         support for power8 V2DI instructions.
23186         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
23187         power8 V2DI instructions.  Combine pack and unpack insns to use an
23188         iterator for each mode.  Check whether a particular mode supports
23189         Altivec instructions instead of just checking TARGET_ALTIVEC.
23190         (UNSPEC_VPKUWUM): Likewise.
23191         (UNSPEC_VPKSHSS): Likewise.
23192         (UNSPEC_VPKSWSS): Likewise.
23193         (UNSPEC_VPKUHUS): Likewise.
23194         (UNSPEC_VPKSHUS): Likewise.
23195         (UNSPEC_VPKUWUS): Likewise.
23196         (UNSPEC_VPKSWUS): Likewise.
23197         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
23198         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
23199         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
23200         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
23201         (UNSPEC_VUPKHSB): Likewise.
23202         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
23203         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
23204         (UNSPEC_VUPKHSH): Likewise.
23205         (UNSPEC_VUPKLSB): Likewise.
23206         (UNSPEC_VUPKLSH): Likewise.
23207         (VI2): Likewise.
23208         (VI_char): Likewise.
23209         (VI_scalar): Likewise.
23210         (VI_unit): Likewise.
23211         (VP): Likewise.
23212         (VP_small): Likewise.
23213         (VP_small_lc): Likewise.
23214         (VU_char): Likewise.
23215         (add<mode>3): Likewise.
23216         (altivec_vaddcuw): Likewise.
23217         (altivec_vaddu<VI_char>s): Likewise.
23218         (altivec_vadds<VI_char>s): Likewise.
23219         (sub<mode>3): Likewise.
23220         (altivec_vsubcuw): Likewise.
23221         (altivec_vsubu<VI_char>s): Likewise.
23222         (altivec_vsubs<VI_char>s): Likewise.
23223         (altivec_vavgs<VI_char>): Likewise.
23224         (altivec_vcmpbfp): Likewise.
23225         (altivec_eq<mode>): Likewise.
23226         (altivec_gt<mode>): Likewise.
23227         (altivec_gtu<mode>): Likewise.
23228         (umax<mode>3): Likewise.
23229         (smax<mode>3): Likewise.
23230         (umin<mode>3): Likewise.
23231         (smin<mode>3): Likewise.
23232         (altivec_vpkuhum): Likewise.
23233         (altivec_vpkuwum): Likewise.
23234         (altivec_vpkshss): Likewise.
23235         (altivec_vpkswss): Likewise.
23236         (altivec_vpkuhus): Likewise.
23237         (altivec_vpkshus): Likewise.
23238         (altivec_vpkuwus): Likewise.
23239         (altivec_vpkswus): Likewise.
23240         (altivec_vpks<VI_char>ss): Likewise.
23241         (altivec_vpks<VI_char>us): Likewise.
23242         (altivec_vpku<VI_char>us): Likewise.
23243         (altivec_vpku<VI_char>um): Likewise.
23244         (altivec_vrl<VI_char>): Likewise.
23245         (altivec_vsl<VI_char>): Likewise.
23246         (altivec_vsr<VI_char>): Likewise.
23247         (altivec_vsra<VI_char>): Likewise.
23248         (altivec_vsldoi_<mode>): Likewise.
23249         (altivec_vupkhsb): Likewise.
23250         (altivec_vupkhs<VU_char>): Likewise.
23251         (altivec_vupkls<VU_char>): Likewise.
23252         (altivec_vupkhsh): Likewise.
23253         (altivec_vupklsb): Likewise.
23254         (altivec_vupklsh): Likewise.
23255         (altivec_vcmpequ<VI_char>_p): Likewise.
23256         (altivec_vcmpgts<VI_char>_p): Likewise.
23257         (altivec_vcmpgtu<VI_char>_p): Likewise.
23258         (abs<mode>2): Likewise.
23259         (vec_unpacks_hi_v16qi): Likewise.
23260         (vec_unpacks_hi_v8hi): Likewise.
23261         (vec_unpacks_lo_v16qi): Likewise.
23262         (vec_unpacks_hi_<VP_small_lc>): Likewise.
23263         (vec_unpacks_lo_v8hi): Likewise.
23264         (vec_unpacks_lo_<VP_small_lc>): Likewise.
23265         (vec_pack_trunc_v8h): Likewise.
23266         (vec_pack_trunc_v4si): Likewise.
23267         (vec_pack_trunc_<mode>): Likewise.
23269         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
23270         V2DI builtins.
23271         (vec_vmaxsd): Likewise.
23272         (vec_vmaxud): Likewise.
23273         (vec_vminsd): Likewise.
23274         (vec_vminud): Likewise.
23275         (vec_vpksdss): Likewise.
23276         (vec_vpksdus): Likewise.
23277         (vec_vpkudum): Likewise.
23278         (vec_vpkudus): Likewise.
23279         (vec_vrld): Likewise.
23280         (vec_vsld): Likewise.
23281         (vec_vsrad): Likewise.
23282         (vec_vsrd): Likewise.
23283         (vec_vsubudm): Likewise.
23284         (vec_vupkhsw): Likewise.
23285         (vec_vupklsw): Likewise.
23287 2013-05-29  Jan Hubicka  <jh@suse.cz>
23289         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
23290         flags; reorder rest of fields in more consistent way.
23291         (varpool_node): Remove analyzed, finalized and alias.
23292         (cgraph_ndoe): Likewise.
23293         (symtab_alias_ultimate_target): New function.
23294         (cgraph_function_node): Move offline.
23295         (cgraph_reset_node): Declare.
23296         (cgraph_comdat_can_be_unshared_p): Remove.
23297         (varpool_remove_initializer): Declare.
23298         (varpool_first_defined_variable, varpool_next_defined_variable
23299         cgraph_first_defined_function, cgraph_next_defined_function): Update.
23300         (cgraph_function_with_gimple_body_p): Update.
23301         (varpool_all_refs_explicit_p): Update.
23302         (symtab_alias_target): New function.
23303         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
23304         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
23305         (cgraph_function_or_thunk_node): Simplify using
23306         symtab_alias_ultimate_target.
23307         (varpool_variable_node): Likewise.
23308         * cgraph.c (cgraph_create_function_alias): Update.
23309         (cgraph_add_thunk): Update.
23310         (cgraph_remove_node): Update.
23311         (dump_cgraph_node): Do not dump removed flags.
23312         (cgraph_function_body_availability): Update.
23313         (cgraph_propagate_frequency): Update.
23314         (verify_cgraph_node): Check sanity of local flag.
23315         (cgraph_function_node): Move here from cgraph.h; revamp for
23316         cgraph_function_or_thunk_node.
23317         * lto-symtab.c (lto_varpool_replace_node): Update.
23318         (lto_symtab_resolve_can_prevail_p): Update.
23319         (lto_symtab_merge_cgraph_nodes): Update.
23320         * ipa-cp.c (determine_versionability, initialize_node_lattices,
23321         propagate_constants_accross_call, devirtualization_time_bonus,
23322         ipcp_propagate_stage): Update.
23323         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
23324         * ipa-inline-transform.c (clone_inlined_nodes,
23325         preserve_function_body_p): Update.
23326         * ipa-reference.c (propagate): Update.
23327         (write_node_summary_p): Update.
23328         * toplev.c (wrapup_global_declaration_2): Update.
23329         * cgraphunit.c (cgraph_analyze_function): Rename to ...
23330         (analyze_function) ... this one.
23331         (cgraph_process_new_functions): Update.
23332         (cgraph_reset_node): Export.
23333         (cgraph_finalize_function): Update.
23334         (cgraph_add_new_function): Update.
23335         (process_function_and_variable_attributes): Update.
23336         (varpool_finalize_decl): Update.
23337         (symbol_finalized): Remove.
23338         (symbol_finalized_and_needed): Rename to ...
23339         (symbol_defined_and_needed): ... update.
23340         (cgraph_analyze_functions): Update.
23341         (handle_alias_pairs): Update.
23342         (mark_functions_to_output): Update.
23343         (assemble_thunk): Update.
23344         (output_in_order): Update.
23345         (output_weakrefs): Update.
23346         (finalize_compilation_unit): Update.
23347         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
23348         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
23349         input_node, input_varpool_node): Update.
23350         * dbxout.c (dbxout_expand_expr): Update.
23351         * cgraphclones.c (cgraph_clone_node): Update.
23352         (cgraph_copy_node_for_versioning): Update.
23353         (cgraph_materialize_clone): Update.
23354         (cgraph_materialize_all_clones): Update.
23355         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
23356         propagate_pure_const, propagate_nothrow): Update.
23357         * lto-streamer-out.c (lto_output, write_symbol): Update.
23358         * ipa-utils.c (ipa_reverse_postorder): Update.
23359         * ipa-inline.c (can_inline_edge_p): Update.
23360         (update_caller_keys, ipa_inline): Update.
23361         * dwarf2out.c (reference_to_unused,
23362         premark_types_used_by_global_vars_helper): Update.
23363         * tree-eh.c (tree_could_trap_p): Update.
23364         * ipa-split.c (consider_split, execute_split_functions): Update.
23365         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
23366         has_addr_references_p): Update; move ahead in file for better
23367         readability.
23368         (process_references): Simplify.
23369         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
23370         bodies are removed.
23371         (cgraph_comdat_can_be_unshared_p): Make static.
23372         (cgraph_externally_visible_p): Update.
23373         (varpool_externally_visible_p): Update.
23374         (function_and_variable_visibility): Update.
23375         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
23376         ipa_tm_mark_force_output_node): Update.
23377         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
23378         estimate_edge_devirt_benefit, inline_generate_summary,
23379         inline_write_summary): Update.
23380         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
23381         * ipa-prop.c (ipa_compute_jump_functions): Update.
23382         (ipa_print_node_params, ipa_prop_read_section,
23383         ipa_update_after_lto_read, read_replacements_section): Update.
23384         * varasm.c (mark_decl_referenced): Update.
23385         (assemble_alias, dump_tm_clone_pairs): Update.
23386         * tree-inline.c (copy_bb): Update.
23387         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
23388         Update.
23389         * symtab.c (dump_symtab_base): Print new flags.
23390         (verify_symtab_base): Verify new flags.
23391         (symtab_alias_ultimate_target): New function.
23392         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
23393         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
23394         Update.
23395         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
23396         Update.
23397         * i386.c (ix86_get_function_versions_dispatcher,
23398         ix86_generate_version_dispatcher_body): Update.
23399         (fold_builtin_cpu): Use varpool_add_new_variable.
23400         * varpool.c (varpool_remove_initializer): Break out from ...
23401         (varpool_remove_node): ... this one.
23402         (dump_varpool_node, varpool_node_for_asm,
23403         cgraph_variable_initializer_availability, varpool_analyze_node,
23404         varpool_assemble_decl, varpool_remove_unreferenced_decls,
23405         varpool_finalize_named_section_flags, varpool_create_variable_alias):
23406         Update.
23408 2013-05-29  Jan Hubicka  <jh@suse.cz>
23410         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
23412 2013-05-29  Easwaran Raman  <eraman@google.com>
23414         PR tree-optimization/57442
23415         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
23416         when control exits the main loop.
23418 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
23420         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
23421         and RX600.
23422         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
23423         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
23424         * rx/t-rx: Add rx100 under multi library matches option for nofpu
23425         option.
23427 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23429         PR tree-optimization/57441
23430         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
23431         Don't limit size of incr_vec to number of candidates.
23433 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
23435         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
23436         and mips16 directories.
23437         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
23438         (MULTILIB_DIRNAMES): Ditto.
23439         (MULTILIB_EXCEPTIONS): Add new exceptions.
23440         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
23441         (MULTILIB_DIRNAMES): Ditto.
23442         (MULTILIB_EXCEPTIONS): Add new exceptions.
23444 2012-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
23445             Marcus Shawcroft  <marcus.shawcroft@arm.com>
23447         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
23448         SYMBOL_TINY_ABSOLUTE.
23449         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
23450         SYMBOL_TINY_ABSOLUTE.
23451         (aarch64_expand_mov_immediate): Likewise.
23452         (aarch64_classify_symbol): Likewise.
23453         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
23454         Permit SYMBOL_TINY_ABSOLUTE.
23455         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
23457 2013-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
23458             Marcus Shawcroft  <marcus.shawcroft@arm.com>
23460         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
23461         Refactor if/switch.  Replace gcc_assert with if.
23463 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
23465         * config/i386/i386.c (initial_ix86_tune_features): Enable
23466         FP Reassociation for AMD bdver1 and bdver2.
23468 2013-05-29  Martin Jambor  <mjambor@suse.cz>
23470         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
23471         and IMAGPART_EXPR do not occur within other handled_components.
23473 2013-05-29  Richard Biener  <rguenther@suse.de>
23475         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
23476         access on whether the use is in the BB we currently try to
23477         vectorize.
23478         (vect_bb_vectorization_profitable_p): Pass the BB we currently
23479         vectorize to vect_bb_slp_scalar_cost.
23481 2013-05-29  Richard Biener  <rguenther@suse.de>
23483         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
23484         computing scalar cost offsetted by stmts that are kept live
23485         by scalar uses.
23486         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
23487         for computation of scalar cost.
23489 2013-05-28  Steve Ellcey  <sellcey@mips.com>
23491         * config/mips/mips-cpus.def (mips32r2): Change processor type.
23493 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
23495         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
23496         array notation built-in reduction functions.
23497         * doc/passes.texi (Passes): Added documentation about changes done
23498         for Cilk Plus.
23499         * doc/invoke.texi (C Dialect Options): Added documentation about
23500         the -fcilkplus flag.
23501         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
23502         (BUILTINS_DEF): Depend on cilkplus.def.
23503         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
23504         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
23505         * cilkplus.def: New file.
23507 2013-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
23509         PR rtl-optimization/57439
23510         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
23512 2013-05-28  Easwaran Raman  <eraman@google.com>
23514         PR tree-optimization/57337
23515         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
23516         (find_insert_point): Correctly identify the insertion point
23517         when two statements with the same UID is compared.
23519 2013-05-28  Richard Biener  <rguenther@suse.de>
23521         PR tree-optimization/56787
23522         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
23523         from the list of data references.
23524         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
23525         clobbers.
23526         (vect_analyze_loop_operations): Likewise.
23527         (vect_transform_loop): Remove clobbers.
23529 2013-05-28  Martin Jambor  <mjambor@suse.cz>
23531         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
23532         and REALPART_EXPRs have scalar type.
23534 2013-05-28  Richard Biener  <rguenther@suse.de>
23536         PR tree-optimization/57411
23537         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
23538         virtual operands.
23539         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
23540         virtual operand propagation.
23542 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
23544         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
23545         destination register for bmasksi_vis.
23546         (vector_init_bshuffle): Likewise.
23547         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
23549 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
23551         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
23552         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
23553         mode if the instruction isn't available in the original mode.
23554         * config/sparc/sparc.opt (mfix-ut699): New option.
23555         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
23556         (divdf3): Turn into expander.
23557         (divdf3_nofix): New insn.
23558         (divdf3_fix): Likewise.
23559         (divsf3): Disable if -mfix-ut699.
23560         (sqrtdf2): Turn into expander.
23561         (sqrtdf2_nofix): New insn.
23562         (sqrtdf2_fix): Likewise.
23563         (sqrtsf2): Disable if -mfix-ut699.
23565 2013-05-27  Richard Biener  <rguenther@suse.de>
23567         PR middle-end/57412
23568         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
23569         block for the new loop.
23571 2013-05-27  Richard Biener  <rguenther@suse.de>
23573         PR tree-optimization/57343
23574         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
23575         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
23576         (number_of_iterations_cond): Do not build the folded tree.
23578 2013-05-27  Richard Biener  <rguenther@suse.de>
23580         Revert
23581         PR middle-end/57381
23582         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
23583         OEP_CONSTANT_ADDRESS_OF retained.
23585         PR tree-optimization/57417
23586         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
23587         for unchanged base.
23588         (set_ssa_val_to): Compare addresses using
23589         get_addr_base_and_unit_offset.
23591 2013-05-27  Joern Rennecke  <joern.rennecke@embecosm.com>
23593         PR rtl-optimization/56833
23594         * postreload.c (move2add_record_mode): New function.
23595         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
23596         (move2add_use_add2_insn): Use move2add_record_sym_value.
23597         (move2add_use_add3_insn): Likewise.
23598         (reload_cse_move2add): Use move2add_valid_value_p and
23599         move2add_record_mode.  Invalidate call-clobbered and REG_INC
23600         affected regs by setting reg_mode to VOIDmode.
23601         (move2add_note_store): Don't pretend the inside of a SUBREG is
23602         the actual destination.  Invalidate single/leading registers by
23603         setting reg_mode to VOIDmode.
23604         Use move2add_record_sym_value, move2add_valid_value_p and
23605         move2add_record_mode.
23607 2013-05-27  Richard Biener  <rguenther@suse.de>
23609         PR tree-optimization/57396
23610         * tree-affine.c (double_int_constant_multiple_p): Properly
23611         return false for val == 0 and div != 0.
23613 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
23615         * config/mips/mips.h: Use #elif in preprocessor conditions.
23617 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
23619         PR target/53916
23620         * config/mips/constraints.md (kl): New constraint.
23621         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
23622         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
23623         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
23624         from LO for MIPS16.
23625         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
23627 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
23629         PR target/55777
23630         * config/mips/mips.c (mips_can_inline_p): New function.
23631         (TARGET_CAN_INLINE_P): Define.
23633 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
23635         * sched-int.h (ds_t, dw_t): Make unsigned int.
23636         Fix documentation that describes how all the ds_t bits are used.
23637         Reserve the last bit for delayed-branch scheduling.
23638         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
23639         (BITS_PER_DEP_WEAK): Fix definition and documentation.
23640         (gen_dep_weak_1): Remove prototype.
23641         * sched-deps.c (get_dep_weak_1): Make static.
23642         * target.def (speculate_insn, needs_block_p, gen_spec_check,
23643         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
23644         * doc/tm.texi: Regenerate.
23645         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
23647 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
23649         PR debug/56950
23650         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
23652 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
23653             Sandra Loosemore  <sandra@codesourcery.com>
23655         * config.gcc (powerpc-*): Allow native for with-cpu.
23657 2013-05-24  Jeff Law  <law@redhat.com>
23659         PR tree-optimization/57124
23660         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
23661         conversion feeding a condition if the range has an overflow
23662         if -fstrict-overflow.  Add warnings for when we do make the
23663         transformation.
23665 2013-05-24  Dehao Chen  <dehao@google.com>
23667         * tree-cfg.c (locus_discrim_map): Fix the typo.
23668         (locus_discrim_hasher): Likewise.
23669         (locus_discrim_hasher::hash): Likewise.
23670         (locus_discrim_hasher::equal): Likewise.
23672 2013-05-24  Martin Jambor  <mjambor@suse.cz>
23674         PR tree-optimization/57294
23675         * cgraph.h (ipa_record_stmt_references): Declare.
23676         * cgraphbuild.c (ipa_record_stmt_references): New function.
23677         (build_cgraph_edges): Use ipa_record_stmt_references.
23678         (rebuild_cgraph_edges): Likewise.
23679         (cgraph_rebuild_references): Likewise.
23680         * ipa-prop.c (ipa_modify_call_arguments): Discard references
23681         associated with the old statement and build references from the
23682         newly built statements.
23683         * ipa-ref.c (ipa_remove_stmt_references): New function.
23684         * ipa-ref.h (ipa_remove_stmt_references): Declare.
23686 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
23688         * lra-constraints.c (emit_spill_move): Use smaller mode for
23689         mem-mem moves.
23690         (check_and_process_move): Consider mem-reg moves for secondary
23691         too.
23692         (curr_insn_transform): Don't lose insns emitted before for
23693         secondary memory moves.
23694         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
23695         reg set up in the current insn.
23697 2013-05-24  Dehao Chen  <dehao@google.com>
23699         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
23700         hash function.
23701         (locus_descrim_hasher::equal): Likewise.
23702         (build_gimple_cfg): New discriminator assignment algorithm.
23703         (make_edges): Likewise.
23704         (next_discriminator_for_locus): Likewise.
23705         (same_line_p): Likewise.
23706         (assign_discriminators): Likewise.
23707         (make_cond_expr_edges): Likewise.
23708         (make_gimple_switch_edges): Likewise.
23709         (make_goto_expr_edges): Likewise.
23710         (make_gimple_asm_edges): Likewise.
23712 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
23714         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
23715         X format specifier to only display bottom 16 bits.
23716         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
23717         immediate to match for operand 2, since it will be masked.
23719 2013-05-24  Richard Biener  <rguenther@suse.de>
23721         PR tree-optimization/57287
23722         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
23723         all SSA names that occur in abnormal PHIs.
23725 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
23727         PR tree-ssa/57385
23728         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
23729         that index is not negative.
23731 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
23733         PR rtl-optimization/55177
23734         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
23735         (simplify_byte_swapping_operation): New.
23736         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
23737         (simplify_relational_operation_1): Deal with BSWAP.
23739 2013-05-23  Richard Henderson  <rth@redhat.com>
23741         PR target/56742
23742         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
23743         (ix86_reorg): Call it.
23745 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
23747         PR target/57379
23748         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
23749         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
23750         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
23752 2013-05-23  Christian Bruel  <christian.bruel@st.com>
23754         PR debug/57351
23755         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
23757 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
23758             Marcus Shawcroft  <marcus.shawcroft@arm.com>
23760         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
23761         * config/aarch64/constraints.md (Usa): Remove.
23762         * doc/md.texi (AArch64 Usa): Remove.
23764 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
23765             Marcus Shawcroft  <marcus.shawcroft@arm.com>
23767         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
23768         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
23769         * config/aarch64/predicates.md (aarch64_const_address): Remove.
23770         (aarch64_mov_operand): Use aarch64_mov_operand_p.
23772 2013-05-23  Vidya Praveen  <vidyapraveen@arm.com>
23774         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
23775         instruction (AdvSIMD).
23776         * config/aarch64/aarch64-builtins.c
23777         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
23778         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
23780 2013-05-23  Martin Jambor  <mjambor@suse.cz>
23782         PR middle-end/57347
23783         * tree.h (contains_bitfld_component_ref_p): Declare.
23784         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
23785         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
23786         caller.
23787         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
23788         not access a bit-field.  Assert all final offsets are byte-aligned.
23790 2013-05-23  Richard Biener  <rguenther@suse.de>
23792         PR tree-optimization/57380
23793         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
23794         least one invariant or re-used load.
23795         * passes.c (init_optimization_passes): Move pass_phiprop before
23796         pass_forwprop.
23798 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
23800         * config/aarch64/aarch64-simd.md
23801         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
23803 2013-05-23  Richard Biener  <rguenther@suse.de>
23805         PR middle-end/57381
23806         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
23807         OEP_CONSTANT_ADDRESS_OF retained.
23809 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
23811         PR middle-end/57344
23812         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
23813         don't lower unit.  Handle unit not being always BITS_PER_WORD.
23815 2013-05-23  Richard Biener  <rguenther@suse.de>
23817         PR rtl-optimization/57341
23818         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
23819         instead of true_dependence.
23821 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
23823         * bb-reorder.c (branch_threshold): Make const.
23824         (exec_threshold): Ditto.
23826 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
23827             Pat Haugen  <pthaugen@us.ibm.com>
23828             Peter Bergner  <bergner@vnet.ibm.com>
23830         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
23831         documentation for the power8 crypto builtins.
23833         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
23835         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
23836         macros for defining power8 builtin functions.
23837         (BU_P8V_AV_2): Likewise.
23838         (BU_P8V_AV_P): Likewise.
23839         (BU_P8V_VSX_1): Likewise.
23840         (BU_P8V_OVERLOAD_1): Likewise.
23841         (BU_P8V_OVERLOAD_2): Likewise.
23842         (BU_CRYPTO_1): Likewise.
23843         (BU_CRYPTO_2): Likewise.
23844         (BU_CRYPTO_3): Likewise.
23845         (BU_CRYPTO_OVERLOAD_1): Likewise.
23846         (BU_CRYPTO_OVERLOAD_2): Likewise.
23847         (XSCVSPDP): Fix typo, point to the correct instruction.
23848         (VCIPHER): Add power8 crypto builtins.
23849         (VCIPHERLAST): Likewise.
23850         (VNCIPHER): Likewise.
23851         (VNCIPHERLAST): Likewise.
23852         (VPMSUMB): Likewise.
23853         (VPMSUMH): Likewise.
23854         (VPMSUMW): Likewise.
23855         (VPERMXOR_V2DI): Likewise.
23856         (VPERMXOR_V4SI: Likewise.
23857         (VPERMXOR_V8HI: Likewise.
23858         (VPERMXOR_V16QI: Likewise.
23859         (VSHASIGMAW): Likewise.
23860         (VSHASIGMAD): Likewise.
23861         (VPMSUM): Likewise.
23862         (VPERMXOR): Likewise.
23863         (VSHASIGMA): Likewise.
23865         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
23866         __CRYPTO__ if the crypto instructions are available.
23867         (altivec_overloaded_builtins): Add support for overloaded power8
23868         builtins.
23870         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
23871         support for power8 crypto builtins.
23872         (builtin_function_type): Likewise.
23873         (altivec_init_builtins): Add support for builtins that take vector
23874         long long (V2DI) arguments.
23876         * config/rs6000/crypto.md: New file, define power8 crypto
23877         instructions.
23879 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
23880             Pat Haugen  <pthaugen@us.ibm.com>
23881             Peter Bergner  <bergner@vnet.ibm.com>
23883         * doc/invoke.texi (Option Summary): Add power8 options.
23884         (RS/6000 and PowerPC Options): Likewise.
23886         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
23887         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
23888         wm, wn, wr documentation.
23890         * config/rs6000/constraints.md (wm): New constraint for VSX
23891         registers if direct move instructions are enabled.
23892         (wn): New constraint for no registers.
23893         (wq): New constraint for quad word even GPR registers.
23894         (wr): New constraint if 64-bit instructions are enabled.
23895         (wv): New constraint if power8 vector instructions are enabled.
23896         (wQ): New constraint for quad word memory locations.
23898         * config/rs6000/predicates.md (const_0_to_15_operand): New
23899         constraint for 0..15 for crypto instructions.
23900         (gpc_reg_operand): If VSX allow registers in VSX registers as well
23901         as GPR and floating point registers.
23902         (int_reg_operand): New predicate to match only GPR registers.
23903         (base_reg_operand): New predicate to match base registers.
23904         (quad_int_reg_operand): New predicate to match even GPR registers
23905         for quad memory operations.
23906         (vsx_reg_or_cint_operand): New predicate to allow vector logical
23907         operations in both GPR and VSX registers.
23908         (quad_memory_operand): New predicate for quad memory operations.
23909         (reg_or_indexed_operand): New predicate for direct move support.
23911         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
23912         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
23913         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
23914         (POWERPC_MASKS): Add power8 options.
23915         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
23916         various options.
23918         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
23919         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
23921         * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
23922         (-mpower8-fusion): New power8 options.
23923         (-mpower8-fusion-sign): Likewise.
23924         (-mpower8-vector): Likewise.
23925         (-mcrypto): Likewise.
23926         (-mdirect-move): Likewise.
23927         (-mquad-memory): Likewise.
23929         * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
23930         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
23931         registers.
23932         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
23933         (rs6000_debug_vector_unit): Add p8_vector.
23934         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
23935         definitions.  Also print fusion state.
23936         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
23937         (rs6000_builtin_mask_calculate): Add power8 builtin support.
23938         (rs6000_option_override_internal): Add support for power8.
23939         (rs6000_common_init_builtins): Add debugging for skipped builtins
23940         if -mdebug=builtin.
23941         (rs6000_adjust_cost): Add power8 support.
23942         (rs6000_issue_rate): Likewise.
23943         (insn_must_be_first_in_group): Likewise.
23944         (insn_must_be_last_in_group): Likewise.
23945         (force_new_group): Likewise.
23946         (rs6000_register_move_cost): Likewise.
23947         (rs6000_opt_masks): Likewise.
23949         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
23950         power8 capable assembler, default to power7 options.
23951         (TARGET_DIRECT_MOVE): Likewise.
23952         (TARGET_CRYPTO): Likewise.
23953         (TARGET_P8_VECTOR): Likewise.
23954         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
23955         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
23956         (VECTOR_MEM_P8_VECTOR_P): Likewise.
23957         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
23958         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
23959         (TARGET_XSCVDPSPN): Likewise.
23960         (TARGET_XSCVSPDPN): Likewsie.
23961         (TARGET_SYNC_HI_QI): Likewise.
23962         (TARGET_SYNC_TI): Likewise.
23963         (MASK_CRYPTO): Likewise.
23964         (MASK_DIRECT_MOVE): Likewise.
23965         (MASK_P8_FUSION): Likewise.
23966         (MASK_P8_VECTOR): Likewise.
23967         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
23968         temporary used by some of the direct move instructions to get two FP
23969         temporary registers does not force creation of a stack frame.
23970         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
23971         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
23972         that any VSX registers are tieable, even if they are also an
23973         Altivec vector mode.
23974         (r6000_reg_class_enum): Add wm, wr, wv constraints.
23975         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
23976         (RS6000_BTM_CRYPTO): Likewise.
23977         (RS6000_BTM_COMMON): Likewise.
23979         * config/rs6000/rs6000.md (cpu attribute): Add power8.
23980         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
23981         (enum rs6000_vector): Add power8 vector support.
23983 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23985         PR target/19599
23986         PR target/57340
23987         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
23988         (any_sibcall_could_use_r3): this and handle indirect calls.
23989         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
23991 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23993         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
23995 2013-05-22  Richard Biener  <rguenther@suse.de>
23997         PR middle-end/57349
23998         * profile.c (branch_prob): Do not split blocks that are
23999         abnormally receiving from ECF_RETURNS_TWICE functions.
24001 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
24003         * recog.c (offsettable_address_addr_space_p): Fix calculation of
24004         address mode.  Move pointer mode initialization to the same place.
24006 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
24008         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
24009         while it has any effect.
24011 2013-05-21  Easwaran Raman  <eraman@google.com>
24013         PR tree-optimization/57322
24014         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
24015         UID of the statement added to the BB to be 1.
24017 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
24019         PR tree-optimization/57331
24020         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
24021         of conversion from pointer type to integral type with integer.
24023 2013-05-21  Martin Jambor  <mjambor@suse.cz>
24025         PR lto/57289
24026         * ipa-prop.c (ipa_read_node_info): Process param_used and
24027         controlled_uses in the same order as when writing.
24029 2013-05-21  Magnus Granberg  <baldrick@free.fr>
24031         PR plugins/56754
24032         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
24034 2013-05-21  Richard Biener  <rguenther@suse.de>
24036         PR tree-optimization/57318
24037         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
24038         estimate stmts with side-effects as likely eliminated.
24040 2013-05-21  Richard Biener  <rguenther@suse.de>
24042         PR tree-optimization/57330
24043         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
24044         preserve the call stmts fntype.
24046 2013-05-21  Richard Biener  <rguenther@suse.de>
24048         PR tree-optimization/57303
24049         * tree-ssa-sink.c (statement_sink_location): Improve killing
24050         stmt detection and properly handle self-assignments.
24052 2013-05-21  Christian Bruel  <christian.bruel@st.com>
24054         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
24055         spanning registers. LEAF_REG_REMAP is supported only for contiguous
24056         registers. Set register size out of the PARALLEL loop.
24058 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
24060         PR target/56547
24061         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
24062         (*fmasf4, *fmasf4_media): New insns.
24064 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
24066         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
24067         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
24068         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
24069         (mips_idiv_insns): Update the comments to say that the returned
24070         instruction counts are in units of BASE_INSN_LENGTH.
24071         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
24072         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
24073         using 2 rather than 4 as the length of indirect MIPS16 and
24074         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
24075         length of a NOP.  Don't divide MIPS16 lengths by 2.
24076         (mips16_split_long_branches): Assume a branch is long if the
24077         length is greater than 4 rather than 8.
24078         * config/mips/mips.md (length): Give MIPS16 lengths directly,
24079         rather than multiplying them by 2.  Multiply instruction counts
24080         by BASE_INSN_LENGTH rather than 4.
24081         (*jump_mips16, tls_get_tp_mips16_<mode>)
24082         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
24084 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
24086         * config/mips/mips.md (extended_mips16): Remove branch case.
24087         (length): Remove duplicated extended_mips16 test.
24089 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
24091         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
24093 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
24095         * recog.h (Recog_data): Rename to...
24096         (recog_data_d): ...this.
24097         (recog_data): Update accordingly.
24098         * recog.c (recog_data): Likewise.
24099         * reload.c (save_recog_data): Likewise.
24100         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
24101         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
24103 2013-05-17  Julian Brown  <julian@codesourcery.com>
24105         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
24106         found in a REG_EQUAL note, invalidate it.
24108 2013-05-17  Easwaran Raman  <eraman@google.com>
24110         * tree-ssa-reassoc.c (find_insert_point): New function.
24111         (insert_stmt_after): Likewise.
24112         (get_def_stmt): Likewise.
24113         (ensure_ops_are_available): Likewise.
24114         (not_dominated_by): Likewise.
24115         (rewrite_expr_tree): Do not move statements beyond what is
24116         necessary. Remove call to swap_ops_for_binary_stmt...
24117         (reassociate_bb): ... and move it here.
24118         (build_and_add_sum): Assign UIDs for new statements.
24119         (linearize_expr): Likewise.
24120         (do_reassoc): Renumber gimple statement UIDs.
24122 2013-05-17  Jan Hubicka  <jh@suse.cz>
24124         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
24125         weakrefs.
24126         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
24127         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
24128         weakrefs.
24129         (output_weakrefs): Update.
24131 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
24132             Martin Jambor  <mjambor@suse.cz>
24134         PR middle-end/57276
24135         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
24136         value that corresponds to the given aggval is found in values vector.
24138 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
24140         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
24141         sse, sse2, sse3, ssse3 and sse4a flags to options.
24143 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
24145         * gengtype-state.c: (s_expr_writer): New class, to handle
24146         prettifying of output layout of s-expressions.
24147         (state_writer): New class, to write out gtype.state.
24148         (state_written_type_count): Move this variable into member data of
24149         state_writer.
24150         (s_expr_writer::s_expr_writer): New code: constructor for new class
24151         (state_writer::state_writer(): ditto
24152         (s_expr_writer::write_new_line): New function
24153         (s_expr_writer::write_any_indent): ditto
24154         (s_expr_writer::begin_s_expr): ditto
24155         (s_expr_writer::end_s_expr): ditto
24156         (write_state_fileloc): convert to method of state_writer...
24157         (state_writer:: write_state_fileloc): ...and use methods of
24158         s_expr_writer to write indentation into the gtype.state output file
24159         to visually represent the hierarchical structure of the list
24160         structures
24161         (write_state_fields): ditto, renaming to...
24162         (state_writer::write_state_fields)
24163         (write_state_a_string): ditto, renaming to...
24164         (state_writer::write_state_a_string)
24165         (write_state_string_option): ditto, renaming to...
24166         (state_writer::write_state_string_option)
24167         (write_state_type_option): ditto, renaming to...
24168         (state_writer::write_state_type_option)
24169         (write_state_nested_option): ditto, renaming to...
24170         (state_writer::write_state_nested_option)
24171         (write_state_option): ditto, renaming to...
24172         (state_writer::write_state_option)
24173         (write_state_options): ditto, renaming to...
24174         (state_writer::write_state_options)
24175         (write_state_lang_bitmap): ditto, renaming to...
24176         (state_writer::write_state_lang_bitmap)
24177         (write_state_version): ditto, renaming to...
24178         (state_writer::write_state_version)
24179         (write_state_scalar_type): ditto, renaming to...
24180         (state_writer::write_state_scalar_type)
24181         (write_state_string_type): ditto, renaming to...
24182         (state_writer::write_state_string_type)
24183         (write_state_undefined_type): ditto, renaming to...
24184         (state_writer::write_state_undefined_type)
24185         (write_state_struct_union_type): ditto, renaming to...
24186         (state_writer::write_state_struct_union_type)
24187         (write_state_struct_type): ditto, renaming to...
24188         (state_writer::write_state_struct_type)
24189         (write_state_user_struct_type): ditto, renaming to...
24190         (state_writer::write_state_user_struct_type)
24191         (write_state_lang_struct_type): ditto, renaming to...
24192         (state_writer::write_state_lang_struct_type)
24193         (write_state_param_struct_type): ditto, renaming to...
24194         (state_writer::write_state_param_struct_type)
24195         (write_state_pointer_type): ditto, renaming to...
24196         (state_writer::write_state_pointer_type)
24197         (write_state_array_type): ditto, renaming to...
24198         (state_writer::write_state_array_type)
24199         (write_state_gc_used): ditto, renaming to...
24200         (state_writer::write_state_gc_used)
24201         (write_state_common_type_content): ditto, renaming to...
24202         (state_writer::write_state_common_type_content)
24203         (write_state_type): ditto, renaming to...
24204         (state_writer::write_state_type)
24205         (write_state_pair_list): ditto, renaming to...
24206         (state_writer::write_state_pair_list)
24207         (write_state_pair): ditto, renaming to...
24208         (state_writer::write_state_pair)
24209         (write_state_typedefs): ditto, renaming to...
24210         (state_writer::write_state_typedefs)
24211         (write_state_structures): ditto, renaming to...
24212         (state_writer::write_state_structures)
24213         (write_state_param_structs): ditto, renaming to...
24214         (state_writer::write_state_param_structs)
24215         (write_state_variables): ditto, renaming to...
24216         (state_writer::write_state_variables)
24217         (write_state_srcdir): ditto, renaming to...
24218         (state_writer::write_state_srcdir)
24219         (write_state_files_list): ditto, renaming to...
24220         (state_writer::write_state_files_list)
24221         (write_state_languages): ditto, renaming to...
24222         (state_writer::write_state_languages)
24223         (write_state): create a state_writer instance and use it when
24224         writing out the state file
24226 2013-05-17  Mike Stump  <mikestump@comcast.net>
24228         PR rtl-optimization/57304
24229         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
24230         accessing DF_REF_REAL_LOC.
24232 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
24234         PR rtl-optimization/57281
24235         PR rtl-optimization/57300
24236         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
24237         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
24238         what the other splitter did if the registers are dead.
24240 2013-05-17  Richard Biener  <rguenther@suse.de>
24242         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
24243         MEM_REF offsets.
24245 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
24247         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
24248         linking.
24250 2013-05-17  Marek Polacek  <polacek@redhat.com>
24252         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
24253         length when doing non-zero store of storing '\0' to '\0'.
24255 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
24257         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
24258         vect_external_def oprnd1 with loop_vinfo, try to emit
24259         optional cast, negation and and stmts on the loop preheader
24260         edge instead of into the pattern def seq.
24262         PR tree-optimization/57051
24263         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
24264         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
24266 2013-05-16  Nick Clifton  <nickc@redhat.com>
24268         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
24269         (rl78_is_naked_func): New function.
24270         (rl78_expand_prologue): Skip prologue generation for naked functions.
24271         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
24272         * doc/extend.texi (naked): Add RL78 to the list of processors
24273         that supports this attribute.
24275 2013-05-16  Jeff Law  <law@redhat.com>
24277         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
24279 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
24281         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
24282         cache parameters using detect_caches_amd also for CYRIX,
24283         NSC and TM2 signatures.
24285 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
24286             Dzianis Kahanovich  <mahatma@eu.by>
24288         PR target/45359
24289         PR target/46396
24290         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
24291         VIA/Centaur processors and determine their cache parameters
24292         using detect_caches_amd.
24294 2013-05-16  Teresa Johnson  <tejohnson@google.com>
24296         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
24297         (rtl_verify_edges): New function.
24298         (rtl_verify_bb_insns): Ditto.
24299         (rtl_verify_bb_pointers): Ditto.
24300         (rtl_verify_bb_insn_chain): Ditto.
24301         (rtl_verify_fallthru): Ditto.
24302         (rtl_verify_bb_layout): Ditto.
24303         (rtl_verify_flow_info_1): Outline checks into new functions.
24304         (rtl_verify_flow_info): Ditto.
24306 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
24308         * cfghooks.c (copy_bbs): Add update_dominance argument.
24309         * cfghooks.h (copy_bbs): Update prototype.
24310         * tree-cfg.c (gimple_duplicate_sese_region):
24311         Add update_dominance argument.
24312         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
24313         * tree-ssa-loop-ch.c (copy_loop_headers): Update
24314         gimple_duplicate_sese_region call.
24315         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
24316         Update copy_bbs call.
24317         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
24318         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
24320 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
24322         * tree-vectorizer.h (NUM_PATTERNS): Increment.
24323         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
24324         vect_recog_rotate_pattern.
24325         (vect_recog_rotate_pattern): New function.
24327 2013-05-16  Jason Merrill  <jason@redhat.com>
24329         * Makefile.in (LLINKER): New variable.
24330         (mostlyclean): Remove link mutex.
24331         * configure.ac: Handle --enable-link-mutex.
24332         * lock-and-run.sh: New script.
24334 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24336         PR target/19599
24337         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
24338         for NULL decl.
24340 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24342         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
24344 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
24346         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
24347         * config/arm/arm.c (next_consecutive_mem): New function.
24348         (gen_movmem_ldrd_strd): Likewise.
24349         * config/arm/arm.md (movmemqi): Update condition and code.
24350         (unaligned_loaddi, unaligned_storedi): New patterns.
24352 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24354         * config.gcc: Obsolete *-*-solaris2.9*.
24355         * doc/install.texi (Specific, *-*-solaris2*): Document it.
24357 2013-05-16  Richard Biener  <rguenther@suse.de>
24359         * passes.c (init_optimization_passes): Move pass_parallelize_loops
24360         earlier, after GRAPHITE transforms and IV canonicalization.
24362 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
24364         * omp-low.c (extract_omp_for_data): For collapsed loops,
24365         if at least one of the loops is known at compile time to
24366         iterate zero times, set count to 0.
24367         (expand_omp_regimplify_p): New function.
24368         (expand_omp_for_generic): For collapsed loops, if at least
24369         one of the loops isn't known to iterate at least once,
24370         add runtime check with setting count to 0.
24371         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
24372         For unsigned types if it isn't known at compile time that
24373         the loop will iterate at least once, add runtime check to bypass
24374         the whole loop if initial condition isn't true.
24376 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
24378         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
24380 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
24382         PR middle-end/57286
24383         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
24384         transformations to avoid an infinite loop.
24386 2013-05-16  Marek Polacek  <polacek@redhat.com>
24388         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
24390 2013-05-15  Leif Ekblad  <leif@rdos.net>
24392         * config/i386/i386.c (ix86_decompose_address): Use
24393         DEFAULT_TLS_SEG_REG to access TLS segment register.
24394         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
24395         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
24396         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
24398 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
24400         PR target/57260
24401         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
24402         sibling calls to functions that would normally be lazily bound,
24403         unless $gp is call-clobbered.
24405 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
24407         * config/i386/i386.c (ix86_option_override_internal): Update
24408         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
24409         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
24410         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
24411         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
24412         of TARGET_3DNOW.
24413         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
24415 2013-05-15  Andreas Schwab  <schwab@suse.de>
24417         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
24418         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
24419         third operand.
24421 2013-05-15  Teresa Johnson  <tejohnson@google.com>
24423         * loop-unroll.c (report_unroll_peel): Check decision before
24424         emitting unroll/peel message.
24426 2013-05-15  Teresa Johnson  <tejohnson@google.com>
24428         * function.h (has_bb_partition): New rtl_data flag.
24429         (bb_reorder_complete): Ditto.
24430         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
24431         instead of flag_reorder_blocks_and_partition.
24432         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
24433         with some enhancements.
24434         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
24435         * bb-reorder.c (connect_traces): Check for has_bb_partition
24436         instead of flag_reorder_blocks_and_partition.
24437         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
24438         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
24439         verify_hot_cold_block_grouping.
24440         (partition_hot_cold_basic_blocks): Set has_bb_partition.
24442 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24444         PR target/19599
24445         * config/arm/predicates.md (call_insn_operand): New predicate.
24446         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
24447         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
24448         if insn is not a tail call.
24449         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
24450         registers.
24451         * config/arm/arm.h (enum reg_class): New caller save register class.
24452         (REG_CLASS_NAMES): Likewise.
24453         (REG_CLASS_CONTENTS): Likewise.
24454         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
24455         without decls.
24457 2013-05-15  Richard Biener  <rguenther@suse.de>
24459         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
24460         of MSG_OPTIMIZED_LOCATIONS.
24461         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
24462         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
24463         message.
24464         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
24465         of MSG_OPTIMIZED_LOCATIONS.
24466         (execute_vect_slp): Likewise.
24467         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
24468         (vect_create_cond_for_alias_checks): Likewise.
24469         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
24470         (vect_recog_widen_mult_pattern): Likewise.
24471         (vect_recog_widen_sum_pattern): Likewise.
24472         (vect_recog_over_widening_pattern): Likewise.
24473         (vect_recog_widen_shift_pattern): Likewise.
24474         (vect_recog_vector_vector_shift_pattern): Likewise.
24475         (vect_recog_divmod_pattern): Likewise.
24476         (vect_recog_mixed_size_cond_pattern): Likewise.
24477         (vect_recog_bool_pattern): Likewise.
24478         (vect_pattern_recog_1): Likewise.
24480 2013-05-15  Martin Jambor  <mjambor@suse.cz>
24482         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
24483         non-functions to builtin_unreachable.
24484         * ipa-inline-transform.c (inline_call): Do not assert estimates were
24485         correct when new direct edges were discovered.
24487 2013-05-15  Martin Jambor  <mjambor@suse.cz>
24489         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
24490         header, print symbol order instead of node uid, print more information
24491         about indirect edge targets.
24492         (ipa_make_edge_direct_to_target): Print symbol order instead of node
24493         uids.
24494         (ipa_make_edge_direct_to_target): Likewise.
24495         (remove_described_reference): Likewise.
24496         (propagate_controlled_uses): Likewise.
24497         (ipa_print_node_params): Also print symbol order.
24498         (ipcp_transform_function): Print symbol order instead of node uids.
24499         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
24500         (cgraph_get_create_real_symbol_node): Likewise.
24501         * ipa-cp.c (print_lattice): Likewise.
24502         (print_all_lattices): Likewise.
24503         (determine_versionability): Likewise.
24504         (initialize_node_lattices): Likewise.
24505         (estimate_local_effects): Likewise.
24506         (update_profiling_info): Likewise.
24507         (create_specialized_node): Likewise.
24508         (perhaps_add_new_callers): Likewise.
24509         (decide_about_value): Likewise.
24510         (decide_whether_version_node): Likewise.
24511         (identify_dead_nodes): Likewise.
24512         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
24513         (dump_inline_summary): Likewise.
24514         (estimate_node_size_and_time): Likewise.
24515         (inline_analyze_function): Likewise.
24516         * ipa-inline.c (report_inline_failed_reason): Likewise.
24517         (want_early_inline_function_p): Likewise.
24518         (edge_badness): Likewise.
24519         (update_edge_key): Likewise.
24520         (inline_small_functions): Likewise.  Add dumping of order to two other
24521         dumps.
24522         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
24523         instead of node uids.
24524         (propagate_pure_const): Likewise.
24525         (propagate_pure_const): Likewise.
24526         * ipa-utils.c (dump_cgraph_node_set): Likewise.
24527         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
24528         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
24529         of node uids.
24530         * tree-pretty-print.c (dump_function_header): Likewise.
24531         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
24532         Print symbol order instead of node uids.
24534 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24536         * config/s390/s390.c (s390_register_move_cost): Don't impose the
24537         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
24539 2013-05-15  Richard Biener  <rguenther@suse.de>
24541         PR tree-optimization/57275
24542         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
24543         return value for fail to do runtime alias checks for gather loads.
24545 2013-05-15  Jan Hubicka  <jh@suse.cz>
24547         PR lto/57038
24548         PR lto/47375
24549         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
24550         weakrefs are not external.
24551         (lto_symtab_merge_decls): Fix thinko when dealing with
24552         non-lto_symtab decls.
24553         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
24554         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
24555         * varpool.c (dump_varpool_node): Dump more flags.
24557 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
24559         * config/i386/i386.c (processor_alias_table): Add instruction
24560         FSGSBASE for AMD bdver3 architecture.
24562 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
24564         * tree.c (warn_deprecated_use): Print file:line using locus color.
24565         * diagnostic.c (diagnostic_report_current_module): Print file:line
24566         and file:line:column using locus color.
24568 2013-05-14  Mike Stump  <mikestump@comcast.net>
24570         * gdbinit.in: Add __null.
24572 2013-05-14  Mike Stump  <mikestump@comcast.net>
24574         * recog.h: Rename struct recog_data to Recog_data.
24575         * recog.c: Likewise.
24576         * reload.c (can_reload_into): Likewise.
24577         * config/picochip/picochip.c: Likewise.
24579 2013-05-14  Mike Stump  <mikestump@comcast.net>
24581         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
24583 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
24585         * resource.h (struct resources): Remove unch_memory member.
24586         (CLEAR_RESOURCE): Don't clear unch_memory.
24587         * resource.c (mark_referenced_resources): Don't set it.
24588         (mark_set_resources): Likewise.
24589         (mark_target_live_regs): Don't clear it.
24590         (init_resource_info): Likewise.
24591         * reorg.c (resource_conflicts_p): Don't compare it.
24592         (redundant_insn): Don't set it.
24594         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
24595         Remove prototypes.
24596         * emit-rtl.c (next_label): Remove unused function.
24597         (skip_consecutive_labels, link_cc0_insns): Move to ...
24598         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
24599         only place where these functions are used, and make them static.
24601 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
24603         * fold-const.c (fold_negate_expr): Handle vectors.
24604         (fold_truth_not_expr): Make it static.
24605         (fold_invert_truthvalue): New static function.
24606         (invert_truthvalue_loc): Handle vectors. Do not call
24607         fold_truth_not_expr directly.
24608         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
24609         <TRUTH_NOT_EXPR>: Do not cast to boolean.
24610         (fold_comparison): Handle vector constants.
24611         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
24612         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
24613         * tree.h (fold_truth_not_expr): Remove declaration.
24615 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
24617         * config/aarch64/aarch64-simd.md
24618         (aarch64_vcond_internal<mode>): Rename to...
24619         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
24620         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
24621         float modes. Clarify all iterator modes.
24622         (vcond<mode><mode>): Use new name for vcond expanders.
24623         (vcond<v_cmp_result><mode>): Likewise.
24624         (vcondu<mode><mode>: Likewise.
24625         * config/aarch64/iterators.md (VDQF_COND): New.
24627 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
24629         PR bootstrap/57266
24630         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
24631         variable for the shift amount. Check that we shift by non-negative
24632         amounts.
24634 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
24636         PR target/42017
24637         * config/arm/arm.h (EPILOGUE_USES): Only return true
24638         for LR_REGNUM after epilogue_completed.
24640 2013-05-14  Joern Rennecke  <joern.rennecke@embecosm.com>
24642         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
24643         is error_mark_node.
24645 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24647         PR target/57261
24648         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
24649         and Solaris 11+/x86 with gld.
24650         * configure: Regenerate.
24652 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
24654         * expmed.c (expand_shift_1): Canonicalize rotates by
24655         constant bitsize / 2 to bitsize - 1.
24656         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
24657         case ROTATERT>: Likewise.
24659         Revert:
24660         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
24662         * config/i386/i386.md (rotateinv): New code attr.
24663         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
24664         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
24665         roll $31, %eax, etc.
24667 2013-05-14  Richard Biener  <rguenther@suse.de>
24669         PR middle-end/57235
24670         * tree-eh.c (sink_clobbers): Give up for successors with
24671         multiple predecessors and no virtual uses.
24673 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
24675         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
24676         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
24678 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
24680         PR middle-end/57251
24681         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
24682         the case when both op0 and op1 have VOIDmode.
24684 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
24686         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
24687         in multiply-accumulate mode.
24689 2013-05-13  Guozhi Wei  <carrot@google.com>
24691         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
24693 2013-05-13  Kai Tietz  <ktietz@redhat.com>
24695         PR target/56975
24696         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
24697         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
24698         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
24699         * config/i386/i386.c (ix86_option_override_internal): Likewise.
24700         (ix86_expand_prologue): Likewise.
24701         (ix86_expand_split_stack_prologue): Likewise.
24702         (legitimate_pic_address_disp_p): Likewise.
24703         (legitimize_pic_address): Likewise.
24704         (legitimize_tls_address): Likewise.
24705         (legitimize_pe_coff_symbol): Likewise.
24706         (output_pic_addr_const): Likewise.
24707         (construct_plt_address): Likewise.
24708         (ix86_expand_call): Likewise.
24709         (x86_output_mi_thunk): Likewise.
24710         (x86_function_profiler): Likewise.
24712 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
24714         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
24715         similar switch cases.
24716         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
24717         (aarch64_simd_mov_to_<mode>low): Delete.
24718         (aarch64_simd_mov_to_<mode>high): Delete.
24719         (move_lo_quad_<mode>): Add w<-r alternative.
24720         (aarch64_simd_move_hi_quad_<mode>): Likewise.
24721         (aarch64_simd_mov_from_*): Update type attribute.
24722         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
24723         statement.
24725 2013-05-13  Jan Hubicka  <jh@suse.cz>
24727         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
24728         * config/i386/i386.c (ix86_compute_frame_layout,
24729         ix86_expand_epilogue, emit_i387_cw_initialization,
24730         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
24731         ix86_local_alignment): Fix use of size/speed predicates.
24733 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
24735         PR tree-optimization/45216
24736         PR tree-optimization/57157
24737         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
24738         the (-Y) & (B - 1) variant if OP is |.
24739         * expmed.c (expand_shift_1): For rotations by const0_rtx just
24740         return shifted.  Use (-op1) & (prec - 1) as other_amount
24741         instead of prec - op1.
24743 2013-05-13  Martin Jambor  <mjambor@suse.cz>
24745         PR middle-end/42371
24746         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
24747         (ipa_constant_data): New type.
24748         (ipa_jump_func): Use ipa_constant_data to hold information about
24749         constant jump functions.
24750         (ipa_get_jf_constant): Adjust to jump function type changes.
24751         (ipa_get_jf_constant_rdesc): New function.
24752         (ipa_param_descriptor): New field controlled_uses.
24753         (ipa_get_controlled_uses): New function.
24754         (ipa_set_controlled_uses): Likewise.
24755         * ipa-ref.h (ipa_find_reference): Declare.
24756         * ipa-prop.c (ipa_cst_ref_desc): New type.
24757         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
24758         changes.
24759         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
24760         New parameter cs.  Adjust all callers.
24761         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
24762         (remove_described_reference): New function.
24763         (jfunc_rdesc_usable): Likewise.
24764         (try_make_edge_direct_simple_call): Decrement controlled use count,
24765         attempt to remove reference if it hits zero.
24766         (combine_controlled_uses_counters): New function.
24767         (propagate_controlled_uses): Likewise.
24768         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
24769         (ipa_edge_duplication_hook): Duplicate reference descriptions.
24770         (ipa_print_node_params): Print described use counter.
24771         (ipa_write_jump_function): Adjust to jump function type changes.
24772         (ipa_read_jump_function): New parameter CS, pass it to
24773         ipa_set_jf_constant.  Adjust caller.
24774         (ipa_write_node_info): Stream controlled use count
24775         (ipa_read_node_info): Likewise.
24776         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
24777         asserting.
24778         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
24779         count.  Remove cloning-added reference if it reaches zero.
24780         * ipa-ref.c (ipa_find_reference): New function.
24782 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
24784         * config/i386/i386.c (processor_target_table): Modified default
24785         alignment values for AMD BD and BT architectures.
24787 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
24789         * tree-vect-generic.c (uniform_vector_p): Move ...
24790         * tree.c (uniform_vector_p): ... here.
24791         * tree.h (uniform_vector_p): Declare it.
24792         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
24793         into a scalar.
24795 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
24797         PR tree-optimization/57230
24798         * tree-ssa-strlen.c (handle_char_store): Record length for
24799         array store from STRING_CST.
24801         PR tree-optimization/57230
24802         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
24803         check.
24805 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
24807         * config/epiphany/epiphany.c (epiphany_init): Check size of
24808         NUM_MODES_FOR_MODE_SWITCHING.
24809         (epiphany_expand_prologue):
24810         Remove CONFIG_REGNUM initial value handling code.
24811         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
24812         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
24813         (emit_set_fp_mode, epiphany_mode_after): Likewise.
24814         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
24815         Don't return 1 for FP_MODE_NONE.
24816         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
24817         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
24818         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
24819         * config/epiphany/epiphany.md (save_config): New pattern.
24821 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
24823         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
24825 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
24827         * config/i386/i386.md (memory): Handle sseishft1.
24828         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
24829         (*vec_extractv2di_1): Ditto.
24831 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
24833         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
24834         saved registers.
24836 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
24838         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
24839         Add mthumb/march=armv7-a multilib.
24840         Add mthumb/march=armv7-r multilib.
24841         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
24843 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
24845         * config/v850/t-rtems: Add more multilibs.
24847 2013-05-10  Richard Biener  <rguenther@suse.de>
24849         PR tree-optimization/57214
24850         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
24851         not propagate from SSA names that occur in abnormal PHI nodes.
24853 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
24855         * stor-layout.c (element_precision): New function.
24856         * machmode.h (element_precision): Declare it.
24857         * tree.c (build_minus_one_cst): New function.
24858         (element_precision): Likewise.
24859         * tree.h (build_minus_one_cst): Declare new function.
24860         (element_precision): Likewise.
24861         * fold-const.c (operand_equal_p): Use element_precision.
24862         (fold_binary_loc): Handle vector types.
24863         * convert.c (convert_to_integer): Use element_precision.
24864         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
24865         separately.
24867 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
24869         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
24870         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
24871         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
24872         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
24873         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
24874         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
24875         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
24876         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
24877         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
24878         (Uuw8): New constraints.
24879         (Usb4): Move into alphabetical order.
24880         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
24881         (sd8_operand, ub8_operand, uw8_operand): New predicates.
24882         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
24883         previously unnamed patterns.
24884         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
24885         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
24886         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
24887         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
24888         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
24889         of specific lengths.
24891 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
24893         * config/i386/i386.md (rotateinv): New code attr.
24894         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
24895         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
24896         roll $31, %eax, etc.
24898         PR tree-optimization/45216
24899         PR tree-optimization/57157
24900         * tree-ssa-forwprop.c (simplify_rotate): New function.
24901         (ssa_forward_propagate_and_combine): Call it.
24903 2013-05-10  Richard Biener  <rguenther@suse.de>
24905         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
24906         disable peeling when we version for aliasing.
24907         (vector_alignment_reachable_p): Honor explicit user alignment.
24908         (vect_supportable_dr_alignment): Likewise.
24909         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
24910         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
24911         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
24912         then peeling to arrange for the cost-model check to come first.
24914 2013-05-10  Alan Modra  <amodra@gmail.com>
24916         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
24917         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
24918         * configure: Regenerate.
24920 2013-05-10  Alan Modra  <amodra@gmail.com>
24922         PR target/55033
24923         * varasm.c (default_elf_select_section): Move !DECL_P check..
24924         (get_named_section): ..to here before calling get_section_name.
24925         Adjust assertion.
24926         (default_section_type_flags): Add DECL_P check.
24927         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
24928         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
24930 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
24932         * config/epiphany/epiphany.c (epiphany_expand_prologue):
24933         When using gen_stack_adjust_str with a register offset, add a
24934         REG_FRAME_RELATED_EXPR note.
24936 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
24938         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
24939         (*vec_extractv4si_zext_mem): Ditto.
24940         (*vec_extractv2di): Add 0->x and x->x alternatives.
24941         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
24942         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
24944 2013-05-09  Jason Merrill  <jason@redhat.com>
24946         N3639 C++1y VLA support
24947         * gimplify.c (gimplify_vla_decl): Don't touch an existing
24948         DECL_VALUE_EXPR.
24950         * tree.c (build_constructor_va): New.
24951         * tree.h: Declare it.
24953 2013-05-09  Martin Jambor  <mjambor@suse.cz>
24955         PR lto/57084
24956         * gimple-fold.c (canonicalize_constructor_val): Call
24957         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
24959 2013-05-09  Jan Hubicka  <jh@suse.cz>
24960             Richard Biener  <rguenther@suse.de>
24962         PR lto/54095
24963         * symtab.c (symtab_make_decl_local): Do not add private names.
24965 2013-05-09  Jan Hubicka  <jh@suse.cz>
24967         PR lto/54095
24968         * symtab.c (insert_to_assembler_name_hash): Handle clones.
24969         (unlink_from_assembler_name_hash): Likewise.
24970         (symtab_prevail_in_asm_name_hash, symtab_register_node,
24971         symtab_unregister_node, symtab_initialize_asm_name_hash,
24972         change_decl_assembler_name): Update.
24974 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
24976         * config/aarch64/aarch64.md: New movtf split.
24977         (*movtf_aarch64): Update.
24978         (aarch64_movdi_tilow): Handle TF modes and rename to
24979         aarch64_movdi_<mode>low.
24980         (aarch64_movdi_tihigh): Handle TF modes and rename to
24981         aarch64_movdi_<mode>high
24982         (aarch64_movtihigh_di): Handle TF modes and rename to
24983         aarch64_mov<mode>high_di
24984         (aarch64_movtilow_di): Handle TF modes and rename to
24985         aarch64_mov<mode>low_di
24986         (aarch64_movtilow_tilow): Remove spurious whitespace.
24987         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
24988         splits.
24989         (aarch64_print_operand): Update.
24991 2013-05-09  Alan Modra  <amodra@gmail.com>
24993         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
24994         powerpc64le.
24995         * configure: Regenerate.
24997 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
24999         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
25000         splitter preparation statements.
25001         * config/i386/sse.md (*vec_extract* splitters): Ditto.
25002         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
25003         adjust_address_nv.
25005 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25007         * gimple-ssa-strength-reduction.c (count_candidates): Change
25008         return value to int.
25009         (analyze_candidates_and_replace): Change type of length to int.
25011 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
25013         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
25014         (*vec_extract<mode>): Use VI12_128 mode iterator.
25015         (*vec_extract<mode>_mem): Ditto.
25016         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
25017         attribute.
25019 2013-05-08  Diego Novillo  <dnovillo@google.com>
25021         PR bootstrap/54659
25023         Revert:
25024         2012-08-17  Diego Novillo  <dnovillo@google.com>
25026         PR bootstrap/54281
25027         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
25028         * config.in: Regenerate.
25029         * configure: Regenerate.
25030         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
25032 2013-05-08  Jan Hubicka  <jh@suse.cz>
25034         PR lto/54095
25035         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
25036         * cgraph.h (symtab_node_base): Add unique_name.
25037         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
25038         input_overwrite_node, input_varpool_node): Stream unique_name.
25039         * cgraphclones.c (cgraph_create_virtual_clone,
25040         cgraph_function_versioning): Set unique_name.
25041         * ipa.c (function_and_variable_visibility): Set unique_name.
25043 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25045         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
25046         (alloc_cand_and_find_basis): Restrict conditional candidate
25047         processing to CAND_MULTs.
25049 2013-05-08  Jan Hubicka  <jh@suse.cz>
25051         PR lto/54095
25052         lto-symtab.c (lto_symtab_symbol_p): New function.
25053         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
25054         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
25055         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
25056         Skip static symbols.
25058 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
25060         PR tree-optimization/57200
25061         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
25062         Only call inform if the preceding warning_at returns true.
25064 2013-05-07  Han Shen  <shenhan@google.com>
25066         * cfgexpand.c (record_or_union_type_has_array_p): New function.
25067         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
25068         * common.opt (fstack-protector-strong): New option.
25069         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
25070         * doc/invoke.texi (Optimization Options): Document
25071         "-fstack-protector-strong".
25072         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
25074 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
25076         * config/mips/mips.c (mips_machine_reorg2): Return 0.
25078 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
25080         * ira.c (update_equiv_regs): Add insn having equiv memory even if
25081         it is not lhs of the insn.
25082         (setup_reg_equiv): Remove insn having equiv memory which it is not
25083         lhs of the insn.
25084         * lra-constraints.c (process_address): Try to improve generation
25085         code for address base + disp.
25086         (lra_constraints): Make correct the code for checking insn setting
25087         up backward equivalence.  Remove insn only if it is in the init
25088         insn list.
25089         * lra-eliminations.c (update_reg_eliminate): Change return value.
25090         (lra_eliminate): Use the result.
25092 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
25094         * config/i386/sse.md (ssescalarnummask): New mode attribute.
25095         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
25096         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
25097         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
25098         register target operands.
25099         (*vec_extractv8hi_sse2): New pattern.
25100         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
25101         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
25102         (*vec_extract<mode>_mem): New insn and split pattern.
25104 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
25106         * config/arm/arm.c (arm_asan_shadow_offset): New function.
25107         (TARGET_ASAN_SHADOW_OFFSET): Define.
25108         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
25109         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
25111 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25113         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
25114         (incr_vec_index): Return -1 if increment not found.
25115         (create_add_on_incoming_edge): Assert if increment not found.
25116         (record_increment): Limit number of increments recorded.
25117         (all_phi_incrs_profitable): Return false if an increment not found.
25118         (replace_profitable_candidates): Don't process increments that were
25119         not recorded.
25120         (analyze_candidates_and_replace): Limit size of incr_vec.
25122 2013-05-07  Richard Biener  <rguenther@suse.de>
25124         * calls.c (special_function_p): setjmp-like functions are leaf.
25125         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
25126         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
25128 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
25130         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
25131         (aarch64_simd_mov<mode>): New expander.
25132         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
25133         (aarch64_simd_mov_to_<mode>high): Likewise.
25134         (aarch64_simd_mov_from_<mode>low): Likewise.
25135         (aarch64_simd_mov_from_<mode>high): Likewise.
25136         (aarch64_dup_lane<mode>): Update.
25137         (aarch64_dup_lanedi): New instruction pattern.
25138         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
25139         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
25141 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25143         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
25144         (replace_mult_candidate): Remove unnecessary argument; remove
25145         unnecessary parameter from call to introduce_cast_before_cand.
25146         (replace_unconditional_candidate): Remove unnecessary parameter
25147         from call to replace_mult_candidate.
25148         (replace_conditional_candidate): Likewise.
25149         (insert_initializers): Use make_temp_ssa_name.
25150         (introduce_cast_before_cand): Remove unnecessary argument; use
25151         make_temp_ssa_name.
25152         (replace_one_candidate): Remove unnecessary argument; remove
25153         unnecessary parameter from calls to introduce_cast_before_cand.
25154         (replace_profitable_candidates): Remove unnecessary parameters
25155         from calls to replace_one_candidate.
25157 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25159         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
25160         phi def as possibly hiding a basis for a CAND_ADD whose operands
25161         have been commuted in the analysis.
25162         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
25164 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
25166         * config/aarch64/aarch64.md
25167         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
25168         shift value between 0-4.
25170 2013-05-07  Richard Biener  <rguenther@suse.de>
25172         * double-int.h (rshift): New overload.
25173         * double-int.c (rshift): New function.
25174         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
25175         (create_reference_ops_from_ref): Remove.
25176         (vn_reference_insert): Use shared ops for constructing the
25177         reference and copy it.
25179 2013-05-07  Richard Biener  <rguenther@suse.de>
25181         PR middle-end/57190
25182         * tree-eh.c (sink_clobbers): Properly propagate
25183         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
25185 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
25187         PR tree-optimization/57149
25188         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
25189         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
25190         collect_phi_def_edges, execute_late_warn_uninitialized): Use
25191         uninit_undefined_value_p instead of ssa_undefined_value_p.
25193         PR debug/57184
25194         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
25195         for modifier == EXPAND_INITIALIZER.
25197 2013-05-07  Anton Blanchard  <anton@samba.org>
25199         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
25200         for powerpc64 little endian.
25201         * configure: Regenerate.
25203 2013-05-06  Graham Stott  <grahams@btinternet.com>
25205         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
25206         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
25207         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
25208         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
25210 2013-05-06  Graham Stott  <grahams@btinternet.com>
25212         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
25213         codes which allow non-lvalues.
25215 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
25217         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
25218         components are all 1s.
25219         (integer_minus_onep): New function.
25220         * tree.h (integer_minus_onep): Declare it.
25221         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
25222         integer_minus_onep instead of integer_all_onesp.
25224 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
25226         PR target/52933
25227         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
25228         variations of these patterns.
25230 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
25232         * config/i386/i386.md (isa): Add x64_sse4 member.
25233         (enabled): Handle x64_sse4.
25234         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
25235         instruction for 64bit SSE4_1 targets.  Update insn attributes.
25236         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
25237         instruction for SSE4_1 targets.  Update insn attributes.
25238         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
25239         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
25240         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
25241         const_1 selector.
25242         (*vec_extractv4si): Rename from *sse4_1_pextrd.
25243         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
25244         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
25246 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
25248         PR target/57108
25249         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
25251 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
25253         * final.c (do_assembler_dialects): Don't handle curly braces and
25254         vertical bar escaped by % as dialect delimiters.
25255         (output_asm_insn): Print curly braces and vertical bar if escaped
25256         by % and ASSEMBLER_DIALECT defined.
25257         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
25258         * doc/tm.texi: Regenerated.
25260 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
25262         * config/mips/mips.c: Include tree-pass.h.
25263         (mips_reorg): Split in pre- and post-dbr_schedule parts.
25264         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
25265         (pass_mips_machine_reorg2): New machine specific pass.
25266         (insert_pass_mips_machine_reorg2): New pass plugin definition.
25267         (mips_option_override): Register the new pass.
25268         * rtl.h (cleanup_barriers): Remove prototype.
25269         (dbr_schedule): Likewise.
25270         * jump.c (cleanup_barriers): Make static.
25271         * reorg.c (dbr_schedule): Likewise.
25273 2013-05-06  Richard Biener  <rguenther@suse.de>
25275         PR tree-optimization/57185
25276         * tree-parloops.c (add_field_for_reduction): Handle anonymous
25277         SSA names properly.
25279 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
25281         PR target/57106
25282         * config/i386/i386.c (add_parameter_dependencies): Add dependence
25283         between "first_arg" and "insn", not "last" and "insn".
25285 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25287         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
25288         (find_candidates_in_block): Re-enable slsr_process_phi.
25289         (create_phi_basis): Fix double counting of candidate adjustment.
25291 2013-05-06  Richard Biener  <rguenther@suse.de>
25293         PR middle-end/57147
25294         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
25295         the edge is also fallthru, preserve it and just clear the
25296         abnormal flag.
25297         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
25298         also complex, preserve that and just clear the fallthru flag.
25299         * tree-inline.c (update_ssa_across_abnormal_edges): Also
25300         update virtual operands.
25302 2013-05-06  Alan Modra  <amodra@gmail.com>
25304         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
25305         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
25306         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
25307         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
25308         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
25309         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
25311 2013-05-06  Alan Modra  <amodra@gmail.com>
25313         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
25314         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
25315         (DEFAULT_ASM_ENDIAN): Define.
25316         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
25317         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
25318         Update -K PIC clause from sysv4.h.
25319         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
25320         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
25322 2013-05-06  Alan Modra  <amodra@gmail.com>
25324         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
25325         twice for little-endian.
25326         (ashrdi3_no_power, ashrdi3): Support little-endian.
25328 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
25330         PR target/55303
25331         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
25332         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
25333         related expanders.
25334         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
25335         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
25336         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
25337         New predicates.
25339 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
25340             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25342         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
25343         * config/pa/pa.opt: Make mbig-switch a no-op.
25344         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
25345         (CASE_VECTOR_MODE): Always return SImode.
25346         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
25347         for the !TARGET_BIG_SWITCH case.
25348         * config/pa/pa-linux.h: Likewise.
25349         * config/pa/pa-openbsd.h: Likewise.
25350         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
25351         * config/pa/pa.md (short_jump): Remove define_insn.
25352         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
25353         (casesi0): Remove define_insn.
25354         (type): Remove btable_branch.
25355         (pa_combine_type): Likewise.
25356         (in_nullified_branch_delay): Likewise.
25357         (in_call_delay): Likewise.
25358         (define_delay): Likewise.
25359         (define_insn_reservation "Z3"): Likewise.
25360         (define_insn_reservation "Z4"): Likewise.
25361         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
25362         (pa_adjust_insn_length): Remove adjustment for btable branches.
25363         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
25364         and mno-big-switch
25366 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
25368         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
25369         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
25370         Add m->r,x alternatives.
25371         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
25372         splitters using SWI48x mode iterator.
25373         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
25374         TARGET_64BIT.  Add m->x alternative.
25375         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
25376         Add o->x alternative.  Enable for TARGET_SSE.
25377         (sse_storeq): Remove expander.
25378         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
25379         with memory input operand.
25380         (*vec_extractv2di_1 splitter): New.
25381         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
25382         * config/i386/i386.md (ssevecmodelower): New mode attribute.
25384 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
25386         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
25387         (INT_LOWPART): Delete.
25388         (extract_MB): Adjust.
25389         (extract_ME): Adjust.
25390         (print_operand): Adjust.
25392 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
25394         * config/rs6000/predicates.md (reg_or_add_cint_operand,
25395         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
25396         (reg_or_logical_cint_operand, easy_fp_constant,
25397         logical_const_operand): Delete "CONST_DOUBLE" case.
25398         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
25399         "HOST_BITS_PER_WIDE_INT == 64" test.
25400         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
25401         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
25402         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
25403         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
25404         test.
25405         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
25406         CONST_DOUBLE DImode/VOIDmode case.
25407         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
25408         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
25409         CONST_DOUBLE VOIDmode case.
25410         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
25411         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
25412         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
25413         Delete CONST_DOUBLE case.
25414         (splitters for mov FMOVE64 const_double): Delete
25415         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
25416         "HOST_BITS_PER_WIDE_INT >= 64" test.
25417         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
25418         case.
25419         (mov DI const_double): Delete.
25421 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
25423         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
25424         on op shows all bits zero in mode of a lowpart subreg, return zero.
25426 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
25428         PR target/57150
25429         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
25430         to save TFmode registers and DImode to save TImode registers for
25431         caller save operations.
25432         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
25433         mark being partially clobbered since they only use the first
25434         double word.
25436         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
25437         and TDmode only use the upper 64-bits of each VSX register.
25439 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25441         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
25442         (find_candidates_in_block): Disable slsr_process_phi.
25444 2013-05-03  Guozhi Wei  <carrot@google.com>
25446         * coverage.c (coverage_obj_init): Move the construction of gcov
25447         constructor to ...
25448         (build_init_ctor): ... here.
25450 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25452         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
25453         (slsr_cand_d): Redefine def_phi.
25454         (stride_status, phi_adjust_status, count_phis_status): New enums.
25455         (find_phi_def): New.
25456         (find_basis_for_base_expr): New.
25457         (find_basis_for_candidate): Handle hidden bases.
25458         (alloc_cand_and_find_basis): Handle phi candidates.
25459         (slsr_process_phi): New.
25460         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
25461         (create_mul_imm_cand): Likewise.
25462         (create_add_ssa_cand): Exclude phi base candidates.
25463         (create_add_imm_cand): Likewise.
25464         (slsr_process_cast): Likewise.
25465         (slsr_process_copy): Likewise.
25466         (find_candidates_in_block): Handle phi candidates.
25467         (dump_candidate): Likewise.
25468         (unconditional_cands): Delete.
25469         (unconditional_cands_with_known_stride_p): Delete.
25470         (phi_dependent_cand_p): New.
25471         (cand_increment): Handle phi-dependent candidates.
25472         (replace_dependent): Delete.
25473         (replace_mult_candidate): New.
25474         (replace_unconditional_candidate): New.
25475         (incr_vec_index): Move to avoid forward reference.
25476         (create_add_on_incoming_edge): New.
25477         (create_phi_basis): New.
25478         (replace_dependents): Delete.
25479         (replace_conditional_candidate): New.
25480         (phi_add_costs): New.
25481         (replace_uncond_cands_and_profitable_phis): New.
25482         (record_increment): Handle phi adjustments.
25483         (record_phi_increments): New.
25484         (record_increments): Handle phi adjustments.
25485         (phi_incr_cost): New.
25486         (lowest_cost_path): Handle phis.
25487         (total_savings): Likewise.
25488         (analyze_increments): Likewise.
25489         (ncd_with_phi): New.
25490         (ncd_of_cand_and_phis): New.
25491         (nearest_common_dominator_for_cands): Handle phi increments.
25492         (all_phi_incrs_profitable): New.
25493         (replace_profitable_candidates): Handle phi-dependent candidates.
25494         (analyze_candidates_and_replace): Likewise.
25496 2013-05-03  Teresa Johnson  <tejohnson@google.com>
25498         PR bootstrap/57154
25499         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
25500         do not exceed REG_BR_PROB_BASE.
25502 2013-05-03  Jeff Law  <law@redhat.com>
25504         PR tree-optimization/57144
25505         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
25506         operand of the condition will bit into the new type when eliminating
25507         a cast feeding a condition.
25509 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
25511         PR rtl-optimization/57130
25512         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
25513         of COMPARE as in_code to the recursive call if needed.
25515 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
25517         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
25518         (enabled): Handle new members.
25519         * config/i386/sse.md (*vec_concatv2si): Merge from
25520         *vec_concatv2si_sse2 and vec_concatv2si_sse.
25521         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
25523 2013-05-03  Joern Rennecke  <joern.rennecke@embecosm.com>
25525         PR tree-optimization/57027
25526         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
25527         for fnms opportunity, check we got the prerequisite kind
25528         of tree / gimple before using accessor functions.
25530 2013-05-03  Richard Biener  <rguenther@suse.de>
25532         * double-int.h (lshift): New overload without precision
25533         and arith argument.
25534         (operator *=, operator +=, operator -=): Move ...
25535         * double-int.c (operator *=, operator +=, operator -=): ... here
25536         and implement more efficiently.
25537         (mul_double_with_sign): Remove.
25538         (lshift_double): Adjust to take unsinged shift argument, push
25539         dispatching code to callers.
25540         (mul_double_wide_with_sign): Add early out for callers that
25541         are not interested in high parts or overflow.
25542         (lshift): New function.
25543         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
25544         dispatch code here.
25545         (lrotate, rrotate): Use logical shifts.
25546         * expr.c (get_inner_reference): Use lshift.
25547         * fixed-value.c (do_fixed_divide): Likewise.
25548         * tree-dfa.c (get_ref_base_and_extent): Likewise.
25549         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
25550         (indirect_refs_may_alias_p): Likewise.
25551         (stmt_kills_ref_p_1): Likewise.
25553 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
25555         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
25557 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
25559         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
25560         scalar form of FABD instruction.
25562 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
25564         * lra-constraints.c (process_alt_operands): Add checking alt
25565         number to choose the best alternative.
25567 2013-05-02  Richard Biener  <rguenther@suse.de>
25569         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
25570         bitmap and its handling.
25571         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
25573 2013-05-02  Richard Biener  <rguenther@suse.de>
25575         PR middle-end/57140
25576         * tree-inline.c (copy_loops): Properly handle removed loops.
25577         (copy_cfg_body): Mark destination loops for fixup if source
25578         loops needed fixup.
25580 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
25582         PR target/56732
25583         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
25584         generating simple_return for naked functions.
25586 2013-05-02  Martin Jambor  <mjambor@suse.cz>
25588         PR middle-end/56988
25589         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
25590         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
25591         flags match.
25592         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
25593         ipa_agg_replacement_value structures.
25594         (known_aggs_to_agg_replacement_list): Likewise.
25595         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
25596         (read_agg_replacement_chain): Likewise.
25597         (ipcp_transform_function): Also check that by_ref flags match.
25599 2013-05-02  Richard Biener  <rguenther@suse.de>
25601         * graphds.h (struct graph): Add obstack member.
25602         * graphds.c (new_graph): Initialize obstack and allocate
25603         vertices from it.
25604         (add_edge): Allocate edge from the obstack.
25605         (free_graph): Free the obstack instead of all edges and vertices.
25607 2013-05-02  Teresa Johnson  <tejohnson@google.com>
25609         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
25610         divides.
25611         * cfg.c (update_bb_profile_for_threading): Ditto.
25612         * tree-inline.c (copy_bb): Ditto.
25613         (copy_edges_for_bb): Ditto.
25614         (initialize_cfun): Ditto.
25615         (copy_cfg_body): Ditto.
25616         (expand_call_inline): Ditto.
25617         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
25618         (estimate_node_size_and_time): Ditto.
25619         (inline_merge_summary): Ditto.
25620         * cgraphclones.c (cgraph_clone_edge): Ditto.
25621         (cgraph_clone_node): Ditto.
25622         * sched-rgn.c (compute_dom_prob_ps): Ditto.
25623         (compute_trg_info): Ditto.
25625 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
25627         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
25628         S reg when fp attribute set.
25629         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
25631 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
25633         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
25634         New pattern.
25635         (*and_one_cmplsi3_compare0_uxtw): Likewise.
25636         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
25637         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
25639 2013-05-02  Richard Biener  <rguenther@suse.de>
25641         * tree-scalar-evolution.c (scev_info_hasher): Remove.
25642         (struct instantiate_cache_entry): New type.
25643         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
25644         (struct instantiate_cache_type): New type.
25645         (set_instantiated_value, get_instantiated_value): Remove.
25646         (get_instantiated_value_entry): New function.
25647         (instantiate_scev_name): Use the new cache and adjust.
25648         (instantiate_scev_poly): Adjust.
25649         (instantiate_scev_binary): Likewise.
25650         (instantiate_array_ref): Likewise.
25651         (instantiate_scev_convert): Likewise.
25652         (instantiate_scev_not): Likewise.
25653         (instantiate_scev_3): Likewise.
25654         (instantiate_scev_2): Likewise.
25655         (instantiate_scev_r): Likewise.
25656         (instantiate_scev): Likewise.
25657         (resolve_mixers): Likewise.
25659 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
25661         PR target/57091
25662         * lra-constraints.c (best_small_class_operands_num): Remove.
25663         (process_alt_operands): Remove small_class_operands_num.  Take
25664         small classes operands into losers and only if the operand is not
25665         matched.  Modify debugging output.
25666         (curr_insn_transform): Remove best_small_class_operands_num.
25667         Print insn name.
25669 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
25671         * config/aarch64/aarch64-builtins.c
25672         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
25673         * config/aarch64/aarch64-simd-builtins.def
25674         (reduc_splus_): Add new modes.
25675         (reduc_uplus_): New.
25676         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
25677         (reduc_uplus_v4sf): Likewise.
25678         (reduc_splus_v4sf): Likewise.
25679         (aarch64_addv<mode>): Likewise.
25680         (reduc_uplus_<mode>): Likewise.
25681         (reduc_splus_<mode>): Likewise.
25682         (aarch64_addvv2di): Likewise.
25683         (reduc_uplus_v2di): Likewise.
25684         (reduc_splus_v2di): Likewise.
25685         (aarch64_addvv2si): Likewise.
25686         (reduc_uplus_v2si): Likewise.
25687         (reduc_splus_v2si): Likewise.
25688         (reduc_<sur>plus_<mode>): New.
25689         (reduc_<sur>plus_v2di): Likewise.
25690         (reduc_<sur>plus_v2si): Likewise.
25691         (reduc_<sur>plus_v4sf): Likewise.
25692         (aarch64_addpv4sf): Likewise.
25693         * config/aarch64/arm_neon.h
25694         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
25695         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
25696         add UNSPEC_SADDV, UNSPEC_UADDV.
25697         (SUADDV): New.
25698         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
25700 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
25702         * config/aarch64/arm_neon.h
25703         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
25705 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
25707         * config/aarch64/aarch64-builtins
25708         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
25710 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
25712         * config/aarch64/aarch64-simd-builtins.def
25713         (reduc_smax_): New.
25714         (reduc_smin_): Likewise.
25715         (reduc_umax_): Likewise.
25716         (reduc_umin_): Likewise.
25717         (reduc_smax_nan_): Likewise.
25718         (reduc_smin_nan_): Likewise.
25719         (fmax): Remove.
25720         (fmin): Likewise.
25721         (smax): Update for V2SF, V4SF and V2DF modes.
25722         (smin): Likewise.
25723         (smax_nan): New.
25724         (smin_nan): Likewise.
25725         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
25726         (<su><maxmin><mode>3): ...This, refactor.
25727         (s<maxmin><mode>3): New.
25728         (<maxmin_uns><mode>3): Likewise.
25729         (reduc_<maxmin_uns>_<mode>): Refactor.
25730         (reduc_<maxmin_uns>_v4sf): Likewise.
25731         (reduc_<maxmin_uns>_v2si): Likewise.
25732         (aarch64_<fmaxmin><mode>: Remove.
25733         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
25734         new builtin names.
25735         (vmin<q>_f<32,64>): Likewise.
25736         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
25737         (FMAXMIN): New.
25738         (su): Add mappings for smax, smin, umax, umin.
25739         (maxmin): New.
25740         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
25741         (FMAXMIN): Rename as...
25742         (FMAXMIN_UNS): ...This.
25743         (maxminv): Remove.
25744         (fmaxminv): Likewise.
25745         (fmaxmin): Likewise.
25746         (maxmin_uns): New.
25747         (maxmin_uns_op): Likewise.
25749 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
25751         * config/aarch64/arm_neon.h
25752         (vac<ge, gt><sd>_f<32, 64>): Rename to...
25753         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
25754         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
25756 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
25758         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
25759         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
25761 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
25763         * config/aarch64/aarch64-simd.md
25764         (vcond<mode>_internal): Handle special cases for constant masks.
25765         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
25766         (vcondu<mode><mode>): Likewise.
25767         (vcond<v_cmp_result><mode>): New.
25769 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
25771         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
25772         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
25773         * config/aarch64/aarch64-simd-builtins.def
25774         (cmeq): Update to BUILTIN_VALLDI.
25775         (cmgt): Likewise.
25776         (cmge): Likewise.
25777         (cmle): Likewise.
25778         (cmlt): Likewise.
25779         * config/aarch64/arm_neon.h
25780         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
25781         to builtins or C as appropriate.
25783 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
25785         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
25786         (cmgeu): ...This.
25787         (cmhi): Rename to...
25788         (cmgtu): ...This.
25789         * config/aarch64/aarch64-simd.md
25790         (simd_mode): Add SF.
25791         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
25792         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
25793         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
25794         (cstore<mode>_neg): ...This.
25795         * config/aarch64/iterators.md
25796         (VALLF): new.
25797         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
25798         (COMPARISONS): New.
25799         (UCOMPARISONS): Likewise.
25800         (optab): Add missing comparisons.
25801         (n_optab): New.
25802         (cmp_1): Likewise.
25803         (cmp_2): Likewise.
25804         (CMP): Likewise.
25805         (cmp): Remove.
25806         (VCMP_S): Likewise.
25807         (VCMP_U): Likewise.
25808         (V_cmp_result): Add DF, SF modes.
25809         (v_cmp_result): Likewise.
25810         (v): Likewise.
25811         (vmtype): Likewise.
25812         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
25814 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
25816         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
25817         define_insn to define_insn_and_split.
25818         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
25819         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
25820         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
25821         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
25822         (thumb2_negscc): Likewise.
25824 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
25826         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
25828 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
25830         * config/arm/thumb2.md: Remove trailing whitespaces.
25832 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
25834         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
25835         Use gen_int_mode rather than GEN_INT.
25837 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
25839         * value-prof.c (stream_in_histogram_value): Remove the strayed
25840         debug_gimple_stmt.
25842 2013-04-30  Richard Biener  <rguenther@suse.de>
25844         PR middle-end/57122
25845         * cfghooks.c (split_edge): Properly check for the loop latch edge.
25847 2013-04-30  Richard Biener  <rguenther@suse.de>
25849         PR middle-end/57107
25850         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
25852 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
25854         PR rtl-optimization/56957
25855         PR rtl-optimization/57105
25856         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
25857         variable.  Use just INSN_UID for determining whether an insn
25858         should be only disconnected from the insn stream.
25859         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
25861 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
25863         PR tree-optimization/57104
25864         * tsan.c (instrument_expr): Don't instrument accesses to
25865         DECL_HARD_REGISTER VAR_DECLs.
25867 2013-04-30  Richard Biener  <rguenther@suse.de>
25869         * function.h (loops_for_fn): New inline function.
25870         (set_loops_for_fn): Likewise.
25871         * cfgloop.h (place_new_loop): Add struct function parameter.
25872         (get_loop): Likewise.
25873         (get_loops): Likewise.
25874         (number_of_loops): Likewise.
25875         (fel_next): Adjust.
25876         (fel_init): Likewise.
25877         * cfg.c (get_loop_copy): Adjust.
25878         * cfgloop.c (flow_loops_dump): Likewise.
25879         (record_loop_exits): Likewise.
25880         (verify_loop_structure): Likewise.
25881         * cfgloopanal.c (mark_irreducible_loops): Likewise.
25882         (estimate_reg_pressure_cost): Likewise.
25883         (mark_loop_exit_edges): Likewise.
25884         * cfgloopmanip.c (place_new_loop): Likewise.
25885         (add_loop): Likewise.
25886         (duplicate_loop): Likewise.
25887         * graph.c (draw_cfg_nodes): Likewise.
25888         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
25889         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
25890         (extract_affine_chrec): Likewise.
25891         (build_scop_iteration_domain): Likewise.
25892         * graphite.c (graphite_initialize): Likewise.
25893         * ira-build.c (create_loop_tree_nodes): Likewise.
25894         (more_one_region_p): Likewise.
25895         (rebuild_regno_allocno_maps): Likewise.
25896         (mark_loops_for_removal): Likewise.
25897         (mark_all_loops_for_removal): Likewise.
25898         (remove_unnecessary_regions): Likewise.
25899         (ira_build): Likewise.
25900         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
25901         * loop-init.c (fix_loop_structure): Likewise.
25902         (gate_rtl_move_loop_invariants): Likewise.
25903         (gate_rtl_unswitch): Likewise.
25904         (gate_rtl_unroll_and_peel_loops): Likewise.
25905         (rtl_doloop): Likewise.
25906         * lto-streamer-in.c (input_cfg): Likewise.
25907         * lto-streamer-out.c (output_cfg): Likewise.
25908         * modulo-sched.c (sms_schedule): Likewise.
25909         * predict.c (tree_estimate_probability): Likewise.
25910         (tree_estimate_probability_driver): Likewise.
25911         (estimate_loops): Likewise.
25912         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
25913         (move_sese_region_to_fn): Likewise.
25914         (debug_loop_num): Likewise.
25915         * tree-chrec.c (chrec_evaluate): Likewise.
25916         (hide_evolution_in_other_loops_than_loop): Likewise.
25917         (chrec_component_in_loop_num): Likewise.
25918         (reset_evolution_in_loop): Likewise.
25919         (evolution_function_is_invariant_rec_p): Likewise.
25920         * tree-if-conv.c (main_tree_if_conversion): Likewise.
25921         * tree-inline.c (copy_loops): Likewise.
25922         (copy_cfg_body): Likewise.
25923         (tree_function_versioning): Likewise.
25924         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
25925         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
25926         Likewise.
25927         (add_to_evolution_1): Likewise.
25928         (scev_const_prop): Likewise.
25929         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
25930         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
25931         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
25932         (tree_ssa_lim_initialize): Likewise.
25933         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
25934         (verify_loop_closed_ssa): Likewise.
25935         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
25936         (tree_ssa_loop_im): Likewise.
25937         (tree_ssa_loop_unswitch): Likewise.
25938         (tree_vectorize): Likewise.
25939         (check_data_deps): Likewise.
25940         (tree_ssa_loop_ivcanon): Likewise.
25941         (tree_ssa_loop_bounds): Likewise.
25942         (tree_complete_unroll): Likewise.
25943         (tree_complete_unroll_inner): Likewise.
25944         (tree_parallelize_loops): Likewise.
25945         (tree_ssa_loop_prefetch): Likewise.
25946         (tree_ssa_loop_ivopts): Likewise.
25947         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
25948         * tree-vectorizer.c (vectorize_loops): Likewise.
25950 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
25952         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
25953         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
25954         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
25955         with EABI_LINK_SPEC.
25957 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
25959         PR target/44578
25960         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
25961         alternative.
25963 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
25965         PR target/57097
25966         * lra-constraints.c (process_alt_operands): Discourage a bit more
25967         using memory for pseudos.  Print cost dump for alternatives.
25968         Modify cost values for conflicts with early clobbers.
25969         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
25971 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
25973         PR target/57098
25974         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
25976 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
25978         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
25979         from/to S register.
25980         (movdi_aarch64): Support LDR/STR from/to D register.
25982 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
25984         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
25985         or higher by default.
25987 2013-04-29  Richard Biener  <rguenther@suse.de>
25989         PR middle-end/57075
25990         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
25991         even if not adding abnormal edges for calls that can make
25992         abnormal gotos.
25994 2013-04-29  Richard Biener  <rguenther@suse.de>
25996         PR middle-end/57103
25997         * tree-cfg.c (move_stmt_op): Fix condition under which to update
25998         TREE_BLOCK.
25999         (move_stmt_r): Remove redundant checking.
26001 2013-04-29  Teresa Johnson  <tejohnson@google.com>
26003         PR bootstrap/57077
26004         * basic-block.h (apply_scale): New function.
26005         (apply_probability): Use apply_scale.
26006         * gimple-streamer-in.c (input_bb): Ditto.
26007         * lto-streamer-in.c (input_cfg): Ditto.
26008         * lto-cgraph.c (merge_profile_summaries): Ditto.
26009         * tree-optimize.c (execute_fixup_cfg): Ditto.
26010         * tree-inline.c (copy_bb): Update comment to use apply_scale.
26011         (copy_edges_for_bb): Ditto.
26012         (copy_cfg_body): Ditto.
26014 2013-04-29  Tom de Vries  <tom@codesourcery.com>
26016         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
26017         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
26018         (tail_merge_optimize): Handle current_loops == NULL.
26020 2013-04-26  Jeff Law  <law@redhat.com>
26022         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
26023         (simplify_cond_using_ranges): Generalize code to simplify
26024         COND_EXPRs where one argument is a constant and the other
26025         is an SSA_NAME created by an integral type conversion.
26027 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26029         * config/arm/arm.md (store_minmaxsi): Use only when
26030         optimize_insn_for_size_p.
26032 2013-04-29  Christian Bruel  <christian.bruel@st.com>
26034         PR target/57108
26035         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
26037 2013-04-29  Richard Biener  <rguenther@suse.de>
26039         PR middle-end/57089
26040         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
26041         loop tree make sure to schedule a fixup for the child as well.
26042         (expand_omp_for_generic): Properly add loops.
26043         (expand_omp_for_static_nochunk): Likewise.
26044         (expand_omp_for_static_chunk): Likewise.
26045         (expand_omp_for): For the degenerate case fixup loops.
26046         (expand_omp_sections): Fix default bb placement in loops.
26047         (expand_omp_atomic_pipeline): Properly add loops.
26049 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26051         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
26053 2013-04-29  Tom de Vries  <tom@codesourcery.com>
26055         * tree-ssa-tail-merge.c: Update header comment.
26057 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
26059         * config/aarch64/arm_neon.h
26060         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
26061         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
26062         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
26063         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
26064         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
26065         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
26066         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
26067         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
26069 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
26071         * config/aarch64/aarch64-simd.md
26072         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
26073         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
26074         fix_trunc, fixuns_trunc.
26075         (ftrunc<VDQF:mode>2): New.
26076         * config/aarch64/iterators.md (optab): Add fix, fixuns.
26077         (fix_trunc_optab): New.
26079 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
26081         * config/aarch64/aarch64-builtins.c
26082         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
26083         iceilf, lround, iroundf.
26085 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
26087         PR target/54349
26088         * config/i386/i386.h (enum ix86_tune_indices)
26089         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
26090         New, split from X86_TUNE_INTER_UNIT_MOVES.
26091         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
26092         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
26093         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
26094         (TARGET_INTER_UNIT_MOVES): Remove.
26095         * config/i386/i386.c (initial_ix86_tune_features): Update.
26096         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
26097         (ix86_expand_convert_uns_didf_sse): Use
26098         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
26099         (ix86_expand_vector_init_one_nonzero): Ditto.
26100         (ix86_expand_vector_init_interleave): Ditto.
26101         (inline_secondary_memory_needed): Return true for moves from SSE class
26102         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
26103         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
26104         * config/i386/constraints.md (Yi, Ym): Depend on
26105         TARGET_INTER_UNIT_MOVES_TO_VEC.
26106         (Yj, Yn): New constraints.
26107         * config/i386/i386.md (*movdi_internal): Change constraints of
26108         operand 1 from Yi to Yj and from Ym to Yn.
26109         (*movsi_internal): Ditto.
26110         (*movdf_internal): Ditto.
26111         (*movsf_internal): Ditto.
26112         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
26113         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
26114         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
26115         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
26116         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
26117         * config/i386/sse.md (movdi_to_sse): Ditto.
26118         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
26119         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
26120         TARGET_INTER_UNIT_MOVES.
26121         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
26122         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
26123         instead of TARGET_INTER_UNIT_MOVES.
26124         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
26125         operand 1 from Yi to Yj and from Ym to Yn.
26127 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
26129         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
26130         (float_truncate_hi_): Likewise.
26131         (float_extend_lo_): Likewise.
26132         (float_truncate_lo_): Likewise.
26133         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
26134         (aarch64_float_extend_lo_v2df): Likewise.
26135         (vec_unpacks_hi_v4sf): Likewise.
26136         (aarch64_float_truncate_lo_v2sf): Likewise.
26137         (aarch64_float_truncate_hi_v4sf): Likewise.
26138         (vec_pack_trunc_v2df): Likewise.
26139         (vec_pack_trunc_df): Likewise.
26141 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
26143         * config/aarch64/aarch64-builtins.c
26144         (aarch64_fold_builtin): Fold float conversions.
26145         * config/aarch64/aarch64-simd-builtins.def
26146         (floatv2si, floatv4si, floatv2di): New.
26147         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
26148         * config/aarch64/aarch64-simd.md
26149         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
26150         * config/aarch64/iterators.md (FLOATUORS): New.
26151         (optab): Add float, floatuns.
26152         (su_optab): Likewise.
26154 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
26156         * config/aarch64/aarch64-builtins.c
26157         (aarch64_builtin_vectorized_function): Use new names for
26158         fcvt builtins.
26159         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
26160         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
26161         (fcvtzu): Split as...
26162         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
26163         (fcvtas): Split as...
26164         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
26165         (fcvtau): Split as...
26166         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
26167         (fcvtps): Split as...
26168         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
26169         (fcvtpu): Split as...
26170         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
26171         (fcvtms): Split as...
26172         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
26173         (fcvtmu): Split as...
26174         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
26175         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
26176         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
26177         (lfrintnusf, lfrintnudf): Likewise.
26178         * config/aarch64/aarch64-simd.md
26179         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
26180         define_insn.
26181         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
26182         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
26183         (fcvt_pattern): Likewise.
26185 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
26187         * config/aarch64/aarch64-simd.md
26188         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
26189         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
26191 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
26193         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
26194         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
26195         (vrnd<a,m,n,p>_f32): Implement using builtins.
26196         (vrnd<i,x><q>_f<32, 64>): New.
26198 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
26200         * config/aarch64/aarch64-builtins.c
26201         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
26202         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
26203         (frintz): Rename to...
26204         (btrunc): ...this.
26205         (frintp): Rename to...
26206         (ceil): ...this.
26207         (frintm): Rename to...
26208         (floor): ...this.
26209         (frinti): Rename to...
26210         (nearbyint): ...this.
26211         (frintx): Rename to...
26212         (rint): ...this.
26213         (frinta): Rename to...
26214         (round): ...this.
26215         * config/aarch64/aarch64-simd.md
26216         (aarch64_frint<frint_suffix><mode>): Delete.
26217         (<frint_pattern><mode>2): Convert to insn.
26218         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
26219         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
26220         (frint_pattern): Likewise.
26221         (frint_suffix): Likewise.
26223 2013-04-29  Richard Biener  <rguenther@suse.de>
26225         PR tree-optimization/57081
26226         * loop-init.c: Include tree-flow.h.
26227         (loop_optimizer_finalize): Free number of iteration estimates.
26228         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
26230 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
26232         PR tree-optimization/57083
26233         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
26234         non-singleton shift count range, zero extend low_bound for uns case.
26236         * config/i386/predicates.md (general_vector_operand): New predicate.
26237         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
26238         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
26239         if they aren't nonimmediate operands.  If their original values
26240         satisfy const_vector_equal_evenodd_p, don't shift them.
26241         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
26242         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
26243         if not nonimmediate_operand.
26244         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
26245         instead of register_operand.
26246         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
26248 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
26250         * stor-layout.c (finalize_size_functions): Allocate a structure and
26251         reset cfun before dumping the functions.
26253 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
26255         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
26257         PR target/56866
26258         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
26259         use xop_pmacsdqh if uns_p.
26260         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
26261         the immediate rotate count.
26263 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
26265         * rtl.h (struct rtx_def): Add comment for field jump.
26266         (LRA_SUBREG_P): New macro.
26267         * recog.c (register_operand): Check LRA_SUBREG_P.
26268         * lra.c (lra): Add note at the end of RTL code. Align non-empty
26269         stack frame.
26270         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
26271         (lra_final_code_change): Skip subreg change for operators.
26272         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
26273         if there are no operand changes.
26274         * lra-constraints.c (curr_insn_set): New.
26275         (match_reload): Set LRA_SUBREG_P.
26276         (emit_spill_move): Ditto.
26277         (check_and_process_move): Use curr_insn_set. Process only single
26278         set insns.  Don't initialize sec_mem_p and change_p.
26279         (simplify_operand_subreg): Use LRA_SUBREG_P.
26280         (reg_in_class_p): New function.
26281         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
26282         of #ifdef.  Add code to remove cycling.
26283         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
26284         non-null disp.  Reload inner instead of disp when base and index
26285         are null.  Try to put lo_sum into register.
26286         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
26287         (check_and_process_move): Move code for move cost check to
26288         simple_move_p.  Remove equiv_substitution.
26289         (simple_move_p): New function.
26290         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
26291         curr_insn_set.  Call check_and_process_move only for single set
26292         insns.  Use the new function.  Move call of check_and_process_move
26293         after operand equiv substitution and address process.
26295 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
26297         PR go/57045
26298         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
26299         with nonlocal goto receivers or returns twice calls, ignore
26300         unininitialized values from abnormal edges to nl goto receiver
26301         or returns twice call.
26303 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
26305         PR tree-optimization/57051
26306         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
26307         and VEC_RSHIFT_EXPR if shift count is a multiple of element
26308         bitsize.
26310 2013-04-26  Richard Biener  <rguenther@suse.de>
26312         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
26313         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
26314         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
26315         (fixup_loop_arrays_after_move): New function.
26316         (move_sese_region_to_fn): Properly outline the loop tree parts
26317         of the SESE region.
26319 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
26321         * config/i386/i386.md (type, unit): Fix long lines.
26323 2013-04-26  Richard Biener  <rguenther@suse.de>
26325         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
26326         (lto-streamer-out.o): Likewise.
26327         * cfgloop.c (init_loops_structure): Export, add struct function
26328         argument and adjust.
26329         (flow_loops_find): Adjust.
26330         * cfgloop.h (enum loop_estimation): Add EST_LAST.
26331         (init_loops_structure): Declare.
26332         * lto-streamer-in.c: Include cfgloop.h.
26333         (input_cfg): Input the loop tree.
26334         * lto-streamer-out.c: Include cfgloop.h.
26335         (output_cfg): Output the loop tree.
26336         (output_struct_function_base): Do not drop PROP_loops.
26338 2013-03-26  Richard Biener  <rguenther@suse.de>
26340         * tree-cfg.c (execute_build_cfg): Build the loop tree.
26341         (pass_build_cfg): Provide PROP_loops.
26342         (move_sese_region_to_fn): Remove loops that are outlined into fn
26343         for now.
26344         * tree-inline.c: Include cfgloop.h.
26345         (initialize_cfun): Do not drop PROP_loops.
26346         (copy_loops): New function.
26347         (copy_cfg_body): Copy loop structure.
26348         (tree_function_versioning): Initialize destination loop tree.
26349         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
26350         (pass_parallelize_loops): Do IL verification.
26351         * loop-init.c (loop_optimizer_init): Fixup loops if required.
26352         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
26353         the CFG make sure we fixup loops as well.
26354         * tree-ssa-tail-merge.c: Include cfgloop.h.
26355         (replace_block_by): When merging loop latches mark loops for fixup.
26356         * lto-streamer-out.c (output_struct_function_base): Drop
26357         PROP_loops for now.
26358         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
26359         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
26360         * ipa-split.c: Include cfgloop.h.
26361         (split_function): Add the new return block to the loop tree root.
26362         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
26363         whether we have removed the forwarder block.
26364         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
26365         * cfgloop.h (place_new_loop): Declare.
26366         * cfgloopmanip.c (place_new_loop): Export.
26367         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
26368         (tree-switch-conversion.o): Likewise.
26369         (tree-complex.o): Likewise.
26370         (tree-inline.o): Likewise.
26371         (tree-ssa-tailmerge.o): Likewise.
26372         (ipa-split.o): Likewise.
26373         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
26374         (tree-ssa-copy.o): Likewise.
26375         * tree-switch-conversion.c: Include cfgloop.h
26376         (process_switch): If we emit a bit-test cascade, schedule loops
26377         for fixup.
26378         * tree-complex.c: Include cfgloop.h.
26379         (expand_complex_div_wide): Properly add new basic-blocks to loops.
26380         * asan.c: Include cfgloop.h.
26381         (create_cond_insert_point): Properly add new basic-blocks to
26382         loops, schedule loop fixup.
26383         * cfgloop.c (verify_loop_structure): Check that looks are not
26384         marked for fixup.
26385         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
26386         to loops.
26387         (expand_omp_for_generic): Likewise.
26388         (expand_omp_sections): Likewise.
26389         (expand_omp_atomic_pipeline): Schedule loops for fixup.
26390         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
26391         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
26392         is initialized, not when loops are present.
26393         * tree-parloops.c (parallelize_loops): Remove checking here.
26394         * passes.c (init_optimization_passes): Schedule a copy-propagation
26395         pass before complete unrolling of inner loops.
26397 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
26399         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
26400         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
26401         (colorize_init): Add argument to _WIN32 version.
26402         * toplev.c: Include diagnostic-color.h.
26403         (process_options): Default to -fdiagnostics-color=auto if
26404         GCC_COLORS env var is in the environment.
26405         * common.opt (fdiagnostics-color=): Add Var and Init.
26406         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
26407         env var is in the environment, the default is auto rather than never.
26409         * diagnostic.h (file_name_as_prefix): Add context argument.
26410         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
26411         the string as locus.
26412         * langhooks.c (lhd_print_error_function): Adjust caller.
26414 2013-04-25  Lawrence Crowl  <crowl@google.com>
26416         * var-tracking.c (shared_hash_def::htab):
26417         Change type to hash_table.  Update dependent calls and types.
26419 2013-04-25  Lawrence Crowl  <crowl@google.com>
26421         * Makefile.in: Update as needed below.
26423         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
26424         Move declaration to after the type's method definitons.
26426         * attribs.c (htab_t scoped_attributes::attribute_hash):
26427         Change type to hash_table.  Update dependent calls and types.
26429         * bitmap.c (htab_t bitmap_desc_hash):
26430         Change type to hash_table.  Update dependent calls and types.
26432         * cselib.c (htab_t cselib_hash_table):
26433         Change type to hash_table.  Update dependent calls and types.
26435         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
26436         (hash_string_slot_node): Move implementation into lto-streamer.h
26437         struct string_slot_hasher.
26438         (eq_string_slot_node): Likewise.
26440         * data-streamer-out.c: Update output_block::string_hash_table
26441         dependent calls and types.
26443         * dwarf2cfi.c (htab_t trace_index):
26444         Change type to hash_table.  Update dependent calls and types.
26446         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
26447         Change type to hash_table.  Update dependent calls and types.
26448         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
26449         (htab_t optimize_external_refs::map): Likewise.
26450         (htab_t output_comp_unit::extern_map): Likewise.
26451         (htab_t output_comdat_type_unit::extern_map): Likewise.
26452         (htab_t output_macinfo::macinfo_htab): Likewise.
26453         (htab_t optimize_location_lists::htab): Likewise.
26454         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
26456         * except.c (htab_t ehspec_hash_type):
26457         Change type to hash_table.  Update dependent calls and types.
26458         (assign_filter_values::ttypes): Likewise.
26459         (assign_filter_values::ehspec): Likewise.
26460         (sjlj_assign_call_site_values::ar_hash): Likewise.
26461         (convert_to_eh_region_ranges::ar_hash): Likewise.
26463         * gcse.c (htab_t pre_ldst_table):
26464         Change type to hash_table.  Update dependent calls and types.
26466         * ggc-common.c (htab_t saving_htab):
26467         Change type to hash_table.  Update dependent calls and types.
26468         (htab_t loc_hash): Likewise.
26469         (htab_t ptr_hash): Likewise.
26470         (call_count): Rename ggc_call_count.
26471         (call_alloc): Rename ggc_call_alloc.
26472         (loc_descriptor): Rename make_loc_descriptor.
26473         (add_statistics): Rename ggc_add_statistics.
26475         * ggc-common.c (saving_htab):
26476         Change type to hash_table.  Update dependent calls and types.
26478         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
26479         (push_gimplify_context): Likewise.
26480         (pop_gimplify_context): Likewise.
26481         (struct gimple_temp_hash_elt): Added.
26482         (struct gimplify_hasher): Likewise.
26483         (struct gimplify_ctx.temp_htab):
26484         Change type to hash_table.  Update dependent calls and types.
26486         * gimple-fold.c: Include gimplify-ctx.h.
26488         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
26489         Change type to hash_table.  Update dependent calls and types.
26490         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
26491         avoid potential global name collision.
26493         * gimplify.c: Include gimplify-ctx.h.
26494         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
26495         (htab_t gimplify_ctx::temp_htab):
26496         Update dependent calls and types for new type hash_table.
26497         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
26498         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
26500         * gimplify-ctx.h: New.
26501         (struct gimple_temp_hash_elt): Move from gimplify.c.
26502         (class gimplify_hasher): New.
26503         (struct gimplify_ctx): Move from gimple.h.
26504         (htab_t gimplify_ctx::temp_htab):
26505         Change type to hash_table.  Update dependent calls and types.
26507         * graphite-clast-to-gimple.c: Include graphite-htab.h.
26508         (htab_t ivs_params::newivs_index):
26509         Change type to hash_table.  Update dependent calls and types.
26510         (htab_t ivs_params::params_index): Likewise.
26511         (htab_t print_generated_program::params_index): Likewise.
26512         (htab_t gloog::newivs_index): Likewise.
26513         (htab_t gloog::params_index): Likewise.
26515         * graphite.c: Include graphite-htab.h.
26516         4htab_t graphite_transform_loops::bb_pbb_mapping):
26517         Change type to hash_table.  Update dependent calls and types.
26519         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
26520         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
26521         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
26523         * graphite-dependences.c: Include graphite-htab.h.
26524         (loop_is_parallel_p): Change hash table type of parameter.
26526         * graphite-htab.h: New.
26527         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
26528         (extern find_pbb_via_hash): Move from graphite-poly.h.
26529         (extern loop_is_parallel_p): Move from graphite-poly.h.
26530         (extern get_loop_body_pbbs): Move from graphite-poly.h.
26532         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
26533         (extern loop_is_parallel_p): Move to graphite-htab.h.
26534         (extern get_loop_body_pbbs): Move to graphite-htab.h.
26536         * haifa-sched.c (htab_t delay_htab):
26537         Change type to hash_table.  Update dependent calls and types.
26538         (htab_t delay_htab_i2): Likewise.
26540         * ira-color.c (htab_t allocno_hard_regs_htab):
26541         Change type to hash_table.  Update dependent calls and types.
26543         * ira-costs.c (htab_t cost_classes_htab):
26544         Change type to hash_table.  Update dependent calls and types.
26546         * loop-invariant.c (htab_t merge_identical_invariants::eq):
26547         Change type to hash_table.  Update dependent calls and types.
26549         * loop-iv.c (htab_t bivs):
26550         Change type to hash_table.  Update dependent calls and types.
26552         * loop-unroll.c (htab_t opt_info::insns_to_split):
26553         Change type to hash_table.  Update dependent calls and types.
26554         (htab_t opt_info::insns_with_var_to_expand): Likewise.
26556         * lto-streamer.h (struct string_slot): Move from data-streamer.h
26557         (struct string_slot_hasher): New.
26558         (htab_t output_block::string_hash_table):
26559         Change type to hash_table.  Update dependent calls and types.
26561         * lto-streamer-in.c (freeing_string_slot_hasher): New.
26562         (htab_t file_name_hash_table):
26563         Change type to hash_table.  Update dependent calls and types.
26565         * lto-streamer-out.c: Update output_block::string_hash_table dependent
26566         calls and types.
26568         * lto-streamer.c (htab_t tree_htab):
26569         Change type to hash_table.  Update dependent calls and types.
26571         * omp-low.c: Include gimplify-ctx.h.
26573         * passes.c (htab_t name_to_pass_map):
26574         Change type to hash_table.  Update dependent calls and types.
26575         (pass_traverse): Rename to passes_pass_traverse.
26577         * plugin.c (htab_t event_tab):
26578         Change type to hash_table.  Update dependent calls and types.
26580         * postreload-gcse.c (htab_t expr_table):
26581         Change type to hash_table.  Update dependent calls and types.
26582         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
26584         * sese.c (debug_rename_map_1): Make extern.
26585         (htab_t copy_bb_and_scalar_dependences::rename_map):
26586         Change type to hash_table.  Update dependent calls and types.
26588         * sese.h (extern debug_rename_map): Move to .c file.
26590         * store-motion.c (htab_t store_motion_mems_table):
26591         Change type to hash_table.  Update dependent calls and types.
26593         * trans-mem.c (htab_t tm_new_mem_hash):
26594         Change type to hash_table.  Update dependent calls and types.
26596         * tree-browser.c (htab_t TB_up_ht):
26597         Change type to hash_table.  Update dependent calls and types.
26599         * tree-cfg.c (htab_t discriminator_per_locus):
26600         Change type to hash_table.  Update dependent calls and types.
26602         * tree-complex.c: Include tree-hasher.h
26603         (htab_t complex_variable_components):
26604         Change type to hash_table.  Update dependent calls and types.
26606         * tree-eh.c (htab_t finally_tree):
26607         Change type to hash_table.  Update dependent calls and types.
26609         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
26610         struct int_tree_hasher.
26611         (extern int_tree_map_eq): Likewise.
26612         (uid_decl_map_hash): Removed.
26613         (extern decl_tree_map_eq): Likewise.
26615         * tree-hasher.h: New.
26616         (struct int_tree_hasher): New.
26617         (typedef int_tree_htab_type): New.
26619         * tree-inline.c: Include gimplify-ctx.h.
26621         * tree-mudflap.c: Include gimplify-ctx.h.
26623         * tree-parloops.c: Include tree-hasher.h.
26624         (htab_t eliminate_local_variables_stmt::decl_address):
26625         Change type to hash_table.  Update dependent calls and types.
26626         (htab_t separate_decls_in_region::decl_copies): Likewise.
26628         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
26629         Change type to hash_table.  Update dependent calls and types.
26631         * tree-sra.c (candidates):
26632         Change type to hash_table.  Update dependent calls and types.
26634         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
26635         in tree-flow.h.
26636         (int_tree_map_hash): Likewise.
26638         * tree-ssa-dom.c (htab_t avail_exprs):
26639         Change type to hash_table.  Update dependent calls and types.
26641         * tree-ssa-live.c (var_map_base_init::tree_to_index):
26642         Change type to hash_table.  Update dependent calls and types.
26644         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
26645         Change type to hash_table.  Update dependent calls and types.
26647         * tree-ssa-phiopt.c (seen_ssa_names):
26648         Change type to hash_table.  Update dependent calls and types.
26650         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
26651         Change type to hash_table.  Update dependent calls and types.
26653         * tree-ssa-uncprop.c (equiv):
26654         Change type to hash_table.  Update dependent calls and types.
26656 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
26658         PR rtl-optimization/57003
26659         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
26660         call note_stores with kill_clobbered_value callback again after
26661         killing regs_invalidated_by_call.
26663 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
26665         * config/aarch64/aarch64-simd.md
26666         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
26667         (aarch64_simd_bsl<mode>): Likewise.
26668         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
26670 2013-04-25  Marek Polacek  <polacek@redhat.com>
26672         PR tree-optimization/57066
26673         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
26675 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
26677         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
26679 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
26681         * config/aarch64/aarch64-builtins.c
26682         (aarch64_fold_builtin): New.
26683         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
26684         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
26685         * config/aarch64/aarch64-simd-builtins.def (abs): New.
26686         * config/aarch64/arm_neon.h
26687         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
26689 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
26690             Tejas Belagod  <tejas.belagod@arm.com>
26692         * config/aarch64/aarch64-builtins.c
26693         (aarch64_gimple_fold_builtin): New.
26694         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
26695         * config/aarch64/aarch64-simd-builtins.def (addv): New.
26696         * config/aarch64/aarch64-simd.md (addpv4sf): New.
26697         (addvv4sf): Update.
26698         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
26700 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
26702         * config/aarch64/aarch64.md
26703         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
26705 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
26707         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
26708         (*ngcsi_uxtw): New pattern.
26710 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26711             Julian Brown  <julian@codesourcery.com>
26713         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
26714         (TB_DREG): Add T_V4HF.
26715         (v4hf_UP): New macro.
26716         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
26717         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
26718         Handle initialisation of V4HF. Adjust initialisation of reinterpret
26719         built-ins.
26720         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
26721         (arm_vector_mode_supported_p): Handle V4HF.
26722         (arm_mangle_map): Handle V4HFmode.
26723         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
26724         * config/arm/arm_neon_builtins.def: Add entries for
26725         vcvtv4hfv4sf, vcvtv4sfv4hf.
26726         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
26727         (neon_vcvtv4hfv4sf): Likewise.
26728         * config/arm/neon-gen.ml: Handle half-precision floating point
26729         features.
26730         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
26731         * config/arm/arm_neon.h: Regenerate.
26732         * config/arm/neon.ml (type elts): Add F16.
26733         (type vectype): Add T_float16x4, T_floatHF.
26734         (type vecmode): Add V4HF.
26735         (type features): Add Requires_FP_bit feature.
26736         (elt_width): Handle F16.
26737         (elt_class): Likewise.
26738         (elt_of_class_width): Likewise.
26739         (mode_of_elt): Refactor.
26740         (type_for_elt): Handle F16, fix error messages.
26741         (vectype_size): Handle T_float16x4.
26742         (vcvt_sh): New function.
26743         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
26744         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
26745         (string_of_mode): Handle V4HF.
26746         * doc/arm-neon-intrinsics.texi: Regenerate.
26748 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
26750         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
26751         format specifier in 'X' case.
26753 2013-04-25  Alan Modra  <amodra@gmail.com>
26755         PR target/57052
26756         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
26757         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
26758         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
26759         Repeat for many other rotate/shift and mask patterns using subregs.
26760         Name lshiftrt insns.
26761         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
26762         on WORDS_BIG_ENDIAN.
26764 2013-04-25  Alan Modra  <amodra@gmail.com>
26766         * config.gcc: Support little-endian powerpc-linux targets.
26767         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
26768         (LINK_OS_LINUX_SPEC): Define.
26769         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
26770         Preserve MASK_LITTLE_ENDIAN.
26771         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
26772         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
26773         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
26774         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
26775         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
26776         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
26777         Correct fp word order for little-endian.  Don't shift toc entries
26778         smaller than a word for little-endian.
26779         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
26780         (bswapdi2 splits): Correct low-part subreg for little-endian.
26781         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
26782         low/high where such is correct only for be.
26783         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
26784         little-endian for -mcall-aixdesc.
26786 2013-04-25  Alan Modra  <amodra@gmail.com>
26788         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
26789         replace_equiv_address_nv.
26791 2013-04-25  Alan Modra  <amodra@gmail.com>
26793         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
26795 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
26797         Revert:
26798         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
26799         * rtl.h (struct rtx_def): ...
26801 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
26803         PR rtl-optimizations/57046
26804         * lra-constraints (split_reg): Set up lra_risky_transformations_p
26805         for multi-reg splits.
26807 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
26809         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
26811 2013-04-24  Sterling Augustine  <saugustine@google.com>
26813         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
26814         (comp_dir_string, debug_str_dwo_section): New.
26815         (DEBUG_STR_DWO_SECTION): Rename to ...
26816         (DEBUG_DWO_STR_SECTION): ... this.
26817         (DEBUG_NORM_STR_SECTION): Delete.
26818         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
26819         (DEBUG_STR_DWO_SECTION_FLAGS): New.
26820         (find_AT_string): Move most logic to ...
26821         (find_AT_string_in_table): ... here.  New.
26822         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
26823         add_skeleton_AT_string.  Delete logic.
26824         (output_skeleton_debug_sections): Remove call to
26825         add_top_level_skeleton_die_attrs.
26826         (add_comp_dir_attribute): Move logic to comp_dir_string.
26827         (dwarf2out_init): Initialize debug_str_dwo_section.
26828         (output_indirect_string): Call find_string_form.
26829         (output_indirect_strings): Rewrite.
26830         (prune_unused_types): Empty skeleton_debug_str_hash.
26831         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
26832         (dwarf2out_finish):  Call output_indirect_strings.
26834 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
26836         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
26838 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
26840         * rtl.h (struct rtx_def): Add comment for field jump.
26841         (LRA_SUBREG_P): New macro.
26842         * recog.c (register_operand): Check LRA_SUBREG_P.
26843         * lra.c (lra): Add note at the end of RTL code. Align non-empty
26844         stack frame.
26845         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
26846         (lra_final_code_change): Skip subreg change for operators.
26847         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
26848         if there are no operand changes.
26849         * lra-constraints.c (curr_insn_set): New.
26850         (match_reload): Set LRA_SUBREG_P.
26851         (emit_spill_move): Ditto.
26852         (check_and_process_move): Use curr_insn_set. Process only single
26853         set insns.  Don't initialize sec_mem_p and change_p.
26854         (simplify_operand_subreg): Use LRA_SUBREG_P.
26855         (reg_in_class_p): New function.
26856         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
26857         of #ifdef.  Add code to remove cycling.
26858         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
26859         non-null disp.  Reload inner instead of disp when base and index
26860         are null.  Try to put lo_sum into register.
26861         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
26862         (check_and_process_move): Move code for move cost check to
26863         simple_move_p.  Remove equiv_substitution.
26864         (simple_move_p): New function.
26865         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
26866         curr_insn_set.  Call check_and_process_move only for single set
26867         insns.  Use the new function.  Move call of check_and_process_move
26868         after operand equiv substitution and address process.
26870 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
26872         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
26873         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
26874         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
26876 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
26878         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
26880 2013-04-24  Marek Polacek  <polacek@redhat.com>
26882         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
26883         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
26884         (select_loops_exit_conditions): Likewise.
26885         (number_of_iterations_for_all_loops): Likewise.
26886         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
26887         (scev_analysis): Likewise.
26889 2013-04-02  Catherine Moore  <clm@codesourcery.com>
26890             Chao-ying Fu  <fu@mips.com>
26892         * config/mips/micromips.md (jraddiusp): New pattern.
26893         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
26894         instruction if possible.
26896 2013-04-24  Alan Modra  <amodra@gmail.com>
26898         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
26900 2013-04-24  Julian Brown  <julian@codesourcery.com>
26901             Chung-Lin Tang  <cltang@codesourcery.com>
26903         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
26904         dependency behavior in enumeration type DIE generation. Add TODO note
26905         to comments about future DW_FORM_sdata/udata re-work of related code.
26907 2013-04-23  Lawrence Crowl  <crowl@google.com>
26909         * Makefile.in: Update as needed below.
26911         * hash-table.h (class hash_table):
26912         Correct many methods with parameter types compare_type to the correct
26913         value_type.  (Correct code was unlikely to notice the change.)
26914         (hash_table::elements_with_deleted) New.
26915         (class hashtable::iterator): New.
26916         (hashtable::begin()): New.
26917         (hashtable::end()): New.
26918         (FOR_EACH_HASH_TABLE_ELEMENT): New.
26920         * statistics.c (statistics_hashes):
26921         Change type to hash_table.  Update dependent calls and types.
26923         * tree-into-ssa.c (var_infos):
26924         Change type to hash_table.  Update dependent calls and types.
26926         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
26927         Change type to hash_table.  Update dependent calls and types.
26929         * tree-ssa-loop-im.c (struct mem_ref.refs):
26930         Change type to hash_table.  Update dependent calls and types.
26932         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
26933         Change type to hash_table.  Update dependent calls and types.
26935         * tree-ssa-sccvn.c (vn_tables_s::nary):
26936         Change type to hash_table.  Update dependent calls and types.
26937         (vn_tables_s::phis): Likewise.
26938         (vn_tables_s::references): Likewise.
26940         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
26941         (vn_reference_eq): Update parameter and return types.
26943         * tree-ssa-structalias.c (pointer_equiv_class_table):
26944         Change type to hash_table.  Update dependent calls and types.
26945         (location_equiv_class_table): Likewise.
26947         * tree-vect-data-refs.c: Consequential changes for making
26948         peeling a hash_table.
26950         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
26951         (destroy_loop_vec_info): Dependent hash_table update.
26953         * tree-vectorizer.h (peeling_htab):
26954         Change type to hash_table.  Update dependent calls and types.
26956 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
26958         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
26959         to check the register content is equal or not.
26960         * lra-constraints.c (match_reload): Use lra_assign_reg_val
26961         to assign register content record.
26962         * lra-eliminations.c (update_reg_eliminate): Use
26963         lra_update_reg_val_offset to update register content offset.
26964         * lra-int.h (struct lra_reg): Add offset member.
26965         (lra_reg_val_equal_p): New static inline function.
26966         (lra_update_reg_val_offset): New static inline function.
26967         (lra_assign_reg_val): New static inline function.
26968         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
26969         to assign register content record.
26970         (initialize_lra_reg_info_element): Initial offset to zero.
26972 2013-04-23  Catherine Moore  <clm@codesourcery.com>
26974         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
26975         operands.  Record compression.
26977 2013-04-23  Xinliang David Li  <davidxl@google.com>
26979         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
26981 2013-04-23  Richard Biener  <rguenther@suse.de>
26983         PR middle-end/57036
26984         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
26985         parameter, only add abnormal goto edges from the copied body
26986         if the call could perform abnormal gotos.
26987         (copy_cfg_body): Adjust.
26989 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
26991         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
26993 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
26995         * coretypes.h (gimple_stmt_iterator): Add struct to make
26996         compatible with C.
26998 2013-04-23  Richard Biener  <rguenther@suse.de>
27000         PR tree-optimization/57026
27001         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
27002         from SSA names occuring in abnormal PHI nodes.
27004 2013-04-22  Andi Kleen  <ak@linux.intel.com>
27006         * lto/lto.c (print_lto_report_1): Fix LTO report names.
27008 2013-04-22  Andi Kleen  <ak@linux.intel.com>
27010         * lto/lto.c (print_lto_report_1): Declare early.
27011         (read_cgraph_and_symbols): Call print_lto_report_1 early.
27013 2013-04-22  Andi Kleen  <ak@linux.intel.com>
27015         * common.opt (-flto-report-wpa): Add.
27016         * doc/invoke.texi (-flto-report-wpa): Add.
27017         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
27018         (lto_main): dito.
27020 2013-04-22  Xinliang David Li  <davidxl@google.com>
27022         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
27023         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
27024         * Makefile.in: New dependency
27026             David Daney <ddaney.cavm@gmail.com>
27028         * configure.ac (gcc_cv_as_micromips_support):  Use the
27029         --fatal-warnings option.
27030         * configure: Regenerate.
27032 2013-04-22  Marek Polacek  <polacek@redhat.com>
27034         PR sanitizer/56990
27035         * tsan.c (instrument_expr): Don't instrument expression
27036         in case its size is zero.
27038 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
27040         PR target/57032
27041         Revert:
27042         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
27044         * config/alpha/alpha.c (TARGET_LRA_P): New define.
27046 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
27048         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
27049         (gimple_stmt_iterator): New typedef.
27050         * gimple.h (gimple_stmt_iterator): Rename to...
27051         (gimple_stmt_iterator_d): ... This.
27052         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
27053         trees be valid for GIMPLE and GENERIC.
27054         (TARGET_GIMPLE_FOLD_BUILTIN): New.
27055         * gimple-fold.c (gimple_fold_call): Call target hook
27056         gimple_fold_builtin.
27057         * hooks.c (hook_bool_gsiptr_false): New.
27058         * hooks.h (hook_bool_gsiptr_false): New.
27059         * target.def (fold_stmt): New.
27060         * doc/tm.texi: Regenerate.
27062 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
27064         PR target/57018
27065         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
27066         a set sp if no stack realignment.
27068 2013-04-22  Nick Clifton  <nickc@redhat.com>
27070         * config.gcc (tilegx-linux): Extend extra_objs rather than
27071         overwriting it.
27072         (tilepro-linux): Likewise.
27074 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
27076         * config/aarch64/aarch64-builtins.c
27077         (CF): Remove.
27078         (CF0, CF1, CF2, CF3, CF4, CF10): New.
27079         (VAR<1-12>): Add MAP parameter.
27080         (BUILTIN_*): Likewise.
27081         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
27082         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
27083         (aarch64_ushl_n<mode>): Likewise.
27084         (aarch64_sshr_n<mode>): Likewise.
27085         (aarch64_ushr_n<mode>): Likewise.
27086         (aarch64_<maxmin><mode>): Likewise.
27087         (aarch64_sqrt<mode>): Likewise.
27088         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
27089         (vshr<q>_n_*): Likewise.
27091 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
27093         * config/aarch64/aarch64-builtins.c
27094         (aarch64_simd_builtin_type_mode): Handle SF types.
27095         (sf_UP): Define.
27096         (BUILTIN_GPF): Define.
27097         (aarch64_init_simd_builtins): Handle SF types.
27098         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
27099         (frecps): Likewise.
27100         (frecpx): Likewise.
27101         * config/aarch64/aarch64-simd.md
27102         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
27103         (aarch64_frecpe<mode>): New.
27104         (aarch64_frecps<mode>): Likewise.
27105         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
27106         (v8type): Add frecp<esx>.
27107         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
27108         (aarch64_frecps<mode>): Likewise.
27109         * config/aarch64/iterators.md (FRECP): New.
27110         (frecp_suffix): Likewise.
27111         * config/aarch64/arm_neon.h
27112         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
27114 2013-04-22  Christian Bruel  <christian.bruel@st.com>
27116         PR target/56995
27117         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
27118         (REG_CLASS_NAMES): Idem.
27119         (REG_CLASS_CONTENTS): Idem.
27120         (REGCLASS_HAS_FP_REG): Idem.
27121         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
27122         (sh_conditional_register_usage): Idem.
27124 2013-04-21  Jeff Law  <law@redhat.com>
27126         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
27127         (ssa_forward_propagate_and_combine): Use it.
27129 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
27131         * lra.c: Update the flow chart diagram.
27133 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
27135         PR rtl-optimization/56847
27136         * lra-constraints.c (process_alt_operands): Discourage alternative
27137         with non-matche doffsettable memory constraint fro memory with
27138         known offset.
27140 2013-04-19  Richard Biener  <rguenther@suse.de>
27142         PR tree-optimization/56982
27143         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
27144         function.
27145         * gimplify.c (gimplify_call_expr): Notice special calls.
27146         (gimplify_modify_expr): Likewise.
27147         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
27148         abnormal control flow receivers.
27149         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
27150         in the same way as cfun->has_nonlocal_labels.
27151         (gimple_purge_dead_abnormal_call_edges): Likewise.
27152         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
27153         receivers start a basic-block.
27155 2013-04-19  Richard Biener  <rguenther@suse.de>
27157         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
27158         member ...
27159         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
27160         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
27161         (SLP_TREE_LOAD_PERMUTATION): Add.
27162         (vect_transform_slp_perm_load): Adjust prototype.
27163         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
27164         (vect_free_slp_instance): Likewise.
27165         (vect_create_new_slp_node): Likewise.
27166         (vect_supported_slp_permutation_p): Remove.
27167         (vect_slp_rearrange_stmts): Adjust.
27168         (vect_supported_load_permutation_p): Likewise.  Inline
27169         vect_supported_slp_permutation_p here.
27170         (vect_analyze_slp_instance): Compute load permutations per
27171         slp node instead of per instance.
27172         (vect_get_slp_defs): Adjust.
27173         (vect_transform_slp_perm_load): Likewise.
27174         (vect_schedule_slp_instance): Remove redundant code.
27175         (vect_schedule_slp): Remove hack for PR56270, add it ...
27176         * tree-vect-stmts.c (vectorizable_load): ... here, do not
27177         CSE loads for SLP.  Adjust.
27179 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
27181         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
27182         spelling in two comments.
27184 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
27186         PR target/56797
27187         * config/arm/arm.c (load_multiple_sequence): Require SP
27188         as base register for loads if SP is in the register list.
27190 2013-04-19  Martin Jambor  <mjambor@suse.cz>
27192         PR tree-optimization/56718
27193         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
27194         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
27195         and made public.  Adjusted all callers.
27196         (ipa_intraprocedural_devirtualization): New function.
27197         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
27198         (ipa_intraprocedural_devirtualization): Likewise.
27199         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
27201 2013-04-19  Richard Biener  <rguenther@suse.de>
27203         PR tree-optimization/57000
27204         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
27206 2013-04-19  Terry Guo  <terry.guo@arm.com>
27208         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
27209         Replace with ...
27210         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
27211         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
27212         (cortex_m4_fmacs): Use new reservations.
27213         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
27215 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
27217         PR rtl-optimization/56999
27218         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
27219         related code.
27220         (lra_coalesce): Remove split_origin_bitmap and related code.
27221         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
27222         ranges if necessary.
27224 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
27226         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
27227         New array.
27228         (ix86_expand_call): Remove clobbered_registers array and use
27229         x86_64_ms_sysv_extra_clobbered_registers instead.
27230         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
27231         Declare here.
27232         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
27233         predicate.
27234         * config/i386/i386.md (*call_rex64_ms_sysv): Use
27235         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
27236         (*call_value_rex64_ms_sysv): Ditto.
27238 2013-04-18  Cary Coutant  <ccoutant@google.com>
27240         * dwarf2out.c (output_pubnames): Check die_perennial_p of
27241         parent instead of die_mark.
27243 2013-04-18  Diego Novillo  <dnovillo@google.com>
27245         * gimple.c (create_gimple_tmp): New.
27246         (get_expr_type): New.
27247         (build_assign): New.
27248         (build_type_cast): New.
27249         * gimple.h (enum ssa_mode): Define.
27250         (gimple_seq_set_location): New.
27251         * asan.c (build_check_stmt): Change some gimple_build_* calls
27252         to use build_assign and build_type_cast.
27254 2013-04-18  Richard Biener  <rguenther@suse.de>
27256         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
27257         handle negative step.  Remove redundant checks.
27258         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
27259         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
27260         for negative step and grouped loads fail to vectorize.
27262 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
27264         * emit-rtl.c (reset_insn_used_flags): New function.
27265         (reset_all_used_flags): Use it.
27266         (verify_insn_sharing): New function.
27267         (verify_rtl_sharing): Fix verification for SEQUENCEs.
27269 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
27271         PR tree-optimization/56984
27272         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
27273         and (x >> M) >= N don't register any assertion if N << M is the
27274         minimum value.
27276 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
27278         * lower-subreg.c (resolve_simple_move): If called self-recursive,
27279         do not delete_insn insns that have not yet been emitted, only
27280         unlink them with remove_insn.
27281         * df-scan.c (df_insn_delete): Revert r197492.
27283 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
27285         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
27286         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
27288 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
27290         * config/arm/arm.md (movsicc_insn): Convert define_insn into
27291         define_insn_and_split.
27292         (and_scc,ior_scc,negscc): Likewise.
27293         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
27295 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
27297         * config/arm/arm.c (use_return_insn): Return 0 for targets that
27298         can benefit from using a sequence of LDRD instructions in epilogue
27299         instead of a single LDM instruction.
27301 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27303         PR 45688
27304         * doc/extend.texi: Fix typo.
27306 2013-04-17  Richard Biener  <rguenther@suse.de>
27308         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
27309         (vect_build_slp_tree): ... here.
27310         (vect_build_slp_tree_1): Compute which stmts of the SLP group
27311         match.  Remove special-casing of mismatched complex loads.
27312         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
27313         re-try the match with swapped commutative operands.
27314         (vect_supported_load_permutation_p): Remove special-casing of
27315         mismatched complex loads.
27316         (vect_analyze_slp_instance): Adjust.
27318 2013-04-17  Richard Biener  <rguenther@suse.de>
27320         PR rtl-optimization/56921
27321         * cfgloop.h (struct loop): Add simple_loop_desc member.
27322         (struct niter_desc): Mark with GTY(()).
27323         (simple_loop_desc): Do not use aux field but simple_loop_desc.
27324         * loop-iv.c (get_simple_loop_desc): Likewise.
27325         (free_simple_loop_desc): Likewise.
27327         Revert
27328         2013-04-16  Richard Biener  <rguenther@suse.de>
27330         PR rtl-optimization/56921
27331         * loop-init.c (pass_rtl_move_loop_invariants): Add
27332         TODO_do_not_ggc_collect to todo_flags_finish.
27333         (pass_rtl_unswitch): Same.
27334         (pass_rtl_unroll_and_peel_loops): Same.
27335         (pass_rtl_doloop): Same.
27337 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
27339         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
27340         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
27341         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
27342         references.
27343         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
27344         * tree-streamer.c (record_common_node): Adjust reference in comment.
27346 2013-04-17  Terry Guo  <terry.guo@arm.com>
27348         * config/arm/cortex-m4.md: Add a new bypass.
27350 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
27352         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
27353         New pattern.
27354         (*subs_<optab><mode>_multp2): New pattern.
27355         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
27356         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
27358 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
27360         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
27361         (*subs_mul_imm_<mode>): New pattern.
27363 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
27365         PR target/56948
27366         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
27367         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
27368         (vsx_movti_32bit): Change j->wa to O->wa.
27370 2013-04-16  Richard Biener  <rguenther@suse.de>
27372         PR rtl-optimization/56921
27373         * loop-init.c (pass_rtl_move_loop_invariants): Add
27374         TODO_do_not_ggc_collect to todo_flags_finish.
27375         (pass_rtl_unswitch): Same.
27376         (pass_rtl_unroll_and_peel_loops): Same.
27377         (pass_rtl_doloop): Same.
27379 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
27381         * config/arm/arm.c (emit_multi_reg_push): New declaration
27382         for an existing function.
27383         (arm_emit_strd_push): New function.
27384         (arm_expand_prologue): Used here.
27385         (arm_emit_ldrd_pop): New function.
27386         (arm_expand_epilogue): Used here.
27387         (arm_get_frame_offsets): Update condition.
27388         (arm_emit_multi_reg_pop): Add a special case for load of a single
27389         register with writeback.
27391 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
27393         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
27394         description.
27396 2013-04-16  Richard Biener  <rguenther@suse.de>
27398         PR tree-optimization/56756
27399         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
27400         (first_mem_ref_loc): New.
27401         (execute_sm): Place the load temporarily before a previous
27402         access instead of in the latch edge to ensure its SSA dependencies
27403         are defined at points dominating the load.
27405 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
27407         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
27408         correct fix by moving header and footer insn to the footer of
27409         the merged basic block.  Clear BB_END of the merged-away block.
27411         PR middle-end/43631
27412         * emit-rtl.c (make_note_raw): New function.
27413         (link_insn_into_chain): New static inline function.
27414         (add_insn): Use it.
27415         (add_insn_before, add_insn_after): Factor insn chain linking code...
27416         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
27417         using link_insn_into_chain.
27418         (note_outside_basic_block_p): New helper function for emit_note_after
27419         and emit_note_before.
27420         (emit_note_after): Use nobb variant of add_insn_after if the note
27421         should not be contained in a basic block.
27422         (emit_note_before): Use nobb variant of add_insn_before if the note
27423         should not be contained in a basic block.
27424         (emit_note_copy): Use make_note_raw.
27425         (emit_note): Likewise.
27426         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
27427         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
27428         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
27429         the moved barrier the tail of the basic block it follows.
27430         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
27432 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
27434         PR tree-optimization/56962
27435         * gimple-ssa-strength-reduction.c (record_increment): Only set
27436         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
27437         either rhs1 or rhs2 is equal to c->base_expr.
27439 2013-04-15  Richard Biener  <rguenther@suse.de>
27441         PR tree-optimization/56933
27442         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
27443         member.
27444         (GROUP_READ_WRITE_DEPENDENCE): Remove.
27445         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
27446         * tree-vect-data-refs.c (vect_analyze_group_access): Move
27447         dependence check ...
27448         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
27449         ... here.
27450         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
27451         GROUP_READ_WRITE_DEPENDENCE.
27453 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27455         * emit-rtl.c (reset_all_used_flags): New function.
27456         (verify_rtl_sharing): Call reset_all_used_flags before and after
27457         performing the checks.
27459 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27461         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
27462         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
27463         * config/arm/constraints.md (De): New constraint.
27464         * config/arm/neon.md (anddi3_neon): Delete.
27465         (neon_vand<mode>): Expand to standard anddi3 pattern.
27466         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
27467         Move earlier in the file.
27468         (neon_inv_logic_op2): Likewise.
27469         (arm_anddi_operand_neon): New predicate.
27471 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27473         * configure.ac (gcc_cv_ld_as_needed): Set
27474         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
27475         Use -z ignore, -z record on *-*-solaris2*.
27476         (HAVE_LD_AS_NEEDED): Update comment.
27477         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
27478         * configure: Regenerate.
27479         * config.in: Regenerate.
27480         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
27481         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
27482         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
27483         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
27484         equivalents.  Fix markup.
27485         * doc/tm.texi: Regenerate.
27487 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
27489         * config/i386/i386.opt: New option mstack-protector-guard=.
27490         * config/i386/i386-opts.h: Add enum stack_protector_guard.
27491         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
27492         TARGET_SSP_TLS_GUARD.
27493         * config/i386/i386.c (ix86_option_override_internal): Set
27494         ix86_stack_protector_guard.
27495         * config/i386/i386.md (stack_protect_set): Enable for
27496         TARGET_SSP_TLS_GUARD only.
27497         (stack_protect_set_<mode>): Ditto.
27498         (stack_protect_test): Ditto.
27499         (stack_protect_test_<mode>): Ditto.
27500         * doc/invoke.texi (i386 Option): Document.
27502 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
27504         PR target/56890
27505         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
27506         (S_MODES): Set H_MODE bit.
27507         (SF_MODES): Set only S_MODE and SF_MODE bits.
27508         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
27509         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
27510         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
27511         <MODE_FLOAT>: Likewise.
27513 2013-04-15  Joey Ye  <joey.ye@arm.com>
27515         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
27517 2013-04-15  Joey Ye  <joey.ye@arm.com>
27519         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
27520         for real far jump.
27521         (thumb_far_jump_used_p): Count instruction size and set
27522         far_jump_used.
27524 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
27526         * reorg.c (fill_simple_delay_slots): Reindent block of code.
27527         * resource.c (mark_target_live_regs): Reformat conditional block.
27529 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
27531         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
27532         notes, they are emitted only just before final.
27533         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
27535 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
27537         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
27538         * cfgrtl.c (delete_insn): Call it here instead.
27539         * lra-spills.c (lra_final_code_change): Use delete_insn.
27540         * haifa-sched.c (sched_remove_insn): Likewise.
27541         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
27542         returning to the nop pool.
27543         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
27544         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
27546 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
27548         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
27549         * doc/tm.texi: Regenerated.
27551 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
27553         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
27554         QImode checks.
27556 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
27558         * df-core.c (df_find_def): Compare register numbers.
27559         (df_find_use): Likewise.
27561 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
27563         PR target/56903
27564         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
27565         lra_in_progress for return.
27567 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
27569         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
27570         define_insn into define_insn_and_split and emit movsicc patterns.
27572 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
27574         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
27576 2013-04-12  Richard Biener  <rguenther@suse.de>
27578         * tree-pass.h (TODO_do_not_ggc_collect): New.
27579         * passes.c (execute_one_ipa_transform_pass): Honor
27580         TODO_do_not_ggc_collect.
27581         (execute_one_pass): Likewise.
27583         Revert
27584         2013-04-10  Richard Biener  <rguenther@suse.de>
27586         * passes.c (init_optimization_passes): Remove reload pass.
27587         * ira.c (do_reload): Merge into ...
27588         (ira): ... this.
27589         (rest_of_handle_reload): Remove.
27590         (pass_reload): Likewise.
27591         * config/i386/i386.c (ix86_option_override): Refer to ira instead
27592         of reload for vzeroupper pass placement.
27594 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
27596         PR tree-optimization/56918
27597         PR tree-optimization/56920
27598         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
27599         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
27600         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
27601         use wide_mul_with_sign method.
27603 2013-04-12  Richard Biener  <rguenther@suse.de>
27605         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
27606         not be considered a gimple constant.
27608 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
27610         * fold-const.c (const_binop): Handle vector shifts by a scalar.
27611         (fold_binary_loc): Call const_binop also for mixed vector-scalar
27612         operations.
27614 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27615             Jakub Jelinek  <jakub@redhat.com>
27617         * opts.c: Include diagnostic-color.h.
27618         (common_handle_option): Handle OPT_fdiagnostics_color_.
27619         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
27620         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
27621         (diagnostic-color.o): New.
27622         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
27623         (diagnostic_color_rule): New enum.
27624         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
27625         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
27626         the location string.
27627         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
27628         either NULL, or color kind.
27629         * diagnostic-color.c: New file.
27630         * diagnostic-color.h: New file.
27631         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
27632         arguments.
27633         * doc/invoke.texi (-fdiagnostics-color): Document.
27634         * pretty-print.h (pp_show_color): Define.
27635         (struct pretty_print_info): Add show_color field.
27636         * diagnostic.c: Include diagnostic-color.h.
27637         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
27638         macros.  Colorize error:, warning: etc. strings and also the location
27639         string.
27640         (diagnostic_show_locus): Colorize the caret line.
27641         * pretty-print.c: Include diagnostic-color.h.
27642         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
27643         inside of %< %> quotes or quoted through q format modifier.
27645 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27647         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
27649 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
27651         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
27652         code in CC_NZ mode.
27653         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
27654         pattern.
27656 2013-04-11  Marek Polacek  <polacek@redhat.com>
27658         PR tree-optimization/48184
27659         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
27661 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
27663         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
27664         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
27665         (skip_simple_arithmetic): Tidy up.
27666         * tree.h (skip_simple_constant_arithmetic): Declare.
27668 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
27670         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
27672 2013-04-11  Richard Biener  <rguenther@suse.de>
27674         * tree-vect-loop.c (get_initial_def_for_induction): Properly
27675         generate vector constants.
27677 2013-04-11  Richard Biener  <rguenther@suse.de>
27679         PR tree-optimization/56878
27680         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
27681         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
27682         New function.
27683         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
27684         Prefer to align the DR with the most invariant base address.
27686 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
27688         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
27689         comment.
27691 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
27693         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
27694         floating-point vector comparisons against 0.
27696 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
27698         PR tree-optimization/56899
27699         * fold-const.c (extract_muldiv_1): Apply distributive law
27700         only if TYPE_OVERFLOW_WRAPS (ctype).
27702 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
27704         PR target/56124
27705         * ira-costs.c (scan_one_insn): Check whether the source rtx of
27706         loading has side effect.
27708 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
27710         * config/sparc/sparc.c: Include tree-pass.h.
27711         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
27712         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
27713         head of file.  Change return type.  Split off gate function.
27714         (sparc_gate_work_around_errata): New function.
27715         (pass_work_around_errata): New pass definition.
27716         (insert_pass_work_around_errata) New pass insert definition to
27717         insert pass_work_around_errata just after delayed-branch scheduling.
27718         (sparc_option_override): Insert the pass.
27719         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
27721 2013-04-10  David S. Miller  <davem@davemloft.net>
27723         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
27724         or -mcpu=hypersparc.
27726         * target.def (cstore_mode): New hook.
27727         * target.h: Include insn-codes.h
27728         * targhooks.c: Likewise.
27729         (default_cstore_mode): New function.
27730         * targhooks.h: Declare it.
27731         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
27732         * doc/tm.texi: Rebuild.
27733         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
27734         target hook, rather than inspecting the insn_data.
27735         * config/sparc/sparc.c (sparc_cstore_mode): New function.
27736         (TARGET_CSTORE_MODE): Redefine.
27737         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
27738         result patterns.
27739         * config/sparc/predicates.md (cstore_result_operand): New special
27740         predicate.
27741         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
27742         Use it for operand 0.
27743         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
27744         (*snesi_special): Likewise.
27745         (*snesi_zero): Likewise.
27746         (*seqsi_zero): Likewise.
27747         (*sltu_insn): Likewise.
27748         (*sgeu_insn): Likewise.
27749         (*seqdi_special): Make operand 0 and comparison operation be of
27750         DImode.
27751         (*snedi_special): Likewise.
27752         (*snedi_special_vis3): Likewise.
27753         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
27754         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
27755         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
27756         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
27757         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
27758         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
27759         (*sltu_extend_sp64): Likewise.
27760         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
27761         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
27762         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
27763         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
27764         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
27766 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
27768         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
27769         (aarch64_start_file): Use the new function.
27771 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
27772             Jason Merrill  <jason@redhat.com>
27774         * common.opt: Add -gdwarf.
27775         * opts.c (common_handle_option): Handle it.
27776         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
27778 2013-04-10  Richard Biener  <rguenther@suse.de>
27780         * passes.c (execute_todo): Do not call ggc_collect conditional here.
27781         (execute_one_ipa_transform_pass): But unconditionally here.
27782         (execute_one_pass): And here.
27783         (init_optimization_passes): Remove reload pass.
27784         * tree-pass.h (TODO_ggc_collect): Remove.
27785         (pass_reload): Likewise.
27786         * ira.c (do_reload): Merge into ...
27787         (ira): ... this.
27788         (rest_of_handle_reload): Remove.
27789         (pass_reload): Likewise.
27790         * config/i386/i386.c (ix86_option_override): Refer to ira instead
27791         of reload for vzeroupper pass placement.
27792         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
27793         and todo_flags_finish of all passes.
27795 2013-04-10  Richard Biener  <rguenther@suse.de>
27797         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
27798         first_const_oprnd field, rename first_def_type to first_op_type.
27799         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
27800         (vect_get_and_check_slp_defs): Always use the type of the
27801         operand.  Allow mixed vect_external_def, vect_constant_def types.
27802         (vect_get_constant_vectors): Handle mixed vect_external_def,
27803         vect_constant_def types.
27805 2013-04-10  Joern Rennecke  <joern.rennecke@embecosm.com>
27807         PR tree-optimization/55524
27808         * tree-ssa-math-opts.c
27809         (convert_mult_to_fma): Don't use an fms construct
27810         when we don't have an fms operation, but fnma, and it looks
27811         likely that we'll be able to use the latter.
27813 2013-04-10  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
27815         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
27816         function.
27817         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
27818         inline fail caused by overwritable functions.
27820 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
27822         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
27823         unnecessary bits in the constant power of two case.
27825 2013-04-10  Richard Biener  <rguenther@suse.de>
27827         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
27828         broken code swapping operands.
27829         (vect_build_slp_tree): Do not compute load permutations here.
27830         (vect_analyze_slp_instance): Compute load permutations here,
27831         after building the SLP tree.
27833 2013-04-09  Christian Bruel  <christian.bruel@st.com>
27835         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
27836         of next/prev_real_insn.
27838 2013-04-09  Jan Hubicka  <jh@suse.cz>
27840         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
27841         Drop aliased parameter.
27842         (function_and_variable_visibility): Do not handle alias pairs.
27843         * cgraph.c (varpool_externally_visible_p): Update prototype.
27844         * varpool.c (varpool_add_new_variable): Update.
27846 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27848         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
27850 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
27852         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
27854         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
27856 2013-04-09  Marek Polacek  <polacek@redhat.com>
27858         PR tree-optimization/48762
27859         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
27861 2013-04-09  Richard Biener  <rguenther@suse.de>
27863         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
27864         dealing with cost.
27865         (vect_build_slp_tree): Likewise.
27866         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
27867         calculating the cost of a SLP instance.
27868         (vect_analyze_slp_instance): Use it from here, after building
27869         the SLP tree.
27871 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
27873         PR middle-end/56883
27874         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
27875         expand_omp_for_static_chunk): Use simple_p = true in
27876         force_gimple_operand_gsi calls when assigning to addressable decls.
27878 2013-04-09  Jeff Law  <law@redhat.com>
27880         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
27881         when the boolean was created by converting a wider object which
27882         had a boolean range.
27884 2013-04-09  Richard Biener  <rguenther@suse.de>
27886         * tree-vectorizer.h (slp_void_p): Remove.
27887         (slp_tree): Typedef before _slp_tree declaration.
27888         (struct _slp_tree): Use a vector of slp_tree as children.
27889         (vect_get_place_in_interleaving_chain): Remove.
27890         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
27891         Move ...
27892         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
27893         and make static.
27894         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
27895         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
27896         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
27897         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
27898         Use slp_node instead of slp_void_p and adjust.
27900 2013-04-09  Richard Biener  <rguenther@suse.de>
27902         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
27903         work that is not necessary.
27905 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
27907         PR tree-optimization/56854
27908         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
27909         forward into clobber stmts if it would change MEM_REF lhs into
27910         non-MEM_REF.
27912 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
27914         * tree.c (type_hash_lookup, type_hash_add): Make static.
27915         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
27917 2013-04-09  Richard Biener  <rguenther@suse.de>
27919         * tree.h (unsave_expr_now): Remove.
27920         * tree-inline.c (mark_local_for_remap_r): Remove.
27921         (unsave_expr_1): Likewise.
27922         (unsave_r): Likewise.
27923         (unsave_expr_now): Likewise.
27924         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
27925         (propagate_tree_value): Likewise.
27927 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
27929         * doc/rtl.texi (sequence): Rewrite documentation to match the
27930         current use of SEQUENCE rtl objects.
27931         * rtl.def (SEQUENCE): Likewise.
27933         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
27934         Update documentation.
27935         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
27936         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
27938         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
27940 2013-04-08  Teresa Johnson  <tejohnson@google.com>
27942         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
27943         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
27944         methods.
27945         (estimate_edge_size_and_time): Add comment to suggest using rounding
27946         methods.
27947         (estimate_node_size_and_time): Ditto.
27948         (remap_edge_change_prob): Use helper rounding divide methods.
27949         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
27950         (gimple_mod_pow2_value_transform): Ditto.
27951         (gimple_mod_subtract_transform): Ditto.
27952         (gimple_ic_transform): Ditto.
27953         (gimple_stringops_transform): Ditto.
27954         * stmt.c (conditional_probability): Ditto.
27955         (emit_case_dispatch_table): Ditto.
27956         * lto-cgraph.c (merge_profile_summaries): Ditto.
27957         * tree-optimize.c (execute_fixup_cfg): Ditto.
27958         * cfgcleanup.c (try_forward_edges): Ditto.
27959         * cfgloopmanip.c (scale_loop_profile): Ditto.
27960         (loopify): Ditto.
27961         (duplicate_loop_to_header_edge): Ditto.
27962         (lv_adjust_loop_entry_edge): Ditto.
27963         * tree-vect-loop.c (vect_transform_loop): Ditto.
27964         * profile.c (compute_branch_probabilities): Ditto.
27965         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
27966         * lto-streamer-in.c (input_cfg): Ditto.
27967         * gimple-streamer-in.c (input_bb): Ditto.
27968         * ipa-cp.c (update_profiling_info): Ditto.
27969         (update_specialized_profile): Ditto.
27970         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
27971         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
27972         rounding methods.
27973         * sched-rgn.c (compute_dom_prob_ps): Ditto.
27974         (compute_trg_info): Ditto.
27975         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
27976         (purge_dead_edges): Ditto.
27977         * loop-unswitch.c (unswitch_loop): Ditto.
27978         * cgraphclones.c (cgraph_clone_edge): Ditto.
27979         (cgraph_clone_node): Ditto.
27980         * tree-inline.c (copy_bb): Ditto.
27981         (copy_edges_for_bb): Ditto.
27982         (initialize_cfun): Ditto.
27983         (copy_cfg_body): Ditto.
27984         (expand_call_inline): Ditto.
27986 2013-04-08  Kai Tietz  <ktietz@redhat.com>
27988         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
27989         TARGET_CYGWIN64 by TARGET_64BIT.
27991 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
27993         * config/epiphany/epiphany.md (GPR_1): New constant.
27994         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
27995         * config/epiphany/epiphany.c (gen_compare_reg):
27996         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
27997         is already in place.
27998         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
27999         Don't require being called during rtl expansion; If y operlaps r0,
28000         return 0.
28001         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
28002         (epiphany_expand_epilogue): Likewise.
28004         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
28005         Don't use CC_FPmode for ORDERED / UNORDERED.
28006         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
28008         * config/epiphany/constraints.md (CnL): New constraint.
28009         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
28010         * config/epiphany/predicates.md (add_operand): Allow 1024.
28012         * config/epiphany/epiphany.md (logical_op): New code iterator.
28013         (op_mnc): New code attribute.
28014         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
28015         (mov_f+1, mov_f+2): New peephole2 patterns.
28017         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
28018         (cstoresi4): Also allow re-use of zero result when doing a NE
28019         comparison to a non-zero operand.
28020         Use (clobber (scratch)) for first insn if the gpr output is not needed.
28022         * config/epiphany/epiphany.md (<insn_opname>v2si3):
28023         Use gen_addsi3_i / gen_subsi3_i.
28025 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
28027         PR c++/34949
28028         PR c++/50243
28029         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
28030         contain anything but clobbers, at most one __builtin_stack_restore,
28031         optionally debug stmts and final resx, and if it has at least one
28032         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
28033         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
28034         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
28035         which isn't defaut definition, remove them.
28036         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
28037         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
28038         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
28039         with MEM_REF LHS with SSA_NAME address.
28041 2013-04-08  Jeff Law  <law@redhat.com>
28043         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
28045 2013-04-08  Richard Biener  <rguenther@suse.de>
28047         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
28048         extra newline.
28049         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
28050         determined vector type.
28051         (vect_analyze_data_refs): Likewise.
28052         (vect_get_new_vect_var): Adjust.
28053         (vect_create_destination_var): Preserve SSA name versions.
28054         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
28055         not dump anything here.
28057 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
28059         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
28060         Add member lr_slot_known.
28061         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
28062         if necessary.
28063         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
28064         Remove code that sets lr_slot_offset according to what a previous
28065         version of epiphany_emit_save_restore used to do.
28066         (epiphany_emit_save_restore): When doing an lr save or restore,
28067         set/verify lr_slot_known and lr_slot_offset.
28069 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
28071         PR target/54338
28072         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
28073         in ALL_REGS.
28075 2013-04-08  Richard Biener  <rguenther@suse.de>
28077         * alias.c (find_base_term): Fix thinko in previous change.
28079 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
28081         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
28082         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
28083         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
28084         if possible to compute val.
28085         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
28086         For QImode integers don't require anything about precision.  Use
28087         const_with_all_bytes_same to find out if the constant doesn't have
28088         repeated bytes in it.
28090 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28092         * config/s390/s390.c (s390_expand_insv): Only accept insertions
28093         within mode size.
28095 2013-04-08  Marek Polacek  <polacek@redhat.com>
28097         PR rtl-optimization/48182
28098         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
28099         value to 1.
28101 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28103         PR target/55487
28104         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
28105         nuses, make sure we have a label.
28107 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28109         PR target/56843
28110         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
28111         (rs6000_emit_swdiv_low_precision): Remove.
28112         (rs6000_emit_swdiv): Rewrite to handle between one and four
28113         iterations of Newton-Raphson generally; modify required number of
28114         iterations for some cases.
28115         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
28117 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
28119         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
28120         set-but-unused variable.
28122         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
28123         basic blocks of released function bodies garbage-collectable.
28125         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
28126         (struct rtl_opt_pass): Add TODO_df_finish.
28128         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
28130 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
28132         * config/arm/constraints.md (q): New constraint.
28133         * config/arm/ldrdstrd.md: New file.
28134         * config/arm/arm.md (ldrdstrd.md) New include.
28135         (arm_movdi): Use "q" instead of "r" constraint
28136         for double-word memory access.
28137         (movdf_soft_insn): Likewise.
28138         * config/arm/vfp.md (movdi_vfp): Likewise.
28139         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
28140         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
28141         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
28142         (mem_ok_for_ldrd_strd): Likewise.
28143         (output_move_double): Update assertion.
28145 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
28147         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
28149 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
28151         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
28152         define_insn_and_split.
28153         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
28155 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
28157         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
28158         define_insn_and_split.
28159         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
28160         (shiftsi3_compare): New pattern.
28161         (rrx): New pattern.
28162         * config/arm/unspecs.md (UNSPEC_RRX): New.
28164 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
28166         * config/arm/arm.md (negdi_extendsidi): New pattern.
28167         (negdi_zero_extendsidi): Likewise.
28169 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
28171         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
28172         define_insn_and_split.
28173         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
28174         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
28176 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
28178         * config/arm/arm.md (arm_subdi3): Convert define_insn into
28179         define_insn_and_split.
28180         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
28181         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
28183 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
28185         * config/arm/arm.md (subsi3_carryin): New pattern.
28186         (subsi3_carryin_const): Likewise.
28187         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
28188         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
28190 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
28192         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
28194 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
28196         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
28197         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
28199 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28201         * config/arm/arm.c (arm_expand_builtin): Change fcode
28202         type to unsigned int.
28204 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28206         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
28208 2013-04-04  Ian Lance Taylor  <iant@google.com>
28210         * doc/standards.texi (Standards): The Go frontend supports the Go 1
28211         language standard.
28213 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
28215         PR middle-end/56729
28216         * df-scan.c (df_insn_delete): Disable failing assert.
28218 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28220         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
28221         New function prototype.
28222         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
28223         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
28224         (arm_builtin_vectorized_function): New function.
28226 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28228         * config/arm/arm_neon_builtins.def: New file.
28229         * config/arm/arm.c (neon_builtin_data): Move contents to
28230         arm_neon_builtins.def.
28231         (enum arm_builtins): Include neon builtin definitions.
28232         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
28233         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
28235 2013-04-04  Marek Polacek  <polacek@redhat.com>
28237         PR tree-optimization/48186
28238         * predict.c (maybe_hot_frequency_p): Return false if
28239         HOT_BB_FREQUENCY_FRACTION is 0.
28240         (cgraph_maybe_hot_edge_p): Likewise.
28242 2013-04-04  Richard Biener  <rguenther@suse.de>
28244         PR tree-optimization/56826
28245         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
28246         more accurately.
28248 2013-04-04  Richard Biener  <rguenther@suse.de>
28250         PR tree-optimization/56213
28251         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
28252         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
28254 2013-04-04  Richard Biener  <rguenther@suse.de>
28256         PR tree-optimization/56837
28257         * tree-loop-distribution.c (classify_partition): For non-zero
28258         values require that the value has the same precision as its
28259         mode to be useful as memset value.
28261 2013-04-03  Nick Clifton  <nickc@redhat.com>
28263         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
28264         (fmssf4): Use fmsf.s on E3V5 architectures.
28265         (fnmasf4): Use fnmaf.s on E3V5 architectures.
28266         (fnmssf4): Use fnmsf.s on E3V5 architectures.
28268 2013-04-03  Jeff Law  <law@redhat.com>
28270         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
28271         (lra-eliminations.o): Likewise.
28273 2013-04-03  Teresa Johnson  <tejohnson@google.com>
28275         * gcov-io.c (compute_working_sets): Moved most of body of old
28276         compute_working_sets here from profile.c.
28277         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
28278         (gcov_working_set_t): Moved typedef here from basic-block.h
28279         (compute_working_set): Declare.
28280         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
28281         (get_working_sets): Renamed from compute_working_set,
28282         replace most of body with call to new compute_working_sets.
28283         (get_exec_counts): Replace call to compute_working_sets
28284         to get_working_sets.
28285         * profile.h (get_working_sets): Renamed from compute_working_set.
28286         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
28287         to get_working_sets.
28288         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
28289         * gcov-dump.c (dump_working_sets): New function.
28291 2013-04-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
28293         * hwint.c (sext_hwi, zext_hwi): New functions.
28294         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
28295         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
28296         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
28297         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
28298         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
28299         (sext_hwi, zext_hwi): New functions.
28301 2013-04-03  Jeff Law  <law@redhat.com>
28303         PR tree-optimization/56799
28304         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
28305         back test for widening conversion erroneously dropped in prior change.
28307 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28309         PR target/56809
28310         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
28311         instead of next_real_insn.
28313 2013-04-03  Marek Polacek  <polacek@redhat.com>
28315         PR sanitizer/55702
28316         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
28318 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28320         PR target/56809
28321         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
28322         next_real_insn.
28323         (thumb1_output_casesi): Likewise.
28324         (thumb2_output_casesi): Likewise.
28326 2013-04-03  Richard Biener  <rguenther@suse.de>
28328         PR tree-optimization/56817
28329         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
28330         Split out ...
28331         (tree_unroll_loops_completely_1): ... new function to manually
28332         walk the loop tree, properly defering outer loops of unrolled
28333         loops to later iterations.
28335 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
28337         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
28338         (vectorizable_load): Likewise.
28339         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
28340         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
28342 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
28344         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
28345         BIT_FIELD_REF.
28347 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28349         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
28351 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
28353         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
28355 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
28357         PR tree-optimization/56790
28358         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
28359         folding.
28361 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
28363         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
28364         Handle VEC_MERGE.
28365         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
28366         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
28367         equal arguments.
28369 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
28371         PR c/19449
28372         * tree.h (force_folding_builtin_constant_p): New decl.
28373         * builtins.c (force_folding_builtin_constant_p): New variable.
28374         (fold_builtin_constant_p): Fold immediately also if
28375         force_folding_builtin_constant_p.
28377 2013-04-03  Richard Biener  <rguenther@suse.de>
28379         PR tree-optimization/56812
28380         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
28381         DRs of the same interleaving chain are independent.
28383 2013-04-02  Jason Merrill  <jason@redhat.com>
28385         * gdbinit.in (pbb): Use debug fn.
28387 2013-04-02  Lawrence Crowl  <crowl@google.com>
28389         * sese.h (struct ivtype_map_elt_s): Remove unused.
28390         (extern debug_ivtype_map): Remove unused.
28391         (extern eq_ivtype_map_elts): Remove unused.
28392         * sese.c (debug_ivtype_map): Removed unused.
28393         (debug_ivtype_map_1): Removed unused.
28394         (debug_ivtype_elt): Remove unused.
28395         (eq_ivtype_map_elts): Remove unused.
28397 2013-04-02  Kai Tietz  <ktietz@redhat.com>
28399         PR target/52790
28400         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
28401         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
28402         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
28403         function.
28404         (legitimize_pe_coff_symbol): Likewise.
28405         (is_imported_p): New helper-function.
28406         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
28407         for Windows x64 targets.
28408         (ix86_expand_prologue): Optimize for pe-coff targets.
28409         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
28410         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
28411         medium/large code-model.
28412         (legitimize_pic_address): Likewise.
28413         (legitimize_tls_address): Likewise.
28414         (ix86_expand_call): Likewise.
28415         (x86_output_mi_thunk): Likewise.
28416         (get_dllimport_decl): Add new beimport argument.
28417         (construct_plt_address): Don't assert for x64 pe-coff targets.
28418         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
28419         targets.
28420         (SYMBOL_FLAG_STUBVAR): New macro.
28421         (SYMBOL_REF_STUBVAR_P): Likewise.
28422         * config/i386/winnt.c (stub_list): New structure.
28423         (stub_head): New local variable.
28424         (i386_pe_record_stub): New function.
28425         (i386_pe_file_end): Emit refptr-stubs.
28427 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
28429         PR rtl-optimization/56745
28430         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
28431         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
28433         PR c++/34949
28434         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
28435         and both of them are MEM_REFs, just compare first argument for
28436         equality and attempt to deal even with differing offsets.
28438         PR c++/34949
28439         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
28440         of gimple_clobber_p to be MEM_REF.
28441         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
28442         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
28443         after gimplification.
28444         * asan.c (get_mem_ref_of_assignment): Don't instrument
28445         gimple_clobber_p stmts.
28446         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
28447         gimple_clobber_p stmt if they have MEM_REF lhs and
28448         are dead because of another gimple_clobber_p stmt.
28449         * tree-ssa-live.c (clear_unused_block_pointer): Treat
28450         gimple_clobber_p stmts like debug stmts.
28451         (remove_unused_locals): Remove clobbers with MEM_REF lhs
28452         that refer to unused VAR_DECLs or uninitialized values.
28453         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
28454         gimple_clobber_p stmts if they refer to removed parameters.
28455         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
28456         formatting.
28458 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
28460         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
28461         using SWI48 mode attribute.
28463 2013-04-02  Wei Mi  <wmi@google.com>
28465         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
28466         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
28467         *<rotate_insn><mode>3_mask in i386.md.
28469 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
28471         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
28473 2013-04-02  Richard Biener  <rguenther@suse.de>
28475         PR tree-optimization/56778
28476         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
28477         Runtime alias tests are not supported for gather loads.
28478         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
28479         stmts referenced from SSA operands before updating SSA form.
28481 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
28482             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28484         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
28485         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
28486         * config/arm/cortex-a53.md: New file.
28487         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
28488         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
28489         * config/arm/arm.c (arm_issue_rate): Likewise.
28490         * config/arm/arm-tune.md: Regenerate
28491         * config/arm/arm-tables.opt: Regenerate.
28492         * config/arm/arm-cores.def: Add cortex-a53.
28494 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
28496         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
28497         non-static link.
28499 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
28501         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
28502         scalar load/store operations using B/H registers.
28503         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
28505 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
28507         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
28508         scalar move.
28509         * config/aarch64/aarch64.c
28510         (aarch64_simd_scalar_immediate_valid_for_move): New.
28511         * config/aarch64/aarch64-protos.h
28512         (aarch64_simd_scalar_immediate_valid_for_move): New.
28513         * config/aarch64/constraints.md (Dh, Dq): New.
28514         * config/aarch64/iterators.md (hq): New.
28516 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
28518         * reorg.c (get_branch_condition): Deal with conditional returns.
28519         (fill_simple_delay_slots): Remove dead code dealing with jumps.
28521 2013-04-01  Wei Mi  <wmi@google.com>
28523         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
28524         Truncate operand 2 using %b asm operand modifier.
28525         (*<shift_insn><mode>3_mask): Ditto.
28526         (*<rotate_insn><mode>3_mask): Ditto.
28528 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
28530         PR middle-end/56798
28531         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
28533 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
28535         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
28536         of next_real_insn.
28537         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
28539 2013-03-30  Lawrence Crowl  <crowl@google.com>
28541         * dse.c (clear_alias_sets): Remove never set.
28542         (disqualified_clear_alias_sets): Remove never set.
28543         (clear_alias_mode_pool): Remove never set.
28544         (dse_step0): Remove condition that is never true.
28545         (canon_address): Remove condition that is never true.
28546         (dse_step7): Remove condition that is never true.
28547         (rest_of_handle_dse): Remove condition that is never true.
28548         (rest_of_handle_dse::did_global): Remove never read from above.
28549         (dse_step2_spill): Remove never called from above.
28550         (dse_step5_spill): Remove never called from above.
28552 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
28554         * doc/md.texi (Standard Names) <casesi>: Update documentation for
28555         JUMP_TABLE_DATA changes.
28556         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
28557         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
28558         (Insns) <jump_table_data>: New entry.
28559         * doc/tm.texi: Regenerate.
28561         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
28563         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
28564         for table jump at the end of a basic block using tablejump_p.
28565         * targhooks.c (default_invalid_within_doloop): Likewise.
28566         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
28567         target hook implementation that is identical to the default hook.
28568         (rs6000_invalid_within_doloop): Remove.
28570         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
28571         unused variable from tablejump_p call.
28573         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
28574         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
28575         (INSN_DELETED_P): Likewise.
28576         (emit_jump_table_data): New prototype.
28577         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
28578         after 4th as unused.
28579         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
28580         * sched-vis.c (print_insn): Likewise.
28581         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
28582         insn for compatibility with back ends that use next_active_insn to
28583         identify jump table data.
28584         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
28585         (remove_insn): Likewise.
28586         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
28587         to be emitted.
28588         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
28589         (emit_jump_table_data): New function.
28591         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
28592         basic block, a JUMP_TABLE_DATA never is.
28593         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
28594         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
28595         off from code handling real insns.
28596         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
28597         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
28598         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
28599         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
28600         is not a NONDEBUG_INSN_P.
28601         * ira-costs.c (scan_one_insn): Likewise.
28602         * jump.c (mark_all_labels): Likewise.
28603         (mark_jump_label_1): Likewise.
28604         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
28605         * lra.c (get_insn_freq): Expect all insns reaching here to be in
28606         a basic block.
28607         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
28608         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
28609         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
28610         JUMP_TABLE_DATA_P insns.
28611         (calculate_elim_costs_all_insns): Likewise.
28612         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
28613         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
28614         (delete_output_reload): Code style fixups.
28615         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
28616         insn flags on this non-insn.
28617         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
28618         as scheduling barriers, for pre-change compatibility.
28619         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
28620         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
28622         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
28623         redundant JUMP_TABLE_DATA_P test.
28624         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
28625         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
28626         (frv_for_each_packet): Likewise.
28627         * config/i386/i386.c (min_insn_size): Likewise.
28628         (ix86_avoid_jump_mispredicts): Likewise.
28629         * config/m32r/m32r.c (m32r_is_insn): Likewise.
28630         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
28631         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
28632         (mips16_insn_length): Robustify.
28633         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
28634         (mips16_split_long_branches): Likewise.
28635         * config/pa/pa.c (pa_combine_instructions): Likewise.
28636         * config/rs6000/rs6000.c (get_next_active_insn): Treat
28637         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
28638         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
28639         as contributing to pool range lengths.
28640         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
28641         Remove redundant JUMP_TABLE_DATA_P test.
28642         (sh_loop_align): Likewise.
28643         (split_branches): Likewise.
28644         (sh_insn_length_adjustment): Likewise.
28645         * config/spu/spu.c (get_branch_target): Likewise.
28647 2013-03-29  Jan Hubicka  <jh@suse.cz>
28649         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
28650         gcov streaming; stream hot bb threshold to ltrans.
28651         * predict.c (get_hot_bb_threshold): Break out from ....
28652         (maybe_hot_count_p): ... here.
28653         (set_hot_bb_threshold): New function.
28654         * lto-section-in.c (lto_section_name): Add profile.
28655         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
28656         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
28657         and data-streamer.h
28658         (histogram_entry): New structure.
28659         (histogram, histogram_pool): New global vars.
28660         (histogram_hash): New structure.
28661         (histogram_hash::hash): New method.
28662         (histogram_hash::equal): Likewise.
28663         (account_time_size): New function.
28664         (cmp_counts): New function.
28665         (dump_histogram): New function.
28666         (ipa_profile_generate_summary): New function.
28667         (ipa_profile_write_summary): New function.
28668         (ipa_profile_read_summary): New function.
28669         (ipa_profile): Decide on threshold.
28670         (pass_ipa_profile): Add ipa_profile_write_summary and
28671         ipa_profile_read_summary.
28672         * Makefile.in (ipa.o): Update dependencies.
28673         * lto-streamer.h (LTO_section_ipa_profile): New section.
28675 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
28677         * tree.h (VAR_P): New.
28679 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
28681         PR lto/56777
28682         * doc/invoke.texi ([-fwhole-program]): Fix typo.
28684 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
28686         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
28687         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
28688         (control_flow_insn_p): Likewise.
28689         * cfgrtl.c (duplicate_insn_chain): Likewise.
28690         * final.c (get_attr_length_1): Likewise.
28691         (shorten_branches): Likewise.
28692         (final_scan_insn): Likewise.
28693         * function.c (instantiate_virtual_regs): Likewise.
28694         * gcse.c (insert_insn_end_basic_block): Likewise.
28695         * ira-costs.c (scan_one_insn): Likewise.
28696         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
28697         * lra.c (check_rtl): Likewise.
28698         * reload1.c (elimination_costs_in_insn): Likewise.
28699         * reorg.c (follow_jumps): Likewise.
28701         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
28702         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
28703         (thumb_far_jump_used_p): Likewise.
28704         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
28705         (workaround_speculation): Likewise.
28706         (add_sched_insns_for_speculation): Likewise.
28707         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
28708         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
28709         (frv_for_each_packet): Likewise.
28710         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
28711         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
28712         (final_emit_insn_group_barriers): Likewise.
28713         * config/m32r/m32r.c (m32r_is_insn): Likewise.
28714         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
28715         (mips16_insn_length): Likewise.
28716         * config/pa/pa.c (pa_reorg): Likewise.
28717         (pa_combine_instructions): Likewise.
28718         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
28719         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
28720         (sh_reorg): Likewise.
28721         (split_branches): Likewise.
28722         * config/spu/spu.c (get_branch_target): Likewise.
28724         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
28725         JUMP_TABLE_DATA_P.
28727 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
28729         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
28730         Fix declaration name.
28732 2013-03-28  Lawrence Crowl  <crowl@google.com>
28734         * graphds.h (struct graph.indicies): Remove unused.
28735         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
28736         (SCOP_ORIGINAL_PDDRS): Remove unused.
28737         * sese.h (extern insert_loop_close_phis): Removed unused.
28738         (extern insert_guard_phis): Removed unused.
28739         (extern ivtype_map_elt_info): Removed unused.
28740         (new_ivtype_map_elt): Removed unused.
28741         * sese.c (ivtype_map_elt_info): Removed unused.
28743 2013-03-28  Lawrence Crowl  <crowl@google.com>
28745         * Makefile.in: Add several missing include dependences.
28746         (DUMPFILE_H): New.
28747         (test-dump.o): New.  This object is not added to any executable,
28748         but is present for ad-hoc testing.
28749         * bitmap.c
28750         (debug (const bitmap_head_def &)): New.
28751         (debug (const bitmap_head_def *)): New.
28752         * bitmap.h
28753         (extern debug (const bitmap_head_def &)): New.
28754         (extern debug (const bitmap_head_def *)): New.
28755         * cfg.c
28756         (debug (edge_def &)): New.
28757         (debug (edge_def *)): New.
28758         * cfghooks.c
28759         (debug (basic_block_def &)): New.
28760         (debug (basic_block_def *)): New.
28761         * dumpfile.h
28762         (dump_node (const_tree, int, FILE *)): Correct source file.
28763         * dwarf2out.c
28764         (debug (die_struct &)): New.
28765         (debug (die_struct *)): New.
28766         * dwarf2out.h
28767         (extern debug (die_struct &)): New.
28768         (extern debug (die_struct *)): New.
28769         * gimple-pretty-print.c
28770         (debug (gimple_statement_d &)): New.
28771         (debug (gimple_statement_d *)): New.
28772         * gimple-pretty-print.h
28773         (extern debug (gimple_statement_d &)): New.
28774         (extern debug (gimple_statement_d *)): New.
28775         * ira-build.c
28776         (debug (ira_allocno_copy &)): New.
28777         (debug (ira_allocno_copy *)): New.
28778         (debug (ira_allocno &)): New.
28779         (debug (ira_allocno *)): New.
28780         * ira-int.h
28781         (extern debug (ira_allocno_copy &)): New.
28782         (extern debug (ira_allocno_copy *)): New.
28783         (extern debug (ira_allocno &)): New.
28784         (extern debug (ira_allocno *)): New.
28785         * ira-lives.c
28786         (debug (live_range &)): New.
28787         (debug (live_range *)): New.
28788         * lra-int.h
28789         (debug (lra_live_range &)): New.
28790         (debug (lra_live_range *)): New.
28791         * lra-lives.c
28792         (debug (lra_live_range &)): New.
28793         (debug (lra_live_range *)): New.
28794         * omega.c
28795         (debug (omega_pb_d &)): New.
28796         (debug (omega_pb_d *)): New.
28797         * omega.h
28798         (extern debug (omega_pb_d &)): New.
28799         (extern debug (omega_pb_d *)): New.
28800         * print-rtl.c
28801         (debug (const rtx_def &)): New.
28802         (debug (const rtx_def *)): New.
28803         * print-tree.c
28804         (debug_tree (tree): Move within file.
28805         (debug_raw (const tree_node &)): New.
28806         (debug_raw (const tree_node *)): New.
28807         (dump_tree_via_hooks (const tree_node *, int)): New.
28808         (debug (const tree_node &)): New.
28809         (debug (const tree_node *)): New.
28810         (debug_verbose (const tree_node &)): New.
28811         (debug_verbose (const tree_node *)): New.
28812         (debug_head (const tree_node &)): New.
28813         (debug_head (const tree_node *)): New.
28814         (debug_body (const tree_node &)): New.
28815         (debug_body (const tree_node *)): New.
28816         (debug_vec_tree (tree): Move and reimplement in terms of dump.
28817         (debug (vec<tree, va_gc> &)): New.
28818         (debug (vec<tree, va_gc> *)): New.
28819         * rtl.h
28820         (extern debug (const rtx_def &)): New.
28821         (extern debug (const rtx_def *)): New.
28822         * sbitmap.c
28823         (debug_raw (simple_bitmap_def &)): New.
28824         (debug_raw (simple_bitmap_def *)): New.
28825         (debug (simple_bitmap_def &)): New.
28826         (debug (simple_bitmap_def *)): New.
28827         * sbitmap.h
28828         (extern debug (simple_bitmap_def &)): New.
28829         (extern debug (simple_bitmap_def *)): New.
28830         (extern debug_raw (simple_bitmap_def &)): New.
28831         (extern debug_raw (simple_bitmap_def *)): New.
28832         * sel-sched-dump.c
28833         (debug (vinsn_def &)): New.
28834         (debug (vinsn_def *)): New.
28835         (debug_verbose (vinsn_def &)): New.
28836         (debug_verbose (vinsn_def *)): New.
28837         (debug (expr_def &)): New.
28838         (debug (expr_def *)): New.
28839         (debug_verbose (expr_def &)): New.
28840         (debug_verbose (expr_def *)): New.
28841         (debug (vec<rtx> &)): New.
28842         (debug (vec<rtx> *)): New.
28843         * sel-sched-dump.h
28844         (extern debug (vinsn_def &)): New.
28845         (extern debug (vinsn_def *)): New.
28846         (extern debug_verbose (vinsn_def &)): New.
28847         (extern debug_verbose (vinsn_def *)): New.
28848         (extern debug (expr_def &)): New.
28849         (extern debug (expr_def *)): New.
28850         (extern debug_verbose (expr_def &)): New.
28851         (extern debug_verbose (expr_def *)): New.
28852         (extern debug (vec<rtx> &)): New.
28853         (extern debug (vec<rtx> *)): New.
28854         * sel-sched-ir.h
28855         (_list_iter_cond_expr): Make inline instead of static.
28856         * sreal.c
28857         (debug (sreal &)): New.
28858         (debug (sreal *)): New.
28859         * sreal.h
28860         (extern debug (sreal &)): New.
28861         (extern debug (sreal *)): New.
28862         * tree.h
28863         (extern debug_raw (const tree_node &)): New.
28864         (extern debug_raw (const tree_node *)): New.
28865         (extern debug (const tree_node &)): New.
28866         (extern debug (const tree_node *)): New.
28867         (extern debug_verbose (const tree_node &)): New.
28868         (extern debug_verbose (const tree_node *)): New.
28869         (extern debug_head (const tree_node &)): New.
28870         (extern debug_head (const tree_node *)): New.
28871         (extern debug_body (const tree_node &)): New.
28872         (extern debug_body (const tree_node *)): New.
28873         (extern debug (vec<tree, va_gc> &)): New.
28874         (extern debug (vec<tree, va_gc> *)): New.
28875         * tree-cfg.c
28876         (debug (struct loop &)): New.
28877         (debug (struct loop *)): New.
28878         (debug_verbose (struct loop &)): New.
28879         (debug_verbose (struct loop *)): New.
28880         * tree-dump.c: Add header dependence.
28881         * tree-flow.h
28882         (extern debug (struct loop &)): New.
28883         (extern debug (struct loop *)): New.
28884         (extern debug_verbose (struct loop &)): New.
28885         (extern debug_verbose (struct loop *)): New.
28886         * tree-data-ref.c
28887         (debug (data_reference &)): New.
28888         (debug (data_reference *)): New.
28889         (debug (vec<data_reference_p> &)): New.
28890         (debug (vec<data_reference_p> *)): New.
28891         (debug (vec<ddr_p> &)): New.
28892         (debug (vec<ddr_p> *)): New.
28893         * tree-data-ref.h
28894         (extern debug (data_reference &)): New.
28895         (extern debug (data_reference *)): New.
28896         (extern debug (vec<data_reference_p> &)): New.
28897         (extern debug (vec<data_reference_p> *)): New.
28898         (extern debug (vec<ddr_p> &)): New.
28899         (extern debug (vec<ddr_p> *)): New.
28900         * tree-ssa-alias.c
28901         (debug (pt_solution &)): New.
28902         (debug (pt_solution *)): New.
28903         * tree-ssa-alias.h
28904         (extern debug (pt_solution &)): New.
28905         (extern debug (pt_solution *)): New.
28906         * tree-ssa-alias.c
28907         (debug (_var_map &)): New.
28908         (debug (_var_map *)): New.
28909         (debug (tree_live_info_d &)): New.
28910         (debug (tree_live_info_d *)): New.
28911         * tree-ssa-alias.h
28912         (extern debug (_var_map &)): New.
28913         (extern debug (_var_map *)): New.
28914         (extern debug (tree_live_info_d &)): New.
28915         (extern debug (tree_live_info_d *)): New.
28917 2013-03-28  Jan Hubicka  <jh@suse.cz>
28919         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
28921 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
28923         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
28924         record only when desired or required.
28926 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
28928         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
28929         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
28931 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28933         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
28934         (*andsi3_compare0_uxtw): New pattern.
28935         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
28936         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
28938 2013-03-28  Jan Hubicka  <jh@suse.cz>
28940         * data-streamer-in.c (streamer_read_gcov_count): New function.
28941         * gimple-streamer-out.c: Include value-prof.h.
28942         (output_gimple_stmt): Output histogram.
28943         (output_bb): Use streamer_write_gcov_count.
28944         * value-prof.c: Include data-streamer.h
28945         (dump_histogram_value): Add HIST_TYPE_MAX.
28946         (stream_out_histogram_value): New function.
28947         (stream_in_histogram_value): New function.
28948         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
28949         (stream_out_histogram_value, stream_in_histogram_value): Declare.
28950         * data-streamer-out.c (streamer_write_gcov_count): New function.
28951         (streamer_write_gcov_count_stream): New function.
28952         * lto-cgraph.c (lto_output_edge): Update counter streaming.
28953         (lto_output_node): Likewise.
28954         (input_node, input_edge): Likewise.
28955         * lto-streamer-out.c (output_cfg): Update streaming.
28956         * lto-streamer-in.c (input_cfg): Likewise.
28957         * data-streamer.h (streamer_write_gcov_count,
28958         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
28959         * gimple-streamer-in.c: Include value-prof.h
28960         (input_gimple_stmt): Input histograms.
28961         (input_bb): Update profile streaming.
28963 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
28965         * genmodes.c (emit_max_int): New function.
28966         (emit_insn_modes_h): Added call to emit_max_function.
28967         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
28968         Added doc.
28969         * machmode.def: Fixed comment.
28971 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
28973         * combine.c (try_combine): Removed useless assert.
28974         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
28976 2013-03-28  Marek Polacek  <polacek@redhat.com>
28977             Richard Biener  <rguenther@suse.de>
28979         PR tree-optimization/56695
28980         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
28981         build signed result of a vector comparison.
28982         * tree-cfg.c (verify_gimple_comparison): Check that a result
28983         of a vector comparison has signed type.
28985 2013-03-28  Richard Biener  <rguenther@suse.de>
28987         PR tree-optimization/37021
28988         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
28989         do not restrict gaps between groups.
28990         * tree-vect-stmts.c (vectorizable_load): Properly account for
28991         a gap between groups.
28993 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
28995         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
28996         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
28997         is not enabled.
28999 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
29001         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
29002         * doc/extend.texi (Named Address Spaces): Ditto.
29003         (Variable Attributes): Ditto.
29005 2013-03-27  Kai Tietz  <ktietz@redhat.com>
29007         * config.build: Add support for cygwin x64 target.
29008         * config.gcc: Likewise.
29009         * config.host: Likewise.
29010         * configure.ac: Likewise
29011         * configure: Regenerated.
29013 2013-03-27  Kai Tietz  <ktietz@redhat.com>
29015         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
29016         * config/i386/t-cygwin-w64: New file.
29017         * config/i386/cygwin-w64.h: New file.
29018         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
29019         and add support for x64-cygwin target.
29020         (CPP_SPEC): Likewise.
29021         (CXX_WRAP_SPEC_LIST): Undefine before define.
29022         (LIBGCJ_SONAME): Use 15 as version.
29024 2013-03-27  Richard Biener  <rguenther@suse.de>
29026         PR tree-optimization/56716
29027         * tree-ssa-structalias.c (perform_var_substitution): Adjust
29028         dumping for ref nodes.
29030 2013-03-27  Martin Jambor  <mjambor@suse.cz>
29032         PR tree-optimization/55334
29033         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
29034         restricted pointers to arrays.
29036 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
29038         * Makefile.in (.SUFFIXES): Add .cc.
29039         (.c.o): Apply same recipe for implicit rule .cc.o.
29041 2013-03-27  Richard Biener  <rguenther@suse.de>
29043         PR tree-optimization/37021
29044         * tree-vect-data-refs.c (vect_check_strided_load): Allow
29045         REALPART/IMAGPART_EXPRs around the supported refs.
29046         * tree-ssa-structalias.c (find_func_aliases): Assume that
29047         floating-point values are not used to transfer pointers.
29049 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
29051         * target.def (TARGET_HAS_IFUNC_P): New target hook.
29052         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
29053         * doc/tm.texi: Regenerate.
29054         * targhooks.h (default_has_ifunc_p): New.
29055         * targhooks.c (default_has_ifunc_p): Ditto.
29056         * config/linux-protos.h: New file.
29057         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
29058         hook for linux which disables support of indirect functions in android.
29059         * config/linux-android.c: New file.
29060         * config/t-linux-android.c: Ditto.
29061         * config.gcc: Added new object file linux-android.o.
29062         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
29063         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
29064         * varasm.c (do_assemble_alias): Likewise.
29065         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
29066         doesn't support indirect functions.
29067         * configure: Regenerate.
29069 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
29071         PR target/56102
29072         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
29073         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
29074         mult-word mode.
29076 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29078         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
29080 2013-03-27  Terry Guo  <terry.guo@arm.com>
29082         * config/arm/arm-cores.def: Added core cortex-r7.
29083         * config/arm/arm-tune.md: Regenerated.
29084         * config/arm/arm-tables.opt: Regenerated.
29085         * doc/invoke.texi: Added entry for core cortex-r7.
29087 2013-03-27  Walter Lee  <walt@tilera.com>
29089         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
29090         double-decrement of next_scratch_regno.
29092 2013-03-27  Walter Lee  <walt@tilera.com>
29094         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
29095         input operands.
29096         (insn_v1mulus): Ditto.
29097         (insn_v2muls): Ditto.
29099 2013-03-27  Walter Lee  <walt@tilera.com>
29101         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
29102         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
29104 2013-03-27  Walter Lee  <walt@tilera.com>
29106         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
29107         (*sibcall_value): Ditto.
29109 2013-03-27  Walter Lee  <walt@tilera.com>
29111         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
29112         (insn_mnz_v8qi): ... this ...
29113         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
29114         vector equivalent.
29115         (insn_v<n>mnz): Replaced by ...
29116         (insn_v1mnz): ... this ...
29117         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
29118         equivalent.
29119         (insn_mz_<mode>): Replaced by ...
29120         (insn_mz_v8qi): ... this ...
29121         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
29122         vector equivalent.
29123         (insn_v<n>mz): Replaced by ...
29124         (insn_v1mz): ... this ...
29125         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
29126         equivalent.
29128 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
29130         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
29132 2013-03-26  Roland McGrath  <mcgrathr@google.com>
29134         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
29135         than fprintf with a non-constant, non-format string.
29137 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
29139         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
29140         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
29141         operand 0 predicate.
29142         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
29143         attribute.  Use general_x64nomem_operand as operand 1 predicate.
29144         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
29145         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
29146         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
29147         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
29148         (mov<mode>_insv_1): Remove expander.  Merge insn with
29149         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
29150         Use general_x64nomem_operand as operand 1 predicate.
29151         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
29152         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
29153         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
29154         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
29155         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
29156         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
29157         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
29158         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
29159         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
29160         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
29161         (general_x64nomem_operand): Ditto.
29163 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
29165         * config/rtems.opt: Add -pthread option.
29167 2013-03-26  Richard Biener  <rguenther@suse.de>
29169         * alias.c (find_base_term): Avoid redundant and not used recursion.
29170         (base_alias_check): Get the initial base term from the caller.
29171         (true_dependence_1): Compute and pass base terms to base_alias_check.
29172         (write_dependence_p): Likewise.
29173         (may_alias_p): Likewise.
29175 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
29177         * config/aarch64/aarch64.c (aarch64_classify_address): Support
29178         PC-relative load in SI modes and above only.
29180 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
29182         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
29183         * config/arm/iwmmxt.md (WCGR0): Update.
29184         (WCGR1, WCGR2, WCGR3): Likewise.
29186 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
29188         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
29189         Use x64 and nox64 isa attributes.
29191 2013-03-26  Richard Biener  <rguenther@suse.de>
29193         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
29194         alignment computations and rely on get_object_alignment_1
29195         for the !TYPE_P case.
29196         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
29198 2013-03-26  Walter Lee  <walt@tilera.com>
29200         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
29201         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
29203 2013-03-25  Jeff Law  <law@redhat.com>
29205         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
29206         check for INTEGRAL_TYPE_P that was missing due to checking in
29207         wrong version of prior patch.
29209 2013-03-25  Walter Lee  <walt@tilera.com>
29211         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
29212         TILEGX_INSN_SHUFFLEBYTES1.
29213         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
29214         shufflebytes1.
29215         (tilegx_builtins): Ditto.
29216         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
29218 2013-03-25  Walter Lee  <walt@tilera.com>
29220         * config/tilegx/tilegx.md (floatsisf2): New pattern.
29221         (floatunssisf2): New pattern.
29222         (floatsidf2): New pattern.
29223         (floatunssidf2): New pattern.
29225 2013-03-25  Walter Lee  <walt@tilera.com>
29227         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
29228         tests for constraint J, K, N, P.
29230 2013-03-25  Walter Lee  <walt@tilera.com>
29232         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
29233         Use indirect/pcrel encoding.
29234         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
29235         Ditto.
29237 2013-03-25  Steve Ellcey  <sellcey@mips.com>
29239         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
29240         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
29241         * config/mips/mips.c (mips_option_override): Set IMADD default.
29242         * config/mips/mips.h (PTF_AVOID_IMADD): New.
29243         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
29244         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
29245         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
29246         * doc/invoke.texi (-mimadd/-mno-imadd): New.
29248 2013-03-25  Jeff Law  <law@redhat.com>
29250         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
29251         slightly to avoid creating and folding useless trees.  Simplify
29252         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
29254 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
29256         * config/i386/i386.md (*zero_extendsidi2): Merge with
29257         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
29258         * config/i386/predicates.md (x86_64_zext_operand): Rename from
29259         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
29260         targets.  Clarify comment.
29262 2013-03-25  Martin Jambor  <mjambor@suse.cz>
29264         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
29265         pass-through jump functions differently.
29266         (ipa_read_jump_function): Likewise.  Also use setter functions to set
29267         up jump functions.
29269 2013-03-25  Martin Jambor  <mjambor@suse.cz>
29271         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
29272         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
29273         process it.
29274         (ipa_get_indirect_edge_target): New function.
29275         (devirtualization_time_bonus): New parameter known_aggs, pass it to
29276         ipa_get_indirect_edge_target.  Update all callers.
29277         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
29278         ipa_get_indirect_edge_target_1 instead of calling
29279         ipa_get_indirect_edge_target.
29280         (create_specialized_node): Pass aggvlas to
29281         ipcp_discover_new_direct_edges.
29283 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29285         * config/arm/arm.md (f_sels, f_seld): New types.
29286         (*cmov<mode>): New pattern.
29287         * config/arm/predicates.md (arm_vsel_comparison_operator): New
29288         predicate.
29290 2013-03-25  Kai Tietz  <ktietz@redhat.com>
29292         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
29293         POSIX-printf for mingw-hosted  builds.
29295 2013-03-25  Richard Biener  <rguenther@suse.de>
29297         PR middle-end/56694
29298         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
29299         must-not-throw stmt location.
29301 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29303         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
29304         Emit load-acquire versions when acq is true.
29305         (arm_emit_store_exclusive): Add rel parameter.
29306         Emit store-release versions when rel is true.
29307         (arm_split_compare_and_swap): Use acquire-release instructions
29308         instead.
29309         of barriers when appropriate.
29310         (arm_split_atomic_op): Likewise.
29311         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
29312         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
29313         (VUNSPEC_SLX): Likewise.
29314         (VUNSPEC_LDA): Likewise.
29315         (VUNSPEC_STL): Likewise.
29316         * config/arm/sync.md (atomic_load<mode>): New pattern.
29317         (atomic_store<mode>): Likewise.
29318         (arm_load_acquire_exclusive<mode>): Likewise.
29319         (arm_load_acquire_exclusivesi): Likewise.
29320         (arm_load_acquire_exclusivedi): Likewise.
29321         (arm_store_release_exclusive<mode>): Likewise.
29323 2013-03-25  Catherine Moore  <clm@codesourcery.com>
29325         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
29326         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
29327         * config/mip/predicates.md (lwsp_swsp_operand,
29328         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
29329         sb16_operand, db4_operand, db7_operand, ib3_operand,
29330         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
29331         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
29332         andi16_operand): New predicates.
29333         * config/mips/mips.md (compression): New attribute.
29334         (enabled): New attribute.
29335         (length): Consider compression in computing length.
29336         (shift_compression): New code attribute.
29337         (*add<mode>3): New operands. Record compression.
29338         (sub<mode>3): Likewise.
29339         (one_cmpl<mode>2): Likewise.
29340         (*and<mode>3): Likewise.
29341         (*ior<mode>3): Likewise.
29342         (unnamed pattern for xor): Likewise.
29343         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
29344         (*<optab><mode>3): Likewise.
29345         (*mov<mode>_internal: Likewise.
29346         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
29347         (mips_unsigned_immediate_p): New.
29348         (umips_lwsp_swsp_address_p): New.
29349         (m16_based_address_p): New.
29350         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
29351         (mips_unsigned_immediate_p): New prototype.
29352         (lwsp_swsp_address_p): New prototype.
29353         (m16_based_address_p): New prototype.
29354         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
29355         (mips_signed_immediate_p): New function.
29356         (m16_based_address_p): New function.
29357         (lwsp_swsp_address_p): New function.
29358         (mips_print_operand_punctuation): Recognize short delay slot insns
29359         for microMIPS.add<mode>3"
29361 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29363         PR target/56720
29364         * config/arm/iterators.md (v_cmp_result): New mode attribute.
29365         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
29367 2013-03-25  Richard Biener  <rguenther@suse.de>
29369         PR tree-optimization/56689
29370         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
29371         any edge.
29373 2013-03-25  Richard Biener  <rguenther@suse.de>
29375         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
29376         of bitmap.
29377         (memory_references): Likewise.
29378         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
29379         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
29380         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
29381         (gather_mem_refs_in_loops): Fold into ...
29382         (analyze_memory_references): ... this.  Move initialization
29383         to tree_ssa_lim_initialize.
29384         (fill_always_executed_in): Rename to ...
29385         (fill_always_executed_in_1): ... this.
29386         (fill_always_executed_in): Move contains_call computation to
29387         this new function from ...
29388         (tree_ssa_lim_initialize): ... here.
29389         (tree_ssa_lim): Call fill_always_executed_in.
29391 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
29393         * postreload.c (reload_combine): Fix code detecting returns.
29395 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
29397         * function.c (emit_use_return_register_into_block): On cc0 targets,
29398         do not emit the sequence between cc0 setter and user.
29400 2013-03-25  Kai Tietz  <ktietz@redhat.com>
29402         * config/i386/predicates.md (local_symbolic_operand): Interpret
29403         dll-imported symbols as none-local.
29405 2013-03-25  Richard Biener  <rguenther@suse.de>
29407         * tree-ssa-loop-im.c (struct depend): Remove.
29408         (struct lim_aux_data): Make depends a vec of gimples.
29409         (free_lim_aux_data): Adjust.
29410         (add_dependency): Likewise.
29411         (set_level): Likewise.
29413 2013-03-25  Richard Biener  <rguenther@suse.de>
29415         PR middle-end/56434
29416         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
29417         the pointer returned by calls with ECF_MALLOC set.
29419 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
29421         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
29423 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
29425         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
29426         using MMXMODE mode iterator.
29427         (*move<mode>_internal): Merge with *movv2sf_internal and
29428         *movv2sf_internal_rex64 using MMXMODE mode iterator.
29430 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
29432         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
29433         (record_last_mem_set_info): Likewise.
29435         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
29436         of XNEWVEC followed by memset.
29437         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
29439 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
29441         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
29442         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
29443         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
29444         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
29445         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
29446         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
29447         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
29448         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
29449         BARRIER_P instead of GET_CODE.
29451 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
29453         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
29454         inaccuracy in the probing code.
29456         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
29457         (ctrapdi4): Likewise.
29459 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
29461         * calls.c (expand_call): Add missing guard to code handling return
29462         of non-BLKmode structures in MSB.
29463         * function.c (expand_function_end): Likewise.
29465 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
29467         * combine.c (try_combine): Adjust comment.  Do not add the set of
29468         insn #0 if the destination indirectly is set or dies in insn #2.
29469         Tidy up code to distribute a new note.
29471 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
29473         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
29474         also for alternatives 16 and 17.
29476 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
29478         * config/i386/sse.md (*mov<mode>_internal): Merge with
29479         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
29480         Emit insn template depending on type attribute.  Use
29481         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
29482         movd instead of movq mnemonic for interunit moves.  Rewrite mode
29483         attribute calculation.  Remove unit attribute calculation.
29484         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
29485         Set prefix_data16 attribute for DImode ssemov types.
29486         Use Ym instead of y for SSE-MMX conversion alternatives.
29487         Reorder operand constraints.
29489 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
29491         * df.h (df_insn_delete): Adjust prototype.
29492         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
29493         and let it decide whether mark the basic block dirty.
29494         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
29495         * df-scan.c (df_insn_info_delete): New helper function, split
29496         off from df_insn_delete.
29497         (df_scan_free_bb_info): Use it.
29498         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
29499         Likewise.
29500         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
29501         that the insn is actually an insn and it has a non-NULL basic block.
29502         Do not mark basic block dirty if only deleting a DEBUG_INSN.
29504 2013-03-22  Richard Biener  <rguenther@suse.de>
29506         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
29507         dep_ref members.
29508         (mem_ref_alloc): Do not allocate them.
29509         (refs_independent_p): Do not query or maintain a cache.
29511 2013-03-22  Richard Biener  <rguenther@suse.de>
29513         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
29514         (gather_mem_refs_in_loops): Do not compute it.
29515         (analyze_memory_references): Do not allocate it.
29516         (tree_ssa_lim_finalize): Do not free it.
29517         (for_all_locs_in_loop): Do not query all_refs_in_loop.
29519 2013-03-22  Richard Biener  <rguenther@suse.de>
29521         * is-a.h (as_a): Use gcc_checking_assert.
29523 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
29525         * config/aarch64/aarch64.c (aarch64_print_operand): New
29526         format specifier for printing a constant in hex.
29527         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
29528         format specifier for printing second operand.
29530 2013-03-22  Richard Biener  <rguenther@suse.de>
29532         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
29533         bitmaps.
29534         (gather_mem_refs_in_loops): Perform store accumulation here.
29535         (create_vop_ref_mapping_loop): Remove.
29536         (create_vop_ref_mapping): Likewise.
29537         (analyze_memory_references): Initialize refs_stored_in_loop.
29538         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
29539         (record_indep_loop): Remove.
29540         (record_dep_loop): New function.
29541         (ref_indep_loop_p_1): Adjust to only walk over references
29542         in the loop, not its subloops.
29543         (ref_indep_loop_p): Rename to ...
29544         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
29545         maintaining a more fine-grained cache.
29546         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
29547         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
29549 2013-03-22  Richard Biener  <rguenther@suse.de>
29551         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
29552         (struct mem_ref): Make accesses_in_loop a vec of a vec of
29553         aggregate mem_ref_loc.
29554         (free_mem_ref_locs): Inline into ...
29555         (memref_free): ... this and adjust.
29556         (mem_ref_alloc): Adjust.
29557         (mem_ref_locs_alloc): Remove.
29558         (record_mem_ref_loc): Adjust.
29559         (get_all_locs_in_loop): Rewrite into ...
29560         (for_all_locs_in_loop): ... this iterator.
29561         (rewrite_mem_ref_loc): New functor.
29562         (rewrite_mem_refs): Use for_all_locs_in_loop.
29563         (sm_set_flag_if_changed): New functor.
29564         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
29565         (ref_always_accessed): New functor.
29566         (ref_always_accessed_p): Use for_all_locs_in_loop.
29568 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
29570         * tree-pass.h (PROP_gimple_lvec): New.
29571         * passes.c (dump_properties): Handle PROP_gimple_lvec.
29572         (init_optimization_passes): Move pass_lower_vector.
29573         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
29574         PROP_gimple_lvec.
29575         (pass_lower_vector): Provide PROP_gimple_lvec.
29576         (pass_lower_vector_ssa): Likewise.
29577         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
29579 2013-03-21  Mark Wielaard  <mjw@redhat.com>
29581         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
29583 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
29585         * config/i386/i386.md (*movdi_internal): Disparage slightly
29586         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
29587         conversion alternatives.
29589 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
29591         PR middle-end/48087
29592         * diagnostic.def (DK_WERROR): New kind.
29593         * diagnostic.h (werrorcount): Define.
29594         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
29595         promoted to DK_ERROR, increment DK_WERROR counter instead of
29596         DK_ERROR counter.
29597         * toplev.c (toplev_main): Call print_ignored_options even if
29598         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
29599         even if just werrorcount is non-zero.
29601         PR debug/55608
29602         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
29603         on failure.
29604         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
29605         (string_cst_pool_decl): New function.
29606         (optimize_one_addr_into_implicit_ptr): New function.
29607         (resolve_addr_in_expr): Optimize DWARF location expression
29608         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
29609         which doesn't live in memory, but has DW_AT_location or
29610         DW_AT_const_value, or refers to a string literal, into
29611         DW_OP_GNU_implicit_pointer.
29612         (optimize_location_into_implicit_ptr): New function.
29613         (resolve_addr): If removing DW_AT_location of a variable because
29614         it was DW_OP_addr of address of the variable, but the variable doesn't
29615         live in memory, try to emit const value attribute for the initializer.
29617 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
29619         * tree.h (VECTOR_TYPE_P): New macro.
29620         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
29621         TYPE_MODE): Use it.
29622         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
29623         VEC_COND_EXPR cannot be lvalues.
29624         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
29626 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
29628         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
29629         Restrict the transformation to equal modes.
29631 2013-03-21  Richard Biener  <rguenther@suse.de>
29633         PR tree-optimization/39326
29634         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
29635         (MEM_ANALYZABLE): Adjust.
29636         (record_mem_ref_loc): Move bitmap ops ...
29637         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
29638         unanalyzable refs, do not record locations for it.
29639         (analyze_memory_references): Allocate ref zero as shared
29640         unanalyzable ref.
29641         (refs_independent_p): Do not test for unanalyzed mems here.
29642         (ref_indep_loop_p_1): Special-case disambiguation against
29643         the unanalyzed ref.
29644         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
29646 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
29648         * config/arm/arm-protos.h (tune_params): Add
29649         prefer_neon_for_64bits field.
29650         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
29651         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
29652         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
29653         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
29654         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
29655         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
29656         (arm_option_override): Handle -mneon-for-64bits new option.
29657         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
29658         (prefer_neon_for_64bits): Declare new variable.
29659         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
29660         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
29661         (arch_enabled): Handle new arch types. Remove support for onlya8
29662         and nota8.
29663         (one_cmpldi2): Use new arch names.
29664         (zero_extend<mode>di2, extend<mode>di2): Ditto.
29665         * config/arm/arm.opt (mneon-for-64bits): Add option.
29666         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
29667         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
29668         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
29669         of onlya8.
29670         * doc/invoke.texi (-mneon-for-64bits): Document.
29672 2013-03-21  Richard Biener  <rguenther@suse.de>
29674         PR tree-optimization/39326
29675         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
29676         (sort_bbs_in_loop_postorder_cmp): New function.
29677         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
29679 2013-03-21  Richard Biener  <rguenther@suse.de>
29681         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
29682         (vect_insert_into_interleaving_chain): Likewise.
29683         (vect_drs_dependent_in_basic_block): Inline ...
29684         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
29685         split out from ...
29686         (vect_analyze_data_ref_dependence): ... here.  Simplify.
29687         (vect_check_interleaving): Simplify.
29688         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
29689         (vect_slp_analyze_data_ref_dependences): ... this new function.
29690         (dr_group_sort_cmp): New function.
29691         (vect_analyze_data_ref_accesses): Compute data-reference groups
29692         here instead of in vect_analyze_data_ref_dependence.  Use
29693         a more efficient algorithm.
29694         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
29695         vect_slp_analyze_data_ref_dependences.  Call
29696         vect_analyze_data_ref_accesses earlier.
29697         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
29698         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
29699         (vect_slp_analyze_data_ref_dependences): New prototype.
29701 2013-03-21  Richard Biener  <rguenther@suse.de>
29703         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
29704         ref is stored in the loop.
29705         (find_refs_for_sm): Walk only over all stores.
29706         (store_motion_loop): Allocate from lim_bitmap_obstack.
29707         (store_motion): Likewise.
29709 2013-03-21  Richard Biener  <rguenther@suse.de>
29711         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
29712         Update virtual SSA form.
29714 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29716         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
29717         * configure: Regenerate.
29718         * config.in: Regenerate.
29719         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
29720         if !HAVE_LD_EH_FRAME_CIEV3.
29722 2013-03-21  Richard Biener  <rguenther@suse.de>
29724         * tree-cfg.c (verify_expr_no_block): New function.
29725         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
29726         nor DECL_VALUE_EXPR have locations with associated blocks.
29727         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
29728         (clear_unused_block_pointer): Remove code dealing with
29729         blocks in DECL_DEBUG_EXPR locations.
29731 2013-03-21  Richard Biener  <rguenther@suse.de>
29733         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
29734         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
29735         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
29736         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
29737         instead of DECL_DEBUG_EXPR_IS_FROM.
29738         * gimplify.c (gimplify_modify_expr): Likewise.
29739         * tree-cfg.c (verify_expr_location_1): Likewise.
29740         * tree-complex.c (create_one_component_var): Likewise.
29741         * tree-sra.c (create_access_replacement): Likewise.
29742         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
29743         (clear_unused_block_pointer): Likewise.
29744         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
29745         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
29746         * var-tracking.c (var_debug_decl): Likewise.
29747         (track_expr_p): Likewise.
29748         * tree-inline.c (add_local_variables): Likewise.  Set
29749         DECL_HAS_DEBUG_EXPR_P after copying it.
29750         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
29751         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
29753 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
29755         PR bootstrap/56656
29756         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
29757         * configure: Regenerate.
29758         * config.in: Regenerate.
29759         * config/i386/i386.md (*movdf_internal): Use
29760         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
29761         movd instead of movq mnemonic for interunit moves.
29762         (*movdi_internal): Ditto.
29764 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29766         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
29767         (abd<mode>_3): New pattern.
29768         (aba<mode>_3): New pattern.
29769         (fabd<mode>_3): New pattern.
29771 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29773         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
29774         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
29775         occurrence of REGISTER_PREFIX as its empty string.
29777 2013-03-20  Jeff Law  <law@redhat.com>
29779         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
29780         addititional equivalences for equality comparisons between an SSA_NAME
29781         and a constant where the SSA_NAME was set from a widening conversion.
29783 2013-03-20  Walter Lee  <walt@tilera.com>
29785         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
29787 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
29789         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
29790         depending on type attribute.
29791         (*movti_internal): Ditto.
29792         (*movtf_internal): Ditto.
29793         (*movxf_internal): Ditto.
29794         (*movdf_internal): Ditto.
29795         (*movsf_internal): Ditto.
29797 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
29799         * config/i386/i386.md (*movti_internal): Set prefix attribute to
29800         maybe_vex for sselog1 and ssemov types.
29801         (*movdi_internal): Reorder operand constraints.
29802         (*movsi_internal): Ditto.  Set prefix attribute to
29803         maybe_vex for sselog1 and ssemov types.
29804         (*movtf_internal): Set prefix attribute to maybe_vex
29805         for sselog1 and ssemov types.
29806         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
29807         DImode ssemov types.  Reorder operand constraints.
29808         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
29809         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
29810         attribute for SImode ssemov types.  Reorder operand constraints.
29812 2013-03-20  Martin Jambor  <mjambor@suse.cz>
29814         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
29815         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
29817 2013-03-20  Pat Haugen  <pthaugen@us.ibm.com>
29819         * config/rs6000/predicates.md (indexed_address, update_address_mem
29820         update_indexed_address_mem): New predicates.
29821         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
29822         attribute for load/store instructions.
29823         * config/rs6000/dfp.md (movsd_store): Likewise.
29824         (movsd_load): Likewise.
29825         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
29826         (unnamed HI->DI extend define_insn): Likewise.
29827         (unnamed SI->DI extend define_insn): Likewise.
29828         (unnamed QI->SI extend define_insn): Likewise.
29829         (unnamed QI->HI extend define_insn): Likewise.
29830         (unnamed HI->SI extend define_insn): Likewise.
29831         (unnamed HI->SI extend define_insn): Likewise.
29832         (extendsfdf2_fpr): Likewise.
29833         (movsi_internal1): Likewise.
29834         (movsi_internal1_single): Likewise.
29835         (movhi_internal): Likewise.
29836         (movqi_internal): Likewise.
29837         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
29838         attribute for load/store instructions.
29839         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
29840         instructions.
29841         (mov<mode>_softfloat): Likewise.
29842         (mov<mode>_hardfloat32): Likewise.
29843         (mov<mode>_hardfloat64): Likewise.
29844         (mov<mode>_softfloat64): Likewise.
29845         (movdi_internal32): Likewise.
29846         (movdi_internal64): Likewise.
29847         (probe_stack_<mode>): Likewise.
29849 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
29851         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
29852         floating point, and decimal floating point to reload iterator.
29854         * config/rs6000/constraints.md (wl constraint): New constraints to
29855         return FLOAT_REGS if certain options are used to reduce the number
29856         of separate patterns that exist in the file.
29857         (wx constraint): Likewise.
29858         (wz constraint): Likewise.
29860         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
29861         -mdebug=reg, print wg, wl, wx, and wz constraints.
29862         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
29863         Initialize the reload functions for 64-bit binary/decimal floating
29864         point types.
29865         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
29866         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
29867         create the buffer on the stack to overcome not having a 32-bit
29868         load and store.
29869         (rs6000_emit_move): Likewise.
29870         (rs6000_secondary_memory_needed_rtx): Likewise.
29871         (rs6000_alloc_sdmode_stack_slot): Likewise.
29872         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
29873         via xxlxor, just like DFmode 0.0.
29875         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
29876         define as 1 if we are running on a power7 or newer.
29877         (enum r6000_reg_class_enum): Add new constraints.
29879         * config/rs6000/dfp.md (movsd): Delete, combine with binary
29880         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
29881         with other moves by using conditional constraits (wg).  Use LFIWZX
29882         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
29883         (movsd splitter): Likewise.
29884         (movsd_hardfloat): Likewise.
29885         (movsd_softfloat): Likewise.
29887         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
29888         binary and decimal floating point moves.
29889         (fmove_ok): New attributes to combine binary and decimal floating
29890         point moves, and to combine power6x (mfpgpr) moves along normal
29891         floating moves.
29892         (real_value_to_target): Likewise.
29893         (f32_lr): Likewise.
29894         (f32_lm): Likewise.
29895         (f32_li): Likewise.
29896         (f32_sr): Likewise.
29897         (f32_sm): Likewise.
29898         (f32_si): Likewise.
29899         (movsf): Combine binary and decimal floating point moves.  Combine
29900         power6x (mfpgpr) moves with other moves by using conditional
29901         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
29902         (mov<mode> for SFmode/SDmode); Likewise.
29903         (SFmode/SDmode splitters): Likewise.
29904         (movsf_hardfloat): Likewise.
29905         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
29906         (movsf_softfloat): Likewise.
29907         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
29909         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
29910         wx and wz constraints.
29912         * config/rs6000/constraints.md (wg constraint): New constraint to
29913         return FLOAT_REGS if -mmfpgpr (power6x) was used.
29915         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
29916         constraint.
29918         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
29919         -mdebug=reg, print wg, wl, wx, and wz constraints.
29920         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
29921         Initialize the reload functions for 64-bit binary/decimal floating
29922         point types.
29923         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
29924         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
29925         create the buffer on the stack to overcome not having a 32-bit
29926         load and store.
29927         (rs6000_emit_move): Likewise.
29928         (rs6000_secondary_memory_needed_rtx): Likewise.
29929         (rs6000_alloc_sdmode_stack_slot): Likewise.
29930         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
29931         via xxlxor, just like DFmode 0.0.
29933         * config/rs6000/dfp.md (movdd): Delete, combine with binary
29934         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
29935         with other moves by using conditional constraits (wg).  Use LFIWZX
29936         and STFIWX for loading SDmode on power7.
29937         (movdd splitters): Likewise.
29938         (movdd_hardfloat32): Likewise.
29939         (movdd_softfloat32): Likewise.
29940         (movdd_hardfloat64_mfpgpr): Likewise.
29941         (movdd_hardfloat64): Likewise.
29942         (movdd_softfloat64): Likewise.
29944         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
29945         64-bit binary and decimal floating point moves.
29946         (FMOVE64X): Likewise.
29947         (movdf): Combine 64-bit binary and decimal floating point moves.
29948         Combine power6x (mfpgpr) moves with other moves by using
29949         conditional constraits (wg).
29950         (mov<mode> for DFmode/DDmode): Likewise.
29951         (DFmode/DDmode splitters): Likewise.
29952         (movdf_hardfloat32): Likewise.
29953         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
29954         (movdf_softfloat32): Likewise.
29955         (movdf_hardfloat64_mfpgpr): Likewise.
29956         (movdf_hardfloat64): Likewise.
29957         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
29958         (movdf_softfloat64): Likewise.
29959         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
29960         (reload_<mode>_load): Move to later in the file so they aren't in
29961         the middle of the floating point move insns.
29962         (reload_<mode>_store): Likewise.
29964         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
29965         constraint.
29967         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
29968         constraint if -mdebug=reg.
29969         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
29970         Enable using dd reload support if needed.
29972         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
29973         binary and decimal floating point moves in rs6000.md.
29974         (movtd_internal): Likewise.
29976         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
29977         decimal floating point moves.
29978         (movtf): Likewise.
29979         (movtf_internal): Likewise.
29980         (mov<mode>_internal, TDmode/TFmode): Likewise.
29981         (movtf_softfloat): Likewise.
29982         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
29984         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
29985         movdi_internal64, using wg constraint for move direct operations.
29986         (movdi_internal64): Likewise.
29988         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
29989         MODES_TIEABLE_P for selected modes.  Print the numerical value of
29990         the various virtual registers. Use GPR/FPR first/last values,
29991         instead of hard coding the register numbers.  Print which modes
29992         have reload functions registered.
29993         (rs6000_option_override_internal): If -mdebug=reg, trace the options
29994         settings before/after setting cpu, target and subtarget settings.
29995         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
29996         and for secondary reload failures in rs6000_secondary_reload_inner.
29997         (rs6000_secondary_reload_fail): Likewise.
29998         (rs6000_secondary_reload_inner): Likewise.
30000         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
30001         macros for first/last GPR and FPR registers.
30002         (LAST_GPR_REGNO): Likewise.
30003         (FIRST_FPR_REGNO): Likewise.
30004         (LAST_FPR_REGNO): Likewise.
30006         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
30007         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
30008         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
30009         (vcond<mode><mode>): Likewise.
30010         (vcondu<mode><mode>): Likewise.
30011         (vector_gtu<mode>): Likewise.
30012         (vector_gte<mode>): Likewise.
30013         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
30014         to prevent the compiler from converting DImode operations to TImode.
30015         (ior<mode>3): Likewise.
30016         (and<mode>3): Likewise.
30017         (one_cmpl<mode>2): Likewise.
30018         (nor<mode>3): Likewise.
30019         (andc<mode>3): Likewise.
30021         * config/rs6000/constraints.md (wt constraint): New constraint
30022         that returns VSX_REGS if TImode is allowed in VSX registers.
30024         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
30025         constant under VSX.
30027         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
30028         similar to TImode, but it is restricted to being in the GPRs.
30030         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
30031         TImode to occupy a single VSX register.
30033         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
30034         -mvsx-timode for power7/power8.
30035         (power7 cpu): Likewise.
30036         (power8 cpu): Likewise.
30038         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
30039         sure that TFmode/TDmode take up two registers if they are ever
30040         allowed in the upper VSX registers.
30041         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
30042         registers.
30043         (rs6000_init_hard_regno_mode_ok): Likewise.
30044         (rs6000_debug_reg_global): Add debugging for PTImode and wt
30045         constraint.  Print if LRA is turned on.
30046         (rs6000_option_override_internal): Give an error if -mvsx-timode
30047         and VSX is not enabled.
30048         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
30049         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
30050         to reg+offset addressing.  Use PTImode when checking offset
30051         addresses for validity.
30052         (reg_offset_addressing_ok_p): Likewise.
30053         (rs6000_legitimate_offset_address_p): Likewise.
30054         (rs6000_legitimize_address): Likewise.
30055         (rs6000_legitimize_reload_address): Likewise.
30056         (rs6000_legitimate_address_p): Likewise.
30057         (rs6000_eliminate_indexed_memrefs): Likewise.
30058         (rs6000_emit_move): Likewise.
30059         (rs6000_secondary_reload): Likewise.
30060         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
30061         reloads to fpr registers to continue to use reg+offset addressing,
30062         but 64-bit reloads to altivec registers need reg+reg addressing.
30063         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
30064         it.  Treat LO_SUM like a PLUS operation.
30065         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
30066         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
30067         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
30068         registers to share a register with a smaller sized type, since VSX
30069         puts scalars in the upper 64-bits.
30070         (print_operand): Add support for PTImode.
30071         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
30072         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
30073         registers, but don't have arithmetic support.
30074         (rs6000_memory_move_cost): Add test for VSX.
30075         (rs6000_opt_masks): Add -mvsx-timode.
30077         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
30078         for TImode.
30079         (VSs): Likewise.
30080         (VSr): Use wt constraint for TImode.
30081         (VSv): Drop TImode support.
30082         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
30083         (vsx_movti_64bit): Likewise.
30084         (vsx_movti_32bit): Likewise.
30085         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
30086         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
30087         one '?' on the appropriate output constraint.  Do not allow TImode
30088         logical operations on 32-bit systems.
30089         (vsx_ior<mode>3): Likewise.
30090         (vsx_xor<mode>3): Likewise.
30091         (vsx_one_cmpl<mode>2): Likewise.
30092         (vsx_nor<mode>3): Likewise.
30093         (vsx_andc<mode>3): Likewise.
30094         (vsx_concat_<mode>): Likewise.
30095         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
30097         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
30098         OPTION_MASK_VSX_TIMODE.
30099         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
30100         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
30102         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
30103         (TI2 iterator): New iterator for TImode, PTImode.
30104         (wd mode attribute): Add values for vector types.
30105         (movti_string): Replace TI move operations with operations for TImode
30106         and PTImode.  Add support for TImode being allowed in VSX registers.
30107         (mov<mode>_string, TImode/PTImode): Likewise.
30108         (movti_ppc64): Likewise.
30109         (mov<mode>_ppc64, TImode/PTImode): Likewise.
30110         (TI mode splitters): Likewise.
30112         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
30113         constraint.
30115 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
30117         PR tree-optimization/56355
30118         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
30119         Also handle integers with undefined overflow.
30121 2013-03-20  Catherine Moore  <clm@codesourcery.com>
30122             Maciej W. Rozycki  <macro@codesourcery.com>
30123             Tom de Vries  <tom@codesourcery.com>
30124             Nathan Sidwell  <nathan@codesourcery.com>
30125             Iain Sandoe  <iain@codesourcery.com>
30126             Nathan Froyd  <froydnj@codesourcery.com>
30127             Chao-ying Fu  <fu@mips.com>
30129         * doc/extend.texi: (micromips, nomicromips, nocompression):
30130         Document new function attributes.
30131         * doc/invoke.texi (minterlink-compressed, mmicromips,
30132         m14k, m14ke, m14kec): Document new options.
30133         (minterlink-mips16): Update documentation.
30134         * doc/md.texi (ZC, ZD): Document new constraints.
30135         * configure.ac (gcc_cv_as_micromips): Check if linker
30136         supports the .set micromips directive.
30137         * configure: Regenerate.
30138         * config.in: Regenerate.
30139         * config/mips/mips-tables.opt: Regenerate.
30140         * config/mips/micromips.md: New file.
30141         * constraints.md (ZC, ZD): New constraints.
30142         * config/mips/predicates.md (movep_src_register): New predicate.
30143         (movep_src_operand): New predicate.
30144         (non_volatile_mem_operand): New predicate.
30145         * config/mips/mips.md (multimem): New type.
30146         (length): Differentiate between 17-bit and 18-bit branch offsets.
30147         (MOVEP1, MOVEP2): New mode iterator.
30148         (mov_<load>l): Use ZC constraint.
30149         (mov_<load>r): Likewise.
30150         (mov_<store>l): Likewise.
30151         (mov_<store>r): Likewise.
30152         (*branch_equality<mode>_inverted): Add microMIPS support.
30153         (*branch_equality<mode>): Likewise.
30154         (*jump_absolute): Likewise.
30155         (indirect_jump_<mode>): Likewise.
30156         (tablejump_<mode>): Likewise.
30157         (<optab>_internal): Likewise.
30158         (sibcall_internal): Likewise.
30159         (sibcall_value_internal): Likewise.
30160         (prefetch): Use constraint ZD.
30161         * config/mips/mips.opt (minterlink-compressed): New option.
30162         (minterlink-mips16): Now an alias for minterlink-compressed.
30163         (mmicromips): New option.
30164         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
30165         (compare_and_swap_12): Likewise.
30166         (sync_add<mode>): Likewise.
30167         (sync_<optab>_12): Likewise.
30168         (sync_old_<optab>_12): Likewise.
30169         (sync_new_<optab>_12): Likewise.
30170         (sync_nand_12): Likewise.
30171         (sync_old_nand_12): Likewise.
30172         (sync_new_nand_12): Likewise.
30173         (sync_sub<mode>): Likewise.
30174         (sync_old_add<mode>): Likewise.
30175         (sync_old_sub<mode>): Likewise.
30176         (sync_new_add<mode>): Likewise.
30177         (sync_new_sub<mode>): Likewise.
30178         (sync_<optab><mode>): Likewise.
30179         (sync_old_<optab><mode>): Likewise.
30180         (sync_new_<optab><mode>): Likewise.
30181         (sync_nand<mode>): Likewise.
30182         (sync_old_nand<mode>): Likewise.
30183         (sync_new_nand<mode>): Likewise.
30184         (sync_lock_test_and_set<mode>): Likewise.
30185         (test_and_set_12): Likewise.
30186         (atomic_compare_and_swap<mode>): Likewise.
30187         (atomic_exchange<mode>_llsc): Likewise.
30188         (atomic_fetch_add<mode>_llsc): Likewise.
30189         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
30190         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
30191         (umips_save_restore_pattern_p): Likewise.
30192         (umips_load_store_pair_p): Likewise.
30193         (umips_output_load_store_pair): Likewise.
30194         (umips_movep_target_p): Likewise.
30195         (umips_12bit_offset_address_p): Likewise.
30196         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
30197         (mips_base_mips16): Rename this...
30198         (mips_base_compression_flags): ...to this. Update all uses.
30199         (mips_attribute_table): Add micromips, nomicromips and nocompression.
30200         (mips_mips16_decl_p): Delete.
30201         (mips_nomips16_decl_p): Delete.
30202         (mips_get_compress_on_flags): New function.
30203         (mips_get_compress_off_flags): New function.
30204         (mips_get_compress_mode): New function.
30205         (mips_get_compress_on_name): New function.
30206         (mips_get_compress_off_name): New function.
30207         (mips_insert_attributes): Support multiple compression types.
30208         (mips_merge_decl_attributes): Likewise.
30209         (umips_12bit_offset_address_p): New function.
30210         (mips_start_function_definition): Emit .set micromips directive.
30211         (mips_call_may_need_jalx_p): New function.
30212         (mips_function_ok_for_sibcall): Add microMIPS support.
30213         (mips_print_operand_punctuation): Support short delay slots and
30214         compact jumps.
30215         (umips_swm_mask, umips_swm_encoding): New.
30216         (umips_build_save_restore): New function.
30217         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
30218         (was_mips16_p): Remove.
30219         (old_compression_mode): New.
30220         (mips_set_compression_mode): New function.
30221         (mips_set_current_function): Add microMIPS support.
30222         (mips_option_override): Likewise.
30223         (umips_save_restore_pattern_p): New function.
30224         (umips_output_save_restore): New function.
30225         (umips_load_store_pair_p_1): New function.
30226         (umips_load_store_pair_p): New function.
30227         (umips_output_load_store_pair_1): New function.
30228         (umips_output_load_store_pair): New function.
30229         (umips_movep_target_p) New function.
30230         (mips_prepare_pch_save): Add microMIPS support.
30231         * config/mips/mips.h (TARGET_COMPRESSION): New.
30232         (TARGET_CPU_CPP_BUILTINS): Update macro
30233         to use new compression flags and to support microMIPS.
30234         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
30235         (MIPS_ARCH_FLOAT_SPEC): Likewise.
30236         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
30237         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
30238         (ASM_SPEC): Support mmicromips and mno-micromips.
30239         (M16STORE_REG_P): New macro.
30240         (MIPS_CALL): Support TARGET_MICROMIPS.
30241         (MICROMIPS_J): New macro.
30242         (mips_base_mips16): Rename this...
30243         (mips_base_compression_flags): ...to this.
30244         (UMIPS_12BIT_OFFSET_P): New macro.
30245         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
30246         (MULTILIB_DIRNAMES): Likewise.
30247 2013-03-20  Richard Biener  <rguenther@suse.de>
30249         PR tree-optimization/56661
30250         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
30251         the result does not have to be distinct.
30253 2013-03-20  Richard Biener  <rguenther@suse.de>
30255         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
30256         remap_gimple_op_r.
30258 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30259             Steven Bosscher  <steven@gcc.gnu.org>
30261         PR rtl-optimization/56605
30262         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
30264 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
30266         PR bootstrap/56656
30267         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
30268         that require movd instead of movq.
30270 2013-03-20  Richard Biener  <rguenther@suse.de>
30272         * tree-ssa-structalias.c (struct variable_info): Add pointer
30273         to the first field of an aggregate with sub-vars.  Make
30274         this and the pointer to the next subfield its ID.
30275         (vi_next): New function.
30276         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
30277         storedanything_id, integer_id): Increment by one.
30278         (new_var_info, get_call_vi, lookup_call_clobber_vi,
30279         get_call_clobber_vi): Adjust.
30280         (solution_set_expand): Simplify and speedup.
30281         (solution_set_add): Inline into ...
30282         (set_union_with_increment): ... this.  Adjust accordingly.
30283         (do_sd_constraint): Likewise.
30284         (do_ds_constraint): Likewise.
30285         (do_complex_constraint): Simplify.
30286         (build_pred_graph): Adjust.
30287         (solve_graph): Likewise.  Simplify and speedup.
30288         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
30289         get_constraint_for_component_ref, get_constraint_for_1,
30290         first_vi_for_offset, first_or_preceding_vi_for_offset,
30291         create_function_info_for, create_variable_info_for_1,
30292         create_variable_info_for, intra_create_variable_infos): Adjust.
30293         (init_base_vars): Push NULL for ID zero.
30294         (compute_points_to_sets): Adjust.
30296 2013-03-20  Richard Biener  <rguenther@suse.de>
30298         * cfgloop.c (verify_loop_structure): Streamline and avoid
30299         ICEing on corrupt loop tree.
30300         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
30301         loop tree.
30303 2013-03-20  Richard Biener  <rguenther@suse.de>
30305         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
30306         check whether an SSA update is needed.
30308 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
30310         * config/mips/constraints.md (T): Rename to...
30311         (Yf): ...this.
30312         (U): Rename to...
30313         (Yd): ...this.
30314         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
30315         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
30317 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
30319         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
30320         (*subsi3_carryin_uxtw): Likewise.
30322 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
30324         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
30325         (*rorsi3_insn_uxtw): Likewise.
30327 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
30329         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
30330         (*extrsi5_insn_uxtw): Likewise.
30332 2013-03-19  Richard Biener  <rguenther@suse.de>
30334         PR tree-optimization/56273
30335         * passes.c (init_optimization_passes): Move second VRP after DOM.
30337 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
30339         * config/i386/i386.md (*movti_internal): Merge from
30340         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
30341         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
30342         nox64 isa attributes.
30344 2013-03-18  Richard Biener  <rguenther@suse.de>
30346         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
30347         (unite): Likewise.
30348         (merge_node_constraints): Likewise.
30349         (build_succ_graph): Likewise.
30350         (valid_graph_edge): Inline into single caller.
30351         (unify_nodes): Likewise.  Use bitmap_set_bit return value
30352         and cache varinfo.
30353         (scc_visit): Fix formatting and variable use.
30354         (do_sd_constraint): Use gcc_checking_assert.
30355         (do_ds_constraint): Likewise.
30356         (do_complex_constraint): Likewise.
30357         (condense_visit): Likewise.  Cleanup.
30358         (dump_pred_graph): New function.
30359         (perform_var_substitution): Dump the pred-graph before
30360         variable substitution.
30361         (find_equivalent_node): Use gcc_checking_assert.
30362         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
30364 2013-03-18  Richard Biener  <rguenther@suse.de>
30366         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
30367         Remove cond_expr_stmt_list argument and do not gimplify the
30368         built expression.
30369         (vect_loop_versioning): Adjust.
30370         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
30371         Cleanup to use less temporaries.
30372         (vect_create_data_ref_ptr): Cleanup.
30374 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
30376         PR tree-optimization/56635
30377         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
30378         require types_compatible_p types.
30380 2013-03-18  Nick Clifton  <nickc@redhat.com>
30382         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
30383         spurious backslash.
30385         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
30386         Add missing line to comment describing function.
30388 2013-03-18  Richard Biener  <rguenther@suse.de>
30390         PR tree-optimization/56210
30391         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
30392         Handle string / character search functions.
30393         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
30395 2013-03-18  Richard Biener  <rguenther@suse.de>
30397         PR middle-end/56483
30398         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
30399         and implement properly.
30400         * gimple.h (gimple_cond_single_var_p): Remove.
30402 2013-03-18  Richard Biener  <rguenther@suse.de>
30404         * tree-data-ref.h (find_data_references_in_loop): Declare.
30405         * tree-data-ref.c (get_references_in_stmt): Use a stack
30406         vector pre-allocated in the callers.
30407         (find_data_references_in_stmt): Adjust.
30408         (graphite_find_data_references_in_stmt): Likewise.
30409         (create_rdg_vertices): Likewise.
30410         (find_data_references_in_loop): Export.
30411         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
30412         Compute dependences here...
30413         (vect_analyze_data_refs): ...not here.  When we encounter
30414         a non-vectorizable data reference in basic-block vectorization
30415         truncate the data reference vector.  Do not bother to
30416         fixup data-dependence information for gather loads.
30417         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
30418         of data references, as reported.
30420 2013-03-18  Richard Biener  <rguenther@suse.de>
30422         PR tree-optimization/3713
30423         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
30424         has_constants and expr.
30425         (stmt_has_constants): Properly valueize SSA names when deciding
30426         whether the stmt has constants.
30428 2013-03-18  Richard Biener  <rguenther@suse.de>
30430         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
30431         whole function when there is nothing to do.
30432         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
30433         * tree-vectorizer.c (vectorize_loops): Update virtual and
30434         loop-closed SSA once.
30435         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
30437 2013-03-18  Richard Biener  <rguenther@suse.de>
30439         PR middle-end/56113
30440         * domwalk.c (bb_postorder): New global static.
30441         (cmp_bb_postorder): New function.
30442         (walk_dominator_tree): Replace scheme imposing an order for
30443         visiting dominator sons by one sorting them at the time they
30444         are pushed on the stack.
30446 2013-03-18  Richard Biener  <rguenther@suse.de>
30448         PR tree-optimization/39326
30449         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
30450         (struct mem_ref): Replace mem member with ao_ref typed member.
30451         (MEM_ANALYZABLE): Adjust.
30452         (memref_eq): Likewise.
30453         (mem_ref_alloc): Likewise.
30454         (gather_mem_refs_stmt): Likewise.
30455         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
30456         (execute_sm_if_changed_flag_set): Adjust.
30457         (execute_sm): Likewise.
30458         (ref_always_accessed_p): Likewise.
30459         (refs_independent_p): Likewise.
30460         (can_sm_ref_p): Likewise.
30462 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
30464         PR c/56566
30465         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
30466         return 1 even for !unsignedp.
30468 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
30470         * config/i386/i386.md (isa): Add x64 and nox64.
30471         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
30472         (*pushtf): Enable *roF alternative for x64 isa only.
30473         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
30474         mode attribute of integer alternatives to DImode for TARGET_64BIT.
30475         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
30476         (*movtf_internal): Merge from *movtf_internal_rex64 and
30477         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
30478         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
30479         nox64 isa attributes.
30480         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
30481         nox64 isa attributes.
30482         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
30484 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
30486         * config/alpha/alpha.c (TARGET_LRA_P): New define.
30488 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
30490         PR target/56640
30491         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
30492         class names.  Remove trailing comma after "ALL_REGS".
30494 2013-03-16  Jan Hubicka  <jh@suse.cz>
30496         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
30497         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
30498         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
30499         of cgraph_get_create_node.
30500         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
30502 2013-03-16  Jason Merrill  <jason@redhat.com>
30504         PR debug/49090
30505         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
30506         with DW_AT_default_value.
30508 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
30510         * BASE-VER: Set to 4.9.0.
30512 2013-03-14  Andi Kleen  <ak@linux.intel.com>
30514         PR target/56619
30515         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
30516         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
30517         Document _x* TSX intrinsics.
30519 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
30520             David Holsgrove  <david.holsgrove@xilinx.com>
30522         * configure.ac: Add MicroBlaze TLS support detection.
30523         * configure: Regenerate.
30524         * config/microblaze/microblaze-protos.h
30525         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
30526         symbol_mentioned_p, label_mentioned_p): Add prototypes.
30527         * config/microblaze/microblaze.c (microblaze_address_type): Add
30528         ADDRESS_TLS and tls_reloc address types.
30529         (microblaze_address_info): Add tls_reloc.
30530         (TARGET_HAVE_TLS): Define.
30531         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
30532          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
30533          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
30534         load_tls_operand,  microblaze_call_tls_get_addr,
30535         microblaze_legitimize_tls_address): New functions.
30536         (microblaze_classify_unspec): Handle UNSPEC_TLS.
30537         (get_base_reg): Use microblaze_tls_symbol_p.
30538         (microblaze_classify_address): Handle TLS.
30539         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
30540         label_mentioned_p and microblaze_tls_referenced_p.
30541         (microblaze_legitimize_address): Handle TLS.
30542         (microblaze_address_insns): Handle ADDRESS_TLS.
30543         (pic_address_needs_scratch): Handle TLS.
30544         (print_operand_address): Handle TLS.
30545         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
30546         (microblaze_expand_move): Handle TLS.
30547         (microblaze_legitimate_constant_p): Check
30548         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
30549         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
30550         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
30551         (PIC_OFFSET_TABLE_REGNUM): Set.
30552         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
30553         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
30554         (addsi3, movsi_internal2, movdf_internal): Update constraints
30555         * config/microblaze/predicates.md (arith_plus_operand): Define
30556         (move_operand): Redefine as move_src_operand,
30557         check microblaze_tls_referenced_p.
30559 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
30561         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
30562         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
30564 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
30566         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
30567         CC mode for AND.
30569 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
30571         PR tree-optimization/53265
30572         * common.opt (Waggressive-loop-optimizations): New option.
30573         * tree-ssa-loop-niter.c: Include tree-pass.h.
30574         (do_warn_aggressive_loop_optimizations): New function.
30575         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
30576         if number_of_latch_executions returned constant.
30577         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
30578         early.  If number_of_latch_executions returned constant, set
30579         nb_iterations_upper_bound back to it.
30580         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
30581         field.
30582         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
30583         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
30585         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
30586         (MULTILIB_OSDIRNAMES): Set.
30587         * genmultilib: If defaultosdirname doesn't start with :: , set
30588         defaultosdirname2 instead, clear it and emit two . multilib_raw
30589         entries instead of just one.
30591 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
30593         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
30594         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
30595         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
30596         (SUBTARGET_OVERRIDE_OPTIONS): New.
30598 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
30600         PR target/49880
30601         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
30602         (musermode): Convert to Var(TARGET_USERMODE).
30603         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
30604         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
30605         * config/sh/sh.c (sh_option_override): Use
30606         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
30607         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
30608         condition.
30609         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
30610         TARGET_SH4.
30611         (udivsi3_i4_single, divsi3_i4_single): Use
30612         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
30614 2013-03-13  Dave Korn  <dave.korn.cygwin@gmail.com>
30616         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
30617         default setting.
30619 2013-03-13  Richard Biener  <rguenther@suse.de>
30621         PR tree-optimization/56608
30622         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
30623         calls when vectorizing basic-blocks.
30625 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
30627         PR plugins/45078
30628         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
30629         tm_file.
30631 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
30633         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
30635 2013-03-11  Jan Hubicka  <jh@suse.cz>
30637         PR lto/56557
30638         * lto-streamer-out.c (output_symbol_p): Skip references from
30639         constructors of external variables.
30641 2013-03-11  Jan Hubicka  <jh@suse.cz>
30643         PR middle-end/56571
30644         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
30645         from pseudos.
30646         * emit-rtl.c (verify_rtx_sharing): Likewise.
30647         (copy_insn_1): Likewise.
30648         * rtl.c (copy_rtx): Likewise.
30650 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
30652         PR target/56591
30653         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
30654         output_operand_lossage message.
30656 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
30658         PR target/56470
30659         * arm.c (shift_op): Validate RTL pattern on the fly.
30660         (arm_print_operand, case 'S'): Don't use shift_operator to validate
30661         the RTL.
30663 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30665         PR target/56347
30666         * config/pa/pa.md (call_value): Check for calls to powf and direct to
30667         new call patterns that clobber %fr12.
30668         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
30669         split and postreload patterns.
30670         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
30671         registers %fr12 and %fr12R as call used.
30673 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
30675         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
30676         (canon_address, record_store, replace_read, check_mem_read_rtx,
30677         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
30678         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
30679         rest_of_handle_dse): Likewise.
30681 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
30683         PR middle-end/56524
30684         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
30685         Add base_optabs.
30686         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
30687         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
30688         (save_optabs_if_changed): Replace with...
30689         (init_tree_optimization_optabs): ...this.
30690         * optabs.c (save_optabs_if_changed): Rename to...
30691         (init_tree_optimization_optabs): ...this.  Take the optimization node
30692         as argument.  Do nothing if the base optabs are already correct.
30693         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
30694         to recompute optabs.
30695         * function.h (function): Remove optabs field.
30696         * function.c (invoke_set_current_function_hook): Call
30697         init_tree_optimization_optabs.  Use the result to initialize
30698         this_fn_optabs.
30700 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
30702         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
30703         if GTMA_HAS_NO_INSTRUMENTATION.
30704         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
30705         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
30706         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
30707         * gimple-pretty-print.c (dump_gimple_transaction): Handle
30708         GTMA_HAS_NO_INSTRUMENTATION.
30710 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
30712         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
30713         libasan_preinit.o.
30715 2013-03-08  Marek Polacek  <polacek@redhat.com>
30716             Jakub Jelinek  <jakub@redhat.com>
30718         PR tree-optimization/56478
30719         * predict.c (is_comparison_with_loop_invariant_p): Change the
30720         type of loop_step to tree.
30721         (predict_loops): Adjust.
30722         (predict_iv_comparison): Perform the computations on double_ints.
30724 2013-03-08  Richard Biener  <rguenther@suse.de>
30726         PR tree-optimization/56570
30727         * tree-cfg.c (verify_expr_location_1): Verify locations for
30728         DECL_DEBUG_EXPR.
30729         * tree-sra.c (create_access_replacement): Strip locations
30730         from DECL_DEBUG_EXPRs.
30732 2013-03-08  Richard Biener  <rguenther@suse.de>
30734         * tree-inline.c (expand_call_inline): Do not associate
30735         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
30736         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
30738 2013-03-08  Richard Biener  <rguenther@suse.de>
30740         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
30741         or block changes with -Og.  Fix for location / block encoding
30742         changes and PHI arguments with locations.
30744 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
30746         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
30747         for all counters.
30748         (struct output_info): Likewise.
30749         (register_overhead): Remove bad gcc_assert.
30750         (bitmap_find_bit): If there is only a single bitmap element, do not
30751         count a miss as a search.
30752         (print_statistics): Update for counter type changes.
30753         (dump_bitmap_statistics): Likewise.  Print headers such that they
30754         are properly lined up with the printed counters.
30756 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
30758         PR tree-optimization/56559
30759         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
30760         check that it has only a single use.
30762 2013-03-07  Richard Biener  <rguenther@suse.de>
30764         * doc/invoke.texi (fwhole-program): Discourage use in combination
30765         with -flto.
30767 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
30769         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
30771         PR tree-optimization/56539
30772         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
30773         instead of GSI_CONTINUE_LINKING as last argument to
30774         force_gimple_operand_gsi.  Adjust function comment.
30776         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
30777         aarch64-cores.def.
30779         PR middle-end/56548
30780         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
30781         promoted mode, convert the result back to the original mode.
30783 2013-03-06  Richard Biener  <rguenther@suse.de>
30785         PR middle-end/56294
30786         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
30787         (insert_updated_phi_nodes_compare_uids): New function.
30788         (update_ssa): Sort symbols_to_rename after UID before
30789         traversing it to insert PHI nodes.
30791 2013-03-06  Richard Biener  <rguenther@suse.de>
30793         PR middle-end/50494
30794         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
30795         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
30797         Revert
30798         2013-02-13  Richard Biener  <rguenther@suse.de>
30800         PR lto/50494
30801         * varasm.c (output_constant_def_1): Get the decl representing
30802         the constant as argument.
30803         (output_constant_def): Wrap output_constant_def_1.
30804         (make_decl_rtl): Use output_constant_def_1 with the decl
30805         representing the constant.
30806         (build_constant_desc): Optionally re-use a decl already
30807         representing the constant.
30808         (tree_output_constant_def): Adjust.
30810 2013-03-06  Joey Ye  <joey.ye@arm.com>
30812         PR lto/50293
30813         * gcc.c (convert_white_space): New function.
30814         (main): Handles white space in function name.
30816 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
30818         PR target/56529
30819         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
30820         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
30821         to SH_DIV_CALL_TABLE for TARGET_SH2.
30822         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
30823         list.
30824         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
30825         call-table options.
30827 2013-03-05  Sterling Augustine  <saugustine@google.com>
30828             Cary Coutant  <ccoutant@google.com>
30830         PR debug/55364
30831         * dwarf2out.c (resolve_addr): Don't call
30832         remove_loc_list_addr_table_entries a second time for the same
30833         expression.
30835 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
30837         PR debug/56510
30838         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
30839         (avoid_complex_debug_insns): New function.
30840         (expand_debug_locations): Call it.
30842         PR rtl-optimization/56484
30843         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
30844         lifetimes of hard registers on small register class machines.
30846 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
30848         * config/microblaze/microblaze-protos.h: Rename
30849         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
30850         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
30851         fast_interrupt.
30852         (microblaze_fast_interrupt_function_p): New function.
30853         (microblaze_is_interrupt_handler): Rename to
30854         microblaze_is_interrupt_variant and add fast_interrupt check.
30855         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
30856         (save_restore_insns): Likewise.
30857         (compute_frame_size): Likewise.
30858         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
30859         (microblaze_globalize_label): Likewise.
30860         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
30861         * config/microblaze/microblaze.md: Use wrapper
30862         microblaze_is_interrupt_variant.
30864 2013-03-05  Kai Tietz  <ktietz@redhat.com>
30866         * sdbout.c (sdbout_one_type): Switch to current function's section
30867         supporting cold/hot.
30869 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
30871         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
30872         -mxl-reorder.
30874 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
30876         PR middle-end/56461
30877         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
30878         if VALGRIND_GET_VBITS is defined, temporarily make object
30879         memory all defined, and restore previous valgrind addressability
30880         and definability afterwards.  Free this_object at the end.
30882         PR middle-end/56461
30883         * lra.c (lra): Call lra_clear_live_ranges if live_p,
30884         right before calling lra_create_live_ranges, also call it
30885         when clearing live_p.  Only call lra_clear_live_ranges
30886         at the end if live_p.
30888         PR middle-end/56461
30889         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
30891 2013-03-05  Richard Biener  <rguenther@suse.de>
30893         PR tree-optimization/56521
30894         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
30895         value-id.
30897 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
30899         PR c++/55135
30900         * except.h (remove_unreachable_eh_regions): New prototype.
30901         * except.c (remove_eh_handler_splicer): New function, split out
30902         of remove_eh_handler.
30903         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
30904         warning about running it on many EH regions one at a time.
30905         (remove_unreachable_eh_regions_worker): New function, walk the
30906         EH tree in depth-first order and remove non-marked regions.
30907         (remove_unreachable_eh_regions): New function.
30908         * tree-eh.c (mark_reachable_handlers): New function, split out
30909         from remove_unreachable_handlers.
30910         (remove_unreachable_handlers): Use mark_reachable_handlers and
30911         remove_unreachable_eh_regions.
30912         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
30913         and remove_unreachable_eh_regions.
30915 2013-03-05  Richard Biener  <rguenther@suse.de>
30917         PR middle-end/56525
30918         * loop-init.c (fix_loop_structure): Remove loops in two stages,
30919         not freeing them until the end.
30921 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30923         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
30925 2013-03-05  Richard Biener  <rguenther@suse.de>
30927         PR tree-optimization/56270
30928         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
30929         of loads after scheduling an SLP instance.
30931 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
30933         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
30934         tic6x.exp.
30935         (check_gcc_parallelize): Run guality.exp as a separate job from
30936         vect.exp with unsorted.exp and $(dg_target_exps) separately from
30937         struct-layout-1.exp with stackalign.exp.
30939         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
30941         PR middle-end/56461
30942         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
30943         load_index sbitmap even if some bit in it isn't set.
30945         PR middle-end/56461
30946         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
30947         (discover_iteration_bound_by_body_walk): Change queues to
30948         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
30949         spelling in comment.  Call safe_push on queues[bound_index] directly.
30950         Release queues[queue_index] in every iteration unconditionally.
30951         Release bounds vector.
30953         PR middle-end/56461
30954         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
30955         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
30956         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
30957         inner_phis vector.
30959 2013-03-05  Richard Biener  <rguenther@suse.de>
30961         PR lto/56515
30962         * tree-inline.c (remap_blocks_to_null): New function.
30963         (expand_call_inline): When expanding a call stmt without
30964         an associated block inline remap all callee blocks to NULL.
30966 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
30968         PR rtl-optimization/56494
30969         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
30970         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
30971         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
30973         PR middle-end/56461
30974         * sel-sched-ir.c (free_sched_pools): Release
30975         succs_info_pool.stack[succs_info_pool.max_top] vectors too
30976         if succs_info_pool.max_top isn't -1.
30978         PR bootstrap/56509
30979         * opts.c (opts_obstack, opts_concat): Moved to...
30980         * opts-common.c (opts_obstack, opts_concat): ... here.
30982 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
30984         PR middle-end/56461
30985         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
30987 2013-03-04  Martin Jambor  <mjambor@suse.cz>
30989         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
30990         all appropriate places.
30992 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
30994         PR tree-optimization/56424
30995         * ipa-split.c (split_function): Do not set the RSO flag if result is
30996         not by reference and its type is a register type.
30998 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
31000         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
31001         (microblaze_legitimate_pic_operand): Likewise
31002         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
31003         new function microblaze_legitimate_pic_operand
31004         * config/microblaze/microblaze-protos.h
31005         (microblaze_legitimate_pic_operand): Declare.
31007 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
31009         * config/microblaze/predicates.md (call_insn_simple_operand):
31010         New predicate for supported rtx code types.
31011         * config/microblaze/microblaze.md (call_internal1): Use
31012         call_insn_simple_operand predicate.
31014 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
31016         PR middle-end/56461
31017         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
31018         partitions.ordered_remove.
31020         PR middle-end/56461
31021         * tree-vect-stmts.c (vectorizable_conversion): Don't call
31022         vec_oprnds0.create (1) for modifier == NONE.
31024         PR middle-end/56461
31025         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
31026         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
31027         vec_oprnds1 right before pushing anything to it for
31028         scalar_shift_arg.
31030         PR middle-end/56461
31031         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
31032         set nbbs to 0 instead of having separate code path.
31033         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
31034         instead of false as last argument if returning NULL.
31036 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
31038         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
31039         the attribute is now called "target" instead of "option".
31040         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
31041         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
31042         attribute/pragma name for TARGET_OPTION_VALID_P and
31043         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
31044         * doc/tm.texi: Regenerated.
31046 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
31048         * config/microblaze/microblaze.c:
31049         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
31050         * config/microblaze/microblaze.h: Add -mxl-reorder to
31051         DRIVER_SELF_SPECS.
31052         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
31053         instructions emitted if TARGET_REORDER.
31054         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
31055         or 0 for -m/-mno case, but initialises as 2 to detect default use case
31056         separately.
31058 2013-03-01  Xinliang David Li  <davidxl@google.com>
31060         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
31061         walk length.
31063 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
31065         PR middle-end/56461
31066         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
31067         vector even when returning true.  Fix up function comment formatting.
31069         PR middle-end/56461
31070         * ira-build.c (ira_loop_nodes_count): New variable.
31071         (create_loop_tree_nodes): Initialize it.
31072         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
31074         PR middle-end/56461
31075         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
31076         method on dr_chain and result_chain.
31077         * tree-vect-stmts.c (vectorizable_store): Only call
31078         result_chain.create if j == 0.
31080         PR middle-end/56461
31081         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
31082         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
31083         before overwriting it.
31085 2013-03-01  Tobias Burnus  <burnus@net-b.de>
31087         * doc/extended.texi (C Extensions): Change order in @menu
31088         to match @node.
31089         (Other MIPS Built-in Functions): Move last MIPS entry before
31090         "picoChip Built-in Functions".
31091         (SH Built-in Functions): Move after RX Built-in Functions.
31092         * doc/gcc.texi (Introduction): Change order in @menu
31093         to match @node.
31094         * doc/md.texi (Constraints): Ditto.
31095         * gty.texi (Type Information): Ditto.
31096         (User-provided marking routines for template types): Make
31097         subsection.
31098         * doc/invoke.texi (AArch64 Options): Move before
31099         "Adapteva Epiphany Options".
31101 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
31102             Jakub Jelinek  <jakub@redhat.com>
31104         PR sanitizer/56454
31105         * asan.c (gate_asan): Lookup no_sanitize_address instead of
31106         no_address_safety_analysis attribute.
31107         * doc/extend.texi (no_address_safety_attribute): Rename to
31108         no_sanitize_address attribute, mention no_address_safety_analysis
31109         attribute as deprecated alias.
31111 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
31113         PR middle-end/56461
31114         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
31115         type to vec<vec<tree> > *.
31116         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
31117         to be vec<tree> instead of vec<tree> *, set vec_defs
31118         to vNULL and call vec_defs.create (number_of_vects), adjust other
31119         uses of vec_defs.
31120         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
31121         vectorizable_condition): Adjust vect_get_slp_defs callers.
31123 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
31125         * config/aarch64/aarch64.c
31126         (aarch64_float_const_representable): Remove unused variable.
31128 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
31130         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
31132 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
31134         * config/aarch64/aarch64-builtins.c
31135         (aarch64_init_simd_builtins): Make static.
31137 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
31139         * config/aarch64/aarch64.c
31140         (aarch64_simd_make_constant): Make static.
31142 2013-02-28  Martin Jambor  <mjambor@suse.cz>
31144         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
31145         with no initialization to the RHS of debug statements.
31147 2013-02-28  Martin Jambor  <mjambor@suse.cz>
31149         PR tree-optimization/56294
31150         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
31151         Adjust dumping.
31152         (get_access_replacement): Do not call create_access_replacement.
31153         Assert a replacement exists.
31154         (get_repl_default_def_ssa_name): Create the replacement declaration
31155         itself.
31157 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31159         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
31160         final_end_function.
31162 2013-02-28  Marek Polacek  <polacek@redhat.com>
31164         PR rtl-optimization/56466
31165         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
31166         if we're changing a loop.
31167         (peel_loops_completely): Likewise.
31169 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
31171         PR c++/55813
31172         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
31174 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
31176         PR target/56445
31177         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
31178         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
31179         INTX_FTYPE_FX, FX_FTYPE_INTX.
31180         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
31182 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
31184         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
31185         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
31186         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
31187         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
31188         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
31189         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
31190         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
31191         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
31192         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
31193         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
31194         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
31195         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
31196         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
31197         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
31198         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
31199         (avrxmega6): Increase max flash segments from 5 to 6.
31200         * config/avr/t-multilib: Regenerate.
31201         * config/avr/avr-tables.opt: Regenerate.
31202         * doc/avr-mmcu.texi: Regenerate.
31204 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
31206         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
31207         (avr_device_to_arch): Rename to avr_device_to_ld.
31208         (avr_device_to_as): New prototype.
31209         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
31210         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
31211         * config/avr/driver-avr.c (avr_device_to_as): New.
31212         (avr_device_to_arch): Rename to avr_device_to_ld.
31214 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
31216         PR middle-end/56461
31217         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
31218         method on dr_chain and result_chain.
31220         PR middle-end/56461
31221         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
31222         pointer_set_destroy on not_executed_last_iteration.
31224         PR middle-end/56461
31225         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
31227         PR middle-end/56461
31228         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
31229         FOR_EACH_DEFINED_FUNCTION when freeing state.
31231         PR middle-end/56461
31232         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
31233         pool_free.
31234         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
31235         overwriting it.
31237         PR middle-end/56461
31238         * ipa-cp.c (decide_whether_version_node): Call vec_free on
31239         known_aggs[i].items and release known_aggs vector.
31241         PR middle-end/56461
31242         * ipa-reference.c (propagate): Free node_info even for alias nodes.
31244 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
31246         * config/microblaze/microblaze.c (microblaze_emit_compare):
31247         Use xor for EQ/NE comparisions.
31248         * config/microblaze/microblaze.md (cstoresf4): Add constraints
31249         (cbranchsf4): Adjust operator to comparison_operator.
31251 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
31253         PR middle-end/56461
31254         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
31255         vector.
31256         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
31257         vec_safe_push, always update *slot.
31258         (redirect_edge_var_map_clear): Use vec_free.
31259         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
31260         (free_var_map_entry): Use vec_free.
31261         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
31262         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
31264 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
31266         PR middle-end/45472
31267         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
31268         when the may_trap_p bit of the exprs being merged differs.
31269         Reorder tests for speculativeness in the logical and operator.
31271 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
31273         * incpath.c (add_standard_paths): Use reconcat instead of concat
31274         where appropriate and avoid leaking memory.
31276         * opts.h: Include obstack.h.
31277         (opts_concat): New prototype.
31278         (opts_obstack): New declaration.
31279         * opts.c (opts_concat): New function.
31280         (opts_obstack): New variable.
31281         (init_options_struct): Call gcc_init_obstack on opts_obstack.
31282         (finish_options): Use opts_concat instead of concat
31283         and XOBNEWVEC instead of XNEWVEC.
31284         * opts-common.c (generate_canonical_option, decode_cmdline_option,
31285         generate_option): Likewise.
31286         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
31287         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
31289         PR target/56455
31290         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
31291         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
31293 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
31295         PR middle-end/56461
31296         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
31298 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
31300         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
31301         (arm_block_move_unaligned_straight): Likewise.
31302         (arm_adjust_block_mem): Likewise.
31304 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
31306         PR target/48901
31307         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
31308         temp, cond and label.
31309         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
31311         PR target/52500
31312         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
31313         * config/c6x/c6x.h (dbx_register_map): Update declaration.
31315         PR target/52501
31316         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
31317         of prologue/epilogue functions.
31319         PR target/52550
31320         * config/tilegx/tilegx.c (tilegx_expand_prologue):
31321         Remove unused variable cfa_offset.
31322         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
31324         PR target/54639
31325         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
31326         type promotion to unsigned.
31328         PR target/54640
31329         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
31330         for HOST_WIDE_INT of 32 bit / same size as int.
31331         (arm_block_move_unaligned_straight): Likewise.
31332         (arm_adjust_block_mem): Likewise.
31334         PR target/54662
31335         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
31336         ALL_CFLAGS.
31338 2013-02-26  Marek Polacek  <polacek@redhat.com>
31340         PR tree-optimization/56426
31341         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
31343 2013-02-26  Richard Biener  <rguenther@suse.de>
31345         PR target/56444
31346         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
31347         unused variable loops.
31349 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
31351         PR tree-optimization/56448
31352         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
31353         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
31354         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
31355         later operands of the references, or even first operand for
31356         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
31358         PR tree-optimization/56443
31359         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
31360         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
31361         to type_for_mode langhook.
31363 2013-02-25  Matt Turner  <mattst88@gmail.com>
31365         * doc/invoke.texi: Document r4700.
31367 2013-02-25  Richard Biener  <rguenther@suse.de>
31369         PR tree-optimization/56175
31370         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
31371         split out from ...
31372         (simplify_bitwise_binary): ... here.  Also guard the conversion
31373         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
31375 2013-02-25  Catherine Moore  <clm@codesourcery.com>
31377         Revert:
31378         2013-02-24  Catherine Moore  <clm@codesourcery.com>
31379             Maciej W. Rozycki  <macro@codesourcery.com>
31380             Tom de Vries  <tom@codesourcery.com>
31381             Nathan Sidwell  <nathan@codesourcery.com>
31382             Iain Sandoe  <iain@codesourcery.com>
31383             Nathan Froyd  <froydnj@codesourcery.com>
31384             Chao-ying Fu  <fu@mips.com>
31386         * doc/extend.texi: (micromips, nomicromips, nocompression):
31387         Document new function attributes.
31388         * doc/invoke.texi (minterlink-compressed, mmicromips,
31389         m14k, m14ke, m14kec): Document new options.
31390         (minterlink-mips16): Update documentation.
31391         * doc/md.texi (ZC, ZD): Document new constraints.
31392         * configure.ac (gcc_cv_as_micromips): Check if linker
31393         supports the .set micromips directive.
31394         * configure: Regenerate.
31395         * config.in: Regenerate.
31396         * config/mips/mips-tables.opt: Regenerate.
31397         * config/mips/micromips.md: New file.
31398         * constraints.md (ZC, AD): New constraints.
31399         * config/mips/predicates.md (movep_src_register): New predicate.
31400         (movep_src_operand): New predicate.
31401         (non_volatile_mem_operand): New predicate.
31402         * config/mips/mips.md (multimem): New type.
31403         (length): Differentiate between 17-bit and 18-bit branch offsets.
31404         (MOVEP1, MOVEP2): New mode iterator.
31405         (mov_<load>l): Use ZC constraint.
31406         (mov_<load>r): Likewise.
31407         (mov_<store>l): Likewise.
31408         (mov_<store>r): Likewise.
31409         (*branch_equality<mode>_inverted): Add microMIPS support.
31410         (*branch_equality<mode>): Likewise.
31411         (*jump_absolute): Likewise.
31412         (indirect_jump_<mode>): Likewise.
31413         (tablejump_<mode>): Likewise.
31414         (<optab>_internal): Likewise.
31415         (sibcall_internal): Likewise.
31416         (sibcall_value_internal): Likewise.
31417         (prefetch): Use constraint ZD.
31418         * config/mips/mips.opt (minterlink-compressed): New option.
31419         (minterlink-mips16): Now an alias for minterlink-compressed.
31420         (mmicromips): New option.
31421         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
31422         (compare_and_swap_12): Likewise.
31423         (sync_add<mode>): Likewise.
31424         (sync_<optab>_12): Likewise.
31425         (sync_old_<optab>_12): Likewise.
31426         (sync_new_<optab>_12): Likewise.
31427         (sync_nand_12): Likewise.
31428         (sync_old_nand_12): Likewise.
31429         (sync_new_nand_12): Likewise.
31430         (sync_sub<mode>): Likewise.
31431         (sync_old_add<mode>): Likewise.
31432         (sync_old_sub<mode>): Likewise.
31433         (sync_new_add<mode>): Likewise.
31434         (sync_new_sub<mode>): Likewise.
31435         (sync_<optab><mode>): Likewise.
31436         (sync_old_<optab><mode>): Likewise.
31437         (sync_new_<optab><mode>): Likewise.
31438         (sync_nand<mode>): Likewise.
31439         (sync_old_nand<mode>): Likewise.
31440         (sync_new_nand<mode>): Likewise.
31441         (sync_lock_test_and_set<mode>): Likewise.
31442         (test_and_set_12): Likewise.
31443         (atomic_compare_and_swap<mode>): Likewise.
31444         (atomic_exchange<mode>_llsc): Likewise.
31445         (atomic_fetch_add<mode>_llsc): Likewise.
31446         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
31447         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
31448         (umips_save_restore_pattern_p): Likewise.
31449         (umips_load_store_pair_p): Likewise.
31450         (umips_output_load_store_pair): Likewise.
31451         (umips_movep_target_p): Likewise.
31452         (umips_12bit_offset_address_p): Likewise.
31453         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
31454         (mips_base_mips16): Rename this...
31455         (mips_base_compression_flags): ...to this. Update all uses.
31456         (mips_attribute_table): Add micromips, nomicromips and nocompression.
31457         (mips_mips16_decl_p): Delete.
31458         (mips_nomips16_decl_p): Delete.
31459         (mips_get_compress_on_flags): New function.
31460         (mips_get_compress_off_flags): New function.
31461         (mips_get_compress_mode): New function.
31462         (mips_get_compress_on_name): New function.
31463         (mips_get_compress_off_name): New function.
31464         (mips_insert_attributes): Support multiple compression types.
31465         (mips_merge_decl_attributes): Likewise.
31466         (umips_12bit_offset_address_p): New function.
31467         (mips_start_function_definition): Emit .set micromips directive.
31468         (mips_call_may_need_jalx_p): New function.
31469         (mips_function_ok_for_sibcall): Add microMIPS support.
31470         (mips_print_operand_punctuation): Support short delay slots and
31471         compact jumps.
31472         (umips_swm_mask, umips_swm_encoding): New.
31473         (umips_build_save_restore): New function.
31474         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
31475         (was_mips16_p): Remove.
31476         (old_compression_mode): New.
31477         (mips_set_compression_mode): New function.
31478         (mips_set_current_function): Add microMIPS support.
31479         (mips_option_override): Likewise.
31480         (umips_save_restore_pattern_p): New function.
31481         (umips_output_save_restore): New function.
31482         (umips_load_store_pair_p_1): New function.
31483         (umips_load_store_pair_p): New function.
31484         (umips_output_load_store_pair_1): New function.
31485         (umips_output_load_store_pair): New function.
31486         (umips_movep_target_p) New function.
31487         (mips_prepare_pch_save): Add microMIPS support.
31488         * config/mips/mips.h (TARGET_COMPRESSION): New.
31489         (TARGET_CPU_CPP_BUILTINS): Update macro
31490         to use new compression flags and to support microMIPS.
31491         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
31492         (MIPS_ARCH_FLOAT_SPEC): Likewise.
31493         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
31494         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
31495         (ASM_SPEC): Support mmicromips and mno-micromips.
31496         (M16STORE_REG_P): New macro.
31497         (MIPS_CALL): Support TARGET_MICROMIPS.
31498         (MICROMIPS_J): New macro.
31499         (mips_base_mips16): Rename this...
31500         (mips_base_compression_flags): ...to this.
31501         (UMIPS_12BIT_OFFSET_P): New macro.
31502         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
31503         (MULTILIB_DIRNAMES): Likewise.
31505 2013-02-25  Tom de Vries  <tom@codesourcery.com>
31507         PR rtl-optimization/56131
31508         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
31509         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
31510         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
31512 2013-02-25  Tobias Burnus  <burnus@net-b.de>
31514         * doc/invoke.texi (-fsanitize=): Move from optimization
31515         to debugging options.
31517 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
31519         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
31521 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
31522             Alexander Monakov  <amonakov@ispras.ru>
31524         PR middle-end/56077
31525         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
31526         flush pending lists also on non-jumps.  Adjust comment.
31528 2013-02-24  Catherine Moore  <clm@codesourcery.com>
31529             Maciej W. Rozycki  <macro@codesourcery.com>
31530             Tom de Vries  <tom@codesourcery.com>
31531             Nathan Sidwell  <nathan@codesourcery.com>
31532             Iain Sandoe  <iain@codesourcery.com>
31533             Nathan Froyd  <froydnj@codesourcery.com>
31534             Chao-ying Fu  <fu@mips.com>
31536         * doc/extend.texi: (micromips, nomicromips, nocompression):
31537         Document new function attributes.
31538         * doc/invoke.texi (minterlink-compressed, mmicromips,
31539         m14k, m14ke, m14kec): Document new options.
31540         (minterlink-mips16): Update documentation.
31541         * doc/md.texi (ZC, ZD): Document new constraints.
31542         * configure.ac (gcc_cv_as_micromips): Check if linker
31543         supports the .set micromips directive.
31544         * configure: Regenerate.
31545         * config.in: Regenerate.
31546         * config/mips/mips-tables.opt: Regenerate.
31547         * config/mips/micromips.md: New file.
31548         * constraints.md (ZC, AD): New constraints.
31549         * config/mips/predicates.md (movep_src_register): New predicate.
31550         (movep_src_operand): New predicate.
31551         (non_volatile_mem_operand): New predicate.
31552         * config/mips/mips.md (multimem): New type.
31553         (length): Differentiate between 17-bit and 18-bit branch offsets.
31554         (MOVEP1, MOVEP2): New mode iterator.
31555         (mov_<load>l): Use ZC constraint.
31556         (mov_<load>r): Likewise.
31557         (mov_<store>l): Likewise.
31558         (mov_<store>r): Likewise.
31559         (*branch_equality<mode>_inverted): Add microMIPS support.
31560         (*branch_equality<mode>): Likewise.
31561         (*jump_absolute): Likewise.
31562         (indirect_jump_<mode>): Likewise.
31563         (tablejump_<mode>): Likewise.
31564         (<optab>_internal): Likewise.
31565         (sibcall_internal): Likewise.
31566         (sibcall_value_internal): Likewise.
31567         (prefetch): Use constraint ZD.
31568         * config/mips/mips.opt (minterlink-compressed): New option.
31569         (minterlink-mips16): Now an alias for minterlink-compressed.
31570         (mmicromips): New option.
31571         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
31572         (compare_and_swap_12): Likewise.
31573         (sync_add<mode>): Likewise.
31574         (sync_<optab>_12): Likewise.
31575         (sync_old_<optab>_12): Likewise.
31576         (sync_new_<optab>_12): Likewise.
31577         (sync_nand_12): Likewise.
31578         (sync_old_nand_12): Likewise.
31579         (sync_new_nand_12): Likewise.
31580         (sync_sub<mode>): Likewise.
31581         (sync_old_add<mode>): Likewise.
31582         (sync_old_sub<mode>): Likewise.
31583         (sync_new_add<mode>): Likewise.
31584         (sync_new_sub<mode>): Likewise.
31585         (sync_<optab><mode>): Likewise.
31586         (sync_old_<optab><mode>): Likewise.
31587         (sync_new_<optab><mode>): Likewise.
31588         (sync_nand<mode>): Likewise.
31589         (sync_old_nand<mode>): Likewise.
31590         (sync_new_nand<mode>): Likewise.
31591         (sync_lock_test_and_set<mode>): Likewise.
31592         (test_and_set_12): Likewise.
31593         (atomic_compare_and_swap<mode>): Likewise.
31594         (atomic_exchange<mode>_llsc): Likewise.
31595         (atomic_fetch_add<mode>_llsc): Likewise.
31596         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
31597         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
31598         (umips_save_restore_pattern_p): Likewise.
31599         (umips_load_store_pair_p): Likewise.
31600         (umips_output_load_store_pair): Likewise.
31601         (umips_movep_target_p): Likewise.
31602         (umips_12bit_offset_address_p): Likewise.
31603         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
31604         (mips_base_mips16): Rename this...
31605         (mips_base_compression_flags): ...to this. Update all uses.
31606         (mips_attribute_table): Add micromips, nomicromips and nocompression.
31607         (mips_mips16_decl_p): Delete.
31608         (mips_nomips16_decl_p): Delete.
31609         (mips_get_compress_on_flags): New function.
31610         (mips_get_compress_off_flags): New function.
31611         (mips_get_compress_mode): New function.
31612         (mips_get_compress_on_name): New function.
31613         (mips_get_compress_off_name): New function.
31614         (mips_insert_attributes): Support multiple compression types.
31615         (mips_merge_decl_attributes): Likewise.
31616         (umips_12bit_offset_address_p): New function.
31617         (mips_start_function_definition): Emit .set micromips directive.
31618         (mips_call_may_need_jalx_p): New function.
31619         (mips_function_ok_for_sibcall): Add microMIPS support.
31620         (mips_print_operand_punctuation): Support short delay slots and
31621         compact jumps.
31622         (umips_swm_mask, umips_swm_encoding): New.
31623         (umips_build_save_restore): New function.
31624         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
31625         (was_mips16_p): Remove.
31626         (old_compression_mode): New.
31627         (mips_set_compression_mode): New function.
31628         (mips_set_current_function): Add microMIPS support.
31629         (mips_option_override): Likewise.
31630         (umips_save_restore_pattern_p): New function.
31631         (umips_output_save_restore): New function.
31632         (umips_load_store_pair_p_1): New function.
31633         (umips_load_store_pair_p): New function.
31634         (umips_output_load_store_pair_1): New function.
31635         (umips_output_load_store_pair): New function.
31636         (umips_movep_target_p) New function.
31637         (mips_prepare_pch_save): Add microMIPS support.
31638         * config/mips/mips.h (TARGET_COMPRESSION): New.
31639         (TARGET_CPU_CPP_BUILTINS): Update macro
31640         to use new compression flags and to support microMIPS.
31641         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
31642         (MIPS_ARCH_FLOAT_SPEC): Likewise.
31643         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
31644         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
31645         (ASM_SPEC): Support mmicromips and mno-micromips.
31646         (M16STORE_REG_P): New macro.
31647         (MIPS_CALL): Support TARGET_MICROMIPS.
31648         (MICROMIPS_J): New macro.
31649         (mips_base_mips16): Rename this...
31650         (mips_base_compression_flags): ...to this.
31651         (UMIPS_12BIT_OFFSET_P): New macro.
31652         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
31653         (MULTILIB_DIRNAMES): Likewise.
31655 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
31657         PR target/52555
31658         * target-globals.c (save_target_globals): For init_reg_sets and
31659         target_reinit remporarily set this_fn_optabs to this_target_optabs.
31661 2013-02-22  James Greenhalgh  <james.greenhalgh@arm.com>
31663         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
31664         * config/aarch64/t-aarch64
31665         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
31667 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
31669         PR inline-asm/56148
31670         * lra-constraints.c (process_alt_operands): Reload operand
31671         conflicting with earlier clobber only if no more other conflicting
31672         operands.
31674 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
31676         PR sanitizer/56393
31677         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
31678         if not linking a shared library.
31680 2013-02-22  Seth LaForge  <sethml@google.com>
31682         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
31684 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
31686         * config/arm/arm.md (split for extendsidi): Update condition.
31687         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
31688         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
31689         (qhs_zextenddi_cstr): Likewise.
31691 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
31693         PR middle-end/56420
31694         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
31695         avoid signed wrapping.
31696         (expand_mult): Handle properly multiplication by
31697         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
31698         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
31699         in the compiler if coeff is HOST_WIDE_INT_MIN.
31700         (expand_divmod): Don't make ext_op1 static, change it's type to
31701         uhwi.  Avoid undefined behavior in -INTVAL (op1).
31703         PR rtl-optimization/50339
31704         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
31705         field.
31706         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
31707         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
31708         into splitting_ashiftrt field.
31709         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
31710         ASHIFTRT.
31711         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
31712         choices.
31714 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
31716         PR middle-end/56108
31717         * trans-mem.c (execute_tm_mark): Do not expand transactions that
31718         are sure to go irrevocable.
31720 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
31722         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
31723         scalars are valid operands.
31725 2013-02-21  Martin Jambor  <mjambor@suse.cz>
31727         PR tree-optimization/56310
31728         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
31729         only matching indices and non-negative final offsets.
31730         (intersect_aggregates_with_edge): Pass src_idx to
31731         agg_replacements_to_vector.  Pass src_idx insstead of index to
31732         intersect_with_agg_replacements.
31734 2013-02-21  Martin Jambor  <mjambor@suse.cz>
31736         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
31737         instead of hard-wired defaults.
31739 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
31741         * doc/invoke.texi (MIPS Options): Update documentation of the
31742         floating-point multiply-accumulate instruction restrictions.
31744 2013-02-21  Kostya Serebryany  <kcc@google.com>
31746         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
31747         asan_shadow_offset on x86_64 linux.
31749 2013-02-21  Richard Biener  <rguenther@suse.de>
31751         PR tree-optimization/56415
31752         Revert
31753         2013-02-11  Richard Biener  <rguenther@suse.de>
31755         PR tree-optimization/56273
31756         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
31757         first VRP run.
31759 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
31761         PR bootstrap/56258
31762         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
31763         instead of @itemx.
31765         PR inline-asm/56405
31766         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
31767         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
31769 2013-02-20  Jan Hubicka  <jh@suse.cz>
31771         PR tree-optimization/56265
31772         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
31773         when target is referenced for first time.
31775 2013-02-20  Richard Biener  <rguenther@suse.de>
31777         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
31778         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
31779         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
31780         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
31781         not return anything.
31782         (rename_ssa_copies): Do not remove unused locals.
31783         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
31784         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
31785         * passes.c (execute_function_todo): Do not schedule unused locals
31786         removal if cleanup_tree_cfg did something.
31787         * tree-ssa-live.c (remove_unused_locals): Dump statistics
31788         about the number of removed locals.
31790 2013-02-20  Richard Biener  <rguenther@suse.de>
31792         PR tree-optimization/56398
31793         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
31795 2013-02-20  Martin Jambor  <mjambor@suse.cz>
31797         PR tree-optimization/55334
31798         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
31799         restricted pointers to arrays.
31801 2013-02-20  Richard Biener  <rguenther@suse.de>
31802             Jakub Jelinek  <jakub@redhat.com>
31804         PR tree-optimization/56396
31805         * tree-ssa-ccp.c (n_const_val): New static variable.
31806         (get_value): Return NULL for SSA names we don't have a lattice
31807         entry for.
31808         (ccp_initialize): Initialize n_const_val.
31809         * tree-ssa-copy.c (n_copy_of): New static variable.
31810         (init_copy_prop): Initialize n_copy_of.
31811         (get_value): Return NULL_TREE for SSA names we don't have a
31812         lattice entry for.
31814 2013-02-20  Martin Jambor  <mjambor@suse.cz>
31816         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
31818 2013-02-20  Richard Biener  <rguenther@suse.de>
31820         * genpreds.c (write_lookup_constraint): Do not compare first
31821         letter of the constraint again.
31823 2013-02-20  Richard Biener  <rguenther@suse.de>
31825         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
31826         and ceil_log2.
31827         (get_use_iv_cost): Terminate hashtable walk when coming across
31828         an empty entry.
31830 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
31832         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
31833         reassociation for avx2 targets.
31835 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
31837         * config/microblaze/microblaze.c: microblaze_has_clz = 0
31838         Add version check for v8.10.a to enable microblaze_has_clz
31839         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
31840         version and TARGET_PATTERN_COMPARE check
31841         * config/microblaze/microblaze.md: New clzsi2 instruction
31843 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
31845         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
31846         function before branching.
31848 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
31850         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
31851         DUMP_INSN_RTX_UID.
31852         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
31854 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
31856         PR middle-end/55889
31857         * sel-sched.c: Include ira.h.
31858         (implicit_clobber_conflict_p): New function.
31859         (moveup_expr): Use it.
31860         * Makefile.in (sel-sched.o): Depend on ira.h.
31862 2013-02-19  Richard Biener  <rguenther@suse.de>
31864         PR tree-optimization/56384
31865         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
31866         (vn_hash_type): Split out from ...
31867         (vn_hash_constant_with_type): ... here.
31868         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
31869         (vn_phi_eq): Compare types from vn_phi_s structure.
31870         (vn_phi_lookup): Populate vn_phi_s type.
31871         (vn_phi_insert): Likewise.
31873 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
31875         PR tree-optimization/56350
31876         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
31877         if haven't found reduction or nested cycle operand, rather than
31878         asserting we must find it.
31880         PR tree-optimization/56381
31881         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
31882         to fold_build3.
31884 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
31885             Jakub Jelinek  <jakub@redhat.com>
31887         PR target/52555
31888         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
31889         (swap_optab_enable): Same.
31890         (init_all_optabs): Use argument instead of global.
31891         * tree.h (struct tree_optimization_option): New field target_optabs.
31892         * expr.h (init_all_optabs): Add argument to prototype.
31893         (TREE_OPTIMIZATION_OPTABS): New.
31894         (save_optabs_if_changed): Protoize.
31895         * optabs.h: Declare this_fn_optabs.
31896         * optabs.c (save_optabs_if_changed): New.
31897         Declare this_fn_optabs.
31898         (init_optabs): Add argument to init_all_optabs() call.
31899         * function.c (invoke_set_current_function_hook): Handle per
31900         function optabs.
31901         * function.h (struct function): New field optabs.
31902         * config/mips/mips.c (mips_set_mips16_mode): Handle when
31903         optimization_current_node has changed.
31904         * target-globals.h (save_target_globals_default_opts): Protoize.
31905         * target-globals.c (save_target_globals_default_opts): New.
31907 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
31909         PR target/56347
31910         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
31911         registers %fr12 and %fr12R as call used.
31913         PR target/56214
31914         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
31915         and HImode, require all displacements to be an integer multiple of
31916         their mode size.
31917         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
31918         only allow QImode and HImode when reload is in progress and strict is
31919         true.  Likewise for symbolic addresses.  Use base14_operand to check
31920         displacements in REG+BASE addresses.
31922 2013-02-18  Richard Biener  <rguenther@suse.de>
31924         PR tree-optimization/56366
31925         * tree-vect-loop.c (get_initial_def_for_induction): Properly
31926         handle sign-conversion of outer-loop initial induction value.
31928 2013-02-18  Richard Biener  <rguenther@suse.de>
31930         PR middle-end/56349
31931         * cfghooks.c (merge_blocks): If we merge a latch into another
31932         block adjust references to it.
31933         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
31934         (verify_loop_structure): Verify that a recorded latch is in fact
31935         a latch.
31937 2013-02-18  Richard Biener  <rguenther@suse.de>
31939         PR tree-optimization/56321
31940         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
31941         order SSA name release and virtual operand unlinking.
31943 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
31945         * config/microblaze/microblaze.md (save_stack_block): Define.
31946         (restore_stack_block): Likewise.
31948 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
31950         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
31951         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
31952         * config/microblaze/microblaze.c (microblaze_option_override):
31953         Bail out early for PIC modes when target does not support PIC.
31955 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
31957         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
31958         Replace with a microblaze version.
31959         (microblaze_trampoline_init): Adapt for microblaze.
31960         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
31961         microblaze.
31963 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
31964             Dodji Seketeli  <dodji@redhat.com>
31966         PR asan/56330
31967         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
31968         (instrument_mem_region_access): Do not forget to always put
31969         instrumentation of the of 'base' and 'base + len' in a "if (len !=
31970         0) statement, even for cases where either 'base' or 'base + len'
31971         are not instrumented -- because they have been previously
31972         instrumented.  Simplify the logic by putting all the statements
31973         instrument 'base + len' inside a sequence, and then insert that
31974         sequence right before the current insertion point.  Then, to
31975         instrument 'base + len', just get an iterator on that statement.
31976         And do not forget to update the pointer to iterator the function
31977         received as argument.
31979 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
31981         PR rtl-optimization/56348
31982         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
31984 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
31986         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
31987         (clean_graph_dump_file): Pass base to start_graph_dump.
31989 2013-02-14  Richard Henderson  <rth@redhat.com>
31991         PR target/55941
31992         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
31994 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
31996         * collect2-aix.h: Define F_LOADONLY.
31998 2013-02-14  Richard Biener  <rguenther@suse.de>
32000         PR lto/50494
32001         * varasm.c (output_constant_def_1): Get the decl representing
32002         the constant as argument.
32003         (output_constant_def): Wrap output_constant_def_1.
32004         (make_decl_rtl): Use output_constant_def_1 with the decl
32005         representing the constant.
32006         (build_constant_desc): Optionally re-use a decl already
32007         representing the constant.
32008         (tree_output_constant_def): Adjust.
32010 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
32012         Fix an asan crash
32013         * asan.c (instrument_builtin_call):  Really put the length of the
32014         second source argument into src1_len.
32016 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
32018         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
32019         argument.  If it is false, don't create edge from then_bb to
32020         fallthru_bb.
32021         (insert_if_then_before_iter): Pass true to it.
32022         (build_check_stmt): Pass false to it.
32023         (transform_statements): Flush hash table only on extended basic
32024         block boundaries, rather than at the beginning of every bb.
32025         Don't flush hash table on nonfreeing_call_p calls.
32026         * tree-flow.h (nonfreeing_call_p): New prototype.
32027         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
32029 2013-02-13  David S. Miller  <davem@davemloft.net>
32031         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
32033 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
32035         PR target/56184
32036         * ira.c (max_regno_before_ira): Move from ...
32037         (ira): ... here.
32038         (fix_reg_equiv_init): Use max_regno_before_ira instead of
32039         vec_safe_length.
32041 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
32043         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
32045 2013-02-13  Richard Biener  <rguenther@suse.de>
32047         PR lto/56295
32048         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
32049         globals in MEM_REFs.
32051 2013-02-13  Richard Biener  <rguenther@suse.de>
32053         * loop-init.c (loop_optimizer_init): Clear loop state when
32054         re-initializing preserved loops.
32055         * loop-unswitch.c (unswitch_single_loop): Return whether
32056         we unswitched the loop.  Do not verify loop state here.
32057         (unswitch_loops): When we unswitched a loop discover new loops.
32059 2013-02-13  Kostya Serebryany  <kcc@google.com>
32061         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
32062         on x86_64 linux.
32063         * sanitizer.def: Rename __asan_init to __asan_init_v1.
32065 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
32067         Avoid instrumenting duplicated memory access in the same basic block
32068         * Makefile.in (asan.o): Add new dependency on hash-table.h
32069         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
32070         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
32071         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
32072         (free_mem_ref_resources, has_mem_ref_been_instrumented)
32073         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
32074         (get_mem_ref_of_assignment): New functions.
32075         (get_mem_refs_of_builtin_call): Extract from
32076         instrument_builtin_call and tweak a little bit to make it fit with
32077         the new signature.
32078         (instrument_builtin_call): Use the new
32079         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
32080         of is_gimple_builtin_call.
32081         (instrument_derefs, instrument_mem_region_access): Insert the
32082         instrumented memory reference into the hash table.
32083         (maybe_instrument_assignment): Renamed instrument_assignment into
32084         this, and change it to advance the iterator when instrumentation
32085         actually happened and return true in that case.  This makes it
32086         homogeneous with maybe_instrument_assignment, and thus give a
32087         chance to callers to be more 'regular'.
32088         (transform_statements): Clear the memory reference hash table
32089         whenever we enter a new BB, when we cross a function call, or when
32090         we are done transforming statements.  Use
32091         maybe_instrument_assignment instead of instrumentation.  No more
32092         need to special case maybe_instrument_assignment and advance the
32093         iterator after calling it; it's now handled just like
32094         maybe_instrument_call.  Update comment.
32096 2013-02-13  Richard Biener  <rguenther@suse.de>
32098         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
32099         Fix loop discovery code.
32101 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
32103         PR inline-asm/56148
32104         * lra-constraints.c (process_alt_operands): Match early clobber
32105         operand with itself.  Check conflicts with earlyclobber only if
32106         the operand is not reloaded.  Prefer to reload conflicting operand
32107         if earlyclobber and matching operands are the same.
32109 2013-02-12  Richard Biener  <rguenther@suse.de>
32111         PR lto/56297
32112         * lto-streamer-out.c (write_symbol): Do not output symbols
32113         for hard register variables.
32115 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
32117         PR target/54222
32118         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
32119         (umulsidi3_insn, mulsidi3_insn): New insns.
32121 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
32123         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
32124         (struct tune_params): Add vec_costs field.
32125         * config/arm/arm.c (arm_builtin_vectorization_cost)
32126         (arm_add_stmt_cost): New functions.
32127         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
32128         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
32129         (arm_default_vec_cost): New struct of type cpu_vec_costs.
32130         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
32131         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
32132         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
32133         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
32135 2013-02-12  Richard Biener  <rguenther@suse.de>
32137         PR lto/56295
32138         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
32139         decls again if possible.
32141 2013-02-12  Richard Biener  <rguenther@suse.de>
32143         PR middle-end/56288
32144         * tree-ssa.c (verify_ssa_name): Fix check, move
32145         SSA_NAME_IN_FREE_LIST check up.
32147 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
32148             Steven Bosscher   <steven@gcc.gnu.org>
32150         PR rtl-optimization/56151
32151         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
32152         equal to op0 or op1, and last_insn pattern is CODE operation
32153         with MEM dest and one of the operands matches that MEM.
32155 2013-02-11  Sriraman Tallam  <tmsriram@google.com>
32157         * doc/extend.texi: Document Function Multiversioning and "default"
32158         parameter string to target attribute.
32159         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
32160         target attribute parameter is "default".
32161         (ix86_compare_version_priority): Remove checks for target attribute.
32162         (ix86_mangle_function_version_assembler_name): Change error to sorry.
32163         Remove check for target attribute equal to NULL. Add assert.
32164         (ix86_generate_version_dispatcher_body): Change error to sorry.
32166 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
32167             Jack Howarth  <howarth@bromo.med.uc.edu>
32168             Patrick Marlier  <patrick.marlier@gmail.com>
32170         PR libitm/55693
32171         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
32172         define ENDFILE_SPEC as TM_DESTRUCTOR.
32173         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
32175 2013-02-11  Alexander Potapenko  <glider@google.com>
32176             Jack Howarth  <howarth@bromo.med.uc.edu>
32177             Jakub Jelinek  <jakub@redhat.com>
32179         PR sanitizer/55617
32180         * config/darwin.c (cdtor_record): Rename ctor_record.
32181         (sort_cdtor_records): Rename sort_ctor_records.
32182         (finalize_dtors): New routine to sort destructors by
32183         priority before use in assemble_integer.
32184         (machopic_asm_out_destructor): Use finalize_dtors if needed.
32186 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
32188         PR rtl-optimization/56275
32189         * simplify-rtx.c (avoid_constant_pool_reference): Check that
32190         offset is non-negative and less than cmode size before
32191         calling simplify_subreg.
32193 2013-02-11  Richard Biener  <rguenther@suse.de>
32195         PR tree-optimization/56264
32196         * cfgloop.h (fix_loop_structure): Adjust prototype.
32197         * loop-init.c (fix_loop_structure): Return the number of
32198         newly discovered loops.
32199         * tree-cfgcleanup.c (repair_loop_structures): When new loops
32200         are discovered, do a full loop-closed SSA rewrite.
32202 2013-02-11  Richard Biener  <rguenther@suse.de>
32204         PR tree-optimization/56273
32205         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
32206         first VRP run.
32207         (check_array_ref): Fix missing newline in dumps.
32208         (search_for_addr_array): Likewise.
32210 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
32212         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
32214 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
32216         PR target/56256
32217         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
32219 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
32221         PR rtl-optimization/56246
32222         * lra-constraints.c (simplify_operand_subreg): Try to reuse
32223         reload pseudo.
32224         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
32225         constraints are satisfied.
32227 2013-02-08  Jeff Law  <law@redhat.com>
32229         PR debug/53948
32230         * emit-rtl.c (reg_is_parm_p): New function.
32231         * regs.h (reg_is_parm_p): New prototype.
32232         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
32233         callee-clobbered registers.
32235 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
32237         PR target/56043
32238         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
32239         If there is no implicit builtin declaration, just return NULL.
32241 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
32243         * config/i386/sse.md (FMAMODEM): New mode iterator.
32244         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
32245         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
32247 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
32249         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
32250         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
32251         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
32253 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
32255         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
32256         (microblaze*-*-elf): Likewise.
32257         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
32258         LINK_SPEC.
32259         * config/microblaze/microblaze-c.c: Add builtin defines for
32260         _LITTLE_ENDIAN and _BIG_ENDIAN.
32261         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
32262         add to TARGET_DEFAULT flags.
32263         Expand ASM_SPEC and LINK_SPEC.
32264         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
32265         * config/microblaze/microblaze.md: Update extendsidi2 and
32266         movdi_internal instructions to use low-order / high-order reg
32267         print_operands.
32268         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
32269         options and inversemask / mask of LITTLE_ENDIAN.
32270         * config/microblaze/t-microblaze: Expand multilib options to
32271         include mlittle-endian (le) and update exceptions patterns.
32273 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
32275         PR rtl-optimization/56195
32276         * lra-constraints.c (get_reload_reg): Don't reuse regs
32277         if they have smaller mode than requested, if they have
32278         wider mode than requested, try to return a SUBREG.
32280         PR tree-optimization/56250
32281         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
32282         if type is unsigned and code isn't MULT_EXPR.
32284 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
32286         PR tree-optimization/56064
32287         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
32288         bits according to mode.
32289         * fixed-value.h (fixed_from_double_int)
32290         (const_fixed_from_double_int): Adjust comments.
32292 2013-02-08  Richard Biener  <rguenther@suse.de>
32294         PR lto/56231
32295         * lto-streamer.h (struct data_in): Remove current_file, current_line
32296         and current_col members.
32297         * lto-streamer-out.c (lto_output_location): Stream changed bits
32298         en-block for efficiency.
32299         * lto-streamer-in.c (clear_line_info): Remove.
32300         (lto_input_location): Cache current file, line and column
32301         globally via local statics.  Read changed bits en-block.
32302         (input_function): Do not call clear_line_info.
32303         (lto_read_body): Likewise.
32304         (lto_input_toplevel_asms): Likewise.
32306 2013-02-08  Michael Matz  <matz@suse.de>
32308         PR tree-optimization/52448
32309         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
32310         (nt_call_phase): New static.
32311         (add_or_mark_expr): Only mark accesses with newer phase than any
32312         call seen.
32313         (nonfreeing_call_p): New.
32314         (nt_init_block): Update nt_call_phase, mark blocks as visited.
32315         (nt_fini_block): Keep blocks marked as visited.
32316         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
32318 2013-02-08  Richard Biener  <rguenther@suse.de>
32320         * ira.c (ira): Free broken dominator information.
32322 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
32324         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
32326 2013-02-08  Marek Polacek  <polacek@redhat.com>
32328         * cfgloop.c (verify_loop_structure): Add more checking of headers.
32330 2013-02-08  Richard Biener  <rguenther@suse.de>
32332         PR middle-end/56181
32333         * cfgloop.h (flow_loops_find): Adjust.
32334         (bb_loop_header_p): Declare.
32335         * cfgloop.c (bb_loop_header_p): New function split out from ...
32336         (flow_loops_find): ... here.  Adjust function signature,
32337         support incremental loop structure update.
32338         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
32339         * cfgloopmanip.c (fix_loop_structure): Move ...
32340         * loop-init.c (fix_loop_structure): ... here.
32341         (apply_loop_flags): Split out from ...
32342         (loop_optimizer_init): ... here.
32343         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
32344         in incremental mode, only remove dead loops here.
32346 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
32348         PR target/54222
32349         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
32350         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
32351         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
32352         (*round<mode>3.libgcc): New insns for fixed-modes.
32353         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
32354         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
32355         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
32356         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
32357         implementations.  Define to __builtin_avr_absFX,
32358         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
32359         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
32360         __builtin_avr_countlsFX, respectively.
32361         * config/avr/avr-c.c (target.h): Include it.
32362         (enum avr_builtin_id): New enum.
32363         (avr_resolve_overloaded_builtin): New static function.
32364         (avr_register_target_pragmas): Use it to set
32365         targetm.resolve_overloaded_builtin.
32366         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
32367         tree nodes used by DEF_BUILTIN.
32368         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
32369         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
32370         <AVR_BUILTIN_xxBITS>: Same.
32372 2013-02-08  Richard Biener  <rguenther@suse.de>
32374         * cfgloop.c (verify_loop_structure): Properly handle
32375         a loop exiting to another loop header.
32376         * ira-int.h (ira_loops): Remove.
32377         * ira.c (ira_loops): Remove.
32378         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
32379         (do_reload): Use loop_optimizer_finalize.
32380         * ira-build.c (create_loop_tree_nodes): Use get_loops and
32381         number_of_loops to access the loop tree.
32382         (more_one_region_p): Likewise.
32383         (finish_loop_tree_nodes): Likewise.
32384         (rebuild_regno_allocno_maps): Likewise.
32385         (mark_loops_for_removal): Likewise.
32386         (mark_all_loops_for_removal): Likewise.
32387         (remove_unnecessary_regions): Likewise.
32388         (ira_build): Likewise.
32389         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
32391 2013-02-08  Richard Biener  <rguenther@suse.de>
32393         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
32394         * ipa-pure-const.c (analyze_function): Avoid calling
32395         mark_irreducible_loops twice.
32396         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
32398 2013-02-07  David S. Miller  <davem@davemloft.net>
32400         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
32401         on 'reg'.
32402         * var-tracking.c (vt_add_function_parameter): Test the presence of
32403         HAVE_window_save properly and do not remap argument registers when
32404         we have a leaf function.
32406 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
32408         PR bootstrap/56227
32409         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
32410         instead of "ll".
32411         * config/i386/i386.c (ix86_print_operand): Ditto.
32413 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
32415         * lra-constraints.c (process_alt_operands): Fix recently added comment.
32417 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
32419         PR rtl-optimization/56225
32420         * lra-constraints.c (process_alt_operands): Check that reload hard
32421         reg can hold value for strict_low_part.
32423 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
32425         PR debug/56154
32426         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
32427         dwarf2out_end_function.
32428         (in_first_function_p, maybe_at_text_label_p,
32429         first_loclabel_num_not_at_text_label): New variables.
32430         (dwarf2out_var_location): In the first function find out
32431         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
32432         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
32433         functions.
32435 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
32437         PR rtl-optimization/56178
32438         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
32439         SUBREG of a register.  Tidy up related block of code.
32440         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
32441         note if the source is a register or a SUBREG of a register.
32443 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
32445         PR target/56228
32446         * config/rs6000/rs6000.md (ptrm): New mode attr.
32447         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
32448         call_value_indirect_aix<pttrsize>,
32449         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
32450         m in constraints.
32452 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
32454         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
32455         if -bnortl. Convert to strcmp and strncmp.
32457 2013-02-07  Alan Modra  <amodra@gmail.com>
32459         PR target/54009
32460         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
32461         addresses won't wrap when offsetting.
32462         (rs6000_secondary_reload): Provide secondary reloads needed for
32463         wrapping LO_SUM addresses.
32465 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
32467         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
32468         MACH, just __MACH__.
32470 2013-02-06  Richard Biener  <rguenther@suse.de>
32472         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
32473         instead of calling fix_loop_structure.
32475 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
32477         PR middle-end/56217
32478         * omp-low.c (use_pointer_for_field): Return false if
32479         lower_send_shared_vars doesn't generate any copy-out code.
32481 2013-02-06  Tom de Vries  <tom@codesourcery.com>
32483         PR rtl-optimization/56131
32484         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
32485         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
32486         of the label is NULL.  Add comment.
32488 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
32490         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
32492         PR sanitizer/55374
32493         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
32494         (STATIC_LIBTSAN_LIBS): Likewise.
32495         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
32496         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
32497         is defined, don't add anything else beyond that.
32498         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
32499         (LINK_COMMAND_SPEC): Use them.
32501         PR tree-optimization/56205
32502         * tree-stdarg.c (check_all_va_list_escapes): Return true if
32503         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
32504         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
32506 2013-02-05  Richard Biener  <rguenther@suse.de>
32508         PR tree-optimization/53342
32509         PR tree-optimization/53185
32510         * tree-vectorizer.h (vect_check_strided_load): Remove.
32511         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
32512         not disallow peeling for vectorized strided loads.
32513         (vect_check_strided_load): Make static and simplify.
32514         (vect_analyze_data_refs): Adjust.
32515         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
32516         correctly when vectorizing strided loads.
32518 2013-02-05  Richard Biener  <rguenther@suse.de>
32520         * doc/install.texi: Refer to ISL, not PPL.
32522 2013-02-05  Jan Hubicka  <jh@suse.cz>
32524         PR tree-optimization/55789
32525         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
32527 2013-02-05  Jan Hubicka  <jh@suse.cz>
32529         PR tree-optimization/55789
32530         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
32531         the dead call anyway.
32533 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
32535         PR sanitizer/55374
32536         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
32538 2013-02-04  Alexander Potapenko  <glider@google.com>
32539             Jack Howarth  <howarth@bromo.med.uc.edu>
32540             Jakub Jelinek  <jakub@redhat.com>
32542         PR sanitizer/55617
32543         * config/darwin.c (sort_ctor_records): Stabilized qsort
32544         on constructor priority by using original position.
32545         (finalize_ctors): New routine to sort constructors by
32546         priority before use in assemble_integer.
32547         (machopic_asm_out_constructor): Use finalize_ctors if needed.
32549 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
32551         PR libstdc++/54314
32552         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
32553         about visibility on artificial decls.
32554         * config/sol2.c (solaris_assemble_visibility): Likewise.
32556 2013-02-04  Kai Tietz  <ktietz@redhat.com>
32558         PR target/56186
32559         * config/i386/i386.c (function_value_ms_64): Add additional valtype
32560         argument and improve checking of return-argument types for 16-byte
32561         modes.
32562         (ix86_function_value_1): Add additional valtype argument on call
32563         of function_value_64.
32564         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
32565         handling infunction_value_64 function.
32567 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
32569         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
32571 2013-02-04  Richard Biener  <rguenther@suse.de>
32573         PR tree-optimization/56188
32574         * tree-ssa-structalias.c (label_visit): Consider case with
32575         initially non-empty points-to set.
32576         (perform_var_substitution): Dump node mapping and clean up.
32578 2013-02-04  Richard Guenther  <rguenther@suse.de>
32580         PR lto/56168
32581         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
32582         node prevail as last resort.
32583         (lto_symtab_merge_decls): Remove guard on LTRANS here.
32584         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
32586 2013-02-04  Richard Biener  <rguenther@suse.de>
32588         PR tree-optimization/56113
32589         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
32590         Merge into ...
32591         (equiv_class_lookup_or_add): ... this.
32592         (label_visit): Adjust and fix error in previous patch.
32593         (perform_var_substitution): Adjust.
32595 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
32597         * config/sh/divtab.c: Fix formatting and comments throughout the file.
32598         * config/sh/sh4-300.md: Likewise.
32599         * config/sh/sh4a.md: Likewise.
32600         * config/sh/constraints.md: Likewise.
32601         * config/sh/sh.md: Likewise.
32602         * config/sh/netbsd-elf.h: Likewise.
32603         * config/sh/predicates.md: Likewise.
32604         * config/sh/sh-protos.h: Likewise.
32605         * config/sh/ushmedia.h: Likewise.
32606         * config/sh/linux.h: Likewise.
32607         * config/sh/sh.c: Likewise.
32608         * config/sh/superh.h: Likewise.
32609         * config/sh/elf.h: Likewise.
32610         * config/sh/sh4.md: Likewise.
32611         * config/sh/sh.h: Likewise.
32613 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32615         * config/pa/constraints.md: Adjust unused letters.  Change "T"
32616         constraint to match_test floating_point_store_memory_operand().
32617         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
32618         (base14_operand): New.
32619         (floating_point_store_memory_operand): New.
32620         (integer_store_memory_operand): Revise to use base14_operand and
32621         reg_plus_base_memory_operand.
32622         (move_dest_operand): Allow symbolic_memory_operands.
32623         (symbolic_memory_operand): Check for LO_SOM.
32624         (symbolic_operand): Change default case to break.
32625         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
32626         CONST_DOUBLE values to be reloaded by putting them into memory when
32627         the destination is a floating point register.
32628         (movdf): Remove code to handle CONST_DOUBLE.
32629         (movsf): Likewise.
32630         (reload_indf_r1): New.
32631         (reload_insf_r1): New.
32632         Consistently use "Q" and "T" constraints with integer and floating
32633         point move instructions, respectively.
32634         (movdi): Remove FAIL.
32635         Change predicate for source operand unamed DImode move from
32636         general_operand to move_src_operand.
32637         (umulsidi3): Change predicate for destination operand to
32638         register_operand.
32639         Likewise for similar unamed patterns.
32640         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
32641         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
32642         (hppa_legitimize_address): Simplify mask calculation.
32643         (pa_emit_move_sequence): Revised handling of secondary reloads from
32644         REG+D addresses for floating point loads and stores.  Directly handle
32645         loading CONST0_RTX (mode) to a floating point register.
32646         (pa_secondary_reload): Handle reloading DF and SFmode constant values
32647         to floating point registers.  Don't restrict secondary reloads to
32648         floating point registers to integer modes.  Revise some comments and
32649         cleanup some code.
32650         (TARGET_LEGITIMATE_ADDRESS_P): Define.
32651         (pa_legitimate_address_p): New.
32652         (pa_legitimize_reload_address): New.
32653         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
32654         (STRICT_REG_OK_FOR_BASE_P): New.
32655         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
32656         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
32658 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
32659             Andrew Dixie  <andrewd@gentrack.com>
32661         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
32662         flag set.
32664 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
32666         * expmed.c (extract_bit_field_1): Pass the full width of the
32667         structure to get_best_reg_extraction_insn.
32669 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
32671         PR target/54601
32672         * configure.ac (use_cxa_atexit): Add AIX.
32673         * configure: Regenerate.
32675         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
32677 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
32679         PR debug/54793
32680         * final.c (need_profile_function): New variable.
32681         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
32682         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
32683         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
32684         notes, targetm.asm_out.function_prologue doesn't emit anything,
32685         HAVE_prologue and profiler should be emitted before prologue,
32686         set need_profile_function instead of emitting it.
32687         (final_scan_insn): If need_profile_function, emit
32688         profile_function on the first NOTE_INSN_BASIC_BLOCK or
32689         NOTE_INSN_FUNCTION_BEG note.
32691 2013-02-01  Richard Henderson  <rth@redhat.com>
32693         * config/rs6000/rs6000.md (smulditi3): New.
32694         (umulditi3): New.
32696         * config/alpha/alpha.md (umulditi3): New.
32698 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
32700         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
32701         (ASM_OUTPUT_ALIGNED_LOCAL): New.
32703 2013-02-01  Richard Biener  <rguenther@suse.de>
32705         PR tree-optimization/56113
32706         * tree-ssa-structalias.c (label_visit): Reduce work for
32707         single-predecessor nodes.
32709 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
32711         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
32712         range isn't testing for zero.
32714 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
32716         PR middle-end/56113
32717         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
32719 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
32720             Nick Clifton  <nickc@redhat.com>
32722         * config/v850/constraints.md (Q): Define as a memory constraint.
32723         * config/v850/predicates.md (label_ref_operand): New predicate.
32724         (e3v5_shift_operand): New predicate.
32725         (ior_operator): New predicate.
32726         * config/v850/t-v850: Add e3v5 multilib.
32727         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
32728         (v850_gen_movdi): Prototype.
32729         * config/v850/v850.c: Add support for e3v5 architecture.
32730         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
32731         TARGET_V850E_UP.
32732         (construct_save_jarl): Add e3v5 long JARL support.
32733         (v850_adjust_insn_length): New function.  Adjust length of call
32734         insns when using e3v5 instructions.
32735         (v850_gen_movdi): New function: Generate instructions to move a
32736         DImode value.
32737         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
32738         (CPP_SPEC): Define __v850e3v5__ as appropriate.
32739         (TARGET_USE_FPU): Enable for e3v5.
32740         (CONST_OK_FOR_W): New macro.
32741         (ADJUST_INSN_LENGTH): Define.
32742         * config/v850/v850.md (UNSPEC_LOOP): Define.
32743         (attr cpu): Add v850e3v5.
32744         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
32745         (movdi): New pattern.
32746         (movdi_internal): New pattern.
32747         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
32748         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
32749         (cstoresf4): Likewise.
32750         (cstoredf4): Likewise.
32751         (insv): New pattern.
32752         (rotlso3_a): New pattern.
32753         (rotlsi3_b): New pattern
32754         (rotlsi3_v850e3v5): New pattern.
32755         (doloop_begin): New pattern.
32756         (fix_loop_counter): New pattern.
32757         (doloop_end): New pattern.
32758         (branch_normal): Add e3v5 long branch support.
32759         (branch_invert): Likewise.
32760         (branch_z_normal): Likewise.
32761         (branch_z_invert): Likewise.
32762         (branch_nz_normal): Likewise.
32763         (branch_nz_invert): Likewise.
32764         (call_internal_short): Add e3v5 register-indirect JARL support.
32765         (call_internal_long): Likewise.
32766         (call_value_internal_short): Likewise.
32767         (call_value_internal_long): Likewise.
32768         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
32769         (mloop): New option.
32770         * config.gcc: Add support for configuring v840e3v5 target.
32771         * doc/invoke.texi: Document new v850 specific command line options.
32773 2013-01-31  Paul Koning  <ni1d@arrl.net>
32775         PR debug/55059
32776         PR debug/54508
32777         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
32778         children if parent is a class.
32779         (prune_unused_types_prune): Don't add DW_AT_declaration.
32781 2013-01-31  Richard Biener  <rguenther@suse.de>
32783         PR tree-optimization/56157
32784         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
32785         match up operand with SLP child.
32787 2013-01-31  Jason Merrill  <jason@redhat.com>
32789         PR debug/54410
32790         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
32791         parameters the first time.
32792         (gen_scheduled_generic_parms_dies): Check completeness here.
32794 2013-01-31  Richard Biener  <rguenther@suse.de>
32796         PR middle-end/53073
32797         * common.opt (faggressive-loop-optimizations): New flag,
32798         enabled by default.
32799         * doc/invoke.texi (faggressive-loop-optimizations): Document.
32800         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
32801         infer_loop_bounds_from_undefined by it.
32803 2013-01-31  Richard Biener  <rguenther@suse.de>
32805         PR tree-optimization/56150
32806         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
32807         visit virtual operands.
32808         (find_uses_to_rename_bb): Likewise.
32810 2013-01-31  Richard Biener  <rguenther@suse.de>
32812         PR tree-optimization/56150
32813         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
32814         mixed store non-store stmts.
32816 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
32818         PR sanitizer/55374
32819         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
32820         LIBASAN_EARLY_SPEC is defined.
32821         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
32822         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
32823         before %o.
32824         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
32826         PR c++/55742
32827         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
32828         invalid args instead of ICEing on it.
32829         (ix86_valid_target_attribute_tree): Return error_mark_node if
32830         ix86_valid_target_attribute_inner_p failed.
32831         (ix86_valid_target_attribute_p): Return false only if
32832         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
32833         target("default") attribute.
32834         (sorted_attr_string): Change argument from const char * to tree,
32835         merge in all target attribute arguments rather than just one.
32836         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
32837         instead of free.  Avoid using strcat.
32838         (ix86_mangle_function_version_assembler_name): Mangle
32839         target("default") as if no target attribute is present.  Adjust
32840         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
32841         instead of xmalloc and XDELETEVEC instead of free.
32842         (ix86_function_versions): Don't return true if one of the decls
32843         doesn't have target attribute.  If they don't and one of the decls
32844         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
32845         sorted_attr_string caller.  Use XDELETEVEC instead of free.
32846         (ix86_supports_function_versions): Remove.
32847         (make_name): Fix up formatting.
32848         (make_dispatcher_decl): Remove resolver_name and its initialization.
32849         Avoid leaking memory.
32850         (is_function_default_version): Return true if there is
32851         target("default") attribute rather than no target attribute at all.
32852         (make_resolver_func): Avoid leaking memory.
32853         (ix86_generate_version_dispatcher_body): Likewise.
32854         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
32855         * target.def (supports_function_versions): Remove.
32856         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
32857         * doc/tm.texi: Regenerated.
32859 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
32861         PR rtl-optimization/56144
32862         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
32863         for values with side effects.
32865 2013-01-30  Richard Biener  <rguenther@suse.de>
32867         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
32868         (sparseset_pop): Likewise.
32869         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
32870         to be able to use quick_push in the worker loop.
32872 2013-01-30  Marek Polacek  <polacek@redhat.com>
32874         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
32876 2013-01-30  Richard Biener  <rguenther@suse.de>
32878         PR lto/56147
32879         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
32881 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
32883         PR tree-optimization/56064
32884         * fixed-value.c (fixed_from_double_int): New function.
32885         * fixed-value.h (fixed_from_double_int): New prototype.
32886         (const_fixed_from_double_int): New static inline function.
32887         * fold-const.c (native_interpret_fixed): New static function.
32888         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
32889         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
32890         (native_encode_fixed): New static function.
32891         (native_encode_expr) <FIXED_CST>: Use it.
32892         (native_interpret_int): Move double_int worker code to...
32893         * double-int.c (double_int::from_buffer): ...this new static method.
32894         * double-int.h (double_int::from_buffer): Prototype it.
32896 2013-01-30  Richard Biener  <rguenther@suse.de>
32898         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
32899         New pointer-map and obstack.
32900         (init_alias_vars): Allocate pointer-map and obstack.
32901         (delete_points_to_sets): Free them.
32902         (find_what_var_points_to): Cache result.
32903         (find_what_p_points_to): Adjust for changed interface of
32904         find_what_var_points_to.
32905         (compute_points_to_sets): Likewise.
32906         (ipa_pta_execute): Likewise.
32908 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32910         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
32911         * configure: Regenerate.
32912         * config.in: Regenerate.
32913         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
32914         #nobits/#progbits if supported.
32916 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
32918         PR target/56121
32919         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
32920         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
32921         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
32923 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
32925         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
32926         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
32928 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
32930         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
32931         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
32933 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
32935         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
32936         declaration.
32937         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
32938         * config/arm/cortex-a7.md: New bypasses using
32939         arm_mac_accumulator_is_result.
32941 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
32943         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
32944         (cortex_a7_neon_mla): Likewise.
32945         (cortex_a7_fpfmad): New reservation.
32946         (cortex_a7_fpmacs): Use ffmas and update required units.
32947         (cortex_a7_fpmuld): Update required units and latency.
32948         (cortex_a7_fpmacd): Likewise.
32949         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
32950         (cortex_a7_neon). Likewise.
32951         (bypass) Update participating units.
32953 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
32955         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
32956         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
32957         from fmac to ffma.
32958         * config/arm/vfp11.md (vfp_farith): Use ffmas.
32959         (vfp_fmul): Use ffmad.
32960         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
32961         (cortex_r4_fmacd): Use ffmad.
32962         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
32963         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
32964         (cortex_a9_fmacd): Use ffmad.
32965         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
32966         (cortex_a8_vfp_macd): Use ffmad.
32967         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
32968         (cortex_a5_fpmacd): Use ffmad.
32969         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
32970         (cortex_a15_vfp_macd): Use ffmad.
32971         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
32973 2013-01-29  Jason Merrill  <jason@redhat.com>
32975         PR libstdc++/54314
32976         * varasm.c (default_assemble_visibility): Don't warn about
32977         visibility on artificial decls.
32979 2013-01-29  Richard Biener  <rguenther@suse.de>
32981         PR tree-optimization/56113
32982         * tree-ssa-structalias.c (equiv_class_lookup): Also return
32983         the bitmap leader.
32984         (label_visit): Free duplicate bitmaps and record the leader instead.
32985         (perform_var_substitution): Adjust.
32987 2013-01-29  Richard Biener  <rguenther@suse.de>
32989         PR tree-optimization/55270
32990         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
32991         the CFG, schedule loops for fixup.
32993 2013-01-29  Nick Clifton  <nickc@redhat.com>
32995         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
32996         SP_REG.
32998 2013-01-28  Leif Ekblad  <leif@rdos.net>
33000         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
33001         * config/i386/i386.h (TARGET_RDOS): New macro.
33002         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
33003         * config/i386/i386.c (ix86_option_override_internal): For 64bit
33004         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
33005         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
33006         DEFAULT_LARGE_SECTION_THRESHOLD.
33007         * config/i386/i386.md (R14_REG, R15_REG): New constants.
33008         * config/i386/rdos.h: New file.
33009         * config/i386/rdos64.h: New file.
33011 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
33013         PR other/54814
33014         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
33015         TEST_HARD_REG_BIT.
33017 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
33019         PR rtl-optimization/56117
33020         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
33021         call cselib_lookup_from_insn on the MEM before calling
33022         add_insn_mem_dependence.
33024 2013-01-28  Richard Biener  <rguenther@suse.de>
33026         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
33027         to a stmt that didn't have one.
33028         (copy_phis_for_bb): Likewise for PHI arguments.
33029         (copy_debug_stmt): Likewise for debug stmts.
33031 2013-01-28  Richard Biener  <rguenther@suse.de>
33033         PR tree-optimization/56034
33034         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
33035         (partition_builtin_p): Adjust.
33036         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
33037         it is the last partition.
33038         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
33039         up the vertex for the definition.
33040         (classify_partition): Classify whether a partition is a
33041         PKIND_REDUCTION, thus has uses outside of the loop.
33042         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
33043         Merge all PKIND_REDUCTION partitions into the last partition.
33044         (tree_loop_distribution): Seed partitions from reductions as well.
33046 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
33048         PR tree-optimization/56125
33049         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
33050         pow(x,c) into sqrt(x) * powi(x, n/2) or
33051         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
33052         optimizing for size.
33053         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
33054         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
33055         integer.
33057         PR tree-optimization/56094
33058         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
33059         to UNKNOWN_LOCATION while gimplifying expr.
33061 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
33063         PR target/56114
33064         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
33065         operand 0 in movabs insn template for -masm=intel asm alternative.
33066         (*movabs<mode>_2): Ditto for operand 1.
33068 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
33070         PR target/54663
33071         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
33072         of microblaze-c.o
33074 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33076         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
33077         tm_file.
33079 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
33081         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
33082         Undef to avoid warning.
33084 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33086         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
33087         * configure: Regenerate.
33089 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
33091         PR tree-optimization/56098
33092         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
33093         for stmts with volatile ops.
33094         (cond_store_replacement): Don't optimize if assign has volatile ops.
33095         (cond_if_else_store_replacement_1): Don't optimize if either
33096         then_assign or else_assign have volatile ops.
33097         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
33098         volatile ops.
33100 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
33102         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
33104 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
33106         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
33107         missing ':' in asm example.
33109 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
33111         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
33112         entries into lane and laneq entries.
33113         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
33114         Remove AdvSIMD scalar modes.
33115         (aarch64_sq<r>dmulh_laneq<mode>): New.
33116         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
33117         modes.
33118         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
33119         builtin implementations to relfect changes in RTL in aarch64-simd.md.
33120         * config/aarch64/iterators.md (VCOND): New.
33121         (VCONQ): New.
33123 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
33125         PR target/54222
33126         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
33127         Add NULL LIBNAME argument to existing definitions.
33128         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
33129         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
33130         * config/avr/avr.c (DEF_BUILTIN): Same.
33131         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
33132         (avr_expand_builtin): Expand to a vanilla call if a libgcc
33133         implementation is available (DECL_ASSEMBLER_NAME is set).
33134         (avr_fold_absfx): New static function.
33135         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
33136         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
33137         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
33138         AVR_BUILTIN_ABSLLK.
33139         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
33140         (abshk, absk, abslk, absllk): Provide as static inline functions.
33142 2013-01-25  Marek Polacek  <polacek@redhat.com>
33144         PR tree-optimization/56035
33145         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
33147 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
33149         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
33150         (*movtf_internal_rex64): Add (!o,C) alternative
33151         (*movxf_internal_rex64): Ditto.
33152         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
33154 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
33156         * doc/invoke.texi: fix typo.
33157         * doc/objc.texi: fix typo.
33159 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
33161         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
33162         for the first two alternatives.
33164 2013-01-24  Diego Novillo  <dnovillo@google.com>
33166         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
33167         (ggc-zone.o): Remove.
33168         * configure.ac: Remove option --with-gc.
33169         * configure: Re-generate.
33170         * doc/install.texi: Remove documentation for --with-gc.
33171         * gengtype.c (write_enum_defn): Remove.  Update all users.
33172         (write_Types_process_field): Remove generation of gt_e_* argument.
33173         (output_type_enum): Remove.  Update all users.
33174         (write_enum_defn): Remove.  Update all users.
33175         (enum alloc_zone): Remove.  Update all users.
33176         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
33177         * ggc-common.c (ggc_splay_alloc): Remove first argument.
33178         Update all callers.
33179         (struct ptr_data): Remove field TYPE.  Update all users.
33180         (gt_pch_note_object): Remove argument TYPE.  Update all users.
33181         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
33182         Update all users.
33183         * ggc-none.c (ggc_alloc_typed_stat): Remove.
33184         (struct alloc_zone): Remove.
33185         (ggc_internal_alloc_zone_stat): Remove.
33186         (ggc_internal_cleared_alloc_zone_stat): Remove.
33187         * ggc-page.c (ggc_alloc_typed_stat): Remove.
33188         (ggc_pch_count_object): Remove last argument.  Update all users.
33189         (ggc_pch_alloc_object): Remove last argument.  Update all users.
33190         (struct alloc_zone): Remove.
33191         * ggc-zone.c: Remove.
33192         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
33193         (struct alloc_zone): Remove.
33194         (ggc_alloc_typed_stat): Remove.
33195         (ggc_alloc_typed): Remove.
33196         (ggc_splay_alloc): Remove first argument.
33197         (rtl_zone): Remove.  Update all users.
33198         (tree_zone): Remove.  Update all users.
33199         (tree_id_zone): Remove.  Update all users.
33200         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
33201         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
33202         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
33203         * tree-ssanames.c: Remove references to zone allocator in comments.
33205 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
33207         * config/avr/avr.c (avr_out_fract): Make register numbers that
33208         might be outside of source operand signed.
33210 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
33212         * config/i386/constraints.md (Yf): New constraint.
33213         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
33214         of f constraint to conditionaly disable x87 register preferences.
33215         (*movdf_internal): Ditto.
33216         (*movsf_internal): Ditto.
33218 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
33220         PR inline-asm/55934
33221         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
33222         that have operands with impossible constraints.
33223         Add a FIXME for a speed-up opportunity.
33224         * lra-constraints.c (process_alt_operands): Verify that a class
33225         selected from constraints on asms is valid for the operand mode.
33226         (curr_insn_transform): Remove incorrect comment.
33228 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
33230         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
33231         TOC operand is a valid symbol ref in the constant pool.
33233 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33235         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
33237 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
33239         PR target/54222
33240         * config/avr/stdfix.h: New file.
33241         * t-avr (stdfix-gcc.h): New rule to build it.
33242         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
33244 2013-01-23  Kostya Serebryany  <kcc@google.com>
33246         * config/darwin.h: remove dependency on
33247         CoreFoundation (asan on Mac OS).
33249 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
33251         PR target/49069
33252         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
33253         instead of cmpdi_operand for first comparison operand.
33254         Don't assert that comparison operands aren't both constants.
33256 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
33258         * doc/install.texi (Downloading the Source): Update references to
33259         downloading separate components.
33261 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
33263         * doc/extend.texi (__int128): Improve grammar.
33265 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
33267         PR target/56028
33268         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
33269         alternative to (o,r).
33270         (*movdi_internal_rex64): Remove (!o,n) alternative.
33271         (DImode immediate->memory splitter): Remove.
33272         (DImode immediate->memory peephole2): Remove.
33273         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
33274         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
33275         alternative to (!o,*r).
33276         (*movtf_internal_sse): New pattern.
33277         (*movxf_internal_rex64): New pattern.
33278         (*movxf_internal): Disable for TARGET_64BIT.
33279         (*movdf_internal_rex64): Remove (!o,F) alternative.
33281 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
33283         PR middle-end/56074
33284         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
33285         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
33286         * tree-vect-loop-manip.c (find_loop_location): Also ignore
33287         stmt locations where LOCATION_LOCUS of the stmt location is
33288         UNKNOWN_LOCATION or BUILTINS_LOCATION.
33290         PR target/55686
33291         * config/i386/i386.md (UNSPEC_STOS): New.
33292         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
33293         *strsetqi_1): Add UNSPEC_STOS.
33295 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
33297         PR c++/56067
33298         * doc/invoke.texi: Remove left over -Wsynth example.
33300 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
33302         PR tree-optimization/56051
33303         * fold-const.c (fold_binary_loc): Don't fold
33304         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
33305         a narrowing conversion, or widening conversion from signed
33306         to unsigned.
33308 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
33310         PR rtl-optimization/56023
33311         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
33312         dependent on debug instruction.
33314 2013-01-21  Martin Jambor  <mjambor@suse.cz>
33316         PR middle-end/56022
33317         * function.c (allocate_struct_function): Call
33318         invoke_set_current_function_hook earlier.
33320 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
33322         * reload1.c (init_reload): Only initialize reload_obstack
33323         during the first call.
33325 2013-01-21  Marek Polacek  <polacek@redhat.com>
33327         * cfgloop.c (verify_loop_structure): Fix up grammar.
33329 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
33331         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
33332         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
33334 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33336         PR target/56058
33337         * config/arm/marvell-pj4.md: Update copyright year.
33338         Fix up use of alu to alu_reg and simple_alu_imm.
33340 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
33342         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
33344 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
33346         PR target/55433
33347         * lra-constraints.c (curr_insn_transform): Don't reuse original
33348         insn for secondary memory move when memory mode should be different.
33350 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33352         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
33353         atomic_storedi_1): New patterns.
33355 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
33357         btver2 pipeline descriptions.
33358         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
33359         descriptions.
33360         * config/i386/i386.md (btver2_decode): New type attributes.
33361         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
33362         type attributes.
33363         * config/i386/btver2.md: New file describing btver2 pipelines.
33365 2013-01-19  Andrew Pinski  <apinski@cavium.com>
33367         PR tree-optimization/52631
33368         * tree-ssa-sccvn (visit_use): Before looking up the original
33369         statement, try looking up the simplified expression.
33371 2013-01-19  Anthony Green  <green@moxielogic.com>
33373         * config/moxie/moxie.c (moxie_expand_prologue): Set
33374         current_function_static_stack_size.
33376 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
33378         PR tree-optimization/56029
33379         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
33380         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
33382 2013-01-18  Sharad Singhai  <singhai@google.com>
33384         PR tree-optimization/55995
33385         * dumpfile.c (dump_loc): Print location only if available.
33386         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
33388 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
33390         PR target/55433
33391         * lra-constraints.c (curr_insn_transform): Reuse original insn for
33392         secondary memory move.
33393         (inherit_reload_reg): Use rclass instead of cl for
33394         check_secondary_memory_needed_p.
33396 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
33398         PR middle-end/56015
33399         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
33400         the case where writing real complex part of target modifies op1.
33402 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
33404         * config/aarch64/aarch64-simd.md
33405         (aarch64_vcond_internal<mode>): Handle unordered cases.
33406         * config/aarch64/iterators.md (v_cmp_result): New.
33408 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
33409             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33411         * config/arm/marvell-pj4.md: New file.
33412         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
33413         * config/arm/arm.md (generic_sched): Add marvell_pj4.
33414         (generic_vfp): Likewise.
33415         * config/arm/arm-cores.def: Add marvell-pj4.
33416         * config/arm/arm-tune.md: Regenerate.
33417         * config/arm/arm-tables.opt: Regenerate.
33418         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
33419         * doc/invoke.texi: Document marvell-pj4.
33421 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
33423         * config/aarch64/arm_neon.h: Map scalar types to standard types.
33425 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
33427         PR debug/54114
33428         PR debug/54402
33429         PR debug/49888
33430         * var-tracking.c (negative_power_of_two_p): New.
33431         (global_get_addr_cache, local_get_addr_cache): New.
33432         (get_addr_from_global_cache, get_addr_from_local_cache): New.
33433         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
33434         heading comment.
33435         (vt_stack_offset_p): Remove.
33436         (vt_canon_true_dep): Always canonicalize loc's address.
33437         (clobber_overlapping_mems): Make sure we have a MEM.
33438         (local_get_addr_clear_given_value): New.
33439         (val_reset): Clear local cached entries.
33440         (compute_bb_dataflow): Create and release the local cache.
33441         Disable duplicate MEMs clobbering.
33442         (emit_notes_in_bb): Clobber MEMs likewise.
33443         (vt_emit_notes): Create and release the local cache.
33444         (vt_initialize, vt_finalize): Create and release the global
33445         cache, respectively.
33446         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
33448 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
33450         PR libmudflap/53359
33451         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
33452         not found in the symtab.
33454 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
33456         PR debug/56006
33457         PR rtl-optimization/55547
33458         PR rtl-optimization/53827
33459         PR debug/53671
33460         PR debug/49888
33461         * alias.c (offset_overlap_p): New, factored out of...
33462         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
33463         the conservative special case for symbolic constants.  Don't
33464         adjust zero sizes on alignment.
33466 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
33468         PR rtl-optimization/52573
33469         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
33470         REG_UNUSED for the same register.
33472 2013-01-17  Richard Biener  <rguenther@suse.de>
33473             Marek Polacek  <polacek@redhat.com>
33475         PR rtl-optimization/55833
33476         * loop-unswitch.c (unswitch_loops): Move loop verification...
33477         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
33478         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
33479         Set it to true when we're removing a loop from hierarchy tree in
33480         an irreducible region.
33481         (fix_bb_placements): Adjust caller.
33482         (fix_loop_placements): Likewise.
33484 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
33486         * config/avr/builtins.def (DEF_BUILTIN): Factor out
33487         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
33488         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
33489         Remove ID.  Adjust comments.
33490         * config/avr/avr-c.c (avr_builtin_name): Remove.
33491         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
33492         * config/avr/avr.c (avr_tolower): New static function.
33493         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
33494         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
33495         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
33496         default expansion.
33498 2013-01-17  Jan Hubicka  <jh@suse.cz>
33500         PR tree-optimization/55273
33501         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
33503 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
33505         PR target/55981
33506         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
33507         store through atomic_store<mode>_1.
33508         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
33510 2013-01-17  Martin Jambor  <mjambor@suse.cz>
33512         PR tree-optimizations/55264
33513         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
33514         for virtual methods.
33515         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
33516         virtual methods before inlining is over.
33517         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
33518         virtual functions.
33519         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
33520         non-virtual.
33522 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
33524         PR rtl-optimization/56005
33525         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
33526         pending reads for prefetch.
33528 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
33530         * config/aarch64/aarch64.md
33531         (*cstoresi_neg_uxtw): New pattern.
33532         (*cmovsi_insn_uxtw): New pattern.
33533         (*<optab>si3_uxtw): New pattern.
33534         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
33535         (*<optab>si3_insn_uxtw): New pattern.
33536         (*bswapsi2_uxtw): New pattern.
33538 2013-01-16  Richard Biener  <rguenther@suse.de>
33540         * tree-inline.c (tree_function_versioning): Remove set but
33541         never used variable.
33543 2013-01-16  Richard Biener  <rguenther@suse.de>
33545         PR tree-optimization/55964
33546         * tree-flow.h (rename_variables_in_loop): Remove.
33547         (rename_variables_in_bb): Likewise.
33548         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
33549         (copy_loop_before): Adjust and delete update-ssa status.
33550         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
33551         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
33552         (rename_variables_in_loop): Remove.
33553         (slpeel_update_phis_for_duplicate_loop): Likewise.
33554         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
33555         use available cfg machinery instead of duplicating it.
33556         Update PHI nodes and perform poor-mans SSA update here.
33557         (slpeel_tree_peel_loop_to_edge): Adjust.
33559 2013-01-16  Richard Biener  <rguenther@suse.de>
33561         PR tree-optimization/54767
33562         PR tree-optimization/53465
33563         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
33564         (vrp_visit_phi_node): For PHI arguments coming via backedges
33565         drop all symbolical range information.
33566         (execute_vrp): Compute backedges.
33568 2013-01-16  Richard Biener  <rguenther@suse.de>
33570         * doc/install.texi: Update CLooG and ISL requirements to
33571         0.18.0 and 0.11.1.
33573 2013-01-16  Christian Bruel  <christian.bruel@st.com>
33575         PR target/55301
33576         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
33577         (broken_move): Handle UNSPECV_SP_SWITCH_B.
33578         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
33580 2013-01-16  DJ Delorie  <dj@redhat.com>
33582         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
33583         (UNSPECV_SP_SWITCH_E): New.
33584         (sp_switch_1): Change to an unspec.
33585         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
33586         replace $r15.
33588 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
33590         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
33591         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
33592         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
33593         (expand_mem_thread_fence): Ditto.
33594         (expand_mem_signal_fence): Ditto.
33595         (expand_atomic_load): Ditto.
33596         (expand_atomic_store): Ditto.
33598 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
33600         PR rtl-optimization/55547
33601         PR rtl-optimization/53827
33602         PR debug/53671
33603         PR debug/49888
33604         * alias.c (memrefs_conflict_p): Set sizes to negative after
33605         AND adjustments.
33607 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
33609         PR target/55940
33610         * function.c (thread_prologue_and_epilogue_insns): Always
33611         add crtl->drap_reg to set_up_by_prologue.set, even if
33612         stack_realign_drap is false.
33614 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
33616         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
33617         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
33618         *call): Fix indention.
33620 2013-01-15  Tom de Vries  <tom@codesourcery.com>
33622         PR target/55876
33623         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
33624         Update comment.
33626 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
33628         PR rtl-optimization/55153
33629         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
33631 2013-01-15  Martin Jambor  <mjambor@suse.cz>
33633         PR tree-optimization/55920
33634         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
33635         accesses as grp_to_be_debug_replaced.
33637 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
33639         PR tree-optimization/55920
33640         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
33641         there is non-useless type conversion needed from debug rhs to lhs,
33642         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
33644 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
33645             Mikael Pettersson  <mikpe@it.uu.se>
33647         PR target/43961
33648         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
33649         Thumb.
33650         (ASM_OUTPUT_CASE_LABEL): Remove.
33651         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
33652         * final.c (shorten_branches): Update alignment of labels before
33653         jump tables if CASE_VECTOR_SHORTEN_MODE.
33655 2013-01-15  Richard Biener  <rguenther@suse.de>
33657         PR bootstrap/55961
33658         * system.h: Do not include gmp.h for building host tools.
33660 2013-01-15  Richard Biener  <rguenther@suse.de>
33662         PR middle-end/55882
33663         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
33664         account for bitpos when computing alignment.
33666 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
33668         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
33669         (ix86_target_macros_internal): Likewise.
33671         * config/i386/i386.c (m_CORE2I7): Removed.
33672         (m_CORE_HASWELL): New macro.
33673         (m_CORE_ALL): Likewise.
33674         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
33675         (initial_ix86_arch_features): Likewise.
33676         (processor_target_table): Initializations for Core avx2.
33677         (cpu_names): New names "core-avx2".
33678         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
33679         PROCESSOR_CORE_HASWELL.
33680         (ix86_issue_rate): New case.
33681         (ia32_multipass_dfa_lookahead): Likewise.
33682         (ix86_sched_init_global): Likewise.
33684         * config/i386/i386.h (TARGET_HASWELL): New macro.
33685         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
33686         (processor_type): New PROCESSOR_HASWELL.
33688 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
33690         PR tree-optimization/55955
33691         * tree-vect-loop.c (vectorizable_reduction): Give up early on
33692         *SHIFT_EXPR and *ROTATE_EXPR codes.
33694         PR tree-optimization/48766
33695         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
33696         -ftrapv disable -fwrapv.
33698 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
33700         PR target/55974
33701         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
33702         etc. to 1 and not to __flash.
33703         Use LL suffix for __INT24_MAX__ with -mint8.
33704         Use ULL suffix for __UINT24_MAX__ with -mint8.
33706 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
33708         * config/avr/avr-arch.h
33709         (struct base_arch_s): Use typedef avr_arch_t instead.
33710         (struct arch_info_s): Use typedef avr_arch_info_t instead.
33711         (struct mcu_type_s): Use typedef avr_mcu_t instead.
33712         * config/avr/avr.c: Same.
33713         * config/avr/avr-devices.c: Same.
33714         * config/avr/driver-avr.c: Same.
33715         * config/avr/gen-avr-mmcu-texi.c: Same.
33716         * config/avr/avr-mcus.def: Adjust comment.
33718 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
33720         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
33721         * config/aarch64/iterators.md (VALLDI): New.
33723 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
33724             Andi Kleen  <ak@linux.intel.com>
33726         PR target/55948
33727         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
33728         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
33729         memmodel flag.
33731 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
33733         * config/avr/avr-stdint.h: Remove trailing blanks.
33734         * config/avr/avr-log.h: Same.
33735         * config/avr/avr-arch.h: Same.
33736         * config/avr/avr-devices.c: Same.
33737         * config/avr/avr-dimode.md: Same.
33738         * config/avr/predicates.md: Same.
33739         * config/avr/avr-c.c: Same.  And fix typo.
33741         * config/avr/avr-protos.h: Same.  And:
33742         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
33743         (init_cumulative_args): Rename to avr_init_cumulative_args.
33744         (expand_prologue): Rename to avr_expand_prologue.
33745         (expand_epilogue): Rename to avr_expand_epilogue.
33746         (adjust_insn_length): Rename to avr_adjust_insn_length.
33747         (notice_update_cc): Rename to avr_notice_update_cc.
33748         (final_prescan_insn): Rename to avr_final_prescan_insn.
33749         * config/avr/avr.c: Same.
33750         * config/avr/avr.h: Same.
33751         * config/avr/avr.md: Remove trailing blanks.
33752         (prologue): Use avr_expand_prologue.
33753         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
33755 2013-01-14  Richard Biener  <rguenther@suse.de>
33757         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
33758         verify_location, collect_subblocks): New functions.
33759         (verify_gimple_in_cfg): Verify that locations only reference
33760         BLOCKs in the functions BLOCK tree.
33762 2013-01-14  Richard Biener  <rguenther@suse.de>
33764         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
33765         PHI argument.
33766         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
33767         unshare reference.
33768         (insert_out_of_ssa_copy_on_edge): Likewise.
33769         (rewrite_close_phi_out_of_ssa): Likewise.
33770         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
33771         debug expressions.
33772         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
33773         propagated constants.
33774         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
33775         can not be shared.
33777 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
33779         * config/avr/avr-modes.def: Add GPL copyright notice.
33781 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
33783         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
33784         MEMMODEL_MASK to determine memory model.
33785         (atomic_store<mode>): Ditto from operands[2].
33786         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
33788 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
33790         PR fortran/55935
33791         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
33792         (fold_gimple_assign): Don't call unshare_expr here.
33793         (fold_ctor_reference): Call unshare_expr.
33795 2013-01-13  Terry Guo  <terry.guo@arm.com>
33797         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
33798         * doc/fragments.texi: Document MULTILIB_REUSE.
33799         * gcc.c (multilib_reuse): New internal spec.
33800         (set_multilib_dir): Also search multilib from multilib_reuse.
33801         * genmultilib (tmpmultilib3): Refactor code.
33802         (tmpmultilib4): Ditto.
33803         (multilib_reuse): New multilib argument.
33805 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
33807         * Makefile.in: Update copyright.
33809 2013-01-12  Tom de Vries  <tom@codesourcery.com>
33811         PR middle-end/55890
33812         * calls.c (expand_call): Check if arg_nr is valid.
33814 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
33816         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
33817         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
33818         documentation.  Add missing '__' in front of
33819         __builtin_ia32_packssdw256.
33821 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33823         PR target/55719
33824         * config/s390/s390.c (s390_preferred_reload_class): Do not return
33825         NO_REGS for larl operands.
33826         (s390_reload_larl_operand): Use s390_load_address instead of
33827         emit_move_insn.
33829 2013-01-11  Richard Biener  <rguenther@suse.de>
33831         * tree-cfg.c (verify_node_sharing_1): Split out from ...
33832         (verify_node_sharing): ... here.
33833         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
33835 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
33837         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
33838         Substitute TREECHECKING.
33839         * configure: Regenerate.
33840         * Makefile.in (TREECHECKING): New.
33842 2013-01-11  Richard Guenther  <rguenther@suse.de>
33844         PR tree-optimization/44061
33845         * tree-vrp.c (extract_range_basic): Compute zero as
33846         value-range for __builtin_constant_p of function parameters.
33848 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
33850         Update copyright years.
33852 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
33854         PR rtl-optimization/55672
33855         * lra-eliminations.c (mark_not_eliminable): Permit addition with
33856         const to be eliminable.
33858 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
33860         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
33861         * configure: Regenerate.
33863 2013-01-10  Richard Biener  <rguenther@suse.de>
33865         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
33867 2013-01-10  Richard Biener  <rguenther@suse.de>
33869         PR bootstrap/55792
33870         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
33871         locations for virtual PHI arguments.
33872         (rewrite_update_phi_arguments): Likewise.
33874 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
33876         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
33877         on to assembler.
33879 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
33881         PR tree-optimization/55921
33882         * tree-complex.c (expand_complex_asm): New function.
33883         (expand_complex_operations_1): Call it for GIMPLE_ASM.
33885 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33887         PR target/55718
33888         * config/s390/s390.c (s390_symref_operand_p)
33889         (s390_loadrelative_operand_p): Merge the two functions.
33890         (s390_check_qrst_address, print_operand_address): Add parameters
33891         to s390_loadrelative_operand_p invokation.
33892         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
33893         (s390_reload_larl_operand, s390_secondary_reload): Use
33894         s390_loadrelative_operand_p instead of s390_symref_operand_p.
33895         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
33897 2013-01-09  Mike Stump  <mikestump@comcast.net>
33899         * dse.c (record_store): Remove unnecessary assert.
33901 2013-01-09  Jan Hubicka  <jh@suse.cz>
33903         PR tree-optimization/55569
33904         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
33905         * cfgloop.h (scale_loop_profile): Likewise.
33907 2013-01-09  Jan Hubicka  <jh@suse.cz>
33909         PR lto/45375
33910         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
33911         functions.
33912         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
33914 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
33916         PR middle-end/55114
33917         * expr.h (maybe_emit_group_store): Declare.
33918         * expr.c (maybe_emit_group_store): New function.
33919         * builtins.c (expand_builtin_int_roundingfn): Call it.
33920         (expand_builtin_int_roundingfn_2): Likewise.
33922 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
33924         PR rtl-optimization/55829
33925         * lra-constraints.c (match_reload): Add code for absent output.
33926         (curr_insn_transform): Add code for reloads of matched inputs
33927         without output.
33929 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
33931         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
33932         attribute of movddup insn to DF.
33933         (*vec_interleave_lowv2df): Ditto.
33934         (vec_dupv2df): Ditto.
33936 2013-01-09  Jan Hubicka  <jh@suse.cz>
33938         PR tree-optimiation/55875
33939         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
33940         EVERY_ITERATION parameter.
33941         (number_of_iterations_exit): Check if exit is executed every iteration.
33942         (idx_infer_loop_bounds): Similarly here.
33943         (n_of_executions_at_most): Simplify
33944         to only test for cases where statement is dominated by the
33945         particular bound; handle correctly the "postdominance" test.
33946         (scev_probably_wraps_p): Use max loop iterations info
33947         as a global bound first.
33949 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
33950             Nick Clifton  <nickc@redhat.com>
33952         * config/v850/v850.md (cbranchsf4): New pattern.
33953         (cstoresf4): New pattern.
33954         (cbranchdf4): New pattern.
33955         (cstoredf4): New pattern.
33956         (movsicc): Disallow floating point comparisons.
33957         (cmpsf_le_insn): Fix order of operators.
33958         (cmpsf_lt_insn): Likewise.
33959         (cmpsf_eq_insn): Likewise.
33960         (cmpdf_le_insn): Likewise.
33961         (cmpdf_lt_insn): Likewise.
33962         (cmpdf_eq_insn): Likewise.
33963         (cmpsf_ge_insn): Use LE comparison.
33964         (cmpdf_ge_insn): Likewise.
33965         (cmpsf_gt_insn): Use LT comparison.
33966         (cmpdf_gt_insn): Likewise.
33967         (cmpsf_ne_insn): Delete pattern.
33968         (cmpdf_ne_insn): Delete pattern.
33969         * config/v850/v850.c (v850_gen_float_compare): Use
33970         gen_cmpdf_eq_insn for NE comparison.
33971         (v850_float_z_comparison_operator)
33972         (v850_float_nz_comparison_operator): Move from here ...
33973         * config/v850/predicates.md: ... to here.  Move GT and GE
33974         comparisons into v850_float_z_comparison_operator.
33975         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
33976         Delete prototype.
33977         (v850_float_nz_comparison_operator): Likewise.
33979 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33981         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
33982         with calls to gen_insvsi/gen_insvdi.
33984 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
33986         * config/i386/i386.c (initial_ix86_tune_features): Set up
33987         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
33989 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
33990             Jakub Jelinek  <jakub@redhat.com>
33992         PR tree-optimization/48189
33993         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
33994         If nitercst is 0, don't predict the exit edge.
33996 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
33998         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
33999         in asm_fprintf with reg_names.
34000         (aarch64_print_operand_address): Likewise.
34001         (aarch64_return_addr): Likewise.
34002         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
34004 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34006         * config/pa/pa.h (VAL_U6_BITS_P): Define.
34007         (INT_U6_BITS): Likewise.
34008         * config/pa/predicates.md (uint6_operand): New predicate.
34009         (shift5_operand, shift6_operand): Likewise.
34010         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
34011         arith32_operand.
34012         (lshrdi3): Use shift6_operand.
34013         (shrpsi4, shrpdi4): New insn patterns.
34014         (extzv): Delete expander.
34015         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
34016         predicates in unamed zero extract patterns.  Tighten common constraint.
34017         (extv): Delete expander.
34018         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
34019         predicates in unamed sign extract patterns.  Tighten common constraint.
34020         (insv): Delete expander.
34021         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
34022         predicates in unamed insert patterns.  Tighten common constraint.
34023         Change uint32_operand predicate to uint6_operand predicate in unamed
34024         DImode pattern to insert constant values of type 1...1xxxx.
34026 2013-01-04  Jan Hubicka  <jh@suse.cz>
34028         PR tree-optimization/55823
34029         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
34030         issue.
34032 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
34033             Uros Bizjak  <ubizjak@gmail.com>
34035         PR rtl-optimization/55845
34036         * df-problems.c (can_move_insns_across): Stop scanning at
34037         volatile_insn_p source instruction or give up if
34038         across_from .. across_to range contains any volatile_insn_p
34039         instructions.
34041 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
34043         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
34044         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
34045         Declare.
34046         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
34047         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
34049 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
34051         PR fortran/55341
34052         * asan.c (asan_clear_shadow): New function.
34053         (asan_emit_stack_protection): Use it.
34055 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
34057         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
34058         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
34059         with tab instead of space.
34061 2013-01-08  Nick Clifton  <nickc@redhat.com>
34063         * config/rl78/rl78.c (rl78_expand_prologue): Always select
34064         register bank 0 at the start of an interrupt handler.
34065         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
34066         MDBH registers.
34068 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
34070         * config/aarch64/aarch64-simd.md
34071         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
34072         (aarch64_simd_bsl): Likewise.
34073         (aarch64_vcond_internal<mode>): Likewise.
34074         (vcond<mode><mode>): Likewise.
34075         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
34076         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
34078 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
34080         * config/aarch64/aarch64-builtins.c
34081         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
34083 2013-01-08  Martin Jambor  <mjambor@suse.cz>
34085         PR debug/55579
34086         * tree-sra.c (analyze_access_subtree): Return true also after
34087         potentially creating a debug-only replacement.
34089 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
34091         PR middle-end/55890
34092         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
34094         PR tree-optimization/54120
34095         * tree-vrp.c (range_fits_type_p): Don't allow
34096         src_precision < precision from signed vr to unsigned_p
34097         if vr->min or vr->max is negative.
34098         (simplify_float_conversion_using_ranges): Test can_float_p
34099         against CODE_FOR_nothing.
34101 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
34102             Richard Biener  <rguenther@suse.de>
34104         PR middle-end/55851
34105         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
34106         types instead of just INTEGER_TYPE types.
34108 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
34110         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
34111         TF_SIZE): Define.
34113 2013-01-07  Steve Ellcey  <sellcey@mips.com>
34115         PR target/42661
34116         * config/mips/mips.opt: Change mad to mmad to match documentation.
34118 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
34120         PR target/55897
34121         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
34122         .progmemx.data now.
34124 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
34126         PR target/55897
34127         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
34128         (avr_addrspace_t): Add .section_name field.
34129         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
34130         array size.
34131         (avr_addrspace): Same.  Initialize .section_name.  Remove last
34132         NULL entry.  Put __memx into .progmemx.data.
34133         (progmem_section_prefix): Remove.
34134         (avr_asm_init_sections): No need to initialize progmem_section.
34135         (avr_asm_named_section): Use avr_addrspace[].section_name to get
34136         section name prefix.
34137         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
34138         retrieve the progmem section.
34139         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
34140         boundary to run over avr_addrspace[].
34141         (avr_register_target_pragmas): Ditto.
34143 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
34145         * varasm.c (output_constant_def_contents): For asan_protect_global
34146         protected strings, adjust DECL_ALIGN if needed, before testing for
34147         anchored symbols.
34148         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
34149         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
34150         normal decls.
34151         (output_object_block): For asan protected decls, emit asan padding
34152         after their contents.
34153         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
34154         (asan_finish_file): Test it here instead.
34156 2013-01-07  Nick Clifton  <nickc@redhat.com>
34157             Matthias Klose  <doko@debian.org>
34158             Doug Kwan  <dougkwan@google.com>
34159             H.J. Lu  <hongjiu.lu@intel.com>
34161         PR driver/55470
34162         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
34164         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
34166         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
34168         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
34170         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
34172 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
34174         PR target/54461
34175         * doc/install.texi (Cross-Compiler-Specific Options): Document
34176         --with-avrlibc.
34178 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
34180         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
34181         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
34182         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
34183         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
34184         vqmovun_high_s64): Fix source operand number and update copyright.
34186 2013-01-07  Richard Biener  <rguenther@suse.de>
34188         PR middle-end/55890
34189         * gimple.h (gimple_call_builtin_p): New overload.
34190         * gimple.c (validate_call): New function.
34191         (gimple_call_builtin_p): Likewise.
34192         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
34193         Use gimple_call_builtin_p.
34194         (find_func_clobbers): Likewise.
34195         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
34196         (strlen_optimize_stmt): Likewise.
34198 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
34200         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
34201         (vld1q_dup_*): Likewise.
34202         (vld1_*): Likewise.
34203         (vld1q_*): Likewise.
34204         (vld1_lane_*): Likewise.
34205         (vld1q_lane_*): Likewise.
34207 2013-01-07  Richard Biener  <rguenther@suse.de>
34209         * lto-streamer.h (LTO_minor_version): Bump to 2.
34211 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
34213         * config/aarch64/aarch64-protos.h
34214         (aarch64_const_double_zero_rtx_p): Rename to...
34215         (aarch64_float_const_zero_rtx_p): ...this.
34216         (aarch64_float_const_representable_p): New.
34217         (aarch64_output_simd_mov_immediate): Likewise.
34218         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
34219         move immediate case.
34220         * config/aarch64/aarch64.c
34221         (aarch64_const_double_zero_rtx_p): Rename to...
34222         (aarch64_float_const_zero_rtx_p): ...this.
34223         (aarch64_print_operand): Allow printing of new constants.
34224         (aarch64_valid_floating_const): New.
34225         (aarch64_legitimate_constant_p): Check for valid floating-point
34226         constants.
34227         (aarch64_simd_valid_immediate): Likewise.
34228         (aarch64_vect_float_const_representable_p): New.
34229         (aarch64_float_const_representable_p): Likewise.
34230         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
34231         (aarch64_output_simd_mov_immediate): New.
34232         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
34233         (*movdf_aarch64): Likewise.
34234         * config/aarch64/constraints.md (Ufc): New.
34235         (Y): call aarch64_float_const_zero_rtx.
34236         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
34238 2013-01-07  Richard Biener  <rguenther@suse.de>
34240         PR tree-optimization/55888
34241         PR tree-optimization/55862
34242         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
34243         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
34244         not if it is contained therein.
34246 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
34248         * config/avr/t-avr: Typo.
34250 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
34252         PR55243
34253         * config/avr/t-avr: Don't automatically rebuild
34254         $(srcdir)/config/avr/t-multilib
34255         $(srcdir)/config/avr/avr-tables.opt
34256         $(srcdir)/doc/avr-mmcu.texi
34257         (avr-mcus): New phony target to build them on request.
34258         (s-avr-mlib, s-avr-mmcu-texi): Remove.
34259         * avr/avr-mcus.def: Adjust comments.
34261 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
34263         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
34265 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
34267         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
34269 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
34271         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
34273 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
34275         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
34276         to generate profiling.
34277         * config/rs6000/aix64.h (LIB_SPEC): Same.
34279 2013-01-04  Andrew Pinski  <apinski@cavium.com>
34281         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
34282         New function.
34283         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
34285 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
34287         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
34288         unconditionally.
34289         (ix86_expand_move): Ditto.
34290         (ix86_zero_extend_to_Pmode): Ditto.
34291         (ix86_expand_call): Ditto.
34292         (ix86_expand_special_args_builtin): Ditto.
34293         (ix86_expand_builtin): Ditto.
34295 2013-01-04  Richard Biener  <rguenther@suse.de>
34297         PR tree-optimization/55862
34298         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
34299         translating them through PHI nodes.
34301 2013-01-04  Martin Jambor  <mjambor@suse.cz>
34303         PR tree-optimization/55755
34304         * tree-sra.c (sra_modify_assign): Do not check that an access has no
34305         children when trying to avoid producing a VIEW_CONVERT_EXPR.
34307 2013-01-04  Marek Polacek  <polacek@redhat.com>
34309         PR middle-end/55859
34310         * opts.c (default_options_optimization): Clarify error message.
34312 2013-01-04  Richard Biener  <rguenther@suse.de>
34314         PR middle-end/55863
34315         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
34316         reassociation.
34318 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34320         PR target/53789
34321         * config/pa/pa.md (movsi): Revert previous change.
34322         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
34323         references.
34325 2013-01-03  Richard Henderson  <rth@redhat.com>
34327         * config/i386/i386.c (ix86_expand_move): Always assign to op1
34328         after eliminating TLS symbols.
34330 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
34332         PR bootstrap/50167
34333         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
34334         * graphite-poly.c (debug_gmp_value): Likewise.
34336 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
34338         PR target/55712
34339         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
34340         selected code model, define __code_mode_small__, __code_model_medium__,
34341         __code_model_large__, __code_model_32__ or __code_model_kernel__.
34342         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
34343         xchg temporary register with %k.  Declare temporary register as
34344         early clobbered.
34345         [__x86_64__]: For medium and large code models, preserve %rbx register.
34347 2013-01-03  Richard Biener  <rguenther@suse.de>
34349         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
34350         (dump_subscript): Adjust.
34351         (finalize_ddr_dependent): Do not dump redundant info.
34352         (analyze_siv_subscript): Adjust.
34353         (subscript_dependence_tester): Likewise.
34354         (compute_affine_dependence): Likewise.
34356 2013-01-03  Richard Biener  <rguenther@suse.de>
34358         Revert
34359         2013-01-03  Richard Biener  <rguenther@suse.de>
34361         PR tree-optimization/55857
34362         * tree-vect-stmts.c (vectorizable_load): Do not setup
34363         re-alignment for invariant loads.
34365         2013-01-02  Richard Biener  <rguenther@suse.de>
34367         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
34368         invariant load do not generate a vector load from the scalar location.
34370 2013-01-03  Richard Biener  <rguenther@suse.de>
34372         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
34373         for not vectorizing.
34374         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
34375         not build INDIRECT_REFs, call get_name once only.
34376         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
34377         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
34379 2013-01-03  Richard Biener  <rguenther@suse.de>
34381         PR tree-optimization/55857
34382         * tree-vect-stmts.c (vectorizable_load): Do not setup
34383         re-alignment for invariant loads.
34385 2013-01-03  Richard Biener  <rguenther@suse.de>
34387         PR lto/55848
34388         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
34389         prefer a built-in decl.
34391 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
34393         * gcc.c (process_command): Update copyright notice dates.
34394         * gcov.c (print_version): Likewise.
34395         * gcov-dump.c (print_version): Likewise.
34397         PR rtl-optimization/55838
34398         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
34399         iv0.step, iv1.step and step.
34401 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
34402             Marc Glisse  <marc.glisse@inria.fr>
34404         PR tree-optimization/55832
34405         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
34406         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
34407         integer_{one,zero}_node.
34409 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
34411         PR debug/54402
34412         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
34413         * var-tracking.c (reverse_op): Don't add reverse ops to
34414         VALUEs that have already
34415         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
34417 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
34419         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
34421 2013-01-02  Teresa Johnson  <tejohnson@google.com>
34423         * dumpfile.c (dump_loc): Print filename with location.
34424         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
34425         new location_t parameter to emit complete unroll message with
34426         new dump framework.
34427         (canonicalize_loop_induction_variables): Compute loops location
34428         and pass to try_unroll_loop_completely.
34429         * loop-unroll.c (report_unroll_peel): New function.
34430         (peel_loops_completely): Use new dump format with location
34431         for main dumpfile message, and invoke report_unroll_peel on success.
34432         (decide_unrolling_and_peeling): Ditto.
34433         (decide_peel_once_rolling): Remove old dumpfile message subsumed
34434         by report_unroll_peel.
34435         (decide_peel_completely): Ditto.
34436         (decide_unroll_constant_iterations): Ditto.
34437         (decide_unroll_runtime_iterations): Ditto.
34438         (decide_peel_simple): Ditto.
34439         (decide_unroll_stupid): Ditto.
34440         * cfgloop.c (get_loop_location): New function.
34441         * cfgloop.h (get_loop_location): Declare.
34443 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
34445         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
34446         NULL.
34448 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34450         PR middle-end/55198
34451         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
34452         BLKmode objects when EXPAND_MEMORY is specified.
34454 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
34456         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
34457         in loop predicate.
34458         (fold_builtin_cpu): Do not share cpu model decls across statements.
34460 2013-01-02  Jason Merrill  <jason@redhat.com>
34462         PR c++/55804
34463         * tree.c (build_array_type_1): Revert earlier change.
34465 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
34467         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
34468         "cortex-a57".
34469         * config/aarch64/aarch64-tune.md: Re-generate.
34471 2013-01-02  Richard Biener  <rguenther@suse.de>
34473         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
34474         invariant load do not generate a vector load from the scalar location.
34476 2013-01-02  Richard Biener  <rguenther@suse.de>
34478         PR bootstrap/55784
34479         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
34480         * configure: Regenerate.
34482 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
34484         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
34485         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
34486         (expand_builtin_int_roundingfn_2): Keep the original target around
34487         for the fallback case.
34489 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
34491         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
34492         to be clear for sign changes.
34494 2013-01-01  Jan Hubicka  <jh@suse.cz>
34496         * ipa-inline-analysis.c: Fix formatting.
34498 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
34500         PR tree-optimization/55831
34501         * tree-vect-loop.c (get_initial_def_for_induction): Use
34502         gsi_after_labels instead of gsi_start_bb.
34504 Copyright (C) 2013 Free Software Foundation, Inc.
34506 Copying and distribution of this file, with or without modification,
34507 are permitted in any medium without royalty provided the copyright
34508 notice and this notice are preserved.