* config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
[official-gcc.git] / gcc / ChangeLog
blob1951ea9e41dad678c460ba027b0b475f13cf20b0
1 2013-10-30  DJ Delorie  <dj@redhat.com>
3         * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
4         that take no arguments.
6 2013-10-30  Joern Rennecke  <joern.rennecke@embecosm.com>
8         PR other/58545
9         * reload1.c (update_eliminables_and_spill): New function, broken
10         out of reload.
11         (reload): Use it.  Check for frame size change after frame
12         size alignment, and call update_eliminables_and_spill first
13         if continue-ing.
15 2013-10-30  Cong Hou  <congh@google.com>
17         PR target/58762
18         * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
19         * config/i386/i386.c (ix86_expand_sse2_abs): New function.
20         * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
22 2013-10-18  Mikael Pettersson  <mikpelinux@gmail.com>
24         PR rtl-optimization/58369
25         * reload1.c (compute_reload_subreg_offset): New function.
26         (choose_reload_regs): Use it to pass endian-correct
27         offset to subreg_regno_offset.
29 2013-10-30  Tobias Burnus  <burnus@net-b.de>
31         PR other/33426
32         * gcc/tree-cfg.c (replace_loop_annotate): Replace warning by
33         warning_at.
35 2013-10-30  Jason Merrill  <jason@redhat.com>
37         * configure.ac (loose_warn): Add -Wno-format if
38         --disable-build-format-warnings.
40 2013-10-30  David Malcolm  <dmalcolm@redhat.com>
42         * cgraphunit.c (analyze_functions): Split symtab_node
43         declarations onto multiple lines to make things easier
44         for rename_symtab.py.
46         * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
47         (symtab_semantically_equivalent_p): Likewise.
49 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
51         PR target/58784
52         * lra.c (check_rtl): Remove address check before LRA work.
54 2013-10-30  Marc Glisse  <marc.glisse@inria.fr>
56         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
57         POINTER_PLUS_EXPR in the defining statement.
59 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
61         * regmove.c: Remove.
62         * tree-pass.h (make_pass_regmove): Remove.
63         * timevar.def (TV_REGMOVE): Remove.
64         * passes.def (pass_regmove): Remove.
65         * opts.c (default_options_table): Remove entry for regmove.
66         * doc/passes.texi: Remove regmove pass description.
67         * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
68         options.
69         (-fdump-rtl-regmove): Ditto.
70         * common.opt (foptimize-register-move, fregmove): Ignore.
71         * Makefile.in (OBJS): Remove regmove.o.
72         * regmove.c: Remove.
73         * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
74         and type.
75         (struct ira_allocno) New member allocno_prefs.
76         (ALLOCNO_PREFS): New macro.
77         (ira_prefs, ira_prefs_num): New external vars.
78         (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New
79         prototypes.
80         (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref):
81         Ditto.
82         (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
83         Ditto.
84         (ira_add_allocno_copy_to_list): Remove prototype.
85         (ira_swap_allocno_copy_ends_if_necessary): Ditto.
86         (ira_pref_iterator): New type.
87         (ira_pref_iter_init, ira_pref_iter_cond): New functions.
88         (FOR_EACH_PREF): New macro.
89         * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
90         (ira_get_dup_out_num): Ditto. Rename from get_dup_num.  Modify the
91         code.
92         (ira_setup_alts): New function.
93         (decrease_live_ranges_number): New function.
94         (ira): Call the above function.
95         * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
96         (ira_create_allocno): Initialize allocno prefs.
97         (pref_pool, pref_vec): New static vars.
98         (initiate_prefs, find_allocno_pref, ira_create_pref): New
99         functions.
100         (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
101         (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
102         (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
103         (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
104         (ira_add_allocno_copy_to_list): Make static.  Rename to
105         add_allocno_copy_to_list.
106         (ira_swap_allocno_copy_ends_if_necessary): Make static.  Rename to
107         swap_allocno_copy_ends_if_necessary.
108         (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
109         ira_remove_allocno_prefs.
110         (ira_flattening): Ditto.
111         (ira_build): Call initiate_prefs, print_prefs.
112         (ira_destroy): Call finish_prefs.
113         * ira-color.c (struct update_cost_record): New.
114         (struct allocno_color_data): Add new member update_cost_records.
115         (update_cost_record_pool): New static var.
116         (init_update_cost_records, get_update_cost_record): New functions.
117         (free_update_cost_record_list, finish_update_cost_records): Ditto.
118         (struct update_cost_queue_elem): Add member from.
119         (initiate_cost_update): Call init_update_cost_records.
120         (finish_cost_update): Call finish_update_cost_records.
121         (queue_update_cost, get_next_update_cost): Add new param from.
122         (Update_allocno_cost, update_costs_from_allocno): New functions.
123         (update_costs_from_prefs): Ditto.
124         (update_copy_costs): Rename to update_costs_from_copies.
125         (restore_costs_from_copies): New function.
126         (update_conflict_hard_regno_costs): Don't go back.
127         (assign_hard_reg): Call restore_costs_from_copies.  Add printing
128         more debug info.
129         (pop_allocnos): Add priniting more debug info.
130         (color_allocnos): Remove prefs for conflicting hard regs.
131         Call update_costs_from_prefs.
132         * ira-conflicts.c (commutative_constraint_p): Move to ira.c
133         (get_dup_num): Rename, modify, and move to ira.c
134         (process_regs_for_copy): Add prefs.
135         (add_insn_allocno_copies): Put src as first arg of
136         process_regs_for_copy.  Remove dead code.  Call ira_setup_alts.
137         * ira-costs.c (record_reg_classes): Modify and move code into
138         record_operands_costs.
139         (find_costs_and_classes): Create prefs for the hard reg of small
140         reg class.
141         (process_bb_node_for_hard_reg_moves): Add prefs.
143 2013-10-30  Richard Biener  <rguenther@suse.de>
145         PR middle-end/57100
146         * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
147         * cfganal.c (pre_and_rev_post_order_compute_fn): New function
148         as worker for ...
149         (pre_and_rev_post_order_compute): ... which now wraps it.
150         * graph.c (draw_cfg_nodes_no_loops): Use
151         pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
152         on cfun.
154 2013-10-30  Christian Bruel  <christian.bruel@st.com>
156         * gcc/config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
157         (sh_expand_cmpstr): Handle known align and schedule improvements.
158         * gcc/config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
159         * gcc/config/sh/sh.md (cmpstrnsi): New pattern.
161 2013-10-30  Martin Jambor  <mjambor@suse.cz>
163         PR rtl-optimization/10474
164         * ira.c (find_moveable_pseudos): Do not calculate dominance info
165         nor df analysis.
166         (interesting_dest_for_shprep): New function.
167         (split_live_ranges_for_shrink_wrap): Likewise.
168         (ira): Calculate dominance info and df analysis. Call
169         split_live_ranges_for_shrink_wrap.
171 2013-10-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
173         PR target/58854
174         * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
176 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
178         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
179         * tree.h (POINTER_BOUNDS_P): New.
180         (BOUNDED_TYPE_P): New.
181         (BOUNDED_P): New.
182         (pointer_bounds_type_node): New.
183         * tree.c (build_common_tree_nodes): Initialize
184         pointer_bounds_type_node.
185         * gimple.h (gimple_call_get_nobnd_arg_index): New.
186         (gimple_call_num_nobnd_args): New.
187         (gimple_call_nobnd_arg): New.
188         (gimple_return_retbnd): New.
189         (gimple_return_set_retbnd): New
190         * gimple.c (gimple_build_return): Increase number of ops
191         for return statement.
192         (gimple_call_get_nobnd_arg_index): New.
193         * gimple-pretty-print.c (dump_gimple_return): Print second op.
195 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
197         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
198         with "chkp ctor" and "bnd_legacy" attributes.
199         * gimplify.c (gimplify_init_constructor): Avoid infinite
200         loop during gimplification of bounds initializer.
202 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
204         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
205         (handle_bnd_legacy): New.
206         (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
207         * doc/extend.texi: Document bnd_variable_size and bnd_legacy
208         attributes.
210 2013-10-29  Ilya Enkovich  <ilya.enkovich@intel.com>
212         * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
213         (BT_FN_PTR_CONST_PTR): New.
214         (BT_FN_CONST_PTR_CONST_PTR): New.
215         (BT_FN_PTR_CONST_PTR_SIZE): New.
216         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
217         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
218         (BT_FN_VOID_CONST_PTR_SIZE): New.
219         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
220         * chkp-builtins.def: New.
221         * builtins.def: include chkp-builtins.def.
222         (DEF_CHKP_BUILTIN): New.
223         * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
224         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
225         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
226         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
227         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
228         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
229         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
230         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
231         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
232         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
233         * common.opt (fcheck-pointer-bounds): New.
234         * toplev.c (process_options): Check Pointer Bounds Checker is supported.
235         * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
237 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
239         * target.def (builtin_chkp_function): New.
240         (chkp_bound_type): New.
241         (chkp_bound_mode): New.
242         (fn_abi_va_list_bounds_size): New.
243         (load_bounds_for_arg): New.
244         (store_bounds_for_arg): New.
245         * targhooks.h (default_load_bounds_for_arg): New.
246         (default_store_bounds_for_arg): New.
247         (default_fn_abi_va_list_bounds_size): New.
248         (default_chkp_bound_type): New.
249         (default_chkp_bound_mode): New.
250         (default_builtin_chkp_function): New.
251         * targhooks.c (default_load_bounds_for_arg): New.
252         (default_store_bounds_for_arg): New.
253         (default_fn_abi_va_list_bounds_size): New.
254         (default_chkp_bound_type): New.
255         (default_chkp_bound_mode); New.
256         (default_builtin_chkp_function): New.
257         * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
258         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
259         (TARGET_STORE_BOUNDS_FOR_ARG): New.
260         (TARGET_BUILTIN_CHKP_FUNCTION): New.
261         (TARGET_CHKP_BOUND_TYPE): New.
262         (TARGET_CHKP_BOUND_MODE): New.
263         * doc/tm.texi: Regenerated.
264         * langhooks.h (lang_hooks): Add chkp_supported field.
265         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
266         (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
268 2013-10-29  Andrew Pinski <apinski@cavium.com>
270         * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
271         (ifcombine_ifandif): Handle cases where
272         maybe_fold_and_comparisons fails, combining the branches
273         anyways.
274         (tree_ssa_ifcombine): Inverse the order of
275         the basic block walk, increases the number of combinings.
276         * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
278 2013-10-29  Mike Stump  <mikestump@comcast.net>
280         * machmode.def (PARTIAL_INT_MODE): Add precision and name.
281         * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
282         (make_vector_mode): Increase namebuf to 16.
283         (emit_insn_modes_h): When processing BImode, don't
284         also match partial int modes.
285         (emit_class_narrowest_mode): Likewise.
287         * config/bfin/bfin-modes.def: Add precision to PDI.
288         * config/m32c/m32c-modes.def: Add precision to PSI.
289         * config/msp430/msp430-modes.def: Add precision to PSI.
290         * config/rs6000/rs6000-modes.def: Add precision to PTI.
291         * config/sh/sh-modes.def: Add precision to PSI and PDI.
293 2013-10-29  Oleg Endo  <olegendo@gcc.gnu.org>
295         PR target/54236
296         * config/sh/sh.md (*addc): Rename existing variations to ...
297         (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
298         (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
299         *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
300         * config/sh/sh.c (addsubcosts): Handle some addc special cases.
302 2013-10-29  Teresa Johnson  <tejohnson@google.com>
304         PR ipa/58862
305         * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
306         insanities when updating probabilities.
308 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
310         * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
311         prettyprinter for cgraph_node to reflect the conversion of the
312         symtable types to a C++ class hierarchy: it now *is* a
313         symtab_node_base, rather than having one (named "symbol").
315 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
317         * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
318         __cilkrts_pop_frame.  If matched, then return true for built-in
319         function name.
320         (expand_builtin): Added BUILT_IN_CILK_DETACH and
321         BUILT_IN_CILK_POP_FRAME case.
322         * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
323         (lhs_cilk_detect_spawn): Likewise.
324         (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
325         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
326         (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
327         (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
328         (LANG_HOOKS_CILKPLUS): Likewise.
329         * tree.h (CILK_SPAWN_FN): Likewise.
330         * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
331         * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
332         (OBJS): Added cilk-common.o.
333         (BUILTINS_DEF): Added cilk-builtins.def.
334         * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
335         (lhd_cilk_detect_spawn): Likewise.
336         * langhooks.h (lang_hooks_for_cilkplus): New struct.
337         (struct lang_hooks): Added new field called "cilkplus."
338         * cilk-common.c: New file.
339         * cilk.h: Likewise.
340         * cilk-builtins.def: Likewise.
341         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
342         "__cilk" macro and set it to 200.
343         * function.h (struct function::cilk_frame_decl): New field.
344         (struct function::is_cilk_function): Likewise.
345         (struct function::calls_cilk_spawn): Likewise.
346         * gimplify.c (gimplify_call_expr): Added a check if the function call
347         being gimplified is a spawn detach point.  If so, then add pop_frame
348         and detach function calls.
349         (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
350         for gimplifying _Cilk_spawn and _Cilk_sync statements.
351         (gimplify_return_expr): Added a check for _Cilk_spawn usage in
352         function.  If so, added a _Cilk_sync and gimplified it.
353         (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
354         INIT_EXPRs.  If so, then call gimplify_cilk_spawn.
355         * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
356         spawner function.
357         (can_inline_edge_p): Prevent inling of spawnee function.
358         * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
359         for functions that use Cilk keywords.
360         * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
361         * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
362         CILK_SYNC_STMT cases.
363         * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
364         trees.
365         * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
366         (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
367         * passes.texi (Cilk Keywords): New section that describes the compiler
368         code changes for handling Cilk Keywords.
369         
370 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
372         Patch autogenerated by refactor_symtab.py from
373         https://github.com/davidmalcolm/gcc-refactoring-scripts
374         revision 58bb219cc090b2f4516a9297d868c245495ee622
376         * asan.c (asan_finish_file): Update for conversion of symtab types to
377         a true class hierarchy.
378         * cfgexpand.c (estimated_stack_frame_size): Likewise.
379         * cgraph.c (cgraph_get_body): Likewise.
380         (cgraph_get_create_real_symbol_node): Likewise.
381         (verify_cgraph_node): Likewise.
382         (verify_edge_corresponds_to_fndecl): Likewise.
383         (verify_edge_count_and_frequency): Likewise.
384         (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
385         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
386         (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
387         (cgraph_node_cannot_return): Likewise.
388         (cgraph_set_pure_flag_1): Likewise.
389         (cgraph_set_const_flag_1): Likewise.
390         (cgraph_set_nothrow_flag_1): Likewise.
391         (cgraph_make_node_local_1): Likewise.
392         (cgraph_for_node_and_aliases): Likewise.
393         (cgraph_for_node_thunks_and_aliases): Likewise.
394         (cgraph_node_can_be_local_p): Likewise.
395         (cgraph_node_cannot_be_local_p_1): Likewise.
396         (cgraph_function_body_availability): Likewise.
397         (dump_cgraph_node): Likewise.
398         (cgraph_rtl_info): Likewise.
399         (cgraph_mark_address_taken_node): Likewise.
400         (cgraph_remove_node): Likewise.
401         (cgraph_release_function_body): Likewise.
402         (cgraph_update_edges_for_call_stmt_node): Likewise.
403         (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
404         (cgraph_make_edge_direct): Likewise.
405         (cgraph_resolve_speculation): Likewise.
406         (cgraph_speculative_call_info): Likewise.
407         (cgraph_turn_edge_to_speculative): Likewise.
408         (cgraph_create_edge_1): Likewise.
409         (cgraph_set_call_stmt): Likewise.
410         (cgraph_node_for_asm): Likewise.
411         (cgraph_add_thunk): Likewise.
412         (cgraph_same_body_alias): Likewise.
413         (cgraph_create_function_alias): Likewise.
414         (cgraph_create_node): Likewise.
415         (cgraph_create_empty_node): Likewise.
416         (record_function_versions): Likewise.
417         (used_from_object_file_p): Likewise.
418         * cgraph.h (symtab_can_be_discarded): Likewise.
419         (symtab_real_symbol_p): Likewise.
420         (cgraph_mark_force_output_node): Likewise.
421         (cgraph_edge_recursive_p): Likewise.
422         (symtab_alias_target): Likewise.
423         (varpool_all_refs_explicit_p): Likewise.
424         (varpool_can_remove_if_no_refs): Likewise.
425         (cgraph_only_called_directly_or_aliased_p): Likewise.
426         (cgraph_next_function_with_gimple_body): Likewise.
427         (cgraph_first_function_with_gimple_body): Likewise.
428         (cgraph_function_with_gimple_body_p): Likewise.
429         (cgraph_next_function): Likewise.
430         (cgraph_first_function): Likewise.
431         (cgraph_next_defined_function): Likewise.
432         (cgraph_first_defined_function): Likewise.
433         (varpool_next_defined_variable): Likewise.
434         (varpool_first_defined_variable): Likewise.
435         (varpool_next_static_initializer): Likewise.
436         (varpool_first_static_initializer): Likewise.
437         (varpool_next_variable): Likewise.
438         (varpool_first_variable): Likewise.
439         (varpool_node_name): Likewise.
440         (varpool): Likewise.
441         (cgraph): Likewise.
442         (is_a_helper <varpool_node>::test): Likewise.
443         (is_a_helper <cgraph_node>::test): Likewise.
444         (varpool_variable_node): Likewise.
445         (cgraph_function_or_thunk_node): Likewise.
446         (varpool_alias_target): Likewise.
447         (cgraph_alias_target): Likewise.
448         (cgraph_node_name): Likewise.
449         (varpool_node_asm_name): Likewise.
450         (cgraph_node_asm_name): Likewise.
451         * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
452         (cgraph_rebuild_references): Likewise.
453         (rebuild_cgraph_edges): Likewise.
454         (record_eh_tables): Likewise.
455         (build_cgraph_edges): Likewise.
456         (mark_store): Likewise.
457         (mark_load): Likewise.
458         (mark_address): Likewise.
459         (record_type_list): Likewise.
460         (record_reference): Likewise.
461         * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
462         (cgraph_materialize_clone): Likewise.
463         (cgraph_function_versioning): Likewise.
464         (cgraph_copy_node_for_versioning): Likewise.
465         (update_call_expr): Likewise.
466         (cgraph_find_replacement_node): Likewise.
467         (cgraph_create_virtual_clone): Likewise.
468         (cgraph_clone_node): Likewise.
469         * cgraphunit.c (compile): Likewise.
470         (output_weakrefs): Likewise.
471         (output_in_order): Likewise.
472         (expand_function): Likewise.
473         (assemble_thunks_and_aliases): Likewise.
474         (expand_thunk): Likewise.
475         (mark_functions_to_output): Likewise.
476         (handle_alias_pairs): Likewise.
477         (analyze_functions): Likewise.
478         (walk_polymorphic_call_targets): Likewise.
479         (varpool_finalize_decl): Likewise.
480         (process_function_and_variable_attributes): Likewise.
481         (cgraph_process_same_body_aliases): Likewise.
482         (analyze_function): Likewise.
483         (cgraph_add_new_function): Likewise.
484         (cgraph_finalize_function): Likewise.
485         (referred_to_p): Likewise.
486         (cgraph_reset_node): Likewise.
487         (cgraph_process_new_functions): Likewise.
488         (enqueue_node): Likewise.
489         (decide_is_symbol_needed): Likewise.
490         * coverage.c (coverage_compute_profile_id): Likewise.
491         * dbxout.c (dbxout_expand_expr): Likewise.
492         * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
493         (reference_to_unused): Likewise.
494         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
495         * gimplify.c (unvisit_body): Likewise.
496         (unshare_body): Likewise.
497         * ipa-cp.c (ipcp_generate_summary): Likewise.
498         (ipcp_decision_stage): Likewise.
499         (identify_dead_nodes): Likewise.
500         (decide_whether_version_node): Likewise.
501         (decide_about_value): Likewise.
502         (perhaps_add_new_callers): Likewise.
503         (create_specialized_node): Likewise.
504         (update_profiling_info): Likewise.
505         (ipcp_propagate_stage): Likewise.
506         (estimate_local_effects): Likewise.
507         (good_cloning_opportunity_p): Likewise.
508         (devirtualization_time_bonus): Likewise.
509         (propagate_constants_accross_call): Likewise.
510         (initialize_node_lattices): Likewise.
511         (ipcp_cloning_candidate_p): Likewise.
512         (determine_versionability): Likewise.
513         (print_all_lattices): Likewise.
514         (print_lattice): Likewise.
515         (ipcp_discover_new_direct_edges): Likewise.
516         * ipa-devirt.c (ipa_devirt): Likewise.
517         (likely_target_p): Likewise.
518         (update_type_inheritance_graph): Likewise.
519         (possible_polymorphic_call_target_p): Likewise.
520         (dump_possible_polymorphic_call_targets): Likewise.
521         (devirt_variable_node_removal_hook): Likewise.
522         (record_binfo): Likewise.
523         (maybe_record_node): Likewise.
524         (build_type_inheritance_graph): Likewise.
525         * ipa-inline-analysis.c (inline_write_summary): Likewise.
526         (inline_generate_summary): Likewise.
527         (inline_analyze_function): Likewise.
528         (do_estimate_growth): Likewise.
529         (simple_edge_hints): Likewise.
530         (estimate_node_size_and_time): Likewise.
531         (estimate_edge_devirt_benefit): Likewise.
532         (compute_inline_parameters): Likewise.
533         (estimate_function_body_sizes): Likewise.
534         (compute_bb_predicates): Likewise.
535         (initialize_inline_failed): Likewise.
536         (dump_inline_summary): Likewise.
537         (dump_inline_edge_summary): Likewise.
538         * ipa-inline-transform.c (inline_transform): Likewise.
539         (preserve_function_body_p): Likewise.
540         (save_inline_function_body): Likewise.
541         (inline_call): Likewise.
542         (clone_inlined_nodes): Likewise.
543         (can_remove_node_now_p): Likewise.
544         (can_remove_node_now_p_1): Likewise.
545         * ipa-inline.c (early_inliner): Likewise.
546         (early_inline_small_functions): Likewise.
547         (inline_always_inline_functions): Likewise.
548         (ipa_inline): Likewise.
549         (flatten_function): Likewise.
550         (inline_small_functions): Likewise.
551         (speculation_useful_p): Likewise.
552         (recursive_inlining): Likewise.
553         (update_caller_keys): Likewise.
554         (reset_edge_caches): Likewise.
555         (update_edge_key): Likewise.
556         (edge_badness): Likewise.
557         (relative_time_benefit): Likewise.
558         (want_inline_self_recursive_call_p): Likewise.
559         (want_inline_small_function_p): Likewise.
560         (want_early_inline_function_p): Likewise.
561         (num_calls): Likewise.
562         (can_early_inline_edge_p): Likewise.
563         (can_inline_edge_p): Likewise.
564         (report_inline_failed_reason): Likewise.
565         * ipa-profile.c (ipa_profile): Likewise.
566         (ipa_propagate_frequency): Likewise.
567         (ipa_propagate_frequency_1): Likewise.
568         (ipa_profile_generate_summary): Likewise.
569         * ipa-prop.c (ipcp_transform_function): Likewise.
570         (read_replacements_section): Likewise.
571         (ipa_prop_read_section): Likewise.
572         (ipa_modify_call_arguments): Likewise.
573         (ipa_print_node_params): Likewise.
574         (propagate_controlled_uses): Likewise.
575         (update_indirect_edges_after_inlining): Likewise.
576         (remove_described_reference): Likewise.
577         (ipa_make_edge_direct_to_target): Likewise.
578         (ipa_analyze_node): Likewise.
579         (ipa_analyze_params_uses): Likewise.
580         (ipa_compute_jump_functions): Likewise.
581         (ipa_get_callee_param_type): Likewise.
582         (ipa_print_node_jump_functions): Likewise.
583         (ipa_initialize_node_params): Likewise.
584         (ipa_populate_param_decls): Likewise.
585         (ipa_func_spec_opts_forbid_analysis_p): Likewise.
586         (write_agg_replacement_chain): Likewise.
587         (ipa_write_node_info): Likewise.
588         (ipa_edge_duplication_hook): Likewise.
589         (try_decrement_rdesc_refcount): Likewise.
590         * ipa-pure-const.c (propagate_nothrow): Likewise.
591         (propagate_pure_const): Likewise.
592         (pure_const_read_summary): Likewise.
593         (pure_const_write_summary): Likewise.
594         (analyze_function): Likewise.
595         * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
596         (ipa_ref_referring_ref_list): Likewise.
597         * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
598         (ipa_remove_stmt_references): Likewise.
599         (ipa_find_reference): Likewise.
600         (ipa_dump_referring): Likewise.
601         (ipa_dump_references): Likewise.
602         (ipa_record_reference): Likewise.
603         * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
604         (ipa_reference_write_optimization_summary): Likewise.
605         (write_node_summary_p): Likewise.
606         (propagate): Likewise.
607         (read_write_all_from_decl): Likewise.
608         (generate_summary): Likewise.
609         (analyze_function): Likewise.
610         (propagate_bits): Likewise.
611         (ipa_reference_get_not_written_global): Likewise.
612         (ipa_reference_get_not_read_global): Likewise.
613         * ipa-split.c (execute_split_functions): Likewise.
614         (split_function): Likewise.
615         * ipa-utils.c (ipa_merge_profiles): Likewise.
616         (dump_cgraph_node_set): Likewise.
617         (ipa_reverse_postorder): Likewise.
618         (ipa_edge_within_scc): Likewise.
619         (ipa_get_nodes_in_cycle): Likewise.
620         (ipa_free_postorder_info): Likewise.
621         (ipa_reduced_postorder): Likewise.
622         (searchc): Likewise.
623         (recursive_call_p): Likewise.
624         * ipa.c (ipa_cdtor_merge): Likewise.
625         (record_cdtor_fn): Likewise.
626         (function_and_variable_visibility): Likewise.
627         (varpool_externally_visible_p): Likewise.
628         (cgraph_externally_visible_p): Likewise.
629         (comdat_can_be_unshared_p): Likewise.
630         (comdat_can_be_unshared_p_1): Likewise.
631         (address_taken_from_non_vtable_p): Likewise.
632         (ipa_discover_readonly_nonaddressable_vars): Likewise.
633         (symtab_remove_unreachable_nodes): Likewise.
634         (walk_polymorphic_call_targets): Likewise.
635         (process_references): Likewise.
636         (enqueue_node): Likewise.
637         (has_addr_references_p): Likewise.
638         (cgraph_non_local_node_p_1): Likewise.
639         * is-a.h (varpool_analyze_node): Likewise.
640         * lto-cgraph.c (input_symtab): Likewise.
641         (merge_profile_summaries): Likewise.
642         (input_cgraph_1): Likewise.
643         (input_edge): Likewise.
644         (input_varpool_node): Likewise.
645         (input_node): Likewise.
646         (input_overwrite_node): Likewise.
647         (compute_ltrans_boundary): Likewise.
648         (output_refs): Likewise.
649         (lto_output_varpool_node): Likewise.
650         (lto_output_node): Likewise.
651         (reachable_from_other_partition_p): Likewise.
652         (referenced_from_other_partition_p): Likewise.
653         (lto_output_edge): Likewise.
654         (output_node_opt_summary): Likewise.
655         (add_node_to): Likewise.
656         (reachable_from_this_partition_p): Likewise.
657         (lto_set_symtab_encoder_in_partition): Likewise.
658         (lto_symtab_encoder_in_partition_p): Likewise.
659         (lto_set_symtab_encoder_encode_initializer): Likewise.
660         (lto_symtab_encoder_encode_initializer_p): Likewise.
661         (lto_set_symtab_encoder_encode_body): Likewise.
662         (lto_symtab_encoder_encode_body_p): Likewise.
663         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
664         Likewise.
665         * lto-streamer-in.c (lto_read_body): Likewise.
666         (fixup_call_stmt_edges): Likewise.
667         (fixup_call_stmt_edges_1): Likewise.
668         * lto-streamer-out.c (produce_symtab): Likewise.
669         (output_symbol_p): Likewise.
670         (write_symbol): Likewise.
671         (lto_output): Likewise.
672         (copy_function): Likewise.
673         (output_function): Likewise.
674         * passes.c (function_called_by_processed_nodes_p): Likewise.
675         (ipa_write_optimization_summaries): Likewise.
676         (ipa_write_summaries): Likewise.
677         (do_per_function_toporder): Likewise.
678         (do_per_function): Likewise.
679         (dump_passes): Likewise.
680         * symtab.c (symtab_semantically_equivalent_p): Likewise.
681         (symtab_nonoverwritable_alias): Likewise.
682         (symtab_nonoverwritable_alias_1): Likewise.
683         (symtab_for_node_and_aliases): Likewise.
684         (symtab_resolve_alias): Likewise.
685         (fixup_same_cpp_alias_visibility): Likewise.
686         (symtab_alias_ultimate_target): Likewise.
687         (symtab_used_from_object_file_p): Likewise.
688         (verify_symtab_base): Likewise.
689         (dump_symtab_base): Likewise.
690         (symtab_node_name): Likewise.
691         (symtab_node_asm_name): Likewise.
692         (symtab_dissolve_same_comdat_group_list): Likewise.
693         (symtab_add_to_same_comdat_group): Likewise.
694         (symtab_unregister_node): Likewise.
695         (symtab_insert_node_to_hashtable): Likewise.
696         (symtab_register_node): Likewise.
697         (unlink_from_assembler_name_hash): Likewise.
698         (insert_to_assembler_name_hash): Likewise.
699         (eq_assembler_name): Likewise.
700         (hash_node_by_assembler_name): Likewise.
701         (eq_node): Likewise.
702         (hash_node): Likewise.
703         * toplev.c (wrapup_global_declaration_2): Likewise.
704         * trans-mem.c (ipa_tm_execute): Likewise.
705         (ipa_tm_transform_clone): Likewise.
706         (ipa_tm_transform_transaction): Likewise.
707         (ipa_tm_transform_calls_redirect): Likewise.
708         (ipa_tm_insert_gettmclone_call): Likewise.
709         (ipa_tm_insert_irr_call): Likewise.
710         (ipa_tm_create_version): Likewise.
711         (ipa_tm_create_version_alias): Likewise.
712         (ipa_tm_mark_forced_by_abi_node): Likewise.
713         (ipa_tm_mark_force_output_node): Likewise.
714         (ipa_tm_diagnose_tm_safe): Likewise.
715         (ipa_tm_mayenterirr_function): Likewise.
716         (ipa_tm_scan_irr_function): Likewise.
717         (ipa_tm_note_irrevocable): Likewise.
718         (ipa_tm_scan_calls_clone): Likewise.
719         (get_cg_data): Likewise.
720         * tree-eh.c (tree_could_trap_p): Likewise.
721         * tree-emutls.c (ipa_lower_emutls): Likewise.
722         (create_emultls_var): Likewise.
723         (lower_emutls_function_body): Likewise.
724         (gen_emutls_addr): Likewise.
725         (emutls_decl): Likewise.
726         (new_emutls_decl): Likewise.
727         * tree-inline.c (tree_function_versioning): Likewise.
728         (optimize_inline_calls): Likewise.
729         (expand_call_inline): Likewise.
730         (estimate_num_insns): Likewise.
731         (copy_bb): Likewise.
732         (delete_unreachable_blocks_update_callgraph): Likewise.
733         * tree-nested.c (gimplify_all_functions): Likewise.
734         (create_nesting_tree): Likewise.
735         (check_for_nested_with_variably_modified): Likewise.
736         * tree-pretty-print.c (dump_function_header): Likewise.
737         * tree-profile.c (tree_profiling): Likewise.
738         * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
739         (modify_function): Likewise.
740         (convert_callers): Likewise.
741         (convert_callers_for_node): Likewise.
742         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
743         (associate_varinfo_to_alias): Likewise.
744         (create_variable_info_for): Likewise.
745         (get_constraint_for_ssa_var): Likewise.
746         * tree-vectorizer.c (increase_alignment): Likewise.
747         * tree.c (find_decls_types_in_var): Likewise.
748         (find_decls_types_in_node): Likewise.
749         (free_lang_data_in_decl): Likewise.
750         * value-prof.c (gimple_ic_transform): Likewise.
751         (gimple_ic): Likewise.
752         (check_ic_target): Likewise.
753         (init_node_map): Likewise.
754         * varasm.c (decl_binds_to_current_def_p): Likewise.
755         (default_binds_local_p_1): Likewise.
756         (dump_tm_clone_pairs): Likewise.
757         (assemble_alias): Likewise.
758         (find_decl): Likewise.
759         (mark_decl_referenced): Likewise.
760         * varpool.c (varpool_for_node_and_aliases): Likewise.
761         (varpool_extra_name_alias): Likewise.
762         (varpool_create_variable_alias): Likewise.
763         (add_new_static_var): Likewise.
764         (varpool_finalize_named_section_flags): Likewise.
765         (varpool_remove_unreferenced_decls): Likewise.
766         (enqueue_node): Likewise.
767         (varpool_assemble_decl): Likewise.
768         (assemble_aliases): Likewise.
769         (varpool_analyze_node): Likewise.
770         (cgraph_variable_initializer_availability): Likewise.
771         (varpool_add_new_variable): Likewise.
772         (ctor_for_folding): Likewise.
773         (dump_varpool_node): Likewise.
774         (varpool_remove_initializer): Likewise.
775         (varpool_remove_node): Likewise.
776         (varpool_node_for_decl): Likewise.
777         (varpool_create_empty_node): Likewise.
778         * config/i386/i386.c (ix86_generate_version_dispatcher_body):
779         Likewise.
780         (ix86_get_function_versions_dispatcher): Likewise.
782 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
784         * cgraph.h (symtab_node_base): Convert to a class;
785         add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
786         chain_next/prev from symtab_node_def.
787         (cgraph_node): Inherit from symtab_node; add GTY option
788         tag ("SYMTAB_FUNCTION").
789         (varpool_node): Inherit from symtab_node; add GTY option
790         tag ("SYMTAB_VARIABLE").
791         (symtab_node_def): Remove.
792         (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
793         (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
794         (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
795         (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
797         * ipa-ref.h (symtab_node_def): Drop.
798         (symtab_node): Change underlying type from symtab_node_def to
799         symtab_node_base.
800         (const_symtab_node): Likwise.
802         * is-a.h: Update examples in comment.
804         * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
805         (assembler_name_hash): Likewise.
807 2013-10-29  Martin Liska <marxin.liska@gmail.com>
809        * doc/tree-ssa.texi (gimple_phi_result): Document.
810        (gimple_phi_num_args, gimple_phi_arg): Likewise.
811        (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
812        (PHI_RESULT, PHI_NUM_ARGS): Remove.
813        (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
815 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
817         * expr.h: Revert change and include tree-core.h.
818         * rtl.h: Revert change and don't include tree-core.h.
820 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
822         * config/darwin.c: Include gimple.h.
823         * config/i386/winnt.c: Likewise.
825 2013-10-29  Marc Glisse  <marc.glisse@inria.fr>
827         PR tree-optimization/19831
828         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
830 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
832         * tree-outof-ssa.h: Remove include files.
833         * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
834         * expr.c: Likewise.
835         * tree-ssa-coalesce.c: Likewise.
836         * cfgexpand.c: Likewise.
837         * tree-ssa-ter.c: Likewise.
838         * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
839         * lto-streamer.h: Likewise.
840         * cgraphbuild.c: Add gimple.h to include list.
841         * data-streamer-in.c: Likewise.
842         * ipa-cp.c: Likewise.
843         * tree-streamer.c: Likewise.
844         * lto-compress.c: Likewise.
845         * ipa-reference.c: Likewise.
846         * data-streamer-out.c: Likewise.
847         * lto-cgraph.c: Likewise.
848         * cgraphclones.c: Likewise.
849         * ipa-utils.c: Likewise.
850         * data-streamer.c: Likewise.
851         * ipa-split.c: Likewise.
852         * lto-section-in.c: Likewise.
853         * tree-streamer-out.c: Likewise.
854         * ipa-prop.c: Likewise.
855         * tree-streamer-in.c: Likewise.
856         * symtab.c: Likewise.
857         * opts-global.c: Likewise.
858         * lto-opts.c: Likewise.
859         * lto-section-out.c: Likewise.
860         * lto-streamer.c: Likewise.
861         * rtl.h: Add tree-core.h to include list.
862         * expr.h: Remove tree-core.h from include list.
863         * gimple.h: Likewise.
864         * ipa-utils.h: Likewise.
865         * streamer-hooks.h: Likewise.
866         * streamer-hooks.c: Include input.h.
868 2013-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
870         * config/arm/arm.c (cortexa7_extra_costs): New table.
871         (arm_cortex_a7_tune): New.
872         * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
874 2013-10-29  Eric Botcazou  <ebotcazou@adacore.com>
876         * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
878 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
880         * doc/gty.texi ("Inheritance and GTY"): Make it clear that
881         to use autogenerated markers for a class-hierarchy, every class
882         must have a GTY marker.
883         * gengtype.h (struct type): Add linked list of subclasses to
884         the "s" member of the union.
885         (add_subclass): New decl.
886         * gengtype-state.c (read_state_struct_type): Set up subclass
887         linked list.
888         * gengtype.c (get_ultimate_base_class): New.
889         (add_subclass): New.
890         (new_structure): Set up subclass linked list.
891         (set_gc_used_type): Propagate usage information to subclasses.
892         (output_mangled_typename): Use get_ultimate_base_class.
893         (walk_subclasses): Use the subclass linked list, avoiding an
894         O(N^2) when writing out all types.
895         (walk_type): Issue an error if the base class is missing a tag,
896         rather than generating bogus C code.  Add a gcc_unreachable
897         default case, in case people omit tags from concrete subclasses,
898         or get the values wrong.
899         (write_func_for_structure): Issue an error for subclasses for
900         which the base doesn't have a "desc", since otherwise the
901         autogenerated routines for the base would silently fail to visit
902         any subclass fields.
903         (write_root): Use get_ultimate_base_class, tweaking constness of
904         tp to match that function's signature.
906 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
908         * doc/gty.texi (GTY Options): Add note about inheritance to
909         description of desc and tag.
910         (Inheritance and GTY): New.
912 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
914         * gengtype-parse.c (opts_have): Drop "static" so that
915         we can use this from gengtype.c.
916         * gengtype.c (set_gc_used_type): Mark any base class as used;
917         update field traversal to visit inherited fields.
918         (output_mangled_typename):  Convert references to classes within
919         an inheritance hierarchy to reference the ultimate base class,
920         since only it will have gt_ functions.
921         (get_string_option): New.
922         (walk_subclasses): New.
923         (walk_type): Treat GTY structs that have a "desc" as being the
924         root of an inheritance hierarchy.  Generate a switch on it
925         within the marking function which walks all subclasses, adding
926         cases for them via walk_subclasses.  For subclasses, visit all
927         fields of the type (including inherited ones).
928         (write_func_for_structure): Don't write fns for subclasses, only
929         for the ultimate base class within an inheritance hierarchy.
930         Subclasses-marking will be handled by the base class marking
931         functions.
932         (write_types): Likewise.
933         (write_local_func_for_structure): Likewise.
934         (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
935         a "tag" option (and are thus concrete subclasses).
936         (write_root): Use the marker function for the ultimate base class.
937         * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
938         (opts_have): Add declaration.
940 2013-10-28  Vladimir Makarov  <vmakarov@redhat.com>
942         * lra-spills.c (lra_final_code_change): Remove useless move insns
943         originated from moves of pseudos.
945 2013-10-28  Jeff Law  <law@redhat.com>
947         * lower-subreg.c (resolve_simple_move): Fix comment typo.
949 2013-10-28  Trevor Saunders  <tsaunders@mozilla.com>
951         * df-scan.c (df_collection_rec): Adjust.
952         (copy_defs): New constant.
953         (copy_uses): Likewise.
954         (copy_eq_uses): Likewise.
955         (copy_mw): Likewise.
956         (copy_all): Likewise.
957         (df_insn_rescan): Adjust.
958         (df_notes_rescan): Likewise.
959         (df_swap_refs): Likewise.
960         (df_sort_and_compress_refs): Likewise.
961         (df_sort_and_compress_mws): Likewise.
962         (df_install_refs): Likewise.
963         (df_install_mws): Likewise.
964         (df_refs_add_to_chains): Add flags parameter controlling which vectors
965         are coppied.
966         (df_bb_refs_record): Adjust.
967         (df_record_entry_block_defs): Likewise.
968         (df_record_exit_block_defs): Likewise.
969         (df_refs_verify): Likewise.
970         (df_mws_verify): Likewise.
971         (df_insn_refs_verify): Likewise.
972         (df_bb_verify): Likewise.
973         * ipa-pure-const.c (finish_state): Remove.
974         (propagate): Adjust.
975         * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
976         tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
977         var-tracking.c: Adjust.
978         * vec.c (stack_vecs): Remove.
979         (register_stack_vec): Likewise.
980         (stack_vec_register_index): Likewise.
981         (unregister_stack_vec): Likewise.
982         * vec.h (struct va_stack): Remove.
983         (struct vec<T, A, vl_ptr>): Specialize as
984         struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
985         allocation strategy compatable with the vl_ptr layout.
986         (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
987         specialization anyway.
988         (class stack_vec): New class.
989         (vec_stack_alloc): Remove.
990         (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
992 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
993             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
994             Sergey Lega  <sergey.s.lega@intel.com>
995             Anna Tikhonova  <anna.tikhonova@intel.com>
996             Ilya Tocar  <ilya.tocar@intel.com>
997             Andrey Turetskiy  <andrey.turetskiy@intel.com>
998             Ilya Verbin  <ilya.verbin@intel.com>
999             Kirill Yukhin  <kirill.yukhin@intel.com>
1000             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1002         * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
1003         (*prefetch_avx512pf_<mode>): New.
1004         * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
1005         (avx512f_maskcmp<mode>3): Ditto.
1006         (vashrv16si3): Ditto.
1008 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1009             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1010             Sergey Lega  <sergey.s.lega@intel.com>
1011             Anna Tikhonova  <anna.tikhonova@intel.com>
1012             Ilya Tocar  <ilya.tocar@intel.com>
1013             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1014             Ilya Verbin  <ilya.verbin@intel.com>
1015             Kirill Yukhin  <kirill.yukhin@intel.com>
1016             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1018         * config/i386/i386.md (any_truncate): New.
1019         (trunsuffix): Ditto.
1020         * config/i386/predicates.md (const_8_to_9_operand): New.
1021         (const_10_to_11_operand): Ditto.
1022         (const_12_to_13_operand): Ditto.
1023         (const_14_to_15_operand): Ditto.
1024         (const_16_to_19_operand): Ditto.
1025         (const_20_to_23_operand): Ditto.
1026         (const_24_to_27_operand): Ditto.
1027         (const_28_to_31_operand): Ditto.
1028         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
1029         (cvtusi2<ssescalarmodesuffix>32): New.
1030         (cvtusi2<ssescalarmodesuffix>64): Ditto.
1031         (ufloatv16siv16sf2): Ditto.
1032         (avx512f_fix_notruncv16sfv16si): Ditto.
1033         (avx512f_ufix_notruncv16sfv16si): Ditto.
1034         (avx512f_vcvtss2usi): Ditto.
1035         (avx512f_vcvtss2usiq): Ditto.
1036         (avx512f_vcvttss2usi): Ditto.
1037         (avx512f_vcvttss2usiq): Ditto.
1038         (avx512f_vcvtsd2usi): Ditto.
1039         (avx512f_vcvtsd2usiq): Ditto.
1040         (avx512f_vcvttsd2usi): Ditto.
1041         (avx512f_vcvttsd2usiq): Ditto.
1042         (ufloatv8siv8df): Ditto.
1043         (avx512f_cvtdq2pd512_2): Ditto.
1044         (avx512f_cvtpd2dq512): Ditto.
1045         (avx512f_ufix_notruncv8dfv8si): Ditto.
1046         (avx512f_cvtpd2ps512): Ditto.
1047         (vec_unpacks_lo_v16sf): Ditto.
1048         (vec_unpacks_hi_v16sf): Ditto.
1049         (vec_unpacks_float_hi_v16si): Ditto.
1050         (vec_unpacks_float_lo_v16si): Ditto.
1051         (avx512f_unpckhps512): Ditto.
1052         (avx512f_unpcklps512): Ditto.
1053         (avx512f_movshdup512): Ditto.
1054         (avx512f_movsldup512): Ditto.
1055         (vec_extract_lo_v32hi): Ditto.
1056         (vec_extract_hi_v32hi): Ditto.
1057         (vec_extract_lo_v64qi): Ditto.
1058         (vec_extract_hi_v64qi): Ditto.
1059         (avx512f_unpckhpd512): Ditto.
1060         (avx512f_movddup512): Ditto.
1061         (avx512f_unpcklpd512): Ditto.
1062         (*avx512f_unpcklpd512): Ditto.
1063         (avx512f_shufps512_1): Ditto.
1064         (avx512f_shufpd512_1): Ditto.
1065         (avx512f_interleave_highv8di): Ditto.
1066         (avx512f_interleave_lowv8di): Ditto.
1067         (PMOV_DST_MODE): Ditto.
1068         (pmov_src_mode): Ditto.
1069         (pmov_src_lower): Ditto.
1070         (pmov_suff): Ditto.
1071         (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
1072         (*avx512f_<code>v8div16qi2): Ditto.
1073         (*avx512f_<code>v8div16qi2_store): Ditto.
1074         (vec_widen_umult_even_v16si): Ditto.
1075         (*vec_widen_umult_even_v16si): Ditto.
1076         (vec_widen_smult_even_v16si): Ditto.
1077         (*vec_widen_smult_even_v16si): Ditto.
1078         (avx512f_interleave_highv16si): Ditto.
1079         (avx512f_interleave_lowv16si): Ditto.
1080         (avx512f_<code>v16qiv16si2): Ditto.
1081         (avx512f_<code>v16hiv16si2): Ditto.
1082         (avx512f_<code>v8qiv8di2): Ditto.
1083         (avx512f_<code>v8hiv8di2): Ditto.
1084         (avx512f_<code>v8siv8di2): Ditto.
1085         (avx512cd_maskb_vec_dupv8di): Ditto.
1086         (avx512cd_maskw_vec_dupv16si): Ditto.
1087         (avx512f_vcvtph2ps512): Ditto.
1088         (avx512f_vcvtps2ph512): Ditto.
1089         (VEC_EXTRACT_MODE): Extened with wider modes.
1090         (VEC_PERM_AVX2): Ditto.
1091         (VEC_PERM_CONST): Ditto.
1094 2013-10-28  Joern Rennecke  <joern.rennecke@embecosm.com>
1096         * config/arc/arc.c (arc_ccfsm_post_advance):
1097         Add comment about TYPE_RETURN.
1099 2013-10-28  Bin Cheng  <bin.cheng@arm.com>
1101         * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
1102         Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
1103         (strip_offset): Convert offset to unsigned number.
1105 2013-10-27  Tom de Vries  <tom@codesourcery.com>
1107         * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
1108         Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
1110 2013-10-27  Oleg Endo  <olegendo@gcc.gnu.org>
1112         * config/sh/sh.c (MSW, LSW): Move and rename macros to...
1113         * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
1114         (TARGET_BIG_ENDIAN): New macro.
1115         * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
1116         Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
1117         * config/sh/sh.c: Likewise.
1118         * config/sh/sh.h: Likewise.
1120 2013-10-27  Hans-Peter Nilsson  <hp@axis.com>
1122         * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
1123         removed PRED_MUDFLAP with PRED_NORETURN.  Correct file-path in comment.
1125 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
1127         * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
1128         Fix formatting.
1129         (cmpstr_t, cmpstrsi): Fix formatting.
1131 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
1133         PR target/52483
1134         * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
1135         addressing, do not use general_operand for memory operands.
1137 2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
1139         Revert:
1140         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
1141         * lra-spills.c (lra_final_code_change): Remove useless move insns.
1143 2013-10-26  Jeff Law  <law@redhat.com>
1145         * predict.c (PRED_MUDFLAP): Remove.
1146         * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
1148         * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
1149         (OBJS): Remove tree-nomudflap.o
1150         (GTFILES): Remove tree-mudflap.c
1151         * builtins.c (expand_builtin_alloc): Remove mudflap support.
1152         * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
1153         (mfwrap_spec, mflib_spec): Likewise.
1154         (cpp_unique_options, cc1_options, static_specs): Likewise.
1155         * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
1156         * passes.def: Likewise.
1157         * toplev.c (compile_file, process_options): Likewise.
1158         * tree-inline.c (copy_tree_r): Likewise.
1159         * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
1160         * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
1161         (build_constant_desc, output_constant_def_contents): Likewise.
1162         (categorize_decl_for_section): Likewise.
1163         * tree-mudflap.c: Removed.
1164         * tree-mudflap.h: Removed.
1165         * tree-nomudflap.c: Removed.
1166         * bfin/uclinux.h (MFWRAP_SPEC): Remove.
1167         * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
1168         * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
1169         * config/sol2.h (MFLIB_SPEC): Likewise.
1170         * doc/install.texi: Remove mudflap references.
1171         * doc/passes.texi: Similarly.
1172         * doc/sourcebuild.texi: Similarly.
1173         * doc/invoke.texi: Remove mudlfap related options.
1175 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
1177         PR rtl-optimization/58759
1178         * lra-constraints.c (lra_constraints): Remove wrong condition to
1179         remove insn setting up an equivalent pseudo.
1181 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
1183         * config/rs6000/rs6000-protos.h
1184         (rs6000_secondary_memory_needed_mode): New prototype.
1185         * config/rs6000/rs6000.c: Include ira.h.
1186         (TARGET_LRA_P): Redefine.
1187         (rs6000_legitimate_offset_address_p): Call
1188         legitimate_constant_pool_address_p in strict mode for LRA.
1189         (rs6000_legitimate_address_p): Ditto.
1190         (legitimate_lo_sum_address_p): Add code for LRA.
1191         Use lra_in_progress.
1192         (rs6000_emit_move): Add LRA version of code to generate load/store
1193         of SDmode values.
1194         (rs6000_secondary_memory_needed_mode): New.
1195         (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
1196         (rs6000_secondary_reload_class): Return NO_REGS for LRA for
1197         constants, memory, and FP registers.
1198         (rs6000_lra_p): New.
1199         * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New
1200         macro.
1201         * config/rs6000/rs6000.opt (mlra): New option.
1202         * lra-spills.c (lra_final_code_change): Remove useless move insns.
1204 2013-10-25  Yufeng Zhang  <yufeng.zhang@arm.com>
1206         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
1207         has_single_use () and not do the conversion if has_single_use ()
1208         returns false for the multiplication result.
1210 2013-10-25  David Malcolm  <dmalcolm@redhat.com>
1212         * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
1213         to "NODE", since this works on a "tree", not an
1214         "enum tree_code".
1215         (CONSTANT_CLASS_P): Likewise.
1216         (TYPE_P): Likewise.
1217         (DECL_P): Likewise.
1218         (INDIRECT_REF_P): Likewise.
1219         (REFERENCE_CLASS_P): Likewise.
1220         (COMPARISON_CLASS_P): Likewise.
1221         (UNARY_CLASS_P): Likewise.
1222         (BINARY_CLASS_P): Likewise.
1223         (STATEMENT_CLASS_P): Likewise.
1224         (VL_EXP_CLASS_P): Likewise.
1225         (EXPRESSION_CLASS_P): Likewise.
1226         (IS_TYPE_OR_DECL_P): Likewise.
1228 2013-10-25  Marc Glisse  <marc.glisse@inria.fr>
1230         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
1231         ADDR_EXPR in the defining statement.
1233 2013-10-25  Richard Biener  <rguenther@suse.de>
1235         PR tree-optimization/58626
1236         * tree-loop-distribution.c (enum rdg_dep_type): Remove
1237         anti_dd, output_dd and input_dd.
1238         (struct rdg_edge): Remove level and relation members.
1239         (RDGE_LEVEL, RDGE_RELATION): Remove.
1240         (dot_rdg_1): Adjust.
1241         (create_rdg_edge_for_ddr): Remove.
1242         (create_rdg_edges_for_scalar): Adjust.
1243         (create_edge_for_control_dependence): Likewise.
1244         (create_rdg_edges): Split into ...
1245         (create_rdg_flow_edges): ... this
1246         (create_rdg_cd_edges): ... and this.
1247         (free_rdg): Adjust.
1248         (build_rdg): Likewise, do not compute data dependences or
1249         add edges for them.
1250         (pg_add_dependence_edges): New function.
1251         (pgcmp): Likewise.
1252         (distribute_loop): First apply all non-dependence based
1253         partition mergings.  Then compute dependences between partitions
1254         and merge and order partitions according to them.
1256 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
1258         PR rtl-optimization/58831
1259         * alias.c (init_alias_analysis): At the beginning of each iteration, set
1260         the reg_seen[N] bit if static_reg_base_value[N] is non-null.
1262 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
1264         * recog.c (search_ofs): New static variable moved from...
1265         (peep2_find_free_register): ...here.
1266         (peephole2_optimize): Initialize it.
1268 2013-10-25  Tobias Burnus  <burnus@net-b.de>
1270         * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
1272 2013-10-25  Uros Bizjak  <ubizjak@gmail.com>
1274         * config/i386/i386.h (TARGET_MPX): New define.
1275         (TARGET_MPX_P): Ditto.
1277 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
1279         * config/i386/constraints.md (B): New.
1280         (Ti): New.
1281         (Tb): New.
1282         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
1283         * config/i386/i386-modes.def (BND32): New.
1284         (BND64): New.
1285         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
1286         * config/i386/i386.c (isa_opts): Add mmpx.
1287         (regclass_map): Add bound registers.
1288         (dbx_register_map): Likewise.
1289         (dbx64_register_map): Likewise.
1290         (svr4_dbx_register_map): Likewise.
1291         (PTA_MPX): New.
1292         (ix86_option_override_internal): Support MPX ISA.
1293         (ix86_conditional_register_usage): Support bound registers.
1294         (print_reg): Likewise.
1295         (ix86_code_end): Add MPX bnd prefix.
1296         (output_set_got): Likewise.
1297         (ix86_output_call_insn): Likewise.
1298         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
1299         (ix86_print_operand_punct_valid_p): Likewise.
1300         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
1301         UNSPEC_BNDMK_ADDR.
1302         (ix86_class_likely_spilled_p): Add bound regs support.
1303         (ix86_hard_regno_mode_ok): Likewise.
1304         (x86_order_regs_for_local_alloc): Likewise.
1305         (ix86_bnd_prefixed_insn_p): New.
1306         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
1307         (FIXED_REGISTERS): Add bound registers.
1308         (CALL_USED_REGISTERS): Likewise.
1309         (REG_ALLOC_ORDER): Likewise.
1310         (HARD_REGNO_NREGS): Likewise.
1311         (TARGET_MPX): New.
1312         (VALID_BND_REG_MODE): New.
1313         (FIRST_BND_REG): New.
1314         (LAST_BND_REG): New.
1315         (reg_class): Add BND_REGS.
1316         (REG_CLASS_NAMES): Likewise.
1317         (REG_CLASS_CONTENTS): Likewise.
1318         (BND_REGNO_P): New.
1319         (ANY_BND_REG_P): New.
1320         (BNDmode): New.
1321         (HI_REGISTER_NAMES): Add bound registers.
1322         * config/i386/i386.md (UNSPEC_BNDMK): New.
1323         (UNSPEC_BNDMK_ADDR): New.
1324         (UNSPEC_BNDSTX): New.
1325         (UNSPEC_BNDLDX): New.
1326         (UNSPEC_BNDLDX_ADDR): New.
1327         (UNSPEC_BNDCL): New.
1328         (UNSPEC_BNDCU): New.
1329         (UNSPEC_BNDCN): New.
1330         (UNSPEC_MPX_FENCE): New.
1331         (BND0_REG): New.
1332         (BND1_REG): New.
1333         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
1334         (length_immediate): Likewise.
1335         (prefix_0f): Likewise.
1336         (memory): Likewise.
1337         (prefix_rep): Check for bnd prefix.
1338         (length_nobnd): New.
1339         (length): Use length_nobnd if specified.
1340         (BND): New.
1341         (bnd_ptr): New.
1342         (BNDCHECK): New.
1343         (bndcheck): New.
1344         (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
1345         (*jcc_2): Likewise.
1346         (jump): Likewise.
1347         (simple_return_internal): Likewise.
1348         (simple_return_pop_internal): Likewise.
1349         (*indirect_jump): Add MPX bnd prefix.
1350         (*tablejump_1): Likewise.
1351         (simple_return_internal_long): Likewise.
1352         (simple_return_indirect_internal): Likewise.
1353         (<mode>_mk): New.
1354         (*<mode>_mk): New.
1355         (mov<mode>): New.
1356         (*mov<mode>_internal_mpx): New.
1357         (<mode>_<bndcheck>): New.
1358         (*<mode>_<bndcheck>): New.
1359         (<mode>_ldx): New.
1360         (*<mode>_ldx): New.
1361         (<mode>_stx): New.
1362         (*<mode>_stx): New.
1363         * config/i386/predicates.md (lea_address_operand): Rename to...
1364         (address_no_seg_operand): ... this.
1365         (address_mpx_no_base_operand): New.
1366         (address_mpx_no_index_operand): New.
1367         (bnd_mem_operator): New.
1368         * config/i386/i386.opt (mmpx): New.
1369         * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
1370         * doc/rtl.texi Add documentation for BND32mode and BND64mode.
1372 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
1374         * mode-classes.def (MODE_POINTER_BOUNDS): New.
1375         * tree.def (POINTER_BOUNDS_TYPE): New.
1376         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
1377         (POINTER_BOUNDS_MODE): New.
1378         (make_pointer_bounds_mode): New.
1379         * machmode.h (POINTER_BOUNDS_MODE_P): New.
1380         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
1381         (layout_type): Support POINTER_BOUNDS_TYPE.
1382         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
1383         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
1384         (type_contains_placeholder_1): Likewise.
1385         * tree.h (POINTER_BOUNDS_TYPE_P): New.
1386         * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
1387         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
1389 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
1391         * expr.c (expand_expr_real_1): Use mode of memory reference rather than
1392         mode of address computation when calling memory_address_addr_space.
1394 2013-08-24  Richard Henderson  <rth@twiddle.net>
1396         PR rtl/58542
1397         * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
1398         instead of create_convert_operand_to.
1399         (maybe_emit_sync_lock_test_and_set): Likewise.
1400         (expand_atomic_compare_and_swap): Likewise.
1401         (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
1403 2013-08-24  Sriraman Tallam  <tmsriram@google.com>
1405         * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
1406         Change param_is to use the struct and not the pointer to the struct.
1408 2013-10-24  Andrew MacLeod  <amacleod@redhat.com>
1410         * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
1411         * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
1412         Move to targhooks.c.
1413         (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
1414         * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
1415         Relocate from gimplify.c.
1416         * targhooks.h: Add 2 prototypes.
1417         * tree.h: Delete 2 prototypes.
1419 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
1421         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
1422         [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
1424 2013-10-24  Cong Hou  <congh@google.com>
1426         * convert.c (convert_to_real): Guard those unsafe math function
1427         convertions with flag_unsafe_math_optimizations.  Handle sqrt()
1428         specially.
1430 2013-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
1432         PR ipa/58712
1433         * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
1434         as argument.
1435         (cgraph_create_edge): Use the new argument.
1436         (cgraph_create_indirect_edge): Likewise.
1438 2013-10-24  Joern Rennecke  <joern.rennecke@embecosm.com>
1440         * gcc/config/arc/arc.c (arc_ccfsm_post_advance): Also handle
1441         TYPE_UNCOND_BRANCH.
1442         (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
1443         changes statep->state.
1445 2013-10-24  Tobias Burnus  <burnus@net-b.de>
1447         PR other/33426
1448         * tree-cfg.c (replace_loop_annotate): New function.
1449         (execute_build_cfg): Call it.
1450         * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
1451         * internal-fn.c (expand_ANNOTATE): New function.
1452         * internal-fn.def (ANNOTATE): Define as new internal function.
1453         * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
1454         * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
1455         * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
1456         * doc/extend.texi (Pragmas): Document #pragma ivdep.
1457         * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
1459 2013-10-17  Ian Bolton  <ian.bolton@arm.com>
1460             Marcus Shawcroft  <marcus.shawcroft@arm.com>
1462         * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
1463         Special case reload SP+C into none GENERAL_REGS.
1465 2013-10-24  Michael Matz  <matz@suse.de>
1467         * gengtype.c (is_file_equal): Check that files will be same length.
1469 2013-10-25  Christian Bruel  <christian.bruel@st.com>
1471         * config.gcc (sh-*): Add sh-mem.o to extra_obj.
1472         * gcc/config/sh/t-sh (sh-mem.o): New rule.
1473         * gcc/config/sh/sh-mem.cc (expand_block_move): Moved here.
1474         (sh_expand_cmpstr): New function.
1475         * gcc/config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
1476         * gcc/config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
1477         * gcc/config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
1478         (rotlhi3_8): Rename.
1480 2013-10-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
1482         * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
1483         * Makefile.in (CXXDEPMODE): Assign and change users.
1484         (CCDEPMODE): Delete.
1485         * configure: Regenerate.
1487 2013-10-23  David Malcolm  <dmalcolm@redhat.com>
1489         * gengtype-parse.c (require_without_advance): New.
1490         (type): For GTY-marked types that are not GTY((user)), parse any
1491         base classes, requiring them to be single-inheritance, and not
1492         be templates.  For non-GTY-marked types and GTY((user)),
1493         continue to skip over any C++ inheritance specification.
1494         * gengtype-state.c (state_writer::write_state_struct_type):
1495         Write base class of type (if any).
1496         (read_state_struct_type): Read base class of type (if any).
1497         * gengtype.c (new_structure): Add a "base_class" parameter.
1498         (create_optional_field_): Update for new parameter to new_structure.
1499         (adjust_field_rtx_def): Likewise.
1500         (adjust_field_tree_exp): Likewise.
1501         * gengtype.h (struct type): Add "base_class" field to the s
1502         union field.
1503         (new_structure): Add "base" parameter.
1505 2013-10-23  Sriraman Tallam  <tmsriram@google.com>
1507         PR target/57756
1508         * config/i386/i386.c (ix86_option_override_internal):
1509         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
1510         (ix86_valid_target_attribute_tree):
1511         Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
1512         Change TARGET_SSE to TARGET_SSE_P (opts->...)
1514 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
1516         * tree-ssa-loop.h: Remove include files.
1517         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
1518         * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
1519         * graphite-clast-to-gimple.c: Likewise.
1520         * graphite-scop-detection.c: Likewise.
1521         * graphite-sese-to-poly.c: Likewise.
1522         * ipa-inline-analysis.c: Likewise.
1523         * ipa-pure-const.c: Likewise.
1524         * loop-init.c: Likewise.
1525         * passes.c: Likewise.
1526         * predict.c: Likewise.
1527         * tree-cfg.c: Likewise.
1528         * tree-cfgcleanup.c: Likewise.
1529         * tree-chrec.c: Likewise.
1530         * tree-data-ref.c: Likewise.
1531         * tree-loop-distribution.c: Likewise.
1532         * tree-parloops.c: Likewise.
1533         * tree-predcom.c: Likewise.
1534         * tree-scalar-evolution.c: Likewise.
1535         * tree-ssa-address.c: Likewise.
1536         * tree-ssa.c: Likewise.
1537         * tree-ssa-dce.c: Likewise.
1538         * tree-ssa-loop.c: Likewise.
1539         * tree-ssa-loop-im.c: Likewise.
1540         * tree-ssa-loop-ivcanon.c: Likewise.
1541         * tree-ssa-loop-ivopts.c: Likewise.
1542         * tree-ssa-loop-manip.c: Likewise.
1543         * tree-ssa-loop-niter.c: Likewise.
1544         * tree-ssa-loop-prefetch.c: Likewise.
1545         * tree-ssa-loop-unswitch.c: Likewise.
1546         * tree-ssa-reassoc.c: Likewise.
1547         * tree-vect-data-refs.c: Likewise.
1548         * tree-vect-loop.c: Likewise.
1549         * tree-vect-loop-manip.c: Likewise.
1550         * tree-vectorizer.c: Likewise.
1551         * tree-vect-stmts.c: Likewise.
1552         * tree-vrp.c: Likewise.
1554 2013-10-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1556         * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
1558 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
1560         PR tree-optimization/58775
1561         PR tree-optimization/58791
1562         * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
1563         (insert_stmt_after): Rewritten, don't move the stmt, but really
1564         insert it.
1565         (get_stmt_uid_with_default): Remove.
1566         (build_and_add_sum): Use insert_stmt_after and
1567         reassoc_stmt_dominates_stmt_p.  Fix up uid if bb contains only labels.
1568         (update_range_test): Set uid on stmts added by
1569         force_gimple_operand_gsi.  Don't immediately modify statements
1570         in inter-bb optimization, just update oe->op values.
1571         (optimize_range_tests): Return bool whether any changed have been made.
1572         (update_ops): New function.
1573         (struct inter_bb_range_test_entry): New type.
1574         (maybe_optimize_range_tests): Perform statement changes here.
1575         (not_dominated_by, appears_later_in_bb, get_def_stmt,
1576         ensure_ops_are_available): Remove.
1577         (find_insert_point): Rewritten.
1578         (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
1579         return LHS of the (new resp. old) stmt.  Don't call
1580         ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
1581         instead of last, move new stmt at the right place.
1582         (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
1583         (negate_value): Likewise.  Set uids.
1584         (break_up_subtract_bb): Initialize uids.
1585         (reassociate_bb): Adjust rewrite_expr_tree caller.
1586         (do_reassoc): Don't call renumber_gimple_stmt_uids.
1588 2013-10-23  David Edelsohn  <dje.gcc@gmail.com>
1590         PR target/58838
1591         * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
1592         TARGET_32BIT final condition.
1593         (mulsi3_internal2 and splitter): Same.
1595 2013-10-23  Jeff Law  <law@redhat.com>
1597         * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
1598         through joiner blocks with abnormal outgoing edges.
1600         * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
1601         Add parameter JOINERS, to allow/disallow threading through joiner
1602         blocks.
1603         (thread_block): New.  Call thread_block_1.
1604         (mark_threaded_blocks): Remove code to filter out certain cases
1605         of threading through joiner blocks.
1606         (thread_through_all_blocks): Document how we can have a dangling
1607         edge AUX field and clear it.
1609 2013-10-23  Ian Lance Taylor  <iant@google.com>
1611         * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
1612         (C++ Dialect Options): Likewise.
1613         (Optimize Options): Likewise.
1615 2013-10-23  Tom de Vries  <tom@codesourcery.com>
1617         PR tree-optimization/58805
1618         * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
1620 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
1622         * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
1623         sequence based on get_range_info returned range.
1625 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
1627         * tree-ssa.h: Remove all #include's
1628         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
1629         * alias.c: Move required includes from tree-ssa.h.
1630         * asan.c: Likewise.
1631         * builtins.c: Likewise.
1632         * calls.c: Likewise.
1633         * cfgexpand.c: Likewise.
1634         * cfghooks.c: Likewise.
1635         * cfgloop.c: Likewise.
1636         * cfgloopmanip.c: Likewise.
1637         * cgraph.c: Likewise.
1638         * cgraphbuild.c: Likewise.
1639         * cgraphclones.c: Likewise.
1640         * cgraphunit.c: Likewise.
1641         * dse.c: Likewise.
1642         * except.c: Likewise.
1643         * expr.c: Likewise.
1644         * final.c: Likewise.
1645         * fold-const.c: Likewise.
1646         * ggc-page.c: Likewise.
1647         * gimple-builder.c: Likewise.
1648         * gimple-fold.c: Likewise.
1649         * gimple-iterator.c: Likewise.
1650         * gimple-low.c: Likewise.
1651         * gimple-pretty-print.c: Likewise.
1652         * gimple-ssa-strength-reduction.c: Likewise.
1653         * gimple-streamer-in.c: Likewise.
1654         * gimple-streamer-out.c: Likewise.
1655         * gimplify.c: Likewise.
1656         * graphite-blocking.c: Likewise.
1657         * graphite-clast-to-gimple.c: Likewise.
1658         * graphite-dependences.c: Likewise.
1659         * graphite-interchange.c: Likewise.
1660         * graphite-optimize-isl.c: Likewise.
1661         * graphite-poly.c: Likewise.
1662         * graphite-scop-detection.c: Likewise.
1663         * graphite-sese-to-poly.c: Likewise.
1664         * graphite.c: Likewise.
1665         * ipa-cp.c: Likewise.
1666         * ipa-inline-analysis.c: Likewise.
1667         * ipa-inline-transform.c: Likewise.
1668         * ipa-inline.c: Likewise.
1669         * ipa-prop.c: Likewise.
1670         * ipa-pure-const.c: Likewise.
1671         * ipa-reference.c: Likewise.
1672         * ipa-split.c: Likewise.
1673         * ipa-utils.c: Likewise.
1674         * loop-init.c: Likewise.
1675         * lto-cgraph.c: Likewise.
1676         * lto-section-in.c: Likewise.
1677         * lto-section-out.c: Likewise.
1678         * lto-streamer-in.c: Likewise.
1679         * lto-streamer-out.c: Likewise.
1680         * lto-streamer.c: Likewise.
1681         * omp-low.c: Likewise.
1682         * passes.c: Likewise.
1683         * predict.c: Likewise.
1684         * print-tree.c: Likewise.
1685         * profile.c: Likewise.
1686         * sese.c: Likewise.
1687         * targhooks.c: Likewise.
1688         * tracer.c: Likewise.
1689         * trans-mem.c: Likewise.
1690         * tree-call-cdce.c: Likewise.
1691         * tree-cfg.c: Likewise.
1692         * tree-cfgcleanup.c: Likewise.
1693         * tree-chrec.c: Likewise.
1694         * tree-complex.c: Likewise.
1695         * tree-data-ref.c: Likewise.
1696         * tree-dfa.c: Likewise.
1697         * tree-eh.c: Likewise.
1698         * tree-emutls.c: Likewise.
1699         * tree-if-conv.c: Likewise.
1700         * tree-inline.c: Likewise.
1701         * tree-into-ssa.c: Likewise.
1702         * tree-loop-distribution.c: Likewise.
1703         * tree-mudflap.c: Likewise.
1704         * tree-nested.c: Likewise.
1705         * tree-nrv.c: Likewise.
1706         * tree-object-size.c: Likewise.
1707         * tree-outof-ssa.c: Likewise.
1708         * tree-parloops.c: Likewise.
1709         * tree-phinodes.c: Likewise.
1710         * tree-predcom.c: Likewise.
1711         * tree-pretty-print.c: Likewise.
1712         * tree-profile.c: Likewise.
1713         * tree-scalar-evolution.c: Likewise.
1714         * tree-sra.c: Likewise.
1715         * tree-ssa-address.c: Likewise.
1716         * tree-ssa-alias.c: Likewise.
1717         * tree-ssa-ccp.c: Likewise.
1718         * tree-ssa-coalesce.c: Likewise.
1719         * tree-ssa-copy.c: Likewise.
1720         * tree-ssa-copyrename.c: Likewise.
1721         * tree-ssa-dce.c: Likewise.
1722         * tree-ssa-dom.c: Likewise.
1723         * tree-ssa-dse.c: Likewise.
1724         * tree-ssa-forwprop.c: Likewise.
1725         * tree-ssa-ifcombine.c: Likewise.
1726         * tree-ssa-live.c: Likewise.
1727         * tree-ssa-loop-ch.c: Likewise.
1728         * tree-ssa-loop-im.c: Likewise.
1729         * tree-ssa-loop-ivcanon.c: Likewise.
1730         * tree-ssa-loop-ivopts.c: Likewise.
1731         * tree-ssa-loop-manip.c: Likewise.
1732         * tree-ssa-loop-niter.c: Likewise.
1733         * tree-ssa-loop-prefetch.c: Likewise.
1734         * tree-ssa-loop-unswitch.c: Likewise.
1735         * tree-ssa-loop.c: Likewise.
1736         * tree-ssa-math-opts.c: Likewise.
1737         * tree-ssa-operands.c: Likewise.
1738         * tree-ssa-phiopt.c: Likewise.
1739         * tree-ssa-phiprop.c: Likewise.
1740         * tree-ssa-pre.c: Likewise.
1741         * tree-ssa-propagate.c: Likewise.
1742         * tree-ssa-reassoc.c: Likewise.
1743         * tree-ssa-sccvn.c: Likewise.
1744         * tree-ssa-sink.c: Likewise.
1745         * tree-ssa-strlen.c: Likewise.
1746         * tree-ssa-structalias.c: Likewise.
1747         * tree-ssa-tail-merge.c: Likewise.
1748         * tree-ssa-ter.c: Likewise.
1749         * tree-ssa-threadedge.c: Likewise.
1750         * tree-ssa-threadupdate.c: Likewise.
1751         * tree-ssa-uncprop.c: Likewise.
1752         * tree-ssa-uninit.c: Likewise.
1753         * tree-ssa.c: Likewise.
1754         * tree-ssanames.c: Likewise.
1755         * tree-stdarg.c: Likewise.
1756         * tree-streamer-in.c: Likewise.
1757         * tree-switch-conversion.c: Likewise.
1758         * tree-tailcall.c: Likewise.
1759         * tree-vect-data-refs.c: Likewise.
1760         * tree-vect-generic.c: Likewise.
1761         * tree-vect-loop-manip.c: Likewise.
1762         * tree-vect-loop.c: Likewise.
1763         * tree-vect-patterns.c: Likewise.
1764         * tree-vect-slp.c: Likewise.
1765         * tree-vect-stmts.c: Likewise.
1766         * tree-vectorizer.c: Likewise.
1767         * tree-vrp.c: Likewise.
1768         * tree.c: Likewise.
1769         * tsan.c: Likewise.
1770         * value-prof.c: Likewise.
1771         * var-tracking.c: Likewise.
1772         * varpool.c: Likewise.
1773         * vtable-verify.c: Likewise.
1775 2013-10-23  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
1777         * config/tilegx/tilegx.c: Include "tree.h".
1779 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
1781         * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
1782         the info, not after it.
1783         (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
1784         dump_ssaname_info call.
1785         (pp_gimple_stmt_1): Adjust caller.
1786         (dump_phi_nodes): Likewise.  Don't print "# " here.
1788 2013-10-22  Jan Hubicka  <jh@suse.cz>
1790         * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
1791         tuning flag.
1792         * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
1793         * i386.c (expand_small_movmem_or_setmem): New function.
1794         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
1795         function.
1796         (alg_usable_p): Add support for value ranges; cleanup.
1797         (ix86_expand_set_or_movmem): Add support for misaligned moves.
1799 2013-10-22  Sterling Augustine  <saugustine@google.com>
1801         * doc/invoke.texi: Document -ggnu-pubnames.
1802         * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
1803         logic.
1804         * dwarf2out.c: Include gdb/gdb-index.h.
1805         (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
1806         debug_generate_pub_sections.
1807         (is_java, output_pubtables, output_pubname): New functions.
1808         (include_pubname_in_output): Handle debug_generate_pub_sections at
1809         level 2.
1810         (size_of_pubnames): Use new local space_for_flags based on
1811         debug_generate_pub_sections.
1812         (output_pubnames): Unify pubnames and pubtypes output logic.
1813         Genericize comments.  Call output_pubname.
1814         (dwarf2out_finish): Move logic to output_pubnames and call it.
1816 2013-10-22  Uros Bizjak  <ubizjak@gmail.com>
1818         PR target/58779
1819         * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
1820         Remove CCCmode handling.
1821         <case LTU>: Return 'c' suffix for CCCmode.
1822         <case GEU>: Return 'nc' suffix for CCCmode.
1823         (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
1824         * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
1825         (*sub<mode>3_cc_overflow): Ditto.
1826         (*subsi3_zext_cc_overflow): Ditto.
1828 2013-10-22  Steve Ellcey  <sellcey@mips.com>
1830         * config/mips/mips.c (mips_rtx_costs):  Fix cost estimate for nor
1831         (AND (NOT OP1) (NOT OP2)).
1833 2013-10-22  Bill Schmidt  <wschmidt@vnet.ibm.com>
1835         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
1836         meaning of merge-high and merge-low masks for little endian; avoid
1837         use of vector-pack masks for little endian for mismatched modes.
1839 2013-10-22  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
1841         * config/tilepro/tilepro.c: Include "tree.h".
1843 2013-10-22  Andreas Schwab  <schwab@suse.de>
1845         * config/m68k/m68k.c (notice_update_cc): Handle register conflict
1846         with PRE_DEC.
1848 2013-10-22  Paolo Carlini  <paolo.carlini@oracle.com>
1850         * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
1851         [Ed Smith-Rowland]): New entries.
1852         ([Stephen M. Webb]): Update.
1854 2013-10-22  Andrew MacLeod  <amacleod@redhat.com>
1856         * tree-ssa-ter.h: Remove duplicate copy of file contents.
1858 2013-10-21  Marek Polacek  <polacek@redhat.com>
1860         PR middle-end/58809
1861         * fold-const.c (fold_range_test): Return 0 if the type is not
1862         an integral type.
1864 2013-10-21  Richard Sandiford  <rdsandiford@googlemail.com>
1866         * system.h: Move hwint.h include further down.
1867         * hwint.h (sext_hwi, zext_hwi): Define unconditionally.  Add
1868         gcc_checking_asserts.
1869         * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
1871 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1873         Fix volatile issues in optimize_bit_field_compare.
1874         * fold-const.c (optimize_bit_field_compare): Bail out if
1875         lvolatilep or rvolatilep.
1877 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1879         Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
1880         and get_inner_reference returning different pmode for non-volatile
1881         bit-field members dependent on flag_strict_volatile_bitfields.
1882         * stor-layout.c (layout_decl): Remove special handling of
1883         flag_strict_volatile_bitfields.
1884         * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
1885         if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
1887 2013-10-21  Paulo Matos  <pmatos@broadcom.com>
1889         * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
1890         calculations.
1892 2013-10-21  Jeff Law  <law@redhat.com>
1894         * tree-ssa-threadedge.c (thread_through_normal_block): New
1895         argument VISITED.  Remove VISISTED as a local variable.  When we
1896         have a threadable jump, verify the destination of the jump has not
1897         been visised.
1898         (thread_across_edge): Allocate VISITED bitmap once at function
1899         scope and use it throughout.  Make sure to set appropriate bits in
1900         VISITED for E (start of jump thread path).
1901         * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
1902         through a joiner if any edge on the path has a recorded jump thread.
1904 2013-10-21  Ian Lance Taylor  <iant@google.com>
1906         * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
1907         don't imply that attributes can solve all problems.
1908         (Directory Options): Fix typo.
1910 2013-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1912         * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
1913         extend and extend_add.
1915 2013-10-21  Richard Biener  <rguenther@suse.de>
1917         PR tree-optimization/58794
1918         * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
1919         of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
1921 2013-10-21  Richard Biener  <rguenther@suse.de>
1923         PR middle-end/58742
1924         * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
1925         to (T) X for sign-changing conversions (or no conversion).
1927 2013-10-20  Uros Bizjak  <ubizjak@gmail.com>
1929         * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
1931 2013-10-20  Jan Hubicka  <jh@suse.cz>
1933         * config/i386/i386-tune.def: Add comment; organize into categories
1935 2013-10-21  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
1937         * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
1938         argument.  Update function comment.
1939         (expand_set_or_movmem_via_rep): New function combining
1940         expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
1941         (expand_movmem_via_rep_mov): Remove.
1942         expand_setmem_via_rep_stos): Remove.
1943         (expand_movmem_epilogue): Update calls correspondingly.
1944         (expand_setmem_epilogue_via_loop): Likewise.
1945         (emit_memset): New.
1946         (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
1947         (expand_set_or_movmem_prologue): New function combining
1948         expand_movmem_prologue and expand_setmem_prologue.
1949         (expand_movmem_prologue): Remove.
1950         (expand_setmem_prologue): Remove.
1951         (expand_set_or_movmem_constant_prologue): New function combining
1952         expand_constant_movmem_prologue and expand_constant_setmem_prologue.
1953         (expand_constant_movmem_prologue): Remove.
1954         (expand_constant_setmem_prologue): Remove.
1955         (promote_duplicated_reg): Allow vector-const0 value.
1956         (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
1957         and ix86_expand_setmem.
1958         (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
1959         (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
1961 2013-10-21  Diego Novillo  <dnovillo@google.com>
1963         * asan.c: Include tree.h
1964         * bb-reorder.c: Likewise.
1965         * cfgcleanup.c: Likewise.
1966         * cfgloopmanip.c: Likewise.
1967         * data-streamer-in.c: Likewise.
1968         * data-streamer-out.c: Likewise.
1969         * data-streamer.c: Likewise.
1970         * dwarf2cfi.c: Likewise.
1971         * graphite-blocking.c: Likewise.
1972         * graphite-clast-to-gimple.c: Likewise.
1973         * graphite-dependences.c: Likewise.
1974         * graphite-interchange.c: Likewise.
1975         * graphite-optimize-isl.c: Likewise.
1976         * graphite-poly.c: Likewise.
1977         * graphite-scop-detection.c: Likewise.
1978         * graphite-sese-to-poly.c: Likewise.
1979         * graphite.c: Likewise.
1980         * ipa-devirt.c: Likewise.
1981         * ipa-profile.c: Likewise.
1982         * ipa.c: Likewise.
1983         * ira.c: Likewise.
1984         * loop-init.c: Likewise.
1985         * loop-unroll.c: Likewise.
1986         * lower-subreg.c: Likewise.
1987         * lto/lto-object.c: Likewise.
1988         * recog.c: Likewise.
1989         * reginfo.c: Likewise.
1990         * tree-loop-distribution.c: Likewise.
1991         * tree-parloops.c: Likewise.
1992         * tree-ssa-strlen.c: Likewise.
1993         * tree-streamer.c: Likewise.
1994         * value-prof.c: Likewise.
1995         * target-globals.c: Likewise.
1996         * expr.h: Include tree-core.h instead of tree.h.
1997         * gimple.h: Likewise.
1998         * ipa-prop.h: Likewise.
1999         * ipa-utils.h: Likewise.
2000         * lto-streamer.h: Likewise.
2001         * streamer-hooks.h: Likewise.
2002         * ipa-reference.h: Include cgraph.h instead of tree.h.
2003         * cgraph.h: Include basic-block.h instead of tree.h.
2004         * tree-streamer.h: Do not include tree.h.
2005         * genattrtab.c (write_header): Generate inclusion of
2006         tree.h.
2007         * genautomata.c (main): Likewise.
2008         * genemit.c: Likewise.
2009         * genopinit.c: Likewise.
2010         * genoutput.c (output_prologue): Likewise.
2011         * genpeep.c: Likewise.
2013 2013-10-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2015         * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
2016         little endian.
2017         (vec_unpacku_hi_v8hi): Likewise.
2018         (vec_unpacku_lo_v16qi): Likewise.
2019         (vec_unpacku_lo_v8hi): Likewise.
2021 2013-10-20  Jan Hubicka  <jh@suse.cz>
2023         * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
2024         X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
2025         (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
2027 2013-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
2029         * config/mips/mips.h (ISA_HAS_WSBH): Define.
2030         * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
2031         constants.
2032         (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
2034 2013-10-19  John David Anglin  <danglin@gcc.gnu.org>
2036         PR target/58603
2037         * system.h: Undef m_slot.
2039 2013-10-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2041         * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
2042         all elements for both endian flavors.
2044 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
2046         PR target/58792
2047         * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
2048         ST1_REG and XMM1_REG for 32bit and 64bit targets.  Also add DI_REG
2049         and SI_REG for 64bit SYSV ABI targets.
2051 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
2053         * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
2054         to multi_reg_return.  Clarify that we are skipping USEs of multiple
2055         return registers.  Use bool type where appropriate.
2057 2013-10-18  Jan Hubicka  <jh@suse.cz>
2059         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
2060         for cold functions.
2061         * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
2062         (X86_TUNE_PUSH_MEMORY): Likewise.
2063         (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
2064         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
2065         (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
2066         New.
2067         * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
2068         x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
2069         Remove.
2070         (ix86_option_override_internal): Update to use tune features instead
2071         of variables.
2073 2013-10-18  Cong Hou  <congh@google.com>
2075         PR tree-optimization/58508
2076         * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
2077         statement that contains data refs with zero-step.
2079 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
2081         * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
2082         sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
2083         * gimple-low.c (gimple_check_call_arg,
2084         gimple_check_call_matching_types): Move to cgraph.c.
2085         * gimple-low.h: Remove prototype.
2086         * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
2087         Relocate from gimple-low.c.
2088         * cgraph.h: Add prototype.  Don't include basic-block.h.
2089         * gimplify.c: Add gimple-low to include list.
2090         * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
2091         * tree-eh.c: Add gimple-low to include list.
2092         * tree-nested.c: Likewise.
2093         * cfgexpand.c: Add tree-ssa-address.h to include list.
2094         * expr.c: Likewise.
2095         * gimple-fold.c: Likewise.
2096         * gimple-ssa-strength-reduction.c: Likewise.
2097         * trans-mem.c: Likewise.
2098         * tree-mudflap.c: Likewise.
2099         * tree-ssa-loop-ivopts.c: Likewise.
2100         * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
2101         (degenerate_phi_result): Move to tree-phinodes.c.
2102         * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
2103         * tree-ssa-threadedge.c: Likewise.
2104         * tree-vrp.c: Likewise.
2105         * tree-phinodes.c (degenerate_phi_result): Relocate here.
2106         * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
2107         * tree-phinodes.h (degenerate_phi_result): Add prototype.
2108         * tree-ssa-copy.c: Include tree-ssa-dom.h.
2109         * tree-ssa-forwprop.c: Likewise.
2110         * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
2111         pass_data_cleanup_cfg_post_optimizing,
2112         make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
2113         * tree-optimize.c: Delete File.
2114         * graphite.c: Include tree-cfgcleanup.h.
2115         * passes.c: Likewise.
2116         * tree-cfg.c: Likewise.
2117         * tree-profile.c: Likewise.
2118         * tree-ssa-dse.c: Likewise.
2119         * tree-ssa-loop-ivcanon.c: Likewise.
2120         * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
2121         * tree-outof-ssa.c: Include sbitmap.h.
2122         * tree-ssa-live.c: Likewise.
2123         * tree-ssa-propagate.c: Likewise.
2124         * tree-ssa-structalias.c: Likewise.
2125         * tree-stdarg.c: Likewise.
2126         * Makefile.in (OBJS): Delete tree-optimize.o.
2127         * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
2128         * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
2129         * varasm.c: Include basic-block.h.
2130         * cfgloop.h: Include function.h instead of basic-block.h
2131         (bb_loop_depth): Move to cfgloop.c.
2132         * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
2134 2013-10-18  Teresa Johnson  <tejohnson@google.com>
2136         * predict.c (probably_never_executed): Compare frequency-based
2137         count to number of training runs.
2138         * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
2140 2013-10-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2142         * config/arm/arm.c (cortexa9_extra_costs): New table.
2143         (arm_cortex_a9_tune): Use cortexa9_extra_costs.
2145 2013-10-18  Jeff Law  <law@redhat.com>
2147         * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
2149         * tree-ssa-threadupdate.c: Include "dbgcnt.h".
2150         (register_jump_thread): Add "registered_jump_thread" debug
2151         counter support.
2152         * dbgcnt.def (registered_jump_thread): New debug counter.
2154 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
2156         * config/rs6000/rs6000.c: Include cgraph.h.
2158 2013-10-18  Teresa Johnson  <tejohnson@google.com>
2160         * tree-ssa-tail-merge.c (replace_block_by): Update edge
2161         weights during merging.
2163 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
2165         * tree-cfg.h: Rename from tree-flow.h.  Remove #includes.
2166         * tree-ssa.h: Relocate required #includes from tree-cfg.h.
2167         * tree-ssa-operands.h: Remove prototype.
2168         * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
2169         * gimple.c (virtual_operand_p): Relocate from gimple.c.
2170         * gimple.h: Add prototype.
2171         * gimple-ssa.h: Include tree-ssa-operands.h.
2172         * tree-dump.c: Add tree-cfg.h to include list.
2173         * tree-ssa-alias.c: Add ipa-reference.h to include list.
2174         * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
2175         * config/i386/i386.c: Don't include tree-flow.h.
2176         * config/rs6000/rs6000.c: Likewise.
2178 2013-10-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2180         * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
2182 2013-10-18  Richard Biener  <rguenther@suse.de>
2184         * stor-layout.c (layout_type): Do not change TYPE_PRECISION
2185         or TYPE_UNSIGNED of integral types.
2186         (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
2187         NULL_TREE for zero-precision integral types.
2189 2013-10-18  James Greenhalgh  <james.greenhalgh@arm.com>
2191         * config/aarch64/arm_neon.h
2192         (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
2194 2013-10-17  Sriraman Tallam  <tmsriram@google.com>
2196         PR target/57756
2197         * opth-gen.awk: Define target_flags_explicit.
2199 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
2201         * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
2202         fields to the reg_addr array that describes the valid addressing
2203         mode for any register, general purpose registers, floating point
2204         registers, and Altivec registers.
2205         (FIRST_RELOAD_REG_CLASS): Likewise.
2206         (LAST_RELOAD_REG_CLASS): Likewise.
2207         (struct reload_reg_map_type): Likewise.
2208         (reload_reg_map_type): Likewise.
2209         (RELOAD_REG_VALID): Likewise.
2210         (RELOAD_REG_MULTIPLE): Likewise.
2211         (RELOAD_REG_INDEXED): Likewise.
2212         (RELOAD_REG_OFFSET): Likewise.
2213         (RELOAD_REG_PRE_INCDEC): Likewise.
2214         (RELOAD_REG_PRE_MODIFY): Likewise.
2215         (reg_addr): Likewise.
2216         (mode_supports_pre_incdec_p): New helper functions to say whether
2217         a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
2218         (mode_supports_pre_modify_p): Likewise.
2219         (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
2220         print the valid address mode bits for each mode.
2221         (rs6000_debug_print_mode): Likewise.
2222         (rs6000_debug_reg_global): Likewise.
2223         (rs6000_setup_reg_addr_masks): New function to set up the address
2224         mask bits for each type.
2225         (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
2226         Call rs6000_setup_reg_addr_masks to set up the address mask bits.
2227         (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
2228         mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
2229         PRE_MODIFY are supported.
2230         (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
2231         registers, instead of {src,dest}_av_p.
2232         (rs6000_print_options_internal): Tweak the debug output slightly.
2234 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
2236         * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
2237         isa attribute.
2239 2013-10-17  Andrew MacLeod  <amacleod@redhat.com>
2241         * tree-flow.h (struct omp_region): Move to omp-low.c.
2242         Remove omp_ prototypes and variables.
2243         * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
2244         (copy_var_decl): Relocate prototype from tree-flow.h.
2245         * gimple.c (copy_var_decl): Relocate from omp-low.c.
2246         * tree.h: Move prototype to omp-low.h.
2247         * omp-low.h: New File.  Relocate prototypes here.
2248         * omp-low.c (struct omp_region): Make local here.
2249         (root_omp_region): Make static.
2250         (copy_var_decl) Move to gimple.c.
2251         (new_omp_region): Make static.
2252         (make_gimple_omp_edges): New.  Refactored from tree-cfg.c make_edges.
2253         * tree-cfg.c: Include omp-low.h.
2254         (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
2255         * gimplify.c: Include omp-low.h.
2256         * tree-parloops.c: Likewise.
2258 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
2260         * config/i386/i386.c (ix86_fixup_binary_operands): When both source
2261         operands are in memory, prefer to force non-matched operand 1 to
2262         the register.
2264 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
2266         PR target/58673
2267         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
2268         restrict TImode addresses to single indirect registers if both
2269         -mquad-memory and -mvsx-timode are used.
2270         (rs6000_output_move_128bit): Use quad_load_store_p to determine if
2271         we should emit load/store quad.  Remove using %y for quad memory
2272         addresses.
2274         * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
2275         constraints to allow load/store quad on machines where TImode is
2276         not allowed in VSX registers.  Use 'n' instead of 'F' constraint
2277         for TImode to load integer constants.
2279 2013-10-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2281         * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
2283 2013-10-17  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2285         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
2286         handling of STACK_REG.
2288 2013-10-17  Richard Biener  <rguenther@suse.de>
2290         PR tree-optimization/58143
2291         * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
2292         New function.
2293         (rewrite_to_defined_overflow): Likewise.
2294         (move_computations_dom_walker::before_dom): Rewrite stmts
2295         with undefined signed overflow that are not always executed
2296         into unsigned arithmetic.
2298 2013-10-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
2300         PR target/57756
2301         * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
2302         explicit isa flag to be an options variable, instead of using
2303         global_options_set.  Remove define from rs6000.h.
2304         * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
2306         * config/rs6000/rs6000.c (rs6000_option_override_internal):
2307         Initialize rs6000_isa_flags_explicit.
2308         (rs6000_function_specific_save): Add gcc_options* parameter, so
2309         that the powerpc builds after the 2013-10-15 changes.
2310         (rs6000_function_specific_restore): Likewise.
2312 2013-10-16  DJ Delorie  <dj@redhat.com>
2314         * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
2315         op is a REG before checking REGNO.
2316         (rl78_alloc_physical_registers): Verify pattern is a SET before
2317         checking SET_SRC.
2319 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2321         * gcc/config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
2322         endianness.
2323         (vec_unpacks_lo_v4sf): Likewise.
2324         (vec_unpacks_float_hi_v4si): Likewise.
2325         (vec_unpacks_float_lo_v4si): Likewise.
2326         (vec_unpacku_float_hi_v4si): Likewise.
2327         (vec_unpacku_float_lo_v4si): Likewise.
2329 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2331         * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
2332         (vsx_concat_v2sf): Likewise.
2334 2013-10-16  James Greenhalgh  <james.greenhalgh@arm.com>
2336         * config/aarch64/aarch64.md
2337         (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
2339 2013-10-16  Andrew MacLeod  <amacleod@redhat.com>
2341         PR tree-optimization/58697
2342         * cfgloop.c (get_estimated_loop_iterations_int): Rename from
2343         estimated_loop_iterations_int.
2344         (max_stmt_executions_int): Call get_max_loop_iterations_int.
2345         (get_max_loop_iterations_int): New.  HWINT version of
2346         get_max_loop_iterations.
2347         * cfgloop.h: Add prototypes.
2348         * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
2349         * loop-unroll.c (decide_peel_once_rolling): Call
2350         get_estimated_loop_iterations_int.
2351         * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
2352         * tree-ssa-loop-niter.h: Tweak prototypes.
2354 2013-10-16  David Malcolm  <dmalcolm@redhat.com>
2356         * gengtype-parse.c (struct_field_seq): Ignore access-control
2357         keywords ("public:" etc).
2359 2013-10-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2361         * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
2362         FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
2364 2013-10-16  Yvan Roux  <yvan.roux@linaro.org>
2366         * config/arm/arm.opt (mlra): New option.
2367         * config/arm/arm.c (arm_lra_p): New function.
2368         (TARGET_LRA_P): Define.
2370 2013-10-16  Paulo Matos  <pmatos@broadcom.com>
2372         * tree-core.h (tree_code_name): Remove.
2373         * tree.h (get_tree_code_name): New prototype.
2374         * tree.c (tree_code_name): Make static.
2375         (get_tree_code_name): New function.
2376         (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
2377         tree_class_check_failed, tree_range_check_failed,
2378         tree_not_class_check_failed, omp_clause_check_failed,
2379         tree_contains_struct_check_failed, tree_operand_check_failed): Use new
2380         wrapper get_tree_code_name instead of calling tree_code_name directly.
2381         * tree-vrp.c (dump_asserts_for): Likewise.
2382         * tree-dump.c (dequeue_and_dump): Likewise.
2383         * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
2384         * tree-pretty-print.h (pp_unsupported_tree): Likewise.
2385         * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
2386         * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
2387         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
2388         dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
2389         dump_gimple_omp_for): Likewise.
2390         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
2391         * tree-ssa-pre.c (print_pre_expr): Likewise.
2392         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
2393         * print-tree.c (print_node_brief, print_node): Likewise.
2394         * gimple.c (gimple_check_failed): Likewise.
2395         * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
2396         * config/frv/frv.c (frv_init_cumulative_args): Likewise.
2397         * config/mep/mep.c (mep_validate_vliw): Likewise.
2398         * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
2399         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
2401 2013-10-16 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
2403         * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
2404         for AMD bdver3.
2406 2013-10-16  Hans-Peter Nilsson  <hp@axis.com>
2408         * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
2409         (MULTILIB_MATCHES): Add multilib for -march=v8.
2411 2013-10-15 Sriraman Tallam  <tmsriram@google.com>
2413         PR target/57756
2414         * optc-save-gen.awk: Add extra parameter to the save and restore
2415         target calls.
2416         * opth-gen.awk: Generate new TARGET_* macros  to accept a parameter.
2417         * tree.c (build_optimization_node): New parameter.  Add extra parameter
2418         to call to cl_optimization_save.
2419         (build_target_option_node): New parameter. Add extra parameter
2420         to call to cl_target_option_save.
2421         * tree.h (build_optimization_node): New parameter.
2422         (build_target_option_node): New parameter.
2423         * c-family/c-common.c (handle_optimize_attribute): Fix calls to
2424         build_optimization_node and build_target_option_node.
2425         * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
2426         (handle_pragma_push_options): Ditto.
2427         * toplev.c (process_options): Ditto.
2428         * opts.c (init_options_struct): Check for opts_set non-null.
2429         * target.def (target_option.save): New parameter.
2430         (target_option.restore): New parameter.
2431         * tm.texi: Generate.
2432         * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
2433         (ix86_pragma_target_parse): Ditto.
2434         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
2435         parameters.
2436         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
2437         to  build_optimization_node and build_target_option_node.
2438         (rs6000_valid_attribute_p): Ditto.
2439         (rs6000_pragma_target_parse): Ditto.
2440         * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
2441         data.
2442         * config/i386/i386.h:
2443         TARGET_64BIT_P: New Macro
2444         TARGET_MMX_P: New Macro.
2445         TARGET_3DNOW_P: New Macro.
2446         TARGET_3DNOW_A_P: New Macro.
2447         TARGET_SSE_P: New Macro.
2448         TARGET_SSE2_P: New Macro.
2449         TARGET_SSE3_P: New Macro.
2450         TARGET_SSSE3_P: New Macro.
2451         TARGET_SSE4_1_P: New Macro.
2452         TARGET_SSE4_2_P: New Macro.
2453         TARGET_AVX_P: New Macro.
2454         TARGET_AVX2_P: New Macro.
2455         TARGET_AVX512F_P: New Macro.
2456         TARGET_AVX512PF_P: New Macro.
2457         TARGET_AVX512ER_P: New Macro.
2458         TARGET_AVX512CD_P: New Macro.
2459         TARGET_FMA_P: New Macro.
2460         TARGET_SSE4A_P: New Macro.
2461         TARGET_FMA4_P: New Macro.
2462         TARGET_XOP_P: New Macro.
2463         TARGET_LWP_P: New Macro.
2464         TARGET_ABM_P: New Macro.
2465         TARGET_BMI_P: New Macro.
2466         TARGET_BMI2_P: New Macro.
2467         TARGET_LZCNT_P: New Macro.
2468         TARGET_TBM_P: New Macro.
2469         TARGET_POPCNT_P: New Macro.
2470         TARGET_SAHF_P: New Macro.
2471         TARGET_MOVBE_P: New Macro.
2472         TARGET_CRC32_P: New Macro.
2473         TARGET_AES_P: New Macro.
2474         TARGET_PCLMUL_P: New Macro.
2475         TARGET_CMPXCHG16B_P: New Macro.
2476         TARGET_FSGSBASE_P: New Macro.
2477         TARGET_RDRND_P: New Macro.
2478         TARGET_F16C_P: New Macro.
2479         TARGET_RTM_P: New Macro.
2480         TARGET_HLE_P: New Macro.
2481         TARGET_RDSEED_P: New Macro.
2482         TARGET_PRFCHW_P: New Macro.
2483         TARGET_ADX_P: New Macro.
2484         TARGET_FXSR_P: New Macro.
2485         TARGET_XSAVE_P: New Macro.
2486         TARGET_XSAVEOPT_P: New Macro.
2487         TARGET_LP64_P: New Macro.
2488         TARGET_X32_P: New Macro.
2489         TARGET_FPMATH_DEFAULT_P: New Macro.
2490         TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
2491         * config/i386/i386.c (ix86_option_override_internal): New parameters.
2492         opts and opts_set.
2493         Change ix86_tune_string to access opts->x_ix86_tune_string.
2494         Change ix86_isa_flags to access opts->x_ix86_isa_flags.
2495         Change ix86_arch_string to access opts->x_ix86_arch_string.
2496         Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
2497         Change ix86_pmode to access opts->x_ix86_pmode.
2498         Change ix86_abi to access opts->x_ix86_abi.
2499         Change ix86_cmodel to access opts->x_ix86_cmodel.
2500         Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
2501         Change ix86_isa_flags_explicit to access
2502         opts->x_ix86_isa_flags_explicit.
2503         Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
2504         Change ix86_regparm to access opts->x_ix86_regparm.
2505         Change ix86_branch_cost to access opts->x_ix86_branch_cost.
2506         Change ix86_preferred_stack_boundary_arg to access
2507         opts->x_ix86_preferred_stack_boundary_arg.
2508         Change ix86_force_align_arg_pointer to access
2509         opts->x_ix86_force_align_arg_pointer.
2510         Change ix86_incoming_stack_boundar_arg to access
2511         opts->x_ix86_incoming_stack_boundar_arg.
2512         Change ix86_fpmath to access opts->x_ix86_fpmath.
2513         Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
2514         Change ix86_recip_name to access opts->x_ix86_recip_name.
2515         Change ix86_stack_protector_guard to access
2516         opts->x_ix86_stack_protector_guard.
2517         Change ix86_tune_memcpy_strategy to access
2518         opts->x_ix86_tune_memcpy_strategy.
2519         Change ix86_tune_memset_strategy to access
2520         opts->x_ix86_tune_memset_strategy.
2521         Change global_options to access opts.
2522         Change global_options_set to access opts_set.
2523         Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
2524         Change TARGET_MMX to TARGET_MMX_P (opts->...).
2525         Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
2526         Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
2527         Change TARGET_SSE to TARGET_SSE_P (opts->...).
2528         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
2529         Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
2530         Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
2531         Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
2532         Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
2533         Change TARGET_AVX to TARGET_AVX_P (opts->...).
2534         Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
2535         Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
2536         Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
2537         Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
2538         Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
2539         Change TARGET_FMA to TARGET_FMA_P (opts->...).
2540         Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
2541         Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
2542         Change TARGET_XOP to TARGET_XOP_P (opts->...).
2543         Change TARGET_LWP to TARGET_LWP_P (opts->...).
2544         Change TARGET_ABM to TARGET_ABM_P (opts->...).
2545         Change TARGET_BMI to TARGET_BMI_P (opts->...).
2546         Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
2547         Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
2548         Change TARGET_TBM to TARGET_TBM_P (opts->...).
2549         Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
2550         Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
2551         Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
2552         Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
2553         Change TARGET_AES to TARGET_AES_P (opts->...).
2554         Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
2555         Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
2556         Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
2557         Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
2558         Change TARGET_F16C to TARGET_F16C_P (opts->...).
2559         Change TARGET_RTM to TARGET_RTM_P (opts->...).
2560         Change TARGET_HLE to TARGET_HLE_P (opts->...).
2561         Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
2562         Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
2563         Change TARGET_ADX to TARGET_ADX_P (opts->...).
2564         Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
2565         Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
2566         Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
2567         Change TARGET_LP64 to TARGET_LP64_P (opts->...).
2568         Change TARGET_X32 to TARGET_X32_P (opts->...).
2569         Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
2570         Change TARGET_FLOAT_RETURNS_IN_80387 to
2571         TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
2572         (ix86_function_specific_save): New parameter. Use opts-> fields
2573         to replace global fields.
2574         (ix86_function_specific_restore): Ditto.
2575         (ix86_valid_target_attribute_inner_p): New parameters.
2576         Fix recursive call.
2577         Fix call to ix86_handle_option and set_option.
2578         (ix86_valid_target_attribute_tree): New parameters.
2579         Change global_options to access opts.
2580         Change global_options_set to access opts_set.
2581         Fix call to ix86_valid_target_attribute_inner_p.
2582         Change ix86_tune_string to access opts->x_ix86_tune_string.
2583         Change ix86_arch_string to access opts->x_ix86_arch_string.
2584         Change ix86_fpmath to access opts->x_ix86_fpmath
2585         Fix call to ix86_option_override_internal.
2586         Fix call to ix86_add_new_builtins.
2587         Fix calls to build_optimization_node and build_target_option_node.
2588         (ix86_valid_target_attribute_p): Remove access to global_options.
2589         Use new gcc_options structure func_options.
2590         Fix call to ix86_valid_target_attribute_tree.
2591         Fix call to  build_optimization_node.
2592         (get_builtin_code_for_version): Fix call to
2593         ix86_valid_target_attribute_tree.
2595 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
2597         * Makefile.in (PICFLAG): New.
2598         (enable_host_shared): New.
2599         (INTERNAL_CFLAGS): Use PICFLAG.
2600         (LIBIBERTY): Use pic build of libiberty.a if configured with
2601         --enable-host-shared.
2602         * configure.ac: Add --enable-host-shared, setting up new
2603         PICFLAG variable.
2604         * configure: Regenerate.
2605         * doc/install.texi (--enable-shared): Add note contrasting it with ...
2606         (--enable-host-shared): New option.
2608 2013-10-15  Richard Biener  <rguenther@suse.de>
2610         * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
2611         for built-in functions.
2613 2013-10-15  Zhenqiang Chen  <zhenqiang.chen@arm.com>
2615         * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
2616         (optimize_range_tests_1): New function,
2617         extracted from optimize_range_tests.
2618         (optimize_range_tests_xor): Similarly.
2619         (optimize_range_tests_diff): New function.
2620         (optimize_range_tests): Use optimize_range_tests_1.
2622 2013-10-15  Cong Hou  <congh@google.com>
2624         * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
2625         requirement of the reduction pattern so that one operand of the
2626         reduction operation can come from outside of the loop.
2628 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
2630         * config/arm/neon-schedgen.ml: Remove.
2631         * config/arm/cortex-a9-neon.md: Remove comment regarding
2632         neon-schedgen.ml.
2634 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
2636         * config/arm/types: Remove old neon types.
2638 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
2640         * config/arm/cortex-a7.md
2641         (cortex_a7_neon_type): New.
2642         (cortex_a7_neon_mul): Update for new types.
2643         (cortex_a7_neon_mla): Likewise.
2644         (cortex_a7_neon): Likewise.
2646 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
2648         * config/arm/cortex-a15-neon.md
2649         (cortex_a15_neon_type): New,
2651         (cortex_a15_neon_int_1): Remove.
2652         (cortex_a15_neon_int_2): Likewise.
2653         (cortex_a15_neon_int_3): Likewise.
2654         (cortex_a15_neon_int_4): Likewise.
2655         (cortex_a15_neon_int_5): Likewise.
2656         (cortex_a15_neon_vqneg_vqabs): Likewise.
2657         (cortex_a15_neon_vmov): Likewise.
2658         (cortex_a15_neon_vaba): Likewise.
2659         (cortex_a15_neon_vaba_qqq): Likewise.
2660         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
2661         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
2662         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
2663         Likewise.
2664         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
2665         (cortex_a15_neon_mla_qqq_8_16): Likewise.
2666         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
2667         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
2668         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
2669         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
2670         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
2671         (cortex_a15_neon_shift_1): Likewise.
2672         (cortex_a15_neon_shift_2): Likewise.
2673         (cortex_a15_neon_shift_3): Likewise.
2674         (cortex_a15_neon_vshl_ddd): Likewise.
2675         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
2676         (cortex_a15_neon_vsra_vrsra): Likewise.
2677         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
2678         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
2679         (cortex_a15_neon_bp_3cycle): Likewise.
2680         (cortex_a15_neon_ldm_2): Likewise.
2681         (cortex_a15_neon_stm_2): Likewise.
2682         (cortex_a15_neon_mcr): Likewise.
2683         (cortex_a15_neon_mrc): Likewise.
2684         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
2685         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
2686         (cortex_a15_neon_fp_vmul_ddd): Likewise.
2687         (cortex_a15_neon_fp_vmul_qqd): Likewise.
2688         (cortex_a15_neon_fp_vmla_ddd): Likewise.
2689         (cortex_a15_neon_fp_vmla_qqq): Likewise.
2690         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
2691         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
2692         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
2693         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
2694         (cortex_a15_neon_bp_simple): Likewise.
2695         (cortex_a15_neon_bp_2cycle): Likewise.
2696         (cortex_a15_neon_bp_3cycle): Likewise.
2697         (cortex_a15_neon_vld1_1_2_regs): Likewise.
2698         (cortex_a15_neon_vld1_3_4_regs): Likewise.
2699         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
2700         (cortex_a15_neon_vld2_4_regs): Likewise.
2701         (cortex_a15_neon_vld3_vld4): Likewise.
2702         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
2703         (cortex_a15_neon_vst1_3_4_regs): Likewise.
2704         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
2705         (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
2706         (cortex_a15_neon_vst3_vst4): Rename to...
2707         (cortex_a15_neon_vst4): This, update for new attributes.
2708         (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
2709         (cortex_a15_neon_vld3_vld4_lane): Likewise.
2710         (cortex_a15_neon_vst1_vst2_lane): Likewise.
2711         (cortex_a15_neon_vst3_vst4_lane): Likewise.
2712         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
2713         (cortex_a15_neon_ldm_2): Likewise.
2714         (cortex_a15_neon_stm_2): Likewise.
2715         (cortex_a15_neon_mcr): Likewise.
2716         (cortex_a15_neon_mcr_2_mcrr): Likewise.
2717         (cortex_a15_neon_mrc): Likewise.
2718         (cortex_a15_neon_mrrc): Likewise.
2720         (cortex_a15_neon_abd): New.
2721         (cortex_a15_neon_abd_q): Likewise.
2722         (cortex_a15_neon_aba): Likewise.
2723         (cortex_a15_neon_aba_q): Likewise.
2724         (cortex_a15_neon_acc): Likewise.
2725         (cortex_a15_neon_acc_q): Likewise.
2726         (cortex_a15_neon_arith_basic): Likewise.
2727         (cortex_a15_neon_arith_complex): Likewise.
2728         (cortex_a15_neon_multiply): Likewise.
2729         (cortex_a15_neon_multiply_q): Likewise.
2730         (cortex_a15_neon_mla): Likewise.
2731         (cortex_a15_neon_mla_q): Likewise.
2732         (cortex_a15_neon_sat_mla_long): Likewise.
2733         (cortex_a15_neon_shift_acc): Likewise.
2734         (cortex_a15_neon_shift_imm_basic): Likewise.
2735         (cortex_a15_neon_shift_imm_complex): Likewise.
2736         (cortex_a15_neon_shift_reg_basic): Likewise.
2737         (cortex_a15_neon_shift_reg_basic_q): Likewise.
2738         (cortex_a15_neon_shift_reg_complex): Likewise.
2739         (cortex_a15_neon_shift_reg_complex_q): Likewise.
2740         (cortex_a15_neon_fp_negabs): Likewise
2741         (cortex_a15_neon_fp_arith): Likewise
2742         (cortex_a15_neon_fp_arith_q): Likewise
2743         (cortex_a15_neon_fp_cvt_int): Likewise
2744         (cortex_a15_neon_fp_cvt_int_q): Likewise
2745         (cortex_a15_neon_fp_cvt_16): Likewise
2746         (cortex_a15_neon_fp_mul): Likewise
2747         (cortex_a15_neon_fp_mul_q): Likewise
2748         (cortex_a15_neon_fp_mla): Likewise
2749         (cortex_a15_neon_fp_mla_q): Likewise
2750         (cortex_a15_neon_fp_recps_rsqrte): Likewise.
2751         (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
2752         (cortex_a15_neon_bitops): Likewise.
2753         (cortex_a15_neon_bitops_q): Likewise.
2754         (cortex_a15_neon_from_gp): Likewise.
2755         (cortex_a15_neon_from_gp_q): Likewise.
2756         (cortex_a15_neon_tbl3_tbl4): Likewise.
2757         (cortex_a15_neon_zip_q): Likewise.
2758         (cortex_a15_neon_to_gp): Likewise.
2759         (cortex_a15_neon_load_a): Likewise.
2760         (cortex_a15_neon_load_b): Likewise.
2761         (cortex_a15_neon_load_c): Likewise.
2762         (cortex_a15_neon_load_d): Likewise.
2763         (cortex_a15_neon_load_e): Likewise.
2764         (cortex_a15_neon_load_f): Likewise.
2765         (cortex_a15_neon_store_a): Likewise.
2766         (cortex_a15_neon_store_b): Likewise.
2767         (cortex_a15_neon_store_c): Likewise.
2768         (cortex_a15_neon_store_d): Likewise.
2769         (cortex_a15_neon_store_e): Likewise.
2770         (cortex_a15_neon_store_f): Likewise.
2771         (cortex_a15_neon_store_g): Likewise.
2772         (cortex_a15_neon_store_h): Likewise.
2773         (cortex_a15_vfp_to_from_gp): Likewise.
2775 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
2777         * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
2779         (cortex_a9_neon_vshl_ddd): Remove.
2780         (cortex_a9_neon_vst3_vst4): Likewise.
2781         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
2783         (cortex_a9_neon_bit_ops_q): New.
2785         (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
2786         (cortex_a9_neon_int_2): Likewise.
2787         (cortex_a9_neon_int_3): Likewise.
2788         (cortex_a9_neon_int_4): Likewise.
2789         (cortex_a9_neon_int_5): Likewise.
2790         (cortex_a9_neon_vqneg_vqabs): Likewise.
2791         (cortex_a9_neon_vmov): Likewise.
2792         (cortex_a9_neon_vaba): Likewise.
2793         (cortex_a9_neon_vaba_qqq): Likewise.
2794         (cortex_a9_neon_shift_1): Likewise.
2795         (cortex_a9_neon_shift_2): Likewise.
2796         (cortex_a9_neon_shift_3): Likewise.
2797         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
2798         (cortex_a9_neon_vsra_vrsra): Likewise.
2799         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
2800         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
2801         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
2802         Likewise.
2803         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
2804         (cortex_a9_neon_mla_qqq_8_16): Likewise.
2805         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
2806         Likewise.
2807         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
2808         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
2809         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
2810         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
2811         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
2812         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
2813         (cortex_a9_neon_fp_vsum): Likewise.
2814         (cortex_a9_neon_fp_vmul_ddd): Likewise.
2815         (cortex_a9_neon_fp_vmul_qqd): Likewise.
2816         (cortex_a9_neon_fp_vmla_ddd): Likewise.
2817         (cortex_a9_neon_fp_vmla_qqq): Likewise.
2818         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
2819         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
2820         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
2821         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
2822         (cortex_a9_neon_bp_simple): Likewise.
2823         (cortex_a9_neon_bp_2cycle): Likewise.
2824         (cortex_a9_neon_bp_3cycle): Likewise.
2825         (cortex_a9_neon_ldr): Likewise.
2826         (cortex_a9_neon_str): Likewise.
2827         (cortex_a9_neon_vld1_1_2_regs): Likewise.
2828         (cortex_a9_neon_vld1_3_4_regs): Likewise.
2829         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
2830         (cortex_a9_neon_vld2_4_regs): Likewise.
2831         (cortex_a9_neon_vld3_vld4): Likewise.
2832         (cortex_a9_neon_vld1_vld2_lane): Likewise.
2833         (cortex_a9_neon_vld3_vld4_lane): Likewise.
2834         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
2835         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
2836         (cortex_a9_neon_vst1_3_4_regs): Likewise.
2837         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
2838         (cortex_a9_neon_vst1_vst2_lane): Likewise.
2839         (cortex_a9_neon_vst3_vst4_lane): Likewise.
2840         (cortex_a9_neon_mcr): Likewise.
2841         (cortex_a9_neon_mcr_2_mcrr): Likewise.
2842         (cortex_a9_neon_mrc): Likewise.
2843         (cortex_a9_neon_mrrc): Likewise.
2845 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
2847         * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
2849         (cortex_a8_neon_vshl_ddd): Remove.
2850         (cortex_a8_neon_vst3_vst4): Likewise.
2851         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
2853         (cortex_a8_neon_bit_ops_q): New.
2855         (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
2856         (cortex_a8_neon_int_2): Likewise..
2857         (cortex_a8_neon_int_3): Likewise.
2858         (cortex_a8_neon_int_5): Likewise.
2859         (cortex_a8_neon_vqneg_vqabs): Likewise.
2860         (cortex_a8_neon_int_4): Likewise.
2861         (cortex_a8_neon_vaba): Likewise.
2862         (cortex_a8_neon_vaba_qqq): Likewise.
2863         (cortex_a8_neon_shift_1): Likewise.
2864         (cortex_a8_neon_shift_2): Likewise.
2865         (cortex_a8_neon_shift_3): Likewise.
2866         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
2867         (cortex_a8_neon_vsra_vrsra): Likewise.
2868         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
2869         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
2870         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
2871         Likewise.
2872         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
2873         (cortex_a8_neon_mla_qqq_8_16): Likewise.
2874         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
2875         Likewise.
2876         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
2877         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
2878         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
2879         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
2880         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
2881         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
2882         (cortex_a8_neon_fp_vsum): Likewise.
2883         (cortex_a8_neon_fp_vmul_ddd): Likewise.
2884         (cortex_a8_neon_fp_vmul_qqd): Likewise.
2885         (cortex_a8_neon_fp_vmla_ddd): Likewise.
2886         (cortex_a8_neon_fp_vmla_qqq): Likewise.
2887         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
2888         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
2889         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
2890         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
2891         (cortex_a8_neon_bp_simple): Likewise.
2892         (cortex_a8_neon_bp_2cycle): Likewise.
2893         (cortex_a8_neon_bp_3cycle): Likewise.
2894         (cortex_a8_neon_ldr): Likewise.
2895         (cortex_a8_neon_str): Likewise.
2896         (cortex_a8_neon_vld1_1_2_regs): Likewise.
2897         (cortex_a8_neon_vld1_3_4_regs): Likewise.
2898         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
2899         (cortex_a8_neon_vld2_4_regs): Likewise.
2900         (cortex_a8_neon_vld3_vld4): Likewise.
2901         (cortex_a8_neon_vld1_vld2_lane): Likewise.
2902         (cortex_a8_neon_vld3_vld4_lane): Likewise.
2903         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
2904         (cortex_a8_neon_vst1_3_4_regs): Likewise.
2905         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
2906         (cortex_a8_neon_vst1_vst2_lane): Likewise.
2907         (cortex_a8_neon_vst3_vst4_lane): Likewise.
2908         (cortex_a8_neon_mcr): Likewise.
2909         (cortex_a8_neon_mcr_2_mcrr): Likewise.
2910         (cortex_a8_neon_mrc): Likewise.
2911         (cortex_a8_neon_mrrc): Likewise.
2913 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
2915         * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
2916         (fp): New.
2917         * config/aarch64/aarch64-simd.md (neon_type): Remove.
2918         (aarch64_simd_dup<mode>): Add "type" attribute.
2919         (aarch64_dup_lane<mode>): Likewise.
2920         (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
2921         (*aarch64_simd_mov<mode>): Likewise.
2922         (aarch64_simd_mov_from_<mode>low): Likewise.
2923         (aarch64_simd_mov_from_<mode>high): Likewise.
2924         (orn<mode>3): Likewise.
2925         (bic<mode>3): Likewise.
2926         (add<mode>3): Likewise.
2927         (sub<mode>3): Likewise.
2928         (mul<mode>3): Likewise.
2929         (*aarch64_mul3_elt<mode>): Likewise.
2930         (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
2931         (*aarch64_mul3_elt_to_128df): Likewise.
2932         (*aarch64_mul3_elt_to_64v2df): Likewise.
2933         (neg<mode>2): Likewise.
2934         (abs<mode>2): Likewise.
2935         (abd<mode>_3): Likewise.
2936         (aba<mode>_3): Likewise.
2937         (fabd<mode>_3): Likewise.
2938         (*fabd_scalar<mode>3): Likewise.
2939         (and<mode>3): Likewise.
2940         (ior<mode>3): Likewise.
2941         (xor<mode>3): Likewise.
2942         (one_cmpl<mode>2): Likewise.
2943         (aarch64_simd_vec_set<mode>): Likewise.
2944         (aarch64_simd_lshr<mode>): Likewise.
2945         (aarch64_simd_ashr<mode>): Likewise.
2946         (aarch64_simd_imm_shl<mode>): Likewise.
2947         (aarch64_simd_reg_sshl<mode): Likewise.
2948         (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
2949         (aarch64_simd_reg_shl<mode>_signed): Likewise.
2950         (aarch64_simd_vec_setv2di): Likewise.
2951         (aarch64_simd_vec_set<mode>): Likewise.
2952         (aarch64_mla<mode>): Likewise.
2953         (*aarch64_mla_elt<mode>): Likewise.
2954         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
2955         (aarch64_mls<mode>): Likewise.
2956         (*aarch64_mls_elt<mode>): Likewise.
2957         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
2958         (<su><maxmin><mode>3): Likewise.
2959         (move_lo_quad_<mode>): Likewise.
2960         (aarch64_simd_move_hi_quad_<mode>): Likewise.
2961         (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
2962         (vec_pack_trunc_<mode>): Likewise.
2963         (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
2964         (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
2965         (*aarch64_<su>mlal_lo<mode>): Likewise.
2966         (*aarch64_<su>mlal_hi<mode>): Likewise.
2967         (*aarch64_<su>mlsl_lo<mode>): Likewise.
2968         (*aarch64_<su>mlsl_hi<mode>): Likewise.
2969         (*aarch64_<su>mlal<mode>): Likewise.
2970         (*aarch64_<su>mlsl<mode>): Likewise.
2971         (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
2972         (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
2973         (add<mode>3): Likewise.
2974         (sub<mode>3): Likewise.
2975         (mul<mode>3): Likewise.
2976         (div<mode>3): Likewise.
2977         (neg<mode>2): Likewise.
2978         (abs<mode>2): Likewise.
2979         (fma<mode>4): Likewise.
2980         (*aarch64_fma4_elt<mode>): Likewise.
2981         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
2982         (*aarch64_fma4_elt_to_128df): Likewise.
2983         (*aarch64_fma4_elt_to_64v2df): Likewise.
2984         (fnma<mode>4): Likewise.
2985         (*aarch64_fnma4_elt<mode>): Likewise.
2986         (*aarch64_fnma4_elt_<vswap_width_name><mode>
2987         (*aarch64_fnma4_elt_to_128df): Likewise.
2988         (*aarch64_fnma4_elt_to_64v2df): Likewise.
2989         (<frint_pattern><mode>2): Likewise.
2990         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
2991         (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
2992         (vec_unpacks_lo_v4sf): Likewise.
2993         (aarch64_float_extend_lo_v2df): Likewise.
2994         (vec_unpacks_hi_v4sf): Likewise.
2995         (aarch64_float_truncate_lo_v2sf): Likewise.
2996         (aarch64_float_truncate_hi_v4sf): Likewise.
2997         (aarch64_vmls<mode>): Likewise.
2998         (<su><maxmin><mode>3): Likewise.
2999         (<maxmin_uns><mode>3): Likewise.
3000         (reduc_<sur>plus_<mode>): Likewise.
3001         (reduc_<sur>plus_v2di): Likewise.
3002         (reduc_<sur>plus_v2si): Likewise.
3003         (reduc_<sur>plus_<mode>): Likewise.
3004         (aarch64_addpv4sf): Likewise.
3005         (clz<mode>2): Likewise.
3006         (reduc_<maxmin_uns>_<mode>): Likewise.
3007         (reduc_<maxmin_uns>_v2di): Likewise.
3008         (reduc_<maxmin_uns>_v2si): Likewise.
3009         (reduc_<maxmin_uns>_<mode>): Likewise.
3010         (reduc_<maxmin_uns>_v4sf): Likewise.
3011         (aarch64_simd_bsl<mode>_internal): Likewise.
3012         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
3013         (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
3014         (aarch64_get_lane<mode>): Likewise.
3015         (*aarch64_combinez<mode>): Likewise.
3016         (aarch64_combine<mode>): Likewise.
3017         (aarch64_simd_combine<mode>): Likewise.
3018         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
3019         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
3020         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
3021         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
3022         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
3023         (aarch64_<sur>h<addsub><mode>): Likewise.
3024         (aarch64_<sur><addsub>hn<mode>): Likewise.
3025         (aarch64_<sur><addsub>hn2<mode>): Likewise.
3026         (aarch64_pmul<mode>): Likewise.
3027         (aarch64_<su_optab><optab><mode>): Likewise.
3028         (aarch64_<sur>qadd<mode>): Likewise.
3029         (aarch64_sqmovun<mode>): Likewise.
3030         (aarch64_<sur>qmovn<mode>): Likewise.
3031         (aarch64_s<optab><mode>): Likewise.
3032         (aarch64_sq<r>dmulh<mode>): Likewise.
3033         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
3034         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
3035         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
3036         (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
3037         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
3038         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
3039         (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
3040         (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
3041         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
3042         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
3043         (aarch64_sqdmull<mode>): Likewise.
3044         (aarch64_sqdmull_lane<mode>_internal): Likewise.
3045         (aarch64_sqdmull_n<mode>): Likewise.
3046         (aarch64_sqdmull2<mode>_internal): Likewise.
3047         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
3048         (aarch64_sqdmull2_n<mode>_internal): Likewise.
3049         (aarch64_<sur>shl<mode>): Likewise.
3050         (aarch64_<sur>q<r>shl<mode>
3051         (aarch64_<sur>shll_n<mode>): Likewise.
3052         (aarch64_<sur>shll2_n<mode>): Likewise.
3053         (aarch64_<sur>shr_n<mode>): Likewise.
3054         (aarch64_<sur>sra_n<mode>): Likewise.
3055         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
3056         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
3057         (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
3058         (aarch64_cm<optab><mode>): Likewise.
3059         (aarch64_cm<optab>di): Likewise.
3060         (aarch64_cm<optab><mode>): Likewise.
3061         (aarch64_cm<optab>di): Likewise.
3062         (aarch64_cmtst<mode>): Likewise.
3063         (aarch64_cmtstdi): Likewise.
3064         (aarch64_cm<optab><mode>): Likewise.
3065         (*aarch64_fac<optab><mode>): Likewise.
3066         (aarch64_addp<mode>): Likewise.
3067         (aarch64_addpdi): Likewise.
3068         (sqrt<mode>2): Likewise.
3069         (vec_load_lanesoi<mode>): Likewise.
3070         (vec_store_lanesoi<mode>): Likewise.
3071         (vec_load_lanesci<mode>): Likewise.
3072         (vec_store_lanesci<mode>): Likewise.
3073         (vec_load_lanesxi<mode>): Likewise.
3074         (vec_store_lanesxi<mode>): Likewise.
3075         (*aarch64_mov<mode>): Likewise.
3076         (aarch64_ld2<mode>_dreg): Likewise.
3077         (aarch64_ld2<mode>_dreg): Likewise.
3078         (aarch64_ld3<mode>_dreg): Likewise.
3079         (aarch64_ld3<mode>_dreg): Likewise.
3080         (aarch64_ld4<mode>_dreg): Likewise.
3081         (aarch64_ld4<mode>_dreg): Likewise.
3082         (aarch64_tbl1<mode>): Likewise.
3083         (aarch64_tbl2v16qi): Likewise.
3084         (aarch64_combinev16qi): Likewise.
3085         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
3086         (aarch64_st2<mode>_dreg): Likewise.
3087         (aarch64_st2<mode>_dreg): Likewise.
3088         (aarch64_st3<mode>_dreg): Likewise.
3089         (aarch64_st3<mode>_dreg): Likewise.
3090         (aarch64_st4<mode>_dreg): Likewise.
3091         (aarch64_st4<mode>_dreg): Likewise.
3092         (*aarch64_simd_ld1r<mode>): Likewise.
3093         (aarch64_frecpe<mode>): Likewise.
3094         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
3095         (aarch64_frecps<mode>): Likewise.
3097 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
3099         * config/arm/iterators.md (V_elem_ch): New.
3100         (q): Likewise.
3101         (VQH_type): Likewise.
3102         * config/arm/arm.md (is_neon_type): New.
3103         (conds): Use is_neon_type.
3104         (anddi3_insn): Update type attribute.
3105         (xordi3_insn): Likewise.
3106         (one_cmpldi2): Likewise.
3107         * gcc/config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
3108         * gcc/config/arm/neon.md (neon_mov): Update type attribute.
3109         (*movmisalign<mode>_neon_store): Likewise.
3110         (*movmisalign<mode>_neon_load): Likewise.
3111         (vec_set<mode>_internal): Likewise.
3112         (vec_set<mode>_internal): Likewise.
3113         (vec_setv2di_internal): Likewise.
3114         (vec_extract<mode>): Likewise.
3115         (vec_extract<mode>): Likewise.
3116         (vec_extractv2di): Likewise.
3117         (*add<mode>3_neon): Likewise.
3118         (adddi3_neon): Likewise.
3119         (*sub<mode>3_neon): Likewise.
3120         (subdi3_neon): Likewise.
3121         (fma<VCVTF:mode>4): Likewise.
3122         (fma<VCVTF:mode>4_intrinsic): Likewise.
3123         (*fmsub<VCVTF:mode>4): Likewise.
3124         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
3125         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
3126         (ior<mode>3): Likewise.
3127         (and<mode>3): Likewise.
3128         (orn<mode>3_neon): Likewise.
3129         (orndi3_neon): Likewise.
3130         (bic<mode>3_neon): Likewise.
3131         (bicdi3_neon): Likewise.
3132         (xor<mode>3): Likewise.
3133         (one_cmpl<mode>2): Likewise.
3134         (abs<mode>2): Likewise.
3135         (neg<mode>2): Likewise.
3136         (negdi2_neon): Likewise.
3137         (*umin<mode>3_neon): Likewise.
3138         (*umax<mode>3_neon): Likewise.
3139         (*smin<mode>3_neon): Likewise.
3140         (*smax<mode>3_neon): Likewise.
3141         (vashl<mode>3): Likewise.
3142         (vashr<mode>3_imm): Likewise.
3143         (vlshr<mode>3_imm): Likewise.
3144         (ashl<mode>3_signed): Likewise.
3145         (ashl<mode>3_unsigned): Likewise.
3146         (neon_load_count): Likewise.
3147         (ashldi3_neon_noclobber): Likewise.
3148         (ashldi3_neon): Likewise.
3149         (signed_shift_di3_neon): Likewise.
3150         (unsigned_shift_di3_neon): Likewise.
3151         (ashrdi3_neon_imm_noclobber): Likewise.
3152         (lshrdi3_neon_imm_noclobber): Likewise.
3153         (<shift>di3_neon): Likewise.
3154         (widen_ssum<mode>3): Likewise.
3155         (widen_usum<mode>3): Likewise.
3156         (quad_halves_<code>v4si): Likewise.
3157         (quad_halves_<code>v4sf): Likewise.
3158         (quad_halves_<code>v8hi): Likewise.
3159         (quad_halves_<code>v16qi): Likewise.
3160         (reduc_splus_v2di): Likewise.
3161         (neon_vpadd_internal<mode>): Likewise.
3162         (neon_vpsmin<mode>): Likewise.
3163         (neon_vpsmax<mode>): Likewise.
3164         (neon_vpumin<mode>): Likewise.
3165         (neon_vpumax<mode>): Likewise.
3166         (*ss_add<mode>_neon): Likewise.
3167         (*us_add<mode>_neon): Likewise.
3168         (*ss_sub<mode>_neon): Likewise.
3169         (*us_sub<mode>_neon): Likewise.
3170         (neon_vadd<mode>_unspec): Likewise.
3171         (neon_vaddl<mode>): Likewise.
3172         (neon_vaddw<mode>): Likewise.
3173         (neon_vhadd<mode>): Likewise.
3174         (neon_vqadd<mode>): Likewise.
3175         (neon_vaddhn<mode>): Likewise.
3176         (neon_vmul<mode>): Likewise.
3177         (neon_vfms<VCVTF:mode>): Likewise.
3178         (neon_vmlal<mode>): Likewise.
3179         (neon_vmls<mode>): Likewise.
3180         (neon_vmlsl<mode>): Likewise.
3181         (neon_vqdmulh<mode>): Likewise.
3182         (neon_vqdmlal<mode>): Likewise.
3183         (neon_vqdmlsl<mode>): Likewise.
3184         (neon_vmull<mode>): Likewise.
3185         (neon_vqdmull<mode>): Likewise.
3186         (neon_vsub<mode>_unspec): Likewise.
3187         (neon_vsubl<mode>): Likewise.
3188         (neon_vsubw<mode>): Likewise.
3189         (neon_vqsub<mode>): Likewise.
3190         (neon_vhsub<mode>): Likewise.
3191         (neon_vsubhn<mode>): Likewise.
3192         (neon_vceq<mode>): Likewise.
3193         (neon_vcge<mode>): Likewise.
3194         (neon_vcgeu<mode>): Likewise.
3195         (neon_vcgt<mode>): Likewise.
3196         (neon_vcgtu<mode>): Likewise.
3197         (neon_vcle<mode>): Likewise.
3198         (neon_vclt<mode>): Likewise.
3199         (neon_vcage<mode>): Likewise.
3200         (neon_vcagt<mode>): Likewise.
3201         (neon_vtst<mode>): Likewise.
3202         (neon_vabd<mode>): Likewise.
3203         (neon_vabdl<mode>): Likewise.
3204         (neon_vaba<mode>): Likewise.
3205         (neon_vabal<mode>): Likewise.
3206         (neon_vmax<mode>): Likewise.
3207         (neon_vmin<mode>): Likewise.
3208         (neon_vpaddl<mode>): Likewise.
3209         (neon_vpadal<mode>): Likewise.
3210         (neon_vpmax<mode>): Likewise.
3211         (neon_vpmin<mode>): Likewise.
3212         (neon_vrecps<mode>): Likewise.
3213         (neon_vrsqrts<mode>): Likewise.
3214         (neon_vqabs<mode>): Likewise.
3215         (neon_vqneg<mode>): Likewise.
3216         (neon_vcls<mode>): Likewise.
3217         (clz<mode>2): Likewise.
3218         (popcount<mode>2): Likewise.
3219         (neon_vrecpe<mode>): Likewise.
3220         (neon_vrsqrte<mode>): Likewise.
3221         (neon_vget_lane<mode>_sext_internal): Likewise.
3222         (neon_vget_lane<mode>_zext_internal): Likewise.
3223         (neon_vdup_n<mode>): Likewise.
3224         (neon_vdup_n<mode>): Likewise.
3225         (neon_vdup_nv2di): Likewise.
3226         (neon_vdup_lane<mode>_interal): Likewise.
3227         (*neon_vswp<mode>): Likewise.
3228         (neon_vcombine<mode>): Likewise.
3229         (float<mode><V_cvtto>2): Likewise.
3230         (floatuns<mode><V_cvtto>2): Likewise.
3231         (fix_trunc<mode><V_cvtto>2): Likewise.
3232         (fixuns_trunc<mode><V_cvtto>2
3233         (neon_vcvt<mode>): Likewise.
3234         (neon_vcvt<mode>): Likewise.
3235         (neon_vcvtv4sfv4hf): Likewise.
3236         (neon_vcvtv4hfv4sf): Likewise.
3237         (neon_vcvt_n<mode>): Likewise.
3238         (neon_vcvt_n<mode>): Likewise.
3239         (neon_vmovn<mode>): Likewise.
3240         (neon_vqmovn<mode>): Likewise.
3241         (neon_vqmovun<mode>): Likewise.
3242         (neon_vmovl<mode>): Likewise.
3243         (neon_vmul_lane<mode>): Likewise.
3244         (neon_vmul_lane<mode>): Likewise.
3245         (neon_vmull_lane<mode>): Likewise.
3246         (neon_vqdmull_lane<mode>): Likewise.
3247         (neon_vqdmulh_lane<mode>): Likewise.
3248         (neon_vqdmulh_lane<mode>): Likewise.
3249         (neon_vmla_lane<mode>): Likewise.
3250         (neon_vmla_lane<mode>): Likewise.
3251         (neon_vmlal_lane<mode>): Likewise.
3252         (neon_vqdmlal_lane<mode>): Likewise.
3253         (neon_vmls_lane<mode>): Likewise.
3254         (neon_vmls_lane<mode>): Likewise.
3255         (neon_vmlsl_lane<mode>): Likewise.
3256         (neon_vqdmlsl_lane<mode>): Likewise.
3257         (neon_vext<mode>): Likewise.
3258         (neon_vrev64<mode>): Likewise.
3259         (neon_vrev32<mode>): Likewise.
3260         (neon_vrev16<mode>): Likewise.
3261         (neon_vbsl<mode>_internal): Likewise.
3262         (neon_vshl<mode>): Likewise.
3263         (neon_vqshl<mode>): Likewise.
3264         (neon_vshr_n<mode>): Likewise.
3265         (neon_vshrn_n<mode>): Likewise.
3266         (neon_vqshrn_n<mode>): Likewise.
3267         (neon_vqshrun_n<mode>): Likewise.
3268         (neon_vshl_n<mode>): Likewise.
3269         (neon_vqshl_n<mode>): Likewise.
3270         (neon_vqshlu_n<mode>): Likewise.
3271         (neon_vshll_n<mode>): Likewise.
3272         (neon_vsra_n<mode>): Likewise.
3273         (neon_vsri_n<mode>): Likewise.
3274         (neon_vsli_n<mode>): Likewise.
3275         (neon_vtbl1v8qi): Likewise.
3276         (neon_vtbl2v8qi): Likewise.
3277         (neon_vtbl3v8qi): Likewise.
3278         (neon_vtbl4v8qi): Likewise.
3279         (neon_vtbl1v16qi): Likewise.
3280         (neon_vtbl2v16qi): Likewise.
3281         (neon_vcombinev16qi): Likewise.
3282         (neon_vtbx1v8qi): Likewise.
3283         (neon_vtbx2v8qi): Likewise.
3284         (neon_vtbx3v8qi): Likewise.
3285         (neon_vtbx4v8qi): Likewise.
3286         (*neon_vtrn<mode>_insn): Likewise.
3287         (*neon_vzip<mode>_insn): Likewise.
3288         (*neon_vuzp<mode>_insn): Likewise.
3289         (neon_vld1<mode>): Likewise.
3290         (neon_vld1_lane<mode>): Likewise.
3291         (neon_vld1_lane<mode>): Likewise.
3292         (neon_vld1_dup<mode>): Likewise.
3293         (neon_vld1_dup<mode>): Likewise.
3294         (neon_vld1_dupv2di): Likewise.
3295         (neon_vst1<mode>): Likewise.
3296         (neon_vst1_lane<mode>): Likewise.
3297         (neon_vst1_lane<mode>): Likewise.
3298         (neon_vld2<mode>): Likewise.
3299         (neon_vld2<mode>): Likewise.
3300         (neon_vld2_lane<mode>): Likewise.
3301         (neon_vld2_lane<mode>): Likewise.
3302         (neon_vld2_dup<mode>): Likewise.
3303         (neon_vst2<mode>): Likewise.
3304         (neon_vst2<mode>): Likewise.
3305         (neon_vst2_lane<mode>): Likewise.
3306         (neon_vst2_lane<mode>): Likewise.
3307         (neon_vld3<mode>): Likewise.
3308         (neon_vld3qa<mode>): Likewise.
3309         (neon_vld3qb<mode>): Likewise.
3310         (neon_vld3_lane<mode>): Likewise.
3311         (neon_vld3_lane<mode>): Likewise.
3312         (neon_vld3_dup<mode>): Likewise.
3313         (neon_vst3<mode>): Likewise.
3314         (neon_vst3qa<mode>): Likewise.
3315         (neon_vst3qb<mode>): Likewise.
3316         (neon_vst3_lane<mode>): Likewise.
3317         (neon_vst3_lane<mode>): Likewise.
3318         (neon_vld4<mode>): Likewise.
3319         (neon_vld4qa<mode>): Likewise.
3320         (neon_vld4qb<mode>): Likewise.
3321         (neon_vld4_lane<mode>): Likewise.
3322         (neon_vld4_lane<mode>): Likewise.
3323         (neon_vld4_dup<mode>): Likewise.
3324         (neon_vst4<mode>): Likewise.
3325         (neon_vst4qa<mode>): Likewise.
3326         (neon_vst4qb<mode>): Likewise.
3327         (neon_vst4_lane<mode>): Likewise.
3328         (neon_vst4_lane<mode>): Likewise.
3329         (neon_vec_unpack<US>_lo_<mode>): Likewise.
3330         (neon_vec_unpack<US>_hi_<mode>): Likewise.
3331         (neon_vec_<US>mult_lo_<mode>): Likewise.
3332         (neon_vec_<US>mult_hi_<mode>): Likewise.
3333         (neon_vec_<US>shiftl_<mode>): Likewise.
3334         (neon_unpack<US>_<mode>): Likewise.
3335         (neon_vec_<US>mult_<mode>): Likewise.
3336         (vec_pack_trunc_<mode>): Likewise.
3337         (neon_vec_pack_trunc_<mode>): Likewise.
3338         (neon_vabd<mode>_2): Likewise.
3339         (neon_vabd<mode>_3): Likewise.
3341 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
3343         * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
3344         (load_pair): Update type attribute.
3345         (store_pair): Update type attribute.
3346         * config/aarch64/iterators.md (q): New.
3348 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
3350         * config/arm/types.md: Add new types for Neon insns.
3352 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3353             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3354             Sergey Lega  <sergey.s.lega@intel.com>
3355             Anna Tikhonova  <anna.tikhonova@intel.com>
3356             Ilya Tocar  <ilya.tocar@intel.com>
3357             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3358             Ilya Verbin  <ilya.verbin@intel.com>
3359             Kirill Yukhin  <kirill.yukhin@intel.com>
3360             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3362         * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
3363         UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
3364         UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
3365         (rcp14<mode>): New.
3366         (srcp14<mode>): Ditto.
3367         (rsqrt14<mode>): Ditto.
3368         (rsqrt14<mode>): Ditto.
3369         (avx512f_vmscalef<mode>): Ditto.
3370         (avx512f_scalef<mode>): Ditto.
3371         (avx512f_getexp<mode>): Ditto.
3372         (avx512f_sgetexp<mode>): Ditto.
3373         (avx512f_fixupimm<mode>): Ditto.
3374         (avx512f_sfixupimm<mode>): Ditto.
3375         (avx512f_rndscale<mode>): Ditto.
3376         (*avx512er_exp2<mode>): Ditto.
3377         (*avx512er_rcp28<mode>): Ditto.
3378         (avx512er_rsqrt28<mode>): Ditto.
3379         (avx512f_getmant<mode>): Ditto.
3380         (avx512f_getmant<mode>): Ditto.
3381         (avx512f_rndscale<mode>): Fix formatting.
3383 2013-10-15  Martin Jambor  <mjambor@suse.cz>
3385         * ipa-utils.h (ipa_edge_within_scc): Declare.
3386         * ipa-cp.c (edge_within_scc): Moved...
3387         * ipa-utils.c (ipa_edge_within_scc): ...here.  Updated all callers.
3389 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3390             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3391             Sergey Lega  <sergey.s.lega@intel.com>
3392             Anna Tikhonova  <anna.tikhonova@intel.com>
3393             Ilya Tocar  <ilya.tocar@intel.com>
3394             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3395             Ilya Verbin  <ilya.verbin@intel.com>
3396             Kirill Yukhin  <kirill.yukhin@intel.com>
3397             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3399         * config/i386/predicates.md (const_8_to_15_operand): New.
3400         (const_16_to_31_operand): Ditto.
3401         * config/i386/sse.md (V8FI): New.
3402         (V16FI): Ditto.
3403         (reduc_splus_v8df): Ditto.
3404         (reduc_splus_v16sf): Ditto.
3405         (avx512f_vextract<shuffletype>32x4_1): Ditto.
3406         (vec_extract_hi_<mode>): Ditto.
3407         (avx512f_vinsert<shuffletype>32x4_1): Ditto.
3408         (vec_set_lo_<mode>): Ditto.
3409         (vec_set_hi_<mode>): Ditto.
3410         (avx512f_shuf_<shuffletype>64x2_1): Ditto.
3411         (avx512f_shuf_<shuffletype>32x4_1): Ditto.
3412         (avx512f_pshufd_1): Ditto.
3413         (avx512f_broadcast<mode>): Ditto.
3414         (avx512f_broadcast<mode>): Ditto.
3415         (define_split): Split vec_extract_lo into move.
3416         (ssequartermode): Ditto.
3417         (ssedoublemode): Extened with wider modes.
3418         (vec_extract_lo_<mode>): Ditto.
3420 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3421             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3422             Sergey Lega  <sergey.s.lega@intel.com>
3423             Anna Tikhonova  <anna.tikhonova@intel.com>
3424             Ilya Tocar  <ilya.tocar@intel.com>
3425             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3426             Ilya Verbin  <ilya.verbin@intel.com>
3427             Kirill Yukhin  <kirill.yukhin@intel.com>
3428             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3430         * config/i386/predicates.md (register_or_constm1_operand): New.
3431         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
3432         UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
3433         UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
3434         UNSPEC_SCATTER_PREFETCH
3435         (VI48_512): New.
3436         (avx512f_ucmp<mode>3): Ditto.
3437         (avx512f_vternlog<mode>): Ditto.
3438         (avx512f_align<mode>): Ditto.
3439         (<shift_insn><mode>3): Ditto.
3440         (avx512f_<rotate>v<mode>): Ditto.
3441         (avx512f_<rotate><mode>): Ditto.
3442         (avx512f_eq<mode>3): Ditto.
3443         (avx512f_eq<mode>3_1): Ditto.
3444         (avx512f_gt<mode>3): Ditto.
3445         (avx512f_testm<mode>3): Ditto.
3446         (avx512f_testnm<mode>3): Ditto.
3447         (avx512pf_gatherpf<mode>): Ditto.
3448         (*avx512pf_gatherpf<mode>_mask): Ditto.
3449         (*avx512pf_gatherpf<mode>): Ditto.
3450         (avx512pf_scatterpf<mode>): Ditto.
3451         (*avx512pf_scatterpf<mode>_mask): Ditto.
3452         (*avx512pf_scatterpf<mode>): Ditto.
3453         (avx512f_vec_dup_gpr<mode>): Ditto.
3454         (clz<mode>2): Ditto.
3455         (conflict<mode>): Ditto.
3456         (REDUC_SMINMAX_MODE): Extened with wider modes.
3457         (reduc_<code>_<mode>): Ditto.
3458         (vlshr<mode>3): Ditto.
3459         (vashl<mode>3): Ditto.
3461 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3462             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3463             Sergey Lega  <sergey.s.lega@intel.com>
3464             Anna Tikhonova  <anna.tikhonova@intel.com>
3465             Ilya Tocar  <ilya.tocar@intel.com>
3466             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3467             Ilya Verbin  <ilya.verbin@intel.com>
3468             Kirill Yukhin  <kirill.yukhin@intel.com>
3469             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3471         * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
3472         UNSPEC_SCATTER.
3473         (VI48F_512): New.
3474         (avx512fmaskmode): Ditto.
3475         (bcstscalarsuff): Ditto.
3476         (avx512f_blendm<mode>): Ditto.
3477         (cmp_imm_predicate): Ditto.
3478         (avx512f_cmp<mode>3): Ditto.
3479         (avx512f_vec_dup<mode>): Ditto.
3480         (avx512f_vec_dup_mem<mode>): Ditto.
3481         (avx512f_vpermi2var<mode>3): Ditto.
3482         (avx512f_vpermt2var<mode>3): Ditto.
3483         (vec_init<mode>): Ditto.
3484         (avx512f_gathersi<mode>): Ditto.
3485         (*avx512f_gathersi<mode>): Ditto.
3486         (*avx512f_gathersi<mode>_2): Ditto.
3487         (avx512f_gatherdi<mode>): Ditto.
3488         (*avx512f_gatherdi<mode>): Ditto.
3489         (*avx512f_gatherdi<mode>_2): Ditto.
3490         (avx512f_scattersi<mode>): Ditto.
3491         (*avx512f_scattersi<mode>): Ditto.
3492         (avx512f_scatterdi<mode>): Ditto.
3493         (*avx512f_scatterdi<mode>): Ditto.
3494         (sseintprefix): Extened with wider modes.
3495         (VEC_GATHER_IDXSI): Ditto.
3496         (VEC_GATHER_IDXDI): Ditto.
3497         (VEC_GATHER_SRCDI): Ditto.
3499 2013-10-15  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
3500             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3502         * config/arm/t-aprofile: New file.
3503         * config.gcc: Handle --with-multilib-list option.
3505 2013-10-15  Bernd Schmidt  <bernds@codesourcery.com>
3507         * reload1.c (reloads_unique_chain_p): Ensure that r1 is
3508         the input for r2.
3510 2013-10-15  Richard Biener  <rguenther@suse.de>
3512         * tree-loop-distribution.c (build_empty_rdg): Inline into
3513         single user.
3514         (rdg_flag_vertex): Inline into single user.
3515         (rdg_flag_vertex_and_dependent): Likewise.
3516         (build_rdg_partition_for_vertex): Remove processed bitmap.
3517         (rdg_build_partitions): Simplify.
3519 2013-10-15  Richard Biener  <rguenther@suse.de>
3521         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
3522         Restructure forwarding through conversions and copies to
3523         avoid performing copy-propagation the wrong way.  Adjust
3524         recursion invocations.
3525         (forward_propagate_addr_expr): Add argument stating if we
3526         are recursing from a single-use.
3527         (ssa_forward_propagate_and_combine): Adjust.
3529 2013-10-14  David Malcolm  <dmalcolm@redhat.com>
3531         * dumpfile.h (gcc::dump_manager): New class, to hold state
3532         relating to dumpfile management.
3533         (get_dump_file_name): Remove in favor of method of dump_manager.
3534         (dump_initialized_p): Likewise.
3535         (dump_start): Likewise.
3536         (dump_finish): Likewise.
3537         (dump_switch_p): Likewise.
3538         (dump_register): Likewise.
3539         (get_dump_file_info): Likewise.
3540         * context.c (gcc::context::context): Construct the dump_manager
3541         instance.
3542         * context.h (gcc::context::get_dumps): New.
3543         (gcc::context::m_dumps): New.
3544         * coverage.c (coverage_init): Port to dump_manager API.
3545         * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
3546         (extra_dump_files_in_use): Likewise.
3547         (extra_dump_files_alloced): Likewise.
3548         (gcc::dump_manager::dump_manager): New.
3549         (dump_register): Convert to...
3550         (gcc::dump_manager::dump_register): ...method, replacing
3551         function-static next_dump with m_next_dump field.
3552         (get_dump_file_info): Convert to...
3553         (gcc::dump_manager::get_dump_file_info): ...method.
3554         (get_dump_file_name): Convert to...
3555         (gcc::dump_manager::get_dump_file_name): ...method.
3556         (dump_start): Convert to...
3557         (gcc::dump_manager::dump_start): ...method.
3558         (dump_finish): Convert to...
3559         (gcc::dump_manager::dump_finish): ...method.
3560         (dump_begin): Replace body with...
3561         (gcc::dump_manager::dump_begin): ...new method.
3562         (dump_phase_enabled_p): Convert to...
3563         (gcc::dump_manager::dump_phase_enabled_p): ...method.
3564         (dump_phase_enabled_p): Convert to...
3565         (gcc::dump_manager::dump_phase_enabled_p): ...method.
3566         (dump_initialized_p):  Convert to...
3567         (gcc::dump_manager::dump_initialized_p): ...method.
3568         (dump_flag_name): Replace body with...
3569         (gcc::dump_manager::dump_flag_name): ...new method.
3570         (dump_enable_all): Convert to...
3571         (gcc::dump_manager::dump_enable_all): ...new method.
3572         (opt_info_enable_passes): Convert to...
3573         (gcc::dump_manager::opt_info_enable_passes): ...new method.
3574         (dump_switch_p_1): Convert to...
3575         (gcc::dump_manager::dump_switch_p_1): ...new method.
3576         (dump_switch_p):  Convert to...
3577         (gcc::dump_manager::dump_switch_p): ...new method.
3578         (opt_info_switch_p): Port to dump_manager API.
3579         (enable_rtl_dump_file): Likewise.
3580         * opts-global.c (handle_common_deferred_options): Port to new
3581         dump_manager API.
3582         * passes.c (pass_manager::finish_optimization_passes): Likewise.
3583         (pass_manager::register_one_dump_file): Likewise.
3584         (pass_manager::register_pass): Likewise.
3585         (pass_init_dump_file): Likewise.
3586         (pass_fini_dump_file): Likewise.
3587         * statistics.c (statistics_early_init): Likewise.
3589 2013-10-14  Richard Biener  <rguenther@suse.de>
3591         * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
3592         iterative_hash_canonical_type, gimple_canonical_type_hash,
3593         gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
3594         gimple_register_canonical_type, print_gimple_types_stats,
3595         free_gimple_type_tables): Move to lto/lto.c
3596         (gt-gimple.h): Do not include.
3597         * gimple.h (gimple_register_canonical_type,
3598         print_gimple_types_stats, free_gimple_type_tables): Remove.
3599         * Makefile.in (GTFILES): Remove gimple.c.
3601 2013-10-14  Travis Snoozy  <quandary@remstate.com>
3603         PR target/58716
3604         * config/msp430/msp430.c (msp430_option_override): Correct thinko
3605         scanning for msp430x targets.
3607 2013-10-14  Eric Botcazou  <ebotcazou@adacore.com>
3609         PR bootstrap/58509
3610         * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
3611         (registers_ok_for_ldd_peep): Move around.
3612         * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
3613         * config/sparc/sparc.md (widening peepholes): Use it.
3615 2013-10-14  Richard Biener  <rguenther@suse.de>
3617         PR middle-end/58712
3618         PR middle-end/55358
3619         * gimple.c (iterative_hash_canonical_type): Make sure to
3620         record the hash into the correct hashtable slot.
3622 2013-10-13  Eric Botcazou  <ebotcazou@adacore.com>
3624         PR rtl-optimization/58662
3625         * combine.c (try_combine): Take into account death nodes on I2 when
3626         splitting a PARALLEL of two independent SETs.  Fix dump message.
3628 2013-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
3630         PR target/51244
3631         * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
3632         * config.gcc (SH extra_objs): Add sh_ifcvt.o.
3633         * config/sh/t-sh (sh_treg_combine.o): New entry.
3634         * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
3635         implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
3636         (register_sh_passes): New function.  Register sh_treg_combine pass.
3637         (sh_option_override): Invoke it.
3638         (sh_canonicalize_comparison): Handle op0_preserve_value.
3639         * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
3640         opportunities.  Canonicalize branch condition.
3641         (nott): Allow only if pseudos can be created for non-SH2A.
3643 2013-10-12  H.J. Lu  <hongjiu.lu@intel.com>
3645         PR target/58690
3646         * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
3647         (ix86_expand_movmem): Replace copy_addr_to_reg with
3648         ix86_copy_addr_to_reg.
3649         (ix86_expand_setmem): Likewise.
3651 2013-10-12  Alexander Monakov  <amonakov@ispras.ru>
3653         * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
3654         provided by ix86_fp_compare_mode instead of CCFPUmode.
3656 2013-10-12  James Greenhalgh  <james.greenhalgh@arm.com>
3658         * config/aarch64/arm_neon.h
3659         (vtbx<1,3>_<psu>8): Fix register constriants.
3661 2013-10-11  Jeff Law  <law@redhat.com>
3663         PR tree-optimization/58640
3664         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
3665         threading paths that cross over two loop entry points.
3667 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3669         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
3670         handle vector float as well.
3671         (*vsx_le_perm_load_v4si): Likewise.
3672         (*vsx_le_perm_store_v2di): Likewise.
3673         (*vsx_le_perm_store_v4si): Likewise.
3675 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3677         * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
3678         directly to circumvent subtract from splat{31} workaround.
3679         * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
3680         prototype.
3681         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
3682         * config/rs6000/altivec.md (define_c_enum "unspec"): Add
3683         UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
3684         (altivec_vperm_<mode>): Convert to define_insn_and_split to
3685         separate big and little endian logic.
3686         (*altivec_vperm_<mode>_internal): New define_insn.
3687         (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
3688         separate big and little endian logic.
3689         (*altivec_vperm_<mode>_uns_internal): New define_insn.
3690         (vec_permv16qi): Add little endian logic.
3692 2013-10-11  Marc Glisse  <marc.glisse@inria.fr>
3694         * doc/extend.texi (returns_nonnull): Remove arguments.
3696 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3697             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3698             Sergey Lega  <sergey.s.lega@intel.com>
3699             Anna Tikhonova  <anna.tikhonova@intel.com>
3700             Ilya Tocar  <ilya.tocar@intel.com>
3701             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3702             Ilya Verbin  <ilya.verbin@intel.com>
3703             Kirill Yukhin  <kirill.yukhin@intel.com>
3704             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3706         * config/i386/sse.md (VI48F_256_512): New.
3707         (avx2_permvar<mode>): Change to ...
3708         (<avx2_avx512f>_permvar<mode>): This.
3710 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3711             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3712             Sergey Lega  <sergey.s.lega@intel.com>
3713             Anna Tikhonova  <anna.tikhonova@intel.com>
3714             Ilya Tocar  <ilya.tocar@intel.com>
3715             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3716             Ilya Verbin  <ilya.verbin@intel.com>
3717             Kirill Yukhin  <kirill.yukhin@intel.com>
3718             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3720         * config/i386/i386.c (bdesc_args): Change corresponding pattern for
3721         __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
3722         * config/i386/sse.md (VI4_AVX): New.
3723         (sf2simodelower): Ditto.
3724         (sse2_cvtps2dq): Change to ...
3725         (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
3727 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3728             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3729             Sergey Lega  <sergey.s.lega@intel.com>
3730             Anna Tikhonova  <anna.tikhonova@intel.com>
3731             Ilya Tocar  <ilya.tocar@intel.com>
3732             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3733             Ilya Verbin  <ilya.verbin@intel.com>
3734             Kirill Yukhin  <kirill.yukhin@intel.com>
3735             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3737         * config/i386/sse.md (V_512): New.
3738         (VI_512): Ditto.
3739         (vcond<V_512:mode><VF_512:mode>): Ditto.
3740         (vcond<V_512:mode><VI_512:mode>): Ditto.
3741         (vcondu<V_512:mode><VI_512:mode>): Ditto.
3743 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3744             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3745             Sergey Lega  <sergey.s.lega@intel.com>
3746             Anna Tikhonova  <anna.tikhonova@intel.com>
3747             Ilya Tocar  <ilya.tocar@intel.com>
3748             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3749             Ilya Verbin  <ilya.verbin@intel.com>
3750             Kirill Yukhin  <kirill.yukhin@intel.com>
3751             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3753         * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
3754         * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
3755         (FMAMODE): Ditto.
3756         (fma<mode>4): Removed condition.
3757         (fms<mode>4): Ditto.
3758         (fnma<mode>4): Ditto.
3759         (fnms<mode>4): Ditto.
3760         (fma4i_fmadd_<mode>): Ditto.
3761         (*fma_fmadd_<mode>): Ditto.
3762         (*fma_fmsub_<mode>): Ditto.
3763         (*fma_fnmadd_<mode>): Ditto.
3764         (*fma_fnmsub_<mode>): Ditto.
3765         (fmaddsub_<mode>): Allow for TARGET_AVX512F.
3766         (*fma_fmaddsub_<mode>): Ditto.
3767         (*fma_fmsubadd_<mode>): Ditto.
3768         (*fmai_fmadd_<mode>): Ditto.
3769         (*fmai_fmsub_<mode>): Ditto.
3770         (*fmai_fnmadd_<mode>): Ditto.
3771         (*fmai_fnmsub_<mode>): Ditto.
3773 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3774             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3775             Sergey Lega  <sergey.s.lega@intel.com>
3776             Anna Tikhonova  <anna.tikhonova@intel.com>
3777             Ilya Tocar  <ilya.tocar@intel.com>
3778             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3779             Ilya Verbin  <ilya.verbin@intel.com>
3780             Kirill Yukhin  <kirill.yukhin@intel.com>
3781             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3783         * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
3784         (VI124_256): Changed to ...
3785         (VI124_256_48_512): This.
3786         (ssepackmode): Extended with wider modes.
3787         (<code><mode>3): Changed iterator.
3788         (*avx2_<code><mode>3): Ditto.
3789         (vec_pack_trunc_<mode>): Ditto.
3791 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3792             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3793             Sergey Lega  <sergey.s.lega@intel.com>
3794             Anna Tikhonova  <anna.tikhonova@intel.com>
3795             Ilya Tocar  <ilya.tocar@intel.com>
3796             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3797             Ilya Verbin  <ilya.verbin@intel.com>
3798             Kirill Yukhin  <kirill.yukhin@intel.com>
3799             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3801         * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
3802         (VI8F_256_512): Ditto.
3803         (abs<mode>2): Changed iterator.
3804         (avx2_perm<mode>): Changed to ...
3805         (<avx2_avx512f>_perm<mode>): This.
3806         (avx2_perm<mode>_1): Changed to ...
3807         (<avx2_avx512f>_perm<mode>_1): This.
3809 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3810             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3811             Sergey Lega  <sergey.s.lega@intel.com>
3812             Anna Tikhonova  <anna.tikhonova@intel.com>
3813             Ilya Tocar  <ilya.tocar@intel.com>
3814             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3815             Ilya Verbin  <ilya.verbin@intel.com>
3816             Kirill Yukhin  <kirill.yukhin@intel.com>
3817             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3819         * config/i386/sse.md (VI48_AVX512F): New.
3820         (VI48_AVX2): Changed to ...
3821         (VI48_AVX2_48_AVX512F): This.
3822         (avx2_ashrv<mode>): Changed to ...
3823         (<avx2_avx512f>_ashrv<mode>): This.
3824         (avx2_<shift_insn>v<mode>): Changed to ...
3825         (<avx2_avx512f>_<shift_insn>v<mode>): This.
3827 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3828             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3829             Sergey Lega  <sergey.s.lega@intel.com>
3830             Anna Tikhonova  <anna.tikhonova@intel.com>
3831             Ilya Tocar  <ilya.tocar@intel.com>
3832             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3833             Ilya Verbin  <ilya.verbin@intel.com>
3834             Kirill Yukhin  <kirill.yukhin@intel.com>
3835             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3837         * config/i386/sse.md (VI4_AVX512F): New.
3838         (VI8_AVX2_AVX512F): Ditto.
3839         (mul<mode>3): Extended with wider modes.
3840         (*<sse4_1_avx2>_mul<mode>3): Ditto.
3841         (mul<mode>3): Ditto.
3842         (vec_widen_<s>mult_odd_<mode>): Ditto.
3844 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3845             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3846             Sergey Lega  <sergey.s.lega@intel.com>
3847             Anna Tikhonova  <anna.tikhonova@intel.com>
3848             Ilya Tocar  <ilya.tocar@intel.com>
3849             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3850             Ilya Verbin  <ilya.verbin@intel.com>
3851             Kirill Yukhin  <kirill.yukhin@intel.com>
3852             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3854         * config/i386/sse.md (VI2_AVX512F): New.
3855         (VI124_AVX512F): Ditto.
3856         (sseunpackmode): Extended with wider modes.
3857         (sseunpackfltmode): Ditto.
3858         (vec_unpacks_float_hi_<mode>): Ditto.
3859         (vec_unpacks_float_lo_<mode>): Ditto.
3860         (vec_unpacku_float_hi_<mode>): Ditto.
3861         (vec_unpacku_float_lo_<mode>): Ditto.
3862         (vec_unpacks_lo_<mode>): Ditto.
3863         (vec_unpacks_hi_<mode>): Ditto.
3864         (vec_unpacku_lo_<mode>): Ditto.
3865         (vec_unpacku_hi_<mode>): Ditto.
3867 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3868             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3869             Sergey Lega  <sergey.s.lega@intel.com>
3870             Anna Tikhonova  <anna.tikhonova@intel.com>
3871             Ilya Tocar  <ilya.tocar@intel.com>
3872             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3873             Ilya Verbin  <ilya.verbin@intel.com>
3874             Kirill Yukhin  <kirill.yukhin@intel.com>
3875             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3877         * config/i386/i386.md (multdiv): New.
3878         (multdiv_mnemonic): Ditto.
3879         * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
3880         (<sse>_vm<multdiv_mnemonic><mode>3): This.
3881         (<sse>_vmdiv<mode>3): Removed.
3883 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3884             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3885             Sergey Lega  <sergey.s.lega@intel.com>
3886             Anna Tikhonova  <anna.tikhonova@intel.com>
3887             Ilya Tocar  <ilya.tocar@intel.com>
3888             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3889             Ilya Verbin  <ilya.verbin@intel.com>
3890             Kirill Yukhin  <kirill.yukhin@intel.com>
3891             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3893         * config/i386/sse.md (V): Extended with wider modes.
3894         (VF2): Ditto.
3895         (ssehalfvecmode): Ditto.
3896         (i128): Ditto.
3897         (ssepackfltmode): Ditto.
3898         (avx_vec_concat<mode>): Ditto.
3899         (V_256_512): New iterator.
3900         (VF2_512_256): Ditto.
3901         (si2dfmode): New attribute.
3902         (si2dfmodelower): Ditto.
3903         (sf2dfmode): Ditto.
3904         (concat_tg_mode): Ditto.
3905         (floatv4siv4df2): Changed to ...
3906         (float<si2dfmodelower><mode>2): This.
3907         (avx_cvtps2pd256): Changed to ...
3908         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
3909         (vec_pack_trunc_v4df): Changed to ...
3910         (vec_pack_trunc_<mode>): This.
3911         (avx_vpermil<mode>): Changed to ...
3912         (<sse2_avx_avx512f>_vpermil<mode>): This.
3913         (<fixsuffix>fix_truncv8dfv8si2): New.
3914         (vec_pack_sfix_trunc_v8df): Ditto.
3915         (avx512f_rndscale<mode>): Ditto.
3916         (avx512f_roundpd512): Ditto.
3917         (vec_pack_ufix_trunc_<mode>): Updated iterator.
3919 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3920             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3921             Sergey Lega  <sergey.s.lega@intel.com>
3922             Anna Tikhonova  <anna.tikhonova@intel.com>
3923             Ilya Tocar  <ilya.tocar@intel.com>
3924             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3925             Ilya Verbin  <ilya.verbin@intel.com>
3926             Kirill Yukhin  <kirill.yukhin@intel.com>
3927             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3929         * config/i386/i386.md (any_fix): New iterator.
3930         (fixsuffix): New attribute.
3931         * config/i386/sse.md (VF1): Extened with wider modes.
3932         (VI): Ditto.
3933         (VI_AVX2): Ditto.
3934         (VI8): Ditto.
3935         (sseintvecmodelower): Ditto.
3936         (ssescalarmode): Ditto.
3937         (ssescalarnum): Ditto.
3938         (VF1_128_256): New.
3939         (ssexmmmode): Ditto.
3940         (<fixsuffix>fix_truncv16sfv16si2): Ditto.
3941         (<sse>_rcp<mode>2): Change iterator.
3942         (rsqrt<mode>2): Ditto.
3943         (<sse>_rsqrt<mode>2): Ditto.
3944         (avx2_vec_dup<mode>): Ditto.
3945         (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
3946         (round<mode>2_sfix): Ditto.
3947         (avx2_pbroadcast<mode>): Ditto.
3948         (*andnot<mode>3): Handle XI mode.
3949         (*<code><mode>3): Ditto.
3950         (AVXTOSSEMODE): Removed.
3951         (avx_vpermil<mode>): Changed to ...
3952         (<sse2_avx_avx512f>_vpermil<mode>): This.
3954 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3955             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3956             Sergey Lega  <sergey.s.lega@intel.com>
3957             Anna Tikhonova  <anna.tikhonova@intel.com>
3958             Ilya Tocar  <ilya.tocar@intel.com>
3959             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3960             Ilya Verbin  <ilya.verbin@intel.com>
3961             Kirill Yukhin  <kirill.yukhin@intel.com>
3962             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3964         * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
3965         (<sse>_comi): Ditto.
3966         (<sse>_ucomi): Ditto.
3967         (sse_cvtss2siq_2): Ditto.
3968         (sse2_cvtsd2si): Ditto.
3969         (sse2_cvtsd2siq): Ditto.
3970         (sse2_cvttsd2si): Ditto.
3971         (sse2_cvttsd2siq): Ditto.
3972         (<shift_insn><mode>3): Ditto.
3973         (sse2_cvtsi2sdq): Update constraint and prefix.
3974         (sse_cvtsi2ss): Update prefix.
3975         (sse_cvtsi2ssq): Ditto.
3977 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
3979         * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
3980         ignore internal calls.
3982 2013-10-11  Richard Biener  <rguenther@suse.de>
3984         * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
3985         and (ab) for SSA_NAMEs.  Mark INTEGER_CSTs with (OVF) if
3986         TREE_OVERFLOW is set.
3988 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
3990         * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
3992         * gimple.c: GIMPLE statements have subcodes, not sub-codes.
3993         * gimple.h: Likewise.
3995         * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
3997         * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
3998         macros.
4000         * doc/gimple.texi (is_gimple_omp): Move into the correct section.
4002         * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
4003         * configure: Regenerate.
4005 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
4007         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
4008         and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
4009         formatting fixes, use pp_colon instead of pp_character (..., ':'),
4010         similarly pp_right_paren.
4011         (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
4012         OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
4013         allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
4014         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
4015         clauses.
4016         (omp_declare_simd_clauses_equal,
4017         omp_remove_redundant_declare_simd_attrs): New functions.
4018         (attribute_value_equal): Use omp_declare_simd_clauses_equal.
4019         (walk_tree_1): Handle new OpenMP 4.0 clauses.
4020         * tree.h (OMP_LOOP_CHECK): Define.
4021         (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
4022         OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
4023         (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
4024         OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
4025         OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
4026         OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
4027         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
4028         OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
4029         OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
4030         OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
4031         OMP_CLAUSE_SIMDLEN_EXPR): Define.
4032         (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
4033         (omp_remove_redundant_declare_simd_attrs): New prototype.
4034         * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
4035         GIMPLE_OMP_TEAMS): New codes.
4036         (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
4037         * omp-low.c (struct omp_context): Add cancel_label and cancellable
4038         fields.
4039         (target_nesting_level): New variable.
4040         (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
4041         OMP_CLAUSE_DIST_SCHEDULE.  Don't fallback to library implementation
4042         for collapse > 1 static schedule unless ordered.
4043         (get_ws_args_for): Add par_stmt argument.  Handle combined loops.
4044         (determine_parallel_type): Adjust get_ws_args_for caller.
4045         (install_var_field): Handle mask & 4 for double indirection.
4046         (scan_sharing_clauses): Ignore shared clause on teams construct.
4047         Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
4048         (create_omp_child_function): If inside target or declare target
4049         constructs, set "omp declare target" attribute on the child function.
4050         (find_combined_for): New function.
4051         (scan_omp_parallel): Handle combined loops.
4052         (scan_omp_target, scan_omp_teams): New functions.
4053         (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
4054         restrictions and set ctx->cancellable for cancellable constructs.
4055         (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
4056         selected builtin calls.  Handle GIMPLE_OMP_TASKGROUP,
4057         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
4058         (build_omp_barrier): Add lhs argument, return gimple rather than tree.
4059         (omp_clause_aligned_alignment): New function.
4060         (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
4061         (lower_rec_input_clauses): Add FD argument.  Ignore shared clauses
4062         on teams constructs.  Handle user defined reductions and new
4063         OpenMP 4.0 clauses.
4064         (lower_reduction_clauses): Don't set placeholder to address of ref
4065         if it has already the right type.
4066         (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
4067         (expand_parallel_call): Use the new non-_start suffixed builtins,
4068         handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
4069         and GOMP_parallel_end after the call.
4070         (expand_task_call): Handle OMP_CLAUSE_DEPEND.
4071         (expand_omp_for_init_counts): Handle combined loops.
4072         (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
4073         loops.
4074         (expand_omp_for_generic): Likewise.  Use GOMP_loop_end_cancel at the
4075         end of cancellable loops.
4076         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
4077         Likewise.  Handle collapse > 1 loops.
4078         (expand_omp_simd): Handle combined loops.
4079         (expand_omp_for): Add inner_stmt argument, adjust callers of
4080         expand_omp_for* functions, use expand_omp_for_static*chunk even
4081         for collapse > 1 unless ordered.
4082         (expand_omp_sections): Use GOMP_sections_end_cancel at the end
4083         of cancellable sections.
4084         (expand_omp_single): Remove need_barrier variable, just rely on
4085         gimple_omp_return_nowait_p.  Adjust build_omp_barrier caller.
4086         (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
4087         (expand_omp_atomic_load, expand_omp_atomic_store,
4088         expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
4089         (expand_omp_target): New function.
4090         (expand_omp): Handle combined loops.  Handle GIMPLE_OMP_TASKGROUP,
4091         GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
4092         (build_omp_regions_1): Immediately close region for
4093         GF_OMP_TARGET_KIND_UPDATE.
4094         (maybe_add_implicit_barrier_cancel): New function.
4095         (lower_omp_sections): Adjust lower_rec_input_clauses caller.  Handle
4096         cancellation.
4097         (lower_omp_single): Likewise.  Add clobber after the barrier.
4098         (lower_omp_taskgroup): New function.
4099         (lower_omp_for): Handle combined loops.  Adjust
4100         lower_rec_input_clauses caller.  Handle cancellation.
4101         (lower_depend_clauses): New function.
4102         (lower_omp_taskreg): Lower depend clauses.  Adjust
4103         lower_rec_input_clauses caller.  Add clobber after the call.  Handle
4104         cancellation.
4105         (lower_omp_target, lower_omp_teams): New functions.
4106         (lower_omp_1): Handle cancellation.  Handle GIMPLE_OMP_TASKGROUP,
4107         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
4108         and GOMP_cancellation_point calls.
4109         (lower_omp): Fold stmts inside of target region.
4110         (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
4111         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
4112         * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
4113         (BT_FN_VOID_OMPFN_PTR_UINT,
4114         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
4115         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
4116         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
4117         (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
4118         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
4119         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
4120         BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
4121         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
4122         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
4123         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
4124         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
4125         call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
4126         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
4127         BUILT_IN_GOMP_SECTIONS_END_CANCEL.  Don't handle
4128         BUILT_IN_GOMP_PARALLEL_END.
4129         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
4130         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
4131         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
4132         GF_OMP_FOR_KIND_DISTRIBUTE.
4133         (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
4134         (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
4135         (dump_gimple_omp_return): Print lhs if it has any.
4136         (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
4137         gimple_omp_atomic_seq_cst_p.
4138         (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
4139         and GIMPLE_OMP_TEAMS.
4140         * langhooks.c (lhd_omp_mappable_type): New function.
4141         * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
4142         * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
4143         hook.
4144         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
4145         GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
4146         (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
4147         (struct gimplify_omp_ctx): Add combined_loop field.
4148         (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
4149         on stmts inside of target region.
4150         (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
4151         (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
4152         ORT_TARGET and ORT_TARGET_DATA.
4153         (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
4154         Handle GOVD_MAP.
4155         (omp_notice_threadprivate_variable): Complain about threadprivate
4156         variables in target region.
4157         (omp_notice_variable): Complain about vars with non-mappable type
4158         in target region.  Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
4159         (omp_check_private): Ignore ORT_TARGET* regions.
4160         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
4161         gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
4162         (find_combined_omp_for): New function.
4163         (gimplify_omp_for): Handle gimplification of combined loops.
4164         (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
4165         OMP_TEAMS.
4166         (gimplify_omp_target_update): New function.
4167         (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
4168         (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
4169         OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
4170         (gimplify_body): If fndecl has "omp declare target" attribute, add
4171         implicit ORT_TARGET context around it.
4172         * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
4173         OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
4174         * tree-nested.c (convert_nonlocal_reference_stmt,
4175         convert_local_reference_stmt, convert_gimple_call): Handle
4176         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
4177         * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
4178         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
4179         instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
4180         (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
4181         BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
4182         BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
4183         BUILT_IN_GOMP_LOOP_END_CANCEL,
4184         BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
4185         BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
4186         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
4187         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
4188         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
4189         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
4190         BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
4191         BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
4192         (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
4193         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
4194         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
4195         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
4196         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
4197         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
4198         * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
4199         Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
4200         * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
4201         gimple_build_omp_teams): New functions.
4202         (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
4203         GIMPLE_OMP_TASKGROUP.  Walk optional lhs on GIMPLE_OMP_RETURN.
4204         (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
4205         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
4206         * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
4207         GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
4208         GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
4209         GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
4210         GF_OMP_ATOMIC_SEQ_CST): New.
4211         (gimple_build_omp_taskgroup, gimple_build_omp_target,
4212         gimple_build_omp_teams): New prototypes.
4213         (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
4214         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
4215         (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
4216         GIMPLE_OMP_SINGLE as end of range.
4217         (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
4218         gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
4219         gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
4220         gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
4221         gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
4222         gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
4223         gimple_omp_target_kind, gimple_omp_target_set_kind,
4224         gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
4225         gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
4226         gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
4227         gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
4228         gimple_omp_teams_set_clauses): New inlines.
4229         (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
4230         and GIMPLE_OMP_TASKGROUP.
4231         * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
4232         (enum omp_clause_depend_kind, enum omp_clause_map_kind,
4233         enum omp_clause_proc_bind_kind): New.
4234         (union omp_clause_subcode): Add depend_kind, map_kind and
4235         proc_bind_kind fields.
4236         * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
4237         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
4238         * langhooks-def.h (lhd_omp_mappable_type): New prototype.
4239         (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
4240         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
4242 2013-10-10  Teresa Johnson  <tejohnson@google.com>
4244         * predict.c (tree_estimate_probability): Add new parameter
4245         for estimate_bb_frequencies.
4246         (estimate_bb_frequencies): Add new parameter to force estimation.
4247         (rebuild_frequencies): When max frequency in function is small,
4248         recompute counts from frequencies.
4249         * predict.h (estimate_bb_frequencies): New parameter.
4251 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
4253         * ipa-inline.c (ipa_inline): Fix leak of "order" when
4254         optimizations are disabled.
4256 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
4258         * coverage.c (coverage_finish): Fix leak of da_file_name.
4260 2013-10-10  Jan Hubicka  <jh@suse.cz>
4262         * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
4263         for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
4264         Bobcat and generic.
4266 2013-10-10  Jakub Jelinek  <jakub@redhat.com>
4268         PR middle-end/58670
4269         * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
4270         if any labels are in FALLTHRU_BB, use a special label emitted
4271         immediately after the asm goto insn rather than label_rtx
4272         of the LABEL_DECL.
4273         (expand_asm_stmt): Adjust caller.
4274         * cfgrtl.c (commit_one_edge_insertion): Force splitting of
4275         edge if the last insn in predecessor is a jump with single successor,
4276         but it isn't simplejump_p.
4278 2013-10-10  Richard Biener  <rguenther@suse.de>
4280         PR tree-optimization/58656
4281         * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
4283 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
4285         * gimplify.c: Include expr.h and tm_p.h for targets with special
4286         va-arg padding requirements.
4288 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
4290         * tree-flow.h: Move some prototypes to gimple.h.
4291         (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
4292         * gimple.h: Relocate some prototypes from tree-flow.h
4293         * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
4294         Move to gimplify.c.
4295         * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
4296         (build_va_arg_indirect_ref): Relocate and make static.
4297         (std_gimplify_va_arg_expr): Relocate here.
4298         * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
4299         * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
4301 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4303         * doc/md.texi: Document the mnemonic attribute.
4305 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4307         PR target/57377
4308         * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
4309         (set_attr_alternative x ...) when searching for user defined
4310         mnemonic attribute.
4312 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
4314         * config/aplha/alpha.c: Add gimple-ssa.h to include list.
4316 2013-10-09  Easwaran Raman <eraman@google.com>
4318         * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
4319         * cfgexpand.c (defer_stack_allocation): ...use here
4320         * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
4322 2013-10-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
4324         * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
4325         (operand_equal_for_value_replacement): New function, extracted from
4326         value_replacement and enhanced to catch more cases.
4327         (value_replacement): Use operand_equal_for_value_replacement.
4329 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
4331         * loop-doloop.c (doloop_modify, doloop_optimize): Use
4332         get_max_loop_iterations.
4334 2013-10-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4336         * config/arm/aarch-common.c (arm_early_load_addr_dep):
4337         Place comment above function.
4339 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
4341         * tree-flow.h: Remove all remaining prototypes, enums and structs that
4342         are not related to tree-cfg.c.
4343         * tree-ssa-address.h: New file.  Relocate prototypes.
4344         * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
4345         (addr_for_mem_ref): New.  Combine call to get_address_description and
4346         return addr_for_mem_ref.
4347         * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
4348         * tree-ssa-live.h: Adjust prototypes.
4349         * passes.c: Include tree-ssa-live.h.
4350         * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
4351         * graphite.c (graphite_transform_loops): Make static.
4352         (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
4353         make_pass_graphite, pass_data_graphite_transforms,
4354         make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
4355         * ipa-pure-const.c (warn_function_noreturn): Make static.
4356         (execute_warn_function_noreturn, gate_warn_function_noreturn,
4357         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
4358         Relocate from tree-cfg.c
4359         * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
4360         static.
4361         (execute_warn_function_noreturn, gate_warn_function_noreturn,
4362         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
4363         Move to ipa-pure-const.c.
4364         (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
4365         Relocate from tree-optimize.c.
4366         * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
4367         make_pass_fixup_cfg): Move to tree-cfg.c.
4368         * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
4369         Relocate some prototypes.
4370         * tree-data-ref.h (tree_check_data_deps) Add prototype.
4371         * tree-dump.c (dump_function_to_file): Remove prototype.
4372         Add tree-flow.h to the include file.
4373         * tree-dump.h: Remove prototype.
4374         * tree-parloops.h: New File.  Add prototypes.
4375         * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
4376         pass_data_parallelize_loops,  make_pass_parallelize_loops): Relocate
4377         from tree-ssa-loop.c.
4378         * tree-predcom.c (run_tree_predictive_commoning,
4379         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
4380         Relocate here from tree-ssa-loop.c.
4381         * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
4382         ssa_name_values.release ().
4383         * tree-ssa-threadedge.h: New File.  Relocate prototypes here.
4384         (ssa_name_values): Relocate from tree-flow.h.
4385         * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
4386         * tree-ssa-loop.c (run_tree_predictive_commoning,
4387         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
4388         graphite_transforms, gate_graphite_transforms, pass_data_graphite,
4389         make_pass_graphite, pass_data_graphite_transforms,
4390         make_pass_graphite_transforms, gate_tree_parallelize_loops,
4391         tree_parallelize_loops, pass_data_parallelize_loops,
4392         make_pass_parallelize_loops): Move to other files.
4393         * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
4394         moved here.
4395         * tree.h: Remove prototypes from tree-address.c.
4397 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
4399         * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
4400         (struct int_tree_map): Move to tree-hasher.h
4401         (SCALE, LABEL, PERCENT): Move to gimple.h
4402         * tree-flow-inline.h: Delete.  Move functions to other files.
4403         (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
4404         * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
4405         (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
4406         * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
4407         inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
4408         (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
4409         * tree-hasher.h: Don't include tree-flow.h.
4410         (struct int_tree_map): Relocate from tree-flow.h.
4411         * tree-sra.c (contains_view_convert_expr_p): Relocate from
4412         tree-flow-inline.h and make static.
4413         * tree-ssa-alias.h (ranges_overlap_p): Relocate from
4414         tree-flow-inline.h.
4415         * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
4416         tree-flow-inline.h and make static.
4417         * tree.h (is_global_var, may_be_aliased): Relocate from
4418         tree-flow-inline.h.
4419         * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
4420         * value-prof.c: No longer include tree-flow-inline.h.
4421         * tree-switch-conversion.c: No longer include tree-flow-inline.h.
4423 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
4425         * tree-flow.h: Move some protoypes.  Include new tree-ssa-loop.h.
4426         (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
4427         (enum move_pos): Move to tree-ssa-loop-im.h
4428         * cfgloop.h: Move some prototypes.
4429         (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
4430         * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
4431         * tree-ssa-loop.h: New File.  Include other tree-ssa-loop-*.h files.
4432         (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
4433         (loop_containing_stmt): Relocate from tree-flow-inline.h.
4434         * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
4435         * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
4436         (enum move_pos): Relocate here.
4437         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
4438         tree-ssa-loop.c.
4439         (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
4440         (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
4441         make_pass_lim): Relocate here from tree-ssa-loop.c.
4442         * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
4443         tree-ssa-loop.c.
4444         (loop_edge_to_cancel, unloop_loops): Make static.
4445         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
4446         make_pass_iv_canon): Relocate from tree-ssa-loop.c.
4447         (tree_complete_unroll, gate_tree_complete_unroll,
4448         pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
4449         (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
4450         pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
4451         * tree-ssa-loop-ivopts.c: Remove local prototypes.
4452         (stmt_invariant_in_loop_p): Remove unused function.
4453         * tree-ssa-loop-ivopts.h: New file.  Add prototypes.
4454         * tree-ssa-loop-manip.h: New file.  Add prototypes.
4455         * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
4456         (gcov_type_to_double_int): Move to cfgloop.h.
4457         (double_int_cmp, bound_index,
4458         estimate_numbers_of_iterations_loop): Make static.
4459         (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
4460         (max_loop_iterations): Factor out get_max_loop_iterations.
4461         (estimated_loop_iterations_int, max_stmt_executions_int): Move to
4462         cfgloop.c.
4463         * tree-ssa-loop-niter.h: New file.  Add prototypes.
4464         * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
4465         gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
4466         make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
4467         * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
4468         gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
4469         make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
4470         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
4471         pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
4472         (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
4473         pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
4474         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
4475         make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
4476         pass_data_complete_unroll, make_pass_complete_unroll,
4477         tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
4478         pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
4479         tree-ssa-loop-ivcanon.c.
4480         (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
4481         pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
4482         tree-ssa-loop-prefetch.c.
4483         (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
4484         tree-ssa-loop-im.c.
4485         (get_lsm_tmp_name): Relocate and add suffix parameter.
4486         (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
4487         * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
4488         * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
4489         max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
4490         (get_estimated_loop_iterations): Factor out accessor from
4491         estimated_loop_iterations in tree-ssa-loop-niter.c.
4492         (get_max_loop_iterations): Factor out accessor from
4493         _max_loop_iterations in tree-ssa-niter.c.
4494         * loop-unroll.c (decide_unroll_constant_iterations,
4495         decide_unroll_runtime_iterations, decide_peel_simple,
4496         decide_unroll_stupid): Use new get_* accessors.
4498 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
4500         PR tree-optimization/20318
4501         * doc/extend.texi (returns_nonnull): New function attribute.
4502         * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
4503         attribute.
4504         * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
4505         (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
4507 2013-10-09  Eric Botcazou  <ebotcazou@adacore.com>
4509         PR middle-end/58570
4510         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
4511         false if both components are bitfields.
4513 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
4515         * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
4516         (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
4517         (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
4518         * config/aarch64/aarch64.h
4519         (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
4520         * config/aarch64/aarch64-simd-builtins.def
4521         (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
4523 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
4525         * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
4527 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
4529         * config/aarch64/arm_neon.h (vdiv_f64): Added.
4531 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
4533         * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
4534         (vneg_f64): New intrinsic.
4535         (vneg_s8): Asm replaced with C.
4536         (vneg_s16): Likewise.
4537         (vneg_s32): Likewise.
4538         (vneg_s64): New intrinsic.
4539         (vnegq_f32): Asm replaced with C.
4540         (vnegq_f64): Likewise.
4541         (vnegq_s8): Likewise.
4542         (vnegq_s16): Likewise.
4543         (vnegq_s32): Likewise.
4544         (vnegq_s64): Likewise.
4546 2013-10-09  Renlin Li  <Renlin.Li@arm.com>
4548         * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
4550 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4552         * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
4553         packed stack special handling.
4554         (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
4555         back to fixed stack slots for FPRs saved due to stdarg.
4557 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4559         * config/s390/s390.c (s390_frame_info): Restructure function.
4561 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4563         * config/s390/s390.c (struct s390_frame_layout): New field
4564         gpr_save_slots.
4565         (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
4566         (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
4567         regs_ever_clobbered to char*.
4568         (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
4569         of cfun->has_nonlocal_label.  Ignore frame related restore INSNs.
4570         (s390_register_info): Enable FPR save slots.  Move/Copy some
4571         functionality into ...
4572         (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
4573         (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
4574         function.
4575         (s390_frame_info): Do gpr slot allocation here now.  stdarg does
4576         not imply a stack frame.
4577         (s390_init_frame_layout): Remove variable clobbered_regs.
4578         (s390_update_register_info): Remove function.
4579         (s390_hard_regno_rename_ok): Call-saved regs without a save slot
4580         cannot be used for register renaming.
4581         (s390_hard_regno_scratch_ok): New function.
4582         (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
4583         (s390_initial_elimination_offset): Change offset calculation of
4584         the return address pointer.
4585         (save_gprs): Deal with only r6 being saved from the call-saved regs.
4586         (restore_gprs): Set frame related flag.
4587         (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
4588         (s390_emit_prologue): Call s390_register_info instead of
4589         s390_update_frame_layout.  Call s390_save_gprs_to_fprs.
4590         (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
4591         (s390_optimize_prologue): Call s390_optimize_register_info.
4592         Try to remove also FPR slot save/restore INSNs.  Remove frame
4593         related flags from restore INSNs.
4595 2013-10-08  DJ Delorie  <dj@redhat.com>
4597         * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
4598         (movhi): Likewise.
4600         * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
4601         avoid conflict with the MI use of %c.
4602         * config/rl78/rl78-real.md: change %c to %C throughout.
4603         * config/rl78/rl78-virt.md: Likewise.
4605 2013-10-08  Jan Hubicka  <jh@suse.cz>
4607         * config/i386/i386.c (ix86_option_override_internal): Switch
4608         to SSE math for -ffast-math when target ISA supports SSE2.
4610 2013-10-08  Andrew MacLeod  <amacleod@redhat.com>
4612         * tree-flow.h: Remove some prototypes.
4613         * tree.h: Remove some protypes, add a couple.
4614         * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
4615         using_eh_for_cleanups_p): Add interface routines for front ends.
4616         * tree-eh.h: New file.  Add protoptyes.
4617         * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
4618         (add_stmt_to_eh_lp_fn): Make static.
4619         (lower_try_finally): Use new using_eh_for_cleanups_p.
4620         * emit-rtl.c: Include tree-eh.h.
4621         * gimple.h: Include tree-eh.h.
4623 2013-10-08  Marc Glisse  <marc.glisse@inria.fr>
4625         PR tree-optimization/58480
4626         * tree-vrp.c (infer_nonnull_range): New function.
4627         (infer_value_range): Call infer_nonnull_range.
4629 2013-10-08  Dehao Chen  <dehao@google.com>
4631         PR tree-optimization/58619
4632         * tree-inline.c (copy_phis_for_bb): Combine location data
4633         only if non-null.
4635 2013-10-08  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
4637         PR target/58423
4638         * config/arm/arm.c (arm_emit_ldrd_pop): Attach
4639         RTX_FRAME_RELATED_P on INSN.
4641 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4643         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
4644         (altivec_expand_vec_perm_const): Call it.
4646 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4648         * config/rs6000/vector.md (mov<mode>): Emit permuted move
4649         sequences for LE VSX loads and stores at expand time.
4650         * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
4651         prototype.
4652         * config/rs6000/rs6000.c (rs6000_const_vec): New.
4653         (rs6000_gen_le_vsx_permute): New.
4654         (rs6000_gen_le_vsx_load): New.
4655         (rs6000_gen_le_vsx_store): New.
4656         (rs6000_gen_le_vsx_move): New.
4657         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
4658         (*vsx_le_perm_load_v4si): New.
4659         (*vsx_le_perm_load_v8hi): New.
4660         (*vsx_le_perm_load_v16qi): New.
4661         (*vsx_le_perm_store_v2di): New.
4662         (*vsx_le_perm_store_v4si): New.
4663         (*vsx_le_perm_store_v8hi): New.
4664         (*vsx_le_perm_store_v16qi): New.
4665         (*vsx_xxpermdi2_le_<mode>): New.
4666         (*vsx_xxpermdi4_le_<mode>): New.
4667         (*vsx_xxpermdi8_le_V8HI): New.
4668         (*vsx_xxpermdi16_le_V16QI): New.
4669         (*vsx_lxvd2x2_le_<mode>): New.
4670         (*vsx_lxvd2x4_le_<mode>): New.
4671         (*vsx_lxvd2x8_le_V8HI): New.
4672         (*vsx_lxvd2x16_le_V16QI): New.
4673         (*vsx_stxvd2x2_le_<mode>): New.
4674         (*vsx_stxvd2x4_le_<mode>): New.
4675         (*vsx_stxvd2x8_le_V8HI): New.
4676         (*vsx_stxvd2x16_le_V16QI): New.
4678 2013-10-07  Renlin Li  <Renlin.Li@arm.com>
4680         * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
4682 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4684         * config/s390/s390.c (s390_register_info): Make the call-saved FPR
4685         loop to work also for 31bit ABI.
4686         Save the stack pointer for frame_size > 0.
4688 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4690         * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
4691         ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
4692         constraint letters from expanders.
4693         ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
4694         retry count to general_operand.
4695         ("tabort"): Give operand 0 a mode.
4696         ("tabort_1"): Add mode and constraint letter for operand 0.
4697         * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
4699 2013-10-04  Jeff Law  <law@redhat.com>
4701         * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
4703         * tree-ssa-threadedge.c (thread_through_normal_block): Broken
4704         out of ...
4705         (thread_across_edge): Here.  Call it.
4707 2013-10-04  Cary Coutant  <ccoutant@google.com>
4709         * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
4710         discarding a location list expression (or a piece of one).
4712 2013-10-03  Jan Hubicka  <jh@suse.cz>
4714         * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
4715         rate of 2.  Core2, Corei7 and Haswell has issue rate of 4.
4716         (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
4718 2013-10-03  Jan Hubicka  <jh@suse.cz>
4720         * config/i386/i386.c (ix86_option_override_internal): Do not enable
4721         accumulate-outgoing-args when producing unwind info.
4723 2013-10-03  Wei Mi  <wmi@google.com>
4725         * lra-constraints.c (insert_move_for_subreg): New function
4726         extracted from simplify_operand_subreg.
4727         (simplify_operand_subreg): Add reload for paradoxical subreg.
4729 2013-10-03  Rong Xu  <xur@google.com>
4731         * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
4732         the candidate of builtin_expect such that we should fix the
4733         size/time estimation.
4734         (estimate_function_body_sizes): Do the acutally size/time fix-up
4735         for builtin_expect.
4737 2013-10-03  Rong Xu  <xur@google.com>
4739         * predict.c (tree_predict_by_opcode): Get the probability
4740         for builtin_expect from param builtin_expect_probability.
4741         * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
4742         * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
4743         * doc/invoke.texi: Add documentation for builtin-expect-probability.
4745 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
4747         PR c++/19476
4748         * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
4749         * calls.c (alloca_call_p): Use get_callee_fndecl.
4750         * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
4751         * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
4752         Likewise.
4753         (vrp_visit_stmt): Remove duplicated code.
4755 2013-10-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
4757         * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
4758         ceildf2, btruncdf2, instead of vsx_* name.
4760         * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
4761         iterators to only do V2DF and V4SF here.  Move the DF code to
4762         rs6000.md where it is combined with SF mode.  Replace <VSv> with
4763         just 'v' since only vector operations are handled with these insns
4764         after moving the DF support to rs6000.md.
4765         (vsx_sub<mode>3): Likewise.
4766         (vsx_mul<mode>3): Likewise.
4767         (vsx_div<mode>3): Likewise.
4768         (vsx_fre<mode>2): Likewise.
4769         (vsx_neg<mode>2): Likewise.
4770         (vsx_abs<mode>2): Likewise.
4771         (vsx_nabs<mode>2): Likewise.
4772         (vsx_smax<mode>3): Likewise.
4773         (vsx_smin<mode>3): Likewise.
4774         (vsx_sqrt<mode>2): Likewise.
4775         (vsx_rsqrte<mode>2): Likewise.
4776         (vsx_fms<mode>4): Likewise.
4777         (vsx_nfma<mode>4): Likewise.
4778         (vsx_copysign<mode>3): Likewise.
4779         (vsx_btrunc<mode>2): Likewise.
4780         (vsx_floor<mode>2): Likewise.
4781         (vsx_ceil<mode>2): Likewise.
4782         (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
4783         (vsx_sminsf3): Likewise.
4784         (vsx_fmadf4): Likewise.
4785         (vsx_fmsdf4): Likewise.
4786         (vsx_nfmadf4): Likewise.
4787         (vsx_nfmsdf4): Likewise.
4788         (vsx_cmpdf_internal1): Likewise.
4790         * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
4791         simpler to select whether a target has SPE or traditional floating
4792         point support in iterators.
4793         (TARGET_DF_SPE): Likewise.
4794         (TARGET_SF_FPR): Likewise.
4795         (TARGET_DF_FPR): Likewise.
4796         (TARGET_SF_INSN): Macros to say whether floating point support
4797         exists for a given operation for expanders.
4798         (TARGET_DF_INSN): Likewise.
4800         * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
4801         combining of SF/DF mode operations, using both traditional and VSX
4802         registers.
4803         (Fvsx): Likewise.
4804         (Ff): Likewise.
4805         (Fv): Likewise.
4806         (Fs): Likewise.
4807         (Ffre): Likewise.
4808         (FFRE): Likewise.
4809         (abs<mode>2): Combine SF/DF modes using traditional floating point
4810         instructions.  Add support for using the upper DF registers with
4811         VSX support, and SF registers with power8-vector support.  Update
4812         expanders for operations supported by both the SPE and traditional
4813         floating point units.
4814         (abs<mode>2_fpr): Likewise.
4815         (nabs<mode>2): Likewise.
4816         (nabs<mode>2_fpr): Likewise.
4817         (neg<mode>2): Likewise.
4818         (neg<mode>2_fpr): Likewise.
4819         (add<mode>3): Likewise.
4820         (add<mode>3_fpr): Likewise.
4821         (sub<mode>3): Likewise.
4822         (sub<mode>3_fpr): Likewise.
4823         (mul<mode>3): Likewise.
4824         (mul<mode>3_fpr): Likewise.
4825         (div<mode>3): Likewise.
4826         (div<mode>3_fpr): Likewise.
4827         (sqrt<mode>3): Likewise.
4828         (sqrt<mode>3_fpr): Likewise.
4829         (fre<Fs>): Likewise.
4830         (rsqrt<mode>2): Likewise.
4831         (cmp<mode>_fpr): Likewise.
4832         (smax<mode>3): Likewise.
4833         (smin<mode>3): Likewise.
4834         (smax<mode>3_vsx): Likewise.
4835         (smin<mode>3_vsx): Likewise.
4836         (negsf2): Delete SF operations that are merged with DF.
4837         (abssf2): Likewise.
4838         (addsf3): Likewise.
4839         (subsf3): Likewise.
4840         (mulsf3): Likewise.
4841         (divsf3): Likewise.
4842         (fres): Likewise.
4843         (fmasf4_fpr): Likewise.
4844         (fmssf4_fpr): Likewise.
4845         (nfmasf4_fpr): Likewise.
4846         (nfmssf4_fpr): Likewise.
4847         (sqrtsf2): Likewise.
4848         (rsqrtsf_internal1): Likewise.
4849         (smaxsf3): Likewise.
4850         (sminsf3): Likewise.
4851         (cmpsf_internal1): Likewise.
4852         (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
4853         (negdf2): Delete DF operations that are merged with SF.
4854         (absdf2): Likewise.
4855         (nabsdf2): Likewise.
4856         (adddf3): Likewise.
4857         (subdf3): Likewise.
4858         (muldf3): Likewise.
4859         (divdf3): Likewise.
4860         (fred): Likewise.
4861         (rsqrtdf_internal1): Likewise.
4862         (fmadf4_fpr): Likewise.
4863         (fmsdf4_fpr): Likewise.
4864         (nfmadf4_fpr): Likewise.
4865         (nfmsdf4_fpr): Likewise.
4866         (sqrtdf2): Likewise.
4867         (smaxdf3): Likewise.
4868         (smindf3): Likewise.
4869         (cmpdf_internal1): Likewise.
4870         (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
4871         (btrunc<mode>2): Delete separate expander, and combine with the
4872         insn and add VSX instruction support.  Use TARGET_<MODE>_FPR.
4873         (btrunc<mode>2_fpr): Likewise.
4874         (ceil<mode>2): Likewise.
4875         (ceil<mode>2_fpr): Likewise.
4876         (floor<mode>2): Likewise.
4877         (floor<mode>2_fpr): Likewise.
4878         (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
4879         Add support for using the upper registers with VSX and
4880         power8-vector.  Move insns to be closer to the define_expands. On
4881         VSX systems, prefer the traditional form of FMA over the VSX
4882         version, since the traditional form allows the target not to
4883         overlap with the inputs.
4884         (fms<mode>4_fpr): Likewise.
4885         (nfma<mode>4_fpr): Likewise.
4886         (nfms<mode>4_fpr): Likewise.
4888 2013-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4889             Richard Earnshaw  <richard.earnshaw@arm.com>
4891         * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
4892         (struct mult_cost_table): Likewise.
4893         (struct mem_cost_table): Likewise.
4894         (struct fp_cost_table): Likewise.
4895         (struct vector_cost_table): Likewise.
4896         (cpu_cost_table): Likewise.
4897         * config/arm/arm.opt (mold-rts-costs): New option.
4898         (mnew-generic-costs): Likewise.
4899         * config/arm/arm.c (generic_extra_costs): New table.
4900         (cortexa15_extra_costs): Likewise.
4901         (arm_slowmul_tune): Use NULL as new costs.
4902         (arm_fastmul_tune): Likewise.
4903         (arm_strongarm_tune): Likewise.
4904         (arm_xscale_tune): Likewise.
4905         (arm_9e_tune): Likewise.
4906         (arm_v6t2_tune): Likewise.
4907         (arm_cortex_a5_tune): Likewise.
4908         (arm_cortex_a9_tune): Likewise.
4909         (arm_v6m_tune): Likewise.
4910         (arm_fa726te_tune): Likewise.
4911         (arm_cortex_a15_tune): Use cortex15_extra_costs.
4912         (arm_cortex_tune): Use generict_extra_costs.
4913         (shifter_op_p): New function.
4914         (arm_unspec_cost): Likewise.
4915         (LIBCALL_COST): Define.
4916         (arm_new_rtx_costs): New function.
4917         (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
4918         table is available. Use old costs otherwise unless mnew-generic-costs
4919         is specified.
4920         * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
4921         (cpu_cost_table): Declare.
4923 2013-10-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4925         PR target/58460
4926         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
4927         (*subs_mul_imm_<mode>)
4928         (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
4929         (*sub_<shift>_<mode>)
4930         (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
4931         Remove k constraint.
4933 2013-10-03  Ian Bolton  <ian.bolton@arm.com>
4935         * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
4936         code.
4937         * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
4939 2013-10-02  Teresa Johnson  <tejohnson@google.com>
4941         * predict.c (probably_never_executed): New function.
4942         (probably_never_executed_bb_p): Invoke probably_never_executed.
4943         (probably_never_executed_edge_p): Ditto.
4944         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
4945         Treat profile insanities conservatively.
4947 2013-10-02  John David Anglin  <danglin@gcc.gnu.org>
4949         * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
4951 2013-10-02  Vladimir Makarov  <vmakarov@redhat.com>
4953         * lra-constraints.c (process_alt_operand): Calculate scratch_p and
4954         use it.  Use smaller increase for scratch.  Don't increase reject
4955         for early clobber scratch.
4956         * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
4957         setting eliminated regs except setting fp from hfp.
4958         (lra_eliminate): Check lra_insn_recog_data on NULL.
4960 2013-10-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
4962         PR target/58587
4963         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
4964         setting -mvsx-timode by default until the underlying problem is fixed.
4965         (RS6000_CPU, power7 defaults): Likewise.
4967 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
4969         * config/x-linux (host-linux.o): Remove header dependencies.
4970         Use $(COMPILE) and $(POSTCOMPILE).
4971         * config/t-linux-android (linux-android.o): Ditto.
4973 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
4975         * Makefile.in (expmed.o-warn): Remove.
4977 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
4979         * graphite-scop-detection.c: Include tree-ssa-propagate,h.
4980         * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
4982 2013-10-02  Teresa Johnson  <tejohnson@google.com>
4984         * dojump.c (do_jump_1): Divide probability between
4985         both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
4987 2013-10-02  Tom Tromey  <tromey@redhat.com>
4989         * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
4991 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
4993         * tree-flow.h: Remove some prototypes.
4994         * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
4995         mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
4996         * tree-into-ssa.c (mark_virtual_operand_for_renaming,
4997         mark_virtual_phi_result_for_renaming): Relocate here.
4998         * tree-into-ssa.h: Add prototypes.
4999         * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
5000         single_pred_before_succ_order.
5001         (blocks_in_phiopt_order): Rename and move to cfganal.c.
5002         (nonfreeing_call_p) Move to gimple.c.
5003         * cfganal.c (single_pred_before_succ_order): Move and renamed from
5004         tree-ssa-phiopt.c.
5005         * basic-block.h (single_pred_before_succ_order): Add prototype.
5006         * gimple.c (nonfreeing_call_p): Relocate here.
5007         * gimple.h: Add prototype.
5008         * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
5009         * tree-ssa-dom.h: New file.  Relocate prototypes here.
5010         * tree-ssa.h: Include tree-ssa-dom.h.
5012 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
5014         * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
5015         Use $(COMPILE) and $(POSTCOMPILE).
5017         * config/alpha/x-alpha (driver-alpha.o): Ditto.
5019 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
5021         * tree-flow.h: Remove some prototypes.
5022         * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
5023         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
5024         * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
5025         propagate_tree_value*): Move from here to...
5026         * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
5027         propagate_tree_value*): Relocate here.
5028         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
5029         * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
5030         * gimple-fold.c: Remove gimple-fold.h from include list.
5031         * tree-vrp.c: Remove gimple-fold.h from include list.
5032         * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
5033         * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
5034         * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
5035         * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
5036         * sese.c: Add tree-ssa-propagate.h to include list.
5038 2013-10-02  Richard Biener  <rguenther@suse.de>
5040         * tree-loop-distribution.c: Include tree-vectorizer.h for
5041         find_loop_location.
5042         (enum partition_kind): Remove PKIND_REDUCTION.
5043         (struct partition_s): Remove has_writes member, add reduction_p member.
5044         (partition_alloc): Adjust.
5045         (partition_builtin_p): Likewise.
5046         (partition_has_writes): Remove.
5047         (partition_reduction_p): New function.
5048         (partition_merge_into): Likewise.
5049         (generate_code_for_partition): Commonize builtin partition
5050         handling tail.
5051         (rdg_cannot_recompute_vertex_p): Remove.
5052         (already_processed_vertex_p): Likewise.
5053         (rdg_flag_vertex): Do not set has_writes.
5054         (classify_partition): Adjust.
5055         (rdg_build_partitions): Do not set has_writes, treat all
5056         partitions as useful.
5057         (distribute_loop): Record number of library calls generated.  Adjust.
5058         (tree_loop_distribution): Report number of loops and library
5059         calls generated as opt-info.
5061 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
5063         * tree-flow.h: Include new .h files.  Move prototypes.
5064         * tree-cfgcleanup.h: New file.  Add prototypes from tree-flow.h.
5065         * tree-dfa.h: New File.  Add prototypes from tree-flow.h.
5066         (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
5067         * tree-pretty-print.h: Add prototypes from tree-flow.h.
5068         * tree-into-ssa.h: New File.  Add prototypes from tree-flow.h.
5069         ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
5070         * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
5071         * tree.h (get_ref_base_and_extent): Move prototype out.
5072         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
5073         tree-dfa.h.
5074         * gimple-low.h: New File.  Add prototypes from tree-flow.h.
5075         * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
5076         * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
5077         * tree-scalar-evolution.c: Include tree.h.
5078         * sese.c: Include tree.h.
5079         * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
5080         * dwarf2out.c: Include tree-dfa.h.
5081         * tree-chrec.c: Include tree.h.
5082         * tree-data-ref.c: Include tree.h.
5084 2013-10-02  Yufeng Zhang  <yufeng.zhang@arm.com>
5086         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
5087         Fix whitespace.
5089 2013-10-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5091         * config/t-sol2 (sol2-c.o): Remove header dependencies.
5092         Use $(COMPILE) and $(POSTCOMPILE).
5093         (sol2-cxx.o): Likewise.
5094         (sol2-stubs.o): Likewise.
5095         (sol2.o): Likewise.
5096         * config/x-solaris (host-solaris.o): Likewise.
5098         * config/sparc/t-sparc (sparc.o): Remove.
5099         (sparc-c.o): Remove header dependencies.
5100         Use $(COMPILE) and $(POSTCOMPILE).
5101         * config/sparc/x-sparc: Likewise.
5103 2013-10-02  Joern Rennecke  <joern.rennecke@embecosm.com>
5105         * config/arc/arc-opts.h: Add 2013 to Copyright years.
5106         * config/arc/arc700.md: Likewise.
5107         * config/arc/arc-modes.def: Likewise.
5108         * config/arc/arc-simd.h: Likewise.
5109         * config/arc/t-arc-uClibc: Likewise.
5110         * config/arc/t-arc-newlib: Likewise.
5112 2013-10-02  Renlin Li  <renlin.li@arm.com>
5114         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
5115         plus_constant.
5116         (aarch64_expand_epilogue): Likewise.
5118 2013-10-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5119             Yufeng Zhang  <yufeng.zhang@arm.com>
5121         * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
5122         declaration.
5123         (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
5124         'base_in' represent a conversion and legal_cast_p_1 holds; set
5125         'base_in' with the returned value from get_unwidened.
5127 2013-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5129         * config/arm/arm.c (arm_legitimize_reload_address): Explain why
5130         plus_constant is not used.
5132 2013-10-01  Wei Mi  <wmi@google.com>
5134         * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
5135         * config/i386/i386.md: Add define_peephole2 to
5136         break partial reg stall for cvtss2sd/cvtsd2ss.
5138 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
5140         * config/arc/arc.c (pass_arc_ifcvt::clone):
5141         Update for ctxt_ -> m_ctxt change.
5143 2013-10-01  Jeff Law  <law@redhat.com>
5145         * tree-ssa-threadupdate.c (struct redirection_data): Delete
5146         outgoing_edge and intermediate_edge fields.  Instead store the path.
5147         (redirection_data::hash): Hash on the last edge's destination index.
5148         (redirection_data::equal): Check the entire thread path.
5149         (lookup_redirectio_data): Corresponding changes.
5150         (create_edge_and_update_destination_phis): Likewise.
5151         (thread_single_edge): Likewise.
5153 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
5154             Diego Novillo <dnovillo@google.com>
5156         * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
5157         (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
5158         (vld32wh_insn, vld32wl_insn): Delete commented-out old
5159         versions of these patterns.
5161         * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
5162         (__builtin_arc_aligned): Likewise.
5164         * config/arc/arc.md: Expand adc_0 comment stating the intended
5165         purpose and why it isn't ready.
5166         Replace commented out call_value_via_label_mixed with a
5167         plain comment about bl_s.
5169         * config/arc/arc.c (stdio.h): Don't include directly.
5170         (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
5171         Remove if (1) condition.
5172         (arc_encode_section_info): Fix comment.
5174 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
5176         * config/arc/arc.c (arc_conditional_register_usage):
5177         Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
5178         Also set reg_alloc_order for DMA config regs.
5180 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
5181             Jeremy Bennett  <jeremy.bennett@embecosm.com>
5183         * doc/install.texi (--with-cpu): Mention ARC.
5184         (arc-*-elf32): New paragraph.
5185         (arc-linux-uclibc): Likewise.
5186         * doc/md.texi (Machine Constraints): Add ARC part.
5187         * doc/invoke.texi: (menu): Add ARC Options.
5188         (Machine Dependent Options) <ARC Options>: Add synopsis.
5189         (node ARC Options): Add.
5190         * doc/extend.texi (long_call / short_call attribute): Add ARC.
5191         (ARC Built-in Functions): New section defining
5192         generic ARC built-in functions.
5193         (ARC SIMD Built-in Functions): New section defining SIMD specific
5194         built-in functions.
5195         (Declaring Attributes of Functions): Extended
5196         description of short_call and long_call attributes for ARC and
5197         added index entries.
5199 2013-10-01  Saurabh Verma  <saurabh.verma@codito.com>
5200             Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
5201             Joern Rennecke  <joern.rennecke@embecosm.com>
5202             Muhammad Khurram Riaz  <khurram.riaz@arc.com>
5203             Brendan Kehoe  <brendan@zen.org>
5204             Michael Eager  <eager@eagercon.com>
5205             Simon Cook  <simon.cook@embecosm.com>
5206             Jeremy Bennett  <jeremy.bennett@embecosm.com>
5208         * config/arc, common/config/arc: New directories.
5210 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
5211             Brendan Kehoe  <brendan@zen.org>
5212             Simon Cook  <simon.cook@embecosm.com>
5214         * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
5216 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
5218         * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
5219         * tree-ssa-coalesce.h: New. Move prototype to here.
5220         * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
5221         * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
5222         (gimple_can_coalesce_p): Move to...
5223         * gimple.c (gimple_can_coalesce_p): Here.
5225 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
5227         * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
5228         (dump_decl_set): Move to gimple.c.
5229         * gimple.h: Don't include tree-ssa-operands.h.
5230         (dump_decl_set): Add prototype.
5231         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
5232         Move to gimple-ssa.h.
5233         (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
5234         gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
5235         gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
5236         gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
5237         * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
5238         than PHI_ARG_DEF.
5239         (dump_decl_set): Relocate here.
5240         * gimple-ssa.h: New file.
5241         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
5242         Relocate from gimple.h.
5243         * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
5244         * tree-ssa-operands.c (swap_ssa_operands): Rename from
5245         swap_tree_operands and remove non-ssa path.
5246         (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
5247         * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
5248         swap_ssa_operands.
5249         * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
5250         vect_is_simple_reduction_1): Use swap_ssa_operands.
5251         * tree-flow.h: Move various prototypes to tree-phinodes.h.
5252         (enum need_phi_state): Move to tree-into-ssa.c.
5253         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
5254         BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
5255         (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
5256         * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
5257         link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
5258         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
5259         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
5260         num_imm_uses): Move to ssa-iterators.h.
5261         (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
5262         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
5263         tree-phinodes.h.
5264         (op_iter_done, op_iter_next_def, op_iter_next_tree,
5265         clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
5266         op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
5267         single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
5268         num_ssa_operands, delink_stmt_imm_use, single_phi_def,
5269         op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
5270         end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
5271         first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
5272         end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
5273         (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
5274         gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
5275         gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
5276         phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
5277         (set_phi_nodes): Move to tree-phinodes.h.
5278         * tree-ssa-operands.h (enum ssa_op_iter_type,
5279         struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
5280         ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
5281         (dump_decl_set): Remove prototype.
5282         (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
5283         * tree-phinodes.h: New file.  Move some prototypes from tree-flow.h.
5284         (set_phi_nodes): Relocate from tree-flow-inline.h.
5285         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
5286         tree-flow-inline.h
5287         * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
5288         include list.  Temporarily add gimple.h to include list.
5289         * ssa-iterators.h: New file.
5290         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
5291         BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
5292         (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
5293         FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
5294         Relocate from tree-ssa-operands.h.
5295         (delink_imm_use, link_imm_use_to_list, link_imm_use,
5296         set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
5297         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
5298         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
5299         num_imm_uses, get_use_from_ptr, get_def_from_ptr,
5300         phi_arg_index_from_use, op_iter_done, op_iter_next_def,
5301         op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
5302         op_iter_init_use, op_iter_init_def, op_iter_init_tree,
5303         single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
5304         zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
5305         single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
5306         end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
5307         link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
5308         first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
5309         Relocate from tree-flow-inline.h.
5310         * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
5312 2013-10-01  Vidya Praveen  <vidyapraveen@arm.com>
5314         * aarch64-simd.md
5315         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
5316         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
5317         Insert '\t' to output template.
5318         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
5319         (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
5320         gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
5321         (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
5323 2013-10-01  Uros Bizjak  <ubizjak@gmail.com>
5325         * doc/install.texi (Host/target specific installation notes for GCC):
5326         Put @anchor before @heading.
5327         * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
5328         Use @email for email addresses.
5330 2013-10-01  Jeff Law  <law@redhat.com>
5332         * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
5333         a vec.  Only delete the path if we create one without successfully
5334         registering a jump thread.
5335         * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
5336         as a pointer.
5337         * tree-ssa-threadupdate.c (threaded_edges): Remove.  No longer used
5338         (paths): New vector of jump threading paths.
5339         (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
5340         (THREAD_PATH): New accessor macro for the entire thread path.
5341         (lookup_redirection_data): Get intermediate and final outgoing edge
5342         from the thread path.
5343         (create_edge_and_update_destination_phis): Copy the threading path.
5344         (ssa_fix_duplicate_block_edges): Get edges and block types from the
5345         jump threading path.
5346         (ssa_redirect_edges): Get edges and block types from the jump threading
5347         path.  Free the path vector.
5348         (thread_block): Get edges from the jump threading path.  Look at the
5349         entire path to see if we thread to a loop exit.  If we cancel a jump
5350         thread request, then free the path vector.
5351         (thread_single_edge): Get edges and block types from the jump threading
5352         path.  Free the path vector.
5353         (thread_through_loop_header): Get edges and block types from the jump
5354         threading path.  Free the path vector.
5355         (mark_threaded_blocks): Iterate over the vector of paths and store
5356         the path on the appropriate edge.  Get edges and block types from the
5357         jump threading path.
5358         (mark_threaded_blocks): Get edges and block types from the jump
5359         threading path.  Free the path vector.
5360         (thread_through_all_blocks): Use the vector of paths rather than
5361         a vector of 3-edge sets.
5362         (register_jump_thread): Accept pointer to a path vector rather
5363         than the path vector itself.  Store the path vector for later use.
5364         Simplify.
5366 2013-10-01  Jakub Jelinek  <jakub@redhat.com>
5367             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5369         PR target/58574
5370         * config/s390/s390.c (s390_split_branches): Modify check for table
5371         jump insns.
5372         (s390_chunkify_start): Rearrange table jump insn check in order to
5373         deal with compare and branch insns correctly.
5375 2013-10-01  Kugan Vivekanandarajah  <kuganv@linaro.org>
5377         PR target/58578
5378         Revert
5379         2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
5380         * config/arm/arm.md (arm_ashldi3_1bit):  define_insn into
5381         define_insn_and_split.
5382         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
5383         (shiftsi3_compare): New pattern.
5384         (rrx): New pattern.
5385         * config/arm/unspecs.md (UNSPEC_RRX): New.
5387 2013-10-01  Alan Modra  <amodra@gmail.com>
5389         * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
5390         casing inout operands.
5392 2013-10-01  Richard Biener  <rguenther@suse.de>
5394         PR tree-optimization/58553
5395         * tree-loop-distribution.c (struct partition_s): Add niter member.
5396         (classify_partition): Populate niter member for the partition
5397         and properly identify whether the relevant store happens before
5398         or after the loop exit.
5399         (generate_memset_builtin): Use niter member from the partition.
5400         (generate_memcpy_builtin): Likewise.
5402 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
5404         * vec.h (vec_prefix, vec): Prefix member names with "m_".
5405         * vec.c (vec_prefix::calculate_allocation): Update accordingly.
5407 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
5409         * basic-block.h (edge_list): Prefix member names with "m_".
5410         * context.h (context): Likewise.
5411         * domwalk.h (dom_walker): Likewise.
5412         * gengtype-state.c (s_expr_writer, state_writer): Likewise.
5413         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
5414         * hash-table.h (hash_table): Likewise.
5415         * machmode.h (bit_field_mode_iterator): Likewise.
5416         * pass_manager.h (pass_list): Likewise.
5417         * tree-into-ssa.c (mark_def_dom_walker): Likewise.
5418         * tree-pass.h (pass_data): Likewise.
5419         * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
5420         * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
5421         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
5422         * asan.c (pass_data_asan): Update accordingly.
5423         * cfganal.c (control_dependences::find_control_dependence): Likewise.
5424         (control_dependences::control_dependences): Likewise.
5425         (control_dependences::~control_dependences): Likewise.
5426         (control_dependences::~control_dependences): Likewise.
5427         (control_dependences::get_edges_dependent_on): Likewise.
5428         * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
5429         (pass_data_remove_cgraph_callee_edges::clone): Likewise.
5430         * context.c (gcc::context::context): Likewise.
5431         * cprop.c (pass_rtl_cprop::clone): Likewise.
5432         * domwalk.c (dom_walker::walk): Likewise.
5433         * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
5434         * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
5435         * mode-switching.c (pass_mode_switching::clone): Likewise.
5436         * passes.c (opt_pass::opt_pass): Likewise.
5437         (pass_manager::pass_manager): Likewise.
5438         * predict.c (pass_strip_predict_hints::clone): Likewise.
5439         * recog.c (pass_data pass_data_peephole2::clone): Likewise.
5440         (pass_split_all_insns::clone): Likewise.
5441         * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
5442         Likewise.
5443         (bit_field_mode_iterator::next_mode): Likewise.
5444         (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
5445         * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
5446         * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
5447         * tree-complex.c (pass_lower_complex::clone): Likewise.
5448         * tree-eh.c (pass_cleanup_eh::clone): Likewise.
5449         * tree-object-size.c (pass_object_sizes::clone): Likewise.
5450         * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
5451         * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
5452         (pass_fold_builtins::clone): Likewise.
5453         * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
5454         * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
5455         * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
5456         (pass_cd_dce::clone): Likewise.
5457         * tree-ssa-dom.c (pass_dominator::clone): Likewise.
5458         (pass_phi_only_cprop::clone): Likewise.
5459         * tree-ssa-dse.c (pass_dse::clone): Likewise.
5460         * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
5461         * tree-ssa-loop.c (pass_lim::clone): Likewise.
5462         * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
5463         * tree-ssa-pre.c (pass_fre::clone): Likewise.
5464         * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
5465         * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
5466         * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
5467         * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
5468         * tree-vrp.c (pass_vrp::clone): Likewise.
5469         * tsan.c (pass_tsan::clone): Likewise.
5471 2013-09-30  Jakub Jelinek  <jakub@redhat.com>
5473         PR middle-end/58564
5474         * fold-const.c (tree_unary_nonnegative_warnv_p): Use
5475         INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
5477         PR middle-end/58564
5478         * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
5479         optimization, punt if sign_bit_p looked through any zero extension.
5481 2013-09-30  Teresa Johnson  <tejohnson@google.com>
5483         * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
5484         Update redirected out edge count in joiner case.
5485         (ssa_redirect_edges): Common the joiner and non-joiner cases
5486         so that joiner case gets profile updates.
5488 2013-09-30  Richard Biener  <rguenther@suse.de>
5490         PR tree-optimization/58554
5491         * tree-loop-distribution.c (classify_partition): Require
5492         unconditionally executed stores for memcpy and memset recognition.
5493         (tree_loop_distribution): Calculate dominance info.
5495 2013-09-30  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
5497         * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
5498         (NO_PROFILE_COUNTERS): Likewise.
5499         (PROFILE_HOOK): Likewise.
5500         (FUNCTION_PROFILER): Likewise.
5501         * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
5503 2013-09-30  Iain Sandoe  <iain@codesourcery.com>
5505         * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
5506         calls and defines in TARGET_MACHO conditional.
5507         (load_macho_picbase_di): Likewise.
5508         (reload_macho_picbase): Likewise.
5509         (reload_macho_picbase_si): Likewise.
5510         (reload_macho_picbase_di): Likewise.
5511         (nonlocal_goto_receiver): Likewise.
5513 2013-09-30  Nick Clifton  <nickc@redhat.com>
5515         * config/msp430/msp430.c (msp430x_names): New array.  Lists MCUs
5516         that use the MSP430X ISA.
5517         (msp430_option_override): Scan -mmcu command line option for any
5518         MCU name that supports the MSP430X ISA.
5519         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
5520         -mmcu options which enable the MSP430X ISA.
5522 2013-09-30  Richard Biener  <rguenther@suse.de>
5524         PR middle-end/58532
5525         * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
5526         before looking for setjmp-like calls.
5528 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
5530         PR target/10901
5531         * config/darwin-protos.h (machopic_get_function_picbase): New.
5532         * config/darwin.c (machopic_get_function_picbase): New.
5533         * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
5534         label for a new func.  (load_macho_picbase_di): Likewise.
5535         (reload_macho_picbase): New expand.
5536         (reload_macho_picbase_si): New insn.
5537         (reload_macho_picbase_di): New insn.
5538         (nonlocal_goto_receiver): New define and split.
5539         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
5540         (unspecv enum): Add UNSPECV_NLGR.
5542 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
5544         * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
5545         that altivec registers are correctly sized on Darwin.
5547 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
5549         * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
5550         darwin-driver.o): Use COMPILE and POSTCOMPILE.
5551         * config/x-darwin (host-darwin.o): Likewise.
5552         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
5553         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
5554         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
5556 2013-09-29  Uros Bizjak  <ubizjak@gmail.com>
5558         * doc/invoke.texi: Fix usage of @tie{} command.
5560 2013-09-29  Eric Botcazou  <ebotcazou@adacore.com>
5562         * config/sparc/sync.md: Add peephole for consecutive memory barriers.
5564 2013-09-28  Jan Hubicka  <jh@suse.cz>
5566         * config/i386/x86-tune.def: Add documentation for each of the options;
5567         add whitespace.
5569 2013-09-28  Jan Hubicka  <jh@suse.cz>
5571         * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
5572         generic.
5573         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
5574         (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
5575         (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
5576         (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
5577         (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
5579 2013-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
5581         * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
5582         bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
5583         cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
5584         cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
5585         combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
5586         cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
5587         df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
5588         dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
5589         errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
5590         fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
5591         gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
5592         genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
5593         genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
5594         genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
5595         gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
5596         gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
5597         gimple.h, godump.c, graphite-clast-to-gimple.c,
5598         graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
5599         graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
5600         hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
5601         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
5602         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
5603         ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
5604         loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
5605         lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
5606         mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
5607         pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
5608         predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
5609         profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
5610         regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
5611         reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
5612         sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
5613         statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
5614         system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
5615         tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
5616         tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
5617         tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
5618         tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
5619         tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
5620         tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
5621         tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
5622         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
5623         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
5624         tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
5625         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
5626         tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
5627         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
5628         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
5629         tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
5630         tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
5631         tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
5632         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
5633         tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
5634         tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
5635         varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
5636         whitespace before "(".
5638 2013-09-28  Sandra Loosemore  <sandra@codesourcery.com>
5640         * expr.h (extract_bit_field): Remove packedp parameter.
5641         * expmed.c (extract_fixed_bit_field): Remove packedp parameter
5642         from forward declaration.
5643         (store_split_bit_field): Remove packedp arg from calls to
5644         extract_fixed_bit_field.
5645         (extract_bit_field_1): Remove packedp parameter and packedp
5646         argument from recursive calls and calls to extract_fixed_bit_field.
5647         (extract_bit_field): Remove packedp parameter and corresponding
5648         arg to extract_bit_field_1.
5649         (extract_fixed_bit_field): Remove packedp parameter.  Remove code
5650         to issue warnings.
5651         (extract_split_bit_field): Remove packedp arg from call to
5652         extract_fixed_bit_field.
5653         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
5654         (copy_blkmode_from_reg): Likewise.
5655         (copy_blkmode_to_reg): Likewise.
5656         (read_complex_part): Likewise.
5657         (store_field): Likewise.
5658         (expand_expr_real_1): Likewise.
5659         * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
5660         to extract_bit_field.
5661         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
5662         call to extract_bit_field.
5663         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
5664         call to extract_bit_field.
5665         * doc/invoke.texi (Code Gen Options): Remove mention of warnings
5666         and special packedp behavior from -fstrict-volatile-bitfields
5667         documentation.
5669 2013-09-27  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5671         * lra-eliminations.c (init_elim_table): Guard value_p.
5673 2013-09-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
5675         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
5676         DFmode, DImode, and SFmode in the upper VSX registers based on the
5677         -mupper-regs-{df,sf} flags.  Fix wu constraint to be ALTIVEC_REGS
5678         if -mpower8-vector.  Combine -mvsx-timode handling with the rest
5679         of the VSX register handling.
5681         * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
5682         (f32_sv): Likewise.
5683         (zero_extendsidi2_lfiwzx): Add support for loading into the
5684         Altivec registers with -mpower8-vector.  Use wu/wv constraints to
5685         only do VSX memory options on Altivec registers.
5686         (extendsidi2_lfiwax): Likewise.
5687         (extendsfdf2_fpr): Likewise.
5688         (mov<mode>_hardfloat, SF/SD modes): Likewise.
5689         (mov<mode>_hardfloat32, DF/DD modes): Likewise.
5690         (mov<mode>_hardfloat64, DF/DD modes): Likewise.
5691         (movdi_internal64): Likewise.
5693 2013-09-27  Xinliang David Li  <davidxl@google.com>
5695         * opts.c (finish_options): Adjust parameters
5696         according to vect cost model.
5697         (common_handle_option): Set dynamic vect cost
5698         model for FDO.
5699         targhooks.c (default_add_stmt_cost): Compute stmt cost
5700         unconditionally.
5701         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
5702         Use helper function.
5703         * tree-vectorizer.h (unlimited_cost_model): New function.
5704         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
5705         * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
5706         function.
5707         (vect_enhance_data_refs_alignment): Ditto.
5708         * flag-types.h: New enum.
5709         * common/config/i386/i386-common.c (ix86_option_init_struct):
5710         No need to initialize vect_cost_model flag.
5711         * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
5712         unconditionally.
5714 2013-09-27  Diego Novillo  <dnovillo@google.com>
5716         * gimple.h (enum ssa_mode): Remove.
5718 2013-09-27  Paulo Matos  <pmatos@broadcom.com>
5720         * cfgloop.h (number_of_loops): Fix typo in check for null.
5722 2013-09-27  Jakub Jelinek  <jakub@redhat.com>
5724         PR middle-end/58551
5725         * tree-cfg.c (move_sese_region_to_fn): Also move loops that
5726         are children of outermost saved_cfun's loop, and set it up to
5727         be moved to dest_cfun's outermost loop.  Fix up num_nodes adjustments
5728         if loop != loop0 and SESE region contains bbs that belong to loop0.
5730 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
5732         * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
5733         (binary_scale_code_p, get_base_term, get_index_term): New functions.
5734         (set_address_segment, set_address_base, set_address_index)
5735         (set_address_disp): Accept the argument unconditionally.
5736         (baseness): Remove must_be_base_p and must_be_index_p checks.
5737         (decompose_normal_address): Classify as much as possible in the
5738         main loop.
5740 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
5742         * cse.c (count_reg_usage): Handle INT_LIST.
5743         * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
5744         * reginfo.c (reg_scan_mark_refs): Likewise.
5745         * reload1.c (eliminate_regs_1): Likewise.
5747 2013-09-27  Iain Sandoe  <iain@codesourcery.com>
5749         PR middle-end/58547
5750         * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
5751         signed.
5753 2013-09-27  Richard Biener  <rguenther@suse.de>
5755         PR tree-optimization/58459
5756         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
5757         restriction not propagating into loops.
5759 2013-09-26  Florian Weimer  <fw@deneb.enyo.de>
5761         * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
5762         * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
5763         * doc/tree-ssa.texi (Walking use-def chains): Delete.
5765 2013-09-26  Richard Biener  <rguenther@suse.de>
5767         * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
5769 2013-09-26  Richard Biener  <rguenther@suse.de>
5771         * alias.h (component_uses_parent_alias_set): Rename to ...
5772         (component_uses_parent_alias_set_from): ... this.
5773         * alias.c (component_uses_parent_alias_set): Rename to ...
5774         (component_uses_parent_alias_set_from): ... this and return
5775         the desired parent.
5776         (reference_alias_ptr_type_1): Use the result from
5777         component_uses_parent_alias_set_from instead of stripping
5778         components one at a time.
5779         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
5781 2013-09-26  Andrew MacLeod  <amacleod@redhat.com>
5783         * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
5784         Move prototypes to...
5785         * tree-ssa-ter.h: New File.  Move prototypes here.
5786         * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
5787         * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
5788         * tree-outof-ssa.c (ssa_is_replaceable_p): New.  Refactor common bits
5789         from is_replaceable_p.
5790         * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
5791         (ter_is_replaceable_p): New.  Use new refactored ssa_is_replaceable_p.
5792         (process_replaceable): Use ter_is_replaceable_p.
5793         (find_replaceable_in_bb): Use ter_is_replaceable_p.
5794         * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c.  Use
5795         newly refactored ssa_is_replaceable_p.
5796         * cfgexpand.c: Include tree-outof-ssa.h.
5797         * ssaexpand.h: Delete.
5799 2013-09-26  Andrew MacLeod <amacleod@redhat.com>
5801         * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
5802         (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
5803         tree-ssa.c
5804         (create_gimple_tmp): Delete.
5805         (get_expr_type, build_assign, build_type_cast): Move to...
5806         * gimple-builder.c: New File.
5807         (get_expr_type): Relocate from gimple.c.
5808         (build_assign, build_type_cast): Change to only create ssanames.
5809         * gimple.h: Move prototypes to...
5810         * gimple-builder.h: New File. Here.
5811         * tree-ssa.h: And here.
5812         * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
5813         count_uses_and_derefs): Relocate from gimple.c.
5814         (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
5815         * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
5816         * tree-ssa-math-opts (execute_cse_reciprocals): Use
5817         gimple_replace_ssa_lhs.
5818         * asan.c: Include gimple-builder.h.
5819         * Makefile.in: Add gimple-builder.o.
5821 2013-09-26  Richard Biener  <rguenther@suse.de>
5823         * tree-ssa-live.c (var_map_base_init): Handle SSA names with
5824         DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
5825         (loe_visit_block): Use gcc_checking_assert.
5826         * tree-ssa-coalesce.c (create_outofssa_var_map): Use
5827         gimple_assign_ssa_name_copy_p.
5828         (gimple_can_coalesce_p): Adjust according to the var_map_base_init
5829         change.
5831 2013-09-26  David Edelsohn  <dje.gcc@gmail.com>
5833         * config/rs6000/t-rs6000 (rs6000.o): Remove.
5834         (rs6000-c.o): Use COMPILE and POSTCOMPILE.
5836 2013-09-26  Richard Biener  <rguenther@suse.de>
5838         PR tree-optimization/58539
5839         * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
5840         the fact that debug statements are not taking part in loop-closed
5841         SSA construction.
5843 2013-09-26  Nick Clifton  <nickc@redhat.com>
5845         * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
5846         time warning message.
5847         (msp430_print_operand_raw): Delete unused letter parameter.
5848         (TARGET_PRINT_OPERAND_ADDRESS): Define.
5849         (msp430_print_operand_address): New function.
5850         (msp430_print_operand): Move address printing code from here to
5851         new function.
5852         * config/msp430/msp430.md (movsipsi2): Add comment in generated
5853         assembler.
5854         (zero_extendpsisi2): Likewise.
5855         (extendpsisi2): New pattern.
5856         (andneghi3): New pattern.
5858 2013-09-26  Yvan Roux  <yvan.roux@linaro.org>
5860         * config/aarch64/aarch64.opt (mlra): New option.
5861         * config/aarch64/aarch64.c (aarch64_lra_p): New function.
5862         (TARGET_LRA_P): Define.
5864 2013-09-26  Eric Botcazou  <ebotcazou@adacore.com>
5866         * expr.c (expand_assignment): Remove obsolete comment.
5868 2013-09-25  Jeff Law  <law@redhat.com>
5870         * tree-flow.h (thread_through_all_blocks): Prototype moved into
5871         tree-ssa-threadupdate.h.
5872         (register_jump_thread): Similarly.
5873         * tree-ssa-threadupdate.h: New header file.
5874         * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
5875         * tree-vrp.c: Likewise.
5876         * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
5877         (thread_around_empty_blocks): Change type of path vector argument to
5878         an edge,type pair from just an edge.  Initialize both elements when
5879         appending to a jump threading path.  Tweak references to elements
5880         appropriately.
5881         (thread_across_edge): Similarly.  Release memory for the elements
5882         as needed.
5883         * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
5884         (dump_jump_thread_path): New function broken out from
5885         register_jump_thread.
5886         (register_jump_thread): Use dump_jump_thread_path.  Change type of
5887         path vector entries.  Search the path for NULL edges and dump
5888         the path if one is found.  Tweak the conversion of path to 3-edge
5889         form to use the block copy type information embedded in the path.
5891 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
5893         * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
5895 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
5896             Vladimir Makarov  <vmakarov@redhat.com>
5898         * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
5899         from the least significant bit.
5900         (strip_address_mutations): Add bitfield operations handling.
5901         (must_be_index_p): Add shifting and rotate operations handling.
5902         (set_address_base): Use must_be_base_p predicate.
5903         (set_address_index): Use must_be_index_p predicate.
5905 2013-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5906             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5907             Sergey Lega  <sergey.s.lega@intel.com>
5908             Anna Tikhonova  <anna.tikhonova@intel.com>
5909             Ilya Tocar  <ilya.tocar@intel.com>
5910             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5911             Ilya Verbin  <ilya.verbin@intel.com>
5912             Kirill Yukhin  <kirill.yukhin@intel.com>
5913             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5915         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
5916         Use new names.
5917         (ix86_expand_vector_move_misalign): Support new unaligned load and
5918         stores and use new names.
5919         (CODE_FOR_sse2_storedqu): Rename to ...
5920         (CODE_FOR_sse2_storedquv16qi): ... this.
5921         (CODE_FOR_sse2_loaddqu): Rename to ...
5922         (CODE_FOR_sse2_loaddquv16qi): ... this.
5923         (CODE_FOR_avx_loaddqu256): Rename to ...
5924         (CODE_FOR_avx_loaddquv32qi): ... this.
5925         (CODE_FOR_avx_storedqu256): Rename to ...
5926         (CODE_FOR_avx_storedquv32qi): ... this.
5927         * config/i386/i386.md (fpint_logic): New.
5928         * config/i386/sse.md (VMOVE): Extend for AVX512.
5929         (VF): Ditto.
5930         (VF_128_256): New.
5931         (VF_512): Ditto.
5932         (VI_UNALIGNED_LOADSTORE): Ditto.
5933         (sse2_avx_avx512f): Ditto.
5934         (sse2_avx2): Extend for AVX512.
5935         (sse4_1_avx2): Ditto.
5936         (avx2_avx512f): New.
5937         (sse): Extend for AVX512.
5938         (sse2): Ditto.
5939         (sse4_1): Ditto.
5940         (avxsizesuffix): Ditto.
5941         (sseintvecmode): Ditto.
5942         (ssePSmode): Ditto.
5943         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
5944         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
5945         (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
5946         (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
5947         (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
5948         (<sse2_avx_avx512f>_storedqu<mode): ... this.
5949         (<sse>_movnt<mode>): Replace constraint "x" with "v".
5950         (STORENT_MODE): Extend for AVX512.
5951         (*absneg<mode>2): Replace constraint "x" with "v".
5952         (*mul<mode>3): Ditto.
5953         (*ieee_smin<mode>3): Ditto.
5954         (*ieee_smax<mode>3): Ditto.
5955         (avx_cmp<mode>3): Replace VF with VF_128_256.
5956         (*<sse>_maskcmp<mode>3_comm): Ditto.
5957         (<sse>_maskcmp<mode>3): Ditto.
5958         (<sse>_andnot<mode>3): Extend for AVX512.
5959         (<code><mode>3, anylogic): Replace VF with VF_128_256.
5960         (<code><mode>3, fpint_logic): New.
5961         (*<code><mode>3): Extend for AVX512.
5962         (avx512flogicsuff): New.
5963         (avx512f_<logic><mode>): Ditto.
5964         (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
5965         VF_128_256.
5966         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
5967         (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
5968         (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
5969         (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
5970         (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
5971         (xop_vpermil2<mode>3): Ditto.
5972         (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
5973         (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
5974         (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
5975         (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
5977 2013-09-25  Tom Tromey  <tromey@redhat.com>
5979         * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
5980         (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
5981         (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
5982         (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
5983         (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
5984         (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
5985         (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
5986         (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
5987         (GRAPHITE_HTAB_H): Remove.
5989 2013-09-25  Tom Tromey  <tromey@redhat.com>
5991         * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
5993 2013-09-25  Tom Tromey  <tromey@redhat.com>
5995         * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
5997 2013-09-25  Tom Tromey  <tromey@redhat.com>
5999         * config/i386/t-i386 (i386.o): Remove.
6000         (i386-c.o): Use COMPILE and POSTCOMPILE.
6002 2013-09-25  Tom Tromey  <tromey@redhat.com>
6004         * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
6006 2013-09-25  Tom Tromey  <tromey@redhat.com>
6008         * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
6009         (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
6010         (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
6011         (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
6012         (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
6013         (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
6014         (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
6015         (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
6016         (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
6017         (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
6018         (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
6019         (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
6020         (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
6021         (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
6022         (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
6023         (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
6024         (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
6025         (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
6026         (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
6027         (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
6028         (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
6029         (tree-ssa-pre.o, tree-ssa-sccvn.o)
6030         (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
6031         (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
6032         (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
6033         (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
6034         (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
6035         (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
6036         (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
6037         (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
6038         (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
6039         (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
6040         (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
6041         (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
6042         (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
6043         (graphite-clast-to-gimple.o, graphite-dependences.o)
6044         (graphite-interchange.o, graphite-poly.o)
6045         (graphite-scop-detection.o, graphite-sese-to-poly.o)
6046         (graphite-optimize-isl.o, tree-vect-loop.o)
6047         (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
6048         (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
6049         (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
6050         (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
6051         (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
6052         (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
6053         (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
6054         (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
6055         (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
6056         (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
6057         (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
6058         (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
6059         (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
6060         (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
6061         (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
6062         (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
6063         (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
6064         (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
6065         (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
6066         (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
6067         (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
6068         (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
6069         (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
6070         (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
6071         (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
6072         (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
6073         (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
6074         (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
6075         (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
6076         (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
6077         (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
6078         (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
6079         (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
6080         (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
6081         (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
6082         (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
6083         (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
6084         (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
6085         (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
6086         (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
6087         (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
6088         (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
6089         (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
6090         (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
6091         (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
6092         (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
6093         (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
6094         (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
6095         (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
6096         (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
6097         (gcov-dump.o): Remove.
6098         (default-c.o): Use COMPILE and POSTCOMPILE.
6099         (CFLAGS-gcc.o): New variable.
6100         ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
6102 2013-09-25  Tom Tromey  <tromey@redhat.com>
6104         * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
6105         (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
6106         (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
6107         (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
6108         (c-family/c-pragma.o, c-family/c-pretty-print.o)
6109         (c-family/c-semantics.o, c-family/c-ada-spec.o)
6110         (c-family/array-notation-common.o, c-family/stub-objc.o)
6111         (c-family/c-ubsan.o): Remove.
6113 2013-09-25  Tom Tromey  <tromey@redhat.com>
6115         * Makefile.in (C_TREE_H): Reference c/c-tree.h.
6117 2013-09-25  Tom Tromey  <tromey@redhat.com>
6119         * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
6120         to add -DENABLE_SHARED_LIBGCC.
6121         (gcc.o): Don't use subshell.
6123 2013-09-25  Tom Tromey  <tromey@redhat.com>
6125         * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
6126         * configure.ac: Don't invoke AM_PROG_CC_C_O.
6127         (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
6128         * configure, config.in: Rebuild.
6130 2013-09-25  Tom Tromey  <tromey@redhat.com>
6132         * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
6133         (COMPILE, POSTCOMPILE): New variables.
6134         (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
6135         (DEPFILES): New variable.
6136         Include ".Po" files.
6137         * configure.ac: Add checks for dependency checking.
6138         * configure, aclocal.m4: Regenerate.
6140 2013-09-25  Tom Tromey  <tromey@redhat.com>
6142         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
6143         ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
6145 2013-09-25  Tom Tromey  <tromey@redhat.com>
6147         * Makefile.in (generated_files): Add options.h,
6148         target-hooks-def.h, insn-opinit.h,
6149         common/common-target-hooks-def.h, pass-instances.def,
6150         c-family/c-target-hooks-def.h.
6152 2013-09-25  Jeff Law  <law@redhat.com>
6154         * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
6155         than foo[foo.length () - 1] to access last member in a vec.
6156         * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
6158 2013-09-25  Richard Biener  <rguenther@suse.de>
6160         PR middle-end/58521
6161         * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
6163 2013-09-25  Jan Hubicka  <jh@suse.cz>
6165         * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
6166         test.
6168 2013-09-25  Marek Polacek  <polacek@redhat.com>
6170         PR sanitizer/58420
6171         * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
6172         when determining the type name.
6174 2013-09-24  Oleg Endo  <olegendo@gcc.gnu.org>
6176         * config/sh/sh.md: Fix formatting.
6178 2013-09-24  Xinliang David Li  <davidxl@google.com>
6180         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
6181         max peel iterations parameter.
6182         * param.def: New parameter.
6183         * doc/invoke.texi: Document New parameter.
6185 2013-09-24  Christophe Lyon  <christophe.lyon@linaro.org>
6187         * gimple-pretty-print.c: Various whitespace tweaks.
6188         * tree-core.h: Likewise.
6189         * tree-pretty-print.c: Likewise.
6190         * tree-ssa-alias.c: Likewise.
6191         * tree-ssa-copy.c: Likewise.
6192         * tree-ssanames.c: Likewise.
6193         * tree-ssanames.h: Likewise.
6194         * tree-vrp.c: Likewise.
6196 2013-09-24  Alan Modra  <amodra@gmail.com>
6198         PR middle-end/57134
6199         PR middle-end/57586
6200         * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
6201         for output operands that disallow regs.  Don't use EXPAND_WRITE on
6202         inout operands.
6204 2013-09-24  Richard Biener  <rguenther@suse.de>
6206         PR middle-end/58513
6207         * tree.c (reference_alias_ptr_type): Move ...
6208         * alias.c (reference_alias_ptr_type): ... here and implement
6209         in terms of the new reference_alias_ptr_type_1.
6210         (ref_all_alias_ptr_type_p): New helper.
6211         (get_deref_alias_set_1): Drop flag_strict_aliasing here,
6212         use ref_all_alias_ptr_type_p.
6213         (get_deref_alias_set): Add flag_strict_aliasing check here.
6214         (reference_alias_ptr_type_1): New function, split out from ...
6215         (get_alias_set): ... here.
6216         (alias_ptr_types_compatible_p): New function.
6217         * alias.h (reference_alias_ptr_type): Declare.
6218         (alias_ptr_types_compatible_p): Likewise.
6219         * tree.h (reference_alias_ptr_type): Remove.
6220         * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
6221         to compare MEM_REF alias types.
6223 2013-09-24  Richard Biener  <rguenther@suse.de>
6225         * tree-vrp.c (vrp_finalize): Check for SSA name presence.
6227 2013-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
6229         * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
6230         reload helper function arrays into a single array reg_addr.
6231         (reload_fpr_gpr): Likewise.
6232         (reload_gpr_vsx): Likewise.
6233         (reload_vsx_gpr): Likewise.
6234         (struct rs6000_reg_addr): Likewise.
6235         (reg_addr): Likewise.
6236         (rs6000_debug_reg_global): Change rs6000_vector_reload,
6237         reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
6238         (rs6000_init_hard_regno_mode_ok): Likewise.
6239         (rs6000_secondary_reload_direct_move): Likewise.
6240         (rs6000_secondary_reload): Likewise.
6242         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
6243         constraints: wu, ww, and wy.  Repurpose wv constraint added during
6244         power8 changes.  Put wg constraint in alphabetical order.
6246         * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
6247         for future work to add ISA 2.07 VSX single precision support.
6248         (-mvsx-scalar-double): Change default from -1 to 1, update
6249         documentation comment.
6250         (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
6251         (-mupper-regs-df): New debug switch to control whether DF values
6252         can go in the traditional Altivec registers.
6253         (-mupper-regs-sf): New debug switch to control whether SF values
6254         can go in the traditional Altivec registers.
6256         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
6257         and wy constraints.
6258         (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
6259         loop variables.  Rename -mvsx-scalar-memory to -mupper-regs-df.
6260         Add new constraints, wu/ww/wy.  Repurpose wv constraint.
6261         (rs6000_debug_legitimate_address_p): Print if we are running
6262         before, during, or after reload.
6263         (rs6000_secondary_reload): Add a comment.
6264         (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
6266         * config/rs6000/constraints.md (wa constraint): Sort w<x>
6267         constraints.  Update documentation string.
6268         (wd constraint): Likewise.
6269         (wf constraint): Likewise.
6270         (wg constraint): Likewise.
6271         (wn constraint): Likewise.
6272         (ws constraint): Likewise.
6273         (wt constraint): Likewise.
6274         (wx constraint): Likewise.
6275         (wz constraint): Likewise.
6276         (wu constraint): New constraint for ISA 2.07 SFmode scalar
6277         instructions.
6278         (ww constraint): Likewise.
6279         (wy constraint): Likewise.
6280         (wv constraint): Repurpose ISA 2.07 constraint that we did not use
6281         in the previous submissions.
6282         * doc/md.texi (PowerPC and IBM RS6000): Likewise.
6284 2013-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
6286         * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
6287         (REG_BR_PROB): Say that the probability is stored in an int_list.
6288         * reg-notes.def: Update commentary to mention INT_LIST.
6289         * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
6290         (INT_LIST): New rtx.
6291         * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
6292         * rtlanal.c (int_reg_note_p): New function.
6293         (alloc_reg_note): Assert that the note does not have an int argument.
6294         (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
6295         * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
6296         * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
6297         rather than an INSN_LIST.  Handle INT_LIST.
6298         * ifcvt.c (cond_exec_process_insns): Take the probability as an int
6299         rather than an rtx.  Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
6300         (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
6301         Manipulate them as ints rather than rtxes.
6302         * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
6303         * regmove.c (copy_src_to_dest): Likewise.
6304         * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
6306         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
6307         into the cases that need it.
6308         * config/arm/arm.c (arm_unwind_emit): Likewise.
6310         * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
6311         * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
6312         * loop-doloop.c (add_test, doloop_modify): Likewise.
6313         * loop-unswitch.c (compare_and_jump_seq): Likewise.
6314         * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
6315         * predict.c (combine_predictions_for_insn): Likewise.
6316         * print-rtl.c (print_rtx): Handle INT_LIST.
6317         * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
6318         * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
6319         * config/arm/arm.c (emit_unlikely_jump): Likewise.
6320         * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
6321         (ix86_split_fp_branch, predict_jump): Likewise.
6322         * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
6323         * config/sh/sh.c (expand_cbranchsi4): Likewise.
6324         * config/spu/spu.c (ea_load_store_inline): Likewise.
6326         * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
6327         value of a REG_BR_PROB note.
6328         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
6329         (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
6330         * emit-rtl.c (try_split): Likewise.
6331         * predict.c (br_prob_note_reliable_p): Likewise.
6332         (invert_br_probabilities, combine_predictions_for_insn): Likewise.
6333         * reorg.c (mostly_true_jump): Likewise.
6334         * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
6335         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
6336         * config/i386/i386.c (ix86_print_operand): Likewise.
6337         * config/ia64/ia64.c (ia64_print_operand): Likewise.
6338         * config/mmix/mmix.c (mmix_print_operand): Likewise.
6339         * config/rs6000/rs6000.c (output_cbranch): Likewise.
6340         * config/s390/s390.c (s390_expand_tbegin): Likewise.
6341         * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
6342         * config/sparc/sparc.c (output_cbranch): Likewise.
6343         * config/spu/spu.c (get_branch_target): Likewise.
6344         * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
6345         * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
6347 2013-09-23  Jan Hubicka  <jh@suse.cz>
6349         * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
6350         for ipa-devirt.
6351         * ipa-utils.h (possible_polymorphic_call_target_p): New function.
6352         * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
6353         of external calls
6354         * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
6355         (gimple_fold_call): Dump inconsistent devirtualizations; add
6356         sanity check for type based devirtualizations.
6357         * ipa-prop.c: Include ipa-utils.h
6358         (ipa_intraprocedural_devirtualization): Add sanity check.
6359         (try_make_edge_direct_virtual_call): Likewise.
6361 2013-09-23  Eric Botcazou  <ebotcazou@adacore.com>
6363         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
6364         assignment statements.
6366 2013-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
6368         * gimple-pretty-print.c (dump_ssaname_info): New function.
6369         (dump_gimple_phi): Call it.
6370         (pp_gimple_stmt_1): Likewise.
6371         * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
6372         (range_info_def): Declare.
6373         * tree-pretty-print.c (pp_double_int): New function.
6374         (dump_generic_node): Call it.
6375         * tree-pretty-print.h (pp_double_int): Declare.
6376         * tree-ssa-alias.c (dump_alias_info): Check pointer type.
6377         * tree-ssanames.h (range_info_def): New structure.
6378         (value_range_type): Move definition here.
6379         (set_range_info, value_range_type, duplicate_ssa_name_range_info):
6380         Declare.
6381         * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
6382         initialization.
6383         (set_range_info): New function.
6384         (get_range_info): Likewise.
6385         (duplicate_ssa_name_range_info): Likewise.
6386         (duplicate_ssa_name_fn): Check pointer type and call
6387         duplicate_ssa_name_range_info.
6388         * tree-ssa-copy.c (fini_copy_prop): Likewise.
6389         * tree-vrp.c (value_range_type): Remove definition, now in
6390         tree-ssanames.h.
6391         (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
6392         * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
6393         (SSA_NAME_RANGE_INFO): New macro.
6395 2013-09-23  Richard Biener  <rguenther@suse.de>
6397         PR tree-optimization/58464
6398         * tree-ssa-pre.c (phi_trans_lookup): Remove.
6399         (phi_trans_add): Change to add conditionally on being not present.
6400         (phi_translate_1): Remove recursion detection here.
6401         (phi_translate): Pre-seed the cache with NULL to catch
6402         recursion here in a more generic way.
6403         (bitmap_find_leader): Adjust comment.
6404         (get_representative_for): Dump value-numbers.
6405         (create_expression_by_pieces): Likewise.
6406         (insert_into_preds_of_block): Likewise.
6408 2013-09-23  Christian Bruel  <christian.bruel@st.com>
6410         PR target/58475
6411         * config/sh/sh.md (movsf_ie): Allow fpul_operand.
6412         * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
6414 2013-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
6416         Revert r202780:
6417         2013-09-20  Renlin Li  <renlin.li@arm.com>
6419         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
6420         plus_constant.
6421         (aarch64_expand_epilogue): Likewise.
6422         (aarch64_legitimize_reload_address): Likewise.
6424 2013-09-22  Eric Botcazou  <ebotcazou@adacore.com>
6426         * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
6427         NULL_TREE before pushing them onto the vector.  Likewise for labels.
6429 2013-09-21  Eric Botcazou  <ebotcazou@adacore.com>
6431         * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
6432         comparison operators when -fno-trapping-math is in effect.
6433         * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
6434         comparison operators in TFmode and assert that unsupported operators
6435         cannot reach here.
6436         (ia64_print_operand): Likewise.
6438 2013-09-21  Jan Hubicka  <jh@suse.cz>
6440         * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
6441         (sse_typeless_stores): Enable for core
6442         (sse_load0_by_pxor): Likewise.
6443         (four_jump_limit): Disable for core.
6444         (pad_returns): Likewise.
6445         (avoid_vector_decode): Likewise.
6446         (fuse_cmp_and_branch): Enable for cores.
6447         * i386.c (x86_accumulate_outgoing_args): Disable for cores.
6449 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
6451         PR middle-end/56791
6452         * config/pa/pa.c (pa_option_override): Disable auto increment and
6453         decrement instructions until reload is completed.
6455         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
6456         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
6457         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
6459 2013-09-20  DJ Delorie  <dj@redhat.com>
6460             Nick Clifton  <nickc@redhat.com>
6462         * config/rl78/rl78.c: Various whitespace and comment tweaks.
6463         (need_to_save): Save bank 0 on interrupts.
6464         (characterize_address): Strip far address wrappers.
6465         (rl78_as_legitimate_address): Likewise.
6466         (transcode_memory_rtx): Likewise.
6467         (rl78_peep_movhi_p): Disable this peephole after devirt.
6468         (rl78_propogate_register_origins): Forget all origins when a
6469         CLOBBER is seen.
6470         * config/rl78/rl78-virt.md: Various whitespace tweaks.
6471         * config/rl78/rl78-real.md: Various whitespace tweaks.  Additional
6472         peephole2's.
6473         * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
6474         * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
6475         * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
6476         relocating.
6477         * config/rl78/constraints.md: Various whitespace and paren tweaks.
6479 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
6481         * config/pa/pa.md: In "scc" insn patterns, change output template to
6482         handle const0_rtx in reg_or_0_operand operands.
6484 2013-09-20  Martin Husemann  <martin@NetBSD.org>
6486         PR target/56875
6487         * config/vax/vax.c (vax_output_int_move): Use D format specifier.
6488         * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
6490 2013-09-20  Richard Biener  <rguenther@suse.de>
6492         PR middle-end/58484
6493         * tree-scalar-evolution.c (struct scev_info_str): Shrink by
6494         remembering SSA name version and block index.
6495         (new_scev_info_str): Adjust.
6496         (hash_scev_info): Likewise.  Also hash the block index.
6497         (eq_scev_info): Adjust.
6498         (find_var_scev_info): Likewise.
6499         (struct instantiate_cache_entry): Remove.
6500         (struct instantiate_cache_type): Use a htab to map name, block
6501         to chrec.
6502         (instantiate_cache_type::~instantiate_cache_type): Adjust.
6503         (get_instantiated_value_entry): Likewise.
6504         (hash_idx_scev_info, eq_idx_scev_info): New functions.
6505         (instantiate_scev_name): Adjust.
6507 2013-09-20  Jeff Law  <law@redhat.com>
6509         * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
6511 2013-09-20  Yufeng Zhang  <yufeng.zhang@arm.com>
6513         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
6514         Call aarch64_simd_expand_args to update op[argc].
6516 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
6518         * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
6519         plugin argument.
6521 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
6523         * gengtype.c (file_rules): Added rule for *.cc files.
6524         (get_output_file_with_visibility): Give fatal message when no
6525         rules found.
6527 2013-09-20  Renlin Li  <renlin.li@arm.com>
6529         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
6530         (aarch64_expand_epilogue): Likewise.
6531         (aarch64_legitimize_reload_address): Likewise.
6533 2013-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6535         PR middle-end/57748
6536         * expr.c (expand_assignment): Remove misalignp code path.
6538 2013-09-20  Marek Polacek  <polacek@redhat.com>
6540         PR sanitizer/58413
6541         * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
6542         TYPE_PRECISION.  Add asserts.
6544 2013-09-20  Richard Biener  <rguenther@suse.de>
6546         PR tree-optimization/58453
6547         * tree-loop-distribution.c (distribute_loop): Apply the cost
6548         model for -ftree-loop-distribute-patterns, too.
6550 2013-09-20  Richard Biener  <rguenther@suse.de>
6552         PR middle-end/58473
6553         * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
6554         make type comparison less strict.
6556 2013-09-20  Alan Modra  <amodra@gmail.com>
6558         * configure: Regenerate.
6559         * aclocal.m4: Regenerate.
6561 2013-09-20  Marek Polacek  <polacek@redhat.com>
6563         PR other/58467
6564         * doc/extend.texi: Document that attribute used is meant to be used
6565         on variables with static storage duration.
6567 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
6569         PR tree-optimization/58472
6570         * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
6571         simd_lane_access set inv_p = false.
6572         * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
6573         the simduid magic VAR_DECL.
6575 2013-09-19  Jan Hubicka  <jh@suse.cz>
6577         * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
6579 2013-09-17  Jeff Law  <law@redhat.com>
6581         * tree-ssa-dom.c (record_temporary_equivalences): New function
6582         split out of dom_opt_dom_walker::after_dom_children.
6583         (dom_opt_dom_walker::thread_across_edge): Move common code
6584         in here from dom_opt_dom_walker::after_dom_children.
6585         (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
6587 2013-09-19  Jan Hubicka  <jh@suse.cz>
6589         * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
6590         (TARGET_GENERIC): Use PROCESOR_GENERIC
6591         (enum processor_type): Unify generic32 and 64.
6592         * i386.md (cpu): Likewise.
6593         * x86-tune.def (use_leave): Enable for generic32.
6594         (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
6595         * athlon.md: Change generic64 to generic in all occurences.
6596         * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
6597         (ix86_target_macros_internal): Likewise.
6598         * driver-i386.c (host_detect_local_cpu): Likewise.
6599         * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
6600         to ..
6601         (generic_memcpy, generic_memset, generic_cost): This one.
6602         (generic32_memcpy, generic32_memset, generic32_cost): Remove.
6603         (m_GENERIC32, m_GENERIC64): Remove.
6604         (m_GENERIC): Turn into one flag.
6605         (processor_target): Unify generic tunnings.
6606         (ix86_option_override_internal): Replace generic32/64 by generic.
6607         (ix86_issue_rate): Likewise.
6608         (ix86_adjust_cost): Likewise.
6610 2013-09-19  Jan Hubicka  <jh@suse.cz>
6612         * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
6613         of speculative flag.
6615 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
6617         * omp-low.c (expand_omp_sections): Always pass len - 1 to
6618         GOMP_sections_start, even if !exit_reachable.
6620 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
6622         * lra-constraints.c (need_for_all_save_p): Use macro
6623         HARD_REGNO_CALL_PART_CLOBBERED.
6624         * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
6625         set up pseudo conflict hard regs.
6627 2013-09-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
6629         PR target/58452
6630         * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
6631         operands.
6633 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
6635         PR rtl-optimization/58438
6636         * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
6637         * lra-constraints.c (undo_optional_reloads): Keep optional reloads
6638         from previous subpasses.
6640 2013-09-18  Richard Earnshaw  <rearnsha@arm.com>
6642         * arm.c (arm_get_frame_offsets): Validate architecture supports
6643         LDRD/STRD before accepting the tuning preference.
6644         (arm_expand_prologue): Likewise.
6645         (arm_expand_epilogue): Likewise.
6647 2013-09-18  Richard Biener  <rguenther@suse.de>
6649         PR tree-optimization/58417
6650         * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
6651         have chrecs with symbols defined in the loop as operands.
6652         (chrec_fold_multiply): Likewise.
6653         * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
6654         parameters before folding binary operations.
6655         (struct instantiate_cache_entry_hasher): Remove.
6656         (struct instantiate_cache_type): Use a pointer-map.
6657         (instantiate_cache_type::instantiate_cache_type): New function.
6658         (instantiate_cache_type::get): Likewise.
6659         (instantiate_cache_type::set): Likewise.
6660         (instantiate_cache_type::~instantiate_cache_type): Adjust.
6661         (get_instantiated_value_entry): Likewise.
6662         (global_cache): New global.
6663         (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
6664         instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
6665         instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
6666         (instantiate_scev_name): Adjust.
6667         (instantiate_scev): Construct global instead of local cache.
6668         (resolve_mixers): Likewise.
6670 2013-09-18  Daniel Morris  <danielm@ecoscentric.com>
6671             Paolo Carlini  <paolo.carlini@oracle.com>
6673         PR c++/58458
6674         * doc/implement-cxx.texi: Fix references to the C++ standards.
6676 2013-09-18  Jakub Jelinek  <jakub@redhat.com>
6678         * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
6679         * tree-vect-data-refs.c (vect_analyze_data_refs): For
6680         simd_lane_access drs, update also DR_ALIGNED_TO.
6682 2013-09-18  Marek Polacek  <polacek@redhat.com>
6684         PR sanitizer/58411
6685         * doc/extend.texi: Document no_sanitize_undefined attribute.
6686         * builtins.c (fold_builtin_0): Don't sanitize function if it has the
6687         no_sanitize_undefined attribute.
6689 2013-09-18  Nick Clifton  <nickc@redhat.com>
6691         * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
6692         (ASM_DECLARE_FUNCTION_NAME): Define.
6694 2013-09-17  Trevor Saunders  <tsaunders@mozilla.com>
6696         * compare-elim.c (find_comparison_dom_walker): New class
6697         (find_comparisons_in_bb): Rename to
6698         find_comparison_dom_walker::before_dom_children
6699         (find_comparisons): Adjust
6700         * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
6701         adjust.
6702         (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
6703         * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
6704         (init_walk_dominator_tree): Remove declaration.
6705         (fini_walk_dominator_tree): Remove declaration.
6706         * fwprop.c (single_def_use_dom_walker): New class
6707         (single_def_use_enter_block): Convert to
6708         single_def_use_dom_walker::before_dom_children.
6709         (single_def_use_leave_block): Convert to
6710         single_def_use_dom_walker::after_dom_children.
6711         (build_single_def_use_links): Adjust.
6712         * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
6713         class.
6714         (find_candidates_in_block): Convert to
6715         find_candidates_dom_walker::before_dom_children.
6716         (execute_strength_reduction): Adjust.
6717         * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
6718         (sese_dom_walker): New class.
6719         (sese_dom_walker::sese_dom_walker): New constructor.
6720         (sese_dom_walker::~sese_dom_walker): New destructor.
6721         (build_sese_conditions_before): Convert to
6722         sese_dom_walker::before_dom_children.
6723         (build_sese_conditions_after): Convert to
6724         sese_dom_walker::after_dom_children.
6725         (build_poly_scop): Adjust
6726         * tree-into-ssa.c (rewrite_dom_walker): New class
6727         (rewrite_enter_block): Convert to
6728         rewrite_dom_walker::before_dom_children.
6729         (rewrite_leave_block): Convert to
6730         rewrite_dom_walker::after_dom_children.
6731         (rewrite_update_dom_walker): New class.
6732         (rewrite_update_enter_block): Convert to
6733         rewrite_update_dom_walker::before_dom_children.
6734         (rewrite_update_leave_block): Convert to
6735         rewrite_update_dom_walker::after_dom_children.
6736         (rewrite_blocks, rewrite_into_ssa): Adjust.
6737         (mark_def_dom_walker): New class.
6738         (mark_def_dom_walker::mark_def_dom_walker): New constructor.
6739         (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
6740         (mark_def_sites_blocks): Convert to
6741         mark_def_dom_walker::before_dom_children.
6742         (mark_def_site_blocks): Remove.
6743         * tree-ssa-dom.c (dom_opt_dom_walker): New class.
6744         (tree_ssa_dominator_optimize): Adjust.
6745         (dom_thread_across_edge): Convert to method
6746         dom_opt_dom_walker::thread_across_edge.
6747         (dom_opt_enter_block): Convert to member function
6748         dom_opt_dom_walker::before_dom_children.
6749         (dom_opt_leave_block): Convert to member function
6750         dom_opt_dom_walker::after_dom_children.
6751         * tree-ssa-dse.c (dse_dom_walker): New class.
6752         (dse_enter_block): Convert to member function
6753         dse_dom_walker::before_dom_children.
6754         (tree_ssa_dse): Adjust.
6755         * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
6756         (determine_invariantness_stmt): Convert to method
6757         invariantness_dom_walker::before_dom_children.
6758         (determine_invariantness): Remove
6759         (move_computations_dom_walker): New class.
6760         (move_computations_stmt): Convert to method
6761         move_computations_dom_walker::before_dom_children.
6762         (move_computations, tree_ssa_lim): Adjust.
6763         * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
6764         (nt_init_block): Convert to method
6765         notrappping_dom_walker::before_dom_children.
6766         (nt_fini_block): Convert to method
6767         method nontrapping_dom_walker::after_dom_children.
6768         (get_non_trapping): Adjust.
6769         * tree-ssa-pre.c (eliminate_dom_walker): New class.
6770         (eliminate_bb): Convert to method
6771         eliminate_dom_walker::before_dom_children.
6772         (eliminate_leave_block): Convert to method
6773         eliminate_dom_walker::after_dom_children.
6774         (eliminate): Adjust.
6775         * tree-ssa-strlen.c (strlen_dom_walker): New class.
6776         (strlen_enter_block): Convert to method
6777         strlen_dom_walker::before_dom_children.
6778         (strlen_leave_block): Convert to method
6779         method strlen_dom_walker::after_dom_children.
6780         (tree_ssa_strlen): Adjust.
6781         * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
6782         (tree_ssa_uncprop): Adjust.
6783         (uncprop_leave_block): Convert to method
6784         uncprop_dom_walker::after_dom_children.
6785         (uncprop_leave_block): Convert to method
6786         uncprop_dom_walker::before_dom_children.
6788 2013-09-18  Bin Cheng  <bin.cheng@arm.com>
6790         * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
6791         branch in same basic block.  Check both src and dest of the move insn.
6793 2013-09-17  Nick Clifton  <nickc@redhat.com>
6795         * config/rl78/rl78-real.md (bf): New pattern.
6796         (bt): New pattern.
6797         * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
6798         (rl78_print_operand): Do not put a # before a %B.
6799         * config/rl78/rl78.opt: Tweak doc strings.
6801 2013-09-17  DJ Delorie  <dj@redhat.com>
6803         * config/rl78/constraints.md (Wcv): Allow up to $r31.
6804         * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
6805         (rl78_option_override): Likewise, if -mallregs.
6806         (is_virtual_register): Likewise.
6807         * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
6808         (REGNO_OK_FOR_BASE_P): Likewise.
6809         * config/rl78/rl78.opt (-mallregs): New.
6811 2013-09-17  Nick Clifton  <nickc@redhat.com>
6813         * config/rl78/rl78.c (need_to_save): Change return type to bool.
6814         For interrupt functions: save all call clobbered registers if the
6815         interrupt handler is not a leaf function.
6816         (rl78_expand_prologue): Always recompute the frame information.
6817         For interrupt functions: only select bank 0 if one of the bank 0
6818         registers is going to be psuhed.
6820 2013-09-17  DJ Delorie  <dj@redhat.com>
6822         * config/rl78/constraints.md: For each W* constraint, rename to C*
6823         and create a W* constraint that checks for an optional ES: prefix
6824         pattern also.
6825         * config/rl78/rl78.md (UNS_ES_ADDR): New.
6826         (es_addr): New.  Used to wrap far addresses.
6827         * config/rl78/rl78-protos.h (rl78_es_addr): New.
6828         (rl78_es_base): New.
6829         * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
6830         wrapped far addresses.
6831         (rl78_print_operand_1): Unwrap far addresses before processing.
6832         (rl78_lo16): Wrap far addresses in unspecs.
6833         (rl78_es_addr): New.
6834         (rl78_es_base): New.
6835         (insn_ok_now): Check for not-yet-wrapped far addresses.
6836         (transcode_memory_rtx): Properly re-wrap far addresses.
6838 2013-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
6840         * config/sparc/t-rtems: Add leon3 multilibs.
6842 2013-09-17  Cong Hou  <congh@google.com>
6844         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
6845         when checking the dot production pattern. The type of rhs operand
6846         of multiply is now checked correctly.
6848 2013-09-17  Jeff Law  <law@redhat.com>
6850         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
6851         edge implied equivalences into successor phis.
6852         * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
6853         here from tree-ssa-threadedge.c.
6854         (mark_threaded_blocks): When threading through a joiner, if both
6855         successors of the joiner's clone reach the same block, verify the
6856         PHI arguments are equal.  If not, cancel the jump threading request.
6857         * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
6858         tree-ssa-threadupdate.c
6859         (thread_across_edge): Don't check PHI argument equality when
6860         threading through joiner block here.
6862 2013-09-17  Andrew MacLeod <amacleod@redhat.com>
6864         * tree-flow.h (ssa_undefined_value_p): Remove prototype.
6865         * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
6866         (warn_uninit, warn_uninitialized_vars,
6867         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
6868         Move to tree-ssa-uninit.c.
6869         * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
6870         (has_undefined_value_p): New.  Pass dependant parts of
6871         ssa_undefined_value_p.
6872         (uninit_undefined_value_p): Use has_undefined_value_p.
6873         (warn_uninit, warn_uninitialized_vars,
6874         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
6875         Move from tree-ssa.c.
6876         * tree-ssa.h: Adjust prototypes.
6878 2013-09-17  Jan Hubicka  <jh@suse.cz>
6880         PR middle-end/58332
6881         * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
6882         * ipa-inline.c (can_inline_edge_p): Do not downgrade
6883         FUNCTION_NOT_OPTIMIZED.
6884         * ipa-inline-analysis.c (compute_inline_parameters): Function
6885         not optimized is not inlinable unless it is alwaysinline.
6886         (inline_analyze_function): Force calls in not optimized
6887         function not inlinable.
6889 2013-09-17  Jan Hubicka  <jh@suse.cz>
6891         PR middle-end/58329
6892         * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
6893         to return NULL.
6894         * ipa.c (function_and_variable_visibility): Likewise.
6895         * ipa-profile.c (ipa_profile): Likewise.
6897 2013-09-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6899         PR ipa/58398
6900         * cgraph.c (cgraph_function_body_availability): Check for ifunc
6901         attribute, and don't inline the resolver in this case.
6903 2013-09-17  Teresa Johnson  <tejohnson@google.com>
6905         * coverage.c (get_coverage_counts): Add missing newline.
6907 2013-09-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6909         PR tree-optimization/58088
6910         * fold-const.c (mask_with_trailing_zeros): New function.
6911         (fold_binary_loc): Make sure we don't recurse infinitely
6912         when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
6913         Use mask_with_trailing_zeros where appropriate.
6915 2013-09-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
6917         * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
6918         of 'prev' var to get better distance estimation.
6920 2013-09-17  Eric Botcazou  <ebotcazou@adacore.com>
6922         * tree-inline.h (struct copy_body_data): Add transform_parameter.
6923         * tree-inline.c (is_parameter_of): New predicate.
6924         (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
6925         a parameter has been remapped.
6926         (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
6927         (optimize_inline_calls): Initialize transform_parameter.
6928         (copy_gimple_seq_and_replace_locals): Likewise.
6929         (tree_function_versioning): Likewise.
6930         (maybe_inline_call_in_expr): Likewise.
6932 2013-09-17  Nick Clifton  <nickc@redhat.com>
6934         * config/msp430/msp430-protos.h: Add prototypes for new functions.
6935         * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
6936         interrupt handlers.
6937         (is_attr_func): New function.
6938         (msp430_is_interrupt_func): New function.
6939         (is_naked_func): New function.
6940         (is_reentrant_func): New function.
6941         (is_critical_func): New function.
6942         (msp430_start_function): Add annotations for function attributes.
6943         (msp430_attr): New function.
6944         (msp430_attribute_table): New.
6945         (msp430_function_section): New function.
6946         (TARGET_ASM_FUNCTION_SECTION): Define.
6947         (msp430_builtin): New enum.
6948         (msp430_init_builtins): New function.
6949         (msp430_builtin_devl): New function.
6950         (msp430_expand_builtin): New function.
6951         (TARGET_INIT_BUILTINS): Define.
6952         (TARGET_EXPAND_BUILTINS): Define.
6953         (TARGET_BUILTIN_DECL): Define.
6954         (msp430_expand_prologue): Add support for naked, interrupt,
6955         critical and reentrant functions.
6956         (msp430_expand_epilogue): Likewise.
6957         (msp430_print_operand): Handle 'O' character.
6958         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
6959         NO_TRAMPOLINES.
6960         * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
6961         UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
6962         (pushm): Use a 'n' rather than an 'i' constraint.
6963         (msp_return): Add generation of the interrupt return instruction.
6964         (disable_interrupts): New pattern.
6965         (enable_interrupts): New pattern.
6966         (push_intr_state): New pattern.
6967         (pop_intr_state): New pattern.
6968         (bic_SR): New pattern.
6969         (bis_SR): New pattern.
6970         * doc/extend.texi: Document MSP430 function attributes and builtin
6971         functions.
6973 2013-09-17  Richard Biener  <rguenther@suse.de>
6975         PR tree-optimization/58432
6976         * tree-loop-distribution.c (tree_loop_distribution): Also
6977         scan PHIs for outside loop uses and seed a partition from them.
6979 2013-09-17  Bin Cheng  <bin.cheng@arm.com>
6981         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
6982         (restructure_reference): Call backtrace_base_for_ref.
6984 2013-09-17  Alan Modra  <amodra@gmail.com>
6986         PR target/57589
6987         * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
6988         patch.
6990 2013-09-16  DJ Delorie  <dj@redhat.com>
6992         * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
6993         vregs location for RL78/G10.
6994         (rl78_expand_prologue): Avoid SEL on G10.
6995         (rl78_expand_epilogue): Likewise.
6996         (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
6997         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
6998         __RL78_G10__ when appropriate.
6999         (ASM_SPEC): Pass -mg10 along to the assembler.
7000         * config/rl78/rl78.md (sel_rb): Disable for G10.
7001         * config/rl78/rl78.opt: Add -mg10 option.
7002         * config/rl78/t-rl78: Add -mg10 multilib.
7004 2013-09-16  Xinliang David Li  <davidxl@google.com>
7006         * tree-if-conv.c (main_tree_if_conversion): Check new flag.
7007         * omp-low.c (omp_max_vf): Ditto.
7008         (expand_omp_simd): Ditto.
7009         * tree-vectorizer.c (vectorize_loops): Ditto.
7010         (gate_vect_slp): Ditto.
7011         (gate_increase_alignment): Ditto.
7012         * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
7013         * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
7014         (gate_tree_vectorize): Name change.
7015         (tree_vectorize): Ditto.
7016         (pass_vectorize::gate): Call new function.
7017         (pass_vectorize::execute): Ditto.
7018         * opts.c: O3 default setting change.
7019         (finish_options): Check new flag.
7020         * doc/invoke.texi: Document new flags.
7021         * common.opt: New flags.
7023 2013-09-16  Andreas Schwab  <schwab@linux-m68k.org>
7025         * doc/tm.texi.in (Cond Exec Macros): Remove node.
7026         (Condition Code): Don't reference it.
7027         * doc/tm.texi: Regenerate.
7029 2013-09-16  Vladimir Makarov  <vmakarov@redhat.com>
7031         PR middle-end/58418
7032         * lra-constraints.c (undo_optional_reloads): Consider all optional
7033         reload even if it did not get a hard reg.
7035 2013-09-16  Teresa Johnson  <tejohnson@google.com>
7037         * dumpfile.c (dump_loc): Remove newline emission.
7038         * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
7039         emission to dump_printf_loc calls where missing.
7040         (vect_mark_for_runtime_alias_test): Ditto.
7041         (vect_analyze_data_ref_dependence): Ditto.
7042         (vect_analyze_data_ref_dependences): Ditto.
7043         (vect_slp_analyze_data_ref_dependence): Ditto.
7044         (vect_slp_analyze_data_ref_dependences): Ditto.
7045         (vect_compute_data_ref_alignment): Ditto.
7046         (vect_update_misalignment_for_peel): Ditto.
7047         (vect_verify_datarefs_alignment): Ditto.
7048         (vector_alignment_reachable_p): Ditto.
7049         (vect_get_data_access_cost): Ditto.
7050         (vect_enhance_data_refs_alignment): Ditto.
7051         (vect_find_same_alignment_drs): Ditto.
7052         (vect_analyze_data_refs_alignment): Ditto.
7053         (vect_analyze_group_access): Ditto.
7054         (vect_analyze_data_ref_access): Ditto.
7055         (vect_analyze_data_ref_accesses): Ditto.
7056         (vect_prune_runtime_alias_test_list): Ditto.
7057         (vect_analyze_data_refs): Ditto.
7058         (vect_create_addr_base_for_vector_ref): Ditto.
7059         (vect_create_data_ref_ptr): Ditto.
7060         (vect_grouped_store_supported): Ditto.
7061         (vect_grouped_load_supported): Ditto.
7062         * value-prof.c (check_counter): Ditto.
7063         (check_ic_target): Ditto.
7064         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
7065         (vect_recog_widen_mult_pattern): Ditto.
7066         (vect_recog_widen_sum_pattern): Ditto.
7067         (vect_recog_over_widening_pattern): Ditto.
7068         (vect_recog_widen_shift_pattern): Ditto.
7069         (vect_recog_rotate_pattern): Ditto.
7070         (vect_recog_vector_vector_shift_pattern): Ditto.
7071         (vect_recog_divmod_pattern): Ditto.
7072         (vect_recog_mixed_size_cond_pattern): Ditto.
7073         (vect_recog_bool_pattern): Ditto.
7074         (vect_pattern_recog_1): Ditto.
7075         (vect_pattern_recog): Ditto.
7076         * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
7077         (vect_is_simple_iv_evolution): Ditto.
7078         (vect_analyze_scalar_cycles_1): Ditto.
7079         (vect_get_loop_niters): Ditto.
7080         (vect_analyze_loop_1): Ditto.
7081         (vect_analyze_loop_form): Ditto.
7082         (vect_analyze_loop_operations): Ditto.
7083         (vect_analyze_loop_2): Ditto.
7084         (vect_analyze_loop): Ditto.
7085         (report_vect_op): Ditto.
7086         (vect_is_slp_reduction): Ditto.
7087         (vect_is_simple_reduction_1): Ditto.
7088         (vect_get_known_peeling_cost): Ditto.
7089         (vect_estimate_min_profitable_iters): Ditto.
7090         (vect_model_reduction_cost): Ditto.
7091         (vect_model_induction_cost): Ditto.
7092         (get_initial_def_for_induction): Ditto.
7093         (vect_create_epilog_for_reduction): Ditto.
7094         (vectorizable_reduction): Ditto.
7095         (vectorizable_induction): Ditto.
7096         (vectorizable_live_operation): Ditto.
7097         (vect_loop_kill_debug_uses): Ditto.
7098         (vect_transform_loop): Ditto.
7099         * tree-vect-stmts.c (vect_mark_relevant): Ditto.
7100         (vect_stmt_relevant_p): Ditto.
7101         (process_use): Ditto.
7102         (vect_mark_stmts_to_be_vectorized): Ditto.
7103         (vect_model_simple_cost): Ditto.
7104         (vect_model_promotion_demotion_cost): Ditto.
7105         (vect_model_store_cost): Ditto.
7106         (vect_get_store_cost): Ditto.
7107         (vect_model_load_cost): Ditto.
7108         (vect_get_load_cost): Ditto.
7109         (vect_init_vector_1): Ditto.
7110         (vect_get_vec_def_for_operand): Ditto.
7111         (vect_finish_stmt_generation): Ditto.
7112         (vectorizable_call): Ditto.
7113         (vectorizable_conversion): Ditto.
7114         (vectorizable_assignment): Ditto.
7115         (vectorizable_shift): Ditto.
7116         (vectorizable_operation): Ditto.
7117         (vectorizable_store): Ditto.
7118         (vectorizable_load): Ditto.
7119         (vectorizable_condition): Ditto.
7120         (vect_analyze_stmt): Ditto.
7121         (vect_transform_stmt): Ditto.
7122         (vect_is_simple_use): Ditto.
7123         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
7124         (vect_can_advance_ivs_p): Ditto.
7125         (vect_update_ivs_after_vectorizer): Ditto.
7126         (vect_do_peeling_for_loop_bound): Ditto.
7127         (vect_gen_niters_for_prolog_loop): Ditto.
7128         (vect_update_inits_of_drs): Ditto.
7129         (vect_create_cond_for_alias_checks): Ditto.
7130         * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
7131         (vect_build_slp_tree_1): Ditto.
7132         (vect_supported_load_permutation_p): Ditto.
7133         (vect_analyze_slp_instance): Ditto.
7134         (vect_analyze_slp): Ditto.
7135         (vect_make_slp_decision): Ditto.
7136         (vect_detect_hybrid_slp): Ditto.
7137         (vect_bb_vectorization_profitable_p): Ditto.
7138         (vect_slp_analyze_bb_1): Ditto.
7139         (vect_update_slp_costs_according_to_vf): Ditto.
7140         (vect_get_mask_element): Ditto.
7141         (vect_transform_slp_perm_load): Ditto.
7142         (vect_schedule_slp_instance): Ditto.
7143         (vect_schedule_slp): Ditto.
7144         (vect_slp_transform_bb): Ditto.
7145         * profile.c (read_profile_edge_counts): Ditto.
7146         (compute_branch_probabilities): Ditto.
7147         * coverage.c (get_coverage_counts): Ditto.
7149 2013-09-16  Diego Novillo  <dnovillo@google.com>
7151         * tree-core.h: Add missing comment lines from refactoring of tree.h.
7153 2013-09-16  Jan Hubicka  <jh@suse.cz>
7155         * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
7156         abstract functions; for static functions check the presence of body.
7158 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
7160         * config/aarch64/aarch64-simd-builtins.def (fma): New.
7161         * config/aarch64/aarch64-simd.md
7162         (aarch64_mla_elt<mode>): New.
7163         (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
7164         (aarch64_mls_elt<mode>): Likewise.
7165         (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
7166         (aarch64_fma4_elt<mode>): Likewise.
7167         (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
7168         (aarch64_fma4_elt_to_128v2df): Likewise.
7169         (aarch64_fma4_elt_to_64df): Likewise.
7170         (fnma<mode>4): Likewise.
7171         (aarch64_fnma4_elt<mode>): Likewise.
7172         (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
7173         (aarch64_fnma4_elt_to_128v2df): Likewise.
7174         (aarch64_fnma4_elt_to_64df): Likewise.
7175         * config/aarch64/iterators.md (VDQSF): New.
7176         * config/aarch64/arm_neon.h
7177         (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
7178         (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
7180 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
7182         * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
7183         (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
7184         (aarch64_mul3_elt_to_128df): Likewise.
7185         (aarch64_mul3_elt_to_64v2df): Likewise.
7186         * config/aarch64/iterators.md (VEL): Also handle DFmode.
7187         (VMUL): New.
7188         (VMUL_CHANGE_NLANES) Likewise.
7189         (h_con): Likewise.
7190         (f): Likewise.
7191         * config/aarch64/arm_neon.h
7192         (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
7194 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
7196         * config/aarch64/arm_neon.h
7197         (vcvtx_high_f32_f64): Fix parameters.
7199 2013-09-16  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7200             Uros Bizjak  <ubizjak@gmail.com>
7202         * config/alpha.c: Include tree-ssanames.h.
7204 2013-09-16  Richard Biener  <rguenther@suse.de>
7206         * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
7207         (dot_rdg_1): Handle control_dd.
7208         (create_edge_for_control_dependence): New function.
7209         (create_rdg_edges): Add control dependences if asked for.
7210         (build_rdg): Likewise.
7211         (generate_loops_for_partition): If there are not necessary
7212         control stmts remove all their dependencies.
7213         (collect_condition_stmts, rdg_flag_loop_exits): Remove.
7214         (distribute_loop): Pass on control dependences.
7215         (tree_loop_distribution): Compute control dependences and remove
7216         restriction on number of loop nodes.
7218 2013-09-16  Jakub Jelinek  <jakub@redhat.com>
7220         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
7221         for internal calls.
7223 2013-09-16  Richard Sandiford  <rdsandiford@googlemail.com>
7225         * cse.c (try_const_anchors): Punt on CC modes.
7227 2013-09-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7229         * config/vax/constraints.md (T): Add missing CONSTANT_P check.
7231 2013-09-14  John David Anglin  <danglin@gcc.gnu.org>
7233         PR target/58382
7234         * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
7235         calls to word_mode.
7237 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
7239         PR target/48094
7240         * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
7241         seen.
7242         (darwin_objc1_section): Likewise.
7243         (darwin_file_end): Emit Image Info section when required.
7245 2013-09-14  Jan Hubicka  <jh@suse.cz>
7247         * tree-into-ssa.c (gate_into_ssa): New.
7248         (pass_data_build_ssa): Use it.
7249         * cgraph.h (expand_thunk): Update prototype.
7250         * cgraphunit.c (analyze_function): Expand thunks early.
7251         (expand_thunk): Fix DECL_CONTEXT of reust_decl;
7252         build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
7253         set lowered flag; do not add new function.
7254         (assemble_thunks_and_aliases): Update.
7255         * tree-ssa.c (gate_init_datastructures): New gate.
7256         (pass_data_init_datastructures): Use it.
7258 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
7260         PR target/58269
7261         * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
7262         xmm register set described in the psABI.
7264 2013-09-13  Evgeny Gavrin <e.gavrin@samsung.com>
7266         * dwarf2out.c (should_emit_struct_debug): Add check
7267         for type_decl variable is not NULL.
7269 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
7271         * config.gcc: Use new winnt-c.c target hooks
7272         * config/t-winnt: New file
7273         * config/winnt-c.c: New file
7274         * doc/tm.texi.in: Document new hook
7275         * doc/tm.texi: Regenerated
7277 2013-09-13  Jan Hubicka  <jh@suse.cz>
7279         PR middle-end/58094
7280         * ipa-inline.c (check_callers): New function.
7281         (check_caller_edge): Remove.
7282         (want_inline_function_to_all_callers_p): Also permit alises that are
7283         called dirrectly.
7284         (inline_to_all_callers): Terminate the walk when devirtualization
7285         introduce new calls.
7287 2013-09-13  Jan Hubicka  <jh@suse.cz>
7289         * ipa-inline-analysis.c (struct growth_data): Add node.
7290         (do_estimate_growth_1): Fix detection of recursion.
7292 2013-09-13  Jakub Jelinek  <jakub@redhat.com>
7294         PR tree-optimization/58392
7295         * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
7296         to avoid shadowing of outer loop variable.  If
7297         saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
7298         replace_by_duplicate_decl simduid of loops that have it set and
7299         set dest_cfun->has_simduid_loops and/or
7300         dest_cfun->has_force_vect_loops.
7301         * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
7302         instead of maybe_lookup_decl.
7303         * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
7304         Use id->blocks_to_copy instead of blocks_to_copy.  Adjust recursive
7305         call.  Copy over force_vect and copy and remap simduid.  Set
7306         cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
7307         (copy_cfg_body): Remove blocks_to_copy argument.  Use
7308         id->blocks_to_copy instead of blocks_to_copy.  Adjust copy_loops
7309         caller.  Don't set cfun->has_simduid_loops and/or
7310         cfun->has_force_vect_loops here.
7311         (copy_body): Remove blocks_to_copy argument.  Adjust copy_cfg_body
7312         caller.
7313         (expand_call_inline, tree_function_versioning): Adjust copy_body
7314         callers.
7316 2013-09-13  Martin Jambor  <mjambor@suse.cz>
7318         PR bootstrap/58388
7319         * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
7320         the assert if the edge was a speculative one.
7322 2013-09-13  Richard Biener  <rguenther@suse.de>
7324         * tree-data-ref.h (known_dependences_p): Move here ...
7325         * tree-loop-distribution.c (known_dependences_p): ... from here.
7326         (dump_rdg_component, debug_rdg_component): Remove.
7327         (dump_rdg): Adjust.
7328         (generate_loops_for_partition): Use gimple_uid instead of
7329         relying on matching stmt visit order.
7330         (rdg_build_partitions): Take starting stmt vector.
7331         (ldist_gen): Merge into ...
7332         (distribute_loop): ... this function.  Do not compute starting
7333         vertices vector.
7334         * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
7336 2013-09-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7338         * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
7339         Set type attribute correctly. Set predicable_short_it attribute.
7340         (cmpsi_shiftsi): Remove %? from output template.
7342 2013-09-13  Richard Biener  <rguenther@suse.de>
7344         * tree-loop-distribution.c (struct rdg_component,
7345         rdg_defs_used_in_other_loops_p, free_rdg_components,
7346         rdg_build_components): Remove.
7347         (stmts_from_loop): Do not record virtual PHIs.
7348         (generate_loops_for_partition): Skip virtual PHIs.
7349         (build_rdg_partition_for_component): Rename to ...
7350         (build_rdg_partition_for_vertex): ... this and adjust.
7351         (rdg_build_partitions): Take a vector of starting vertices
7352         instead of components.  Remove unnecessary leftover handling.
7353         (ldist_gen): Do not build components or record other stores.
7354         (distribute_loop): Do not distribute loops containing stmts
7355         with side-effects.
7357 2013-09-13  Christian Bruel  <christian.bruel@st.com>
7359         PR target/58314
7360         * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
7362 2013-09-13  Kai Tietz  <ktietz@redhat.com>
7364         * config.gcc: Separate cases for mingw and cygwin targets,
7365         and add 64-bit cygwin target case.
7367         * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
7368         dll-export inline-functions.
7369         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
7372 2013-09-13  Jeff Law  <law@redhat.com>
7374         PR middle-end/58387
7375         Revert:
7376         2013-09-06  Jeff Law  <law@redhat.com>
7378         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
7379         edge implied equivalences into successor phis.
7381 2013-09-12  DJ Delorie  <dj@redhat.com>
7383         * config/rl78/rl78-virt.md: Change from | to \; for asm line
7384         separators.
7386 2013-09-12  Brooks Moses  <bmoses@google.com>
7388         PR driver/42955
7389         * Makefile.in: Do not install driver binaries in $(target)/bin.
7391 2013-09-12  DJ Delorie  <dj@redhat.com>
7393         * config/rl78/rl78.opt (mrelax): New.
7394         * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
7395         * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
7397         * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
7398         between SP and FP.
7399         (rl78_expand_epilogue): Likewise.
7401 2013-09-12  Vladimir Makarov  <vmakarov@redhat.com>
7403         PR middle-end/58335
7404         * lra-eliminations.c (remove_reg_equal_offset_note): New.
7405         (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
7406         pointer elimination with using remove_reg_equal_offset_note.
7408 2013-09-12  DJ Delorie  <dj@redhat.com>
7410         * config/msp430/: New port.
7411         * config.gcc (msp430): Added.
7412         * doc/invoke.texi: Document MSP430 options.
7413         * doc/install.texi: Document msp430-elf
7414         * doc/md.texi: Document msp430-elf
7415         * doc/contrib.texi: Document msp430-elf
7417         * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
7418         PSImode.
7420 2013-09-12  Martin Jambor  <mjambor@suse.cz>
7422         PR ipa/58389
7423         * ipa-prop.c (remove_described_reference): Give up if the edge in the
7424         reference descriptor is NULL.
7425         (ipa_edge_removal_hook): If owning a reference descriptor, set its
7426         edge to NULL.
7428 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
7430         * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
7431         (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
7432         num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
7433         * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
7434         make_temp_ssa_name): move to tree-ssanames.h
7435         * tree-ssa-alias.h: Move prototype.
7436         * tree-ssa.h: Include tree-ssanames.h.
7437         * tree-ssanames.c (FREE_SSANAMES): Move to here.
7438         * tree-ssanames.h: New.  Move items from tree-flow*.h
7439         * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
7441 2013-09-12  Richard Biener  <rguenther@suse.de>
7443         PR tree-optimization/58404
7444         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
7445         propagate non-invariant addresses into dereferences wrapped
7446         in component references.
7448 2013-09-12  Richard Biener  <rguenther@suse.de>
7450         PR tree-optimization/58402
7451         * passes.def: Move pass_late_warn_uninitialized later.
7453 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
7455         * tree-ssa.h: New.  Move content from tree-flow.h and
7456         tree-flow-inline.h.
7457         * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
7458         Move prototypes belonging to tree-ssa.c.
7459         * tree-flow-inline.h (redirect_edge_var_map_def,
7460         redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
7461         tree-ssa.h.
7462         * gimple.h: Adjust prototypes.
7463         * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
7464         to...
7465         * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
7466         * tree.h: Move prototype to tree-ssa.h.
7467         * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
7468         * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
7469         * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
7470         cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
7471         cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
7472         ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
7473         gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
7474         gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
7475         graphite-blocking.c, graphite-clast-to-gimple.c,
7476         graphite-dependences.c, graphite-interchange.c,
7477         graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
7478         graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
7479         ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
7480         ipa-reference.c, ipa-split.c, ipa-utils.c,
7481         loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
7482         lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
7483         passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
7484         tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
7485         tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
7486         tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
7487         tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
7488         tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
7489         tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
7490         tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
7491         tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
7492         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
7493         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
7494         tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
7495         value-prof.c, var-tracking.c,
7496         varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
7498 2013-09-12  Richard Biener  <rguenther@suse.de>
7500         PR tree-optimization/58396
7501         * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
7502         (build_rdg): Take a loop-nest parameter, fix memleaks.
7503         (distribute_loop): Compute loop-nest here and pass it to build_rdg.
7505 2013-09-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
7507         * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
7508         for SLM.
7510 2013-09-12  Cameron McInally  <cameron.mcinally@nyu.edu>
7512         * doc/extend.texi: Fix errors in x86 FMA builtin naming.
7513         The FMA instruction names should have a 'v' prefix.
7515 2013-09-12  Richard Biener  <rguenther@suse.de>
7517         * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
7518         (dot_rdg): Use popen instead of system in optional code.
7519         (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
7520         (already_processed_vertex_p): Adjust.
7521         (has_anti_or_output_dependence, predecessor_has_mem_write,
7522         mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
7523         rdg_flag_uses): Remove.
7524         (rdg_flag_vertex): Simplify.
7525         (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
7526         remove recursion.
7527         (build_rdg_partition_for_component): Process the first vertex
7528         of a component only.
7529         (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
7531 2013-09-12  Alan Modra  <amodra@gmail.com>
7533         * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
7535 2013-09-11  DJ Delorie  <dj@redhat.com>
7536             Nick Clifton  <nickc@redhat.com>
7538         * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
7539         (rl78_stack_based_mem): New.
7540         * config/rl78/constraints.md (Iv08): New.
7541         (Iv16): New.
7542         (Iv24): New.
7543         (Is09): New.
7544         (Is17): New.
7545         (Is25): New.
7546         (ISsi): New.
7547         (IShi): New.
7548         (ISqi): New.
7549         * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
7550         (movhi): Likewise.
7551         (movsi): Change from expand to insn-and-split.
7552         (ashrsi3): Clobber AX.
7553         (lshrsi3): New.
7554         (ashlsi3): New.
7555         (cbranchsi4): New.
7556         * config/rl78/rl78.md (CC_REG): Fix.
7557         (addsi3): Allow memory and immediate operands.
7558         (addsi3_internal): Split into...
7559         (addsi3_internal_virt): ...new, and ...
7560         (addsi3_internal_real): ...new.
7561         (subsi): New.
7562         (subsi3_internal_virt): New.
7563         (subsi3_internal_real): New.
7564         (mulsi3): Add memory operand.
7565         (mulsi3_rl78): Likewise.
7566         (mulsi3_g13): Likewise.
7567         * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
7568         (cbranchqi4_real): Add more constraint options.
7569         (cbranchhi4_real): Expand pattern.
7570         (cbranchhi4_real_signed): New.
7571         (cbranchhi4_real_inverted): New.
7572         (cbranchsi4_real_lt): New.
7573         (cbranchsi4_real_ge): New.
7574         (cbranchsi4_real_signed): New.
7575         (cbranchsi4_real): New.
7576         (peephole2): New.
7577         * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
7578         constant shifts.
7579         (lshrsi3_virt): Likewise.
7580         (ashlsi3_virt): Likewise.
7581         (cbranchqi4_virt_signed): New.
7582         (cbranchhi4_virt_signed): New.
7583         (cbranchsi4_virt): New.
7584         * config/rl78/rl78.c: Whitespace fixes throughout.
7585         (move_elim_pass): New.
7586         (pass_data_rl78_move_elim): New.
7587         (pass_rl78_move_elim): New.
7588         (make_pass_rl78_move_elim): New.
7589         (rl78_devirt_info): Run devirt earlier.
7590         (rl78_move_elim_info): New.
7591         (rl78_asm_file_start): Register it.
7592         (rl78_split_movsi): New.
7593         (rl78_as_legitimate_address): Allow virtual base registers when
7594         appropriate.
7595         (rl78_addr_space_convert): Remove spurious debug stuff.
7596         (rl78_print_operand_1): Add z,s,S,r,E modifiers.
7597         (rl78_print_operand): More cases for not printing '#'.
7598         (rl78_expand_compare): Remove most of the logic.
7599         (content_memory): New.
7600         (clear_content_memory): New.
7601         (get_content_index): New.
7602         (get_content_name): New.
7603         (display_content_memory): New.
7604         (update_content): New.
7605         (record_content): New.
7606         (already_contains): New.
7607         (insn_ok_now): Re-recog insns with virtual registers.
7608         (add_postponed_content_update): New.
7609         (process_postponed_content_update): New.
7610         (gen_and_emit_move): New.
7611         (transcode_memory_rtx): Record new location content.
7612         Use gen_and_emit_move.
7613         (force_into_acc): New.
7614         (move_to_acc): Use gen_and_emit_move.
7615         (move_from_acc): Likewise.
7616         (move_acc_to_reg): Likewise.
7617         (move_to_x): Likewise.
7618         (move_to_hl): Likewise.
7619         (move_to_de): Likewise.
7620         (rl78_alloc_physical_registers_op1): Record location content.
7621         (has_constraint): New.
7622         (rl78_alloc_physical_registers_op2): Record location content.
7623         Optimize use of HL.
7624         (rl78_alloc_physical_registers_ro1): Likewise.
7625         (rl78_alloc_physical_registers_cmp): Likewise.
7626         (rl78_alloc_physical_registers_umul): Likewise.
7627         (rl78_alloc_address_registers_macax): New.
7628         (rl78_alloc_physical_registers): Initialize and set location
7629         content memory as needed.
7630         (rl78_reorg): Make sure split2 is called.
7631         (rl78_rtx_costs): New.
7633 2013-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
7635         * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
7636         for (not (neg ...)) and (neg (not ...)) cases.
7638 2013-09-11  Richard Biener  <rguenther@suse.de>
7640         PR middle-end/58377
7641         * passes.def: Split critical edges before late uninit warning passes.
7642         * tree-cfg.c (pass_split_crit_edges): Implement clone method.
7644 2013-09-11  Jakub Jelinek  <jakub@redhat.com>
7646         PR tree-optimization/58385
7647         * fold-const.c (build_range_check): If both low and high are NULL,
7648         use omit_one_operand_loc to preserve exp side-effects.
7650 2013-09-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7652         * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
7654 2013-09-11  Richard Biener  <rguenther@suse.de>
7656         * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
7657         dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
7658         dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
7659         create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
7660         stmts_from_loop, known_dependences_p, build_empty_rdg,
7661         build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
7662         * tree-loop-distribution.c: ... here.
7663         * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
7664         RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
7665         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
7666         struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
7667         * tree-loop-distribution.c: ... here.
7668         * tree-loop-distribution.c: Include gimple-pretty-print.h.
7669         (struct partition_s): Add loops member.
7670         (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
7671         rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
7672         build_rdg_partition_for_component, rdg_build_partitions): Adjust.
7674 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7675             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7676             Sergey Lega  <sergey.s.lega@intel.com>
7677             Anna Tikhonova  <anna.tikhonova@intel.com>
7678             Ilya Tocar  <ilya.tocar@intel.com>
7679             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7680             Ilya Verbin  <ilya.verbin@intel.com>
7681             Kirill Yukhin  <kirill.yukhin@intel.com>
7682             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7684         * config/i386/constraints.md (k): New.
7685         (Yk): Ditto.
7686         * config/i386/i386.c (const regclass_map): Add new mask registers.
7687         (dbx_register_map): Ditto.
7688         (dbx64_register_map): Ditto.
7689         (svr4_dbx_register_map): Ditto.
7690         (ix86_conditional_register_usage): Squash mask registers if AVX512F is
7691         disabled.
7692         (ix86_preferred_reload_class): Disable constants for mask registers.
7693         (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
7694         (ix86_hard_regno_mode_ok): Support new mask registers.
7695         (x86_order_regs_for_local_alloc): Ditto.
7696         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
7697         (FIXED_REGISTERS): Add new mask registers.
7698         (CALL_USED_REGISTERS): Ditto.
7699         (REG_ALLOC_ORDER): Ditto.
7700         (VALID_MASK_REG_MODE): New.
7701         (FIRST_MASK_REG): Ditto.
7702         (LAST_MASK_REG): Ditto.
7703         (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
7704         (MAYBE_MASK_CLASS_P): New.
7705         (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
7706         (REG_CLASS_CONTENTS): Ditto.
7707         (MASK_REGNO_P): New.
7708         (ANY_MASK_REG_P): Ditto.
7709         (HI_REGISTER_NAMES): Add new mask registers.
7710         * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
7711         MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
7712         mask registers.
7713         (attribute "type"): Add mskmov, msklog.
7714         (attribute "length_immediate"): Support them.
7715         (attribute "memory"): Ditto.
7716         (attribute "prefix_0f"): Ditto.
7717         (*movhi_internal): Support new mask registers.
7718         (*movqi_internal): Ditto.
7719         (define_split): Split out clobber pattern is a logic
7720         insn on mask registers.
7721         (*k<logic><mode>): New.
7722         (*andhi_1): Extend to support mask regs.
7723         (*andqi_1): Extend to support mask regs.
7724         (kandn<mode>): New.
7725         (define_split): Split and-not to and and not if operands
7726         are not mask regs.
7727         (*<code><mode>_1): Separate HI mode to new pattern...
7728         (*<code>hi_1): This.
7729         (*<code>qi_1): Extend to support mask regs.
7730         (kxnor<mode>): New.
7731         (kortestzhi): Ditto.
7732         (kortestchi): Ditto.
7733         (kunpckhi): Ditto.
7734         (*one_cmpl<mode>2_1): Remove HImode and handle it...
7735         (*one_cmplhi2_1): ...Here, now with mask registers support.
7736         (*one_cmplqi2_1): Support new mask registers.
7737         (HI/QImode arithmetics splitter): Don't split if mask registers
7738         are used.
7739         (HI/QImode not splitter): Ditto.
7740         * config/i386/predicated.md (mask_reg_operand): New.
7741         (general_reg_operand): Ditto.
7743 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7745         * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
7746         * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
7748 2013-09-10  Jeff Law  <law@redhat.com>
7750         PR tree-optimization/58380
7751         * tree-ssa-threadupdate.c (thread_block): Recognize another case
7752         of threading through a buried loop header.
7754         * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
7755         return value for single successor case.
7757 2013-09-10  Jan Hubicka  <jh@suse.cz>
7759         * ipa-devirt.c (ipa_devirt): Enable with LTO.
7761 2013-09-10  Richard Earnshaw  <rearnsha@arm.com>
7763         PR target/58361
7764         * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
7765         support conditional execution.
7766         (combine_vcvt_f64_<FCVTI32typename>): Likewise.
7768 2013-09-10  Vladimir Makarov  <vmakarov@redhat.com>
7770         * lra.c (lra): Clear lra_optional_reload_pseudos before every
7771         constraint pass.
7772         * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
7773         Check destination too to check move insn.
7774         (undo_optional_reloads): Add check that the original peudo did not
7775         changed its allocation and the optional reload was inherited on last
7776         inheritance pass.  Break loop after deciding to keep optional reload.
7777         (lra_undo_inheritance): Add check that inherited pseudo still in
7778         memory.
7780 2013-09-10  James Greenhalgh  <james.greenhalgh@arm.com>
7782         * config/aarch64/aarch64.md (generic_sched): New.
7783         * config/aarch64/aarch64-generic.md (load): Make conditional
7784         on generic_sched attribute.
7785         (nonload): Likewise.
7787 2013-09-10  Jan Hubicka  <jh@suse.cz>
7789         * lto-cgraph.c: Include ipa-utils.h.
7790         (compute_ltrans_boundary): Also add possible targets into the boundary.
7792 2013-09-10  Jan Hubicka  <jh@suse.cz>
7794         * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
7795         VAR_DECL of vtable rather than full expression.
7797 2013-09-10  Jan Hubicka  <jh@suse.cz>
7798             Paolo Carlini  <paolo.carlini@oracle.com>
7800         * cgraphunit.c (analyze_functions): Save input_location, set it
7801         to UNKNOWN_LOCATION and restore it at the end.
7803 2013-09-10  Martin Jambor  <mjambor@suse.cz>
7805         * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
7806         represented by a thunk.
7808 2013-09-10  Jeff Law  <law@redhat.com>
7810         PR tree-optimization/58343
7811         * tree-ssa-threadupdate.c (thread_block): Identify and disable
7812         jump threading requests through loop headers buried in the middle
7813         of a jump threading path.
7815         * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
7816         in return value/type.
7818 2013-09-10  Jakub Jelinek  <jakub@redhat.com>
7820         PR rtl-optimization/58365
7821         * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
7822         resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
7823         it differs.
7825 2013-09-10  Richard Biener  <rguenther@suse.de>
7827         * tree-data-ref.h (build_rdg): Drop all parameters but loop.
7828         * tree-data-ref.c (create_rdg_vertices): Collect all data
7829         references, signal failure to the caller, use data-ref API.
7830         (build_rdg): Compute data references only once.  Maintain lifetime
7831         of data references and data dependences from within RDG.
7832         (free_rdg): Free dependence relations.
7833         * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
7834         inventing extra dependences.
7835         (distribute_loop): Update for RDG API changes.
7837 2013-09-10  Kai Tietz  <ktietz@redhat.com>
7839         * doc/invoke.texi (fms-extensions): Document changed
7840         behavior for ms-abi targets.
7841         * config/i386/i386.c (ix86_option_override_internal):
7842         Set default value of option -fms-extension for ms-abi targets.
7844 2013-09-10  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
7846         * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
7848 2013-09-10  Alan Modra  <amodra@gmail.com>
7850         PR target/58330
7851         * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
7853 2013-09-10  Alan Modra  <amodra@gmail.com>
7855         * config/rs6000/predicates.md (add_cint_operand): New.
7856         (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
7857         * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
7858         using add_cint_operand.
7859         (largetoc_high_plus_aix): Likewise.
7861 2013-09-09  Jakub Jelinek  <jakub@redhat.com>
7863         PR tree-optimization/58364
7864         * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
7865         BOOLEAN_TYPE, only invert in_p and continue with arg0 if
7866         the current range can't be an unconditional true or false.
7868 2013-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
7870         * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
7872 2013-09-09  Uros Bizjak  <ubizjak@gmail.com>
7874         * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
7876 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
7878         PR c++/43452
7879         * doc/invoke.texi (-Wdelete-incomplete): Document it.
7881 2013-09-09  Ian Bolton  <ian.bolton@arm.com>
7883         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
7884         NO_REGS for immediate that can't be moved directly into FP_REGS.
7886 2013-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7888         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
7889         comparison with negated operand.
7890         * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
7891         RTL form.
7893 2013-09-09  Richard Biener  <rguenther@suse.de>
7895         PR middle-end/58326
7896         * cfgloopmanip.c (fix_bb_placements): When fixing the placement
7897         of a subloop record all its block as affecting loop-closed SSA form.
7899 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
7901         * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
7902         of an rtx/bitpos pair.
7903         (store_fixed_bit_field): Update accordingly.
7905 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
7907         * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
7908         GEN_INT.
7909         * builtins.c (expand_errno_check): Likewise.
7910         * dwarf2cfi.c (init_return_column_size): Likewise.
7911         * except.c (sjlj_mark_call_sites): Likewise.
7912         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
7913         * lra-constraints.c (emit_inc): Likewise.
7914         * ree.c (combine_set_extension): Likewise.
7915         * regmove.c (fixup_match_2): Likewise.
7916         * reload1.c (inc_for_reload): Likewise.
7918 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
7920         * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
7921         (force_to_mode, simplify_shift_const_1, simplify_comparison):
7922         Use gen_int_mode with the mode of the associated simplify_* call.
7923         * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
7924         * expmed.c (expand_shift_1): Likewise.
7925         * function.c (instantiate_virtual_regs_in_insn): Likewise.
7926         * loop-iv.c (iv_number_of_iterations): Likewise.
7927         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
7928         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
7930 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
7932         * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
7933         of the associated expand_* call.
7934         (asan_emit_stack_protection): Likewise.
7935         * builtins.c (round_trampoline_addr): Likewise.
7936         * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
7937         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
7938         (emit_store_flag): Likewise.
7939         * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
7940         (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
7941         Likewise.
7942         * function.c (instantiate_virtual_regs_in_insn): Likewise.
7943         * ifcvt.c (noce_try_store_flag_constants): Likewise.
7944         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
7945         * modulo-sched.c (generate_prolog_epilog): Likewise.
7946         * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
7947         (expand_ctz, expand_ffs, expand_unop): Likewise.
7949 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
7951         * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
7952         of the associated gen_rtx_* call.
7953         * caller-save.c (init_caller_save): Likewise.
7954         * combine.c (find_split_point, make_extraction): Likewise.
7955         (make_compound_operation): Likewise.
7956         * dwarf2out.c (mem_loc_descriptor): Likewise.
7957         * explow.c (plus_constant, probe_stack_range): Likewise.
7958         * expmed.c (expand_mult_const): Likewise.
7959         * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
7960         * reload1.c (init_reload): Likewise.
7961         * valtrack.c (cleanup_auto_inc_dec): Likewise.
7962         * var-tracking.c (adjust_mems): Likewise.
7963         * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
7964         rather than gen_rtx_fmt_ee.
7966 2013-09-09  Jan Hubicka  <jh@suse.cz>
7968         PR middle-end/58294
7969         * value-prof.c (gimple_ic): Copy also abnormal edges.
7971 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
7973         * asan.c (asan_shadow_cst): Use gen_int_mode.
7975 2013-09-08  Jan Hubicka  <jh@suse.cz>
7977         * ipa-profile.c: Add toplevel comment.
7978         (ipa_propagate_frequency_1): Be more conservative when profile is read.
7979         (contains_hot_call_p): New function.
7980         (ipa_propagate_frequency): Set frequencies based on counts when
7981         profile is read.
7982         * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
7983         profile; do not tamper with profile after inlining if it is read.
7985 2013-09-08  Jan Hubicka  <jh@suse.cz>
7987         * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
7988         speculative edges.
7990 2013-09-08  Jan Hubicka  <jh@suse.cz>
7992         * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
7993         summary generation.
7995 2013-09-08  Jeff Law  <law@redhat.com>
7997         PR bootstrap/58340
7998         * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
7999         of 'found'.
8001 2013-09-08  Andi Kleen  <ak@linux.intel.com>
8003         * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
8005 2013-09-08  Jan Hubicka  <jh@suse.cz>
8007         * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
8009 2013-09-08  Richard Sandiford  <rdsandiford@googlemail.com>
8011         * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
8012         for non-debug insns.
8013         * lra.c (new_insn_reg): Take the containing insn as a parameter.
8014         Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
8015         (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
8016         accordingly.
8018 2013-09-08  Jan Hubicka  <jh@suse.cz>
8020         * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
8021         targets and devirtualize to BUILT_IN_UNREACHABLE.
8022         * timevar.def (TV_IPA_UNREACHABLE): New timevar.
8023         * ipa.c (walk_polymorphic_call_targets): New function.
8024         (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
8025         functions; use the new timevar.
8026         * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
8027         was removed from the program.
8028         (record_binfo): If BINFO corresponds to an anonymous namespace, we may
8029         not consider it in the walk when its vtable is dead.
8030         (possible_polymorphic_call_targets_1): Pass anonymous flag to
8031         record_binfo.
8032         (devirt_variable_node_removal_hook): New function.
8033         (possible_polymorphic_call_targets): Also register
8034         devirt_variable_node_removal_hook.
8035         (ipa_devirt): Do not do non-speculative devirtualization.
8036         (gate_ipa_devirt): One execute if devirtualizing speculatively.
8038 2013-09-08  Jan Hubicka  <jh@suse.cz>
8040         * cgraph.h (varpool_node_hook, varpool_node_hook_list,
8041         varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
8042         varpool_remove_variable_insertion_hook): Declare.
8043         * varpool.c (varpool_node_hook_list): New structure.
8044         (first_varpool_node_removal_hook,
8045         first_varpool_variable_insertion_hook): New variables.
8046         (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
8047         varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
8048         varpool_remove_variable_insertion_hook,
8049         varpool_call_variable_insertion_hooks): New functions.
8050         (varpool_remove_node): Use it.
8052 2013-09-08  Paolo Carlini  <paolo.carlini@oracle.com>
8054         PR c++/54941
8055         * diagnostic.c (diagnostic_build_prefix): When s.file is
8056         "<built-in>" don't output line and column numbers.
8058 2013-09-06  Jan Hubicka  <jh@suse.cz>
8060         * cgraphunit.c (expand_thunk): Get body before touching arguments.
8061         * lto-streamer-out.c: Stream thunks, too.
8062         * lto-streamer-in.c (input_function): Pop cfun here
8063         (lto_read_body): Instead of here.
8065 2013-09-06  Caroline Tice  <cmtice@google.com>
8067         * doc/install.texi: Add documentation for the --enable-vtable-verify
8068         and the --disable-libvtv configure options.
8070 2013-09-06  Jeff Law  <law@redhat.com>
8072         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
8073         edge implied equivalences into successor phis.
8075 2013-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
8077         * resource.c (mark_referenced_resources): Handle COND_EXEC.
8079 2013-09-06  Claudiu Zissulescu  <claziss@synopsys.com>
8081         * resource.c (mark_target_live_regs): Compute resources taking
8082         into account if a call is predicated or not.
8084 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
8086         * toplev.c (output_stack_usage): Be prepared for suffixes created by
8087         the compiler in the function names.
8089 2013-09-06  Jan Hubicka  <jh@suse.cz>
8091         PR middle-end/58094
8092         * ipa-inline.c (has_caller_p): New function.
8093         (want_inline_function_to_all_callers_p): Use it.
8094         (sum_callers, inline_to_all_callers): Break out from ...
8095         (ipa_inline): ... here.
8097 2013-09-06  Jan Hubicka  <jh@suse.cz>
8099         * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
8100         only when AVX is enabled.
8102 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
8104         * config/aarch64/aarch64.md
8105         (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
8106         is fpsimd_<load/store>2.
8107         (load_pair<mode>): Likewise.
8108         (store_pair<mode>): Likewise.
8110 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
8112         * config/arm/types.md (type): Add "mrs" type.
8113         * config/aarch64/aarch64.md
8114         (aarch64_load_tp_hard): Make type "mrs".
8115         * config/arm/arm.md
8116         (load_tp_hard): Make type "mrs".
8117         * config/arm/cortex-a15.md: Update with new attributes.
8118         * config/arm/cortex-a5.md: Update with new attributes.
8119         * config/arm/cortex-a53.md: Update with new attributes.
8120         * config/arm/cortex-a7.md: Update with new attributes.
8121         * config/arm/cortex-a8.md: Update with new attributes.
8122         * config/arm/cortex-a9.md: Update with new attributes.
8123         * config/arm/cortex-m4.md: Update with new attributes.
8124         * config/arm/cortex-r4.md: Update with new attributes.
8125         * config/arm/fa526.md: Update with new attributes.
8126         * config/arm/fa606te.md: Update with new attributes.
8127         * config/arm/fa626te.md: Update with new attributes.
8128         * config/arm/fa726te.md: Update with new attributes.
8130 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
8132         * config/aarch64/aarch64.md
8133         (*movti_aarch64): Use "multiple" for type where v8type is "move2".
8134         (*movtf_aarch64): Likewise.
8135         * config/arm/arm.md
8136         (thumb1_movdi_insn): Use "multiple" for type where more than one
8137         instruction is used for a move.
8138         (*arm32_movhf): Likewise.
8139         (*thumb_movdf_insn): Likewise.
8141 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
8143         * config/arm/types.md (type): Rename fcpys to fmov.
8144         * config/arm/vfp.md
8145         (*arm_movsi_vfp): Rename type fcpys as fmov.
8146         (*thumb2_movsi_vfp): Likewise
8147         (*movhf_vfp_neon): Likewise
8148         (*movhf_vfp): Likewise
8149         (*movsf_vfp): Likewise
8150         (*thumb2_movsf_vfp): Likewise
8151         (*movsfcc_vfp): Likewise
8152         (*thumb2_movsfcc_vfp): Likewise
8153         * config/aarch64/aarch64-simd.md
8154         (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
8155         * config/aarch64/aarch64.md
8156         (*movsi_aarch64): Replace type mov_reg with fmovs.
8157         (*movdi_aarch64): Likewise
8158         (*movsf_aarch64): Likewise
8159         (*movdf_aarch64): Likewise
8160         * config/arm/arm.c
8161         (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
8162         * config/arm/iwmmxt.md
8163         (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
8164         * config/arm/arm1020e.md: Update with new attributes.
8165         * config/arm/cortex-a15-neon.md: Update with new attributes.
8166         * config/arm/cortex-a5.md: Update with new attributes.
8167         * config/arm/cortex-a53.md: Update with new attributes.
8168         * config/arm/cortex-a7.md: Update with new attributes.
8169         * config/arm/cortex-a8-neon.md: Update with new attributes.
8170         * config/arm/cortex-a9.md: Update with new attributes.
8171         * config/arm/cortex-m4-fpu.md: Update with new attributes.
8172         * config/arm/cortex-r4f.md: Update with new attributes.
8173         * config/arm/marvell-pj4.md: Update with new attributes.
8174         * config/arm/vfp11.md: Update with new attributes.
8176 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
8178         * config/aarch64/aarch64.md
8179         (*madd<mode>): Fix type attribute.
8180         (*maddsi_uxtw): Likewise.
8181         (*msub<mode>): Likewise.
8182         (*msubsi_uxtw): Likewise.
8183         (<su_optab>maddsidi4): Likewise.
8184         (<su_optab>msubsidi4): Likewise.
8186 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
8188         * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
8189         * config/arm/arm.md (core_cycles): Remove fdiv.
8190         * config/arm/vfp.md:
8191         (*sqrtsf2_vfp): Update for attribute changes.
8192         (*sqrtdf2_vfp): Likewise.
8193         * config/aarch64/aarch64.md:
8194         (sqrt<mode>2): Update for attribute changes.
8195         * config/arm/arm1020e.md: Update with new attributes.
8196         * config/arm/cortex-a15-neon.md: Update with new attributes.
8197         * config/arm/cortex-a5.md: Update with new attributes.
8198         * config/arm/cortex-a53.md: Update with new attributes.
8199         * config/arm/cortex-a7.md: Update with new attributes.
8200         * config/arm/cortex-a8-neon.md: Update with new attributes.
8201         * config/arm/cortex-a9.md: Update with new attributes.
8202         * config/arm/cortex-m4-fpu.md: Update with new attributes.
8203         * config/arm/cortex-r4f.md: Update with new attributes.
8204         * config/arm/marvell-pj4.md: Update with new attributes.
8205         * config/arm/vfp11.md: Update with new attributes.
8207 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
8209         * config/arm/types.md
8210         (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
8211         * config/aarch64/aarch64.md
8212         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
8213         new attributes.
8214         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
8215         (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
8216         (float<GPI:mode><GPF:mode>2): Likewise.
8217         * config/arm/vfp.md
8218         (*truncsisf2_vfp): Update with new attributes.
8219         (*truncsidf2_vfp): Likewise.
8220         (fixuns_truncsfsi2): Likewise.
8221         (fixuns_truncdfsi2): Likewise.
8222         (*floatsisf2_vfp): Likewise.
8223         (*floatsidf2_vfp): Likewise.
8224         (floatunssisf2): Likewise.
8225         (floatunssidf2): Likewise.
8226         (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
8227         (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
8228         * config/arm/arm1020e.md: Update with new attributes.
8229         * config/arm/cortex-a15-neon.md: Update with new attributes.
8230         * config/arm/cortex-a5.md: Update with new attributes.
8231         * config/arm/cortex-a53.md: Update with new attributes.
8232         * config/arm/cortex-a7.md: Update with new attributes.
8233         * config/arm/cortex-a8-neon.md: Update with new attributes.
8234         * config/arm/cortex-a9.md: Update with new attributes.
8235         * config/arm/cortex-m4-fpu.md: Update with new attributes.
8236         * config/arm/cortex-r4f.md: Update with new attributes.
8237         * config/arm/marvell-pj4.md: Update with new attributes.
8238         * config/arm/vfp11.md: Update with new attributes.
8240 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
8242         * config/aarch64/arm_neon.h
8243         (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
8244         (vqtbx<1,2,3,4><q>_s8): Likewise.
8246 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
8248         * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
8249         * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
8250         (add<mode>3): Add type attribute.
8251         (add<mode>3): Likewise.
8252         (usadd<mode>3): Likewise.
8253         (ssadd<mode>3): Likewise.
8254         (sub<mode>3): Likewise.
8255         (sub<mode>3): Likewise.
8256         (ussub<mode>3): Likewise.
8257         (sssub<mode>3): Likewise.
8258         (ssmulsa3): Likewise.
8259         (usmulusa3): Likewise.
8260         (arm_usatsihi): Likewise.
8261         * config/arm/vfp.md
8262         (*movdi_vfp): Add types for all instructions.
8263         (*movdi_vfp_cortexa8): Likewise.
8264         (*movhf_vfp_neon): Likewise.
8265         (*movhf_vfp): Likewise.
8266         (*movdf_vfp): Likewise.
8267         (*thumb2_movdf_vfp): Likewise.
8268         (*thumb2_movdfcc_vfp): Likewise.
8269         * config/arm/arm.md: Add type attribute to all insn patterns.
8270         (*thumb1_adddi3): Add type attribute.
8271         (*arm_adddi3): Likewise.
8272         (*adddi_sesidi_di): Likewise.
8273         (*adddi_zesidi_di): Likewise.
8274         (*thumb1_addsi3): Likewise.
8275         (addsi3_compare0): Likewise.
8276         (*addsi3_compare0_scratch): Likewise.
8277         (*compare_negsi_si): Likewise.
8278         (cmpsi2_addneg): Likewise.
8279         (*addsi3_carryin_<optab>): Likewise.
8280         (*addsi3_carryin_alt2_<optab>): Likewise.
8281         (*addsi3_carryin_clobercc_<optab>): Likewise.
8282         (*subsi3_carryin): Likewise.
8283         (*subsi3_carryin_const): Likewise.
8284         (*subsi3_carryin_compare): Likewise.
8285         (*subsi3_carryin_compare_const): Likewise.
8286         (*arm_subdi3): Likewise.
8287         (*thumb_subdi3): Likewise.
8288         (*subdi_di_zesidi): Likewise.
8289         (*subdi_di_sesidi): Likewise.
8290         (*subdi_zesidi_di): Likewise.
8291         (*subdi_sesidi_di): Likewise.
8292         (*subdi_zesidi_ze): Likewise.
8293         (thumb1_subsi3_insn): Likewise.
8294         (*arm_subsi3_insn): Likewise.
8295         (*anddi3_insn): Likewise.
8296         (*anddi_zesidi_di): Likewise.
8297         (*anddi_sesdi_di): Likewise.
8298         (*ne_zeroextracts): Likewise.
8299         (*ne_zeroextracts): Likewise.
8300         (*ite_ne_zeroextr): Likewise.
8301         (*ite_ne_zeroextr): Likewise.
8302         (*anddi_notdi_di): Likewise.
8303         (*anddi_notzesidi): Likewise.
8304         (*anddi_notsesidi): Likewise.
8305         (andsi_notsi_si): Likewise.
8306         (thumb1_bicsi3): Likewise.
8307         (*iordi3_insn): Likewise.
8308         (*iordi_zesidi_di): Likewise.
8309         (*iordi_sesidi_di): Likewise.
8310         (*thumb1_iorsi3_insn): Likewise.
8311         (*xordi3_insn): Likewise.
8312         (*xordi_zesidi_di): Likewise.
8313         (*xordi_sesidi_di): Likewise.
8314         (*arm_xorsi3): Likewise.
8315         (*andsi_iorsi3_no): Likewise.
8316         (*smax_0): Likewise.
8317         (*smax_m1): Likewise.
8318         (*arm_smax_insn): Likewise.
8319         (*smin_0): Likewise.
8320         (*arm_smin_insn): Likewise.
8321         (*arm_umaxsi3): Likewise.
8322         (*arm_uminsi3): Likewise.
8323         (*minmax_arithsi): Likewise.
8324         (*minmax_arithsi_): Likewise.
8325         (*satsi_<SAT:code>): Likewise.
8326         (arm_ashldi3_1bit): Likewise.
8327         (arm_ashrdi3_1bit): Likewise.
8328         (arm_lshrdi3_1bit): Likewise.
8329         (*arm_negdi2): Likewise.
8330         (*thumb1_negdi2): Likewise.
8331         (*arm_negsi2): Likewise.
8332         (*thumb1_negsi2): Likewise.
8333         (*negdi_extendsid): Likewise.
8334         (*negdi_zero_extend): Likewise.
8335         (*arm_abssi2): Likewise.
8336         (*thumb1_abssi2): Likewise.
8337         (*arm_neg_abssi2): Likewise.
8338         (*thumb1_neg_abss): Likewise.
8339         (one_cmpldi2): Likewise.
8340         (extend<mode>di2): Likewise.
8341         (*compareqi_eq0): Likewise.
8342         (*arm_extendhisi2addsi): Likewise.
8343         (*arm_movdi): Likewise.
8344         (*thumb1_movdi_insn): Likewise.
8345         (*arm_movt): Likewise.
8346         (*thumb1_movsi_insn): Likewise.
8347         (pic_add_dot_plus_four): Likewise.
8348         (pic_add_dot_plus_eight): Likewise.
8349         (tls_load_dot_plus_eight): Likewise.
8350         (*thumb1_movhi_insn): Likewise.
8351         (*thumb1_movsf_insn): Likewise.
8352         (*movdf_soft_insn): Likewise.
8353         (*thumb_movdf_insn): Likewise.
8354         (cbranchsi4_insn): Likewise.
8355         (cbranchsi4_scratch): Likewise.
8356         (*negated_cbranchsi4): Likewise.
8357         (*tbit_cbranch): Likewise.
8358         (*tlobits_cbranch): Likewise.
8359         (*tstsi3_cbranch): Likewise.
8360         (*cbranchne_decr1): Likewise.
8361         (*addsi3_cbranch): Likewise.
8362         (*addsi3_cbranch_scratch): Likewise.
8363         (*arm_cmpdi_insn): Likewise.
8364         (*arm_cmpdi_unsig): Likewise.
8365         (*arm_cmpdi_zero): Likewise.
8366         (*thumb_cmpdi_zero): Likewise.
8367         (*deleted_compare): Likewise.
8368         (*mov_scc): Likewise.
8369         (*mov_negscc): Likewise.
8370         (*mov_notscc): Likewise.
8371         (*cstoresi_eq0_thumb1_insn): Likewise.
8372         (cstoresi_nltu_thumb1): Likewise.
8373         (cstoresi_ltu_thu): Likewise.
8374         (thumb1_addsi3_addgeu): Likewise.
8375         (*arm_jump): Likewise.
8376         (*thumb_jump): Likewise.
8377         (*check_arch2): Likewise.
8378         (arm_casesi_internal): Likewise.
8379         (thumb1_casesi_dispatch): Likewise.
8380         (*arm_indirect_jump): Likewise.
8381         (*thumb1_indirect_jump): Likewise.
8382         (nop): Likewise.
8383         (*and_scc): Likewise.
8384         (*ior_scc): Likewise.
8385         (*compare_scc): Likewise.
8386         (*cond_move): Likewise.
8387         (*cond_arith): Likewise.
8388         (*cond_sub): Likewise.
8389         (*cmp_ite0): Likewise.
8390         (*cmp_ite1): Likewise.
8391         (*cmp_and): Likewise.
8392         (*cmp_ior): Likewise.
8393         (*ior_scc_scc): Likewise.
8394         (*ior_scc_scc_cmp): Likewise.
8395         (*and_scc_scc): Likewise.
8396         (*and_scc_scc_cmp): Likewise.
8397         (*and_scc_scc_nod): Likewise.
8398         (*negscc): Likewise.
8399         (movcond_addsi): Likewise.
8400         (movcond): Likewise.
8401         (*ifcompare_plus_move): Likewise.
8402         (*if_plus_move): Likewise.
8403         (*ifcompare_move_plus): Likewise.
8404         (*if_move_plus): Likewise.
8405         (*ifcompare_arith_arith): Likewise.
8406         (*if_arith_arith): Likewise.
8407         (*ifcompare_arith_move): Likewise.
8408         (*if_arith_move): Likewise.
8409         (*ifcompare_move_arith): Likewise.
8410         (*if_move_arith): Likewise.
8411         (*ifcompare_move_not): Likewise.
8412         (*if_move_not): Likewise.
8413         (*ifcompare_not_move): Likewise.
8414         (*if_not_move): Likewise.
8415         (*ifcompare_shift_move): Likewise.
8416         (*if_shift_move): Likewise.
8417         (*ifcompare_move_shift): Likewise.
8418         (*if_move_shift): Likewise.
8419         (*ifcompare_shift_shift): Likewise.
8420         (*ifcompare_not_arith): Likewise.
8421         (*ifcompare_arith_not): Likewise.
8422         (*if_arith_not): Likewise.
8423         (*ifcompare_neg_move): Likewise.
8424         (*if_neg_move): Likewise.
8425         (*ifcompare_move_neg): Likewise.
8426         (*if_move_neg): Likewise.
8427         (prologue_thumb1_interwork): Likewise.
8428         (*cond_move_not): Likewise.
8429         (*sign_extract_onebit): Likewise.
8430         (*not_signextract_onebit): Likewise.
8431         (stack_tie): Likewise.
8432         (align_4): Likewise.
8433         (align_8): Likewise.
8434         (consttable_end): Likewise.
8435         (consttable_1): Likewise.
8436         (consttable_2): Likewise.
8437         (consttable_4): Likewise.
8438         (consttable_8): Likewise.
8439         (consttable_16): Likewise.
8440         (*thumb1_tablejump): Likewise.
8441         (prefetch): Likewise.
8442         (force_register_use): Likewise.
8443         (thumb_eh_return): Likewise.
8444         (load_tp_hard): Likewise.
8445         (load_tp_soft): Likewise.
8446         (tlscall): Likewise.
8447         (*arm_movtas_ze): Likewise.
8448         (*arm_rev): Likewise.
8449         (*arm_revsh): Likewise.
8450         (*arm_rev16): Likewise.
8451         * config/arm/thumb2.md
8452         (*thumb2_smaxsi3): Likewise.
8453         (*thumb2_sminsi3): Likewise.
8454         (*thumb32_umaxsi3): Likewise.
8455         (*thumb2_uminsi3): Likewise.
8456         (*thumb2_negdi2): Likewise.
8457         (*thumb2_abssi2): Likewise.
8458         (*thumb2_neg_abss): Likewise.
8459         (*thumb2_movsi_insn): Likewise.
8460         (tls_load_dot_plus_four): Likewise.
8461         (*thumb2_movhi_insn): Likewise.
8462         (*thumb2_mov_scc): Likewise.
8463         (*thumb2_mov_negs): Likewise.
8464         (*thumb2_mov_negs): Likewise.
8465         (*thumb2_mov_nots): Likewise.
8466         (*thumb2_mov_nots): Likewise.
8467         (*thumb2_movsicc_): Likewise.
8468         (*thumb2_movsfcc_soft_insn): Likewise.
8469         (*thumb2_indirect_jump): Likewise.
8470         (*thumb2_and_scc): Likewise.
8471         (*thumb2_ior_scc): Likewise.
8472         (*thumb2_ior_scc_strict_it): Likewise.
8473         (*thumb2_cond_move): Likewise.
8474         (*thumb2_cond_arith): Likewise.
8475         (*thumb2_cond_ari): Likewise.
8476         (*thumb2_cond_sub): Likewise.
8477         (*thumb2_negscc): Likewise.
8478         (*thumb2_movcond): Likewise.
8479         (thumb2_casesi_internal): Likewise.
8480         (thumb2_casesi_internal_pic): Likewise.
8481         (*thumb2_alusi3_short): Likewise.
8482         (*thumb2_mov<mode>_shortim): Likewise.
8483         (*thumb2_addsi_short): Likewise.
8484         (*thumb2_subsi_short): Likewise.
8485         (thumb2_addsi3_compare0): Likewise.
8486         (*thumb2_cbz): Likewise.
8487         (*thumb2_cbnz): Likewise.
8488         (*thumb2_one_cmplsi2_short): Likewise.
8489         (*thumb2_negsi2_short): Likewise.
8490         (*orsi_notsi_si): Likewise.
8491         * config/arm/arm1020e.md: Update with new attributes.
8492         * config/arm/arm1026ejs.md: Update with new attributes.
8493         * config/arm/arm1136jfs.md: Update with new attributes.
8494         * config/arm/arm926ejs.md: Update with new attributes.
8495         * config/arm/cortex-a15.md: Update with new attributes.
8496         * config/arm/cortex-a5.md: Update with new attributes.
8497         * config/arm/cortex-a53.md: Update with new attributes.
8498         * config/arm/cortex-a7.md: Update with new attributes.
8499         * config/arm/cortex-a8.md: Update with new attributes.
8500         * config/arm/cortex-a9.md: Update with new attributes.
8501         * config/arm/cortex-m4.md: Update with new attributes.
8502         * config/arm/cortex-r4.md: Update with new attributes.
8503         * config/arm/fa526.md: Update with new attributes.
8504         * config/arm/fa606te.md: Update with new attributes.
8505         * config/arm/fa626te.md: Update with new attributes.
8506         * config/arm/fa726te.md: Update with new attributes.
8508 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
8510         * config/aarch64/aarch64-simd.md
8511         (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
8512         <vwx> iterator to ensure correct register choice.
8513         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
8514         (aarch64_sqdmull_n<mode>): Likewise.
8515         (aarch64_sqdmull2_n<mode>_internal): Likewise.
8516         * config/aarch64/arm_neon.h
8517         (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
8518         (vml<as><q>_n_<su>16): Likewise.
8519         (vml<as>l_high_lane<q>_<su>16): Likewise.
8520         (vml<as>l_high_n_<su>16): Likewise.
8521         (vml<as>l_lane<q>_<su>16): Likewise.
8522         (vml<as>l_n_<su>16): Likewise.
8523         (vmul<q>_lane<q>_<su>16): Likewise.
8524         (vmul<q>_n_<su>16): Likewise.
8525         (vmull_lane<q>_<su>16): Likewise.
8526         (vmull_n_<su>16): Likewise.
8527         (vmull_high_lane<q>_<su>16): Likewise.
8528         (vmull_high_n_<su>16): Likewise.
8529         (vqrdmulh<q>_n_s16): Likewise.
8531 2013-09-06  Tejas Belagod  <tejas.belagod@arm.com>
8533         * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
8534         have the correct lane parameter.
8536 2013-09-06  Richard Biener <rguenther@suse.de>
8538         * cfganal.c (control_dependences::~control_dependences):
8539         Properly free all of the vector.
8541 2013-09-06  Kirill Yukhin  <kirill.yukhin@intel.com>
8543         PR target/58269
8544         * config/i386/i386.c (ix86_conditional_register_usage):
8545         Proper initialize extended SSE registers.
8547 2013-09-06  Jan Hubicka  <jh@suse.cz>
8549         PR tree-optimization/58311
8550         * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
8552 2013-09-06  Jan Hubicka  <jh@suse.cz>
8554         * Makefile.in (tree-sra.o): Update dependencies.
8555         * tree-sra.c: Include ipa-utils.h
8556         (scan_function): Use recursive_call_p.
8557         (has_caller_p): New function.
8558         (cgraph_for_node_and_aliases): Count also callers of aliases.
8560 2013-09-06  Jan Hubicka  <jh@suse.cz>
8562         PR middle-end/58094
8563         * cgraph.h (symtab_semantically_equivalent_p): Declare.
8564         * tree-tailcall.c: Include ipa-utils.h.
8565         (find_tail_calls): Use it.
8566         * ipa-pure-const.c (check_call): Likewise.
8567         * ipa-utils.c (recursive_call_p): New function.
8568         * ipa-utils.h (recursive_call_p): Dclare.
8569         * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
8570         (symtab_semantically_equivalent_p): New function.
8571         * Makefile.in (tree-tailcall.o): Update dependencies.
8573 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
8575         * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
8576         non-inlinable part.
8578 2013-09-06  Richard Biener  <rguenther@suse.de>
8580         * lto-streamer.h (lto_global_var_decls): Remove.
8581         * Makefile.in (OBJS): Remove lto-symtab.o.
8582         (lto-symtab.o): Remove.
8583         (GTFILES): Remove lto-symtab.c
8584         * lto-symtab.c: Move to lto/
8586 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8588         * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
8589         (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
8590         (UNSPEC_FPINT_RINT): New constant definitions.
8591         (FPINT, fpint_name, fpint_roundingmode): New integer iterator
8592         definition with 2 attributes.
8593         ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
8594         ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
8595         definitions.
8597 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8599         * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
8600         ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
8601         Set the mnemonic attribute to "bcr_flush".  Set the "z196prop"
8602         attribute to "z196_alone".
8603         * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
8604         "zEC12_simple".
8606 2013-09-06  Richard Biener  <rguenther@suse.de>
8608         * basic-block.h (class control_dependences): New.
8609         * tree-ssa-dce.c (control_dependence_map): Remove.
8610         (cd): New global.
8611         (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
8612         (set_control_dependence_map_bit, clear_control_dependence_bitmap,
8613         find_pdom, find_control_dependence, find_all_control_dependences):
8614         Move to cfganal.c.
8615         (mark_control_dependent_edges_necessary,
8616         find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
8617         tree_dce_done, perform_tree_ssa_dce): Adjust.
8618         * cfganal.c (set_control_dependence_map_bit,
8619         clear_control_dependence_bitmap, find_pdom, find_control_dependence,
8620         find_all_control_dependences): Move from tree-ssa-dce.c and
8621         implement as methods of control_dependences class.
8622         (control_dependences::control_dependences): New.
8623         (control_dependences::~control_dependences): Likewise.
8624         (control_dependences::get_edges_dependent_on): Likewise.
8625         (control_dependences::get_edge): Likewise.
8627 2013-09-04  Jan Hubicka  <jh@suse.cz>
8629         * tree.c (types_same_for_odr): Drop overactive check.
8630         * ipa-devirt.c (hash_type_name): Likewise.
8632 2013-09-04  Jan Hubicka  <jh@suse.cz>
8634         * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
8635         (analyze_functions): ... here.
8637 2013-09-04  Jan Hubicka  <jh@suse.cz>
8639         PR middle-end/58201
8640         * cgraphunit.c (analyze_functions): Clear AUX fields
8641         after processing; initialize assembler name has.
8643 2013-09-05  Jeff Law  <law@redhat.com>
8645         * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
8646         from thread_around_empty_block.  Record threading path into PATH.
8647         Recurse if threading through the initial block is successful.
8648         (thread_across_edge): Corresponding changes to slightly simplify.
8650 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
8652         * config/aarch64/aarch64.md
8653         (type): Remove frecpe, frecps, frecpx.
8654         (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
8655         fix to be a TARGET_SIMD instruction.
8656         (aarch64_frecps): Remove.
8657         * config/aarch64/aarch64-simd.md
8658         (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
8659         (aarch64_frecps<mode>): Handle all float/vector of float modes.
8661 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
8662             Sofiane Naci  <sofiane.naci@arm.com>
8664         * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
8665         into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
8666         Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
8667         "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
8668         "logic_reg", "logics_reg", "rev".  Expand "arlo_shift" into
8669         "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
8670         "logics_shift_imm".  Expand "arlo_shift_reg" into "alu_shift_reg",
8671         "alus_shift_reg", "logic_shift_reg", "logics_shift_reg".  Expand "clz"
8672         into "clz, "rbit".  Rename "shift" to "shift_imm".
8673         * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
8674         changes.  Update for attribute changes all occurrences of arlo_* and
8675         shift* types.
8676         * config/arm/arm-fixed.md: Update for attribute changes
8677         all occurrences of arlo_* types.
8678         * config/arm/thumb2.md: Update for attribute changes all occurrences
8679         of arlo_* types.
8680         * config/arm/arm.c (xscale_sched_adjust_cost):  (rtx insn, rtx
8681         (cortexa7_older_only): Likewise.
8682         (cortexa7_younger):  Likewise.
8683         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
8684         (1020alu_shift_op): Likewise.
8685         (1020alu_shift_reg_op): Likewise.
8686         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
8687         (alu_shift_op): Likewise.
8688         (alu_shift_reg_op): Likewise.
8689         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
8690         (11_alu_shift_op): Likewise.
8691         (11_alu_shift_reg_op): Likewise.
8692         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
8693         (9_alu_shift_reg_op): Likewise.
8694         * config/arm/cortex-a15.md (cortex_a15_alu): Update for
8695         attribute changes.
8696         (cortex_a15_alu_shift): Likewise.
8697         (cortex_a15_alu_shift_reg): Likewise.
8698         * config/arm/cortex-a5.md (cortex_a5_alu): Update for
8699         attribute changes.
8700         (cortex_a5_alu_shift): Likewise.
8701         * config/arm/cortex-a53.md (cortex_a53_alu): Update for
8702         attribute changes.
8703         (cortex_a53_alu_shift): Likewise.
8704         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
8705         attribute changes.
8706         (cortex_a7_alu_reg): Likewise.
8707         (cortex_a7_alu_shift): Likewise.
8708         * config/arm/cortex-a8.md (cortex_a8_alu): Update for
8709         attribute changes.
8710         (cortex_a8_alu_shift): Likewise.
8711         (cortex_a8_alu_shift_reg): Likewise.
8712         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
8713         (cortex_a9_dp_shift): Likewise.
8714         * config/arm/cortex-m4.md (cortex_m4_alu): Update for
8715         attribute changes.
8716         * config/arm/cortex-r4.md
8717         (cortex_r4_alu): Update for attribute changes.
8718         (cortex_r4_mov): Likewise.
8719         (cortex_r4_alu_shift_reg): Likewise.
8720         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
8721         (526_alu_shift_op): Likewise.
8722         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
8723         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
8724         (626te_alu_shift_op): Likewise.
8725         * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
8726         (726te_alu_shift_op): Likewise.
8727         (726te_alu_shift_reg_op): Likewise.
8728         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
8729         (mp626_alu_shift_op): Likewise.
8730         * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
8731         (pj4_alu_conds): Likewise.
8732         (pj4_shift): Likewise.
8733         (pj4_shift_conds): Likewise.
8734         (pj4_alu_shift): Likewise.
8735         (pj4_alu_shift_conds): Likewise.
8736         * config/aarch64/aarch64.md: Update for attribute change
8737         all occurrences of arlo_* and shift* types.
8739 2013-09-05  Mike Stump  <mikestump@comcast.net>
8741         * tree.h: Move documentation for tree_function_decl to tree-core.h
8742         with the declaration.
8744 2013-09-05  Peter Bergner  <bergner@vnet.ibm.com>
8746         PR target/58139
8747         * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
8748         looking for widest mode.
8750 2013-09-05  Eric Botcazou  <ebotcazou@adacore.com>
8752         * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
8754 2013-09-05  Richard Biener  <rguenther@suse.de>
8756         PR tree-optimization/58137
8757         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
8758         Do not create vectors of pointers.
8759         * tree-vect-loop.c (get_initial_def_for_induction): Use proper
8760         types for the components of the vector initializer.
8761         * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
8762         allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
8764 2013-09-05  Martin Jambor  <mjambor@suse.cz>
8766         * ipa-prop.c (remove_described_reference): Accept missing references,
8767         return false if that hppens, otherwise return true.
8768         (cgraph_node_for_jfunc): New function.
8769         (try_decrement_rdesc_refcount): Likewise.
8770         (try_make_edge_direct_simple_call): Use them.
8771         (ipa_edge_removal_hook): Remove references from rdescs.
8772         (ipa_edge_duplication_hook): Clone rdescs and their references
8773         when the new edge has the same caller as the old one.
8774         * cgraph.c (cgraph_resolve_speculation): Remove speculative
8775         reference before removing any edges.
8777 2013-09-05  Richard Earnshaw  <rearnsha@arm.com>
8779         * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
8780         initial store.
8781         * thumb2.md (thumb2_storewb_parisi): New pattern.
8783 2013-09-05  Yufeng Zhang  <yufeng.zhang@arm.com>
8785         * config/aarch64/aarch64-option-extensions.def: Add
8786         AARCH64_OPT_EXTENSION of 'crc'.
8787         * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
8788         (AARCH64_ISA_CRC): Ditto.
8789         * doc/invoke.texi (-march and -mcpu feature modifiers): Add
8790         description of the CRC extension.
8792 2013-09-05  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8794         * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
8795         * config/rs6000/linux.h: Ditto.
8796         * alpha/linux.h: Ditto.
8797         * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
8798         no_c99_libc_has_function.
8799         * config/c6x/uclinux-elf.h: Ditto.
8800         * config/lm32/uclinux-elf.h: Ditto.
8801         * config/m68k/uclinux.h: Ditto.
8802         * config/moxie/uclinux.h: Ditto.
8803         * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
8804         (crisv32-*-linux*, cris-*-linux*): Ditto.
8805         * config/bfin/bfin.c: Include "tm_p.h".
8807 2013-09-05  Richard Biener  <rguenther@suse.de>
8809         * tree-vect-loop.c (vect_analyze_loop_operations): Properly
8810         check for a definition without a basic-block.
8812 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
8813             Sofiane Naci <sofiane.naci@arm.com>
8815         * config/aarch64/aarch64.md
8816         (*movti_aarch64): Rename r_2_f and f_2_r.
8817         (*movsf_aarch64): Likewise.
8818         (*movdf_aarch64): Likewise.
8819         (*movtf_aarch64): Likewise.
8820         (aarch64_movdi_<mode>low): Likewise.
8821         (aarch64_movdi_<mode>high): Likewise.
8822         (aarch64_mov<mode>high_di): Likewise.
8823         (aarch64_mov<mode>low_di): Likewise.
8824         (aarch64_movtilow_tilow): Likewise.
8825         * config/arm/arm.md (attribute "neon_type"): Delete.  Move attribute
8826         values to config/arm/types.md
8827         (attribute "conds"): Update for attribute change.
8828         (anddi3_insn): Likewise.
8829         (iordi3_insn): Likewise.
8830         (xordi3_insn): Likewise.
8831         (one_cmpldi2): Likewise.
8832         * config/arm/types.md (type): Add Neon types.
8833         * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
8834         use "type" attribute.
8835         (movmisalign<mode>_neon_store): Likewise.
8836         (movmisalign<mode>_neon_load): Likewise.
8837         (vec_set<mode>_internal): Likewise.
8838         (vec_setv2di_internal): Likewise.
8839         (vec_extract<mode>): Likewise.
8840         (vec_extractv2di): Likewise.
8841         (add<mode>3_neon): Likewise.
8842         (adddi3_neon): Likewise.
8843         (sub<mode>3_neon): Likewise.
8844         (subdi3_neon): Likewise.
8845         (mul<mode>3_neon): Likewise.
8846         (mul<mode>3add<mode>_neon): Likewise.
8847         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
8848         (fma<VCVTF:mode>4)): Likewise.
8849         (fma<VCVTF:mode>4_intrinsic): Likewise.
8850         (fmsub<VCVTF:mode>4)): Likewise.
8851         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
8852         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
8853         (ior<mode>3): Likewise.
8854         (and<mode>3): Likewise.
8855         (anddi3_neon): Likewise.
8856         (orn<mode>3_neon): Likewise.
8857         (orndi3_neon): Likewise.
8858         (bic<mode>3_neon): Likewise.
8859         (bicdi3_neon): Likewise.
8860         (xor<mode>3): Likewise.
8861         (one_cmpl<mode>2): Likewise.
8862         (abs<mode>2): Likewise.
8863         (neg<mode>2): Likewise.
8864         (umin<mode>3_neon): Likewise.
8865         (umax<mode>3_neon): Likewise.
8866         (smin<mode>3_neon): Likewise.
8867         (smax<mode>3_neon): Likewise.
8868         (vashl<mode>3): Likewise.
8869         (vashr<mode>3_imm): Likewise.
8870         (vlshr<mode>3_imm): Likewise.
8871         (ashl<mode>3_signed): Likewise.
8872         (ashl<mode>3_unsigned): Likewise.
8873         (neon_load_count): Likewise.
8874         (ashldi3_neon_noclobber): Likewise.
8875         (signed_shift_di3_neon): Likewise.
8876         (unsigned_shift_di3_neon): Likewise.
8877         (ashrdi3_neon_imm_noclobber): Likewise.
8878         (lshrdi3_neon_imm_noclobber): Likewise.
8879         (widen_ssum<mode>3): Likewise.
8880         (widen_usum<mode>3): Likewise.
8881         (quad_halves_<code>v4si): Likewise.
8882         (quad_halves_<code>v4sf): Likewise.
8883         (quad_halves_<code>v8hi): Likewise.
8884         (quad_halves_<code>v16qi): Likewise.
8885         (reduc_splus_v2di): Likewise.
8886         (neon_vpadd_internal<mode>): Likewise.
8887         (neon_vpsmin<mode>): Likewise.
8888         (neon_vpsmax<mode>): Likewise.
8889         (neon_vpumin<mode>): Likewise.
8890         (neon_vpumax<mode>): Likewise.
8891         (ss_add<mode>_neon): Likewise.
8892         (us_add<mode>_neon): Likewise.
8893         (ss_sub<mode>_neon): Likewise.
8894         (us_sub<mode>_neon): Likewise.
8895         (neon_vadd<mode>_unspec): Likewise.
8896         (neon_vaddl<mode>): Likewise.
8897         (neon_vaddw<mode>): Likewise.
8898         (neon_vhadd<mode>): Likewise.
8899         (neon_vqadd<mode>): Likewise.
8900         (neon_vaddhn<mode>): Likewise.
8901         (neon_vmul<mode>): Likewise.
8902         (neon_vmla<mode>): Likewise.
8903         (neon_vmlal<mode>): Likewise.
8904         (neon_vmls<mode>): Likewise.
8905         (neon_vmlsl<mode>): Likewise.
8906         (neon_vqdmulh<mode>): Likewise.
8907         (neon_vqdmlal<mode>): Likewise.
8908         (neon_vqdmlsl<mode>): Likewise.
8909         (neon_vmull<mode>): Likewise.
8910         (neon_vqdmull<mode>): Likewise.
8911         (neon_vsub<mode>_unspec): Likewise.
8912         (neon_vsubl<mode>): Likewise.
8913         (neon_vsubw<mode>): Likewise.
8914         (neon_vqsub<mode>): Likewise.
8915         (neon_vhsub<mode>): Likewise.
8916         (neon_vsubhn<mode>): Likewise.
8917         (neon_vceq<mode>): Likewise.
8918         (neon_vcge<mode>): Likewise.
8919         (neon_vcgeu<mode>): Likewise.
8920         (neon_vcgt<mode>): Likewise.
8921         (neon_vcgtu<mode>): Likewise.
8922         (neon_vcle<mode>): Likewise.
8923         (neon_vclt<mode>): Likewise.
8924         (neon_vcage<mode>): Likewise.
8925         (neon_vcagt<mode>): Likewise.
8926         (neon_vtst<mode>): Likewise.
8927         (neon_vabd<mode>): Likewise.
8928         (neon_vabdl<mode>): Likewise.
8929         (neon_vaba<mode>): Likewise.
8930         (neon_vabal<mode>): Likewise.
8931         (neon_vmax<mode>): Likewise.
8932         (neon_vmin<mode>): Likewise.
8933         (neon_vpaddl<mode>): Likewise.
8934         (neon_vpadal<mode>): Likewise.
8935         (neon_vpmax<mode>): Likewise.
8936         (neon_vpmin<mode>): Likewise.
8937         (neon_vrecps<mode>): Likewise.
8938         (neon_vrsqrts<mode>): Likewise.
8939         (neon_vqabs<mode>): Likewise.
8940         (neon_vqneg<mode>): Likewise.
8941         (neon_vcls<mode>): Likewise.
8942         (clz<mode>2): Likewise.
8943         (popcount<mode>2): Likewise.
8944         (neon_vrecpe): Likewise.
8945         (neon_vrsqrte): Likewise.
8946         (neon_vget_lane<mode>_sext_internal): Likewise.
8947         (neon_vget_lane<mode>_zext_internal): Likewise.
8948         (neon_vdup_n<mode>): Likewise.
8949         (neon_vdup_nv2di): Likewise.
8950         (neon_vdpu_lane<mode>_internal): Likewise.
8951         (neon_vswp<mode>): Likewise.
8952         (float<mode><V_cvtto>2): Likewise.
8953         (floatuns<mode><V_cvtto>2): Likewise.
8954         (fix_trunc<mode><V_cvtto>)2): Likewise
8955         (fixuns_trunc<mode><V_cvtto)2): Likewise.
8956         (neon_vcvt<mode>): Likewise.
8957         (neon_vcvtv4sfv4hf): Likewise.
8958         (neon_vcvtv4hfv4sf): Likewise.
8959         (neon_vcvt_n<mode>): Likewise.
8960         (neon_vmovn<mode>): Likewise.
8961         (neon_vqmovn<mode>): Likewise.
8962         (neon_vqmovun<mode>): Likewise.
8963         (neon_vmovl<mode>): Likewise.
8964         (neon_vmul_lane<mode>): Likewise.
8965         (neon_vmull_lane<mode>): Likewise.
8966         (neon_vqdmull_lane<mode>): Likewise.
8967         (neon_vqdmulh_lane<mode>): Likewise.
8968         (neon_vmla_lane<mode>): Likewise.
8969         (neon_vmlal_lane<mode>): Likewise.
8970         (neon_vqdmlal_lane<mode>): Likewise.
8971         (neon_vmls_lane<mode>): Likewise.
8972         (neon_vmlsl_lane<mode>): Likewise.
8973         (neon_vqdmlsl_lane<mode>): Likewise.
8974         (neon_vext<mode>): Likewise.
8975         (neon_vrev64<mode>): Likewise.
8976         (neon_vrev32<mode>): Likewise.
8977         (neon_vrev16<mode>): Likewise.
8978         (neon_vbsl<mode>_internal): Likewise.
8979         (neon_vshl<mode>): Likewise.
8980         (neon_vqshl<mode>): Likewise.
8981         (neon_vshr_n<mode>): Likewise.
8982         (neon_vshrn_n<mode>): Likewise.
8983         (neon_vqshrn_n<mode>): Likewise.
8984         (neon_vqshrun_n<mode>): Likewise.
8985         (neon_vshl_n<mode>): Likewise.
8986         (neon_vqshl_n<mode>): Likewise.
8987         (neon_vqshlu_n<mode>): Likewise.
8988         (neon_vshll_n<mode>): Likewise.
8989         (neon_vsra_n<mode>): Likewise.
8990         (neon_vsri_n<mode>): Likewise.
8991         (neon_vsli_n<mode>): Likewise.
8992         (neon_vtbl1v8qi): Likewise.
8993         (neon_vtbl2v8qi): Likewise.
8994         (neon_vtbl3v8qi): Likewise.
8995         (neon_vtbl4v8qi): Likewise.
8996         (neon_vtbx1v8qi): Likewise.
8997         (neon_vtbx2v8qi): Likewise.
8998         (neon_vtbx3v8qi): Likewise.
8999         (neon_vtbx4v8qi): Likewise.
9000         (neon_vtrn<mode>_internal): Likewise.
9001         (neon_vzip<mode>_internal): Likewise.
9002         (neon_vuzp<mode>_internal): Likewise.
9003         (neon_vld1<mode>): Likewise.
9004         (neon_vld1_lane<mode>): Likewise.
9005         (neon_vld1_dup<mode>): Likewise.
9006         (neon_vld1_dupv2di): Likewise.
9007         (neon_vst1<mode>): Likewise.
9008         (neon_vst1_lane<mode>): Likewise.
9009         (neon_vld2<mode>): Likewise.
9010         (neon_vld2_lane<mode>): Likewise.
9011         (neon_vld2_dup<mode>): Likewise.
9012         (neon_vst2<mode>): Likewise.
9013         (neon_vst2_lane<mode>): Likewise.
9014         (neon_vld3<mode>): Likewise.
9015         (neon_vld3qa<mode>): Likewise.
9016         (neon_vld3qb<mode>): Likewise.
9017         (neon_vld3_lane<mode>): Likewise.
9018         (neon_vld3_dup<mode>): Likewise.
9019         (neon_vst3<mode>): Likewise.
9020         (neon_vst3qa<mode>): Likewise.
9021         (neon_vst3qb<mode>): Likewise.
9022         (neon_vst3_lane<mode>): Likewise.
9023         (neon_vld4<mode>): Likewise.
9024         (neon_vld4qa<mode>): Likewise.
9025         (neon_vld4qb<mode>): Likewise.
9026         (neon_vld4_lane<mode>): Likewise.
9027         (neon_vld4_dup<mode>): Likewise.
9028         (neon_vst4<mode>): Likewise.
9029         (neon_vst4qa<mode>): Likewise.
9030         (neon_vst4qb<mode>): Likewise.
9031         (neon_vst4_lane<mode>): Likewise.
9032         (neon_vec_unpack<US>_lo_<mode>): Likewise.
9033         (neon_vec_unpack<US>_hi_<mode>): Likewise.
9034         (neon_vec_<US>mult_lo_<mode>): Likewise.
9035         (neon_vec_<US>mult_hi_<mode>): Likewise.
9036         (neon_vec_<US>shiftl_<mode>): Likewise.
9037         (neon_unpack<US>_<mode>): Likewise.
9038         (neon_vec_<US>mult_<mode>): Likewise.
9039         (vec_pack_trunc_<mode>): Likewise.
9040         (neon_vec_pack_trunk_<mode>): Likewise.
9041         (neon_vabd<mode>_2): Likewise.
9042         (neon_vabd<mode>_3): Likewise.
9043         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
9044         (thumb2_movsi_vfp): Likewise.
9045         (movdi_vfp): Likewise.
9046         (movdi_vfp_cortexa8): Likewise.
9047         (movhf_vfp_neon): Likewise.
9048         (movhf_vfp): Likewiwse.
9049         (movsf_vfp): Likewiwse.
9050         (thumb2_movsf_vfp): Likewiwse.
9051         (movdf_vfp): Likewise.
9052         (thumb2_movdf_vfp): Likewise.
9053         (movsfcc_vfp): Likewise.
9054         (thumb2_movsfcc_vfp): Likewise.
9055         (movdfcc_vfp): Likewise.
9056         (thumb2_movdfcc_vfp): Likewise.
9057         * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
9058         * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
9059         (v10_v2c): Likewise.
9060         * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
9061         attribute change.
9062         (cortex_a15_neon_int_2): Likewise.
9063         (cortex_a15_neon_int_3): Likewise.
9064         (cortex_a15_neon_int_4): Likewise.
9065         (cortex_a15_neon_int_5): Likewise.
9066         (cortex_a15_neon_vqneg_vqabs): Likewise.
9067         (cortex_a15_neon_vmov): Likewise.
9068         (cortex_a15_neon_vaba): Likewise.
9069         (cortex_a15_neon_vaba_qqq): Likewise.
9070         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9071         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
9072         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
9073         scalar_64_32_long_scalar): Likewise.
9074         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9075         (cortex_a15_neon_mla_qqq_8_16): Likewise.
9076         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
9077         lotype_qdd_64_32_long): Likewise.
9078         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
9079         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
9080         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
9081         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
9082         (cortex_a15_neon_shift_1): Likewise.
9083         (cortex_a15_neon_shift_2): Likewise.
9084         (cortex_a15_neon_shift_3): Likewise.
9085         (cortex_a15_neon_vshl_ddd): Likewise.
9086         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
9087         (cortex_a15_neon_vsra_vrsra): Likewise.
9088         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
9089         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
9090         (cortex_a15_neon_fp_vmul_ddd): Likewise.
9091         (cortex_a15_neon_fp_vmul_qqd): Likewise.
9092         (cortex_a15_neon_fp_vmla_ddd): Likewise.
9093         (cortex_a15_neon_fp_vmla_qqq): Likewise.
9094         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
9095         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
9096         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
9097         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
9098         (cortex_a15_neon_bp_simple): Likewise.
9099         (cortex_a15_neon_bp_2cycle): Likewise.
9100         (cortex_a15_neon_bp_3cycle): Likewise.
9101         (cortex_a15_neon_vld1_1_2_regs): Likewise.
9102         (cortex_a15_neon_vld1_3_4_regs): Likewise.
9103         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
9104         (cortex_a15_neon_vld2_4_regs): Likewise.
9105         (cortex_a15_neon_vld3_vld4): Likewise.
9106         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
9107         (cortex_a15_neon_vst1_3_4_regs): Likewise.
9108         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
9109         (cortex_a15_neon_vst3_vst4): Likewise.
9110         (cortex_a15_neon_vld1_vld2_lane): Likewise.
9111         (cortex_a15_neon_vld3_vld4_lane" 10
9112         (cortex_a15_neon_vst1_vst2_lane): Likewise.
9113         (cortex_a15_neon_vst3_vst4_lane): Likewise.
9114         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
9115         (cortex_a15_neon_ldm_2): Likewise.0
9116         (cortex_a15_neon_stm_2): Likewise.
9117         (cortex_a15_neon_mcr): Likewise.
9118         (cortex_a15_neon_mcr_2_mcrr): Likewise.
9119         (cortex_a15_neon_mrc): Likewise.
9120         (cortex_a15_neon_mrrc): Likewise.
9121         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
9122         change.
9123         (cortex_a15_alu_shift): Likewise.
9124         (cortex_a15_alu_shift_reg): Likewise.
9125         (cortex_a15_mult32): Likewise.
9126         (cortex_a15_mult64): Likewise.
9127         (cortex_a15_block): Likewise.
9128         (cortex_a15_branch): Likewise.
9129         (cortex_a15_load1): Likewise.
9130         (cortex_a15_load3): Likewise.
9131         (cortex_a15_store1): Likewise.
9132         (cortex_a15_store3): Likewise.
9133         (cortex_a15_call): Likewise.
9134         * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
9135         (cortex_a5_f2r): Likewise.
9136         * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
9137         change.
9138         (cortex_a53_f2r): Likewise.
9139         * config/arm/cortex-a7.md
9140         (cortex_a7_branch): Update for attribute change.
9141         (cortex_a7_call): Likewise.
9142         (cortex_a7_alu_imm): Likewise.
9143         (cortex_a7_alu_reg): Likewise.
9144         (cortex_a7_alu_shift): Likewise.
9145         (cortex_a7_mul): Likewise.
9146         (cortex_a7_load1): Likewise.
9147         (cortex_a7_store1): Likewise.
9148         (cortex_a7_load2): Likewise.
9149         (cortex_a7_store2): Likewise.
9150         (cortex_a7_load3): Likewise.
9151         (cortex_a7_store3): Likewise.
9152         (cortex_a7_load4): Likewise.
9153         (cortex_a7_store4): Likewise.
9154         (cortex_a7_fpalu): Likewise.
9155         (cortex_a7_fconst): Likewise.
9156         (cortex_a7_fpmuls): Likewise.
9157         (cortex_a7_neon_mul): Likewise.
9158         (cortex_a7_fpmacs): Likewise.
9159         (cortex_a7_neon_mla: Likewise.
9160         (cortex_a7_fpmuld: Likewise.
9161         (cortex_a7_fpmacd: Likewise.
9162         (cortex_a7_fpfmad: Likewise.
9163         (cortex_a7_fdivs: Likewise.
9164         (cortex_a7_fdivd: Likewise.
9165         (cortex_a7_r2f: Likewise.
9166         (cortex_a7_f2r: Likewise.
9167         (cortex_a7_f_flags: Likewise.
9168         (cortex_a7_f_loads: Likewise.
9169         (cortex_a7_f_loadd: Likewise.
9170         (cortex_a7_f_stores: Likewise.
9171         (cortex_a7_f_stored: Likewise.
9172         (cortex_a7_neon): Likewise.
9173         * config/arm/cortex-a8-neon.md
9174         (cortex_a8_neon_mrc): Update for attribute change.
9175         (cortex_a8_neon_mrrc): Likewise.
9176         (cortex_a8_neon_int_1): Likewise.
9177         (cortex_a8_neon_int_2): Likewise.
9178         (cortex_a8_neon_int_3): Likewise.
9179         (cortex_a8_neon_int_4): Likewise.
9180         (cortex_a8_neon_int_5): Likewise.
9181         (cortex_a8_neon_vqneg_vqabs): Likewise.
9182         (cortex_a8_neon_vmov): Likewise.
9183         (cortex_a8_neon_vaba): Likewise.
9184         (cortex_a8_neon_vaba_qqq): Likewise.
9185         (cortex_a8_neon_vsma): Likewise.
9186         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9187         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
9188         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
9189         long_scalar): Likewise.
9190         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9191         (cortex_a8_neon_mla_qqq_8_16): Likewise.
9192         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
9193         long_scalar_qdd_64_32_long): Likewise.
9194         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
9195         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
9196         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
9197         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
9198         (cortex_a8_neon_shift_1): Likewise.
9199         (cortex_a8_neon_shift_2): Likewise.
9200         (cortex_a8_neon_shift_3): Likewise.
9201         (cortex_a8_neon_vshl_ddd): Likewise.
9202         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
9203         (cortex_a8_neon_vsra_vrsra): Likewise.
9204         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
9205         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
9206         (cortex_a8_neon_fp_vsum): Likewise.
9207         (cortex_a8_neon_fp_vmul_ddd): Likewise.
9208         (cortex_a8_neon_fp_vmul_qqd): Likewise.
9209         (cortex_a8_neon_fp_vmla_ddd): Likewise.
9210         (cortex_a8_neon_fp_vmla_qqq): Likewise.
9211         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
9212         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
9213         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
9214         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
9215         (cortex_a8_neon_bp_simple): Likewise.
9216         (cortex_a8_neon_bp_2cycle): Likewise.
9217         (cortex_a8_neon_bp_3cycle): Likewise.
9218         (cortex_a8_neon_ldr): Likewise.
9219         (cortex_a8_neon_str): Likewise.
9220         (cortex_a8_neon_vld1_1_2_regs): Likewise.
9221         (cortex_a8_neon_vld1_3_4_regs): Likewise.
9222         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
9223         (cortex_a8_neon_vld2_4_regs): Likewise.
9224         (cortex_a8_neon_vld3_vld4): Likewise.
9225         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
9226         (cortex_a8_neon_vst1_3_4_regs): Likewise.
9227         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
9228         (cortex_a8_neon_vst3_vst4): Likewise.
9229         (cortex_a8_neon_vld1_vld2_lane): Likewise.
9230         (cortex_a8_neon_vld3_vld4_lane): Likewise.
9231         (cortex_a8_neon_vst1_vst2_lane): Likewise.
9232         (cortex_a8_neon_vst3_vst4_lane): Likewise.
9233         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
9234         (cortex_a8_neon_mcr): Likewise.
9235         (cortex_a8_neon_mcr_2_mcrr): Likewise.
9236         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
9237         * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
9238         change.
9239         (ca9_neon_mrrc): Likewise.
9240         (cortex_a9_neon_int_1): Likewise.
9241         (cortex_a9_neon_int_2): Likewise.
9242         (cortex_a9_neon_int_3): Likewise.
9243         (cortex_a9_neon_int_4): Likewise.
9244         (cortex_a9_neon_int_5): Likewise.
9245         (cortex_a9_neon_vqneg_vqabs): Likewise.
9246         (cortex_a9_neon_vmov): Likewise.
9247         (cortex_a9_neon_vaba): Likewise.
9248         (cortex_a9_neon_vaba_qqq): Likewise.
9249         (cortex_a9_neon_vsma): Likewise.
9250         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9251         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
9252         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
9253         long_scalar): Likewise.
9254         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9255         (cortex_a9_neon_mla_qqq_8_16): Likewise.
9256         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
9257         long_scalar_qdd_64_32_long): Likewise.
9258         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
9259         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
9260         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
9261         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
9262         (cortex_a9_neon_shift_1): Likewise.
9263         (cortex_a9_neon_shift_2): Likewise.
9264         (cortex_a9_neon_shift_3): Likewise.
9265         (cortex_a9_neon_vshl_ddd): Likewise.
9266         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
9267         (cortex_a9_neon_vsra_vrsra): Likewise.
9268         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
9269         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
9270         (cortex_a9_neon_fp_vsum): Likewise.
9271         (cortex_a9_neon_fp_vmul_ddd): Likewise.
9272         (cortex_a9_neon_fp_vmul_qqd): Likewise.
9273         (cortex_a9_neon_fp_vmla_ddd): Likewise.
9274         (cortex_a9_neon_fp_vmla_qqq): Likewise.
9275         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
9276         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
9277         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
9278         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
9279         (cortex_a9_neon_bp_simple): Likewise.
9280         (cortex_a9_neon_bp_2cycle): Likewise.
9281         (cortex_a9_neon_bp_3cycle): Likewise.
9282         (cortex_a9_neon_ldr): Likewise.
9283         (cortex_a9_neon_str): Likewise.
9284         (cortex_a9_neon_vld1_1_2_regs): Likewise.
9285         (cortex_a9_neon_vld1_3_4_regs): Likewise.
9286         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
9287         (cortex_a9_neon_vld2_4_regs): Likewise.
9288         (cortex_a9_neon_vld3_vld4): Likewise.
9289         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
9290         (cortex_a9_neon_vst1_3_4_regs): Likewise.
9291         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
9292         (cortex_a9_neon_vst3_vst4): Likewise.
9293         (cortex_a9_neon_vld1_vld2_lane): Likewise.
9294         (cortex_a9_neon_vld3_vld4_lane): Likewise.
9295         (cortex_a9_neon_vst1_vst2_lane): Likewise.
9296         (cortex_a9_neon_vst3_vst4_lane): Likewise.
9297         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
9298         (cortex_a9_neon_mcr): Likewise.
9299         (cortex_a9_neon_mcr_2_mcrr): Likewise.
9300         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
9301         (cortex_a9_fps): Likewise.
9302         * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
9303         change.
9304         (cortex_m4_fmuls): Likewise.
9305         * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
9306         change.
9307         (cortex_r4_mrc): Likewise.
9308         * config/arm/iterators.md: Update comment referring to neon_type.
9309         * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
9310         (iwmmxt_movsi_insn): Likewise.
9311         * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
9312         attribute change.
9313         (pj4_core_to_vfp): Likewise.
9314         * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
9315         attribute change.
9316         * config/arm/vfp11.md (vfp_fload): Update for attribute change.
9317         (vfp_fstore): Likewise.
9318         * doc/md.texi: Change references to neon_type to refer to type.
9320 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
9322         * tree.h (DECL_BUILT_IN): Fix typo in comment.
9324 2013-09-04  David Edelsohn  <dje.gcc@gmail.com>
9326         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
9327         lglobl if not weak.
9329 2013-09-04  Easwaran Raman  <eraman@google.com>
9331         PR middle-end/57370
9332         * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
9333         (build_and_add_sum): Use it.
9334         (appears_later_in_bb): Simplify code.
9336 2013-09-04  Teresa Johnson  <tejohnson@google.com>
9338         * dumpfile.c (dump_finish): Don't close stderr/stdout.
9340 2013-09-04  James Greenhalgh  <james.greenhalgh@arm.com>
9342         * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
9344 2013-09-04  Jan Hubicka  <jh@suse.cz>
9346         * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
9347         * ipa-devirt.c: Include diganostic.h
9348         (odr_type_d): Add types and types_set.
9349         (hash_type_name): Work for types with vtables during LTO.
9350         (odr_hasher::remove): Fix comment; destroy types_set.
9351         (add_type_duplicate): New function,
9352         (get_odr_type): Use it.
9353         (dump_type_inheritance_graph): Dump type duplicates.
9354         * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
9355         graph.
9356         * tree.c (types_same_for_odr): Give exact answers on types with
9357         virtual tables.
9359 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
9361         * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
9362         explaining their differences.
9364 2013-09-04  Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
9366         * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
9368 2013-09-03  Jeff Law  <law@redhat.com>
9370         * tree-ssa-threadedge.c (thread_across_edge): Record entire path
9371         when not threading through a joiner block.  Pass joiner/no joiner
9372         state to register_jump_thread.
9373         * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
9374         state from argument rather than implying on path length.
9375         Dump the entire jump thread path into debugging dump.
9376         * tree-flow.h (register_jump_thread): Update prototype.
9378 2013-08-29  Xinliang David Li  <davidxl@google.com>
9380         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
9381         Remove a trivial gcc_assert.
9383 2013-08-29  Xinliang David Li  <davidxl@google.com>
9385         * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
9386         * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
9387         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
9388         Delay base decl alignment adjustment.
9389         * tree-vectorizer.c (vect_destroy_datarefs): New function.
9390         * tree-vectorizer.h: New data structure.
9391         (set_dr_misalignment): New function.
9392         (dr_misalignment): Ditto.
9393         * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
9394         (vectorizable_load): Ditto.
9395         (ensure_base_align): New function.
9396         (vectorize_loops): Add dbg_cnt support.
9397         (execute_vect_slp): Ditto.
9398         * dbgcnt.def: New debug counter.
9399         * Makefile: New dependency.
9401 2013-09-03  Meador Inge  <meadori@codesourcery.com>
9403         Revert:
9405         2013-08-30  Meador Inge  <meadori@codesourcery.com>
9407         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
9409 2013-09-03  David Edelsohn  <dje.gcc@gmail.com>
9411         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
9412         function descriptor.
9414 2013-09-03  Richard Biener  <rguenther@suse.de>
9416         * tree-affine.c (add_elt_to_tree): Fix association issue,
9417         avoid useless converts and make sure to always return a
9418         properly typed result.
9420 2013-09-03  Richard Biener  <rguenther@suse.de>
9422         PR middle-end/57656
9423         * fold-const.c (negate_expr_p): Fix division case.
9424         (negate_expr): Likewise.
9426 2013-09-03  Richard Biener  <rguenther@suse.de>
9428         PR lto/58285
9429         * tree-streamer-out.c: Include tm.h.
9430         * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
9432 2013-09-03  Jan Hubicka  <jh@suse.cz>
9434         * tree-profile.c (tree_profiling): Cleanup CFG when done.
9436 2013-09-03  Alan Modra  <amodra@gmail.com>
9438         * config.gcc (powerpc*-*-linux*): Add support for little-endian
9439         multilibs to big-endian target and vice versa.
9440         * config/rs6000/t-linux64: Use := assignment on all vars.
9441         (MULTILIB_EXTRA_OPTS): Remove fPIC.
9442         (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
9443         * config/rs6000/t-linux64le: New file.
9444         * config/rs6000/t-linux64bele: New file.
9445         * config/rs6000/t-linux64lebe: New file.
9447 2013-09-02  Jan Hubicka  <jh@suse.cz>
9449         * ipa-inline-transform.c (inline_transform): Do not
9450         optimize_inline_calls when not optimizing.
9452 2013-09-02  Jan Hubicka  <jh@suse.cz>
9454         * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
9455         duplicated nodes for assembler names.
9456         * symtab.c (symtab_unregister_node): Do not attempt to unlink
9457         hard registers from assembler name hash.
9459 2013-09-02  Jan Hubicka  <jh@suse.cz>
9461         * ipa-split.c (execute_split_functions): Split externally visible
9462         functions called once.
9464 2013-09-02  Martin Jambor  <mjambor@suse.cz>
9466         PR ipa/58106
9467         * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
9468         linked list.  When finding the correct duplicate, also consider also
9469         the caller in additon to its inlined_to node.
9471 2013-09-02  James Greenhalgh  <james.greenhalgh@arm.com>
9473         * config/aarch64/aarch64-simd-builtins.def
9474         (dup_lane_scalar): Remove.
9475         * config/aarch64/aarch64-simd.md
9476         (aarch64_simd_dup): Add 'w->w' alternative.
9477         (aarch64_dup_lane<mode>): Allow for VALL.
9478         (aarch64_dup_lane_scalar<mode>): Remove.
9479         (aarch64_dup_lane_<vswap_width_name><mode>): New.
9480         (aarch64_get_lane_signed<mode>): Add w->w altenative.
9481         (aarch64_get_lane_unsigned<mode>): Likewise.
9482         (aarch64_get_lane<mode>): Likewise.
9483         * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
9484         (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
9485         * config/aarch64/iterators.md (VSWAP_WIDTH): New.
9486         (VCON): Change container of V2SF.
9487         (vswap_width_name): Likewise.
9488         * config/aarch64/arm_neon.h
9489         (__aarch64_vdup_lane_any): New.
9490         (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
9491         (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
9492         (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
9494 2013-09-02  Eric Botcazou  <ebotcazou@adacore.com>
9496         PR middle-end/56382
9497         * expr.c (emit_move_complex): Do not move complex FP values as parts if
9498         the source or the destination is a single hard register.
9500 2013-09-02  Richard Biener  <rguenther@suse.de>
9502         PR middle-end/57511
9503         * tree-scalar-evolution.c (instantiate_scev_name): Allow
9504         non-linear SCEVs.
9506 2013-09-02  Richard Biener  <rguenther@suse.de>
9508         * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
9509         arithmetic to sizetype.
9511 2013-09-02  Bin Cheng  <bin.cheng@arm.com>
9513         * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
9514         Find auto-increment use both before and after candidate.
9516 2013-09-02  Marek Polacek  <polacek@redhat.com>
9518         * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
9520 2013-09-01  Jan Hubicka  <jh@suse.cz>
9522         * Makefile.in: Add ipa-profile.o
9523         (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
9524         * cgraph.c (struct cgraph_propagate_frequency_data,
9525         cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
9526         ipa-profile.c; replace cgraph_ by ipa_ prefix.
9527         * cgraph.h (cgraph_propagate_frequency): Remove.
9528         * ipa-inline-analysis.c: Include ipa-utils.h;
9529         drop duplicated cfgloop.h.
9530         (inline_update_callee_summaries): Update.
9531         * ipa-profile.c: New file.
9532         * ipa-utils.h (ipa_propagate_frequency): Declare.
9533         * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
9534         data-streamer.h, value-prof.h.
9535         (symtab_remove_unreachable_nodes): Update profile.
9536         (struct histogram_entry, histogram, histogram_pool, histogram_hash,
9537         account_time_size, cmp_counts, dump_histogram,
9538         ipa_profile_generate_summary, ipa_profile_write_summary,
9539         ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
9540         pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
9541         Move to ipa-profile.c.
9543 2013-09-01  John David Anglin  <danglin@gcc.gnu.org>
9545         * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
9547 2013-09-01  Jan Hubicka  <jh@suse.cz>
9549         * common.opt (fdevirtualize-speculatively): New function.
9550         * invoke.texi (fdevirtualize-speculatively): Document.
9551         * ipa-devirt.c: Include ipa-inline.h
9552         (likely_target_p): New function.
9553         (ipa_devirt): New function.
9554         (gate_ipa_devirt): New function.
9555         (pass_data_ipa_devirt): New static var.
9556         (pass_ipa_devirt): Likewise.
9557         (make_pass_ipa_devirt): New function.
9558         * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
9559         (common_handle_option): Disable devirtualization when
9560         value range profiling is available.
9561         * passes.def (pass_ipa_devirt): Add.
9562         * timever.def (TV_IPA_DEVIRT): New timevar.
9563         * tree-pass.h (make_pass_ipa_devirt):
9565 2013-09-01  Iain Sandoe  <iain@codesourcery.com>
9567         * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
9568         include sanitize(undefined).
9570 2013-08-31  Diego Novillo  <dnovillo@google.com>
9572         * Makefile.in (TREE_CORE_H): Define.
9573         (TREE_H): Use.
9574         (GTFILES): Add tree-core.h.
9575         * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
9576         size the array.
9577         * tree-core.h: New file.
9578         Move all data structures, enum, typedefs, global
9579         declarations and constants from ...
9580         * tree.h: ... here.
9582 2013-08-31  Jan Hubicka  <jh@suse.cz>
9584         * bulitins.c (expand_builtin): Do not early exit for gcov
9585         instrumented functions.
9587 2013-08-31  Marek Polacek  <polacek@redhat.com>
9589         * ubsan.c: Include tm_p.h.
9591 2013-08-31  Jan Hubicka  <jh@suse.cz>
9593         * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
9594         warning.
9596         * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
9597         * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
9598         * tree-cfg.c (verify_gimple_label): ... here.
9599         * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
9600         (ipa_merge_profiles): New function.
9601         * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
9602         (lto_input_function_body): Likewise.
9603         * ipa-utils.h (ipa_merge_profiles): Declare.
9604         * lto-streamer.h (lto_input_function_body): Update prototype.
9605         (emit_label_in_global_context_p): Remove.
9606         * lto-symtab.c: Include ipa-utils.h
9607         (lto_cgraph_replace_node): Use ipa_merge_profiles.
9609 2013-08-31  Jan Hubicka  <jh@suse.cz>
9611         * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
9613 2013-08-31  Jan Hubicka  <jh@suse.cz>
9615         * basic-block.h (apply_scale): Make scale parmeter gcov_type.
9617 2013-08-31  Uros Bizjak  <ubizjak@gmail.com>
9619         * config/alpha/alpha.c (alpha_emit_conditional_move): Update
9620         "cmp" RTX before signed_comparison_operator check to account
9621         for "code" changes.
9623 2013-08-30  Jan Hubicka  <jh@suse.cz>
9625         * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
9626         (detect_type_change_1): Rename to ...
9627         (detect_type_change): ... this one; early return on non-polymorphic
9628         types.
9629         (detect_type_change_ssa): Add comp_type parameter; update
9630         use of detect_type_change.
9631         (compute_complex_assign_jump_func): Add param_type parameter;
9632         update use of detect_type_change_ssa.
9633         (compute_complex_ancestor_jump_func): Likewise.
9634         (ipa_get_callee_param_type): New function.
9635         (ipa_compute_jump_functions_for_edge): Compute parameter type;
9636         update calls to the jump function computation functions.
9638 2013-08-30  Teresa Johnson  <tejohnson@google.com>
9639             Steven Bosscher  <steven@gcc.gnu.org>
9641         * cfgrtl.c (fixup_new_cold_bb): New routine.
9642         (commit_edge_insertions): Invoke fixup_partitions.
9643         (find_partition_fixes): New routine.
9644         (fixup_partitions): Ditto.
9645         (verify_hot_cold_block_grouping): Update comments.
9646         (rtl_verify_edges): Invoke find_partition_fixes.
9647         (rtl_verify_bb_pointers): Update comments.
9648         (rtl_verify_bb_layout): Ditto.
9649         * basic-block.h (probably_never_executed_edge_p): Declare.
9650         (fixup_partitions): Ditto.
9651         * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
9652         * bb-reorder.c (sanitize_hot_paths): New function.
9653         (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
9654         sanitize_hot_paths.
9655         * predict.c (probably_never_executed_edge_p): New routine.
9656         * cfg.c (check_bb_profile): Add partition insanity warnings.
9658 2013-08-30  Meador Inge  <meadori@codesourcery.com>
9660         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
9662 2013-08-30  Marek Polacek  <polacek@redhat.com>
9664         * Makefile.in (ubsan.o): Add.
9665         (c-family/c-ubsan.o): Add.
9666         (builtins.o): Add ubsan.h dependency.
9667         * ubsan.h: New file.
9668         * ubsan.c: New file.
9669         * common.opt: Add -fsanitize=undefined option.
9670         (flag_sanitize): Add variable.
9671         (fsanitize=): Add option.  Add Driver.
9672         (fsanitize=thread): Remove option.
9673         (fsanitize=address): Likewise.
9674         (static-libubsan): New option.
9675         * doc/invoke.texi: Document the new flag and -static-libubsan.
9676         * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
9677         (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
9678         * builtin-attrs.def (ATTR_COLD): Define.
9679         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
9680         * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
9681         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
9682         * flag-types.h (sanitize_code): New enum.
9683         * opts.c (common_handle_option): Parse command line arguments
9684         of -fsanitize=.  Add -fsanitize=unreachable option.
9685         * varasm.c (get_variable_section): Adjust.
9686         (assemble_noswitch_variable): Likewise.
9687         (assemble_variable): Likewise.
9688         (output_constant_def_contents): Likewise.
9689         (categorize_decl_for_section): Likewise.
9690         (place_block_symbol): Likewise.
9691         (output_object_block): Likewise.
9692         * builtins.def: Likewise.
9693         * toplev.c (compile_file): Likewise.
9694         (process_options): Likewise.
9695         * cppbuiltin.c: Likewise.
9696         * tsan.c (tsan_pass): Likewise.
9697         (tsan_gate): Likewise.
9698         (tsan_gate_O0): Likewise.
9699         * cfgexpand.c (partition_stack_vars): Likewise.
9700         (expand_stack_vars): Likewise.
9701         (defer_stack_allocation): Likewise.
9702         (expand_used_vars): Likewise.
9703         * cfgcleanup.c (old_insns_match_p): Likewise.
9704         * asan.c (asan_finish_file): Likewise.
9705         (asan_instrument): Likewise.
9706         (gate_asan): Likewise.
9707         (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
9708         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
9709         (asan_global_struct): Use pointer_sized_int_node instead
9710         calling build_nonstandard_integer_type.
9711         (initialize_sanitizer_builtins): Likewise.
9712         (asan_finish_file): Likewise.
9713         * gcc.c: Document %{%:function(args):X}.
9714         (static_spec_functions): Add sanitize.
9715         (handle_spec_function): Add retval_nonnull argument and if non-NULL,
9716         store funcval != NULL there.
9717         (do_spec_1): Adjust handle_spec_function caller.
9718         (handle_braces): Allow %:function(args) as condition.
9719         (sanitize_spec_function): New function.
9720         (ADD_STATIC_LIBUBSAN_LIBS): Define.
9721         (LIBUBSAN_SPEC): Likewise.
9722         (LIBUBSAN_EARLY_SPEC): Likewise.
9723         (SANITIZER_SPEC): Handle libubsan.
9724         (SANITIZER_EARLY_SPEC): Likewise.
9725         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
9726         instead of fsanitize=address.
9727         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
9728         instead of fsanitize=address*.
9729         * builtins.c: Include ubsan.h.
9730         (fold_builtin_0): Instrument __builtin_unreachable.
9731         * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
9732         instead of flag_asan.
9733         * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
9734         (pointer_sized_int_node): Define.
9735         * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
9737 2013-08-30  Mike Stump  <mikestump@comcast.net>
9739         * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
9740         with RE patterns.
9742 2013-08-29  Jan Hubicka  <jh@suse.cz>
9744         * cgraph.c (cgraph_function_body_availability): Handle weakref
9745         correctly.
9746         * passes.def: Remove pass_fixup_cfg.
9747         * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
9748         track when we need to remove functions.
9749         (gate_ipa_inline): Execute inlining always; add comment why.
9750         (pass_data_ipa_inline): Remove TODO_remove_functions.
9751         * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
9752         do not produce summaries.
9753         * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
9754         (symtab_nonoverwritable_alias): Assert we are not called on weakref.
9755         * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
9756         constant pool and vtable.
9758 2013-08-30  Tejas Belagod  <tejas.belagod@arm.com>
9760         * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
9761         New arm_neon.h's internal macros to specify 64-bit constants.
9762         Avoid using stdint.h's macros.
9764 2013-08-30  Joern Rennecke  <joern.rennecke@embecosm.com>
9766         * recog.c (verify_changes): Verify that changes[i].old is non-zero
9767         before applying REG_P.
9769 2013-08-30  Jakub Jelinek  <jakub@redhat.com>
9771         PR tree-optimization/58277
9772         * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
9773         after seeing too many stmts with vdef in between dombb and current
9774         bb, invalidate everything.
9776 2013-08-30  Richard Biener  <rguenther@suse.de>
9778         * fold-const.c (fold_single_bit_test): Fix overflow test.
9780 2013-08-30  Eric Botcazou  <ebotcazou@adacore.com>
9782         * function.c (assign_parm_setup_reg): For a parameter passed by pointer
9783         and which can live in a register, always retrieve the value on entry.
9784         * var-tracking.c (add_stores): Treat the copy on entry for a parameter
9785         passed by invisible reference specially.
9786         (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
9787         (vt_add_function_parameter): Correctly deal with a parameter passed by
9788         invisible reference.
9790 2013-08-30  Jan Hubicka  <jh@suse.cz>
9792         * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
9794 2013-08-30  Richard Biener  <rguenther@suse.de>
9796         PR tree-optimization/58228
9797         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
9798         allow invariant loads in nested loop vectorization.
9800 2013-08-30  Richard Biener  <rguenther@suse.de>
9802         PR tree-optimization/58223
9803         * tree-loop-distribution.c (has_anti_dependence): Rename to ...
9804         (has_anti_or_output_dependence): ... this and adjust to also
9805         look for output dependences.
9806         (mark_nodes_having_upstream_mem_writes): Adjust.
9807         (rdg_flag_uses): Likewise.
9809 2013-08-30  Richard Biener  <rguenther@suse.de>
9811         PR tree-optimization/58010
9812         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
9813         assert that we have a loop-closed PHI.
9815 2013-08-29  Jan Hubicka  <jh@suse.cz>
9817         * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
9818         * cgraph.c (cgraph_release_function_body): Free decl_in_state.
9819         * lto-section-in.c (lto_free_function_in_decl_state): New function.
9820         (lto_free_function_in_decl_state_for_node): New function.
9822 2013-08-29  Xinliang David Li  <davidxl@google.com>
9824         * loop-unroll.c (report_unroll_peel): Minor message change.
9825         * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
9826         Emit alignment peeling message with default -fopt-info.
9827         (vect_loop_versioning): Emit loop version info message.
9828         * tree-vectorizer.c (vectorize_loops): Minor message change.
9829         (execute_vect_slp): Ditto.
9831 2013-08-29  Eric Botcazou  <ebotcazou@adacore.com>
9833         * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
9834         of the clone from the DECL_NAME of the original function.
9836 2013-08-29  Oleg Endo  <olegendo@gcc.gnu.org>
9838         * passes.c (register_pass): Add overload.
9839         * tree-pass.h (register_pass): Forward declare it.  Add comment.
9841 2013-08-29  Jan Hubicka  <jh@suse.cz>
9843         * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
9844         DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
9845         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
9846         DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
9847         (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
9848         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
9849         Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
9850         (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
9852 2013-08-29  Teresa Johnson  <tejohnson@google.com>
9854         * dumpfile.c (dump_loc): Output column number.
9855         * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
9856         * doc/invoke.texi: Document optall -fopt-info flag.
9857         * profile.c (read_profile_edge_counts): Use new dump framework.
9858         (compute_branch_probabilities): Ditto.
9859         * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
9860         when pass not in any opt group.
9861         * pass_manager.h (pass_manager::get_pass_profile): New method.
9862         * value-prof.c (check_counter): Use new dump framework.
9863         (check_ic_target): Ditto.
9864         * coverage.c (get_coverage_counts): Ditto.
9865         (coverage_init): Setup new dump framework.
9867 2013-08-29  Richard Biener  <rguenther@suse.de>
9869         PR tree-optimization/58246
9870         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
9871         handle the dominance check inside a basic-block.
9873 2013-08-29  Richard Biener  <rguenther@suse.de>
9875         PR middle-end/57287
9876         * tree-ssa-copy.c (may_propagate_copy): Allow propagating
9877         of default defs that appear in abnormal PHI nodes.
9879 2013-08-29  Richard Biener  <rguenther@suse.de>
9881         PR tree-optimization/57685
9882         * tree-vrp.c (register_edge_assert_for_1): Recurse only for
9883         single-use operands to avoid exponential complexity.
9885 2013-08-28  Dehao Chen  <dehao@google.com>
9887         * ipa-inline.c (edge_badness): Fix integer underflow.
9889 2013-08-28  Uros Bizjak  <ubizjak@gmail.com>
9891         * gtm-builtins.def (_ITM_free): Declare leaf.
9893 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
9895         PR target/58067
9896         * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
9897         (*tls_local_dynamic_base_64_largepic): Likewise.
9898         (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
9899         Remove predicate from call operand.
9900         * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
9901         return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
9903 2013-08-28  Jeff Law  <law@redhat.com>
9905         * tree-ssa-threadedge.c (thread_around_empty_block): Remove
9906         checks for the number of predecessors and successors allowed.
9907         * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
9908         which require copying a joiner block if there is a request which
9909         is a subpath that requires no joiner block copying.
9911 2013-08-28  Jan Hubicka  <jh@suse.cz>
9913         * lto-streamer-out.c (DFS_write_tree_body): Drop
9914         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
9915         (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
9916         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
9917         * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
9918         Do not read DECL_ERROR_ISSUED.
9919         (unpack_ts_decl_with_vis_value_fields): Do not read
9920         DECL_DEFER_OUTPUT.
9921         (lto_input_ts_binfo_tree_pointers): Do not read
9922         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
9923         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
9924         write DECL_ERROR_ISSUED..
9925         (pack_ts_decl_with_vis_value_fields): Do not write
9926         DECL_DEFER_OUTPUT.
9927         (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
9928         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
9929         * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
9930         * tree.h (tree_decl_common): Update comment.
9931         (DECL_ERROR_ISSUED): Remove.
9933 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
9935         PR middle-end/58257
9936         * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
9938 2013-08-28  Jan Hubicka  <jh@suse.cz>
9940         * builtins.def (free): Declare leaf.
9942 2013-08-27  David Malcolm  <dmalcolm@redhat.com>
9944         * gdbhooks.py: New.
9945         * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
9946         * configure: Regenerate.
9948 2013-08-27  Martin Jambor  <mjambor@suse.cz>
9950         * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
9951         (ipa_ancestor_jf_data): Likewise.
9952         (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
9953         (ipa_get_jf_pass_through_type_preserved): New function.
9954         (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
9955         (ipa_get_jf_ancestor_type_preserved): New function.
9956         * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
9957         (ipa_get_jf_ancestor_result): Likewise.
9958         (propagate_vals_accross_pass_through): Use
9959         ipa_get_jf_pass_through_result to do all the value mappings.
9960         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
9961         type_preserved flag.
9962         (ipa_set_jf_cst_copy): New function.
9963         (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
9964         (ipa_set_jf_arith_pass_through): Likewise.
9965         (ipa_set_ancestor_jf): Likewise.
9966         (compute_complex_assign_jump_func): Set type_preserved instead of
9967         punting.
9968         (ipa_compute_jump_functions_for_edge): Likewise.
9969         (combine_known_type_and_ancestor_jfs): Honor type_preserved.
9970         (update_jump_functions_after_inlining): Update type_preserved.
9971         Explicitely create jump functions when combining one with pass_through.
9972         (ipa_write_jump_function): Stream the type_preserved flags.
9973         (ipa_read_jump_function): Likewise.
9975 2013-08-27  Jakub Jelinek  <jakub@redhat.com>
9976             Aldy Hernandez  <aldyh@redhat.com>
9978         * Makefile.in (omp-low.o): Depend on $(TARGET_H).
9979         * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
9980         * function.h (struct function): Add has_force_vect_loops and
9981         has_simduid_loops.
9982         * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
9983         * gimple.c (gimple_build_omp_critical): Add KIND argument and
9984         handle it.
9985         * gimple.def: Update CLAUSES comments.
9986         * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
9987         (gimple_build_omp_for): Add argument to prototype.
9988         (gimple_omp_for_kind): New.
9989         (gimple_omp_for_set_kind): New.
9990         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
9991         GOVD_DATA_SHARE_CLASS.
9992         (enum omp_region_type): Add ORT_SIMD.
9993         (gimple_add_tmp_var): Handle ORT_SIMD.
9994         (gimplify_var_or_parm_decl): Same.
9995         (is_gimple_stmt): Same.
9996         (omp_firstprivatize_variable): Same.
9997         (omp_add_variable): Only use splay_tree_insert if lookup failed.
9998         (omp_notice_variable): Handle ORT_SIMD.
9999         (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
10000         (omp_check_private): Handle ORT_SIMD.
10001         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
10002         OMP_CLAUSE_SAFELEN.
10003         (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
10004         Handle OMP_CLAUSE_LASTPRIVATE.
10005         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
10006         OMP_CLAUSE_SAFELEN.
10007         (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
10008         (gimplify_expr): Handle OMP_SIMD.
10009         * internal-fn.c (expand_GOMP_SIMD_LANE): New.
10010         (expand_GOMP_SIMD_VF): New.
10011         (expand_GOMP_SIMD_LAST_LANE): New.
10012         * internal-fn.def (GOMP_SIMD_LANE): New.
10013         (GOMP_SIMD_VF): New.
10014         (GOMP_SIMD_LAST_LANE): New.
10015         * omp-low.c: Include target.h.
10016         (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
10017         OMP_CLAUSE_SAFELEN.
10018         (check_omp_nesting_restrictions): Same.
10019         (omp_max_vf): New.
10020         (lower_rec_simd_input_clauses): New.
10021         (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
10022         OMP_CLAUSE_LINEAR.
10023         (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
10024         GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
10025         (expand_omp_build_assign): New.
10026         (expand_omp_for_init_counts): New.
10027         (expand_omp_for_init_vars): New.
10028         (extract_omp_for_update_vars): New.
10029         (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
10030         and rewrite accordingly.
10031         (expand_omp_simd): New.
10032         (expand_omp_for): Use expand_omp_simd.
10033         (lower_omp_for_lastprivate): Unshare vinit when appropriate.
10034         (lower_omp_for): Do not lower the body.
10035         * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
10036         in their own loops.
10037         * tree-flow.h (find_omp_clause): Remove prototype.
10038         * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
10039         forcing vectorization of the loop, or if flag_tree_vectorize.
10040         (gate_tree_if_conversion): Similarly.
10041         * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
10042         gimple_build_omp_for.
10043         (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
10044         * tree-parloops (create_parallel_loop): Pass kind argument to
10045         gimple_build_omp_for.
10046         * tree-pretty-print.c (dump_omp_clause): Add cases for
10047         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
10048         OMP_CLAUSE__SIMDUID_.
10049         (dump_generic_node): Handle OMP_SIMD.
10050         * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
10051         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
10052         unroll OMP_SIMD loops here.
10053         * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
10054         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
10055         loop->safelen.
10056         (vect_analyze_data_refs): Handle simd loops.
10057         * tree-vect-loop.c (vectorizable_live_operation): Handle
10058         IFN_GOMP_SIMD*.
10059         * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
10060         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
10061         (vectorizable_load): Same.
10062         * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
10063         (struct simduid_to_vf): New.
10064         (simduid_to_vf::hash): New.
10065         (simduid_to-vf::equal): New.
10066         (struct simd_array_to_simduid): New.
10067         (simd_array_to_simduid::hash): New.
10068         (simd_array_to_simduid::equal): New.
10069         (adjust_simduid_builtins): New.
10070         (struct note_simd_array_uses_struct): New.
10071         (note_simd_array_uses_cb): New.
10072         (note_simd_array_uses): New.
10073         (vectorize_loops): Handle simd hints and adjust simd builtins
10074         accordingly.
10075         * tree-vectorizer.h (struct _stmt_vec_info): Add
10076         simd_lane_access_p field.
10077         (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
10078         * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
10079         OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
10080         (omp_clause_code_name): Same.
10081         (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
10082         OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
10083         * tree.def (OMP_SIMD): New entry.
10084         * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
10085         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
10086         (OMP_CLAUSE_DECL): Adjust range for new clauses.
10087         (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
10088         (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
10089         (OMP_CLAUSE_LINEAR_STEP): New.
10090         (OMP_CLAUSE_SAFELEN_EXPR): New.
10091         (OMP_CLAUSE__SIMDUID__DECL): New.
10092         (find_omp_clause): New prototype.
10094 2013-08-27  H.J. Lu  <hongjiu.lu@intel.com>
10096         * config/i386/driver-i386.c (host_detect_local_cpu): Update
10097         Haswell processor detection.
10099 2013-08-27  Christian Widmer  <shadow@umbrox.de>
10101         PR target/57927
10102         * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
10103         of Ivy Bridge and Haswell processors.  Assume core-avx2 for unknown
10104         AVX2 capable processors.
10106 2013-08-27  Tejas Belagod  <tejas.belagod@arm.com>
10108         * config/aarch64/arm_neon.h: Replace all inline asm implementations
10109         of vget_low_* with implementations in terms of other intrinsics.
10111 2013-08-27  Marc Glisse  <marc.glisse@inria.fr>
10113         PR middle-end/57219
10114         * doc/extend.texi (__builtin_isinf_sign): Restrict the return
10115         values to -1, 0 and 1.
10117 2013-08-27  Vidya Praveen  <vidyapraveen@arm.com>
10119         * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
10120         UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
10121         (<optab><mode>3_insn): Remove.
10122         (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
10123         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
10124         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
10125         (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
10126         (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
10127         (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
10128         (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
10129         (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
10130         (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
10131         (ror<mode>3_insn): Likewise.
10132         * config/aarch64/predicates.md (aarch64_simd_register): New.
10134 2013-08-27  Richard Biener  <rguenther@suse.de>
10136         PR tree-optimization/57521
10137         * tree-if-conv.c (if_convertible_bb_p): Verify that at least
10138         one edge is non-critical.
10139         (find_phi_replacement_condition): Make sure to use a non-critical
10140         edge.  Cleanup and remove old bug workarounds.
10141         (bb_postdominates_preds): Remove.
10142         (if_convertible_loop_p_1): Do not compute post-dominators.
10143         (combine_blocks): Do not free post-dominators.
10144         (main_tree_if_conversion): Likewise.
10145         (pass_data_if_conversion): Add TODO_verify_ssa.
10147 2013-08-27  DJ Delorie  <dj@redhat.com>
10149         * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
10151 2013-08-27  Yufeng Zhang  <yufeng.zhang@arm.com>
10153         * function.c (assign_parm_find_data_types): Set passed_mode and
10154         nominal_mode to the TYPE_MODE of nominal_type for the built
10155         pointer type in case of the struct-pass-by-reference.
10157 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
10159         * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
10160         (UINT16_TYPE): Change default to "unsigned int".
10162         * config/avr/avr.opt (mfract-convert-truncate): New option.
10163         * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
10164         is set, round negative fractional integers according to n1169
10165         when converting to integer types.
10167 2013-08-26  Jan Hubicka  <jh@suse.cz>
10169         * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
10170         methods can not be called indirectly when their address is not taken.
10172 2013-08-26  Jan Hubicka  <jh@suse.cz>
10174         * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
10175         ctor_for_folding.
10177 2013-08-26  Jan Hubicka  <jh@suse.cz>
10179         * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
10180         can be unshared.
10182 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
10184         * reload.c (find_valid_class): Allow classes that do not include
10185         FIRST_PSEUDO_REGISTER - 1.
10187 2013-08-26  Jan Hubicka  <jh@suse.cz>
10189         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
10190         fix edge count/frequency when speculation failed; fix type check
10191         for the direct call.
10193 2013-08-26  Jan Hubicka  <jh@suse.cz>
10195         * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
10197 2013-08-26  Jan Hubicka  <jh@suse.cz>
10199         * ipa-inline-transform.c (inline_transform): Be ready for basic block
10200         to be changed by edge redirection.
10202 2013-08-26  Jan Hubicka  <jh@suse.cz>
10204         * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
10205         formating; add sanity check.
10206         (cgraph_resolve_speculation): Add FIXME about scaling profiles.
10207         (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
10208         * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
10209         (resolve_noninline_speculation): Update callee keys, too.
10211 2013-08-26  Jan Hubicka  <jh@suse.cz>
10213         * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
10214         (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
10216 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
10218         * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
10219         into proper place.
10221 2013-08-26  Uros Bizjak  <ubizjak@gmail.com>
10223         * config/i386/i386.c (ix86_debug_options): Remove prototype.
10224         (x86_64_elf_select_section): Ditto.
10225         (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
10226         arguments.
10227         (ix86_pass_by_reference): Ditto.
10228         (output_set_got): Ditto.
10229         (ix86_unary_operator_ok): Ditto.
10230         (ix86_expand_builtin): Ditto.
10232 2013-08-23  Jan Hubicka  <jh@suse.cz>
10234         * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
10236 2013-08-23  Jan Hubicka  <jh@suse.cz>
10238         * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
10239         (tree_decl_with_vis): Add FINAL field.
10241 2013-08-23  Jeff Law  <law@redhat.com>
10243         * tree-ssa-pre.c (do_regular_insertion): Include the expression in
10244         the debugging dump when the expression is fully redundant.
10246 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10248         * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
10249         * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
10250         * pretty-print.c (pp_formatted_text_data): Likewise.
10251         (pp_write_text_to_stream): Likewise.
10252         (pp_write_text_as_dot_label_to_stream): Likewise.
10253         (pp_append_r): Likewise.
10254         (pp_format): Likewise.
10255         (pp_flush): Likewise.
10256         (pp_clear_output_area): Likewise.
10257         (pp_append_text): Likewise.
10258         (pp_formatted_text): Likewise.
10259         (pp_remaining_character_count_for_line): Likewise.
10260         (pp_newline): Likewise.
10261         (pp_character): Likewise.
10262         (output_buffer::~output_buffer): Define.
10263         (pretty_printer::~pretty_printer): Destruct output buffer.
10264         * pretty-print.h (output_buffer::~output_buffer): Declare.
10265         (pretty_printer::~pretty_printer): Declare virtual.
10267 2013-08-24  Marc Glisse  <marc.glisse@inria.fr>
10269         PR other/57324
10270         * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
10271         HOST_WIDE_INT_M1U): New macros.
10272         * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
10273         fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
10274         unsigned -1 for lshift.
10275         * cse.c (cse_insn): Likewise.
10276         * double-int.c (rshift_double, lshift_double): Likewise.
10277         * builtins.c (fold_builtin_bitop): Likewise.
10278         * combine.c (force_to_mode): Likewise.
10279         * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
10280         * simplify-rtx.c (simplify_const_unary_operation,
10281         simplify_const_binary_operation): Likewise.
10282         * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
10283         check_va_list_escapes): Likewise.
10284         * rtlanal.c (nonzero_bits1): Likewise.
10285         * expmed.c (expand_smod_pow2): Likewise.
10286         * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
10288 2013-08-23  Jan Hubicka  <jh@suse.cz>
10290         * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
10291         as having address taken.
10293 2013-08-23  Jan Hubicka  <jh@suse.cz>
10295         * ipa-utils.h (method_class_type): Declare.
10296         * ipa-devirt.c (method_class_type): Export.
10298         * cgraphunit.c (analyze_functions): Do basic devirtualization;
10299         do not walk base classes of anonymous types.
10301 2013-08-23  Kaz Kojima  <kkojima@gcc.gnu.org>
10303         PR rtl-optimization/58220
10304         PR regression/58221
10305         * final.c (reemit_insn_block_notes): Use NEXT_INSN to
10306         handle SEQUENCE insns properly.
10308 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10310         * pretty-print.h (pp_newline_and_flush): Declare.  Remove macro
10311         definition.
10312         (pp_newline_and_indent): Likewise.
10313         (pp_separate_with): Likewise.
10314         * pretty-print.c (pp_newline_and_flush): Define.
10315         (pp_newline_and_indent): Likewise.
10316         (pp_separate_with): Likewise.
10318 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
10320         PR target/58218
10321         * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
10322         * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
10324 2013-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
10326         * config/i386/predicates.md (ext_sse_reg_operand): New.
10327         * config/i386/i386.md (*movti_internal): Use
10328         predicate to determine if EVEX is needed.
10329         (*movsi_internal): Ditto.
10330         (*movdf_internal): Ditto.
10331         (*movsf_internal): Ditto.
10332         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
10334 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
10336         PR tree-optimization/58209
10337         * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
10338         (find_tail_calls): Give up for pointer result types if m is non-NULL.
10339         (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
10340         emit POINTER_PLUS_EXPR.
10341         (create_tailcall_accumulator): For pointer result type accumulate in
10342         sizetype type.
10344 2013-08-22  Paolo Carlini  <paolo.carlini@oracle.com>
10346         * configure.ac: Add backslashes missing from the last change.
10347         * configure: Regenerate.
10349 2013-08-22  Jan Hubicka  <jh@susue.cz>
10351         * ipa.c (function_and_variable_visibility): First remember function
10352         was global and then make it local.
10354 2013-08-22  Julian Brown  <julian@codesourcery.com>
10356         * configure.ac: Add aarch64 to list of arches which use "nop" in
10357         debug_line test.
10358         * configure: Regenerate.
10360 2013-08-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10362         * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
10363         gnu_libc_has_function.
10364         * config/s390/tpf.h: Likewise.
10366 2013-08-22  Jan Hubicka  <jh@susue.cz>
10368         * timevar.c (validate_phases): Add cast.
10370 2013-08-22  Jan Hubicka  <jh@susue.cz>
10372         * timevar.c (validate_phases): Use size_t for memory.
10373         * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
10375 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10377         * pretty-print.h (output_buffer::output_buffer): Declare.
10378         (pretty_printer::pretty_printer): Likewise.
10379         (pp_construct): Remove.
10380         * pretty-print.c (output_buffer::output_buffer): Define.
10381         (pretty_printer::pretty_printer): Rename from pp_construct.  Simplify.
10382         * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
10383         (print_gimple_expr): Likewise.
10384         (print_gimple_seq): Likewise.
10385         (gimple_dump_bb): Likewise.
10386         * sched-vis.c (dump_value_slim): Likewise.
10387         (dump_insn_slim): Likewise.
10388         (dump_rtl_slim): Likewise.
10389         (str_pattern_slim): Likewise.
10390         * tree-mudflap.c (mf_varname_tree): Likewise.
10391         * graph.c (print_graph_cfg): Likewise.
10392         (start_graph_dump): Likewise.
10393         * tree-pretty-print.c (maybe_init_pretty_print): Likewise.  Use
10394         placement-new.
10395         * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
10396         pretty printer initialization.
10397         * coretypes.h (diagnostic_context): Remove superflous type alias
10398         declaration.
10399         (pretty_printer): Likewise.  Declare directly as a class.
10400         (pretty_print_info): Remove declaration as class.
10401         * asan.c (asan_emit_stack_protection): Remove call to pp_construct
10402         and pp_clear_output_area.
10403         (asan_add_global): Likewise.
10405 2013-08-22  Jan Hubicka  <jh@suse.cz>
10407         * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
10408         * ipa-utils.h (update_type_inheritance_graph): Declare.
10409         (possible_polymorphic_call_target_p): Declare.
10410         (possible_polymorphic_call_target_p): New.
10411         * ipa-devirt.c: Update toplevel comments.
10412         (cached_polymorphic_call_targets): Move up.
10413         (odr_type_d): Move ID down.
10414         (polymorphic_type_binfo_p): Update comment.
10415         (odr_hasher::remove): Likewise;
10416         (get_odr_type): Set anonymous_namespace.
10417         (dump_odr_type): Dump it.
10418         (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
10419         (maybe_record_node): Record node in cached_polymorphic_call_targets.
10420         (record_binfo): Add comment.
10421         (free_polymorphic_call_targets_hash): Do not ICE when cache is not
10422         built.
10423         (devirt_node_removal_hook): Do not iCE when cache is freed.
10424         (possible_polymorphic_call_target_p): New predicate.
10425         (update_type_inheritance_graph): New function.
10427 2013-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10428             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10429             Sergey Lega  <sergey.s.lega@intel.com>
10430             Anna Tikhonova  <anna.tikhonova@intel.com>
10431             Ilya Tocar  <ilya.tocar@intel.com>
10432             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10433             Ilya Verbin  <ilya.verbin@intel.com>
10434             Kirill Yukhin  <kirill.yukhin@intel.com>
10435             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10437         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
10438         (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
10439         (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
10440         (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
10441         (OPTION_MASK_ISA_AVX2_UNSET): Update.
10442         (OPTION_MASK_ISA_AVX512F_UNSET): New.
10443         (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
10444         (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
10445         (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
10446         (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
10447         OPT_mavx512pf, OPT_mavx512er cases.
10448         * config/i386/constraints.md (v): New constraint.
10449         (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
10450         * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
10451         (bit_AVX512CD): New.
10452         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
10453         AVX512F, AVX512ER, AVX512PF, AVX512CD features.
10454         * config/i386/i386-c.c (ix86_target_macros_internal):
10455         Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
10456         __AVX512PF__.
10457         * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
10458         (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
10459         * config/i386/i386.c (regclass_map, dbx_register_map)
10460         (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
10461         (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
10462         (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
10463         -mavx512pf options.
10464         (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
10465         PTA_AVX512PF, PTA_AVX512CD.  Handle -mavx512f, -mavx512er, -mavx512cd,
10466         -mavx512pf options.  Fix formatting.
10467         (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
10468         targets.  Squash EVEX_SSE_REGS if AVX512F is disabled.
10469         (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
10470         -mavx512cd, -mavx512pf options.
10471         (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
10472         (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
10473         (ix86_preferred_output_reload_class): Replace SSE_REGS with
10474         ALL_SSE_REGS.
10475         (ix86_hard_regno_mode_ok): Support 512-bit registers.
10476         (ix86_set_reg_reg_cost): Ditto.
10477         (x86_order_regs_for_local_alloc): Ditto.
10478         (MAX_VECT_LEN): Extend to 64-byte.
10479         (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
10480         * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
10481         (TARGET_AVX512ER, TARGET_AVX512CD): New.
10482         (BIGGEST_ALIGNMENT): Extend to 512-bits.
10483         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
10484         (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
10485         (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
10486         (SSE_REG_MODE_P): Support new modes.
10487         (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
10488         (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
10489         (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
10490         (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
10491         (REG_CLASS_CONTENTS): Add new registers.
10492         (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
10493         (EXT_REX_SSE_REGNO_P): New.
10494         (HI_REGISTER_NAMES): Add new registers.
10495         * config/i386/i386.md: Define constants for new registers.
10496         (mode): Add new 512-bit modes.
10497         (prefix): Support evex prefix.
10498         (isa): Support avx512f, noavx512f, fma_avx512f.
10499         (ssemodesuffix): Add new 512-bit modes.
10500         (movxi): New.
10501         (*movxi_internal_avx512f): Ditto.
10502         (*movdi_internal): Replace constraint "x" with the new constraint "v".
10503         Support MODE_XI.
10504         (*movsi_internal): Likewise.
10505         (*movdf_internal): Likewise.
10506         (*movsf_internal): Likewise.
10507         (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
10508         (<code><mode>3): Likewise.
10509         * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
10510         New.
10511         * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
10512         with the new constraint "v".
10513         * config/i386/sse.md (*mov<mode>_internal): Support new registers and
10514         modes.
10515         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
10516         with the new constraint "v".
10517         (<sse2>_loaddqu<avxsizesuffix>): Likewise.
10518         (<sse2>_storedqu<avxsizesuffix>): Likewise.
10519         (*<plusminus_insn><mode>3): Likewise.
10520         (<sse>_vm<plusminus_insn><mode>3): Likewise.
10521         (*mul<mode>3): Likewise.
10522         (<sse>_vmmul<mode>3): Likewise.
10523         (<sse>_div<mode>3): Likewise.
10524         (<sse>_vmdiv<mode>3): Likewise.
10525         (<sse>_sqrt<mode>2): Likewise.
10526         (<sse>_vmsqrt<mode>2): Likewise.
10527         (*<code><mode>3_finite): Likewise.
10528         (*<code><mode>3) <smaxmin>: Likewise.
10529         (<sse>_vm<code><mode>3): Likewise.
10530         (*<code><mode>3) <any_logic>: Likewise.
10531         (*fma_fmadd_<mode>): Likewise.
10532         (*fma_fmsub_<mode>): Likewise.
10533         (*fma_fnmadd_<mode>): Likewise.
10534         (*fma_fnmsub_<mode>): Likewise.
10535         (*fma_fmaddsub_<mode>): Likewise.
10536         (*fma_fmsubadd_<mode>): Likewise.
10537         (*fmai_fmadd_<mode>): Likewise.
10538         (*fmai_fmsub_<mode>): Likewise.
10539         (*fmai_fnmadd_<mode>): Likewise.
10540         (*fmai_fnmsub_<mode>): Likewise.
10541         (sse_cvtsi2ss): Likewise.
10542         (sse_cvtsi2ssq): Likewise.
10543         (sse_cvtss2si): Likewise.
10544         (sse_cvtss2si_2): Likewise.
10545         (sse_cvtss2siq): Likewise.
10546         (sse_cvtss2siq_2): Likewise.
10547         (sse_cvttss2si): Likewise.
10548         (sse_cvtss2siq_2): Likewise.
10549         (float<sseintvecmodelower><mode>2): Likewise.
10550         (sse2_cvtsd2si_2): Likewise.
10551         (sse2_cvtsd2siq_2): Likewise.
10552         (*<plusminus_insn><mode>3): Likewise.
10553         (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
10554         (*<sse4_1_avx2>_mul<mode>3): Likewise.
10555         (ashr<mode>3): Likewise.
10556         (<shift_insn><mode>3): Likewise.
10557         (avx2_<code><mode>3): Likewise.
10558         (*avx2_<code><mode>3): Likewise.
10559         (*andnot<mode>3): Likewise.
10560         (*<code><mode>3) <any_logic>: Likewise.
10561         (abs<mode>2): Likewise.
10562         (avx2_permvar<mode>): Likewise.
10563         (avx2_perm<mode>_1): Likewise.
10564         (*avx_vpermilp<mode>): Likewise.
10565         (avx_vpermilvar<mode>3): Likewise.
10566         (avx2_ashrv<mode>): Likewise.
10567         (avx2_<shift_insn>v<mode>): Likewise.
10568         * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
10569         -mavx512cd.
10570         * doc/rtl.texi: Document XImode.
10572 2013-08-21  Jeff Law  <law@redhat.com>
10574         * tree-flow.h (register_jump_thread): Pass vector of edges
10575         instead of each important edge.
10576         * tree-ssa-threadedge.c (thread_across_edge): Build the jump
10577         thread path into a vector and pass that to register_jump_thread.
10578         * tree-ssa-threadupdate.c (register_jump_thread): Conver the
10579         passed in edge vector to the current 3-edge form.
10581         Revert:
10582         2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
10584         * dce.c (fini_dce): Call df_analyze again just in case
10585         delete_unmarked_insns removed anything.
10587 2013-08-21  Joern Rennecke  <joern.rennecke@embecosm.com>
10589         * reload.h (struct reg_equivs): Rename to ..
10590         (struct reg_equivs_s): .. this.
10592 2013-08-20  Martin Liska  <marxin.liska@gmail.com>
10594         * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
10596 2013-08-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10598         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
10600 2013-08-21  Jeff Law  <law@redhat.com>
10602         * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
10603         simplify assignments too.  If the RHS collapses to a singleton
10604         range, then return the value for the range.
10606 2013-08-21  Kirill Yukhin  <kirill.yukhin@intel.com>
10608         * config/i386/sse.md (V16): Rename to...
10609         (VMOVE): this.
10610         (mov<mode>): Update iterator name.
10611         (*mov<mode>_internal): Ditto.
10612         (push<mode>1): Ditto.
10613         (movmisalign<mode>): Ditto.
10615 2013-08-20  Jan Hubicka  <jh@suse.cz>
10617         PR bootstrap/58186
10618         * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
10619         entry for direct edges.
10620         (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
10622 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
10624         Revert my last two changes, r201865 and r201864:
10626         Revert r201865:
10627         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
10629         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
10630         instances can own GC refs.
10632         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
10633         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
10634         (gcc::context::gt_pch_nx): Likewise.
10635         (gcc::context::gt_pch_nx):  Likewise.
10636         * ggc.h (gt_ggc_mx <T>): New.
10637         (gt_pch_nx_with_op <T>): New.
10638         (gt_pch_nx <T>): New.
10639         * passes.c (opt_pass::gt_ggc_mx): New.
10640         (opt_pass::gt_pch_nx): New.
10641         (opt_pass::gt_pch_nx_with_op): New.
10642         (pass_manager::gt_ggc_mx): New.
10643         (pass_manager::gt_pch_nx): New.
10644         (pass_manager::gt_pch_nx_with_op): New.
10645         (pass_manager::operator new): Use
10646         ggc_internal_cleared_alloc_stat rather than xcalloc.
10647         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
10648         (pass_manager::gt_ggc_mx): New.
10649         (pass_manager::gt_pch_nx): New.
10650         (pass_manager::gt_pch_nx_with_op): New.
10651         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
10652         (opt_pass::operator new): New.
10653         (opt_pass::gt_ggc_mx): New.
10654         (opt_pass::gt_pch_nx): New.
10655         (opt_pass::gt_pch_nx_with_op): New.
10657         Revert r201864:
10658         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
10660         * Makefile.in (GTFILES): Add context.h.
10661         * context.c (gcc::context::operator new): New.
10662         (gcc::context::gt_ggc_mx): New.
10663         (gcc::context::gt_pch_nx): New.
10664         (gcc::context::gt_pch_nx): New.
10665         * context.h (gcc::context): Add GTY((user)) marking.
10666         (gcc::context::operator new): New.
10667         (gcc::context::gt_ggc_mx): New.
10668         (gcc::context::gt_pch_nx): New.
10669         (gcc::context::gt_pch_nx): New.
10670         (g): Add GTY marking.
10671         (gt_ggc_mx (gcc::context *)): New.
10672         (gt_pch_nx (gcc::context *)): New.
10673         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
10674         void *cookie)): New.
10675         * gengtype.c (open_base_files) <ifiles>: Add context.h.
10677 2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
10679         * dce.c (fini_dce): Call df_analyze again just in case
10680         delete_unmarked_insns removed anything.
10682 2013-08-20  Teresa Johnson  <tejohnson@google.com>
10684         PR rtl-optimizations/57451
10685         * final.c (reemit_insn_block_notes): Prevent lexical blocks
10686         from crossing split section boundaries.
10688 2013-08-20  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
10690         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
10691         * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
10692         with MULTLIB_DEFAULTS.
10694 2013-08-20  Nick Clifton  <nickc@redhat.com>
10696         * target.def (narrow_volatile_bitfield): Note that the default
10697         value is false, not !TARGET_STRICT_ALIGN.
10698         * doc/tm.texi: Regenerate.
10700 2013-08-20  Pavel Chupin  <pavel.v.chupin@intel.com>
10702         Fix LIB_SPEC for systems without libpthread.
10704         * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
10705         * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
10706         for Android.
10707         * config/i386/linux-common.h: Likewise.
10708         * config/mips/linux-common.h: Likewise.
10710 2013-08-20  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
10712         * tree-ssa-ccp.c (get_default_value): Remove redundant condition
10713         checks.
10715 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
10717         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
10718         instances can own GC refs.
10720         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
10721         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
10722         (gcc::context::gt_pch_nx): Likewise.
10723         (gcc::context::gt_pch_nx):  Likewise.
10724         * ggc.h (gt_ggc_mx <T>): New.
10725         (gt_pch_nx_with_op <T>): New.
10726         (gt_pch_nx <T>): New.
10727         * passes.c (opt_pass::gt_ggc_mx): New.
10728         (opt_pass::gt_pch_nx): New.
10729         (opt_pass::gt_pch_nx_with_op): New.
10730         (pass_manager::gt_ggc_mx): New.
10731         (pass_manager::gt_pch_nx): New.
10732         (pass_manager::gt_pch_nx_with_op): New.
10733         (pass_manager::operator new): Use
10734         ggc_internal_cleared_alloc_stat rather than xcalloc.
10735         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
10736         (pass_manager::gt_ggc_mx): New.
10737         (pass_manager::gt_pch_nx): New.
10738         (pass_manager::gt_pch_nx_with_op): New.
10739         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
10740         (opt_pass::operator new): New.
10741         (opt_pass::gt_ggc_mx): New.
10742         (opt_pass::gt_pch_nx): New.
10743         (opt_pass::gt_pch_nx_with_op): New.
10745 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
10747         * Makefile.in (GTFILES): Add context.h.
10748         * context.c (gcc::context::operator new): New.
10749         (gcc::context::gt_ggc_mx): New.
10750         (gcc::context::gt_pch_nx): New.
10751         (gcc::context::gt_pch_nx): New.
10752         * context.h (gcc::context): Add GTY((user)) marking.
10753         (gcc::context::operator new): New.
10754         (gcc::context::gt_ggc_mx): New.
10755         (gcc::context::gt_pch_nx): New.
10756         (gcc::context::gt_pch_nx): New.
10757         (g): Add GTY marking.
10758         (gt_ggc_mx (gcc::context *)): New.
10759         (gt_pch_nx (gcc::context *)): New.
10760         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
10761         void *cookie)): New.
10762         * gengtype.c (open_base_files) <ifiles>: Add context.h.
10764 2013-08-20  Alan Modra  <amodra@gmail.com>
10766         PR target/57865
10767         * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
10768         (rs6000_emit_epilogue): Likewise.
10770 2013-08-19  Dehao Chen  <dehao@google.com>
10772         * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
10774 2013-08-19  Peter Bergner  <bergner@vnet.ibm.com>
10775             Jakub Jelinek  <jakub@redhat.com>
10777         * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
10778         (BUILT_IN_FABSD64): Likewise.
10779         (BUILT_IN_FABSD128): Likewise.
10780         * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
10781         (fold_builtin_1): Likewise.
10782         * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
10783         destination and source operands.
10784         (*abstd2_fpr): Likewise.
10785         (*nabstd2_fpr): Likewise.
10787 2013-08-19  Richard Sandiford  <rdsandiford@googlemail.com>
10789         * config/mips/mips.c (mips_adjust_insn_length): Add checks for
10790         JUMP_P and INSN_P.
10792 2013-08-19  Aldy Hernandez  <aldyh@redhat.com>
10794         * doc/invoke.texi (-fcilkplus): Clarify that implementation is
10795         incomplete.
10797 2013-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10799         * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
10800         * builtins.c (default_libc_has_function): New.
10801         (gnu_libc_has_function): Ditto.
10802         (no_c99_libc_has_function): Ditto.
10803         (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
10804         instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
10805         (fold_builtin_sincos): Likewise.
10806         (fold_builtin_cexp): Likewise.
10807         * builtins.def (DEF_C94_BUILTIN): Likewise.
10808         (DEF_C99_BUILTIN): Likewise.
10809         (DEF_C99_C90RES_BUILTIN): Likewise.
10810         (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
10811         definitions to using this define.
10812         * config/darwin-protos.h (darwin_libc_has_function): New.
10813         * config/darwin.c (darwin_libc_has_function): Ditto.
10814         * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
10815         TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
10816         * config/darwin.h: Ditto.
10817         * config/elfos.h: Ditto.
10818         * config/freebsd.h: Ditto.
10819         * config/i386/cygming.h: Ditto.
10820         * config/i386/djgpp.h: Ditto.
10821         * config/i386/i386-interix.h: Ditto.
10822         * config/microblaze/microblaze.h: Ditto.
10823         * config/mmix/mmix.h: Ditto.
10824         * config/gnu-user.h: Ditto.
10825         * config/ia64/hpux.h: Ditto.
10826         * config/pa/pa-hpux.h: Ditto.
10827         * config/pdp11/pdp11.h: Ditto.
10828         * config/picochip/picochip.h: Ditto.
10829         * config/linux.h: Ditto.
10830         * config/netbsd.h: Ditto.
10831         * config/openbsd.h: Ditto.
10832         * config/rs6000/aix43.h: Ditto.
10833         * config/rs6000/aix51.h: Ditto.
10834         * config/rs6000/aix52.h: Ditto.
10835         * config/rs6000/aix53.h: Ditto.
10836         * config/rs6000/aix61.h: Ditto.
10837         * config/rs6000/darwin.h: Ditto.
10838         * config/rs6000/linux.h: Ditto.
10839         * config/rs6000/linux64.h: Ditto.
10840         * config/s390/tpf.h: Ditto.
10841         * config/sol2-10.h: Ditto.
10842         * config/sol2.h: Ditto.
10843         * config/vms/vms.h: Ditto.
10844         * config/vxworks.h: Ditto.
10845         * config/linux-android.c (linux_android_libc_has_function):
10846         New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
10847         * config/linux-protos.h (linux_android_libc_has_function):
10848         New declaration.
10849         * config/i386/i386.c (ix86_libc_has_function): New.
10850         * config/i386/i386-protos.h
10851         (ix86_libc_has_function): New declaration.
10852         * config/i386/i386.md
10853         ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
10854         ("isinf<mode>2): Likewise.
10855         * convert.c (convert_to_integer): Using new target hook
10856         TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
10857         TARGET_C99_FUNCTIONS.
10858         * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
10859         * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
10860         * coretypes.h (function_class): New enum for different
10861         classes of functions.
10862         * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
10863         * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
10864         (TARGET_HAS_SINCOS): Likewise.
10865         (TARGET_LIBC_HAS_FUNCTION): New.
10866         * doc/tm.texi: Regenerated.
10867         * targhooks.h (default_libc_has_function): New declaration.
10868         (no_c99_libc_has_function): Ditto.
10869         (gnu_libc_has_function): Ditto.
10870         * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
10871         and TARGET_HAS_SINCOS.
10873 2013-08-18  Jan Hubicka  <jh@suse.cz>
10875         * Makeifle-in (ipa-devirt.o): New.
10876         (GTFILES): Add ipa-utils.h and ipa-devirt.c
10877         * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
10878         (analyze_functions): Look into possible targets of polymorphic call.
10879         * dumpfile.c (dump_files): Add type-inheritance dump.
10880         * dumpfile.h (TDI_inheritance): New.
10881         * ipa-devirt.c: New file.
10882         * ipa-utils.h (odr_type_d): Forward declare.
10883         (odr_type): New type.
10884         (build_type_inheritance_graph): Declare.
10885         (possible_polymorphic_call_targets): Declare and introduce inline
10886         variant when only edge is pased.
10887         (dump_possible_polymorphic_call_targets): Likewise.
10888         * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
10889         * tree.c (type_in_anonymous_namespace_p): Break out from ...
10890         (types_same_for_odr): ... here.
10891         * tree.h (type_in_anonymous_namespace_p): Declare.
10893 2013-08-18  Jakub Jelinek  <jakub@redhat.com>
10895         PR tree-optimization/58006
10896         * tree-parloops.c (take_address_of): Don't ICE if get_name
10897         returns NULL.
10898         (eliminate_local_variables_stmt): Remove clobber stmts.
10900 2013-08-18  Eric Botcazou  <ebotcazou@adacore.com>
10902         * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
10903         error message is issued for an alias to undefined symbol.
10905 2013-08-18  Jan Hubicka  <jh@suse.cz>
10907         * cgraph.c (cgraph_create_indirect_edge): Discover
10908         polymorphic calls and record basic info into indirect_info.
10909         * gimple-fold.c (gimple_fold_call): When doing BINFO based
10910         devirtualization, ignore objc function calls.
10911         * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
10912         call with no parm index info.
10913         * ipa-prop.c (ipa_analyze_call_uses): Likewise.
10914         * tree.c (virtual_method_call_p): New function.
10915         * tree.h (virtual_method_call_p): Declare.
10917 2013-08-16  Jan Hubicka  <jh@suse.cz>
10919         PR middle-end/58179
10920         * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
10922 2013-08-16  David Edelsohn  <dje.gcc@gmail.com>
10924         * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
10925         attribute.
10927 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
10929         * gengtype.c (type_for_name): Add special-case support for
10930         locating types within the "gcc::" namespace.
10931         (open_base_files): Emit a "using namespace gcc" directive.
10933 2013-08-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
10935         PR target/58160
10936         * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
10937         memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
10939         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
10940         array instead of each individual operand as a separate argument.
10941         (emit_fusion_gpr_load): Likewise.
10942         (expand_fusion_gpr_load): Add new function declaration.
10944         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
10945         signature to have the operands passed as an array, instead of as
10946         separate arguments.  Allow ZERO_EXTEND to be in the memory
10947         address, and also SIGN_EXTEND if -mpower8-fusion-sign.  Do not
10948         depend on the register live/dead flags when peepholes are run.
10949         (expand_fusion_gpr_load): New function to be called from the
10950         peephole2 pass, to change the register that addis sets to be the
10951         target register.
10952         (emit_fusion_gpr_load): Change the calling signature to have the
10953         operands passed as an array, instead of as separate arguments.
10954         Allow ZERO_EXTEND to be in the memory address, and also
10955         SIGN_EXTEND if -mpower8-fusion-sign.
10957         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
10958         unspec enumeration.
10959         (power8 fusion peephole/peephole2): Rework the fusion peepholes to
10960         adjust the register addis loads up in the peephole2 pass.  Do not
10961         depend on the register live/dead state when the peephole pass is done.
10963 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
10965         * gengtype.c (create_user_defined_type): Ensure that the kind
10966         is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
10967         declaration is seen before the GTY((user)) marking.
10969 2013-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10971         PR target/58105
10972         * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
10974 2013-08-16  Jan Hubicka  <jh@suse.cz>
10976         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
10977         arugment expected_type.
10978         (gimple_fold_call): Use it.
10979         * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
10980         * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
10981         * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
10982         (try_make_edge_direct_virtual_call): Likewise.
10983         * tree.c (obj_type_ref_class): New.
10984         * tree.h (obj_type_ref_class): Use it.
10986 2013-08-16  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10988         * sched-vis.c (rtl_slim_pp_initialized): Remove.
10989         (rtl_slim_pp): Likewise.
10990         (init_rtl_slim_pretty_print): Likewise.
10991         (dump_value_slim):  Don't call it.  Use local pretty printer.
10992         (dump_insn_slim): Likewise.
10993         (dump_rtl_slim): Likewise.
10994         (str_pattern_slim): Likewise.
10995         * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
10996         Simplify.
10998 2013-08-16  Jakub Jelinek  <jakub@redhat.com>
11000         PR tree-optimization/58164
11001         * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
11002         walk gimple_goto_dest of GIMPLE_GOTO.
11004         PR tree-optimization/58165
11005         * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
11006         bi_call must be the last stmt in a bb, don't split_block, instead
11007         use fallthru edge from it and give up if there is none.
11008         Release conds vector when returning early.
11010 2013-08-14  Xinliang David Li  <davidxl@google.com>
11012         * config/i386/i386.c (ix86_option_override_internal):
11013         Remove unused variable and field.
11015 2013-08-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11017         PR target/57949
11018         * doc/invoke.texi: Add documentation of mcompat-align-parm option.
11019         * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
11020         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
11021         and Linux, correct BLKmode alignment when 128-bit alignment is
11022         required and compatibility flag is not set.
11023         (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
11024         for zero-size arguments when compatibility flag is not set.
11026 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
11028         PR tree-optimization/58145
11029         * tree-sra.c (build_ref_for_offset): If prev_base has
11030         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
11032 2013-08-14  Xinliang David Li  <davidxl@google.com>
11034         * config/i386/i386.c (ix86_option_override_internal):
11035         Fix uninitialized variable error.
11037 2013-08-14  Xinliang David Li  <davidxl@google.com>
11039         * config/i386/i386.opt: Define two new options.
11040         * config/i386/x86-tune.def: Add arch selector field in macros.
11041         * config/i386/i386.h: Adjust macro definition.
11042         * config/i386/i386.c (ix86_option_override_internal):
11043         Refactor the code.
11044         (parse_mtune_ctrl_str): New function.
11045         (set_ix86_tune_features): New function.
11046         (ix86_function_specific_restore): Call the new helper function.
11048 2013-08-14  Andrey Belevantsev  <abel@ispras.ru>
11050         PR rtl-optimization/57662
11051         * sel-sched.c (code_motion_process_successors): When the current insn
11052         is removed after the recursive traversal, break from the loop.
11053         Add comments and debug printouts.
11055 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
11056             Alexandre Oliva  <aoliva@redhat.com>
11058         PR target/58067
11059         * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
11060         and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
11061         there also UNSPEC_PLTOFF.
11063 2013-08-14  Marek Polacek  <polacek@redhat.com>
11065         * ipa-inline-analysis.c (add_clause): Avoid shifting integer
11066         NUM_CONDITIONS bit positions.
11068 2013-08-13  Cary Coutant  <ccoutant@google.com>
11070         * dwarf2out.c (CHECKSUM_BLOCK): New macro.
11071         (attr_checksum): Hash vector contents instead of pointer.
11072         (attr_checksum_ordered): Likewise.
11074 2013-08-13  Uros Bizjak  <ubizjak@gmail.com>
11076         * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
11077         when Pmode != word_mode.  Add length_address attribute.
11078         (sse3_monitor_<mode>): Merge from sse3_monitor and
11079         sse3_monitor64_<mode> insn patterns.  Emit addr32 prefix when
11080         Pmode != word_mode.  Update insn length attribute.
11081         * config/i386/i386.c (ix86_option_override_internal): Update
11082         ix86_gen_monitor selection for merged sse3_monitor insn.
11084 2013-08-13  Julian Brown  <julian@codesourcery.com>
11086         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11087         perform invalid legitimization on greater-than-word-size modes for
11088         TARGET_E500_DOUBLE.
11090 2013-08-13  Vladimir Makarov  <vmakarov@redhat.com>
11092         * ira.c (setup_class_translate_array): Use aclass instead of cl
11093         for classes not fully covered by allocno classes.
11095 2013-08-13  Jakub Jelinek  <jakub@redhat.com>
11097         PR tree-optimization/57661
11098         * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
11099         * tree-inline.c (tree_function_versioning): Initialize it.
11100         (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
11101         if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
11102         that is not being copied.
11104         PR sanitizer/56417
11105         * asan.c (instrument_strlen_call): Fix typo in comment.
11106         Use char * type even for the lhs of POINTER_PLUS_EXPR.
11108 2013-08-13  Steve Ellcey  <sellcey@mips.com>
11110         * config/mips/mips.md (prefetch): Use lw instead of ld on
11111         loongson in 32bit mode.
11113 2013-08-13  Nick Clifton  <nickc@redhat.com>
11115         * config.gcc: (avr-linux): Allow for tmake_file not being empty.
11117 2013-08-13  Jan Hubicka  <jh@suse.cz>
11119         * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
11120         introduced edge; fix typo in sanity check.
11121         (cgraph_resolve_speculation): Export; improve diagnostic.
11122         (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
11123         speculation at type mismatch.
11124         * cgraph.h (cgraph_turn_edge_to_speculative): Update.
11125         (cgraph_resolve_speculation): Declare.
11126         (symtab_can_be_discarded): New function.
11127         * value-prof.c (gimple_ic_transform): Remove actual transform code.
11128         * ipa-inline-transform.c (speculation_removed): New global var.
11129         (clone_inlined_nodes): See if speculation can be removed.
11130         (inline_call): If speculations was removed, we growths may not match.
11131         * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
11132         (speculation_useful_p): New function.
11133         (resolve_noninline_speculation): New function.
11134         (inline_small_functions): Resolve useless speculations.
11135         * ipa-inline.h (speculation_useful_p): Declare
11136         * ipa.c (can_replace_by_local_alias): Simplify.
11137         (ipa_profile): Produce speculative calls in non-lto, too;
11138         add simple cost model; produce local aliases.
11140 2013-08-13  David Malcolm  <dmalcolm@redhat.com>
11142         * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
11143         PASS_MANAGER_H.
11145 2013-08-12  Paolo Carlini  <paolo.carlini@oracle.com>
11147         * config/i386/i386.c (ix86_function_versions): Use error + inform.
11149 2013-08-12  Uros Bizjak  <ubizjak@gmail.com>
11151         * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
11152         iterator instead of X87MODEF.
11154 2013-08-12  Perez Read  <netfirewall@gmail.com>
11156         PR target/58132
11157         * config/i386/i386.md (*movabs<mode>_1):  Add <ptrsize> PTR before
11158         operand 0 for intel asm alternative.
11159         (*movabs<mode>_2): Ditto for operand 1.
11161 2013-08-12  James Greenhalgh  <james.greenhalgh@arm.com>
11163         * config/aarch64/arm_none.h
11164         (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
11166 2013-08-12  Nick Clifton  <nickc@redhat.com>
11168         * config.gcc (m32r-linux): Allow for tmake_file not being empty.
11170 2013-08-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
11172         * config/i386/i386.md (floatunssi<mode>2 expand): Add new
11173         expand for QI/HImode operand to produce more effictive code for
11174         unsigned char(short) --> float(double) conversion.
11176 2013-08-12  Alexander Monakov  <amonakov@ispras.ru>
11178         * doc/invoke.texi: Mention that -ftls-model does not force the final
11179         model.
11181 2013-08-12  Marek Polacek  <polacek@redhat.com>
11182             Marc Glisse  <marc.glisse@inria.fr>
11184         PR tree-optimization/57980
11185         * tree-tailcall.c (process_assignment): Call build_minus_one_cst
11186         when creating -1 constant.
11188 2013-08-10  Jan Hubicka  <jh@suse.cz>
11190         Workaround binutils PR14342.
11191         * tree-profile.c (init_ic_make_global_vars): Add LTO path.
11192         (gimple_init_edge_profiler): Likewise.
11193         (gimple_gen_ic_func_profiler): Likewise.
11195 2013-08-09  Jan Hubicka  <jh@suse.cz>
11197         * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
11199 2013-08-09  Xinliang David Li  <davidxl@google.com>
11201         * config/i386/stringop.def: New file.
11202         * config/i386/stringop.opt: New file.
11203         * config/i386/i386-opts.h: Include stringopt.def.
11204         * config/i386/i386.opt: Include stringopt.opt.
11205         * config/i386/i386.c (ix86_option_override_internal):
11206         Override default size based stringop inline strategies with options.
11207         * config/i386/i386.c (ix86_parse_stringop_strategy_string):
11208         New function.
11210 2013-08-09  Jan Hubicka  <jh@suse.cz>
11212         * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
11214 2013-08-09  Jan Hubicka  <jh@suse.cz>
11216         * cgraph.c (cgraph_resolve_speculation): Cut frequency to
11217         CGRAPH_FREQ_MAX.
11218         (dump_cgraph_node): Dump profile-id.
11219         * cgraph.h (cgraph_indirect_call_info): Add common_target_id
11220         and common_target_probability.
11221         * lto-cgraph.c (lto_output_edge): Stream common targets.
11222         (lto_output_node): Stream profile ids.
11223         (input_node): Stream profile ids.
11224         (input_edge): Stream common targets.
11225         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
11226         * ipa.c: Include value-prof.h
11227         (ipa_profile_generate_summary): Turn indirect call statement histograms
11228         into common targets.
11229         (ipa_profile): Turn common targets into speculative edges.
11231 2013-08-09  Jan Hubicka  <jh@suse.cz>
11233         * cgraph.h (cgraph_node): Add profile_id.
11234         * value-prof.c (cgraph_node_map): Turn into pointer_map.
11235         (init_node_map): Rewrite to handle hashes increas of incremental IDs.
11236         (del_node_map): Update.
11237         (find_func_by_funcdef_no): Replace by ...
11238         (find_func_by_profile_id): ... this one.
11239         (gimple_ic_transform): Do not remove useful histograms when
11240         speculation is not done; dump info when indirect call removal
11241         can happen at LTO.
11242         * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
11243         * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
11244         (__gcov_indirect_call_profiler_v2): .. this one.
11245         * profile.h (init_node_map): Update.
11246         * coverage.c (coverage_compute_profile_id): New function.
11247         * coverage.h (coverage_compute_profile_id): Declare.
11248         * tree-profile.c (init_ic_make_global_vars): Make
11249         __gcov_indirect_call_callee and  __gcov_indirect_call_counters global.
11250         (gimple_init_edge_profiler): Update prototype of
11251         __gcov_indirect_call_profiler.
11252         (gimple_gen_ic_func_profiler): Simplify.
11253         (tree_profiling): Use init_node_map
11255 2013-08-09  Jan Hubicka  <jh@suse.cz>
11257         * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
11258         non-speculative refs.
11259         * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
11260         (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
11261         (cgraph_set_call_stmt): Likewise.
11262         (cgraph_create_edge_1): Fix release checking compilatoin;
11263         clear lto_stmt_uid.
11264         (cgraph_free_edge): Free indirect info.
11265         (cgraph_turn_edge_to_speculative): New function.
11266         (cgraph_speculative_call_info): New function.
11267         (cgraph_make_edge_direct): Return direct edge; handle speculation.
11268         (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
11269         (dump_cgraph_node): Dump speculation.
11270         (verify_edge_count_and_frequency): Accept speculative edges.
11271         (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
11272         (verify_cgraph_node): Handle speculation.
11273         * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
11274         (cgraph_set_call_stmt): Update prototype.
11275         (cgraph_make_edge_direct): Update prototype.
11276         (cgraph_speculative_call_info): Declare.
11277         * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
11278         to change; update call of ipa_find_references.
11279         * ipa-ref.c (ipa_record_reference): Fix return value; clear
11280         lto_stmt_uid and speculative flags.
11281         (ipa_dump_references): Dump speculation.
11282         (ipa_clone_references): Clone speculative flag.
11283         (ipa_clone_referring): Likewise.
11284         (ipa_clone_ref): New function.
11285         (ipa_find_reference): Look into lto_stmt_uids
11286         (ipa_clear_stmts_in_references): Do not clear speculative calls.
11287         * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
11288         (ipa_find_reference): Update declaration.
11289         (ipa_clone_ref): Declare.
11290         * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
11291         stream speculative flag.
11292         (lto_output_ref): Stream statements uids and speculation.
11293         (input_ref): Likewise.
11294         (input_edge): Stream speuclation.
11295         * cgraphclones.c (cgraph_clone_edge): Clone speculation.
11296         (cgraph_set_call_stmt_including_clones): Handle speculation.
11297         * ipa-inline.c (heap_edge_removal_hook): New function.
11298         (inline_small_functions): Register it.
11299         * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
11300         also initialize refs.
11301         * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
11302         edge to change.
11303         (try_make_edge_direct_simple_call): Likewise.
11304         (try_make_edge_direct_simple_call): Likewise.
11305         (update_indirect_edges_after_inlining): Likewise.
11306         (remove_described_reference): Look proper lto_stmt_uid.
11307         (propagate_controlled_uses): Likewise.
11308         (propagate_controlled_uses): Liekwise.
11309         * tree-inline.c (copy_bb): Copy speculative edges.
11310         (redirect_all_calls): New function.
11311         (copy_cfg_body): Do redirection after loop info is updated.
11312         (delete_unreachable_blocks_update_callgraph): Updadte speculation.
11314 2013-08-09  Jan Hubicka  <jh@suse.cz>
11316         * lto-streamer-out.c (output_function): Renumber PHIs.
11317         * lto-streamer-in.c (input_function): Likewise.
11319 2013-08-09  James Greenhalgh  <james.greenhalgh@arm.com>
11321         * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
11322         (get_lane_unsigned): Likewise.
11323         (dup_lane_scalar): Likewise.
11324         (get_lane): enable for VALL.
11325         * config/aarch64/aarch64-simd.md
11326         (aarch64_dup_lane_scalar<mode>): Remove.
11327         (aarch64_get_lane_signed<mode>): Likewise.
11328         (aarch64_get_lane_unsigned<mode>): Likewise.
11329         (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
11330         (aarch64_get_lane_zero_extendsi<mode>): Likewise.
11331         (aarch64_get_lane<mode>): Enable for all vector modes.
11332         (aarch64_get_lanedi): Remove misleading constraints.
11333         * config/aarch64/arm_neon.h
11334         (__aarch64_vget_lane_any): Define.
11335         (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
11336         (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
11337         (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
11338         * config/aarch64/iterators.md (VDQQH): New.
11339         (VDQQHS): Likewise.
11340         (vwcore): Likewise.
11342 2013-08-09  Eric Botcazou  <ebotcazou@adacore.com>
11344         * configure.ac: Add GAS check for LEON instructions on SPARC.
11345         * configure: Regenerate.
11346         * config.in: Likewise.
11347         * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
11348         sparc*-*-* block.
11349         * config/sparc/sparc.opt (LEON, LEON3): New masks.
11350         * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
11351         for LEON or LEON3.
11352         (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
11353         (AS_LEON_FLAG): New macro.
11354         * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
11355         and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
11356         Deal with LEON and LEON3 for the memory model.
11357         * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
11358         (atomic_compare_and_swap<mode>_1): Likewise.
11359         (*atomic_compare_and_swap<mode>_1): Likewise.
11361 2013-08-09  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
11363         * config/arm/neon.md (vcond): Fix floating-point vector
11364         comparisons against 0.
11366 2013-08-08  Vladimir Makarov  <vmakarov@redhat.com>
11368         * lra-constraints.c (emit_spill_move): Remove assert.
11369         (process_alt_operands): Add more debugging
11370         output.  Increase reject for spilling into memory.  Decrease
11371         reject for reloading scratch.
11372         (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
11374 2013-08-08  Steve Ellcey  <sellcey@mips.com>
11376         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
11377         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
11378         micromips incompatible.  Add nan2008.
11379         (MULTILIB_DIRNAMES): Add nan2008.
11380         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
11381         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
11382         and micromips incompatible.  Add nan2008.
11383         (MULTILIB_DIRNAMES): Add nan2008.
11384         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
11386 2013-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
11388         PR rtl-optimization/58079
11389         * combine.c (combine_simplify_rtx): Avoid using SUBST if
11390         simplify_comparison has widened a comparison with an integer.
11392 2013-08-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11394         * config/arm/neon.md (movmisalign<mode>): Disable when we
11395         don't allow unaligned accesses.
11396         (*movmisalign<mode>_neon_store): Likewise.
11397         (*movmisalign<mode>_neon_load): Likewise.
11398         (*movmisalign<mode>_neon_store): Likewise.
11399         (*movmisalign<mode>_neon_load): Likewise.
11401 2013-08-08  Jan Hubicka  <jh@suse.cz>
11403         * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
11404         (make_pass_rebuild_cgraph_edges): Also clear references.
11405         * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
11406         * ipa-inline-transform.c (inline_transform): Remove all references
11407         after inlining.
11408         * cgraphunit.c (expand_function): Remove all references after
11409         expansion.
11410         * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
11411         (ipa_find_reference): Rewrite to iterator.
11412         (remove_stmt_references): Likewise.
11413         (ipa_clear_stmts_in_references): New function.
11414         * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
11415         * cgraphclones.c (cgraph_materialize_all_clones): Remove or
11416         clear references.
11417         * ipa-split.c (split_function): Remove references in split function.
11419 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
11421         PR target/57431
11422         * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
11423         (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
11425 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
11427         PR target/56979
11428         * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
11429         suggested mode for the assignment isn't compatible with the
11430         registers required.
11432 2013-08-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11434         PR target/58065
11435         * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
11437 2013-08-07  Xinliang David Li  <davidxl@google.com>
11439         * config/i386/i386.opt: New option -mtune-ctrl=.
11440         * config/i386/x86-tune.def: New file.
11441         * config/i386/i386.h: include x86-tune.def.
11442         * config/i386/i386.c (ix86_option_override_internal):
11443         Parsing -mtune-ctrl= option and set tune features.
11445 2013-08-07  Oleg Endo  <olegendo@gcc.gnu.org>
11447         PR other/12081
11448         * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
11449         (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
11450         to gen_2arg_fn_t.
11452 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
11454         * rtl.h (update_alignments): Declare.
11455         * final.c (grow_label_align): New function extracted from...
11456         (shorten_branches): ...here.  Call it.
11457         (update_alignments): New function.
11458         * reorg.c (sibling_labels): New variable.
11459         (get_label_before): Add SIBLING parameter.  If it is non-zero, push
11460         the new label along with it onto the sibling_labels vector.
11461         (fill_simple_delay_slots): Adjust call to get_label_before.
11462         (fill_slots_from_thread): Likewise.
11463         (relax_delay_slots): Likewise.
11464         (make_return_insns): Likewise.
11465         (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
11467 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
11469         * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
11470         document its semantics.
11471         (diagnostic_report_diagnostic): Adjust accordingly.
11473 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
11475         * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
11476         (sparc_option_override): ...and port to new C++ pass API.
11477         * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
11479 2013-08-07  Peter Bergner  <bergner@vnet.ibm.com>
11481         * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
11483 2013-08-06  Caroline Tice  <cmtice@google.com>
11485         * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
11486         (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
11487         * tree-pass.h: Add pass_vtable_verify.
11488         * varasm.c (assemble_variable): Add code to properly set the comdat
11489         section and name for the .vtable_map_vars section.
11490         (assemble_vtyv_preinit_initializer): New function.
11491         (default_sectin_type_flags):  Make sure .vtable_map_vars section has
11492         LINK_ONCE flag.
11493         * output.h: Add function decl for assemble_vtv_preinit_initializer.
11494         * vtable-verify.c: New file.
11495         * vtable-verify.h: New file.
11496         * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
11497         initialiation levels.
11498         * timevar.def (TV_VTABLE_VERIFICATION): New definition.
11499         * passes.def: Insert pass_vtable_verify.
11500         * aclocal.m4: Reorder includes.
11501         * doc/invoke.texi:  Document the -fvtable-verify=, -fvtv-debug, and
11502         -fvtv-counts options.
11503         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
11504         as appropriate, if -fvtable-verify=... is used.
11505         (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
11506         -fvtable-verify=... is used.
11507         * Makefile.in (OBJS):  Add vtable-verify.o to list.
11508         (vtable-verify.o): Add new build rule.
11509         (GTFILES): Add vtable-verify.c to list.
11510         * common.opt (fvtable-verify=): New flag.
11511         (vtv_priority): Values for fvtable-verify= flag.
11512         (fvtv-counts): New flag.
11513         (fvtv-debug): New flag.
11514         * tree.h (save_vtable_map_decl): New extern function decl.
11516 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
11518         * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
11519         (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
11520         (pass_data_rl78_devirt): ...new pass_data instance and...
11521         (make_pass_rl78_devirt): ...new function.
11522         (rl78_asm_file_start): Port pass registration to new C++ API.
11524 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
11526         * coretypes.h (rtl_opt_pass): Add.
11527         (gcc::context): Add.
11528         * config/epiphany/epiphany.c (pass_mode_switch_use): New.
11529         (epiphany_init): Port to new C++ pass API.
11530         (epiphany_optimize_mode_switching): Likewise.
11531         * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
11532         (pass_manager::get_pass_mode_switching): New.
11533         (pass_manager::get_pass_peephole2): New.
11534         * mode-switching.c (pass_mode_switching): Add clone method.
11535         * recog.c (pass_peephole2): Add clone method.
11536         (pass_split_all_insns): Add clone method.
11538 2013-08-06  David Malcolm  <dmalcolm@redhat.com>
11540         * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
11541         (mips_option_override): ...here, porting to new C++ API for passes.
11543 2013-08-06  Jan Hubicka  <jh@suse.cz>
11545         * cgraph.c (cgraph_get_body): New function based on lto.c
11546         implementation.
11547         * cgraph.h (cgraph_get_body): Declare.
11548         * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
11549         LTO paths.
11550         * cgraphunit.c (expand_function): Get body prior expanding.
11551         * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
11552         * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
11553         really need.
11554         * passes.c (do_per_function_toporder): Get body.
11555         * tree-inline.c (expand_call_inline): Get body prior inlining it.
11556         * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
11558 2013-08-06  Martin Jambor  <mjambor@suse.cz>
11560         PR fortran/57987
11561         * cgraphunit.c (cgraph_finalize_function): Assert that nested function
11562         is not re-finalized.  Rename second parameter to no_collect.
11564 2013-08-06  Martin Jambor  <mjambor@suse.cz>
11566         PR middle-end/58041
11567         * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
11568         MEM_REF has proper alignment information.
11570 2013-08-05  Oleg Endo  <olegendo@gcc.gnu.org>
11572         PR other/12081
11573         * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
11574         class insn_gen_fn.
11575         * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
11576         rtx (*) (rtx, ...) with insn_gen_fn.
11577         * genoutput.c (output_insn_data): Cast gen_? function pointers to
11578         insn_gen_fn::stored_funcptr.  Add initializer braces.
11580 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
11582         Rewrite how instances of passes are cloned to remove assumptions
11583         about their sizes (thus allowing pass subclasses to have
11584         additional data fields, albeit non-GC-managed ones at this point).
11586         * passes.c (make_pass_instance): Now that passes have clone
11587         methods, rewrite this function to eliminate XNEW and memcpy
11588         calls that used hardcoded sizes.  Since this function no longer
11589         creates pass instances, rename it to...
11590         (add_pass_instance): ...this.  Document the old way that passes were
11591         numbered and flagged, and rework this function to continue using it.
11592         (next_pass_1): Add an initial_pass argument for use by
11593         add_pass_instance.
11594         (position_pass): When adding multiple instances of a pass, use
11595         the pass's clone method, rather than relying on the XNEW/memcpy
11596         within the former make_pass_instance (now add_pass_instance).
11597         (pass_manager::pass_manager): When invoking next_pass_1, also supply
11598         the initial instance of the current pass within the pass manager.
11600 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
11602         This is the automated part of the conversion of passes from C
11603         structs to C++ classes.
11605         Patch autogenerated by refactor_passes.py from
11606         https://github.com/davidmalcolm/gcc-refactoring-scripts
11607         revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
11609         * asan.c (pass_asan): Convert from a global struct to a subclass of
11610         gimple_opt_pass along with...
11611         (pass_data_asan): ...new pass_data instance and...
11612         (make_pass_asan): ...new function.
11613         (pass_asan_O0): Convert from a global struct to a subclass of
11614         gimple_opt_pass along with...
11615         (pass_data_asan_O0): ...new pass_data instance and...
11616         (make_pass_asan_O0): ...new function.
11617         * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
11618         subclass of rtl_opt_pass along with...
11619         (pass_data_inc_dec): ...new pass_data instance and...
11620         (make_pass_inc_dec): ...new function.
11621         * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
11622         a subclass of rtl_opt_pass along with...
11623         (pass_data_reorder_blocks): ...new pass_data instance and...
11624         (make_pass_reorder_blocks): ...new function.
11625         (pass_duplicate_computed_gotos): Convert from a global struct to a
11626         subclass of rtl_opt_pass along with...
11627         (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
11628         (make_pass_duplicate_computed_gotos): ...new function.
11629         (pass_partition_blocks): Convert from a global struct to a subclass of
11630         rtl_opt_pass along with...
11631         (pass_data_partition_blocks): ...new pass_data instance and...
11632         (make_pass_partition_blocks): ...new function.
11633         * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
11634         struct to a subclass of rtl_opt_pass along with...
11635         (pass_data_branch_target_load_optimize1): ...new pass_data instance
11636         and...
11637         (make_pass_branch_target_load_optimize1): ...new function.
11638         (pass_branch_target_load_optimize2): Convert from a global struct to a
11639         subclass of rtl_opt_pass along with...
11640         (pass_data_branch_target_load_optimize2): ...new pass_data instance
11641         and...
11642         (make_pass_branch_target_load_optimize2): ...new function.
11643         * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
11644         of rtl_opt_pass along with...
11645         (pass_data_jump): ...new pass_data instance and...
11646         (make_pass_jump): ...new function.
11647         (pass_jump2): Convert from a global struct to a subclass of
11648         rtl_opt_pass along with...
11649         (pass_data_jump2): ...new pass_data instance and...
11650         (make_pass_jump2): ...new function.
11651         * cfgexpand.c (pass_expand): Convert from a global struct to a
11652         subclass of rtl_opt_pass along with...
11653         (pass_data_expand): ...new pass_data instance and...
11654         (make_pass_expand): ...new function.
11655         * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
11656         of rtl_opt_pass along with...
11657         (pass_data_free_cfg): ...new pass_data instance and...
11658         (make_pass_free_cfg): ...new function.
11659         (pass_into_cfg_layout_mode): Convert from a global struct to a
11660         subclass of rtl_opt_pass along with...
11661         (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
11662         (make_pass_into_cfg_layout_mode): ...new function.
11663         (pass_outof_cfg_layout_mode): Convert from a global struct to a
11664         subclass of rtl_opt_pass along with...
11665         (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
11666         (make_pass_outof_cfg_layout_mode): ...new function.
11667         * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
11668         struct to a subclass of gimple_opt_pass along with...
11669         (pass_data_build_cgraph_edges): ...new pass_data instance and...
11670         (make_pass_build_cgraph_edges): ...new function.
11671         (pass_rebuild_cgraph_edges): Convert from a global struct to a
11672         subclass of gimple_opt_pass along with...
11673         (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
11674         (make_pass_rebuild_cgraph_edges): ...new function.
11675         (pass_remove_cgraph_callee_edges): Convert from a global struct to a
11676         subclass of gimple_opt_pass along with...
11677         (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
11678         and...
11679         (make_pass_remove_cgraph_callee_edges): ...new function.
11680         * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
11681         struct to a subclass of rtl_opt_pass along with...
11682         (pass_data_stack_adjustments): ...new pass_data instance and...
11683         (make_pass_stack_adjustments): ...new function.
11684         * combine.c (pass_combine): Convert from a global struct to a subclass
11685         of rtl_opt_pass along with...
11686         (pass_data_combine): ...new pass_data instance and...
11687         (make_pass_combine): ...new function.
11688         * compare-elim.c (pass_compare_elim_after_reload): Convert from a
11689         global struct to a subclass of rtl_opt_pass along with...
11690         (pass_data_compare_elim_after_reload): ...new pass_data instance
11691         and...
11692         (make_pass_compare_elim_after_reload): ...new function.
11693         * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
11694         of rtl_opt_pass along with...
11695         (pass_data_rtl_cprop): ...new pass_data instance and...
11696         (make_pass_rtl_cprop): ...new function.
11697         * cse.c (pass_cse): Convert from a global struct to a subclass of
11698         rtl_opt_pass along with...
11699         (pass_data_cse): ...new pass_data instance and...
11700         (make_pass_cse): ...new function.
11701         (pass_cse2): Convert from a global struct to a subclass of
11702         rtl_opt_pass along with...
11703         (pass_data_cse2): ...new pass_data instance and...
11704         (make_pass_cse2): ...new function.
11705         (pass_cse_after_global_opts): Convert from a global struct to a
11706         subclass of rtl_opt_pass along with...
11707         (pass_data_cse_after_global_opts): ...new pass_data instance and...
11708         (make_pass_cse_after_global_opts): ...new function.
11709         * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
11710         of rtl_opt_pass along with...
11711         (pass_data_ud_rtl_dce): ...new pass_data instance and...
11712         (make_pass_ud_rtl_dce): ...new function.
11713         (pass_fast_rtl_dce): Convert from a global struct to a subclass of
11714         rtl_opt_pass along with...
11715         (pass_data_fast_rtl_dce): ...new pass_data instance and...
11716         (make_pass_fast_rtl_dce): ...new function.
11717         * df-core.c (pass_df_initialize_opt): Convert from a global struct to
11718         a subclass of rtl_opt_pass along with...
11719         (pass_data_df_initialize_opt): ...new pass_data instance and...
11720         (make_pass_df_initialize_opt): ...new function.
11721         (pass_df_initialize_no_opt): Convert from a global struct to a
11722         subclass of rtl_opt_pass along with...
11723         (pass_data_df_initialize_no_opt): ...new pass_data instance and...
11724         (make_pass_df_initialize_no_opt): ...new function.
11725         (pass_df_finish): Convert from a global struct to a subclass of
11726         rtl_opt_pass along with...
11727         (pass_data_df_finish): ...new pass_data instance and...
11728         (make_pass_df_finish): ...new function.
11729         * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
11730         rtl_opt_pass along with...
11731         (pass_data_rtl_dse1): ...new pass_data instance and...
11732         (make_pass_rtl_dse1): ...new function.
11733         (pass_rtl_dse2): Convert from a global struct to a subclass of
11734         rtl_opt_pass along with...
11735         (pass_data_rtl_dse2): ...new pass_data instance and...
11736         (make_pass_rtl_dse2): ...new function.
11737         * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
11738         subclass of rtl_opt_pass along with...
11739         (pass_data_dwarf2_frame): ...new pass_data instance and...
11740         (make_pass_dwarf2_frame): ...new function.
11741         * except.c (pass_set_nothrow_function_flags): Convert from a global
11742         struct to a subclass of rtl_opt_pass along with...
11743         (pass_data_set_nothrow_function_flags): ...new pass_data instance
11744         and...
11745         (make_pass_set_nothrow_function_flags): ...new function.
11746         (pass_convert_to_eh_region_ranges): Convert from a global struct to a
11747         subclass of rtl_opt_pass along with...
11748         (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
11749         and...
11750         (make_pass_convert_to_eh_region_ranges): ...new function.
11751         * final.c (pass_compute_alignments): Convert from a global struct to a
11752         subclass of rtl_opt_pass along with...
11753         (pass_data_compute_alignments): ...new pass_data instance and...
11754         (make_pass_compute_alignments): ...new function.
11755         (pass_final): Convert from a global struct to a subclass of
11756         rtl_opt_pass along with...
11757         (pass_data_final): ...new pass_data instance and...
11758         (make_pass_final): ...new function.
11759         (pass_shorten_branches): Convert from a global struct to a subclass of
11760         rtl_opt_pass along with...
11761         (pass_data_shorten_branches): ...new pass_data instance and...
11762         (make_pass_shorten_branches): ...new function.
11763         (pass_clean_state): Convert from a global struct to a subclass of
11764         rtl_opt_pass along with...
11765         (pass_data_clean_state): ...new pass_data instance and...
11766         (make_pass_clean_state): ...new function.
11767         * function.c (pass_instantiate_virtual_regs): Convert from a global
11768         struct to a subclass of rtl_opt_pass along with...
11769         (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
11770         (make_pass_instantiate_virtual_regs): ...new function.
11771         (pass_leaf_regs): Convert from a global struct to a subclass of
11772         rtl_opt_pass along with...
11773         (pass_data_leaf_regs): ...new pass_data instance and...
11774         (make_pass_leaf_regs): ...new function.
11775         (pass_thread_prologue_and_epilogue): Convert from a global struct to a
11776         subclass of rtl_opt_pass along with...
11777         (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
11778         and...
11779         (make_pass_thread_prologue_and_epilogue): ...new function.
11780         (pass_match_asm_constraints): Convert from a global struct to a
11781         subclass of rtl_opt_pass along with...
11782         (pass_data_match_asm_constraints): ...new pass_data instance and...
11783         (make_pass_match_asm_constraints): ...new function.
11784         * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
11785         subclass of rtl_opt_pass along with...
11786         (pass_data_rtl_fwprop): ...new pass_data instance and...
11787         (make_pass_rtl_fwprop): ...new function.
11788         (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
11789         rtl_opt_pass along with...
11790         (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
11791         (make_pass_rtl_fwprop_addr): ...new function.
11792         * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
11793         rtl_opt_pass along with...
11794         (pass_data_rtl_pre): ...new pass_data instance and...
11795         (make_pass_rtl_pre): ...new function.
11796         (pass_rtl_hoist): Convert from a global struct to a subclass of
11797         rtl_opt_pass along with...
11798         (pass_data_rtl_hoist): ...new pass_data instance and...
11799         (make_pass_rtl_hoist): ...new function.
11800         * gimple-low.c (pass_lower_cf): Convert from a global struct to a
11801         subclass of gimple_opt_pass along with...
11802         (pass_data_lower_cf): ...new pass_data instance and...
11803         (make_pass_lower_cf): ...new function.
11804         * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
11805         from a global struct to a subclass of gimple_opt_pass along with...
11806         (pass_data_strength_reduction): ...new pass_data instance and...
11807         (make_pass_strength_reduction): ...new function.
11808         * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
11809         of rtl_opt_pass along with...
11810         (pass_data_rtl_ifcvt): ...new pass_data instance and...
11811         (make_pass_rtl_ifcvt): ...new function.
11812         (pass_if_after_combine): Convert from a global struct to a subclass of
11813         rtl_opt_pass along with...
11814         (pass_data_if_after_combine): ...new pass_data instance and...
11815         (make_pass_if_after_combine): ...new function.
11816         (pass_if_after_reload): Convert from a global struct to a subclass of
11817         rtl_opt_pass along with...
11818         (pass_data_if_after_reload): ...new pass_data instance and...
11819         (make_pass_if_after_reload): ...new function.
11820         * init-regs.c (pass_initialize_regs): Convert from a global struct to
11821         a subclass of rtl_opt_pass along with...
11822         (pass_data_initialize_regs): ...new pass_data instance and...
11823         (make_pass_initialize_regs): ...new function.
11824         * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
11825         of ipa_opt_pass_d along with...
11826         (pass_data_ipa_cp): ...new pass_data instance and...
11827         (make_pass_ipa_cp): ...new function.
11828         * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
11829         global struct to a subclass of gimple_opt_pass along with...
11830         (pass_data_inline_parameters): ...new pass_data instance and...
11831         (make_pass_inline_parameters): ...new function.
11832         * ipa-inline.c (pass_early_inline): Convert from a global struct to a
11833         subclass of gimple_opt_pass along with...
11834         (pass_data_early_inline): ...new pass_data instance and...
11835         (make_pass_early_inline): ...new function.
11836         (pass_ipa_inline): Convert from a global struct to a subclass of
11837         ipa_opt_pass_d along with...
11838         (pass_data_ipa_inline): ...new pass_data instance and...
11839         (make_pass_ipa_inline): ...new function.
11840         * ipa-pure-const.c (pass_local_pure_const): Convert from a global
11841         struct to a subclass of gimple_opt_pass along with...
11842         (pass_data_local_pure_const): ...new pass_data instance and...
11843         (make_pass_local_pure_const): ...new function.
11844         (pass_ipa_pure_const): Convert from a global struct to a subclass of
11845         ipa_opt_pass_d along with...
11846         (pass_data_ipa_pure_const): ...new pass_data instance and...
11847         (make_pass_ipa_pure_const): ...new function.
11848         * ipa-reference.c (pass_ipa_reference): Convert from a global struct
11849         to a subclass of ipa_opt_pass_d along with...
11850         (pass_data_ipa_reference): ...new pass_data instance and...
11851         (make_pass_ipa_reference): ...new function.
11852         * ipa-split.c (pass_split_functions): Convert from a global struct to
11853         a subclass of gimple_opt_pass along with...
11854         (pass_data_split_functions): ...new pass_data instance and...
11855         (make_pass_split_functions): ...new function.
11856         (pass_feedback_split_functions): Convert from a global struct to a
11857         subclass of gimple_opt_pass along with...
11858         (pass_data_feedback_split_functions): ...new pass_data instance and...
11859         (make_pass_feedback_split_functions): ...new function.
11860         * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
11861         global struct to a subclass of simple_ipa_opt_pass along with...
11862         (pass_data_ipa_function_and_variable_visibility): ...new pass_data
11863         instance and...
11864         (make_pass_ipa_function_and_variable_visibility): ...new function.
11865         (pass_ipa_free_inline_summary): Convert from a global struct to a
11866         subclass of simple_ipa_opt_pass along with...
11867         (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
11868         (make_pass_ipa_free_inline_summary): ...new function.
11869         (pass_ipa_whole_program_visibility): Convert from a global struct to a
11870         subclass of ipa_opt_pass_d along with...
11871         (pass_data_ipa_whole_program_visibility): ...new pass_data instance
11872         and...
11873         (make_pass_ipa_whole_program_visibility): ...new function.
11874         (pass_ipa_profile): Convert from a global struct to a subclass of
11875         ipa_opt_pass_d along with...
11876         (pass_data_ipa_profile): ...new pass_data instance and...
11877         (make_pass_ipa_profile): ...new function.
11878         (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
11879         ipa_opt_pass_d along with...
11880         (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
11881         (make_pass_ipa_cdtor_merge): ...new function.
11882         * ira.c (pass_ira): Convert from a global struct to a subclass of
11883         rtl_opt_pass along with...
11884         (pass_data_ira): ...new pass_data instance and...
11885         (make_pass_ira): ...new function.
11886         (pass_reload): Convert from a global struct to a subclass of
11887         rtl_opt_pass along with...
11888         (pass_data_reload): ...new pass_data instance and...
11889         (make_pass_reload): ...new function.
11890         * jump.c (pass_cleanup_barriers): Convert from a global struct to a
11891         subclass of rtl_opt_pass along with...
11892         (pass_data_cleanup_barriers): ...new pass_data instance and...
11893         (make_pass_cleanup_barriers): ...new function.
11894         * loop-init.c (pass_loop2): Convert from a global struct to a subclass
11895         of rtl_opt_pass along with...
11896         (pass_data_loop2): ...new pass_data instance and...
11897         (make_pass_loop2): ...new function.
11898         (pass_rtl_loop_init): Convert from a global struct to a subclass of
11899         rtl_opt_pass along with...
11900         (pass_data_rtl_loop_init): ...new pass_data instance and...
11901         (make_pass_rtl_loop_init): ...new function.
11902         (pass_rtl_loop_done): Convert from a global struct to a subclass of
11903         rtl_opt_pass along with...
11904         (pass_data_rtl_loop_done): ...new pass_data instance and...
11905         (make_pass_rtl_loop_done): ...new function.
11906         (pass_rtl_move_loop_invariants): Convert from a global struct to a
11907         subclass of rtl_opt_pass along with...
11908         (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
11909         (make_pass_rtl_move_loop_invariants): ...new function.
11910         (pass_rtl_unswitch): Convert from a global struct to a subclass of
11911         rtl_opt_pass along with...
11912         (pass_data_rtl_unswitch): ...new pass_data instance and...
11913         (make_pass_rtl_unswitch): ...new function.
11914         (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
11915         subclass of rtl_opt_pass along with...
11916         (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
11917         and...
11918         (make_pass_rtl_unroll_and_peel_loops): ...new function.
11919         (pass_rtl_doloop): Convert from a global struct to a subclass of
11920         rtl_opt_pass along with...
11921         (pass_data_rtl_doloop): ...new pass_data instance and...
11922         (make_pass_rtl_doloop): ...new function.
11923         * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
11924         a subclass of rtl_opt_pass along with...
11925         (pass_data_lower_subreg): ...new pass_data instance and...
11926         (make_pass_lower_subreg): ...new function.
11927         (pass_lower_subreg2): Convert from a global struct to a subclass of
11928         rtl_opt_pass along with...
11929         (pass_data_lower_subreg2): ...new pass_data instance and...
11930         (make_pass_lower_subreg2): ...new function.
11931         * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
11932         struct to a subclass of ipa_opt_pass_d along with...
11933         (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
11934         (make_pass_ipa_lto_gimple_out): ...new function.
11935         (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
11936         of ipa_opt_pass_d along with...
11937         (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
11938         (make_pass_ipa_lto_finish_out): ...new function.
11939         * mode-switching.c (pass_mode_switching): Convert from a global struct
11940         to a subclass of rtl_opt_pass along with...
11941         (pass_data_mode_switching): ...new pass_data instance and...
11942         (make_pass_mode_switching): ...new function.
11943         * modulo-sched.c (pass_sms): Convert from a global struct to a
11944         subclass of rtl_opt_pass along with...
11945         (pass_data_sms): ...new pass_data instance and...
11946         (make_pass_sms): ...new function.
11947         * omp-low.c (pass_expand_omp): Convert from a global struct to a
11948         subclass of gimple_opt_pass along with...
11949         (pass_data_expand_omp): ...new pass_data instance and...
11950         (make_pass_expand_omp): ...new function.
11951         (pass_lower_omp): Convert from a global struct to a subclass of
11952         gimple_opt_pass along with...
11953         (pass_data_lower_omp): ...new pass_data instance and...
11954         (make_pass_lower_omp): ...new function.
11955         (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
11956         of gimple_opt_pass along with...
11957         (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
11958         (make_pass_diagnose_omp_blocks): ...new function.
11959         * passes.c (pass_early_local_passes): Convert from a global struct to
11960         a subclass of simple_ipa_opt_pass along with...
11961         (pass_data_early_local_passes): ...new pass_data instance and...
11962         (make_pass_early_local_passes): ...new function.
11963         (pass_all_early_optimizations): Convert from a global struct to a
11964         subclass of gimple_opt_pass along with...
11965         (pass_data_all_early_optimizations): ...new pass_data instance and...
11966         (make_pass_all_early_optimizations): ...new function.
11967         (pass_all_optimizations): Convert from a global struct to a subclass
11968         of gimple_opt_pass along with...
11969         (pass_data_all_optimizations): ...new pass_data instance and...
11970         (make_pass_all_optimizations): ...new function.
11971         (pass_all_optimizations_g): Convert from a global struct to a subclass
11972         of gimple_opt_pass along with...
11973         (pass_data_all_optimizations_g): ...new pass_data instance and...
11974         (make_pass_all_optimizations_g): ...new function.
11975         (pass_rest_of_compilation): Convert from a global struct to a subclass
11976         of rtl_opt_pass along with...
11977         (pass_data_rest_of_compilation): ...new pass_data instance and...
11978         (make_pass_rest_of_compilation): ...new function.
11979         (pass_postreload): Convert from a global struct to a subclass of
11980         rtl_opt_pass along with...
11981         (pass_data_postreload): ...new pass_data instance and...
11982         (make_pass_postreload): ...new function.
11983         * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
11984         subclass of rtl_opt_pass along with...
11985         (pass_data_gcse2): ...new pass_data instance and...
11986         (make_pass_gcse2): ...new function.
11987         * postreload.c (pass_postreload_cse): Convert from a global struct to
11988         a subclass of rtl_opt_pass along with...
11989         (pass_data_postreload_cse): ...new pass_data instance and...
11990         (make_pass_postreload_cse): ...new function.
11991         * predict.c (pass_profile): Convert from a global struct to a subclass
11992         of gimple_opt_pass along with...
11993         (pass_data_profile): ...new pass_data instance and...
11994         (make_pass_profile): ...new function.
11995         (pass_strip_predict_hints): Convert from a global struct to a subclass
11996         of gimple_opt_pass along with...
11997         (pass_data_strip_predict_hints): ...new pass_data instance and...
11998         (make_pass_strip_predict_hints): ...new function.
11999         * recog.c (pass_peephole2): Convert from a global struct to a subclass
12000         of rtl_opt_pass along with...
12001         (pass_data_peephole2): ...new pass_data instance and...
12002         (make_pass_peephole2): ...new function.
12003         (pass_split_all_insns): Convert from a global struct to a subclass of
12004         rtl_opt_pass along with...
12005         (pass_data_split_all_insns): ...new pass_data instance and...
12006         (make_pass_split_all_insns): ...new function.
12007         (pass_split_after_reload): Convert from a global struct to a subclass
12008         of rtl_opt_pass along with...
12009         (pass_data_split_after_reload): ...new pass_data instance and...
12010         (make_pass_split_after_reload): ...new function.
12011         (pass_split_before_regstack): Convert from a global struct to a
12012         subclass of rtl_opt_pass along with...
12013         (pass_data_split_before_regstack): ...new pass_data instance and...
12014         (make_pass_split_before_regstack): ...new function.
12015         (pass_split_before_sched2): Convert from a global struct to a subclass
12016         of rtl_opt_pass along with...
12017         (pass_data_split_before_sched2): ...new pass_data instance and...
12018         (make_pass_split_before_sched2): ...new function.
12019         (pass_split_for_shorten_branches): Convert from a global struct to a
12020         subclass of rtl_opt_pass along with...
12021         (pass_data_split_for_shorten_branches): ...new pass_data instance
12022         and...
12023         (make_pass_split_for_shorten_branches): ...new function.
12024         * ree.c (pass_ree): Convert from a global struct to a subclass of
12025         rtl_opt_pass along with...
12026         (pass_data_ree): ...new pass_data instance and...
12027         (make_pass_ree): ...new function.
12028         * reg-stack.c (pass_stack_regs): Convert from a global struct to a
12029         subclass of rtl_opt_pass along with...
12030         (pass_data_stack_regs): ...new pass_data instance and...
12031         (make_pass_stack_regs): ...new function.
12032         (pass_stack_regs_run): Convert from a global struct to a subclass of
12033         rtl_opt_pass along with...
12034         (pass_data_stack_regs_run): ...new pass_data instance and...
12035         (make_pass_stack_regs_run): ...new function.
12036         * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
12037         subclass of rtl_opt_pass along with...
12038         (pass_data_cprop_hardreg): ...new pass_data instance and...
12039         (make_pass_cprop_hardreg): ...new function.
12040         * reginfo.c (pass_reginfo_init): Convert from a global struct to a
12041         subclass of rtl_opt_pass along with...
12042         (pass_data_reginfo_init): ...new pass_data instance and...
12043         (make_pass_reginfo_init): ...new function.
12044         * regmove.c (pass_regmove): Convert from a global struct to a subclass
12045         of rtl_opt_pass along with...
12046         (pass_data_regmove): ...new pass_data instance and...
12047         (make_pass_regmove): ...new function.
12048         * regrename.c (pass_regrename): Convert from a global struct to a
12049         subclass of rtl_opt_pass along with...
12050         (pass_data_regrename): ...new pass_data instance and...
12051         (make_pass_regrename): ...new function.
12052         * reorg.c (pass_delay_slots): Convert from a global struct to a
12053         subclass of rtl_opt_pass along with...
12054         (pass_data_delay_slots): ...new pass_data instance and...
12055         (make_pass_delay_slots): ...new function.
12056         (pass_machine_reorg): Convert from a global struct to a subclass of
12057         rtl_opt_pass along with...
12058         (pass_data_machine_reorg): ...new pass_data instance and...
12059         (make_pass_machine_reorg): ...new function.
12060         * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
12061         of rtl_opt_pass along with...
12062         (pass_data_sched): ...new pass_data instance and...
12063         (make_pass_sched): ...new function.
12064         (pass_sched2): Convert from a global struct to a subclass of
12065         rtl_opt_pass along with...
12066         (pass_data_sched2): ...new pass_data instance and...
12067         (make_pass_sched2): ...new function.
12068         * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
12069         to a subclass of rtl_opt_pass along with...
12070         (pass_data_stack_ptr_mod): ...new pass_data instance and...
12071         (make_pass_stack_ptr_mod): ...new function.
12072         * store-motion.c (pass_rtl_store_motion): Convert from a global struct
12073         to a subclass of rtl_opt_pass along with...
12074         (pass_data_rtl_store_motion): ...new pass_data instance and...
12075         (make_pass_rtl_store_motion): ...new function.
12076         * tracer.c (pass_tracer): Convert from a global struct to a subclass
12077         of gimple_opt_pass along with...
12078         (pass_data_tracer): ...new pass_data instance and...
12079         (make_pass_tracer): ...new function.
12080         * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
12081         to a subclass of gimple_opt_pass along with...
12082         (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
12083         (make_pass_diagnose_tm_blocks): ...new function.
12084         (pass_lower_tm): Convert from a global struct to a subclass of
12085         gimple_opt_pass along with...
12086         (pass_data_lower_tm): ...new pass_data instance and...
12087         (make_pass_lower_tm): ...new function.
12088         (pass_tm_init): Convert from a global struct to a subclass of
12089         gimple_opt_pass along with...
12090         (pass_data_tm_init): ...new pass_data instance and...
12091         (make_pass_tm_init): ...new function.
12092         (pass_tm_mark): Convert from a global struct to a subclass of
12093         gimple_opt_pass along with...
12094         (pass_data_tm_mark): ...new pass_data instance and...
12095         (make_pass_tm_mark): ...new function.
12096         (pass_tm_edges): Convert from a global struct to a subclass of
12097         gimple_opt_pass along with...
12098         (pass_data_tm_edges): ...new pass_data instance and...
12099         (make_pass_tm_edges): ...new function.
12100         (pass_tm_memopt): Convert from a global struct to a subclass of
12101         gimple_opt_pass along with...
12102         (pass_data_tm_memopt): ...new pass_data instance and...
12103         (make_pass_tm_memopt): ...new function.
12104         (pass_ipa_tm): Convert from a global struct to a subclass of
12105         simple_ipa_opt_pass along with...
12106         (pass_data_ipa_tm): ...new pass_data instance and...
12107         (make_pass_ipa_tm): ...new function.
12108         * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
12109         subclass of gimple_opt_pass along with...
12110         (pass_data_call_cdce): ...new pass_data instance and...
12111         (make_pass_call_cdce): ...new function.
12112         * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
12113         subclass of gimple_opt_pass along with...
12114         (pass_data_build_cfg): ...new pass_data instance and...
12115         (make_pass_build_cfg): ...new function.
12116         (pass_split_crit_edges): Convert from a global struct to a subclass of
12117         gimple_opt_pass along with...
12118         (pass_data_split_crit_edges): ...new pass_data instance and...
12119         (make_pass_split_crit_edges): ...new function.
12120         (pass_warn_function_return): Convert from a global struct to a
12121         subclass of gimple_opt_pass along with...
12122         (pass_data_warn_function_return): ...new pass_data instance and...
12123         (make_pass_warn_function_return): ...new function.
12124         (pass_warn_function_noreturn): Convert from a global struct to a
12125         subclass of gimple_opt_pass along with...
12126         (pass_data_warn_function_noreturn): ...new pass_data instance and...
12127         (make_pass_warn_function_noreturn): ...new function.
12128         (pass_warn_unused_result): Convert from a global struct to a subclass
12129         of gimple_opt_pass along with...
12130         (pass_data_warn_unused_result): ...new pass_data instance and...
12131         (make_pass_warn_unused_result): ...new function.
12132         * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
12133         a subclass of gimple_opt_pass along with...
12134         (pass_data_merge_phi): ...new pass_data instance and...
12135         (make_pass_merge_phi): ...new function.
12136         * tree-complex.c (pass_lower_complex): Convert from a global struct to
12137         a subclass of gimple_opt_pass along with...
12138         (pass_data_lower_complex): ...new pass_data instance and...
12139         (make_pass_lower_complex): ...new function.
12140         (pass_lower_complex_O0): Convert from a global struct to a subclass of
12141         gimple_opt_pass along with...
12142         (pass_data_lower_complex_O0): ...new pass_data instance and...
12143         (make_pass_lower_complex_O0): ...new function.
12144         * tree-eh.c (pass_lower_eh): Convert from a global struct to a
12145         subclass of gimple_opt_pass along with...
12146         (pass_data_lower_eh): ...new pass_data instance and...
12147         (make_pass_lower_eh): ...new function.
12148         (pass_refactor_eh): Convert from a global struct to a subclass of
12149         gimple_opt_pass along with...
12150         (pass_data_refactor_eh): ...new pass_data instance and...
12151         (make_pass_refactor_eh): ...new function.
12152         (pass_lower_resx): Convert from a global struct to a subclass of
12153         gimple_opt_pass along with...
12154         (pass_data_lower_resx): ...new pass_data instance and...
12155         (make_pass_lower_resx): ...new function.
12156         (pass_lower_eh_dispatch): Convert from a global struct to a subclass
12157         of gimple_opt_pass along with...
12158         (pass_data_lower_eh_dispatch): ...new pass_data instance and...
12159         (make_pass_lower_eh_dispatch): ...new function.
12160         (pass_cleanup_eh): Convert from a global struct to a subclass of
12161         gimple_opt_pass along with...
12162         (pass_data_cleanup_eh): ...new pass_data instance and...
12163         (make_pass_cleanup_eh): ...new function.
12164         * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
12165         to a subclass of simple_ipa_opt_pass along with...
12166         (pass_data_ipa_lower_emutls): ...new pass_data instance and...
12167         (make_pass_ipa_lower_emutls): ...new function.
12168         * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
12169         a subclass of gimple_opt_pass along with...
12170         (pass_data_if_conversion): ...new pass_data instance and...
12171         (make_pass_if_conversion): ...new function.
12172         * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
12173         subclass of gimple_opt_pass along with...
12174         (pass_data_build_ssa): ...new pass_data instance and...
12175         (make_pass_build_ssa): ...new function.
12176         * tree-loop-distribution.c (pass_loop_distribution): Convert from a
12177         global struct to a subclass of gimple_opt_pass along with...
12178         (pass_data_loop_distribution): ...new pass_data instance and...
12179         (make_pass_loop_distribution): ...new function.
12180         * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
12181         subclass of gimple_opt_pass along with...
12182         (pass_data_mudflap_1): ...new pass_data instance and...
12183         (make_pass_mudflap_1): ...new function.
12184         (pass_mudflap_2): Convert from a global struct to a subclass of
12185         gimple_opt_pass along with...
12186         (pass_data_mudflap_2): ...new pass_data instance and...
12187         (make_pass_mudflap_2): ...new function.
12188         * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
12189         subclass of gimple_opt_pass along with...
12190         (pass_data_mudflap_1): ...new pass_data instance and...
12191         (make_pass_mudflap_1): ...new function.
12192         (pass_mudflap_2): Convert from a global struct to a subclass of
12193         gimple_opt_pass along with...
12194         (pass_data_mudflap_2): ...new pass_data instance and...
12195         (make_pass_mudflap_2): ...new function.
12196         * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
12197         gimple_opt_pass along with...
12198         (pass_data_nrv): ...new pass_data instance and...
12199         (make_pass_nrv): ...new function.
12200         (pass_return_slot): Convert from a global struct to a subclass of
12201         gimple_opt_pass along with...
12202         (pass_data_return_slot): ...new pass_data instance and...
12203         (make_pass_return_slot): ...new function.
12204         * tree-object-size.c (pass_object_sizes): Convert from a global struct
12205         to a subclass of gimple_opt_pass along with...
12206         (pass_data_object_sizes): ...new pass_data instance and...
12207         (make_pass_object_sizes): ...new function.
12208         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
12209         global struct to a subclass of gimple_opt_pass along with...
12210         (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
12211         and...
12212         (make_pass_cleanup_cfg_post_optimizing): ...new function.
12213         (pass_fixup_cfg): Convert from a global struct to a subclass of
12214         gimple_opt_pass along with...
12215         (pass_data_fixup_cfg): ...new pass_data instance and...
12216         (make_pass_fixup_cfg): ...new function.
12217         * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
12218         (make_pass_mudflap_1): ...new function.
12219         (pass_mudflap_2): Replace declaration with that of...
12220         (make_pass_mudflap_2): ...new function.
12221         (pass_asan): Replace declaration with that of...
12222         (make_pass_asan): ...new function.
12223         (pass_asan_O0): Replace declaration with that of...
12224         (make_pass_asan_O0): ...new function.
12225         (pass_tsan): Replace declaration with that of...
12226         (make_pass_tsan): ...new function.
12227         (pass_tsan_O0): Replace declaration with that of...
12228         (make_pass_tsan_O0): ...new function.
12229         (pass_lower_cf): Replace declaration with that of...
12230         (make_pass_lower_cf): ...new function.
12231         (pass_refactor_eh): Replace declaration with that of...
12232         (make_pass_refactor_eh): ...new function.
12233         (pass_lower_eh): Replace declaration with that of...
12234         (make_pass_lower_eh): ...new function.
12235         (pass_lower_eh_dispatch): Replace declaration with that of...
12236         (make_pass_lower_eh_dispatch): ...new function.
12237         (pass_lower_resx): Replace declaration with that of...
12238         (make_pass_lower_resx): ...new function.
12239         (pass_build_cfg): Replace declaration with that of...
12240         (make_pass_build_cfg): ...new function.
12241         (pass_early_tree_profile): Replace declaration with that of...
12242         (make_pass_early_tree_profile): ...new function.
12243         (pass_cleanup_eh): Replace declaration with that of...
12244         (make_pass_cleanup_eh): ...new function.
12245         (pass_sra): Replace declaration with that of...
12246         (make_pass_sra): ...new function.
12247         (pass_sra_early): Replace declaration with that of...
12248         (make_pass_sra_early): ...new function.
12249         (pass_early_ipa_sra): Replace declaration with that of...
12250         (make_pass_early_ipa_sra): ...new function.
12251         (pass_tail_recursion): Replace declaration with that of...
12252         (make_pass_tail_recursion): ...new function.
12253         (pass_tail_calls): Replace declaration with that of...
12254         (make_pass_tail_calls): ...new function.
12255         (pass_tree_loop): Replace declaration with that of...
12256         (make_pass_tree_loop): ...new function.
12257         (pass_tree_loop_init): Replace declaration with that of...
12258         (make_pass_tree_loop_init): ...new function.
12259         (pass_lim): Replace declaration with that of...
12260         (make_pass_lim): ...new function.
12261         (pass_tree_unswitch): Replace declaration with that of...
12262         (make_pass_tree_unswitch): ...new function.
12263         (pass_predcom): Replace declaration with that of...
12264         (make_pass_predcom): ...new function.
12265         (pass_iv_canon): Replace declaration with that of...
12266         (make_pass_iv_canon): ...new function.
12267         (pass_scev_cprop): Replace declaration with that of...
12268         (make_pass_scev_cprop): ...new function.
12269         (pass_empty_loop): Replace declaration with that of...
12270         (make_pass_empty_loop): ...new function.
12271         (pass_record_bounds): Replace declaration with that of...
12272         (make_pass_record_bounds): ...new function.
12273         (pass_graphite): Replace declaration with that of...
12274         (make_pass_graphite): ...new function.
12275         (pass_graphite_transforms): Replace declaration with that of...
12276         (make_pass_graphite_transforms): ...new function.
12277         (pass_if_conversion): Replace declaration with that of...
12278         (make_pass_if_conversion): ...new function.
12279         (pass_loop_distribution): Replace declaration with that of...
12280         (make_pass_loop_distribution): ...new function.
12281         (pass_vectorize): Replace declaration with that of...
12282         (make_pass_vectorize): ...new function.
12283         (pass_slp_vectorize): Replace declaration with that of...
12284         (make_pass_slp_vectorize): ...new function.
12285         (pass_complete_unroll): Replace declaration with that of...
12286         (make_pass_complete_unroll): ...new function.
12287         (pass_complete_unrolli): Replace declaration with that of...
12288         (make_pass_complete_unrolli): ...new function.
12289         (pass_parallelize_loops): Replace declaration with that of...
12290         (make_pass_parallelize_loops): ...new function.
12291         (pass_loop_prefetch): Replace declaration with that of...
12292         (make_pass_loop_prefetch): ...new function.
12293         (pass_iv_optimize): Replace declaration with that of...
12294         (make_pass_iv_optimize): ...new function.
12295         (pass_tree_loop_done): Replace declaration with that of...
12296         (make_pass_tree_loop_done): ...new function.
12297         (pass_ch): Replace declaration with that of...
12298         (make_pass_ch): ...new function.
12299         (pass_ccp): Replace declaration with that of...
12300         (make_pass_ccp): ...new function.
12301         (pass_phi_only_cprop): Replace declaration with that of...
12302         (make_pass_phi_only_cprop): ...new function.
12303         (pass_build_ssa): Replace declaration with that of...
12304         (make_pass_build_ssa): ...new function.
12305         (pass_build_alias): Replace declaration with that of...
12306         (make_pass_build_alias): ...new function.
12307         (pass_build_ealias): Replace declaration with that of...
12308         (make_pass_build_ealias): ...new function.
12309         (pass_dominator): Replace declaration with that of...
12310         (make_pass_dominator): ...new function.
12311         (pass_dce): Replace declaration with that of...
12312         (make_pass_dce): ...new function.
12313         (pass_dce_loop): Replace declaration with that of...
12314         (make_pass_dce_loop): ...new function.
12315         (pass_cd_dce): Replace declaration with that of...
12316         (make_pass_cd_dce): ...new function.
12317         (pass_call_cdce): Replace declaration with that of...
12318         (make_pass_call_cdce): ...new function.
12319         (pass_merge_phi): Replace declaration with that of...
12320         (make_pass_merge_phi): ...new function.
12321         (pass_split_crit_edges): Replace declaration with that of...
12322         (make_pass_split_crit_edges): ...new function.
12323         (pass_pre): Replace declaration with that of...
12324         (make_pass_pre): ...new function.
12325         (pass_profile): Replace declaration with that of...
12326         (make_pass_profile): ...new function.
12327         (pass_strip_predict_hints): Replace declaration with that of...
12328         (make_pass_strip_predict_hints): ...new function.
12329         (pass_lower_complex_O0): Replace declaration with that of...
12330         (make_pass_lower_complex_O0): ...new function.
12331         (pass_lower_complex): Replace declaration with that of...
12332         (make_pass_lower_complex): ...new function.
12333         (pass_lower_vector): Replace declaration with that of...
12334         (make_pass_lower_vector): ...new function.
12335         (pass_lower_vector_ssa): Replace declaration with that of...
12336         (make_pass_lower_vector_ssa): ...new function.
12337         (pass_lower_omp): Replace declaration with that of...
12338         (make_pass_lower_omp): ...new function.
12339         (pass_diagnose_omp_blocks): Replace declaration with that of...
12340         (make_pass_diagnose_omp_blocks): ...new function.
12341         (pass_expand_omp): Replace declaration with that of...
12342         (make_pass_expand_omp): ...new function.
12343         (pass_expand_omp_ssa): Replace declaration with that of...
12344         (make_pass_expand_omp_ssa): ...new function.
12345         (pass_object_sizes): Replace declaration with that of...
12346         (make_pass_object_sizes): ...new function.
12347         (pass_strlen): Replace declaration with that of...
12348         (make_pass_strlen): ...new function.
12349         (pass_fold_builtins): Replace declaration with that of...
12350         (make_pass_fold_builtins): ...new function.
12351         (pass_stdarg): Replace declaration with that of...
12352         (make_pass_stdarg): ...new function.
12353         (pass_early_warn_uninitialized): Replace declaration with that of...
12354         (make_pass_early_warn_uninitialized): ...new function.
12355         (pass_late_warn_uninitialized): Replace declaration with that of...
12356         (make_pass_late_warn_uninitialized): ...new function.
12357         (pass_cse_reciprocals): Replace declaration with that of...
12358         (make_pass_cse_reciprocals): ...new function.
12359         (pass_cse_sincos): Replace declaration with that of...
12360         (make_pass_cse_sincos): ...new function.
12361         (pass_optimize_bswap): Replace declaration with that of...
12362         (make_pass_optimize_bswap): ...new function.
12363         (pass_optimize_widening_mul): Replace declaration with that of...
12364         (make_pass_optimize_widening_mul): ...new function.
12365         (pass_warn_function_return): Replace declaration with that of...
12366         (make_pass_warn_function_return): ...new function.
12367         (pass_warn_function_noreturn): Replace declaration with that of...
12368         (make_pass_warn_function_noreturn): ...new function.
12369         (pass_cselim): Replace declaration with that of...
12370         (make_pass_cselim): ...new function.
12371         (pass_phiopt): Replace declaration with that of...
12372         (make_pass_phiopt): ...new function.
12373         (pass_forwprop): Replace declaration with that of...
12374         (make_pass_forwprop): ...new function.
12375         (pass_phiprop): Replace declaration with that of...
12376         (make_pass_phiprop): ...new function.
12377         (pass_tree_ifcombine): Replace declaration with that of...
12378         (make_pass_tree_ifcombine): ...new function.
12379         (pass_dse): Replace declaration with that of...
12380         (make_pass_dse): ...new function.
12381         (pass_nrv): Replace declaration with that of...
12382         (make_pass_nrv): ...new function.
12383         (pass_rename_ssa_copies): Replace declaration with that of...
12384         (make_pass_rename_ssa_copies): ...new function.
12385         (pass_sink_code): Replace declaration with that of...
12386         (make_pass_sink_code): ...new function.
12387         (pass_fre): Replace declaration with that of...
12388         (make_pass_fre): ...new function.
12389         (pass_check_data_deps): Replace declaration with that of...
12390         (make_pass_check_data_deps): ...new function.
12391         (pass_copy_prop): Replace declaration with that of...
12392         (make_pass_copy_prop): ...new function.
12393         (pass_vrp): Replace declaration with that of...
12394         (make_pass_vrp): ...new function.
12395         (pass_uncprop): Replace declaration with that of...
12396         (make_pass_uncprop): ...new function.
12397         (pass_return_slot): Replace declaration with that of...
12398         (make_pass_return_slot): ...new function.
12399         (pass_reassoc): Replace declaration with that of...
12400         (make_pass_reassoc): ...new function.
12401         (pass_rebuild_cgraph_edges): Replace declaration with that of...
12402         (make_pass_rebuild_cgraph_edges): ...new function.
12403         (pass_remove_cgraph_callee_edges): Replace declaration with that of...
12404         (make_pass_remove_cgraph_callee_edges): ...new function.
12405         (pass_build_cgraph_edges): Replace declaration with that of...
12406         (make_pass_build_cgraph_edges): ...new function.
12407         (pass_local_pure_const): Replace declaration with that of...
12408         (make_pass_local_pure_const): ...new function.
12409         (pass_tracer): Replace declaration with that of...
12410         (make_pass_tracer): ...new function.
12411         (pass_warn_unused_result): Replace declaration with that of...
12412         (make_pass_warn_unused_result): ...new function.
12413         (pass_diagnose_tm_blocks): Replace declaration with that of...
12414         (make_pass_diagnose_tm_blocks): ...new function.
12415         (pass_lower_tm): Replace declaration with that of...
12416         (make_pass_lower_tm): ...new function.
12417         (pass_tm_init): Replace declaration with that of...
12418         (make_pass_tm_init): ...new function.
12419         (pass_tm_mark): Replace declaration with that of...
12420         (make_pass_tm_mark): ...new function.
12421         (pass_tm_memopt): Replace declaration with that of...
12422         (make_pass_tm_memopt): ...new function.
12423         (pass_tm_edges): Replace declaration with that of...
12424         (make_pass_tm_edges): ...new function.
12425         (pass_split_functions): Replace declaration with that of...
12426         (make_pass_split_functions): ...new function.
12427         (pass_feedback_split_functions): Replace declaration with that of...
12428         (make_pass_feedback_split_functions): ...new function.
12429         (pass_strength_reduction): Replace declaration with that of...
12430         (make_pass_strength_reduction): ...new function.
12431         (pass_ipa_lower_emutls): Replace declaration with that of...
12432         (make_pass_ipa_lower_emutls): ...new function.
12433         (pass_ipa_function_and_variable_visibility): Replace declaration with
12434         that of...
12435         (make_pass_ipa_function_and_variable_visibility): ...new function.
12436         (pass_ipa_tree_profile): Replace declaration with that of...
12437         (make_pass_ipa_tree_profile): ...new function.
12438         (pass_early_local_passes): Replace declaration with that of...
12439         (make_pass_early_local_passes): ...new function.
12440         (pass_ipa_whole_program_visibility): Replace declaration with that
12441         of...
12442         (make_pass_ipa_whole_program_visibility): ...new function.
12443         (pass_ipa_lto_gimple_out): Replace declaration with that of...
12444         (make_pass_ipa_lto_gimple_out): ...new function.
12445         (pass_ipa_increase_alignment): Replace declaration with that of...
12446         (make_pass_ipa_increase_alignment): ...new function.
12447         (pass_ipa_inline): Replace declaration with that of...
12448         (make_pass_ipa_inline): ...new function.
12449         (pass_ipa_free_lang_data): Replace declaration with that of...
12450         (make_pass_ipa_free_lang_data): ...new function.
12451         (pass_ipa_free_inline_summary): Replace declaration with that of...
12452         (make_pass_ipa_free_inline_summary): ...new function.
12453         (pass_ipa_cp): Replace declaration with that of...
12454         (make_pass_ipa_cp): ...new function.
12455         (pass_ipa_reference): Replace declaration with that of...
12456         (make_pass_ipa_reference): ...new function.
12457         (pass_ipa_pure_const): Replace declaration with that of...
12458         (make_pass_ipa_pure_const): ...new function.
12459         (pass_ipa_pta): Replace declaration with that of...
12460         (make_pass_ipa_pta): ...new function.
12461         (pass_ipa_lto_finish_out): Replace declaration with that of...
12462         (make_pass_ipa_lto_finish_out): ...new function.
12463         (pass_ipa_tm): Replace declaration with that of...
12464         (make_pass_ipa_tm): ...new function.
12465         (pass_ipa_profile): Replace declaration with that of...
12466         (make_pass_ipa_profile): ...new function.
12467         (pass_ipa_cdtor_merge): Replace declaration with that of...
12468         (make_pass_ipa_cdtor_merge): ...new function.
12469         (pass_cleanup_cfg_post_optimizing): Replace declaration with that
12470         of...
12471         (make_pass_cleanup_cfg_post_optimizing): ...new function.
12472         (pass_init_datastructures): Replace declaration with that of...
12473         (make_pass_init_datastructures): ...new function.
12474         (pass_fixup_cfg): Replace declaration with that of...
12475         (make_pass_fixup_cfg): ...new function.
12476         (pass_expand): Replace declaration with that of...
12477         (make_pass_expand): ...new function.
12478         (pass_instantiate_virtual_regs): Replace declaration with that of...
12479         (make_pass_instantiate_virtual_regs): ...new function.
12480         (pass_rtl_fwprop): Replace declaration with that of...
12481         (make_pass_rtl_fwprop): ...new function.
12482         (pass_rtl_fwprop_addr): Replace declaration with that of...
12483         (make_pass_rtl_fwprop_addr): ...new function.
12484         (pass_jump): Replace declaration with that of...
12485         (make_pass_jump): ...new function.
12486         (pass_jump2): Replace declaration with that of...
12487         (make_pass_jump2): ...new function.
12488         (pass_lower_subreg): Replace declaration with that of...
12489         (make_pass_lower_subreg): ...new function.
12490         (pass_cse): Replace declaration with that of...
12491         (make_pass_cse): ...new function.
12492         (pass_fast_rtl_dce): Replace declaration with that of...
12493         (make_pass_fast_rtl_dce): ...new function.
12494         (pass_ud_rtl_dce): Replace declaration with that of...
12495         (make_pass_ud_rtl_dce): ...new function.
12496         (pass_rtl_dce): Replace declaration with that of...
12497         (make_pass_rtl_dce): ...new function.
12498         (pass_rtl_dse1): Replace declaration with that of...
12499         (make_pass_rtl_dse1): ...new function.
12500         (pass_rtl_dse2): Replace declaration with that of...
12501         (make_pass_rtl_dse2): ...new function.
12502         (pass_rtl_dse3): Replace declaration with that of...
12503         (make_pass_rtl_dse3): ...new function.
12504         (pass_rtl_cprop): Replace declaration with that of...
12505         (make_pass_rtl_cprop): ...new function.
12506         (pass_rtl_pre): Replace declaration with that of...
12507         (make_pass_rtl_pre): ...new function.
12508         (pass_rtl_hoist): Replace declaration with that of...
12509         (make_pass_rtl_hoist): ...new function.
12510         (pass_rtl_store_motion): Replace declaration with that of...
12511         (make_pass_rtl_store_motion): ...new function.
12512         (pass_cse_after_global_opts): Replace declaration with that of...
12513         (make_pass_cse_after_global_opts): ...new function.
12514         (pass_rtl_ifcvt): Replace declaration with that of...
12515         (make_pass_rtl_ifcvt): ...new function.
12516         (pass_into_cfg_layout_mode): Replace declaration with that of...
12517         (make_pass_into_cfg_layout_mode): ...new function.
12518         (pass_outof_cfg_layout_mode): Replace declaration with that of...
12519         (make_pass_outof_cfg_layout_mode): ...new function.
12520         (pass_loop2): Replace declaration with that of...
12521         (make_pass_loop2): ...new function.
12522         (pass_rtl_loop_init): Replace declaration with that of...
12523         (make_pass_rtl_loop_init): ...new function.
12524         (pass_rtl_move_loop_invariants): Replace declaration with that of...
12525         (make_pass_rtl_move_loop_invariants): ...new function.
12526         (pass_rtl_unswitch): Replace declaration with that of...
12527         (make_pass_rtl_unswitch): ...new function.
12528         (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
12529         (make_pass_rtl_unroll_and_peel_loops): ...new function.
12530         (pass_rtl_doloop): Replace declaration with that of...
12531         (make_pass_rtl_doloop): ...new function.
12532         (pass_rtl_loop_done): Replace declaration with that of...
12533         (make_pass_rtl_loop_done): ...new function.
12534         (pass_web): Replace declaration with that of...
12535         (make_pass_web): ...new function.
12536         (pass_cse2): Replace declaration with that of...
12537         (make_pass_cse2): ...new function.
12538         (pass_df_initialize_opt): Replace declaration with that of...
12539         (make_pass_df_initialize_opt): ...new function.
12540         (pass_df_initialize_no_opt): Replace declaration with that of...
12541         (make_pass_df_initialize_no_opt): ...new function.
12542         (pass_reginfo_init): Replace declaration with that of...
12543         (make_pass_reginfo_init): ...new function.
12544         (pass_inc_dec): Replace declaration with that of...
12545         (make_pass_inc_dec): ...new function.
12546         (pass_stack_ptr_mod): Replace declaration with that of...
12547         (make_pass_stack_ptr_mod): ...new function.
12548         (pass_initialize_regs): Replace declaration with that of...
12549         (make_pass_initialize_regs): ...new function.
12550         (pass_combine): Replace declaration with that of...
12551         (make_pass_combine): ...new function.
12552         (pass_if_after_combine): Replace declaration with that of...
12553         (make_pass_if_after_combine): ...new function.
12554         (pass_ree): Replace declaration with that of...
12555         (make_pass_ree): ...new function.
12556         (pass_partition_blocks): Replace declaration with that of...
12557         (make_pass_partition_blocks): ...new function.
12558         (pass_match_asm_constraints): Replace declaration with that of...
12559         (make_pass_match_asm_constraints): ...new function.
12560         (pass_regmove): Replace declaration with that of...
12561         (make_pass_regmove): ...new function.
12562         (pass_split_all_insns): Replace declaration with that of...
12563         (make_pass_split_all_insns): ...new function.
12564         (pass_fast_rtl_byte_dce): Replace declaration with that of...
12565         (make_pass_fast_rtl_byte_dce): ...new function.
12566         (pass_lower_subreg2): Replace declaration with that of...
12567         (make_pass_lower_subreg2): ...new function.
12568         (pass_mode_switching): Replace declaration with that of...
12569         (make_pass_mode_switching): ...new function.
12570         (pass_sms): Replace declaration with that of...
12571         (make_pass_sms): ...new function.
12572         (pass_sched): Replace declaration with that of...
12573         (make_pass_sched): ...new function.
12574         (pass_ira): Replace declaration with that of...
12575         (make_pass_ira): ...new function.
12576         (pass_reload): Replace declaration with that of...
12577         (make_pass_reload): ...new function.
12578         (pass_clean_state): Replace declaration with that of...
12579         (make_pass_clean_state): ...new function.
12580         (pass_branch_prob): Replace declaration with that of...
12581         (make_pass_branch_prob): ...new function.
12582         (pass_value_profile_transformations): Replace declaration with that
12583         of...
12584         (make_pass_value_profile_transformations): ...new function.
12585         (pass_postreload_cse): Replace declaration with that of...
12586         (make_pass_postreload_cse): ...new function.
12587         (pass_gcse2): Replace declaration with that of...
12588         (make_pass_gcse2): ...new function.
12589         (pass_split_after_reload): Replace declaration with that of...
12590         (make_pass_split_after_reload): ...new function.
12591         (pass_branch_target_load_optimize1): Replace declaration with that
12592         of...
12593         (make_pass_branch_target_load_optimize1): ...new function.
12594         (pass_thread_prologue_and_epilogue): Replace declaration with that
12595         of...
12596         (make_pass_thread_prologue_and_epilogue): ...new function.
12597         (pass_stack_adjustments): Replace declaration with that of...
12598         (make_pass_stack_adjustments): ...new function.
12599         (pass_peephole2): Replace declaration with that of...
12600         (make_pass_peephole2): ...new function.
12601         (pass_if_after_reload): Replace declaration with that of...
12602         (make_pass_if_after_reload): ...new function.
12603         (pass_regrename): Replace declaration with that of...
12604         (make_pass_regrename): ...new function.
12605         (pass_cprop_hardreg): Replace declaration with that of...
12606         (make_pass_cprop_hardreg): ...new function.
12607         (pass_reorder_blocks): Replace declaration with that of...
12608         (make_pass_reorder_blocks): ...new function.
12609         (pass_branch_target_load_optimize2): Replace declaration with that
12610         of...
12611         (make_pass_branch_target_load_optimize2): ...new function.
12612         (pass_leaf_regs): Replace declaration with that of...
12613         (make_pass_leaf_regs): ...new function.
12614         (pass_split_before_sched2): Replace declaration with that of...
12615         (make_pass_split_before_sched2): ...new function.
12616         (pass_compare_elim_after_reload): Replace declaration with that of...
12617         (make_pass_compare_elim_after_reload): ...new function.
12618         (pass_sched2): Replace declaration with that of...
12619         (make_pass_sched2): ...new function.
12620         (pass_stack_regs): Replace declaration with that of...
12621         (make_pass_stack_regs): ...new function.
12622         (pass_stack_regs_run): Replace declaration with that of...
12623         (make_pass_stack_regs_run): ...new function.
12624         (pass_df_finish): Replace declaration with that of...
12625         (make_pass_df_finish): ...new function.
12626         (pass_compute_alignments): Replace declaration with that of...
12627         (make_pass_compute_alignments): ...new function.
12628         (pass_duplicate_computed_gotos): Replace declaration with that of...
12629         (make_pass_duplicate_computed_gotos): ...new function.
12630         (pass_variable_tracking): Replace declaration with that of...
12631         (make_pass_variable_tracking): ...new function.
12632         (pass_free_cfg): Replace declaration with that of...
12633         (make_pass_free_cfg): ...new function.
12634         (pass_machine_reorg): Replace declaration with that of...
12635         (make_pass_machine_reorg): ...new function.
12636         (pass_cleanup_barriers): Replace declaration with that of...
12637         (make_pass_cleanup_barriers): ...new function.
12638         (pass_delay_slots): Replace declaration with that of...
12639         (make_pass_delay_slots): ...new function.
12640         (pass_split_for_shorten_branches): Replace declaration with that of...
12641         (make_pass_split_for_shorten_branches): ...new function.
12642         (pass_split_before_regstack): Replace declaration with that of...
12643         (make_pass_split_before_regstack): ...new function.
12644         (pass_convert_to_eh_region_ranges): Replace declaration with that
12645         of...
12646         (make_pass_convert_to_eh_region_ranges): ...new function.
12647         (pass_shorten_branches): Replace declaration with that of...
12648         (make_pass_shorten_branches): ...new function.
12649         (pass_set_nothrow_function_flags): Replace declaration with that of...
12650         (make_pass_set_nothrow_function_flags): ...new function.
12651         (pass_dwarf2_frame): Replace declaration with that of...
12652         (make_pass_dwarf2_frame): ...new function.
12653         (pass_final): Replace declaration with that of...
12654         (make_pass_final): ...new function.
12655         (pass_rtl_seqabstr): Replace declaration with that of...
12656         (make_pass_rtl_seqabstr): ...new function.
12657         (pass_release_ssa_names): Replace declaration with that of...
12658         (make_pass_release_ssa_names): ...new function.
12659         (pass_early_inline): Replace declaration with that of...
12660         (make_pass_early_inline): ...new function.
12661         (pass_inline_parameters): Replace declaration with that of...
12662         (make_pass_inline_parameters): ...new function.
12663         (pass_update_address_taken): Replace declaration with that of...
12664         (make_pass_update_address_taken): ...new function.
12665         (pass_convert_switch): Replace declaration with that of...
12666         (make_pass_convert_switch): ...new function.
12667         * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
12668         to a subclass of simple_ipa_opt_pass along with...
12669         (pass_data_ipa_tree_profile): ...new pass_data instance and...
12670         (make_pass_ipa_tree_profile): ...new function.
12671         * tree-sra.c (pass_sra_early): Convert from a global struct to a
12672         subclass of gimple_opt_pass along with...
12673         (pass_data_sra_early): ...new pass_data instance and...
12674         (make_pass_sra_early): ...new function.
12675         (pass_sra): Convert from a global struct to a subclass of
12676         gimple_opt_pass along with...
12677         (pass_data_sra): ...new pass_data instance and...
12678         (make_pass_sra): ...new function.
12679         (pass_early_ipa_sra): Convert from a global struct to a subclass of
12680         gimple_opt_pass along with...
12681         (pass_data_early_ipa_sra): ...new pass_data instance and...
12682         (make_pass_early_ipa_sra): ...new function.
12683         * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
12684         subclass of gimple_opt_pass along with...
12685         (pass_data_ccp): ...new pass_data instance and...
12686         (make_pass_ccp): ...new function.
12687         (pass_fold_builtins): Convert from a global struct to a subclass of
12688         gimple_opt_pass along with...
12689         (pass_data_fold_builtins): ...new pass_data instance and...
12690         (make_pass_fold_builtins): ...new function.
12691         * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
12692         subclass of gimple_opt_pass along with...
12693         (pass_data_copy_prop): ...new pass_data instance and...
12694         (make_pass_copy_prop): ...new function.
12695         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
12696         global struct to a subclass of gimple_opt_pass along with...
12697         (pass_data_rename_ssa_copies): ...new pass_data instance and...
12698         (make_pass_rename_ssa_copies): ...new function.
12699         * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
12700         subclass of gimple_opt_pass along with...
12701         (pass_data_dce): ...new pass_data instance and...
12702         (make_pass_dce): ...new function.
12703         (pass_dce_loop): Convert from a global struct to a subclass of
12704         gimple_opt_pass along with...
12705         (pass_data_dce_loop): ...new pass_data instance and...
12706         (make_pass_dce_loop): ...new function.
12707         (pass_cd_dce): Convert from a global struct to a subclass of
12708         gimple_opt_pass along with...
12709         (pass_data_cd_dce): ...new pass_data instance and...
12710         (make_pass_cd_dce): ...new function.
12711         * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
12712         subclass of gimple_opt_pass along with...
12713         (pass_data_dominator): ...new pass_data instance and...
12714         (make_pass_dominator): ...new function.
12715         (pass_phi_only_cprop): Convert from a global struct to a subclass of
12716         gimple_opt_pass along with...
12717         (pass_data_phi_only_cprop): ...new pass_data instance and...
12718         (make_pass_phi_only_cprop): ...new function.
12719         * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
12720         subclass of gimple_opt_pass along with...
12721         (pass_data_dse): ...new pass_data instance and...
12722         (make_pass_dse): ...new function.
12723         * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
12724         a subclass of gimple_opt_pass along with...
12725         (pass_data_forwprop): ...new pass_data instance and...
12726         (make_pass_forwprop): ...new function.
12727         * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
12728         struct to a subclass of gimple_opt_pass along with...
12729         (pass_data_tree_ifcombine): ...new pass_data instance and...
12730         (make_pass_tree_ifcombine): ...new function.
12731         * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
12732         subclass of gimple_opt_pass along with...
12733         (pass_data_ch): ...new pass_data instance and...
12734         (make_pass_ch): ...new function.
12735         * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
12736         subclass of gimple_opt_pass along with...
12737         (pass_data_tree_loop): ...new pass_data instance and...
12738         (make_pass_tree_loop): ...new function.
12739         (pass_tree_loop_init): Convert from a global struct to a subclass of
12740         gimple_opt_pass along with...
12741         (pass_data_tree_loop_init): ...new pass_data instance and...
12742         (make_pass_tree_loop_init): ...new function.
12743         (pass_lim): Convert from a global struct to a subclass of
12744         gimple_opt_pass along with...
12745         (pass_data_lim): ...new pass_data instance and...
12746         (make_pass_lim): ...new function.
12747         (pass_tree_unswitch): Convert from a global struct to a subclass of
12748         gimple_opt_pass along with...
12749         (pass_data_tree_unswitch): ...new pass_data instance and...
12750         (make_pass_tree_unswitch): ...new function.
12751         (pass_predcom): Convert from a global struct to a subclass of
12752         gimple_opt_pass along with...
12753         (pass_data_predcom): ...new pass_data instance and...
12754         (make_pass_predcom): ...new function.
12755         (pass_vectorize): Convert from a global struct to a subclass of
12756         gimple_opt_pass along with...
12757         (pass_data_vectorize): ...new pass_data instance and...
12758         (make_pass_vectorize): ...new function.
12759         (pass_graphite): Convert from a global struct to a subclass of
12760         gimple_opt_pass along with...
12761         (pass_data_graphite): ...new pass_data instance and...
12762         (make_pass_graphite): ...new function.
12763         (pass_graphite_transforms): Convert from a global struct to a subclass
12764         of gimple_opt_pass along with...
12765         (pass_data_graphite_transforms): ...new pass_data instance and...
12766         (make_pass_graphite_transforms): ...new function.
12767         (pass_check_data_deps): Convert from a global struct to a subclass of
12768         gimple_opt_pass along with...
12769         (pass_data_check_data_deps): ...new pass_data instance and...
12770         (make_pass_check_data_deps): ...new function.
12771         (pass_iv_canon): Convert from a global struct to a subclass of
12772         gimple_opt_pass along with...
12773         (pass_data_iv_canon): ...new pass_data instance and...
12774         (make_pass_iv_canon): ...new function.
12775         (pass_scev_cprop): Convert from a global struct to a subclass of
12776         gimple_opt_pass along with...
12777         (pass_data_scev_cprop): ...new pass_data instance and...
12778         (make_pass_scev_cprop): ...new function.
12779         (pass_record_bounds): Convert from a global struct to a subclass of
12780         gimple_opt_pass along with...
12781         (pass_data_record_bounds): ...new pass_data instance and...
12782         (make_pass_record_bounds): ...new function.
12783         (pass_complete_unroll): Convert from a global struct to a subclass of
12784         gimple_opt_pass along with...
12785         (pass_data_complete_unroll): ...new pass_data instance and...
12786         (make_pass_complete_unroll): ...new function.
12787         (pass_complete_unrolli): Convert from a global struct to a subclass of
12788         gimple_opt_pass along with...
12789         (pass_data_complete_unrolli): ...new pass_data instance and...
12790         (make_pass_complete_unrolli): ...new function.
12791         (pass_parallelize_loops): Convert from a global struct to a subclass
12792         of gimple_opt_pass along with...
12793         (pass_data_parallelize_loops): ...new pass_data instance and...
12794         (make_pass_parallelize_loops): ...new function.
12795         (pass_loop_prefetch): Convert from a global struct to a subclass of
12796         gimple_opt_pass along with...
12797         (pass_data_loop_prefetch): ...new pass_data instance and...
12798         (make_pass_loop_prefetch): ...new function.
12799         (pass_iv_optimize): Convert from a global struct to a subclass of
12800         gimple_opt_pass along with...
12801         (pass_data_iv_optimize): ...new pass_data instance and...
12802         (make_pass_iv_optimize): ...new function.
12803         (pass_tree_loop_done): Convert from a global struct to a subclass of
12804         gimple_opt_pass along with...
12805         (pass_data_tree_loop_done): ...new pass_data instance and...
12806         (make_pass_tree_loop_done): ...new function.
12807         * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
12808         struct to a subclass of gimple_opt_pass along with...
12809         (pass_data_cse_reciprocals): ...new pass_data instance and...
12810         (make_pass_cse_reciprocals): ...new function.
12811         (pass_cse_sincos): Convert from a global struct to a subclass of
12812         gimple_opt_pass along with...
12813         (pass_data_cse_sincos): ...new pass_data instance and...
12814         (make_pass_cse_sincos): ...new function.
12815         (pass_optimize_bswap): Convert from a global struct to a subclass of
12816         gimple_opt_pass along with...
12817         (pass_data_optimize_bswap): ...new pass_data instance and...
12818         (make_pass_optimize_bswap): ...new function.
12819         (pass_optimize_widening_mul): Convert from a global struct to a
12820         subclass of gimple_opt_pass along with...
12821         (pass_data_optimize_widening_mul): ...new pass_data instance and...
12822         (make_pass_optimize_widening_mul): ...new function.
12823         * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
12824         subclass of gimple_opt_pass along with...
12825         (pass_data_phiopt): ...new pass_data instance and...
12826         (make_pass_phiopt): ...new function.
12827         (pass_cselim): Convert from a global struct to a subclass of
12828         gimple_opt_pass along with...
12829         (pass_data_cselim): ...new pass_data instance and...
12830         (make_pass_cselim): ...new function.
12831         * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
12832         subclass of gimple_opt_pass along with...
12833         (pass_data_phiprop): ...new pass_data instance and...
12834         (make_pass_phiprop): ...new function.
12835         * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
12836         subclass of gimple_opt_pass along with...
12837         (pass_data_pre): ...new pass_data instance and...
12838         (make_pass_pre): ...new function.
12839         (pass_fre): Convert from a global struct to a subclass of
12840         gimple_opt_pass along with...
12841         (pass_data_fre): ...new pass_data instance and...
12842         (make_pass_fre): ...new function.
12843         * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
12844         subclass of gimple_opt_pass along with...
12845         (pass_data_reassoc): ...new pass_data instance and...
12846         (make_pass_reassoc): ...new function.
12847         * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
12848         subclass of gimple_opt_pass along with...
12849         (pass_data_sink_code): ...new pass_data instance and...
12850         (make_pass_sink_code): ...new function.
12851         * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
12852         subclass of gimple_opt_pass along with...
12853         (pass_data_strlen): ...new pass_data instance and...
12854         (make_pass_strlen): ...new function.
12855         * tree-ssa-structalias.c (pass_build_alias): Convert from a global
12856         struct to a subclass of gimple_opt_pass along with...
12857         (pass_data_build_alias): ...new pass_data instance and...
12858         (make_pass_build_alias): ...new function.
12859         (pass_build_ealias): Convert from a global struct to a subclass of
12860         gimple_opt_pass along with...
12861         (pass_data_build_ealias): ...new pass_data instance and...
12862         (make_pass_build_ealias): ...new function.
12863         (pass_ipa_pta): Convert from a global struct to a subclass of
12864         simple_ipa_opt_pass along with...
12865         (pass_data_ipa_pta): ...new pass_data instance and...
12866         (make_pass_ipa_pta): ...new function.
12867         * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
12868         subclass of gimple_opt_pass along with...
12869         (pass_data_uncprop): ...new pass_data instance and...
12870         (make_pass_uncprop): ...new function.
12871         * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
12872         global struct to a subclass of gimple_opt_pass along with...
12873         (pass_data_late_warn_uninitialized): ...new pass_data instance and...
12874         (make_pass_late_warn_uninitialized): ...new function.
12875         * tree-ssa.c (pass_init_datastructures): Convert from a global struct
12876         to a subclass of gimple_opt_pass along with...
12877         (pass_data_init_datastructures): ...new pass_data instance and...
12878         (make_pass_init_datastructures): ...new function.
12879         (pass_early_warn_uninitialized): Convert from a global struct to a
12880         subclass of gimple_opt_pass along with...
12881         (pass_data_early_warn_uninitialized): ...new pass_data instance and...
12882         (make_pass_early_warn_uninitialized): ...new function.
12883         (pass_update_address_taken): Convert from a global struct to a
12884         subclass of gimple_opt_pass along with...
12885         (pass_data_update_address_taken): ...new pass_data instance and...
12886         (make_pass_update_address_taken): ...new function.
12887         * tree-ssanames.c (pass_release_ssa_names): Convert from a global
12888         struct to a subclass of gimple_opt_pass along with...
12889         (pass_data_release_ssa_names): ...new pass_data instance and...
12890         (make_pass_release_ssa_names): ...new function.
12891         * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
12892         subclass of gimple_opt_pass along with...
12893         (pass_data_stdarg): ...new pass_data instance and...
12894         (make_pass_stdarg): ...new function.
12895         * tree-switch-conversion.c (pass_convert_switch): Convert from a
12896         global struct to a subclass of gimple_opt_pass along with...
12897         (pass_data_convert_switch): ...new pass_data instance and...
12898         (make_pass_convert_switch): ...new function.
12899         * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
12900         to a subclass of gimple_opt_pass along with...
12901         (pass_data_tail_recursion): ...new pass_data instance and...
12902         (make_pass_tail_recursion): ...new function.
12903         (pass_tail_calls): Convert from a global struct to a subclass of
12904         gimple_opt_pass along with...
12905         (pass_data_tail_calls): ...new pass_data instance and...
12906         (make_pass_tail_calls): ...new function.
12907         * tree-vect-generic.c (pass_lower_vector): Convert from a global
12908         struct to a subclass of gimple_opt_pass along with...
12909         (pass_data_lower_vector): ...new pass_data instance and...
12910         (make_pass_lower_vector): ...new function.
12911         (pass_lower_vector_ssa): Convert from a global struct to a subclass of
12912         gimple_opt_pass along with...
12913         (pass_data_lower_vector_ssa): ...new pass_data instance and...
12914         (make_pass_lower_vector_ssa): ...new function.
12915         * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
12916         to a subclass of gimple_opt_pass along with...
12917         (pass_data_slp_vectorize): ...new pass_data instance and...
12918         (make_pass_slp_vectorize): ...new function.
12919         (pass_ipa_increase_alignment): Convert from a global struct to a
12920         subclass of simple_ipa_opt_pass along with...
12921         (pass_data_ipa_increase_alignment): ...new pass_data instance and...
12922         (make_pass_ipa_increase_alignment): ...new function.
12923         * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
12924         gimple_opt_pass along with...
12925         (pass_data_vrp): ...new pass_data instance and...
12926         (make_pass_vrp): ...new function.
12927         * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
12928         subclass of simple_ipa_opt_pass along with...
12929         (pass_data_ipa_free_lang_data): ...new pass_data instance and...
12930         (make_pass_ipa_free_lang_data): ...new function.
12931         * tsan.c (pass_tsan): Convert from a global struct to a subclass of
12932         gimple_opt_pass along with...
12933         (pass_data_tsan): ...new pass_data instance and...
12934         (make_pass_tsan): ...new function.
12935         (pass_tsan_O0): Convert from a global struct to a subclass of
12936         gimple_opt_pass along with...
12937         (pass_data_tsan_O0): ...new pass_data instance and...
12938         (make_pass_tsan_O0): ...new function.
12939         * var-tracking.c (pass_variable_tracking): Convert from a global
12940         struct to a subclass of rtl_opt_pass along with...
12941         (pass_data_variable_tracking): ...new pass_data instance and...
12942         (make_pass_variable_tracking): ...new function.
12943         * web.c (pass_web): Convert from a global struct to a subclass of
12944         rtl_opt_pass along with...
12945         (pass_data_web): ...new pass_data instance and...
12946         (make_pass_web): ...new function.
12947         * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
12948         declaration with that of...
12949         (make_pass_mode_switch_use): ...new function.
12950         (pass_resolve_sw_modes): Replace declaration with that of...
12951         (make_pass_resolve_sw_modes): ...new function.
12952         * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
12953         from a global struct to a subclass of rtl_opt_pass along with...
12954         (pass_data_mode_switch_use): ...new pass_data instance and...
12955         (make_pass_mode_switch_use): ...new function.
12956         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
12957         from a global struct to a subclass of rtl_opt_pass along with...
12958         (pass_data_resolve_sw_modes): ...new pass_data instance and...
12959         (make_pass_resolve_sw_modes): ...new function.
12960         * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
12961         struct to a subclass of rtl_opt_pass along with...
12962         (pass_data_insert_vzeroupper): ...new pass_data instance and...
12963         (make_pass_insert_vzeroupper): ...new function.
12964         * config/sparc/sparc.c (pass_work_around_errata): Convert from a
12965         global struct to a subclass of rtl_opt_pass along with...
12966         (pass_data_work_around_errata): ...new pass_data instance and...
12967         (make_pass_work_around_errata): ...new function.
12968         * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
12969         struct to a subclass of rtl_opt_pass along with...
12970         (pass_data_mips_machine_reorg2): ...new pass_data instance and...
12971         (make_pass_mips_machine_reorg2): ...new function.
12973 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
12975         * passes.c (pass_manager::operator new): New.
12977 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
12979         Handwritten part of conversion of passes to C++ classes.
12981         * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
12982         (toplev.o): Add dep on PASS_MANAGER_H.
12983         * cgraphunit.c (cgraph_process_new_functions): Rework invocation
12984         of early local pases to reflect this moving from a global to a
12985         member of gcc::pass_manager.
12986         (cgraph_add_new_function): Likewise.
12987         * lto-cgraph.c (lto_output_node): Update for conversion of
12988         struct ipa_opt_pass_d to a C++ subclass of opt_pass.
12989         * passes.c (opt_pass::clone): New.
12990         (opt_pass::gate): New.
12991         (opt_pass::execute): New.
12992         (opt_pass::opt_pass): New.
12993         (pass_manager::execute_early_local_passes): New.
12994         (pass_manager::execute_pass_mode_switching): new.
12995         (finish_optimization_passes): Convert to...
12996         (pass_manager::finish_optimization_passes): ...this.
12997         (finish_optimization_passes): Update for conversion of passes to
12998         C++ classes.
12999         (register_dump_files_1): Use has_gate since we cannot portably
13000         check a vtable entry against NULL.
13001         (dump_one_pass): Likewise.
13002         (ipa_write_summaries_2): Likewise.
13003         (ipa_write_optimization_summaries_1): Likewise.
13004         (ipa_read_summaries_1): Likewise.
13005         (ipa_read_optimization_summaries_1): Likewise.
13006         (execute_ipa_stmt_fixups): Likewise.
13007         (pass_manager::pass_manager): Rewrite pass-creation, invoking
13008         pass-creation functions rather than wiring up globals, and
13009         storing the results in fields of pass_manager generated using
13010         pass-instances.def.
13011         (pass_manager::dump_profile_report): Update for conversion of
13012         passes to C++ classes.
13013         (pass_manager::execute_ipa_summary_passes): Likewise.
13014         (execute_one_ipa_transform_pass): Likewise.
13015         (execute_one_pass): Use has_gate and has_execute since we cannot
13016         portably check a vtable entry against NULL.
13017         * pass_manager.h (pass_manager::finish_optimization_passes): New.
13018         (pass_manager): Use pass-instances.def to add fields for the
13019         various pass instances.
13020         * toplev.c (finalize): Update for move of
13021         finish_optimization_passes to a method of gcc::pass_manager.
13022         * toplev.h (finish_optimization_passes): Move to method of class
13023         pass_manager.
13024         * tree-pass.h (struct pass_data): New.
13025         (opt_pass): Convert to C++ class, make it a subclass of pass_data.
13026         (opt_pass::gate): Convert to virtual function.
13027         (opt_pass::~opt_pass): New.
13028         (opt_pass::clone): New.
13029         (opt_pass::execute): Convert to virtual function.
13030         (opt_pass::opt_pass): New.
13031         (opt_pass::ctxt_): new.
13032         (gimple_opt_pass): Convert to subclass of opt_pass.
13033         (gimple_opt_pass::gimple_opt_pass): New.
13034         (rtl_opt_pass): Convert to subclass of opt_pass.
13035         (rtl_opt_pass::rtl_opt_pass): New.
13036         (ipa_opt_pass_d): Convert to subclass of opt_pass.
13037         (ipa_opt_pass_d::ipa_opt_pass_d): New.
13038         (simple_ipa_opt_pass): Convert to subclass of opt_pass.
13039         (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
13040         * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
13041         invocation of pass_mode_switching to reflect this moving from a
13042         global to a member of gcc::pass_manager.
13043         (ix86_option_override): Rework how pass_insert_vzeroupper is
13044         added to the pass_manager to reflect autogenerated changes.
13045         * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
13047 2013-08-05  Richard Earnshaw  <rearnsha@arm.com>
13049         PR rtl-optimization/57708
13050         * recog.c (peep2_find_free_register): Validate all regs in a
13051         multi-reg mode.
13053 2013-08-05  Jan Hubicka  <jh@suse.cz>
13055         PR lto/57602
13056         * cgraph.c (verify_cgraph_node): Accept local flags from other
13057         partitions.
13058         * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
13059         (function_and_variable_visibility): Likewise.
13060         * trans-mem.c (ipa_tm_create_version): TM versions are not local.
13062 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
13064         * graph.c (init_graph_slim_pretty_print): Remove.
13065         (print_graph_cfg): Do not call it.  Use local pretty printer.
13066         (start_graph_dump): Likewise.
13068 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
13070         * gimple-pretty-print.c (buffer): Remove.
13071         (initialized): Likewise.
13072         (maybe_init_pretty_print): Likewise.
13073         (print_gimple_stmt): Do not call it.  Use non-static local
13074         pretty_printer variable.
13075         (print_gimple_expr): Likewise.
13076         (print_gimple_seq): Likewise.
13077         (gimple_dump_bb): Likewise.
13079 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
13081         * asan.c (asan_pp): Remove.
13082         (asan_pp_initialized): Likewise.
13083         (asan_pp_initialize): Likewise.
13084         (asan_pp_string): Take a pretty_printer parameter.  Adjust callers.
13085         (asan_emit_stack_protection): Tidy.  Use local pretty printer.
13086         (asan_add_global): Likewise.
13088 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
13090         * pretty-print.h (pp_base): Remove.  Adjust dependent macros.
13091         * diagnostic.h (diagnostic_flush_buffer): Adjust.
13092         * pretty-print.c (pp_formatted_text_data): Likewise.
13093         (pp_indent): Rename from pp_base_indent.
13094         (pp_format): Rename from pp_base_format.
13095         (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
13096         (pp_format_verbatim): Rename from pp_base_format_verbatim.
13097         (pp_flush): Rename from pp_base_flush.
13098         (pp_set_line_maximum_length): Rename from
13099         pp_base_set_line_maximum_length.
13100         (pp_clear_output_area): Rename from pp_base_clear_output_area.
13101         (pp_set_prefix): Rename from pp_base_set_prefix.
13102         (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
13103         (pp_emit_prefix): Rename from pp_base_emit_prefix.
13104         (pp_append_text): Rename from pp_base_append_text.
13105         (pp_formatted_text): Rename from pp_base_formatted_text.
13106         (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
13107         (pp_remaining_character_count_for_line): Rename from
13108         pp_base_remaining_character_count_for_line.
13109         (pp_newline): Rename from pp_base_newline.
13110         (pp_character): Rename from pp_base_character.
13111         (pp_string): Rename from pp_base_string.
13112         (pp_maybe_space): Rename from pp_base_maybe_space.
13113         * asan.c (asan_pp_string): Adjust.
13114         (asan_emit_stack_protection): Likewise.
13115         (asan_add_global): Likewise.
13116         * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
13117         * tree-mudflap.c (mf_varname_tree): Likewise.
13118         * tree-pretty-print.c (pp_tree_identifier): Rename from
13119         pp_base_tree_identifier.
13120         * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
13121         Declare as function.
13123 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
13125         * pretty-print.h (pp_bar_bar): New.
13126         (pp_ampersand_ampersand): Likewise.
13127         (pp_less_equal): Likewise.
13128         (pp_greater_equal): Likewise.
13129         * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
13130         printer functions instead of pp_string or operators and punctuators.
13131         (dump_gimple_call): Likewise.
13132         (dump_gimple_omp_for): Likewise.
13133         (dump_gimple_transaction): Likewise.
13134         (dump_gimple_phi): Likewise.
13135         (pp_gimple_stmt_1): Likewise.
13136         * sched-vis.c (print_insn): Likewise.
13137         * tree-mudflap.c (mf_varname_tree): Likewise.
13138         * tree-pretty-print.c (dump_block_node): Likewise.
13139         (dump_generic_node): Likewise.
13141 2013-08-02  Jan Hubicka  <jh@suse.cz>
13143         * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
13144         boundaries.
13145         * lto-streamer-out.c (tree_is_indexable): Results decls and
13146         parm decls are not indexable.
13147         (DFS_write_tree_body): Do not follow args and results.
13148         (hash_tree): Likewise.
13149         (output_functions): Rearrange so struct function is needed
13150         only when real body is output; be able to also ouptut abstract
13151         functions; output DECL_ARGUMENTS and DECL_RESULT.
13152         (lto_output): When not in WPA, ale store abstract functions.
13153         (write_symbol): Do not care about RESULT_DECL.
13154         (output_symbol_p): Handle correctly sbtract decls.
13155         * lto-streamer-in.c (input_function): Rearrange so struct
13156         function can be NULL at entry; allow streaming of
13157         functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
13158         * ipa.c (symtab_remove_unreachable_nodes): Silence confused
13159         sanity check during LTO.
13160         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
13161         RESULT_DECl and DECL_ARGUMENTS.
13162         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
13163         Likewise.
13165 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
13167         * pretty-print.h (pp_underscore): New.
13168         (pp_comma): Tidy.
13169         * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
13170         printer functions instead of pp_character.
13171         (dump_binary_rhs): Likewise.
13172         (dump_ternary_rhs): Likewise.
13173         (dump_gimple_call_args): Likewise.
13174         (pp_points_to_solution): Likewise.
13175         (dump_gimple_call): Likewise.
13176         (dump_gimple_switch): Likewise.
13177         (dump_gimple_cond): Likewise.
13178         (dump_gimple_bind): Likewise.
13179         (dump_gimple_try): Likewise.
13180         (dump_gimple_omp_for): Likewise.
13181         (dump_gimple_omp_continue): Likewise.
13182         (dump_gimple_omp_single): Likewise.
13183         (dump_gimple_omp_sections): Likewise.
13184         (dump_gimple_omp_block): Likewise.
13185         (dump_gimple_omp_critical): Likewise.
13186         (dump_gimple_transaction): Likewise.
13187         (dump_gimple_asm): Likewise.
13188         (dump_gimple_phi): Likewise.
13189         (dump_gimple_omp_parallel): Likewise.
13190         (dump_gimple_omp_task): Likewise.
13191         (dump_gimple_omp_atomic_load): Likewise.
13192         (dump_gimple_omp_atomic_store): Likewise.
13193         (dump_gimple_mem_ops): Likewise.
13194         (pp_gimple_stmt_1): Likewise.
13195         (pp_cfg_jump): Likewise.
13196         (dump_implicit_edges): Likewise.
13197         (gimple_dump_bb_for_graph): Likewise.
13198         * graph.c (draw_cfg_node): Likewise.
13199         * langhooks.c (lhd_print_error_function): Likewise.
13200         * sched-vis.c (print_exp): Likewise.
13201         (print_value): Likewise.
13202         (print_pattern): Likewise.
13203         (print_insn): Likewise.
13204         (rtl_dump_bb_for_graph): Likewise.
13205         * tree-pretty-print.c (dump_function_declaration): Likewise.
13206         (dump_array_domain): Likewise.
13207         (dump_omp_clause): Likewise.
13208         (dump_location): Likewise.
13209         (dump_generic_node): Likewise.
13210         (print_struct_decl): Likewise.
13211         * diagnostic.c (diagnostic_show_locus): Use pp_space.
13213 2013-08-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
13215         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
13216         candidate table when replacing a candidate statement.
13217         (replace_rhs_if_not_dup): Likewise.
13218         (replace_one_candidate): Likewise.
13220 2013-08-02  Jan Hubicka  <jh@suse.cz>
13221             Martin Liska  <marxin.liska@gmail.com>
13223         * cgraphunit.c (add_new_function): Fix logic when adding from
13224         late IPA pass.
13225         (assemble_thunk): Rename to ...
13226         (expand_thunk); .. this one; export; get it working with
13227         general functions; make produced gimple valid.
13228         * cgraph.h (expand_thunk): Declare.
13230 2013-08-02  Jan Hubicka  <jh@suse.cz>
13232         * ipa-cp.c (gather_context_independent_values): Use
13233         ipa_get_param_move_cost.
13234         (get_replacement_map): Remove PARAM; move parameter folding
13235         into tree-inline.c
13236         (create_specialized_node): Update.
13237         * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
13238         assert that we have gimple body; update move_cost.
13239         (count_formal_params): Assert that we have gimple body.
13240         (ipa_dump_param): New function.
13241         (ipa_alloc_node_params): Break out from ...
13242         (ipa_initialize_node_params): ... here.
13243         (ipa_get_vector_of_formal_parms): ICE when used in WPA.
13244         (ipa_write_node_info): Stream move costs.
13245         (ipa_read_node_info): Read move costs.
13246         (ipa_update_after_lto_read): Do not recompute node params.
13247         * ipa-prop.h (ipa_param_descriptor): Add move_cost.
13248         (ipa_get_param): Check we are not in WPA.
13249         (ipa_get_param_move_cost): New.
13250         * tree-inline.c (tree_function_versioning): Fold replacement as needed.
13251         * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
13252         parm numbers to be present.
13254 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
13256         PR rtl-optimization/58048
13257         * lra-constraints.c (process_alt_operands): Don't check asm
13258         operand on register.
13260 2013-08-02  Eric Botcazou  <ebotcazou@adacore.com>
13262         * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
13263         the implied StoreLoad barrier for atomic operations if before.
13265 2013-08-02  Jan Hubicka  <jh@suse.cz>
13266             Martin Liska  <marxin.liska@gmail.com>
13268         * cgraph.c (cgraph_function_body_availability): Do not check
13269         cgraph flags.
13270         * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
13271         symtab_node_availability): Declare.
13272         * ipa.c (can_replace_by_local_alias): New.
13273         (function_and_variable_visibility): Use it.
13274         * symtab.c (symtab_for_node_and_aliases,
13275         symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
13277 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
13279         PR rtl-optimization/57963
13280         * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
13281         (lra_constraints): Use them.
13283 2013-08-02  Sofiane Naci  <sofiane.naci@arm.com>
13285         * config/arm/types.md (define_attr "type"): Add "load_acq"
13286         and "store_rel".
13287         * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
13288         changes.
13289         (cortex_a53_store1): Likewise.
13291 2013-08-01  Jan Hubicka  <jh@suse.cz>
13293         * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
13294         partitions are not needed.
13296 2013-08-01  Uros Bizjak  <ubizjak@gmail.com>
13298         * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
13299         * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
13300         MAYBE_NON_Q_CLASS_P where appropriate.
13302 2013-08-01  Jan Hubicka  <jh@suse.cz>
13304         * cgraph.h (release_function_body): Declare.
13305         * tree.c (free_lang_data_in_decl): Free, parameters and return values
13306         of unused delcarations.
13308 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13310         * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
13311         RTL form when subtracting a constant.
13313 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13315         * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
13316         Generate canonical plus rtx with negated immediate instead of minus
13317         where appropriate.
13318         * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
13320 2013-08-01  Jan Hubicka  <jh@suse.cz>
13322         * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
13323         (cgraph_release_function_body): Likewise.
13324         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
13325         * cgraph.h (cgrpah_node): Rename abstract_and_needed
13326         to used_as_abstract_origin.
13327         * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
13328         symbols used as abstract origins.
13329         * cgraphunit.c (analyze_functions): Update.
13330         * ipa.c (symtab_remove_unreachable_nodes): Recompute
13331         used_as_abstract_origin.
13332         * tree-inline.c (tree_function_versioning): Update
13333         used_as_abstract_origin; be ready for DECL_RESULT and
13334         DECL_ARGUMENTS to be NULL.
13336         * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
13337         for abstract functions.
13338         * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
13339         real symbols.
13341 2013-08-01  Jan Hubicka  <jh@suse.cz>
13343         * profile.c (compute_value_histograms): Fix thinko.
13345 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
13347         * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs.  Add
13348         aarch-common-protos.h to extra_headers.
13349         (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
13350         * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
13351         * config/aarch64/t-aarch64 (aarch-common.o): Define.
13353 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
13355         * config/aarch64/aarch64.md (define_attr "type"): Delete.
13356         Include "../arm/types.md".  Define "type" attribute for all patterns.
13357         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
13358         attribute changes.
13360 2013-07-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
13362         * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
13363         to support power8 load fusion.
13364         (fusion_gpr_mem_load): Likewise.
13366         * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
13368         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
13369         declarations for power8 load fusion.
13370         (emit_fusion_gpr_load): Likewise.
13372         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
13373         tuning for power8, turn on fusion mode by default.  Turn on sign
13374         extending fusion mode if normal fusion mode is on, and we are at
13375         -O2 or -O3.
13376         (fusion_gpr_load_p): New function, return true if we can fuse an
13377         addis instruction with a dependent load to a GPR.
13378         (emit_fusion_gpr_load): Emit the instructions for power8 load
13379         fusion to GPRs.
13381         * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
13382         (VSX load fusion peepholes): New peepholes to fuse together an
13383         addi instruction with a VSX load instruction.
13385         * config/rs6000/rs6000.md (GPR load fusion peepholes): New
13386         peepholes to fuse an addis instruction with a load to a GPR base
13387         register.  If we are supporting sign extending fusions, convert
13388         sign extending loads to zero extending loads and add an explicit
13389         sign extension.
13391 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
13393         * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs.  Add
13394         aarch-common-protos.h to extra_headers.
13395         (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
13396         * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
13397         (arm_early_store_addr_dep): Likewise.
13398         (arm_no_early_alu_shift_dep): Likewise.
13399         (arm_no_early_alu_shift_value_dep): Likewise.
13400         (arm_no_early_mul_dep): Likewise.
13401         (arm_no_early_store_addr_dep): Likewise.
13402         (arm_mac_accumulator_is_mul_result): Likewise.
13403         (arm_mac_accumulator_is_result): Likewise.
13404         * config/arm/aarch-common.c: ... here.  New file.
13405         * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
13406         here to ...
13407         (arm_early_store_addr_dep): Likewise.
13408         (arm_no_early_alu_shift_dep): Likewise.
13409         (arm_no_early_alu_shift_value_dep): Likewise.
13410         (arm_no_early_mul_dep): Likewise.
13411         (arm_no_early_store_addr_dep): Likewise.
13412         (arm_mac_accumulator_is_mul_result): Likewise.
13413         (arm_mac_accumulator_is_result): Likewise.
13414         * config/arm/aarch-common-protos.h: ... here.  New file.
13415         * config/arm/t-arm (aarch-common.o): Define.
13417 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
13419         * config/arm/arm.md: Include new file "types.md".
13420         (define_attr "type"): Move from here to ...
13421         (define_attr "mul32"): Likewise.
13422         (define_attr "mul64"): Likewise.
13423         * config/arm/types.md: ... here.  New file.
13425 2013-07-31  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13427         * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
13428         * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
13430 2013-07-31  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
13432         * gen-pass-instances.awk: Fix offset of substr().
13434 2013-07-31  David Malcolm  <dmalcolm@redhat.com>
13436         * Makefile.in (pass-instances.def): New.
13437         (passes.o): Replace dependency on passes.def with one on
13438         pass-instances.def
13440         * gen-pass-instances.awk: New.
13442         * passes.c (pass_manager::pass_manager): Use pass-instances.def
13443         rather than passes.def, updating local definition of NEXT_PASS
13444         macro to add an extra NUM parameter (currently unused).
13446 2013-07-30  David Malcolm  <dmalcolm@redhat.com>
13448         * Makefile.in (PASS_MANAGER_H): New.
13449         (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
13450         (passes.o): Likewise.
13451         (statistics.o): Likewise.
13452         (cgraphunit.o): Likewise.
13453         (context.o): Depend on PASS_MANAGER_H.
13455         * pass_manager.h: New.
13457         * cgraphunit.c (cgraph_add_new_function): Update for moves
13458         of globals to fields of pass_manager.
13459         (analyze_function): Likewise.
13460         (expand_function): Likewise.
13461         (ipa_passes): Likewise.
13462         (compile): Likewise.
13464         * context.c (context::context): New.
13465         * context.h  (context::context): New.
13466         (context::get_passes): New.
13467         (context::passes_): New.
13469         * lto-cgraph.c (input_node): Update for moves of globals to
13470         fields of pass_manager.
13472         * passes.c (all_passes): Remove, in favor of a field of the
13473         same name within the new class pass_manager.
13474         (all_small_ipa_passes): Likewise.
13475         (all_lowering_passes): Likewise.
13476         (all_regular_ipa_passes): Likewise.
13477         (all_late_ipa_passes): Likewise.
13478         (all_lto_gen_passes): Likewise.
13479         (passes_by_id): Likewise.
13480         (passes_by_id_size): Likewise.
13481         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
13482         the new class pass_manager.
13483         (set_pass_for_id): Convert to...
13484         (pass_manager::set_pass_for_id): ...method.
13485         (get_pass_for_id): Convert to...
13486         (pass_manager::get_pass_for_id): ...method.
13487         (register_one_dump_file): Move body of implementation into...
13488         (pass_manager::register_one_dump_file): ...here.
13489         (register_dump_files_1): Convert to...
13490         (pass_manager::register_dump_files_1): ...method.
13491         (register_dump_files): Convert to...
13492         (pass_manager::register_dump_files): ...method.
13493         (create_pass_tab): Update for moves of globals to fields of
13494         pass_manager.
13495         (dump_passes): Move body of implementation into...
13496         (pass_manager::dump_passes): ...here.
13497         (register_pass): Move body of implementation into...
13498         (pass_manager::register_pass): ...here.
13499         (init_optimization_passes): Convert into...
13500         (pass_manager::pass_manager): ...constructor for new
13501         pass_manager class, and initialize the pass_lists array.
13502         (check_profile_consistency): Update for moves of globals to
13503         fields of pass_manager.
13504         (dump_profile_report): Move body of implementation into...
13505         (pass_manager::dump_profile_report): ...here.
13506         (ipa_write_summaries_1): Update for moves of pass lists from
13507         being globals to fields of pass_manager.
13508         (ipa_write_optimization_summaries): Likewise.
13509         (ipa_read_summaries):  Likewise.
13510         (ipa_read_optimization_summaries): Likewise.
13511         (execute_all_ipa_stmt_fixups): Likewise.
13513         * statistics.c (statistics_fini): Update for moves of globals to
13514         fields of pass_manager.
13516         * toplev.c (general_init): Replace call to
13517         init_optimization_passes with construction of the pass_manager
13518         instance.
13520         * tree-pass.h (all_passes): Remove, in favor of a field of the
13521         same name within the new class pass_manager.
13522         (all_small_ipa_passes): Likewise.
13523         (all_lowering_passes): Likewise.
13524         (all_regular_ipa_passes): Likewise.
13525         (all_lto_gen_passes): Likewise.
13526         (all_late_ipa_passes): Likewise.
13527         (passes_by_id): Likewise.
13528         (passes_by_id_size): Likewise.
13529         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
13530         the new class pass_manager.
13531         (get_pass_for_id): Remove.
13533 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
13535         * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
13536         configs.
13538 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
13540         * arm.md (mulhi3): New expand pattern.
13542 2013-07-30  Jan Hubicka  <jh@suse.cz>
13543             Martin Liska  <marxin.liska@gmail.com>
13545         * profile.c (compute_value_histograms): Do not ICE when
13546         there is mismatch only on some counters.
13548 2013-07-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
13550         PR rtl-optimization/57637
13551         * function.c (move_insn_for_shrink_wrap): Also check the
13552         GEN set of the LIVE problem for the liveness analysis
13553         if it exists, otherwise give up.
13555 2013-07-29  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
13557         PR tree-optimization/57993
13558         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
13559         replaced statement in the candidate table.
13560         (phi_add_costs): Return infinite cost when the hidden basis does
13561         not dominate all phis on which the candidate is dependent.
13562         (replace_one_candidate): Record replaced statement in the
13563         candidate table.
13565 2013-07-29  Joern Rennecke  <joern.rennecke@embecosm.com>
13567         * config/epiphany/epiphany.md (*isub_i+2): New peephole.
13568         (ashlv2si3): New expander.
13569         (*ashlv2si3_i): New define_insn_and_split.
13570         * predicates.md (float_operation): Allow patterns with three
13571         basic sub-patterns.
13573         PR rtl-optimization/58021
13574         * mode-switching.c (create_pre_exit): Always split off preceding
13575         insns if we are not at the basic block head.
13577 2013-07-29  Maciej W. Rozycki  <macro@codesourcery.com>
13579         * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
13580         (UCLIBC_DYNAMIC_LINKER): New macro.
13581         * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
13582         `-mnan=2008'.
13583         (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
13584         (UCLIBC_DYNAMIC_LINKER32): Undefine macro first.  Handle
13585         `-mnan=2008'.
13586         (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
13587         (UCLIBC_DYNAMIC_LINKERN32): Likewise.
13588         * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
13589         for SF and DF modes.  Use ieee_quad_format for TF mode.
13590         * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
13591         * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
13592         (mips_option_override): Handle `-mnan=legacy'.
13593         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
13594         `-mabs=2008' and `-mnan=2008'.
13595         (OPTION_DEFAULT_SPECS): Add "nan" default.
13596         (ASM_SPEC): Handle `-mnan='.
13597         [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
13598         * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
13599         comment accordingly.
13600         (neg<mode>2): Likewise.
13601         * config/mips/mips.opt (mabs, mnan): New options.
13602         * doc/install.texi (Configuration): Document `--with-nan=' option.
13603         * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
13604         `-mnan=' options.
13605         (MIPS Options): Document them.
13606         * config.gcc <mips*-*-*>: Handle `--with-nan='.
13607         * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
13608         * configure: Regenerate.
13609         * config.in: Regenerate.
13611 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
13613         * config/i386/i386.md (float post-reload splitters): Do not check
13614         for subregs of SSE registers.
13616 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
13617             H.J. Lu  <hongjiu.lu@intel.com>
13619         PR target/57954
13620         PR target/57988
13621         * config/i386/i386.md (post-reload splitter
13622         to avoid partial SSE reg dependency stalls): New pattern.
13624 2013-07-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13626         * config/s390/s390.md ("movcc"): Swap load and store instructions.
13628 2013-07-27  Joern Rennecke  <joern.rennecke@embecosm.com>
13630         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
13631         Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
13633 2013-07-26  Cary Coutant  <ccoutant@google.com>
13635         * dwarf2out.c (die_checksum_ordered): Don't include template
13636         instantiations in signature.
13637         (is_template_parameter): New function.
13638         (is_template_instantiation): New function.
13639         (generate_skeleton_bottom_up): Don't include template instantiations
13640         in type unit DIE.
13641         (generate_skeleton): Likewise.
13642         (break_out_comdat_types): Move recursive call to break out nested
13643         types earlier.
13644         (prune_unused_types_mark_generic_parms_dies): Call
13645         is_template_parameter.
13647 2013-07-26  Ian Bolton  <ian.bolton@arm.com>
13649         * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
13650         uses vector registers.
13651         * config/aarch64/iterators.md: Add attributes rtn and vas.
13653 2013-07-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13654             Richard Earnshaw  <richard.earnshaw@arm.com>
13656         * combine.c (simplify_comparison): Re-canonicalize operands
13657         where appropriate.
13658         * config/arm/arm.md (movcond_addsi): New splitter.
13660 2013-07-25  Sterling Augustine  <saugustine@google.com>
13662         * dwarf2out.c (size_of_pubnames): Move code to...
13663         (include_pubname_in_output): ...here.  New.
13664         (want_pubnames): Rearrange.
13665         (output_pubnames): Call include_pubname_in_output.  Move assertion.
13667 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
13669         * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
13671 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
13673         PR target/38836
13674         * doc/extend.texi: Remove obsolete builtins. Fix
13675         typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
13677 2013-07-25  Jan Hubicka  <jh@suse.cz>
13679         * cgraph.c (release_function_body): Break out from ...
13680         (cgraph_release_function_body): ... this one; also release DECL_RESULT
13681         and DECL_ARGUMENTS.
13682         * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
13683         old_tree in the map.
13684         (create_specialized_node): Update.
13685         * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
13686         into index.
13687         * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
13688         DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
13689         * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
13690         * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
13691         DECL_RESULT.
13693 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13695         * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
13696         addsi3_carryin_alt2_<optab>): Correct output template.
13698 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13700         * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
13701         Adjust for arm_restrict_it.
13702         Remove trailing whitespace.
13704 2013-07-25 Â Mark Kettenis Â <kettenis@openbsd.org>
13706         * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
13707         libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
13709         * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
13711 2013-07-25  Vladimir Makarov  <vmakarov@redhat.com>
13713         PR rtl-optimization/57960
13714         * lra-constraints.c (process_alt_operands): Use the right mode
13715         when checking strict_low.
13717 2013-07-25  Jan Hubicka  <jh@suse.cz>
13719         * lto-symtab.c (lto_cgraph_replace_node): Release function body.
13720         * cgraph.c (cgraph_remove_node): Do not release function body
13721         when in cgraph streaming.
13722         * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
13723         in other partitions are not considered reachable; fix handling of
13724         clones.
13726 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13728         * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
13730 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13732         PR target/19599
13733         PR target/57731
13734         PR target/57837
13735         * config/arm/arm.md ("*sibcall_insn): Replace use of
13736         Ss with US. Adjust output for v5 and v4t.
13737         (*sibcall_value_insn): Likewise and loosen predicate on operand0.
13739         * config/arm/constraints.md ("Ss"): Rename to US.
13741 2013-07-25  Terry Guo  <terry.guo@arm.com>
13743         * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
13744         shift_add/shift_sub0/shift_sub1 RTXs.
13746 2013-07-24  Bill Schmidt  <wschmidt@linux.ibm.com>
13747             Anton Blanchard  <anton@au1.ibm.com>
13749         * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
13750         (altivec_vpks<VI_char>ss): Likewise.
13751         (altivec_vpks<VI_char>us): Likewise.
13752         (altivec_vpku<VI_char>us): Likewise.
13753         (altivec_vpku<VI_char>um): Likewise.
13755 2013-07-24  David Malcolm  <dmalcolm@redhat.com>
13757         Introduce context class.
13759         * Makefile.in (CONTEXT_H): New.
13760         (OBJS): Add context.o.
13761         (toplev.o): Add CONTEXT_H to dependencies.
13762         (context.o): New.
13764         * toplev.c (general_init): Create the singleton gcc::context instance.
13766         * context.c: New.
13768         * context.h: New.
13770 2013-07-24  Joern Rennecke  <joern.rennecke@embecosm.com>
13772         PR rtl-optimization/57968
13773         * mode-switching.c (create_pre_exit): Allow instructions that
13774         don't set a return register to need a non-exit mode.
13776 2013-07-24  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
13777             Anton Blanchard  <anton@au1.ibm.com>
13779         * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
13780         operands to vperm for little endian.
13781         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
13782         of lvsl to create the control mask for a vperm for little endian.
13784 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13785             Anton Blanchard  <anton@au1.ibm.com>
13787         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
13788         two operands for little-endian.
13790 2013-07-23  Steve Ellcey  <sellcey@mips.com>
13792         * config/mips/mips.c (mips_case_values_threshold): New.
13793         (TARGET_CASE_VALUES_THRESHOLD): Define.
13795 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13796             Anton Blanchard  <anton@au1.ibm.com>
13798         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
13799         selection of field for vector splat in little endian mode.
13801 2013-07-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
13803         * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
13804         expanders to rs6000.md.
13805         (ior<mode>3): Likewise.
13806         (and<mode>3): Likewise.
13807         (one_cmpl<mode>2): Likewise.
13808         (nor<mode>3): Likewise.
13809         (andc<mode>3): Likewise.
13810         (eqv<mode>3): Likewise.
13811         (nand<mode>3): Likewise.
13812         (orc<mode>3): Likewise.
13814         * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
13815         declaration.
13817         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
13818         to split multi-word logical operations.
13819         (rs6000_split_logical_di): Likewise.
13820         (rs6000_split_logical): Likewise.
13822         * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
13823         (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
13824         and allow TImode operations in 32-bit.
13825         (vsx_and<mode>3_64bit): Likewise.
13826         (vsx_ior<mode>3_32bit): Likewise.
13827         (vsx_ior<mode>3_64bit): Likewise.
13828         (vsx_xor<mode>3_32bit): Likewise.
13829         (vsx_xor<mode>3_64bit): Likewise.
13830         (vsx_one_cmpl<mode>2_32bit): Likewise.
13831         (vsx_one_cmpl<mode>2_64bit): Likewise.
13832         (vsx_nor<mode>3_32bit): Likewise.
13833         (vsx_nor<mode>3_64bit): Likewise.
13834         (vsx_andc<mode>3_32bit): Likewise.
13835         (vsx_andc<mode>3_64bit): Likewise.
13836         (vsx_eqv<mode>3_32bit): Likewise.
13837         (vsx_eqv<mode>3_64bit): Likewise.
13838         (vsx_nand<mode>3_32bit): Likewise.
13839         (vsx_nand<mode>3_64bit): Likewise.
13840         (vsx_orc<mode>3_32bit): Likewise.
13841         (vsx_orc<mode>3_64bit): Likewise.
13843         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
13844         logical types in GPRs.
13846         * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
13847         logical insns to rs6000.md, and allow TImode operations in
13848         32-bit.
13849         (altivec_ior<mode>3): Likewise.
13850         (altivec_xor<mode>3): Likewise.
13851         (altivec_one_cmpl<mode>2): Likewise.
13852         (altivec_nor<mode>3): Likewise.
13853         (altivec_andc<mode>3): Likewise.
13855         * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
13856         attributes for moving the 128-bit logical operations into
13857         rs6000.md.
13858         (BOOL_REGS_OUTPUT): Likewise.
13859         (BOOL_REGS_OP1): Likewise.
13860         (BOOL_REGS_OP2): Likewise.
13861         (BOOL_REGS_UNARY): Likewise.
13862         (BOOL_REGS_AND_CR0): Likewise.
13863         (one_cmpl<mode>2): Add support for DI logical operations on
13864         32-bit, splitting the operations to 32-bit.
13865         (anddi3): Likewise.
13866         (iordi3): Likewise.
13867         (xordi3): Likewise.
13868         (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
13869         changes to combine the 32/64-bit code, allow logical operations on
13870         TI mode in 32-bit, and to use similar match_operator patterns like
13871         scalar mode uses.  Combine the Altivec and VSX code for logical
13872         operations, and move it here.
13873         (ior<mode>3, 128-bit types): Likewise.
13874         (xor<mode>3, 128-bit types): Likewise.
13875         (one_cmpl<mode>3, 128-bit types): Likewise.
13876         (nor<mode>3, 128-bit types): Likewise.
13877         (andc<mode>3, 128-bit types): Likewise.
13878         (eqv<mode>3, 128-bit types): Likewise.
13879         (nand<mode>3, 128-bit types): Likewise.
13880         (orc<mode>3, 128-bit types): Likewise.
13881         (and<mode>3_internal): Likewise.
13882         (bool<mode>3_internal): Likewise.
13883         (boolc<mode>3_internal1): Likewise.
13884         (boolc<mode>3_internal2): Likewise.
13885         (boolcc<mode>3_internal1): Likewise.
13886         (boolcc<mode>3_internal2): Likewise.
13887         (eqv<mode>3_internal1): Likewise.
13888         (eqv<mode>3_internal2): Likewise.
13889         (one_cmpl1<mode>3_internal): Likewise.
13891 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
13893         * config/microblaze/microblaze.c (microblaze_expand_prologue):
13894         Rename flag_stack_usage to flag_stack_usage_info.
13896 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
13898         * config/microblaze/sync.md: New file.
13899         * config/microblaze/microblaze.md: Include sync.md
13900         * config/microblaze/microblaze.c: Add print_operand 'y'.
13901         * config/microblaze/constraints.md: Add memory_contraint
13902         'Q' which is a single register.
13904 2013-07-23  Eric Botcazou  <ebotcazou@adacore.com>
13906         * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
13908 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
13910         * reload.c (find_reloads): Exit loop once we find this operand
13911         cannot be reloaded somehow for this alternative.
13913         * reload.c (find_reloads): Exit loop once we find a hard register.
13915         * rtlanal.c (computed_jump_p): Exit loop once we find label
13916         reference is used.
13918         * i386.c (ix86_pad_returns): Exit loop after setting replace.
13920         * cfgloopmanip.c (remove_path): Exit loop after setting
13921         irred_invalidated.
13923         * gensupport.c (subst_dup): Avoid loop if code is not
13924         MATCH_DUP nor MATCH_OP_DUP.
13926 2013-07-23  Nicklas Bo Jensen  <nbjensen@gmail.com>
13928         * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
13930 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
13932         * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
13933         true for SP_REGNUM if mode == ptr_mode.
13934         * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
13935         with value R0_REGNUM + 31.
13937 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
13939         * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
13940         pad pointer-typed argument downward.
13942 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
13944         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
13945         and __ILP32__ when the ILP32 model is in use.
13947 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
13949         * config/aarch64/aarch64.c (POINTER_BYTES): New define.
13950         (aarch64_load_symref_appropriately): In the case of
13951         SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
13952         to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
13953         (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
13954         change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
13955         if 'mode' doesn't equal to 'ptr_mode'.
13956         (aarch64_output_mi_thunk): Add an assertion on the alignment of
13957         'vcall_offset'; change to call aarch64_emit_move differently depending
13958         on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
13959         to calculate the upper bound of 'vcall_offset'.
13960         (aarch64_cannot_force_const_mem): Change to also return true if
13961         mode != ptr_mode.
13962         (aarch64_legitimize_reload_address): In the case of large
13963         displacements, add new local variable 'xmode' and an assertion
13964         based on it; change to use 'xmode' to generate the new rtx and
13965         reload.
13966         (aarch64_asm_trampoline_template): Change to generate the template
13967         differently depending on TARGET_ILP32 or not; change to use
13968         'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
13969         (aarch64_trampoline_size): Removed.
13970         (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
13971         and replace immediate literals with it.  Change to use 'ptr_mode'
13972         instead of 'DImode' and call convert_memory_address if the mode
13973         of 'fnaddr' doesn't equal to 'ptr_mode'.
13974         (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
13975         to output symbol.
13976         (aarch64_elf_asm_destructor): Likewise.
13977         * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
13978         on TARGET_ILP32 instead of aarch64_trampoline_size.
13979         * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
13980         of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
13981         (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
13982         (loadwb_pair<GPI:mode>_<P:mode>): ... this.  Replace PTR with P.
13983         (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
13984         (storewb_pair<GPI:mode>_<P:mode>): ... this.
13985         (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
13986         depending on the value of 'mode'.
13987         (add_losym_<mode>): New.
13988         (ldr_got_small_<mode>): New, based on ldr_got_small.
13989         (ldr_got_small): Remove.
13990         (ldr_got_small_sidi): New.
13991         * config/aarch64/iterators.md (P): New.
13992         (PTR): Change to 'ptr_mode' in the condition.
13994 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
13996         * config.gcc (aarch64*-*-*): Support --with-abi.
13997         (aarch64*-*-elf): Support --with-multilib-list.
13998         (aarch64*-*-linux*): Likewise.
13999         (supported_defaults): Add abi to aarch64*-*-*.
14000         * configure.ac: Mention AArch64 for --with-multilib-list.
14001         * configure: Re-generated.
14002         * config/aarch64/biarchilp32.h: New file.
14003         * config/aarch64/biarchlp64.h: New file.
14004         * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
14005         (ABI_SPEC): Ditto.
14006         (MULTILIB_DEFAULTS): Ditto.
14007         (DRIVER_SELF_SPECS): Ditto.
14008         (ASM_SPEC): Update to also substitute -mabi.
14009         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
14010         file whose name depends on -mabi= and -mbig-endian.
14011         * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
14012         TARGET_ILP32.
14013         (POINTER_SIZE): New define.
14014         (POINTERS_EXTEND_UNSIGNED): Ditto.
14015         (enum aarch64_abi_type): New enumeration tag.
14016         (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
14017         (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
14018         (TARGET_ILP32): New define.
14019         * config/aarch64/aarch64.opt (mabi): New.
14020         (aarch64_abi): New.
14021         (ilp32, lp64): New values for -mabi.
14022         * config/aarch64/t-aarch64 (comma): New define.
14023         (MULTILIB_OPTIONS): Ditto.
14024         (MULTILIB_DIRNAMES): Ditto.
14025         * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
14026         * doc/invoke.texi: Document -mabi for AArch64.
14028 2013-07-23  Georg-Johann Lay  <avr@gjlay.de>
14030         * config/avr/avr.md: Explain asm print modifier 'r' for REG.
14032 2013-07-22  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
14033             Anton Blanchard  <anton@au1.ibm.com>
14035         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
14036         endianness when selecting field to splat.
14038 2013-07-22  Eric Christopher  <echristo@gmail.com>
14040         * dwarf2out.c (die_odr_checksum): New function to use
14041         CHECKSUM_ macros and ULEB128 for DIE tag.
14042         (generate_type_signature): Use.
14044 2013-07-22  Eric Botcazou  <ebotcazou@adacore.com>
14046         * config.gcc (sparc*-*-*): Accept leon3 processor.
14047         (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
14048         * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
14049         * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
14050         * config/sparc/sparc.opt (enum processor_type): Add leon3.
14051         (mfix-ut699): Adjust comment.
14052         * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
14053         (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
14054         (CPP_CPU_SPEC): Likewise.
14055         (ASM_CPU_SPEC): Likewise.
14056         * config/sparc/sparc.c (leon3_cost): New constant.
14057         (sparc_option_override): Add leon3 support.
14058         (mem_ref): New function.
14059         (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
14060         (sparc_do_work_around_errata): Look into the instruction in the delay
14061         slot and adjust accordingly.  Add fix for the data cache nullify issues
14062         of the UT699.  Change insertion position for the NOP.
14063         * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
14064         (leon3_load): New reservation.
14065         (leon_store): Bump latency to 2.
14066         (grfpu): New automaton.
14067         (grfpu_alu): New unit.
14068         (grfpu_ds): Likewise.
14069         (leon_fp_alu): Adjust.
14070         (leon_fp_mult): Delete.
14071         (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
14072         (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
14073         * config/sparc/sparc.md (cpu): Add leon3.
14074         * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
14075         (swapsi): Likewise.
14076         (atomic_test_and_set): Likewise.
14077         (ldstub): Likewise.
14079 2013-07-22  Jürgen Urban  <JuergenUrban@gmx.de>
14081         * config.gcc (mips*-*-*): Add --with-fpu support.  Make single the
14082         default for R5900 targets.
14083         * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
14084         (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
14085         * config/mips/mips.c (mips_option_override): Report an error for
14086         -march=r5900 -mhard-float -mdouble-float.  Use spu_single_format
14087         for -march=r5900 -mhard-float.
14089 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
14091         * df-problems.c (can_move_insns_across): Exit loop once we
14092         find a non-fixed, non-global register.
14094         * ipa-pure-const.c (propagate_nothrow): Exit loop after
14095         setting can_throw.
14097         * omega.c (omega_eliminate_red): Break after setting red_found.
14098         (omega_problem_has_red_equations): Similarly after setting found.
14099         (omega_query_variable): Similarly after setting coupled.
14101 2013-07-22  Marek Polacek  <polacek@redhat.com>
14103         * gimplify.c: Don't include gimple.h twice.
14105 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14107         * config/arm/constraints.md (Pd): Allow TARGET_THUMB
14108         instead of TARGET_THUMB1.
14109         (Pz): New constraint.
14110         * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
14111         encodings.
14112         (compare_negsi_si): Likewise.
14113         (compare_addsi2_op0): Likewise.
14114         (compare_addsi2_op1): Likewise.
14115         (addsi3_carryin_<optab>): Likewise.
14116         (addsi3_carryin_alt2_<optab>): Likewise.
14117         (addsi3_carryin_shift_<optab>): Disable cond_exec variant
14118         for arm_restrict_it.
14119         (subsi3_carryin): Likewise.
14120         (arm_subsi3_insn): Add alternatives for 16-bit encoding.
14121         (minmax_arithsi): Disable for arm_restrict_it.
14122         (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
14123         (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
14124         (satsi_<SAT:code>_shift): Likewise.
14125         (arm_shiftsi3): Add alternative for 16-bit encoding.
14126         (arm32_movhf): Disable for arm_restrict_it.
14127         (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
14128         (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
14130 2013-07-22  Sofiane Naci  <sofiane.naci@arm.com>
14132         * config/arm/arm.md (attribute "insn"): Delete.
14133         (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
14134         "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
14135         (not_shiftsi): Update for attribute change.
14136         (not_shiftsi_compare0): Likewise.
14137         (not_shiftsi_compare0_scratch): Likewise.
14138         (arm_one_cmplsi2): Likewise.
14139         (thumb1_one_cmplsi2): Likewise.
14140         (notsi_compare0): Likewise.
14141         (notsi_compare0_scratch): Likewise.
14142         (thumb1_movdi_insn): Likewise.
14143         (arm_movsi_insn): Likewise.
14144         (movhi_insn_arch4): Likewise.
14145         (movhi_bytes): Likewise.
14146         (arm_movqi_insn): Likewise.
14147         (thumb1_movqi_insn): Likewise.
14148         (arm32_movhf): Likewise.
14149         (thumb1_movhf): Likewise.
14150         (arm_movsf_soft_insn): Likewise.
14151         (thumb1_movsf_insn): Likewise.
14152         (thumb_movdf_insn): Likewise.
14153         (movsicc_insn): Likewise.
14154         (movsfcc_soft_insn): Likewise.
14155         (and_scc): Likewise.
14156         (cond_move): Likewise.
14157         (if_move_not): Likewise.
14158         (if_not_move): Likewise.
14159         (if_shift_move): Likewise.
14160         (if_move_shift): Likewise.
14161         (if_shift_shift): Likewise.
14162         (if_not_arith): Likewise.
14163         (if_arith_not): Likewise.
14164         (cond_move_not): Likewise.
14165         * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
14166         (neon_mov<mode>): Likewise.
14167         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
14168         (thumb2_movsi_vfp): Likewise.
14169         (movsf_vfp): Likewise.
14170         (thumb2_movsf_vfp): Likewise.
14171         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
14172         change.
14173         (cortexa7_older_only): Likewise.
14174         (cortexa7_younger): Likewise.
14175         * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
14176         (1020alu_shift_op): Likewise.
14177         (1020alu_shift_reg_op): Likewise.
14178         * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
14179         (alu_shift_op): Likewise.
14180         (alu_shift_reg_op): Likewise.
14181         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
14182         (11_alu_shift_op): Likewise.
14183         (11_alu_shift_reg_op): Likewise.
14184         * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
14185         (9_alu_shift_reg_op): Likewise.
14186         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
14187         change.
14188         (cortex_a15_alu_shift): Likewise.
14189         (cortex_a15_alu_shift_reg): Likewise.
14190         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
14191         (cortex_a5_alu_shift): Likewise.
14192         * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
14193         change.
14194         (cortex_a53_alu_shift): Likewise.
14195         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
14196         change.
14197         (cortex_a7_alu_reg): Likewise.
14198         (cortex_a7_alu_shift): Likewise.
14199         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
14200         (cortex_a8_alu_shift): Likewise.
14201         (cortex_a8_alu_shift_reg): Likewise.
14202         (cortex_a8_mov): Likewise.
14203         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
14204         (cortex_a9_dp_shift): Likewise.
14205         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
14206         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
14207         (cortex_r4_mov): Likewise.
14208         (cortex_r4_alu_shift): Likewise.
14209         (cortex_r4_alu_shift_reg): Likewise.
14210         * config/arm/fa526.md (526_alu_op): Update for attribute change.
14211         (526_alu_shift_op): Likewise.
14212         * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
14213         * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
14214         (626te_alu_shift_op): Likewise.
14215         * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
14216         (726te_alu_op): Likewise.
14217         (726te_alu_shift_op): Likewise.
14218         (726te_alu_shift_reg_op): Likewise.
14219         * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
14220         (mp626_alu_shift_op): Likewise.
14221         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
14222         (pj4_alu_e1_conds): Likewise.
14223         (pj4_alu): Likewise.
14224         (pj4_alu_conds): Likewise.
14225         (pj4_shift): Likewise.
14226         (pj4_shift_conds): Likewise.
14227         (pj4_alu_shift): Likewise.
14228         (pj4_alu_shift_conds): Likewise.
14230 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14232         * config/arm/predicates.md (shiftable_operator_strict_it):
14233         New predicate.
14234         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
14235         Disable cond_exec version for arm_restrict_it.
14236         (thumb2_smaxsi3): Convert to generate cond_exec.
14237         (thumb2_sminsi3): Likewise.
14238         (thumb32_umaxsi3): Likewise.
14239         (thumb2_uminsi3): Likewise.
14240         (thumb2_abssi2): Adjust constraints for arm_restrict_it.
14241         (thumb2_neg_abssi2): Likewise.
14242         (thumb2_mov_scc): Add alternative for 16-bit encoding.
14243         (thumb2_movsicc_insn): Adjust alternatives.
14244         (thumb2_mov_negscc): Disable for arm_restrict_it.
14245         (thumb2_mov_negscc_strict_it): New pattern.
14246         (thumb2_mov_notscc_strict_it): New pattern.
14247         (thumb2_mov_notscc): Disable for arm_restrict_it.
14248         (thumb2_ior_scc): Likewise.
14249         (thumb2_ior_scc_strict_it): New pattern.
14250         (thumb2_cond_move): Adjust for arm_restrict_it.
14251         (thumb2_cond_arith): Disable for arm_restrict_it.
14252         (thumb2_cond_arith_strict_it): New pattern.
14253         (thumb2_cond_sub): Adjust for arm_restrict_it.
14254         (thumb2_movcond): Likewise.
14255         (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
14256         (thumb2_zero_extendhisi2_v6): Likewise.
14257         (thumb2_zero_extendqisi2_v6): Likewise.
14258         (orsi_notsi_si): Likewise.
14259         (orsi_not_shiftsi_si): Likewise.
14261 2013-07-22  Georg-Johann Lay  <avr@gjlay.de>
14263         * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
14264         instruction sequence is 1 byte shorter.
14266 2013-07-22  Uros Bizjak  <ubizjak@gmail.com>
14268         * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
14269         it is not needed after split.
14271 2013-07-20  Iain Sandoe  <iain@codesourcery.com>
14273         PR target/51784
14274         * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
14275         second label for nonlocal goto receivers. Don't output pic base labels
14276         unless we're producing PIC; mark that action unreachable().
14277         (ix86_save_reg): If the function contains a nonlocal label, save the
14278         PIC base reg.
14279         * config/darwin-protos.h (machopic_should_output_picbase_label): New.
14280         * config/darwin.c (emitted_pic_label_num): New GTY.
14281         (update_pic_label_number_if_needed): New.
14282         (machopic_output_function_base_name): Adjust for nonlocal receiver
14283         case.
14284         (machopic_should_output_picbase_label): New.
14285         * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
14286         (nonlocal_goto_receiver): New insn and split.
14288 2013-07-20  James Greenhalgh  <james.greenhalgh@arm.com>
14290         * config/aarch64/aarch64-builtins.c
14291         (aarch64_fold_builtin): Fold abs in all modes.
14292         * config/aarch64/aarch64-simd-builtins.def
14293         (abs): Enable for all modes.
14294         * config/aarch64/arm_neon.h
14295         (vabs<q>_s<8,16,32,64): Rewrite using builtins.
14296         (vabs_f64): Add missing intrinsic.
14298 2013-07-19  Ian Bolton  <ian.bolton@arm.com>
14300         * config/aarch64/arm_neon.h (vabs_s64): New function
14302 2013-07-19  Georg-Johann Lay  <avr@gjlay.de>
14304         PR target/57516
14305         * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
14306         * config/avr/avr.md (adjust_len): Add `round'.
14307         * config/avr/avr-protos.h (avr_out_round): New prototype.
14308         (avr_out_plus): Add `out_label' argument.
14309         * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
14310         (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
14311         Handle the case where `insn' is just a pattern.
14312         (avr_out_bitop): Handle the case where `insn' is just a pattern.
14313         (avr_out_round): New function.
14314         (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
14316 2013-07-18  David Holsgrove  <david.holsgrove@xilinx.com>
14318         * config/microblaze/microblaze.c (microblaze_expand_prologue):
14319         Add check for flag_stack_usage to handle -fstack-usage support
14321 2013-07-18  Pat Haugen  <pthaugen@us.ibm.com>
14323         * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
14324         interaction for new Power8 flags and VSX.
14326 2013-07-18  Sriraman Tallam  <tmsriram@google.com>
14328         PR middle-end/57698
14329         * tree-inline.c (expand_call_inline): Emit errors during
14330         early_inlining only if optimization is not turned on.
14332 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
14334         * passes.def: New.
14336         * passes.c (init_optimization_passes): Move the construction of
14337         the pass hierarchy into a new passes.def file.
14339         * Makefile.in (passes.o): Add dependency on passes.def.
14341 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
14343         * passes.c (init_optimization_passes): Introduce macros for
14344         constructing the tree of passes (INSERT_PASSES_AFTER,
14345         PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
14346         TERMINATE_PASS_LIST).
14348 2013-07-18  Vladimir Makarov  <vmakarov@redhat.com>
14349             Wei Mi  <wmi@google.com>
14351         PR rtl-optimization/57878
14352         * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
14353         top.
14354         (reload_pseudo_compare_func): Check nregs first for reload
14355         pseudos.
14357 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
14359         * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
14361 2013-07-18  Po-Chun Chang  <pchang9@cs.wisc.edu>
14363         * read-rtl.c (validate_const_int): Once an invalid character is
14364         seen, quit the loop.
14366         * gengtype.c (write_roots): Similarly once we find the "deletable"
14367         or "if_marked" option.
14369 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
14371         * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
14372         "xtab" and "sat".  Move value "clz" from here to ...
14373         (attriubte "type"): ... here.
14374         (satsi_<SAT:code>): Delete "insn" attribute.
14375         (satsi_<SAT:code>_shift): Likewise.
14376         (arm_zero_extendqisi2addsi): Likewise.
14377         (arm_extendqisi2addsi): Likewise.
14378         (clzsi2): Update for attribute changes.
14379         (rbitsi2): Likewise.
14380         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
14381         attribute.
14382         (arm_usatsihi): Likewise.
14383         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
14385 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
14387         * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
14388         "arlo_imm".  Rename "alu_reg" to "arlo_reg".  Rename "simple_alu_shift"
14389         to "extend".  Split "alu_shift" into "shift" and "arlo_shift".  Split
14390         "alu_shift_reg" into "shift_reg" and "arlo_shift_reg".  List types
14391         in alphabetical order.
14392         (attribute "core_cycles"): Update for attribute changes.
14393         (arm_addsi3): Likewise.
14394         (addsi3_compare0): Likewise.
14395         (addsi3_compare0_scratch): Likewise.
14396         (addsi3_compare_op1): Likewise.
14397         (addsi3_compare_op2): Likewise.
14398         (compare_addsi2_op0): Likewise.
14399         (compare_addsi2_op1): Likewise.
14400         (addsi3_carryin_shift_<optab>): Likewise.
14401         (subsi3_carryin_shift): Likewise.
14402         (rsbsi3_carryin_shift): Likewise.
14403         (arm_subsi3_insn): Likewise.
14404         (subsi3_compare0): Likewise.
14405         (subsi3_compare): Likewise.
14406         (arm_andsi3_insn): Likewise.
14407         (thumb1_andsi3_insn): Likewise.
14408         (andsi3_compare0): Likewise.
14409         (andsi3_compare0_scratch): Likewise.
14410         (zeroextractsi_compare0_scratch
14411         (andsi_not_shiftsi_si): Likewise.
14412         (iorsi3_insn): Likewise.
14413         (iorsi3_compare0): Likewise.
14414         (iorsi3_compare0_scratch): Likewise.
14415         (arm_xorsi3): Likewise.
14416         (thumb1_xorsi3_insn): Likewise.
14417         (xorsi3_compare0): Likewise.
14418         (xorsi3_compare0_scratch): Likewise.
14419         (satsi_<SAT:code>_shift): Likewise.
14420         (rrx): Likewise.
14421         (arm_shiftsi3): Likewise.
14422         (shiftsi3_compare0): Likewise.
14423         (not_shiftsi): Likewise.
14424         (not_shiftsi_compare0): Likewise.
14425         (not_shiftsi_compare0_scratch): Likewise.
14426         (arm_one_cmplsi2): Likewise.
14427         (thumb_one_complsi2): Likewise.
14428         (notsi_compare0): Likewise.
14429         (notsi_compare0_scratch): Likewise.
14430         (thumb1_zero_extendhisi2): Likewise.
14431         (arm_zero_extendhisi2): Likewise.
14432         (arm_zero_extendhisi2_v6): Likewise.
14433         (arm_zero_extendhisi2addsi): Likewise.
14434         (thumb1_zero_extendqisi2): Likewise.
14435         (thumb1_zero_extendqisi2_v6): Likewise.
14436         (arm_zero_extendqisi2): Likewise.
14437         (arm_zero_extendqisi2_v6): Likewise.
14438         (arm_zero_extendqisi2addsi): Likewise.
14439         (thumb1_extendhisi2): Likewise.
14440         (arm_extendhisi2): Likewise.
14441         (arm_extendhisi2_v6): Likewise.
14442         (arm_extendqisi): Likewise.
14443         (arm_extendqisi_v6): Likewise.
14444         (arm_extendqisi2addsi): Likewise.
14445         (thumb1_extendqisi2): Likewise.
14446         (thumb1_movdi_insn): Likewise.
14447         (arm_movsi_insn): Likewise.
14448         (movsi_compare0): Likewise.
14449         (movhi_insn_arch4): Likewise.
14450         (movhi_bytes): Likewise.
14451         (arm_movqi_insn): Likewise.
14452         (thumb1_movqi_insn): Likewise.
14453         (arm32_movhf): Likewise.
14454         (thumb1_movhf): Likewise.
14455         (arm_movsf_soft_insn): Likewise.
14456         (thumb1_movsf_insn): Likewise.
14457         (movdf_soft_insn): Likewise.
14458         (thumb_movdf_insn): Likewise.
14459         (arm_cmpsi_insn): Likewise.
14460         (cmpsi_shiftsi): Likewise.
14461         (cmpsi_shiftsi_swp): Likewise.
14462         (arm_cmpsi_negshiftsi_si): Likewise.
14463         (movsicc_insn): Likewise.
14464         (movsfcc_soft_insn): Likewise.
14465         (arith_shiftsi): Likewise.
14466         (arith_shiftsi_compare0
14467         (arith_shiftsi_compare0_scratch
14468         (sub_shiftsi): Likewise.
14469         (sub_shiftsi_compare0
14470         (sub_shiftsi_compare0_scratch
14471         (and_scc): Likewise.
14472         (cond_move): Likewise.
14473         (if_plus_move): Likewise.
14474         (if_move_plus): Likewise.
14475         (if_move_not): Likewise.
14476         (if_not_move): Likewise.
14477         (if_shift_move): Likewise.
14478         (if_move_shift): Likewise.
14479         (if_shift_shift): Likewise.
14480         (if_not_arith): Likewise.
14481         (if_arith_not): Likewise.
14482         (cond_move_not): Likewise.
14483         (thumb1_ashlsi3): Set type attribute.
14484         (thumb1_ashrsi3): Likewise.
14485         (thumb1_lshrsi3): Likewise.
14486         (thumb1_rotrsi3): Likewise.
14487         (shiftsi3_compare0_scratch): Likewise.
14488         * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
14489         (neon_mov<mode>): Likewise.
14490         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
14491         attribute changes.
14492         (thumb2_movsi_insn): Likewise.
14493         (thumb2_cmpsi_neg_shiftsi): Likewise.
14494         (thumb2_extendqisi_v6): Likewise.
14495         (thumb2_zero_extendhisi2_v6): Likewise.
14496         (thumb2_zero_extendqisi2_v6): Likewise.
14497         (thumb2_shiftsi3_short): Likewise.
14498         (thumb2_addsi3_compare0_scratch): Likewise.
14499         (orsi_not_shiftsi_si): Likewise.
14500         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
14501         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
14502         changes.
14503         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
14504         (1020alu_shift_op): Likewise.
14505         (1020alu_shift_reg_op): Likewise.
14506         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
14507         (alu_shift_op): Likewise.
14508         (alu_shift_reg_op): Likewise.
14509         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
14510         (11_alu_shift_op): Likewise.
14511         (11_alu_shift_reg_op): Likewise.
14512         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
14513         (9_alu_shift_reg_op): Likewise.
14514         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
14515         changes.
14516         (cortex_a15_alu_shift): Likewise.
14517         (cortex_a15_alu_shift_reg): Likewise.
14518         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
14519         changes.
14520         (cortex_a5_alu_shift): Likewise.
14521         * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
14522         changes.
14523         (cortex_a53_alu_shift): Likewise.
14524         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
14525         changes.
14526         (cortex_a7_alu_reg): Likewise.
14527         (cortex_a7_alu_shift): Likewise.
14528         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
14529         changes.
14530         (cortex_a8_alu_shift): Likewise.
14531         (cortex_a8_alu_shift_reg): Likewise.
14532         (cortex_a8_mov): Likewise.
14533         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
14534         (cortex_a9_dp_shift): Likewise.
14535         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
14536         changes.
14537         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
14538         changes.
14539         (cortex_r4_mov): Likewise.
14540         (cortex_r4_alu_shift): Likewise.
14541         (cortex_r4_alu_shift_reg): Likewise.
14542         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
14543         (526_alu_shift_op): Likewise.
14544         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
14545         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
14546         (626te_alu_shift_op): Likewise.
14547         * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
14548         (726te_alu_op): Likewise.
14549         (726te_alu_shift_op): Likewise.
14550         (726te_alu_shift_reg_op): Likewise.
14551         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
14552         (mp626_alu_shift_op): Likewise.
14553         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
14554         (pj4_alu_e1_conds): Likewise.
14555         (pj4_alu): Likewise.
14556         (pj4_alu_conds): Likewise.
14557         (pj4_shift): Likewise.
14558         (pj4_shift_conds): Likewise.
14559         (pj4_alu_shift): Likewise.
14560         (pj4_alu_shift_conds): Likewise.
14561         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
14562         changes.
14563         (cortexa7_older_only): Likewise.
14564         (cortexa7_younger): Likewise.
14566 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
14568         * ipa-pure-const.c (generate_summary): Rename to...
14569         (pure_const_generate_summary): ... this.
14571 2013-07-17  Iain Sandoe  <iain@codesourcery.com>
14573         * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
14575 2013-07-17  Yvan Roux  <yvan.roux@linaro.org>
14577         PR target/57909
14578         * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
14579         usage in HI mode.
14581 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14583         * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
14584         enabled without -march=zEC12.
14585         * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
14586         flags to be set.
14588 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
14590         * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
14591         (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
14592         (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
14593         terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
14594         (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
14595         * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
14596         ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
14597         ISA_HAS_FP4.
14598         <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
14599         and ISA_HAS_NMADD3_NMSUB3.
14600         * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
14601         (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
14602         (nmsub4<mode>, nmsub3<mode>): Likewise.
14603         (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
14605 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
14607         * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
14608         TARGET_MIPS5400 checking.
14610 2013-07-16  Jakub Jelinek  <jakub@redhat.com>
14611             Peter Bergner  <bergner@vnet.ibm.com>
14613         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
14614         registers in the comment.
14615         (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
14616         (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
14617         rather than FIRST_PSEUDO_REGISTERS.
14619 2013-07-16  Peter Bergner  <bergner@vnet.ibm.com>
14621         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
14622         enable extra ISA flags with TARGET_HTM.
14624 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
14626         * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
14627         Fix comment typos.
14629 2013-07-15  Cong Hou  <congh@google.com>
14631         * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
14632         in compare function for sorting.
14634 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
14636         * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
14637         * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
14638         * config/rs6000/rs6000.opt: Add -mhtm option.
14639         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
14640         (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
14641         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
14642         __HTM__ if the HTM instructions are available.
14643         * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
14644         htm_spr_reg_operand): New define_predicates.
14645         * config/rs6000/rs6000.md (define_attr "type"): Add htm.
14646         (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
14647         Include htm.md.
14648         * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
14649         BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
14650         HTM builtin functions.
14651         * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
14652         (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
14653         (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
14654         (rs6000_builtin_mask_calculate): Likewise.
14655         (rs6000_option_override_internal): Likewise.
14656         (bdesc_htm): Add new HTM builtin support.
14657         (htm_spr_num): New function.
14658         (htm_spr_regno): Likewise.
14659         (rs6000_htm_spr_icode): Likewise.
14660         (htm_expand_builtin): Likewise.
14661         (htm_init_builtins): Likewise.
14662         (rs6000_expand_builtin): Add support for HTM builtin functions.
14663         (rs6000_init_builtins): Likewise.
14664         (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
14665         option.
14666         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
14667         (TARGET_HTM, MASK_HTM): Define macros.
14668         (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
14669         (FIXED_REGISTERS): Likewise.
14670         (CALL_USED_REGISTERS): Likewise.
14671         (CALL_REALLY_USED_REGISTERS): Likewise.
14672         (REG_ALLOC_ORDER): Likewise.
14673         (enum reg_class): Likewise.
14674         (REG_CLASS_NAMES): Likewise.
14675         (REG_CLASS_CONTENTS): Likewise.
14676         (REGISTER_NAMES): Likewise.
14677         (ADDITIONAL_REGISTER_NAMES): Likewise.
14678         (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
14679         RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
14680         (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
14681         * config/rs6000/htm.md: New file.
14682         * config/rs6000/htmintrin.h: New file.
14683         * config/rs6000/htmxlintrin.h: New file.
14685 2013-07-15  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14687         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
14688         Define SYMBOL_TINY_GOT, update comment.
14689         * config/aarch64/aarch64.c
14690         (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
14691         (aarch64_expand_mov_immediate): Likewise.
14692         (aarch64_print_operand): Likewise.
14693         (aarch64_classify_symbol): Likewise.
14694         * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
14695         (ldr_got_tiny): Define.
14697 2013-07-13  Tobias Grosser  <tobias@grosser.es>
14699         PR tree-optimization/54094
14700         * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
14701           scheduling dimension for the parallelism check from the polyhedral
14702           information in the AST.
14703         * graphite-dependences.c (carries_deps): Do not assume the schedule is
14704           in 2D + 1 form.
14706 2013-07-13  Jason Merrill  <jason@redhat.com>
14708         * print-tree.c (debug_vec_tree): Use debug_raw.
14709         (debug_raw (vec<tree, va_gc> &)): New.
14710         (debug_raw (vec<tree, va_gc> *)): New.
14711         * tree.h: Declare them.
14713 2013-07-13  Bin Cheng  <bin.cheng@arm.com>
14715         * ifcvt.c (ifcvt_after_combine): New static variable.
14716         (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
14717         for size.
14718         (if_convert): New parameter after_combine.  Set ifcvt_after_combine.
14719         (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
14720         rest_of_handle_if_after_reload): Pass new argument for if_convert.
14722 2013-07-12  Maciej W. Rozycki  <macro@codesourcery.com>
14724         * config/mips/mips.c (mips_expand_call): Remove empty statement.
14726 2013-07-12  Michael Matz  <matz@suse.de>
14728         PR middle-end/55771
14729         * convert.c (convert_to_real): Reject non-float inner types.
14731 2013-07-12  Tejas Belagod  <tejas.belagod@arm.com>
14733         * config/aarch64/aarch64-protos.h
14734         (aarch64_simd_immediate_valid_for_move): Remove.
14735         * config/aarch64/aarch64.c (simd_immediate_info): New member.
14736         (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
14737         cases.
14738         (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
14740 2013-07-11  Steve Ellcey  <sellcey@mips.com>
14742         * config/mips/mips.c (mips_conditional_register_usage): Do not
14743         use t[0-7] registers in MIPS16 mode when optimizing for size.
14745 2013-07-11  Sriraman Tallam  <tmsriram@google.com>
14747         * config/i386/i386.c (dispatch_function_versions): Fix array
14748         indexing of function_version_info to match actual_versions.
14750 2013-07-11  Teresa Johnson  <tejohnson@google.com>
14752         * vec.h (struct va_gc): Move release out-of-line.
14753         (va_gc::release): Call ggc_free on released vec.
14755 2013-07-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14757         * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
14758         Require GOT register as additional operand in UNSPEC.
14759         ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
14760         ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
14761         ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
14762         ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
14763         ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
14764         ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
14765         ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
14767 2013-07-11  Georg-Johann Lay  <avr@gjlay.de>
14769         PR target/57631
14770         * config/avr/avr.c (avr_set_current_function): Sanity-check signal
14771         name seen by assembler/linker rather if available.
14773 2013-07-11  Andreas Schwab  <schwab@suse.de>
14775         * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
14777 2013-07-10  Vladimir Makarov  <vmakarov@redhat.com>
14779         * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
14781 2013-07-10  Joseph Myers  <joseph@codesourcery.com>
14783         * doc/tm.texi.in: Move hook documentation to ....
14784         * target.def: ... here.
14786         * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
14787         text on @hook line.
14788         * doc/tm.texi: Regenerate.
14790 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
14792         PR c++/57869
14793         * doc/invoke.texi: Document -Wconditionally-supported.
14795 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
14797         PR target/57844
14798         * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
14799         of my_fp.
14801 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
14803         PR target/57506
14804         * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
14805         (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
14806         (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
14807         Remove duplicate devices.
14808         * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
14809         * config/avr/t-multilib: Regenerate.
14810         * config/avr/avr-tables.opt: Regenerate.
14811         * doc/avr-mmcu.texi: Regenerate.
14813 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
14815         PR target/56987
14816         * config/avr/avr.opt (Waddr-space-convert): Fix typo.
14818 2013-07-10  Graham Stott  <graham.stott@btinternet.com>
14820         * config/mips/mips.c (mips_rtx_costs): Very slightly increase
14821         the cost of MULT when optimizing for size.
14823 2013-07-10  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
14825         * config/cr16/cr16-protos.h: Don't include target.h.
14827 2013-07-09  Joseph Myers  <joseph@codesourcery.com>
14829         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
14830         adjust register size for TDmode and TFmode for VSX registers.
14832 2013-07-08  Kai Tietz  <ktietz@redhat.com>
14834         PR target/56892
14835         * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
14836         hook_bool_const_tree_true.
14838 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14840         * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
14841         * config/s390/s390.h: Remove F*_REGNUM macro definitions.
14842         * config/s390/s390.md: Define FPR*_REGNUM constants.
14843         Fix FPR2_REGNUM constant (18 -> 17).
14844         ("*trunc<BFP:mode><DFP_ALL:mode>2")
14845         ("*trunc<DFP_ALL:mode><BFP:mode>2")
14846         ("trunc<BFP:mode><DFP_ALL:mode>2")
14847         ("trunc<DFP_ALL:mode><BFP:mode>2")
14848         ("*extend<BFP:mode><DFP_ALL:mode>2")
14849         ("*extend<DFP_ALL:mode><BFP:mode>2")
14850         ("extend<BFP:mode><DFP_ALL:mode>2")
14851         ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
14852         FPR4_REGNUM.
14854 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
14856         * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
14858 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14860         * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
14861         and cfun_fpr_bit_p to cfun_fpr_save_p.
14862         (s390_frame_area, s390_register_info, s390_frame_info)
14863         (s390_emit_prologue, s390_emit_epilogue)
14864         (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
14865         register numbers.
14866         * config/s390/s390.h: Define *_REGNUM macros for floating point
14867         register numbers.
14869 2013-07-08  Eric Botcazou  <ebotcazou@adacore.com>
14871         * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
14873 2013-07-08  Po-Chun Chang  <pchang9@cs.wisc.edu>
14875         PR rtl-optimization/57786
14876         * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
14877         and break out of the loop when it is set to false.
14879 2013-07-08  Jakub Jelinek  <jakub@redhat.com>
14881         PR target/57819
14882         * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
14883         Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
14884         (const_int 63)) 0)).
14885         * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
14886         using simplify_gen_unary instead of gen_rtx_*_EXTEND.
14887         * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
14889         PR rtl-optimization/57829
14890         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
14891         mask bits outside of mode are just sign-extension from mode to HWI.
14893 2013-07-08  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
14895         * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
14896         * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
14897         adjust_address instead of change_address to keep info about alignment.
14898         (emit_strmov): Remove.
14899         (emit_memmov): New function.
14900         (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
14901         (expand_movmem_epilogue): Likewise and return updated rtx for
14902         destination.
14903         (expand_constant_movmem_prologue): Likewise and return updated rtx for
14904         destination and source.
14905         (decide_alignment): Refactor, handle vector_loop.
14906         (ix86_expand_movmem): Likewise.
14907         (ix86_expand_setmem): Likewise.
14908         * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
14910 2013-07-07  Uros Bizjak  <ubizjak@gmail.com>
14912         * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
14913         signature_TM2_ebx, it interferes with signature_INTEL_ebx.
14915 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
14917         * config/i386/sse.md (sse_movlhps): Change alternative 3
14918         of operand 2 to "m".
14920 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
14922         PR target/57807
14923         * config/i386/sse.md (iptr): New mode attribute.
14924         (sse2_movq128): Add pointer size overrides for Intel asm dialect.
14925         (<sse>_vm<plusminus_insn><mode>3): Ditto.
14926         (<sse>_vmmul<mode>3): Ditto.
14927         (<sse>_vmdiv<mode>3): Ditto.
14928         (sse_vmrcpv4sf2): Ditto.
14929         (<sse>_vmsqrt<mode>2): Ditto.
14930         (sse_vmrsqrtv4sf2): Ditto.
14931         (<sse>_vm<code><mode>3): Ditto.
14932         (avx_vmcmp<mode>3): Ditto.
14933         (<sse>_vmmaskcmp<mode>3): Ditto.
14934         (<sse>_comi): Ditto.
14935         (<sse>_ucomi): Ditto.
14936         (*xop_vmfrcz_<mode>): Ditto.
14937         (*fmai_fmadd_<mode>): Ditto.
14938         (*fmai_fmsub_<mode>): Ditto.
14939         (*fmai_fnmadd_<mode>): Ditto.
14940         (*fmai_fnmsub_<mode>): Ditto.
14941         (*fma4i_vmfmadd_<mode>): Ditto.
14942         (*fma4i_vmfmsub_<mode>): Ditto.
14943         (*fma4i_vmfnmadd_<mode>): Ditto.
14944         (*fma4i_vmfnmsub_<mode>): Ditto.
14945         (*xop_vmfrcz_<mode>): Ditto.
14946         (sse_cvtps2pi): Ditto.
14947         (sse_cvttps2pi): Ditto.
14948         (sse_cvtss2si): Ditto.
14949         (sse_cvtss2si_2): Ditto.
14950         (sse_cvtss2siq_2): Ditto.
14951         (sse_cvttss2si): Ditto.
14952         (sse_cvttss2siq): Ditto.
14953         (sse_cvtsd2si): Ditto.
14954         (sse_cvtsd2si_2): Ditto.
14955         (sse_cvtsd2siq_2): Ditto.
14956         (sse_cvttsd2si): Ditto.
14957         (sse_cvttsd2siq): Ditto.
14958         (sse_cvtsd2ss): Ditto.
14959         (sse_cvtss2sd): Ditto.
14960         (avx2_pbroadcast<mode>): Ditto.
14961         (avx2_pbroadcast<mode>_1): Ditto.
14962         (*avx_vperm_broadcast_v4sf): Ditto.
14964         (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
14965         (sse_movlhps): Ditto.
14966         (sse_storehps): Ditto.
14967         (sse_loadhps): Ditto.
14968         (sse_storelps): Ditto.
14969         (sse_loadlps): Ditto.
14970         (*vec_concatv4sf): Ditto.
14971         (*vec_interleave_highv2df): Ditto.
14972         (*vec_interleave_lowv2df): Ditto.
14973         (*vec_extractv2df_1_sse): Ditto.
14974         (*vec_extractv2df_0_sse): Ditto.
14975         (sse2_storelpd): Ditto.
14976         (sse2_loadlpd): Ditto.
14977         (sse2_movsd): Ditto.
14978         (*vec_concatv4si): Ditto.
14979         (vec_concatv2di): Ditto.
14981         * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
14982         for Intel asm dialect.
14983         (mmx_punpcklwd): Ditto.
14984         (mmx_punpckldq): Ditto.
14986         * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
14987         for intel assembler dialect.
14989 2013-07-06  Jakub Jelinek  <jakub@redhat.com>
14991         PR target/29776
14992         * fold-const.c (tree_call_nonnegative_warnv_p): Return true
14993         for BUILT_IN_C{LZ,LRSB}*.
14994         * tree.h (CASE_INT_FN): Add FN##IMAX case.
14995         * tree-vrp.c (extract_range_basic): Handle
14996         BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*.  For
14997         BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
14998         fall thru to code calling set_value*.
14999         * builtins.c (expand_builtin): Remove *IMAX cases.
15000         (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
15001         if width is bigger than 2*HWI.
15003 2013-07-05  Vladimir Makarov  <vmakarov@redhat.com>
15005         PR rtl-optimization/55342
15006         * lra-int.h (lra_subreg_reload_pseudos): New.
15007         * lra.c: Add undoing optional reloads to the block diagram.
15008         (lra_subreg_reload_pseudos): New.
15009         (lra_optional_reload_pseudos): Change comments.
15010         (lra): Init and clear lra_subreg_reload_pseudos.  Clear
15011         lra_optional_reload_pseudos after undo transformations.
15012         * lra-assigns.c (pseudo_prefix_title): New.
15013         (lra_setup_reg_renumber): Use it.
15014         (spill_for): Ditto.  Check subreg reload pseudos too.
15015         (assign_by_spills): Consider subreg reload pseudos too.
15016         * lra-constraints.c (simplify_operand_subreg): Use
15017         lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
15018         (curr_insn_transform): Recognize and do optional reloads.
15019         (undo_optional_reloads): New.
15020         (lra_undo_inheritance): Call undo_optional_reloads.
15022 2013-07-05  Thomas Quinot  <quinot@adacore.com>
15024         * tree-complex.c (expand_complex_operations_1): Fix typo.
15026 2013-07-04  Tejas Belagod  <tejas.belagod@arm.com>
15028         * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
15029         (tune_params): New member 'const vec_costs'.
15030         * config/aarch64/aarch64.c (generic_vector_cost): New.
15031         (generic_tunings): New member 'generic_vector_cost'.
15032         (aarch64_builtin_vectorization_cost): New.
15033         (aarch64_add_stmt_cost): New.
15034         (TARGET_VECTORIZE_ADD_STMT_COST): New.
15035         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
15037 2013-07-03  Jakub Jelinek  <jakub@redhat.com>
15039         PR target/57777
15040         * config/i386/predicates.md (vsib_address_operand): Disallow
15041         SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
15043 2013-07-03  Hans-Peter Nilsson  <hp@bitrange.com>
15045         PR middle-end/55030
15046         * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
15047         expand_builtin_setjmp_receiver.
15048         (expand_label): Adjust, call expand_builtin_setjmp_receiver
15049         with NULL for the label parameter.
15050         * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
15051         the frame-pointer.  Adjust comments.
15052         [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
15053         only if LABEL is non-NULL.
15055 2013-07-03  Yufeng Zhang  <yufeng.zhang@arm.com>
15057         * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
15058         (ARM_ABI_AAPCS64): Ditto.
15059         (arm_abi): Ditto.
15060         (ARM_DEFAULT_ABI): Ditto.
15062 2013-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
15064         * config/aarch64/aarch64-builtins.c
15065         (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
15066         * config/aarch64/aarch64-simd-builtins.def (ld1): New.
15067         (st1): Likewise.
15068         * config/aarch64/aarch64-simd.md
15069         (aarch64_ld1<VALL:mode>): New.
15070         (aarch64_st1<VALL:mode>): Likewise.
15071         * config/aarch64/arm_neon.h
15072         (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
15074 2013-07-02  Sriraman Tallam  <tmsriram@google.com>
15076         * config/i386/i386.c (gate_insert_vzeroupper): Check if
15077         target ISA is AVX.
15078         (ix86_option_override_internal):Turn on all -mavx target flags by
15079         default as they are dependent on AVX anyway.
15081 2013-07-02  Cary Coutant  <ccoutant@google.com>
15083         * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
15084         deterministic hash.
15085         (loc_checksum_ordered): Likewise.
15086         (hash_loc_operands): Remove inline keyword.
15088 2013-07-02  Jakub Jelinek  <jakub@redhat.com>
15090         PR tree-optimization/57741
15091         * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
15092         non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
15093         or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
15094         Allow REAL_CST step_exprs if flag_associative_math.
15095         (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
15097 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
15099         * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
15101 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
15103         * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
15105 2013-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15107         * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
15108         encoding.
15109         (iorsi3_insn): Likewise.
15110         (arm_xorsi3): Likewise.
15112 2013-07-01  Sofiane Naci  <sofiane.naci@arm.com>
15114         * arm.md (attribute "wtype"): Delete.  Move attribute values from here
15115         to ...
15116         (attribute "type"): ... here, and prefix with "wmmx_".
15117         (attribute "core_cycles"): Update for attribute changes.
15118         * iwmmxt.md (tbcstv8qi): Update for attribute changes.
15119         (tbcstv4hi): Likewise.
15120         (tbcstv2si): Likewise.
15121         (iwmmxt_iordi3): Likewise.
15122         (iwmmxt_xordi3): Likewise.
15123         (iwmmxt_anddi3): Likewise.
15124         (iwmmxt_nanddi3): Likewise.
15125         (iwmmxt_arm_movdi): Likewise.
15126         (iwmmxt_movsi_insn): Likewise.
15127         (mov<mode>_internal): Likewise.
15128         (and<mode>3_iwmmxt): Likewise.
15129         (ior<mode>3_iwmmxt): Likewise.
15130         (xor<mode>3_iwmmxt): Likewise.
15131         (add<mode>3_iwmmxt): Likewise.
15132         (ssaddv8qi3): Likewise.
15133         (ssaddv4hi3): Likewise.
15134         (ssaddv2si3): Likewise.
15135         (usaddv8qi3): Likewise.
15136         (usaddv4hi3): Likewise.
15137         (usaddv2si3): Likewise.
15138         (sub<mode>3_iwmmxt): Likewise.
15139         (sssubv8qi3): Likewise.
15140         (sssubv4hi3): Likewise.
15141         (sssubv2si3): Likewise.
15142         (ussubv8qi3): Likewise.
15143         (ussubv4hi3): Likewise.
15144         (ussubv2si3): Likewise.
15145         (mulv4hi3_iwmmxt): Likewise.
15146         (smulv4hi3_highpart): Likewise.
15147         (umulv4hi3_highpart): Likewise.
15148         (iwmmxt_wmacs): Likewise.
15149         (iwmmxt_wmacsz): Likewise.
15150         (iwmmxt_wmacu): Likewise.
15151         (iwmmxt_wmacuz): Likewise.
15152         (iwmmxt_clrdi): Likewise.
15153         (iwmmxt_clrv8qi): Likewise.
15154         (iwmmxt_clr4hi): Likewise.
15155         (iwmmxt_clr2si): Likewise.
15156         (iwmmxt_uavgrndv8qi3): Likewise.
15157         (iwmmxt_uavgrndv4hi3): Likewise.
15158         (iwmmxt_uavgv8qi3): Likewise.
15159         (iwmmxt_uavgv4hi3): Likewise.
15160         (iwmmxt_tinsrb): Likewise.
15161         (iwmmxt_tinsrh): Likewise.
15162         (iwmmxt_tinsrw): Likewise.
15163         (iwmmxt_textrmub): Likewise.
15164         (iwmmxt_textrmsb): Likewise.
15165         (iwmmxt_textrmuh): Likewise.
15166         (iwmmxt_textrmsh): Likewise.
15167         (iwmmxt_textrmw): Likewise.
15168         (iwmxxt_wshufh): Likewise.
15169         (eqv8qi3): Likewise.
15170         (eqv4hi3): Likewise.
15171         (eqv2si3): Likewise.
15172         (gtuv8qi3): Likewise.
15173         (gtuv4hi3): Likewise.
15174         (gtuv2si3): Likewise.
15175         (gtv8qi3): Likewise.
15176         (gtv4hi3): Likewise.
15177         (gtv2si3): Likewise.
15178         (smax<mode>3_iwmmxt): Likewise.
15179         (umax<mode>3_iwmmxt): Likewise.
15180         (smin<mode>3_iwmmxt): Likewise.
15181         (umin<mode>3_iwmmxt): Likewise.
15182         (iwmmxt_wpackhss): Likewise.
15183         (iwmmxt_wpackwss): Likewise.
15184         (iwmmxt_wpackdss): Likewise.
15185         (iwmmxt_wpackhus): Likewise.
15186         (iwmmxt_wpackwus): Likewise.
15187         (iwmmxt_wpackdus): Likewise.
15188         (iwmmxt_wunpckihb): Likewise.
15189         (iwmmxt_wunpckihh): Likewise.
15190         (iwmmxt_wunpckihw): Likewise.
15191         (iwmmxt_wunpckilb): Likewise.
15192         (iwmmxt_wunpckilh): Likewise.
15193         (iwmmxt_wunpckilw): Likewise.
15194         (iwmmxt_wunpckehub): Likewise.
15195         (iwmmxt_wunpckehuh): Likewise.
15196         (iwmmxt_wunpckehuw): Likewise.
15197         (iwmmxt_wunpckehsb): Likewise.
15198         (iwmmxt_wunpckehsh): Likewise.
15199         (iwmmxt_wunpckehsw): Likewise.
15200         (iwmmxt_wunpckelub): Likewise.
15201         (iwmmxt_wunpckeluh): Likewise.
15202         (iwmmxt_wunpckeluw): Likewise.
15203         (iwmmxt_wunpckelsb): Likewise.
15204         (iwmmxt_wunpckelsh): Likewise.
15205         (iwmmxt_wunpckelsw): Likewise.
15206         (ror<mode>3): Likewise.
15207         (ashr<mode>3_iwmmxt): Likewise.
15208         (lshr<mode>3_iwmmxt): Likewise.
15209         (ashl<mode>3_iwmmxt): Likewise.
15210         (ror<mode>3_di): Likewise.
15211         (ashr<mode>3_di): Likewise.
15212         (lshr<mode>3_di): Likewise.
15213         (ashl<mode>3_di): Likewise.
15214         (iwmmxt_wmadds): Likewise.
15215         (iwmmxt_wmaddu): Likewise.
15216         (iwmmxt_tmia): Likewise.
15217         (iwmmxt_tmiaph): Likewise.
15218         (iwmmxt_tmiabb): Likewise.
15219         (iwmmxt_tmiatb): Likewise.
15220         (iwmmxt_tmiabt): Likewise.
15221         (iwmmxt_tmiatt): Likewise.
15222         (iwmmxt_tmovmskb): Likewise.
15223         (iwmmxt_tmovmskh): Likewise.
15224         (iwmmxt_tmovmskw): Likewise.
15225         (iwmmxt_waccb): Likewise.
15226         (iwmmxt_wacch): Likewise.
15227         (iwmmxt_waccw): Likewise.
15228         (iwmmxt_waligni): Likewise.
15229         (iwmmxt_walignr): Likewise.
15230         (iwmmxt_walignr0): Likewise.
15231         (iwmmxt_walignr1): Likewise.
15232         (iwmmxt_walignr2): Likewise.
15233         (iwmmxt_walignr3): Likewise.
15234         (iwmmxt_wsadb): Likewise.
15235         (iwmmxt_wsadh): Likewise.
15236         (iwmmxt_wsadbz): Likewise.
15237         (iwmmxt_wsadhz): Likewise.
15238         * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
15239         (iwmmxt_wabsdiffb): Likewise.
15240         (iwmmxt_wabsdiffh): Likewise.
15241         (iwmmxt_wabsdiffw): Likewise.
15242         (iwmmxt_waddsubhx): Likewise
15243         (iwmmxt_wsubaddhx): Likewise.
15244         (addc<mode>3): Likewise.
15245         (iwmmxt_avg4): Likewise.
15246         (iwmmxt_avg4r): Likewise.
15247         (iwmmxt_wmaddsx): Likewise.
15248         (iwmmxt_wmaddux): Likewise.
15249         (iwmmxt_wmaddsn): Likewise.
15250         (iwmmxt_wmaddun): Likewise.
15251         (iwmmxt_wmulwsm): Likewise.
15252         (iwmmxt_wmulwum): Likewise.
15253         (iwmmxt_wmulsmr): Likewise.
15254         (iwmmxt_wmulumr): Likewise.
15255         (iwmmxt_wmulwsmr): Likewise.
15256         (iwmmxt_wmulwumr): Likewise.
15257         (iwmmxt_wmulwl): Likewise.
15258         (iwmmxt_wqmulm): Likewise.
15259         (iwmmxt_wqmulwm): Likewise.
15260         (iwmmxt_wqmulmr): Likewise.
15261         (iwmmxt_wqmulwmr): Likewise.
15262         (iwmmxt_waddbhusm): Likewise.
15263         (iwmmxt_waddbhusl): Likewise.
15264         (iwmmxt_wqmiabb): Likewise.
15265         (iwmmxt_wqmiabt): Likewise.
15266         (iwmmxt_wqmiatb): Likewise.
15267         (iwmmxt_wqmiatt): Likewise.
15268         (iwmmxt_wqmiabbn): Likewise.
15269         (iwmmxt_wqmiabtn): Likewise.
15270         (iwmmxt_wqmiatbn): Likewise.
15271         (iwmmxt_wqmiattn): Likewise.
15272         (iwmmxt_wmiabb): Likewise.
15273         (iwmmxt_wmiabt): Likewise.
15274         (iwmmxt_wmiatb): Likewise.
15275         (iwmmxt_wmiatt): Likewise.
15276         (iwmmxt_wmiabbn): Likewise.
15277         (iwmmxt_wmiabtn): Likewise.
15278         (iwmmxt_wmiatbn): Likewise.
15279         (iwmmxt_wmiattn): Likewise.
15280         (iwmmxt_wmiawbb): Likewise.
15281         (iwmmxt_wmiawbt): Likewise.
15282         (iwmmxt_wmiawtb): Likewise.
15283         (iwmmxt_wmiawtt): Likewise.
15284         (iwmmxt_wmiawbbn): Likewise.
15285         (iwmmxt_wmiawbtn): Likewise.
15286         (iwmmxt_wmiawtbn): Likewise.
15287         (iwmmxt_wmiawttn): Likewise.
15288         (iwmmxt_wmerge): Likewise.
15289         (iwmmxt_tandc<mode>3): Likewise.
15290         (iwmmxt_torc<mode>3): Likewise.
15291         (iwmmxt_torvsc<mode>3): Likewise.
15292         (iwmmxt_textrc<mode>3): Likewise.
15293         * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
15294         (wmmxt_pack): Likewise.
15295         (wmmxt_mult_c1): Likewise.
15296         (wmmxt_mult_c2): Likewise.
15297         (wmmxt_alu_c1): Likewise.
15298         (wmmxt_alu_c2): Likewise.
15299         (wmmxt_alu_c3): Likewise.
15300         (wmmxt_transfer_c1): Likewise.
15301         (wmmxt_transfer_c2): Likewise.
15302         (wmmxt_transfer_c3): Likewise.
15303         (marvell_f_iwmmxt_wstr): Likewise.
15304         (marvell_f_iwmmxt_wldr): Likewise.
15306 2013-06-29  Yufeng Zhang  <yufeng.zhang@arm.com>
15308         * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
15310 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
15312         Revert:
15313         2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
15314         * lra-constraints.c (need_for_split_p): Check call used hard regs
15315         living through calls.
15317         * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
15318         call used regs for call insn.
15320 2013-06-28  Jakub Jelinek  <jakub@redhat.com>
15322         PR target/57736
15323         * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
15324         mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
15326 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
15328         * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
15330 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
15332         * lra-constraints.c (need_for_split_p): Check call used hard regs
15333         living through calls.
15335 2013-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
15337         PR target/57744
15338         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
15339         to tie with any other modes.  Eliminate Altivec vector mode tests,
15340         since these are a subset of ALTIVEC or VSX vector modes.  Simplify
15341         code, to return 0 if testing MODE2 for a condition, if we've
15342         already tested MODE1 for the same condition.
15344 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15346         * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
15347         layout.
15349 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15351         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
15352         Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
15354 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15356         * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
15357         Define.
15358         (aarch64_symbolic_constant_p): Remove.
15359         * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
15360         static.  Fix line length and white space.
15361         (aarch64_symbolic_constant_p): Remove.
15362         * config/aarch64/predicates.md (aarch64_valid_symref):
15363         Use aarch64_classify_symbol_expression.
15365 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15367         * config/arm/constraints.md (Ts): New constraint.
15368         * config/arm/arm.md (arm_movqi_insn): Add alternatives for
15369         16-bit encodings.
15370         (compare_scc): Use "Ts" constraint for operand 0.
15371         (ior_scc_scc): Likewise.
15372         (and_scc_scc): Likewise.
15373         (and_scc_scc_nodom): Likewise.
15374         (ior_scc_scc_cmp): Likewise for operand 7.
15375         (and_scc_scc_cmp): Likewise.
15376         * config/arm/thumb2.md (thumb2_movsi_insn):
15377         Add alternatives for 16-bit encodings.
15378         (thumb2_movhi_insn): Likewise.
15379         (thumb2_movsicc_insn): Likewise.
15380         (thumb2_and_scc): Take 'and' outside cond_exec.  Use "Ts" constraint.
15381         (thumb2_negscc): Use "Ts" constraint.
15382         Move mvn instruction outside cond_exec block.
15383         * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
15384         for 16-bit encodings.
15386 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15388         * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
15389         encoding.
15390         (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
15391         (mulsi3subsi): Likewise.
15392         (mulsidi3adddi): Likewise.
15393         (mulsidi3_v6): Likewise.
15394         (umulsidi3_v6): Likewise.
15395         (umulsidi3adddi_v6): Likewise.
15396         (smulsi3_highpart_v6): Likewise.
15397         (umulsi3_highpart_v6): Likewise.
15398         (mulhisi3tb): Likewise.
15399         (mulhisi3bt): Likewise.
15400         (mulhisi3tt): Likewise.
15401         (maddhisi4): Likewise.
15402         (maddhisi4tb): Likewise.
15403         (maddhisi4tt): Likewise.
15404         (maddhidi4): Likewise.
15405         (maddhidi4tb): Likewise.
15406         (maddhidi4tt): Likewise.
15407         (zeroextractsi_compare0_scratch): Likewise.
15408         (insv_zero): Likewise.
15409         (insv_t2): Likewise.
15410         (anddi_notzesidi_di): Likewise.
15411         (anddi_notsesidi_di): Likewise.
15412         (andsi_notsi_si): Likewise.
15413         (iordi_zesidi_di): Likewise.
15414         (xordi_zesidi_di): Likewise.
15415         (andsi_iorsi3_notsi): Likewise.
15416         (smax_0): Likewise.
15417         (smax_m1): Likewise.
15418         (smin_0): Likewise.
15419         (not_shiftsi): Likewise.
15420         (unaligned_loadsi): Likewise.
15421         (unaligned_loadhis): Likewise.
15422         (unaligned_loadhiu): Likewise.
15423         (unaligned_storesi): Likewise.
15424         (unaligned_storehi): Likewise.
15425         (extv_reg): Likewise.
15426         (extzv_t2): Likewise.
15427         (divsi3): Likewise.
15428         (udivsi3): Likewise.
15429         (arm_zero_extendhisi2addsi): Likewise.
15430         (arm_zero_extendqisi2addsi): Likewise.
15431         (compareqi_eq0): Likewise.
15432         (arm_extendhisi2_v6): Likewise.
15433         (arm_extendqisi2addsi): Likewise.
15434         (arm_movt): Likewise.
15435         (thumb2_ldrd): Likewise.
15436         (thumb2_ldrd_base): Likewise.
15437         (thumb2_ldrd_base_neg): Likewise.
15438         (thumb2_strd): Likewise.
15439         (thumb2_strd_base): Likewise.
15440         (thumb2_strd_base_neg): Likewise.
15441         (arm_negsi2): Add alternative for 16-bit encoding.
15442         (arm_one_cmplsi2): Likewise.
15444 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15446         * config/arm/predicates.md (arm_cond_move_operator): New predicate.
15447         * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
15448         (movdfcc): Likewise.
15449         * config/arm/vfp.md (*thumb2_movsf_vfp):
15450         Disable predication for arm_restrict_it.
15451         (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
15452         (*thumb2_movdfcc_vfp): Likewise.
15453         (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
15454         *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
15455         *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
15456         *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
15457         *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
15458         *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
15459         *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
15460         *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
15461         *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
15462         *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
15463         *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
15464         *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
15465         Disable predication for arm_restrict_it.
15467 2013-06-28  Kirill Yukhin  <kirill.yukhin@intel.com>
15469         * config/i386/bmiintrin.h (_bextr_u32): New.
15470         (_bextr_u64): Ditto.
15472 2013-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
15474         * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
15475         (mips64r5900el-*-elf*): Include mips/n32-elf.h.
15476         * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
15477         (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
15478         * config/mips/n32-elf.h: ...this new file.
15480 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
15482         PR target/57224
15483         * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
15484         IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
15486 2013-06-27  Catherine Moore  <clm@codesourcery.com>
15488         * config/mips/mips-tables.opt: Regenerate.
15489         * config/mips/mips-cpus.def: Add m14ke and m14kec.
15490         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
15491         * doc/invoke.texi: Add -m14kc.
15493 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
15495         PR target/57623
15496         * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
15497         constraints of operand 1 and 2.
15499         PR target/57623
15500         * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
15501         to match RTL canonicalization.  Swap predicates and
15502         constraints of operand 1 and 2.
15504 2013-06-27  Vladimir Makarov  <vmakarov@redhat.com>
15506         * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
15507         Process OP_INOUT regs for splitting too.
15509 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
15511         * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
15512         decl before the loop, initialize to NULL.
15513         (vectorizable_load): Initialize ptr_incr to NULL.
15515 2013-06-27  Martin Jambor  <mjambor@suse.cz>
15517         PR lto/57208
15518         * ipa-ref.h (ipa_maybe_record_reference): Declare.
15519         * ipa-ref.c (ipa_maybe_record_reference): New function.
15520         * cgraphclones.c (cgraph_create_virtual_clone): Use it.
15521         * ipa-cp.c (create_specialized_node): Record potential references from
15522         aggvals.
15523         * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
15525 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
15527         * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
15528         parameter 'mode' of type 'enum machine_mode mode'; change to pass
15529         'mode' to force_reg.
15530         (aarch64_add_offset): Update calls to aarch64_force_temporary.
15531         (aarch64_expand_mov_immediate): Likewise.
15533 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
15535         * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
15536         'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
15538 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15540         * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
15541         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
15542         (struct machine_function): Add tbegin_p.
15543         (s390_canonicalize_comparison): Fold CC mode compares to
15544         conditional jump if possible.
15545         (s390_emit_jump): Return the emitted jump.
15546         (s390_branch_condition_mask, s390_branch_condition_mnemonic):
15547         Handle CCRAWmode compares.
15548         (s390_option_override): Default to -mhtm if available.
15549         (s390_reg_clobbered_rtx): Handle floating point regs as well.
15550         (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
15551         FPRs instead of df_regs_ever_live_p.
15552         (s390_optimize_nonescaping_tx): New function.
15553         (s390_init_frame_layout): Extend clobbered_regs array to cover
15554         FPRs as well.
15555         (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
15556         (s390_expand_tbegin): New function.
15557         (enum s390_builtin): New enum definition.
15558         (code_for_builtin): New array definition.
15559         (s390_init_builtins): New function.
15560         (s390_expand_builtin): New function.
15561         (TARGET_INIT_BUILTINS): Define.
15562         (TARGET_EXPAND_BUILTIN): Define.
15563         * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
15564         * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
15565         (s390_alc_comparison): Likewise.
15566         * config/s390/s390-modes.def: Add CCRAWmode.
15567         * config/s390/s390.h (processor_flags): Add PF_TX.
15568         (TARGET_CPU_HTM): Define macro.
15569         (TARGET_HTM): Define macro.
15570         (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
15571         * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
15572         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
15573         (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
15574         (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
15575         (TBEGIN_MASK, TBEGINC_MASK): New constants.
15576         ("*cc_to_int"): Move up.
15577         ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
15578         constants other than 0.
15579         ("*ccraw_to_int"): New insn and splitter definition.
15580         ("tbegin", "tbegin_nofloat", "tbegin_retry")
15581         ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
15582         ("tx_assist"): New expander.
15583         ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
15584         ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
15585         * config/s390/s390.opt: Add -mhtm option.
15586         * config/s390/s390-protos.h (s390_emit_jump): Add return type.
15587         * config/s390/htmxlintrin.h: New file.
15588         * config/s390/htmintrin.h: New file.
15589         * config/s390/s390intrin.h: New file.
15590         * doc/extend.texi: Document htm builtins.
15591         * config.gcc: Add the new header files to extra_headers.
15593 2013-06-26  Thomas Schwinge  <thomas@codesourcery.com>
15595         * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
15596         (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
15598 2013-06-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
15599             Pat Haugen  <pthaugen@us.ibm.com>
15600             Peter Bergner  <bergner@vnet.ibm.com>
15602         * config/rs6000/power8.md: New.
15603         * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
15604         setting for power8 entry.
15605         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
15606         * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
15607         test for Power4/Power5 only.
15608         (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
15609         support.
15610         (force_new_group): Adjust comment.
15611         * config/rs6000/rs6000.md: Include power8.md.
15613 2013-06-26  Greta Yorsh  <Greta.Yorsh@arm.com>
15615         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
15616         * config/arm/arm-protos.h (arm_max_conditional_execute): New
15617         declaration.
15618         (tune_params): Update comment.
15619         * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
15620         (arm_max_conditional_execute): New function.
15621         (thumb2_final_prescan_insn): Use max_insn_skipped and
15622         MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
15624 2013-06-25  Jakub Jelinek  <jakub@redhat.com>
15626         PR tree-optimization/57705
15627         * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
15628         SSA_NAME step, provided that it is not defined inside the loop.
15629         (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
15630         (get_initial_def_for_induction): Handle SSA_NAME IV step.
15632 2013-06-25  Martin Jambor  <mjambor@suse.cz>
15634         PR middle-end/57670
15635         * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
15636         * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
15637         calls in the dump.
15638         (ipa_note_param_call): Initialize member_ptr flag.
15639         (ipa_analyze_indirect_call_uses): Set member_ptr flag.
15640         (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
15641         (ipa_write_indirect_edge_info): Stream member_ptr flag.
15642         (ipa_read_indirect_edge_info): Likewise.
15644 2013-06-25  Richard Biener  <rguenther@suse.de>
15646         PR middle-end/56977
15647         * passes.c (init_optimization_passes): Move pass_fold_builtins
15648         and pass_dce earlier with -Og.
15650 2013-06-25  Eric Botcazou  <ebotcazou@adacore.com>
15652         * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
15653         <BIT_FIELD_REF>: Remove trailing TAB.
15654         * varasm.c (output_constructor_bitfield): Fix formatting glitch and
15655         remove blank line.
15657 2013-06-24  Martin Jambor  <mjambor@suse.cz>
15659         PR tree-optimization/57358
15660         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
15661         (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
15662         (ipa_analyze_params_uses): Generate pessimistic info when true.
15664 2013-06-24  Martin Jambor  <mjambor@suse.cz>
15666         PR tree-optimization/57539
15667         * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
15668         global.inlined_to of the new node to it.  All callers changed.
15669         * ipa-inline-transform.c (clone_inlined_nodes): New variable
15670         inlining_into, pass it to cgraph_clone_node.
15671         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
15672         ipa_free_edge_args_substructures.
15673         (ipa_edge_duplication_hook): Only add edges from inlined nodes to
15674         rdesc linked list.  Do not assert rdesc edges have inlined caller.
15675         Assert we have found an rdesc in the rdesc list.
15677 2013-06-24  Richard Biener  <rguenther@suse.de>
15679         * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
15680         (pointer_set_lookup): Declare.
15681         (class pointer_map): New template class implementing a
15682         generic pointer to T map.
15683         (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
15684         pointer_map<T>::contains, pointer_map<T>::insert,
15685         pointer_map<T>::traverse): New functions.
15686         * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
15687         (pointer_set_lookup): New function.
15688         (pointer_set_contains): Use pointer_set_lookup.
15689         (pointer_set_insert): Likewise.
15690         (insert_aux): Remove.
15691         (struct pointer_map_t): Embed a pointer_set_t.
15692         (pointer_map_create): Adjust.
15693         (pointer_map_destroy): Likewise.
15694         (pointer_map_contains): Likewise.
15695         (pointer_map_insert): Likewise.
15696         (pointer_map_traverse): Likewise.
15697         * tree-streamer.h (struct streamer_tree_cache_d): Use a
15698         pointer_map<unsigned> instead of a pointer_map_t.
15699         * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
15700         (streamer_tree_cache_lookup): Likewise.
15701         (streamer_tree_cache_create): Likewise.
15702         (streamer_tree_cache_delete): Likewise.
15703         * lto-streamer.h (struct lto_tree_ref_encoder): Use a
15704         pointer_map<unsigned> instead of a pointer_map_t.
15705         (lto_init_tree_ref_encoder): Adjust.
15706         (lto_destroy_tree_ref_encoder): Likewise.
15707         * lto-section-out.c (lto_output_decl_index): Likewise.
15708         (lto_record_function_out_decl_state): Likewise.
15709         * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
15711 2013-06-24  Richard Biener  <rguenther@suse.de>
15713         PR tree-optimization/57488
15714         * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
15716 2013-06-24  Alan Modra  <amodra@gmail.com>
15718         * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
15719         (gen_easy_altivec_constant): Likewise.
15720         * config/rs6000/predicates.md (easy_vector_constant_add_self,
15721         easy_vector_constant_msb): Likewise.
15723 2013-06-23  Jakub Jelinek  <jakub@redhat.com>
15725         PR target/57688
15726         * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
15727         add missing return true.
15729 2013-06-23  Oleg Endo  <olegendo@gcc.gnu.org>
15731         PR target/52483
15732         * config/sh/predicates.md (general_extend_operand): Invoke
15733         general_movsrc_operand for memory operands.
15734         (general_movsrc_operand): Allow reg+reg addressing, do not use
15735         general_operand for memory operands.
15737 2013-06-23  Sriraman Tallam  <tmsriram@google.com>
15739         * config/i386/i386.c (ix86_pragma_target_parse):  Restore target
15740         when current target options does not apply.
15741         * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
15742         * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
15743         * config/i386/bmiintrin.h: Pass appropriate target
15744         attributes to header.
15745         * config/i386/mmintrin.h: Ditto.
15746         * config/i386/nmmintrin.h: Ditto.
15747         * config/i386/avx2intrin.h: Ditto.
15748         * config/i386/fxsrintrin.h: Ditto.
15749         * config/i386/tbmintrin.h: Ditto.
15750         * config/i386/xsaveintrin.h: Ditto.
15751         * config/i386/f16cintrin.h: Ditto.
15752         * config/i386/xtestintrin.h: Ditto.
15753         * config/i386/xsaveoptintrin.h: Ditto.
15754         * config/i386/bmi2intrin.h: Ditto.
15755         * config/i386/lzcntintrin.h: Ditto.
15756         * config/i386/smmintrin.h: Ditto.
15757         * config/i386/wmmintrin.h: Ditto.
15758         * config/i386/x86intrin.h: Remove all header include guards.
15759         * config/i386/prfchwintrin.h: Ditto.
15760         * config/i386/pmmintrin.h: Ditto.
15761         * config/i386/tmmintrin.h: Ditto.
15762         * config/i386/xmmintrin.h: Ditto.
15763         * config/i386/popcntintrin.h: Ditto.
15764         * config/i386/rdseedintrin.h: Ditto.
15765         * config/i386/ammintrin.h: Ditto.
15766         * config/i386/emmintrin.h: Ditto.
15767         * config/i386/immintrin.h: Remove all header include guards.
15768         * config/i386/fma4intrin.h: Ditto.
15769         * config/i386/lwpintrin.h: Ditto.
15770         * config/i386/xopintrin.h: Ditto.
15771         * config/i386/ia32intrin.h: Ditto.
15772         * config/i386/avxintrin.h: Ditto.
15773         * config/i386/rtmintrin.h: Ditto.
15774         * config/i386/fmaintrin.h: Ditto.
15775         * config/i386/mm3dnow.h: Ditto.
15777 2013-06-22  Sriraman Tallam  <tmsriram@google.com>
15779         * common/config/i386/i386-common.c: Handle LZCNT.
15781 2013-06-22  Andi Kleen  <ak@linux.intel.com>
15783         * doc/extend.texi: Use __atomic_store_n instead of
15784         __atomic_store in HLE example.
15786 2013-06-22  Oleg Endo  <olegendo@gcc.gnu.org>
15788         * config/sh/sh.c: Remove <cstdlib> workaround.
15790 2013-06-21  Andi Kleen  <ak@linux.intel.com>
15792         * doc/extend.texi: Dont use __atomic_clear in HLE example.  Fix typo.
15794 2013-06-21  Andi Kleen  <ak@linux.intel.com>
15796         * doc/extend.texi: Document that __atomic_clear and
15797           __atomic_test_and_set should only be used with bool.
15799 2013-06-20  Jan Hubicka  <jh@suse.cz>
15801         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
15802         types_same_for_odr.
15803         * tree.c (decls_same_for_odr): New function.
15804         (same_for_edr): New function.
15805         (types_same_for_odr): New function.
15806         (get_binfo_at_offset): Use it.
15807         * tree.h (types_same_for_odr): Declare.
15809 2013-06-20  Oleg Endo  <olegendo@gcc.gnu.org>
15810             Jason Merrill  <jason@redhat.com>
15812         * system.h: Include <cstdlib> as well as <stdlib.h>.
15814 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
15816         PR target/57655
15817         * config/i386/i386.c (construct_container): Report error if
15818         long double is used with disabled x87 float returns.
15820 2013-06-20  Jan Hubicka  <jh@suse.cz>
15822         * lto-cgraph.c (input_symtab): Do not set cgraph state.
15824 2013-06-20  Joern Rennecke  <joern.rennecke@embecosm.com>
15826         PR rtl-optimization/57425
15827         PR rtl-optimization/57569
15828         * alias.c (write_dependence_p): Remove parameters mem_mode and
15829         canon_mem_addr.  Add parameters x_mode, x_addr and x_canonicalized.
15830         Changed all callers.
15831         (canon_anti_dependence): Get comments and semantics in sync.
15832         Add parameter mem_canonicalized.  Changed all callers.
15833         * rtl.h (canon_anti_dependence): Update prototype.
15835 2013-06-20  Richard Biener  <rguenther@suse.de>
15837         * data-streamer-in.c (streamer_read_uhwi): Optimize single
15838         byte case, inline streamer_read_uchar and defer section
15839         overrun check.
15841 2013-06-20  Richard Biener  <rguenther@suse.de>
15843         PR tree-optimization/57584
15844         * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
15845         SSA names into the expanded expression that take part in
15846         abnormal coalescing.
15848 2013-06-19  Sharad Singhai  <singhai@google.com>
15850         * gcov.c (print_usage): Handle new option.
15851         (process_args): Ditto.
15852         (get_gcov_intermediate_filename): New function.
15853         (output_intermediate_file): New function.
15854         (output_gcov_file): New function
15855         (generate_results): Handle new option.
15856         (release_function): Relase demangled name.
15857         (read_graph_file): Handle demangled name.
15858         (output_lines): Ditto.
15859         * doc/gcov.texi: Document gcov intermediate format.
15861 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
15863         PR bootstrap/57604
15864         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
15865         (lra_emit_add): Use the functions.  Add comment about Y as an
15866         address segment.
15868 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
15870         PR driver/57652
15871         * collect2.c (collect_atexit): New.
15872         (collect_exit): Delete.
15873         (main): Register collect_atexit with atexit.
15874         (collect_wait): Change collect_exit to exit.
15875         (do_wait): Same.
15876         * collect2.h (collect_exit): Delete.
15877         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
15879 2013-06-19  Wei Mi  <wmi@google.com>
15881         PR rtl-optimization/57518
15882         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
15883         if regno is used in paradoxical subreg.
15884         (update_equiv_regs): Check pdx_subregs[regno] before
15885         set a reg to be equivalent with a mem.
15887 2013-06-19  Matthias Klose  <doko@ubuntu.com>
15889         PR driver/57651
15890         * file-find.h (find_a_file): Add a mode parameter.
15891         * file-find.c (find_a_file): Likewise.
15892         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
15893         with X_OK for the executables.
15894         * collect2.c (main): Call find_a_file with X_OK.
15896 2013-06-19  Steve Ellcey  <sellcey@mips.com>
15898         PR target/56942
15899         * config/mips/mips.md (casesi_internal_mips16_<mode>):
15900         Use NEXT_INSN instead of next_real_insn.
15902 2013-06-19  Jan Hubicka  <jh@suse.cz>
15904         * cgraph.h (const_value_known_p): Replace by ...
15905         (ctor_for_folding): .. this one.
15906         * cgraphunit.c (process_function_and_variable_attributes): Use it.
15907         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
15908         * expr.c (expand_expr_real_1): Likewise.
15909         (string_constant): Likewise.
15910         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
15911         * ipa.c (process_references): Likewise.
15912         (symtab_remove_unreachable_nodes): Likewise.
15913         * ipa-inline-analysis.c (param_change_prob): Likewise.
15914         * gimple-fold.c (canonicalize_constructor_val): Likewise.
15915         (get_base_constructor): Likwise.
15916         * varpool.c (varpool_remove_node): Likewise.
15917         (varpool_remove_initializer): LIkewise.
15918         (dump_varpool_node): LIkwise.
15919         (const_value_known_p): Rewrite to ...
15920         (ctor_for_folding): ... this one.
15922 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
15924         PR driver/57651
15925         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
15926         PERSONALITY in $PATH derived prefixes.
15928 2013-06-19  Jeff Law  <law@redhat.com>
15930         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
15931         in comment.
15933         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
15934         (simplify_bitwise_binary): Use it to simpify certain binary ops on
15935         booleans.
15937 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
15939         * config/arm/vfp.md: Move VFP instruction classification documentation
15940         to ...
15941         * config/arm/arm.md: ... here.  Update instruction classification
15942         documentation.
15944 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
15946         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
15947         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
15948         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
15950 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
15952         PR target/57609
15953         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
15954         with NEXT_INSN.  Use tablejump_p to check for jump table data
15955         insns.
15957 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
15959         PR c++/56544
15960         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
15961         that now in C++ the value is correct per the C++ standards.
15963 2013-06-19  Richard Biener  <rguenther@suse.de>
15965         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
15966         for global context.
15968 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15970         Revert:
15971         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15973         PR target/57609
15974         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
15975         with next_active_insn.
15977 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
15979         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
15980         functions are inlined during failures to flag an error.
15981         * tree-inline.c (expand_call_inline): Allow the error to be flagged
15982         in early inline pass.
15984 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
15986         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
15987         in comments.
15989 2013-06-18  Julian Brown  <julian@codesourcery.com>
15991         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
15992         Permit virtual register pre-reload if !strict.
15993         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
15994         change.
15995         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
15996         prototype.
15997         * config/arm/neon.md (movmisalign<mode>): Use
15998         neon_perm_struct_or_reg_operand instead of
15999         neon_struct_or_register_operand.
16000         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
16001         neon_permissive_struct_operand instead of neon_struct_operand.
16002         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
16003         neon_vector_mem_operand.
16004         * config/arm/predicates.md (neon_struct_operand): Adjust call to
16005         neon_vector_mem_operand.
16006         (neon_permissive_struct_operand): New.
16007         (neon_struct_or_register_operand): Rename to...
16008         (neon_perm_struct_or_reg_operand): This. Adjust call to
16009         neon_vector_mem_operand.
16011 2013-06-18  Richard Biener  <rguenther@suse.de>
16013         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
16014         * lto-streamer.h: Include pointer-set.h.
16015         (struct lto_decl_slot): Remove.
16016         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
16017         Remove next_index entry.
16018         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
16019         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
16020         (lto_init_tree_ref_encoder): Adjust.
16021         (lto_destroy_tree_ref_encoder): Likewise.
16022         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
16023         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
16024         (lto_output_decl_index): Adjust.
16025         (lto_new_out_decl_state): Likewise.
16026         (lto_record_function_out_decl_state): Likewise.
16027         * lto-streamer-out.c (copy_function): Likewise.
16029 2013-06-18  Richard Biener  <rguenther@suse.de>
16031         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
16032         * cgraphunit.c: Include cfgloop.h.
16033         (init_lowered_empty_function): Initialize the loop tree.
16034         (assemble_thunk): Insert new BBs into loops.
16036 2013-06-18  Richard Biener  <rguenther@suse.de>
16038         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
16039         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
16040         the map from cache entry to cache index optional.
16041         (streamer_tree_cache_replace_tree): Adjust accordingly.
16042         (streamer_tree_cache_append): Likewise.
16043         (streamer_tree_cache_delete): Likewise.
16044         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
16045         streamer cache map from cache entry to cache index.
16046         * lto-streamer-out.c (create_output_block): Adjust.
16048 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
16050         * config/arm/arm.md (attribute "insn"): Move multiplication and
16051         division attributes to...
16052         (attribute "type"): ... here.  Remove mult.
16053         (attribute "mul32"): New attribute.
16054         (attribute "mul64"): Add umaal.
16055         (*arm_mulsi3): Update attributes.
16056         (*arm_mulsi3_v6): Likewise.
16057         (*thumb_mulsi3): Likewise.
16058         (*thumb_mulsi3_v6): Likewise.
16059         (*mulsi3_compare0): Likewise.
16060         (*mulsi3_compare0_v6): Likewise.
16061         (*mulsi_compare0_scratch): Likewise.
16062         (*mulsi_compare0_scratch_v6): Likewise.
16063         (*mulsi3addsi): Likewise.
16064         (*mulsi3addsi_v6): Likewise.
16065         (*mulsi3addsi_compare0): Likewise.
16066         (*mulsi3addsi_compare0_v6): Likewise.
16067         (*mulsi3addsi_compare0_scratch): Likewise.
16068         (*mulsi3addsi_compare0_scratch_v6): Likewise.
16069         (*mulsi3subsi): Likewise.
16070         (*mulsidi3adddi): Likewise.
16071         (*mulsi3addsi_v6): Likewise.
16072         (*mulsidi3adddi_v6): Likewise.
16073         (*mulsidi3_nov6): Likewise.
16074         (*mulsidi3_v6): Likewise.
16075         (*umulsidi3_nov6): Likewise.
16076         (*umulsidi3_v6): Likewise.
16077         (*umulsidi3adddi): Likewise.
16078         (*umulsidi3adddi_v6): Likewise.
16079         (*smulsi3_highpart_nov6): Likewise.
16080         (*smulsi3_highpart_v6): Likewise.
16081         (*umulsi3_highpart_nov6): Likewise.
16082         (*umulsi3_highpart_v6): Likewise.
16083         (mulhisi3): Likewise.
16084         (*mulhisi3tb): Likewise.
16085         (*mulhisi3bt): Likewise.
16086         (*mulhisi3tt): Likewise.
16087         (maddhisi4): Likewise.
16088         (*maddhisi4tb): Likewise.
16089         (*maddhisi4tt): Likewise.
16090         (maddhidi4): Likewise.
16091         (*maddhidi4tb): Likewise.
16092         (*maddhidi4tt): Likewise.
16093         (divsi3): Likewise.
16094         (udivsi3): Likewise.
16095         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
16096         (thumb2_mulsi_short_compare0): Likewise.
16097         (thumb2_mulsi_short_compare0_scratch): Likewise.
16098         * config/arm/arm1020e.md (1020mult1): Update attribute change.
16099         (1020mult2): Likewise.
16100         (1020mult3): Likewise.
16101         (1020mult4): Likewise.
16102         (1020mult5): Likewise.
16103         (1020mult6): Likewise.
16104         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
16105         change.
16106         (cortex_a15_mult64): Likewise.
16107         (cortex_a15_sdiv): Likewise.
16108         (cortex_a15_udiv): Likewise.
16109         * config/arm/arm1026ejs.md (mult1): Update attribute change.
16110         (mult2): Likewise.
16111         (mult3): Likewise.
16112         (mult4): Likewise.
16113         (mult5): Likewise.
16114         (mult6): Likewise.
16115         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
16116         (pj4_ir_div): Likewise.
16117         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
16118         (11_mult2): Likewise.
16119         (11_mult3): Likewise.
16120         (11_mult4): Likewise.
16121         (11_mult5): Likewise.
16122         (11_mult6): Likewise.
16123         (11_mult7): Likewise.
16124         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
16125         (cortex_a8_mla): Likewise.
16126         (cortex_a8_mull): Likewise.
16127         (cortex_a8_smulwy): Likewise.
16128         (cortex_a8_smlald): Likewise.
16129         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
16130         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
16131         (cortex_r4_mul_3): Likewise.
16132         (cortex_r4_mla_4): Likewise.
16133         (cortex_r4_mla_3): Likewise.
16134         (cortex_r4_smlald): Likewise.
16135         (cortex_r4_mull): Likewise.
16136         (cortex_r4_sdiv): Likewise.
16137         (cortex_r4_udiv): Likewise.
16138         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
16139         (cortex_a7_idiv): Likewise.
16140         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
16141         (9_mult2): Likewise.
16142         (9_mult3): Likewise.
16143         (9_mult4): Likewise.
16144         (9_mult5): Likewise.
16145         (9_mult6): Likewise.
16146         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
16147         (cortex_a53_sdiv): Likewise.
16148         (cortex_a53_udiv): Likewise.
16149         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
16150         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
16151         (mp626_mult2): Likewise.
16152         (mp626_mult3): Likewise.
16153         (mp626_mult4): Likewise.
16154         * config/arm/fa526.md (526_mult1): Update attribute change.
16155         (526_mult2): Likewise.
16156         * config/arm/arm-generic.md (mult): Update attribute change.
16157         (mult_ldsched_strongarm): Likewise.
16158         (mult_ldsched): Likewise.
16159         (multi_cycle): Likewise.
16160         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
16161         * config/arm/fa606te.md (606te_mult1): Update attribute change.
16162         (606te_mult2): Likewise.
16163         (606te_mult3): Likewise.
16164         (606te_mult4): Likewise.
16165         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
16166         (cortex_a9_mac16): Likewise.
16167         (cortex_a9_multiply): Likewise.
16168         (cortex_a9_mac): Likewise.
16169         (cortex_a9_multiply_long): Likewise.
16170         * config/arm/fa626te.md (626te_mult1): Update attribute change.
16171         (626te_mult2): Likewise.
16172         (626te_mult3): Likewise.
16173         (626te_mult4): Likewise.
16175 2013-06-18  Richard Biener  <rguenther@suse.de>
16177         PR lto/57334
16178         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
16180 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16182         PR target/57609
16183         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
16184         with next_active_insn.
16186 2013-06-18  Alan Modra  <amodra@gmail.com>
16188         * config/rs6000/rs6000.h (enum data_align): New.
16189         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
16190         (DATA_ABI_ALIGNMENT): Define.
16191         (CONSTANT_ALIGNMENT): Correct comment.
16192         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
16193         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
16195 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
16197         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
16198         ATTRIBUTE_UNUSED marking.
16200 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
16202         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
16203         alternative and update.
16204         (aarch64_dup_lanedi): Delete.
16205         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
16206         * config/aarch64/aarch64-simd-builtins.def: Update.
16208 2013-06-17  Richard Biener  <rguenther@suse.de>
16210         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
16211         (lto_input_scc): Declare.
16212         (lto_input_tree_1): Likewise.
16213         (struct lto_stats_d): Add num_tree_bodies_output and
16214         num_pickle_refs_output.
16215         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
16216         (lto_read_tree_1): Split out from ...
16217         (lto_read_tree): ... this.
16218         (lto_input_scc): New function.
16219         (lto_input_tree_1): Split out from ...
16220         (lto_input_tree): ... this.  Handle LTO_tree_scc.
16221         (lto_data_in_create): Create the streamer cache without hashes.
16222         * lto-streamer-out.c (create_output_block): Create the streamer
16223         cache with hashes when not doing WPA.
16224         (lto_write_tree_1): Split out from ...
16225         (lto_write_tree): ... this.
16226         (get_symbol_initial_value): New function.
16227         (lto_output_tree_1): Split out from ...
16228         (lto_output_tree): ... this.  Write trees as series of SCCs
16229         using a DFS walk via DFS_write_tree.
16230         (struct sccs, struct scc_entry): New types.
16231         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
16232         (DFS_write_tree_body): New function.
16233         (DFS_write_tree): Likewise.
16234         (hash_tree): Likewise.
16235         (scc_entry_compare): Likewise.
16236         (hash_scc): Likewise.
16237         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
16238         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
16239         TREE_CHAIN as regular reference.
16240         (streamer_read_integer_cst): Remove.
16241         (streamer_get_pickled_tree): Adjust.
16242         * tree-streamer-out.c (streamer_write_chain): Disable streaming
16243         of DECL_EXTERNALs in BLOCK_VARS for now.
16244         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
16245         reference.
16246         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
16247         Add hash value argument and record that if hashes are recorded
16248         in the cache.
16249         (streamer_tree_cache_insert_1): Adjust.
16250         (streamer_tree_cache_insert): Likewise.
16251         (streamer_tree_cache_insert_at): Rename to ...
16252         (streamer_tree_cache_replace_tree): ... this and adjust.
16253         (streamer_tree_cache_append): Adjust.
16254         (record_common_node): Likewise.
16255         (streamer_tree_cache_create): Add argument whether to
16256         record hash values together with trees.
16257         (streamer_tree_cache_delete): Adjust.
16258         * tree-streamer.h (struct streamer_tree_cache_d): Add
16259         vector of hashes.
16260         (streamer_read_integer_cst): Remove.
16261         (streamer_tree_cache_insert): Adjust.
16262         (streamer_tree_cache_append): Likewise.
16263         (streamer_tree_cache_insert_at): Rename to ...
16264         (streamer_tree_cache_replace_tree): ... this and adjust.
16265         (streamer_tree_cache_create): Add argument whether to record hashes.
16266         (streamer_tree_cache_get): Rename to ...
16267         (streamer_tree_cache_get_tree): ... this.
16268         (streamer_tree_cache_get_hash): New function.
16269         * tree.c (cache_integer_cst): New function.
16270         * tree.h (cache_integer_cst): Declare.
16271         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
16272         * lto-symtab.c (lto_varpool_replace_node): Only release
16273         DECL_INITIAL of non-prevailing decls.
16274         * varpool.c (varpool_remove_initializer): Do not release
16275         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
16277 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
16279         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
16280         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
16281         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
16282         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
16283         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
16284         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
16285         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
16286         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
16287         instead of TARGET_64BIT.
16288         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
16289         Require ISA_HAS_<D>DIV.
16291 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
16293         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
16294         (mips*-*-linux*): Move default with_llsc setting to where other
16295         defaults are set.
16296         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
16297         with_arch block.
16298         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
16299         Likewise.  Remove default with_tune setting.  Move default float
16300         setting to its own block.  Handle with_llsc in the same block as above.
16302 2013-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
16304         PR rtl-optimization/57425
16305         PR rtl-optimization/57569
16306         * alias.c (write_dependence_p): Add new parameters mem_mode,
16307         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
16308         Changed all callers.
16309         (canon_anti_dependence): New function.
16310         * cse.c (check_dependence): Use canon_anti_dependence.
16311         * cselib.c (cselib_invalidate_mem): Likewise.
16312         * rtl.h (canon_anti_dependence): Declare.
16314 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
16316         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
16317         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
16318         ".set mips3" for 64-bit targets.
16320 2013-06-15  Dehao Chen  <dehao@google.com>
16322         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
16323         * gimple-low.c (gimple_check_call_matching_types): Likewise.
16324         (gimple_check_call_args): Likewise.
16325         * value-prof.c (check_ic_target): Likewise.
16326         * ipa-inline.c (early_inliner): Likewise.
16327         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
16328         * cgraph.c (cgraph_create_edge_1): Likewise.
16329         (cgraph_make_edge_direct): Likewise.
16331 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
16333         PR target/57615
16334         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
16335         rs6000_output_move_128bit to handle emitting quad memory
16336         operations.  Set attribute length to 8 bytes.
16338 2013-06-14  Vidya Praveen  <vidyapraveen@arm.com>
16340         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
16341         New pattern.
16342         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
16343         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
16344         (aarch64_<su>mlsl<mode>): Likewise.
16346 2013-06-14  Mike Stump  <mikestump@comcast.net>
16348         * Makefile.in (TARGET_H): Add insn-codes.h.
16350 2013-06-14  Alan Modra  <amodra@gmail.com>
16352         PR middle-end/57134
16353         PR middle-end/57586
16354         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
16355         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
16356         bitfield expansion when EXPAND_MEMORY.
16357         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
16359 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
16361         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
16362         test for clearing quad memory on 32-bit later.
16364 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
16366         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
16367         (fold_negate_expr): Likewise.
16368         (fold_real_zero_addition_p): Handle vectors.
16369         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
16371 2013-06-14  Alan Modra  <amodra@gmail.com>
16373         * varasm.c (force_const_mem): Revert 2013-06-07 change.
16375 2013-06-13  Jan Hubicka  <jh@suse.cz>
16377         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
16378         Local comdats are not externally visible.
16379         * symtab.c (dump_symtab_base): Dump externally visible.
16380         (verify_symtab_base): Verify back links in the symtab hash.
16382 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
16384         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
16385         CONVERT_EXPR as equal nodes.
16387 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
16389         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
16391 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
16393         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
16394         Generalize to complex and vector.
16395         * tree.c (build_all_ones_cst): New function.
16396         * tree.h (build_all_ones_cst): Declare it.
16398 2013-06-13  Alan Modra  <amodra@gmail.com>
16400         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
16401         * config/rs6000/rs6000.md (signbittf2): New insn.
16402         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
16403         (abstf2_internal, cmptf_internal2): Likewise.
16404         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
16406 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
16407             Pat Haugen  <pthaugen@us.ibm.com>
16408             Peter Bergner  <bergner@vnet.ibm.com>
16410         * config/rs6000/rs6000.c (emit_load_locked): Add support for
16411         power8 byte, half-word, and quad-word atomic instructions.
16412         (emit_store_conditional): Likewise.
16413         (rs6000_expand_atomic_compare_and_swap): Likewise.
16414         (rs6000_expand_atomic_op): Likewise.
16416         * config/rs6000/sync.md (larx): Add new modes for power8.
16417         (stcx): Likewise.
16418         (AINT): New mode iterator to include TImode as well as normal
16419         integer modes on power8.
16420         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
16421         that VSX registers are not considered.  Use AINT mode iterator
16422         instead of INT1 to allow inclusion of quad word atomic operations
16423         on power8.
16424         (load_locked<mode>): Likewise.
16425         (store_conditional<mode>): Likewise.
16426         (atomic_compare_and_swap<mode>): Likewise.
16427         (atomic_exchange<mode>): Likewise.
16428         (atomic_nand<mode>): Likewise.
16429         (atomic_fetch_<fetchop_name><mode>): Likewise.
16430         (atomic_nand_fetch<mode>): Likewise.
16431         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
16432         each type.
16433         (ATOMIC): On power8, add QImode, HImode modes.
16434         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
16435         modes that promote to SImode.
16436         (load_lockedti): Convert TImode arguments to PTImode, so that we
16437         get a guaranteed even/odd register pair.
16438         (load_lockedpti): Likewise.
16439         (store_conditionalti): Likewise.
16440         (store_conditionalpti): Likewise.
16442         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
16443         atomic load/store instructions.
16444         (HSI): Likewise.
16446 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
16448         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
16449         loads.
16450         (insn_count): New attribute, with most cases extracted from...
16451         (length): ...here.  Redefine most cases in terms of insn_count.
16452         (single_insn): Delete.
16453         (can_delay): Use insn_count to check for single instructions.
16454         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
16455         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
16456         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
16457         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
16458         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
16459         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
16460         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
16461         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
16462         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
16463         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
16464         rather than "length".
16465         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
16466         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
16467         Use "insn_count" rather than "length".
16468         * config/mips/mips-dsp.md
16469         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
16470         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
16471         length attributes.
16473 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
16475         PR tree-optimization/57361
16476         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
16478 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
16480         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
16481         to split.
16482         (aarch64_simd_combine<mode>): New instruction expansion.
16483         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
16484         function prototype.
16485         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
16486         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
16488 2013-06-12  Jan Hubicka  <jh@suse.cz>
16490         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
16491         decl has when in streaming stage.
16492         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
16493         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
16495 2013-06-12  Roland Stigge  <stigge@antcom.de>
16497         PR target/57578
16498         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
16500 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
16502         PR tree-optimization/57537
16503         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
16504         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
16506 2013-06-12  Richard Biener  <rguenther@suse.de>
16508         * data-streamer.h (streamer_write_char_stream): CSE
16509         obs->current_pointer.
16510         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
16511         streamer_write_char_stream manually and optimize the resulting loop.
16512         (streamer_write_hwi_stream): Likewise.
16514 2013-06-12  Jan Hubicka  <jh@suse.cz>
16516         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
16517         * cgraph.h (varpool_create_empty_node): Declare.
16518         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
16519         duplicated nodes.
16520         * symtab.c (symtab_unregister_node): Be lax about missin entries
16521         in node hash.
16522         (symtab_get_node): Update comment.
16523         * varpool.c (varpool_create_empty_node): Break out from ...
16524         (varpool_node_for_decl): ... here.
16525         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
16527 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
16529         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
16530         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
16531         part.  Use straight-line flow at the end.
16532         <COMPONENT_REF>: Remove superfluous else.
16533         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
16535 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
16537         PR target/56564
16538         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
16539         target hook even for !TREE_PUBLIC decls.  If no resolution info
16540         is available, return false for common and external decls.
16542 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
16544         * config/rl78/constraints.md (U): New constraint.
16545         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
16546         valloc attribute.
16548 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
16550         PR target/57589
16551         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
16552         to allow returning address to AT_PLATFORM name.
16554 2013-06-11  Jan Hubicka  <jh@suse.cz>
16556         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
16557         * cgraph.h (symtab_node_base): Add weakref flag.
16558         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
16559         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
16560         (output_weakrefs): Use weakref flag.
16561         * fold-const.c (simple_operand_p): Handle WEAK.
16562         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
16563         * ipa.c (varpool_externally_visible_p): Drop weakref.
16564         (function_and_variable_visibility): Update comment; fix weakref
16565         sanity checks; do not clear DECL_WEAK on them.
16566         * lto-cgraph.c (lto_output_node): update.
16567         (lto_output_varpool_node): Update.
16568         (input_overwrite_node): Update.
16569         (input_node): Update.
16570         (input_varpool_node): Update.
16571         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
16572         (lto_symtab_merge_symbols): Add sanity check.
16573         (lto_symtab_prevailing_decl): Do not special case weakrefs.
16574         * passes.c (rest_of_decl_compilation): Set static flag, too.
16575         * symtab.c (dump_symtab_base): Dump weakref.
16576         (verify_symtab_base): Sanity check weakrefs.
16577         (symtab_make_decl_local): Remove duplicated code.
16578         (symtab_alias_ultimate_target): Simplify.
16579         * varpool.c (varpool_create_variable_alias): Set weakref flag.
16581 2013-06-11  Tom de Vries  <tom@codesourcery.com>
16583         * genautomata.c (gen_regexp_sequence): Handle els_num == -1.  Handle
16584         sequence_vect == NULL.
16586 2013-06-11  DJ Delorie  <dj@redhat.com>
16588         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
16589         (rl78_unwind_word_mode): New.
16591 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
16593         * final.c (debug_prefix_maps): Make static.
16595 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
16597         * function.c (initial_trampoline): Remove stray copy.
16599 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
16601         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
16603 2013-06-11  Martin Jambor  <mjambor@suse.cz>
16605         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
16606         within bounds at the beginning of the function.
16608 2013-06-11  Alan Modra  <amodra@gmail.com>
16610         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
16611         reporting.
16612         (get_named_section): Don't NULL !DECL_P decl.
16614 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
16616         * doc/invoke.texi (core-avx2): Document.
16617         (slm): Likewise.
16618         (atom): Updated with MOVBE.
16620 2013-06-11  Richard Biener  <rguenther@suse.de>
16622         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
16624 2013-06-11  Anton Blanchard  <anton@samba.org>
16626         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
16627         correct shift value in little-endian mode.
16629 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
16631         PR target/56564
16632         * varasm.c (get_variable_align): Move #endif to the right place.
16634 2013-06-10  Cary Coutant  <ccoutant@google.com>
16636         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
16637         for hash so that hash table traversal order is deterministic.
16639 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
16640             Pat Haugen  <pthaugen@us.ibm.com>
16641             Peter Bergner  <bergner@vnet.ibm.com>
16643         * config/rs6000/vector.md (GPR move splitter): Do not split moves
16644         of vectors in GPRS if they are direct moves or quad word load or
16645         store moves.
16647         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
16648         declaration.
16649         (direct_move_p): Likewise.
16650         (quad_load_store_p): Likewise.
16652         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
16653         classes into bins based on the physical register type.
16654         (reg_class_to_reg_type): Likewise.
16655         (IS_STD_REG_TYPE): Likewise.
16656         (IS_FP_VECT_REG_TYPE): Likewise.
16657         (reload_fpr_gpr): Arrays to determine what insn to use if we can
16658         use direct move instructions.
16659         (reload_gpr_vsx): Likewise.
16660         (reload_vsx_gpr): Likewise.
16661         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
16662         information that is a simplification of register classes.  Also
16663         precalculate direct move reload helpers.
16664         (direct_move_p): New function to return true if the operation can
16665         be done as a direct move instruciton.
16666         (quad_load_store_p): New function to return true if the operation
16667         is a quad memory operation.
16668         (rs6000_legitimize_address): If quad memory, only allow register
16669         indirect for TImode addresses.
16670         (rs6000_legitimate_address_p): Likewise.
16671         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
16672         (rs6000_reload_register_type): Likewise.
16673         (register_to_reg_type): Return register type.
16674         (rs6000_secondary_reload_simple_move): New helper function for
16675         secondary reload and secondary memory needed to identify anything
16676         that is a simple move, and does not need reloading.
16677         (rs6000_secondary_reload_direct_move): New helper function for
16678         secondary reload to identify cases that can be done with several
16679         instructions via the direct move instructions.
16680         (rs6000_secondary_reload_move): New helper function for secondary
16681         reload to identify moves between register types that can be done.
16682         (rs6000_secondary_reload): Add support for quad memory operations
16683         and for direct move.
16684         (rs6000_secondary_memory_needed): Likewise.
16685         (rs6000_debug_secondary_memory_needed): Change argument names.
16686         (rs6000_output_move_128bit): New function to return the move to
16687         use for 128-bit moves, including knowing about the various
16688         limitations of quad memory operations.
16690         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
16691         memory operations.  call rs6000_output_move_128bit for the actual
16692         instruciton(s) to generate.
16693         (vsx_movti_64bit): Likewise.
16695         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
16696         (UNSPEC_P8V_MTVSRWZ): Likewise.
16697         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
16698         (UNSPEC_P8V_MTVSRD): Likewise.
16699         (UNSPEC_P8V_XXPERMDI): Likewise.
16700         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
16701         (UNSPEC_FUSION_GPR): Likewise.
16702         (FMOVE128_GPR): New iterator for direct move.
16703         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
16704         (f32_sv): Likewise.
16705         (f32_dm): Likewise.
16706         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
16707         loads and direct move instructions.
16708         (zero_extendsidi2_lfiwzx): Likewise.
16709         (extendsidi2_lfiwax): Likewise.
16710         (extendsidi2_nocell): Likewise.
16711         (floatsi<mode>2_lfiwax): Likewise.
16712         (lfiwax): Likewise.
16713         (floatunssi<mode>2_lfiwzx): Likewise.
16714         (lfiwzx): Likewise.
16715         (fix_trunc<mode>_stfiwx): Likewise.
16716         (fixuns_trunc<mode>_stfiwx): Likewise.
16717         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
16718         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
16719         (parity<mode>2_cmpb): Set length/type attr.
16720         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
16721         for 'mr.' to fast_compare.
16722         (bpermd_<mode>): Change type attr to popcnt.
16723         (p8_fmrgow_<mode>): New insns for power8 direct move support.
16724         (p8_mtvsrwz_1): Likewise.
16725         (p8_mtvsrwz_2): Likewise.
16726         (reload_fpr_from_gpr<mode>): Likewise.
16727         (p8_mtvsrd_1): Likewise.
16728         (p8_mtvsrd_2): Likewise.
16729         (p8_xxpermdi_<mode>): Likewise.
16730         (reload_vsx_from_gpr<mode>): Likewise.
16731         (reload_vsx_from_gprsf): Likewise.
16732         (p8_mfvsrd_3_<mode>): LIkewise.
16733         (reload_gpr_from_vsx<mode>): Likewise.
16734         (reload_gpr_from_vsxsf): Likewise.
16735         (p8_mfvsrd_4_disf): Likewise.
16736         (multi-word GPR splits): Do not split direct moves or quad memory
16737         operations.
16739 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
16741         * tree-into-ssa.c (interesting_blocks): Make static.
16743 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
16745         PR target/56564
16746         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
16747         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
16748         Use DATA_ABI_ALIGNMENT for that case instead if defined.
16749         (get_variable_align): New function.
16750         (get_variable_section, emit_bss, emit_common,
16751         assemble_variable_contents, place_block_symbol): Use
16752         get_variable_align instead of DECL_ALIGN.
16753         (assemble_noswitch_variable): Add align argument, use it
16754         instead of DECL_ALIGN.
16755         (assemble_variable): Adjust caller.  Use get_variable_align
16756         instead of DECL_ALIGN.
16757         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
16758         caller.
16759         (DATA_ABI_ALIGNMENT): Define.
16760         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
16761         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
16762         opt is false, only return the psABI mandated alignment increase.
16763         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
16764         (DATA_ABI_ALIGNMENT): ... this.
16765         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
16766         (DATA_ABI_ALIGNMENT): ... this.
16767         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
16768         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
16769         (DATA_ABI_ALIGNMENT): ... this.
16770         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
16771         * doc/tm.texi: Regenerated.
16773 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
16775         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
16776         cmp_code to construct REG_EQUAL note.
16778 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
16780         PR target/57568
16781         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
16782         that operands[2] doesn't overlap with operands[0].
16784 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
16785             Jan Hubicka  <jh@suse.cz>
16787         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
16788         hack to mark symbols as used.
16790 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
16792         PR rtl-optimization/57559
16793         * lra-constraints.c (process_alt_operands): Don't discourage
16794         memory with known offset for offsetable memory constraint.
16795         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
16797 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
16799         * varasm.c (struct oc_local_state): Reorder fields.
16800         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
16801         and adjust accordingly.
16802         (output_constructor): Reorder initialization code and adjust call to
16803         output_constructor_bitfield.
16805 2013-06-07  Jan Hubicka  <jh@suse.cz>
16807         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
16809 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
16811         * tree-object-size.c (unknown): Make const.
16813 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16815         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
16816         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
16817         for last alternative in the cpu_facility attribute.
16819 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16821         PR target/56315
16822         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
16823         (xordi3): Change operand 2 constraint to arm_xordi_operand.
16824         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
16825         * config/arm/constraints.md (Dg): New constraint.
16826         * config/arm/neon.md (xordi3_neon): Remove.
16827         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
16828         * config/arm/predicates.md (arm_xordi_operand): New predicate.
16830 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16832         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
16833         Clean up alternatives.
16835 2013-06-07  Alan Modra  <amodra@gmail.com>
16837         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
16838         va_list_gpr_size.
16840 2013-06-07  Alan Modra  <amodra@gmail.com>
16842         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
16844 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16846         * config/arm/constraints.md (Df): New constraint.
16847         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
16848         Correct length attribute for last two alternatives.
16850 2013-06-07  Alan Modra  <amodra@gmail.com>
16852         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
16853         override user -mfp-in-toc.
16854         (offsettable_ok_by_alignment): Consider just the current access
16855         rather than the whole object, unless BLKmode.  Handle
16856         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
16857         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
16858         for -mcmodel=medium.
16859         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
16860         override user -mfp-in-toc or -msum-in-toc.  Default to
16861         -mno-fp-in-toc for -mcmodel=medium.
16863 2013-06-06  DJ Delorie  <dj@redhat.com>
16865         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
16866         TARGET_VALID_POINTER_MODE.
16868 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
16869             Pat Haugen  <pthaugen@us.ibm.com>
16870             Peter Bergner  <bergner@vnet.ibm.com>
16872         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16873         Document new power8 builtins.
16875         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
16876         condition code register, to allow 128-bit logical operations to be
16877         done in the VSX or GPR registers.
16878         (nor<mode>3): Use the canonical form for nor.
16879         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
16880         vclz*, and vpopcnt* vector instructions.
16881         (nand<mode>3): Likewise.
16882         (orc<mode>3): Likewise.
16883         (clz<mode>2): LIkewise.
16884         (popcount<mode>2): Likewise.
16886         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
16887         that only the GPRs are recognized.
16889         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16890         support for new power8 builtins.
16892         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
16893         builtin functions.
16894         (xscvdpspn): Likewise.
16895         (vclz): Likewise.
16896         (vclzb): Likewise.
16897         (vclzh): Likewise.
16898         (vclzw): Likewise.
16899         (vclzd): Likewise.
16900         (vpopcnt): Likewise.
16901         (vpopcntb): Likewise.
16902         (vpopcnth): Likewise.
16903         (vpopcntw): Likewise.
16904         (vpopcntd): Likewise.
16905         (vgbbd): Likewise.
16906         (vmrgew): Likewise.
16907         (vmrgow): Likewise.
16908         (eqv): Likewise.
16909         (eqv_v16qi3): Likewise.
16910         (eqv_v8hi3): Likewise.
16911         (eqv_v4si3): Likewise.
16912         (eqv_v2di3): Likewise.
16913         (eqv_v4sf3): Likewise.
16914         (eqv_v2df3): Likewise.
16915         (nand): Likewise.
16916         (nand_v16qi3): Likewise.
16917         (nand_v8hi3): Likewise.
16918         (nand_v4si3): Likewise.
16919         (nand_v2di3): Likewise.
16920         (nand_v4sf3): Likewise.
16921         (nand_v2df3): Likewise.
16922         (orc): Likewise.
16923         (orc_v16qi3): Likewise.
16924         (orc_v8hi3): Likewise.
16925         (orc_v4si3): Likewise.
16926         (orc_v2di3): Likewise.
16927         (orc_v4sf3): Likewise.
16928         (orc_v2df3): Likewise.
16930         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
16931         allow power8 quad mode in 64-bit.
16932         (rs6000_builtin_vectorized_function): Add support to vectorize
16933         ISA 2.07 count leading zeros, population count builtins.
16934         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
16935         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
16936         (builtin_function_type): Add vgbbd builtin function which takes an
16937         unsigned argument.
16938         (altivec_expand_vec_perm_const): Add support for new power8 merge
16939         instructions.
16941         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
16942         that does not include TImdoe for use with 32-bit.
16943         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
16944         instructions.
16945         (UNSPEC_VSX_CVDPSPN): Likewise.
16946         (vsx_xscvdpspn): Likewise.
16947         (vsx_xscvspdpn): Likewise.
16948         (vsx_xscvdpspn_scalar): Likewise.
16949         (vsx_xscvspdpn_directmove): Likewise.
16950         (vsx_and<mode>3): Split logical operations into 32-bit and
16951         64-bit. Add support to do logical operations on TImode as well as
16952         VSX vector types.  Allow logical operations to be done in either
16953         VSX registers or in general purpose registers in 64-bit mode.  Add
16954         splitters if GPRs were used. For AND, add clobber of CCmode to
16955         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
16956         encoding.
16957         (vsx_and<mode>3_32bit): Likewise.
16958         (vsx_and<mode>3_64bit): Likewise.
16959         (vsx_ior<mode>3): Likewise.
16960         (vsx_ior<mode>3_32bit): Likewise.
16961         (vsx_ior<mode>3_64bit): Likewise.
16962         (vsx_xor<mode>3): Likewise.
16963         (vsx_xor<mode>3_32bit): Likewise.
16964         (vsx_xor<mode>3_64bit): Likewise.
16965         (vsx_one_cmpl<mode>2): Likewise.
16966         (vsx_one_cmpl<mode>2_32bit): Likewise.
16967         (vsx_one_cmpl<mode>2_64bit): Likewise.
16968         (vsx_nor<mode>3): Likewise.
16969         (vsx_nor<mode>3_32bit): Likewise.
16970         (vsx_nor<mode>3_64bit): Likewise.
16971         (vsx_andc<mode>3): Likewise.
16972         (vsx_andc<mode>3_32bit): Likewise.
16973         (vsx_andc<mode>3_64bit): Likewise.
16974         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
16975         and xxlorc instructions.
16976         (vsx_eqv<mode>3_64bit): Likewise.
16977         (vsx_nand<mode>3_32bit): Likewise.
16978         (vsx_nand<mode>3_64bit): Likewise.
16979         (vsx_orc<mode>3_32bit): Likewise.
16980         (vsx_orc<mode>3_64bit): Likewise.
16982         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
16984         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
16985         instruction.
16986         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
16987         (p8_vmrgow): Likewise.
16988         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
16989         GPRs to be split under VSX.
16990         (p8v_clz<mode>2): Add power8 count leading zero support.
16991         (p8v_popcount<mode>2): Add power8 population count support.
16992         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
16993         support.
16995         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
16996         instruction.
16998         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
16999         builtin functions.
17000         (vec_nand): Likewise.
17001         (vec_vclz): Likewise.
17002         (vec_vclzb): Likewise.
17003         (vec_vclzd): Likewise.
17004         (vec_vclzh): Likewise.
17005         (vec_vclzw): Likewise.
17006         (vec_vgbbd): Likewise.
17007         (vec_vmrgew): Likewise.
17008         (vec_vmrgow): Likewise.
17009         (vec_vpopcnt): Likewise.
17010         (vec_vpopcntb): Likewise.
17011         (vec_vpopcntd): Likewise.
17012         (vec_vpopcnth): Likewise.
17013         (vec_vpopcntw): Likewise.
17015 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
17017         PR rtl-optimization/57468
17018         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
17019         spilled pseudos.
17021 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
17023         PR rtl-optimization/57459
17024         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
17025         type when setting live regs.
17027 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
17029         * config/s390/s390.opt (mlra): New option.
17030         * config/s390/s390.c (s390_decompose_address): Check displacement
17031         for all registers for LRA.
17032         (s390_secondary_reload): Don't used secondary reloads for LRA.
17033         (s390_lra_p): New function.
17034         (TARGET_LRA_P): Define.
17035         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
17036         of attribute cpu_facility to zarch for the last alternative.
17037         (*cmpmem_short): Ditto.
17039 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
17041         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
17042         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
17043         (arm_expand_prologue): Likewise.
17045 2013-06-06  Teresa Johnson  <tejohnson@google.com>
17047         PR c++/53743
17048         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
17049         as this is now done by redirect_edge_and_branch_force.
17050         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
17051         barriers, and fix interaction with splitting.
17052         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
17053         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
17054         reflect changes made in the routine.
17055         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
17056         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
17057         since this is called in cfglayout mode, and replace partition fixup
17058         with assert as that is now done by force_nonfallthru_and_redirect.
17059         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
17060         already be marked with region crossing note.
17061         (insert_section_boundary_note): Make non-static, gate on flag
17062         has_bb_partition, rewrite to also check for multiple partitions.
17063         (rest_of_handle_reorder_blocks): Remove call to
17064         insert_section_boundary_note, now done later during free_cfg.
17065         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
17066         * bb-reorder.h (insert_section_boundary_note): Declare.
17067         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
17068         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
17069         invoke insert_section_boundary_note.
17070         (try_redirect_by_replacing_jump): Remove unnecessary
17071         check for region crossing note.
17072         (fixup_partition_crossing): New function.
17073         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
17074         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
17075         in non-cfglayout mode.
17076         (force_nonfallthru_and_redirect): Fixup partition boundaries,
17077         remove old code that tried to do this. Emit barrier correctly
17078         when we are in cfglayout mode.
17079         (last_bb_in_partition): New function.
17080         (rtl_split_edge): Correctly fixup partition boundaries.
17081         (commit_one_edge_insertion): Remove old code that tried to
17082         fixup region crossing edge since this is now handled in
17083         split_block, and set up insertion point correctly since
17084         block may now end in a jump.
17085         (verify_hot_cold_block_grouping): Guard against checking when not in
17086         linearized RTL mode.
17087         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
17088         notes.
17089         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
17090         rtl_verify_flow_info, so not called in cfglayout mode.
17091         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
17092         (fixup_reorder_chain): Remove old code that attempted to fixup region
17093         crossing note as this is now handled in force_nonfallthru_and_redirect.
17094         (duplicate_insn_chain): Don't duplicate switch section notes.
17095         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
17096         note.
17097         * basic-block.h (emit_barrier_after_bb): Declare.
17099 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17101         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
17102         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
17103         arm_usatsihi): Adjust alternatives for arm_restrict_it.
17105 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17107         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
17108         where appropriate.
17109         * config/arm/ldmstm.md: Regenerate.
17111 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17113         * config/arm/sync.md (atomic_loaddi_1):
17114         Disable predication for arm_restrict_it.
17115         (arm_load_exclusive<mode>): Likewise.
17116         (arm_load_exclusivesi): Likewise.
17117         (arm_load_exclusivedi): Likewise.
17118         (arm_load_acquire_exclusive<mode>): Likewise.
17119         (arm_load_acquire_exclusivesi): Likewise.
17120         (arm_load_acquire_exclusivedi): Likewise.
17121         (arm_store_exclusive<mode>): Likewise.
17122         (arm_store_exclusive<mode>): Likewise.
17123         (arm_store_release_exclusivedi): Likewise.
17124         (arm_store_release_exclusive<mode>): Likewise.
17126 2013-06-06  Richard Biener  <rguenther@suse.de>
17128         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
17129         after LTO_null.
17130         (lto_tag_is_tree_code_p): Adjust.
17131         (lto_tag_is_gimple_code_p): Likewise.
17132         (lto_gimple_code_to_tag): Likewise.
17133         (lto_tag_to_gimple_code): Likewise.
17134         (lto_tree_code_to_tag): Likewise.
17135         (lto_tag_to_tree_code): Likewise.
17136         * data-streamer.h (streamer_write_hwi_in_range): Use
17137         uhwi streaming to stream the normalized range.
17138         (streamer_read_hwi_in_range): Likewise.
17140 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17142         * config/arm/arm.md (enabled_for_depr_it): New attribute.
17143         (predicable_short_it): Likewise.
17144         (predicated): Likewise.
17145         (enabled): Handle above.
17146         (define_cond_exec): Set predicated attribute to yes.
17148 2013-06-05  Mike Stump  <mikestump@comcast.net>
17150         * gdbinit.in (__FUNCTION__): Add.
17152 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
17154         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
17155         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
17157 2013-06-05  Jan Hubicka  <jh@suse.cz>
17159         * varasm.c (mark_decl_referenced): Revert the removal until targets
17160         are fixed.
17162 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
17164         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
17165         instead of mark_decl_referenced.
17167 2013-06-05  Jan Hubicka  <jh@suse.cz>
17169         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
17170         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
17171         and symtab_used_from_object_file_p.
17172         (cgraph_make_node_local_1): Clear forced_by_abi.
17173         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
17174         * cgraph.h (symtab_node_base): Add forced_by_abi.
17175         (decide_is_variable_needed): Remove.
17176         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
17177         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
17178         (decide_is_symbol_needed): ... this one; handle symbols in general;
17179         always analyze virtuals; honnor forced_by_abi.
17180         (cgraph_finalize_function): Update.
17181         (varpool_finalize_decl): Update.
17182         (symbol_defined_and_needed): Remove.
17183         (analyze_functions): Update.
17184         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
17185         output_refs, input_overwrite_node): Handle forced_by_abi.
17186         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
17187         (address_taken_from_non_vtable_p): ... this one.
17188         (comdat_can_be_unshared_p_1): New function.
17189         (cgraph_comdat_can_be_unshared_p): Rename to ...
17190         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
17191         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
17192         (function_and_variable_visibility): Clear forced_by_abi as needed.
17193         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
17194         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
17195         * symtab.c (dump_symtab_base): Dump forced_by_abi.
17196         * varpool.c (decide_is_variable_needed): Remove.
17198 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17200         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
17201         (arm_option_override): Override arm_restrict_it where appropriate.
17202         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
17203         * config/arm/arm.opt (mrestrict-it): New command-line option.
17204         * doc/invoke.texi: Document -mrestrict-it.
17206 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
17208         * tsan.c (tsan_atomic_table): Make const.
17210 2013-06-05  Richard Biener  <rguenther@suse.de>
17212         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
17213         index associated with the tree we are supposed to replace.
17214         * tree-streamer-out.c (pack_ts_base_value_fields): Output
17215         TREE_ASM_WRITTEN as zero for everything but SSA names.
17217 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
17219         * tree-ssa-structalias.c (call_stmt_vars): Make static.
17221 2013-06-04  Jan Hubicka  <jh@suse.cz>
17223         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
17224         (input_node, input_varpool_node): Handle correctly external same
17225         body aliases.
17226         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
17227         nodes at ltrans stage.
17229 2013-06-04  Jan Hubicka  <jh@suse.cz>
17231         * ipa-inline.c (update_caller_keys): Fix availability test.
17232         (update_callee_keys): Likewise.
17233         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
17234         to follow ELF standard.
17236 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
17238         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
17239         (mips64r5900el-*-elf*): New configurations.
17240         * config/mips/mips-cpus.def (r5900): New processor.
17241         * config/mips/mips-tables.opt: Regenerate.
17242         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
17243         (mips_issue_rate): Handle PROCESSOR_R5900.
17244         (mips_reorg_process_insns): Force reorder mode for the R5900.
17245         * config/mips/mips.h (TARGET_MIPS5900): Define.
17246         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
17247         TARGET_MIPS5900.
17248         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
17249         TARGET_MIPS5900.
17250         * config/mips/mips.md (processor): Add r5900.
17251         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
17253 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
17255         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
17256         into function to generate MOVI instruction.
17257         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
17258         (aarch64_preferred_simd_mode): Turn into wrapper.
17259         (aarch64_output_scalar_simd_mov_immediate): New function.
17260         * config/aarch64/aarch64-protos.h: Add prototype for above.
17262 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
17264         * config/aarch64/aarch64.c (simd_immediate_info): Remove
17265         element_char member.
17266         (sizetochar): Return signed char.
17267         (aarch64_simd_valid_immediate): Remove elchar and other
17268         unnecessary variables.
17269         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
17270         Calculate element_char as required.
17271         * config/aarch64/aarch64-protos.h: Update and move prototype
17272         for aarch64_output_simd_mov_immediate.
17273         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
17274         Update arguments.
17276 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
17278         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
17279         information completed by aarch64_simd_valid_immediate.
17280         (aarch64_legitimate_constant_p): Update arguments.
17281         (aarch64_simd_valid_immediate): Work with struct rather than many
17282         pointers.
17283         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
17284         (aarch64_simd_make_constant): Update arguments.
17285         (aarch64_output_simd_mov_immediate): Work with struct rather than
17286         many pointers.  Output immediate directly rather than as operand.
17287         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
17288         Update prototype.
17289         * config/aarch64/constraints.md (Dn): Update arguments.
17291 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
17293         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
17294         longer static.
17295         (aarch64_simd_immediate_valid_for_move): Remove.
17296         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
17297         (aarch64_simd_make_constant): Update call.
17298         (aarch64_output_simd_mov_immediate): Update call.
17299         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
17300         Add prototype.
17301         * config/aarch64/constraints.md (Dn): Update call.
17303 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
17305         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
17306         return type to bool for prototype.
17307         (aarch64_legitimate_constant_p): Check for true instead of not -1.
17308         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
17309         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
17311 2013-06-04  Catherine Moore  <clm@codesourcery.com>
17313         * config/mips/mips.opt (meva): New.
17314         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
17315         (ASM_SPEC): Handle -meva.
17316         * doc/invoke.texi (meva):  Document.
17318 2013-06-04  Alan Modra  <amodra@gmail.com>
17320         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
17321         constant output.
17323 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17325         * rtl.def: Add extra fourth optional field to define_cond_exec.
17326         * gensupport.c (process_one_cond_exec): Process attributes from
17327         define_cond_exec.
17328         * doc/md.texi: Document fourth field in define_cond_exec.
17330 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
17332         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
17333         out the processing order as in store_bit_field_1.
17335 2013-06-04  Jan Hubicka  <jh@suse.cz>
17337         PR middle-end/57500
17338         * cgraphunit.c (cgraph_process_same_body_aliases): Create
17339         non-VAR_DECL node if it does not exist yet.
17341 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
17343         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
17344         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
17345         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
17346         target_cpu_default setting.
17348 2013-06-03  Teresa Johnson  <tejohnson@google.com>
17350         * dumpfile.c (opt_info_switch_p): Change -fopt-info
17351         default to -fopt-info=optimized instead of all.
17352         * doc/invoke.texi: Ditto.
17353         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
17354         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
17355         (execute_vect_slp): Emit BB vectorization success under
17356         MSG_OPTIMIZED_LOCATIONS.
17357         * tree-vect-slp.c (vect_slp_transform_bb): Change
17358         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
17359         * tree-vect-loop.c (vect_transform_loop): Ditto.
17361 2013-06-03  Jason Merrill  <jason@redhat.com>
17363         PR c++/57415
17364         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17365         Use TARGET_EXPR for C++.
17367 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
17369         PR rtl-optimization/57268
17370         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
17371         if DEBUG_INSN_P (insn).
17373         Reapply
17374         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
17376         PR rtl-optimization/57268
17377         * sched-deps.c (sched_analyze_2): Flush dependence lists if
17378         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
17380 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
17382         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
17383         (ix86_avoid_lea_for_addr): Likewise.
17384         (exact_dependency_1): Likewise.
17385         (ix86_adjust_cost): Likewise.
17386         (swap_top_of_ready_list): Fix formatting and !reload_completed check
17387         removed.
17388         (do_reorder_for_imul): Fix typo, formatting and
17389         !reload_completed check removed.
17390         (ix86_sched_reorder): Fix typo and formatting.
17391         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
17392         list.
17394 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
17396         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
17398 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
17400         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
17401         <STRING_CST>: Likewise.
17402         <VECTOR_CST>: Likewise.
17404 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
17405             Mikael Morin  <mikael@gcc.gnu.org>
17407         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
17408         * config.in: Regenerated.
17409         * configure: Regenerated.
17411 2013-06-01  Jan Hubicka  <jh@suse.cz>
17413         PR middle-end/57366
17414         * cgraphunit.c (compile): When weakref is not supported,
17415         set up transparent aliases before final output pass.
17416         * varasm.c (assemble_alias): Do not try to do it here.
17418 2013-06-01  Jan Hubicka  <jh@suse.cz>
17420         PR middle-end/57467
17421         * passes.c (for_per_function): Skip unanalyzed functions.
17423 2013-06-01  Jan Hubicka  <jh@suse.cz>
17425         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
17426         (lto_symtab_merge_symbols_1): ... this one.
17427         (lto_symtab_merge_cgraph_nodes): Rename to ...
17428         (lto_symtab_merge_symbols): ... this one; simplify.
17429         * cgraph.c (same_body_aliases_done): Rename to ...
17430         (cpp_implicit_aliases_done): ... this one.
17431         (cgraph_create_function_alias): Update.
17432         (cgraph_same_body_alias): Update.
17433         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
17434         (verify_edge_corresponds_to_fndecl): Simplify.
17435         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
17436         (cgraph_node): Remove same_body_alias.
17437         (varpool_node): Remove alias_of and extra_name_alias.
17438         (same_body_aliases_done): Rename to ..
17439         (cpp_implicit_aliases_done): ... this one.
17440         (symtab_alias_ultimate_target): Add default parameter.
17441         (symtab_resolve_alias): New function.
17442         (fixup_same_cpp_alias_visibility): Declare.
17443         (cgraph_function_node): Add default parameter.
17444         (cgraph_node_asm_name): Likewise.
17445         (cgraph_function_or_thunk_node): Add default parameter; do
17446         not ICE when it is NULL.
17447         (varpool_variable_node): Likewise.
17448         * tree-emutls.c (create_emultls_var): Update.
17449         (ipa_lower_emutls): Update.
17450         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
17451         (cgraph_reset_node): Reset alias info.
17452         (cgraph_finalize_function): Update.
17453         (fixup_same_cpp_alias_visibility): Move to symtab.c.
17454         (analyze_function): Simplify.
17455         (cgraph_process_same_body_aliases): Simplify.
17456         (analyze_functions): Fixup same body aliases.
17457         (handle_alias_pairs): Simplify.
17458         (assemble_thunk): Update.
17459         (assemble_thunks_and_aliases): Update.
17460         (output_weakrefs): Rewrite.
17461         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
17462         (lto_output_varpool_node): Likewise.
17463         (compute_ltrans_boundary): Remve assert.
17464         (get_alias_symbol): New functoin.
17465         (input_node): Rewrite alias handling.
17466         (input_varpool_node): Likewise.
17467         * ipa-pure-const.c (propagate_pure_const): Fix formating.
17468         * ipa.c (process_references): Handle weakrefs correctly.
17469         (symtab_remove_unreachable_nodes): Likewise.
17470         * trans-mem.c (get_cg_data): Update.
17471         (ipa_tm_create_version_alias): Update.
17472         (ipa_tm_execute): Update.
17473         * symtab.c (dump_symtab_base): Dump aliases.
17474         (verify_symtab_base): Verify aliases.
17475         (symtab_node_availability): New function.
17476         (symtab_alias_ultimate_target): Simplify.
17477         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
17478         handle all the fixup cases.
17479         (symtab_resolve_alias): New function.
17480         * passes.c (ipa_write_summaries): Handle weakrefs.
17481         * varpool.c (varpool_analyze_node): Simplify.
17482         (assemble_aliases): Update.
17483         (varpool_create_variable_alias): Simplify.
17484         (varpool_extra_name_alias): Simplify.
17485         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
17486         (lto_symtab_merge_symbols): ... this one.
17488 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
17490         Revert
17491         PR rtl-optimization/57268
17492         * sched-deps.c (sched_analyze_2): Flush dependence lists if
17493         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
17495 2013-06-01  Tobias Burnus  <burnus@net-b.de>
17497         Partially reverted:
17498         2013-05-31  Tobias Burnus  <burnus@net-b.de>
17500         PR middle-end/57073
17501         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
17502         further up.
17504 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
17506         PR rtl-optimization/57268
17507         * sched-deps.c (sched_analyze_2): Flush dependence lists if
17508         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
17510 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
17512         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
17513         unordered comparison operators when -fno-trapping-math is in effect
17514         on the e500.
17515         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
17516         and implement unordered comparison operators properly on the e500.
17518 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
17520         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
17521         for constant scalar integers.
17522         (simplify_relational_operation_1): Likewise.
17524 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
17526         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
17527         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
17528         Fix comment.
17530 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
17531             Igor Zamyatin  <igor.zamyatin@intel.com>
17533         Silvermont (SLM) architecture performance tuning.
17534         * config/i386/i386.h (enum ix86_tune_indices): Add
17535         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
17536         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
17538         * config/i386/i386.c (initial_ix86_tune_features)
17539         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
17540         (ix86_lea_outperforms): Handle Silvermont tuning.
17541         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
17542         call.
17543         (ix86_use_lea_for_mov): Likewise.
17544         (ix86_avoid_lea_for_addr): Likewise.
17545         (ix86_lea_for_add_ok): Likewise.
17546         (exact_dependency_1): New function.
17547         (exact_store_load_dependency): Likewise.
17548         (ix86_adjust_cost): Handle Silvermont tuning.
17549         (do_reoder_for_imul): Likewise.
17550         (swap_top_of_ready_list): New function.
17551         (ix86_sched_reorder): Changed to handle Silvermont tuning.
17553         * config/i386/i386.md (peepholes that split memory operand in fp
17554         converts): New.
17556 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17558         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
17559         Remove un-necessary braces.
17561 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17563         * config/aarch64/aarch64.c (aarch64_classify_symbol):
17564         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
17566 2013-05-31  Tobias Burnus  <burnus@net-b.de>
17568         PR middle-end/57073
17569         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
17571 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17573         PR target/56315
17574         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
17575         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
17576         * config/arm/neon.md (iordi3_neon): Remove.
17577         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
17578         * config/arm/predicates.md (imm_for_neon_logic_operand):
17579         Move to earlier in the file.
17580         (neon_logic_op2): Likewise.
17581         (arm_iordi_operand_neon): New predicate.
17583 2013-05-31  Richard Biener  <rguenther@suse.de>
17585         PR tree-optimization/57478
17586         PR tree-optimization/57453
17587         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
17588         are life as well.
17590 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
17592         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
17593         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
17595 2013-05-30  Tobias Burnus  <burnus@net-b.de>
17596             Thomas Koenig  <tkoenig@gcc.gnu.org>
17598         PR middle-end/57073
17599         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
17600         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
17602 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
17604         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
17606 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
17608         * target.def (register_usage_leveling_p): New hook.
17609         * targhooks.c (default_register_usage_leveling_p): New.
17610         * targhooks.h (default_register_usage_leveling_p): New prototype.
17611         * lra-assigns.c (register_usage_leveling_p): Use the hook.
17612         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
17613         * doc/tm.texi: Update.
17614         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
17616 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
17618         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
17619         (*insv_reg<mode>): New define_insn.
17621 2013-05-30  Joern Rennecke  <joern.rennecke@embecosm.com>
17623         PR rtl-optimization/57439
17624         * postreload.c (move2add_valid_value_p): Check that we have
17625         a zero subreg_regno_offset when accessing the register in
17626         the requested mode.
17628 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
17629             Igor Zamyatin  <igor.zamyatin@intel.com>
17631         Silvermont (SLM) architecture pipeline model, tuning and
17632         insn selection.
17633         * config.gcc: Add slm config options and target.
17635         * config/i386/slm.md: New.
17637         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
17639         * config/i386/i386-c.c (ix86_target_macros_internal):  New case
17640         PROCESSOR_SLM.
17641         (ix86_target_macros_internal): Likewise.
17643         * config/i386/i386.c (slm_cost): New cost.
17644         (m_SLM): New macro flag.
17645         (initial_ix86_tune_features): Set m_SLM.
17646         (x86_accumulate_outgoing_args): Likewise.
17647         (x86_arch_always_fancy_math_387): Likewise.
17648         (processor_target_table): Add slm cost.
17649         (cpu_names): Add slm cpu name.
17650         (x86_option_override_internal): Set SLM ISA.
17651         (ix86_issue_rate): New case PROCESSOR_SLM.
17652         (ia32_multipass_dfa_lookahead): Likewise.
17653         (fold_builtin_cpu): Add slm.
17655         * config/i386/i386.h (TARGET_SLM): New target macro.
17656         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
17657         (processor_type): Add PROCESSOR_SLM.
17659         * config/i386/i386.md (cpu): Add new value "slm".
17660         (slm.md): Include slm.md.
17662 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
17663             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
17665         * config/arm/arm-protos.h: Add and update function protos.
17666         * config/arm/arm.c (use_simple_return_p): New added.
17667         (thumb2_expand_return): Check simple_return flag.
17668         * config/arm/arm.md: Add simple_return and conditional simple_return.
17669         * config/arm/iterators.md: Add iterator for return and simple_return.
17671 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
17673         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
17674         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
17675         (arm_emit_vfp_multi_reg_pop): Likewise.
17676         (thumb2_emit_ldrd_pop): Likewise.
17677         (arm_expand_epilogue): Add misc REG_CFA notes.
17678         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
17680 2013-05-29  Lawrence Crowl  <crowl@google.com>
17682         * config/arm/t-arm: Update for below.
17684         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
17685         Change type to hash_table.  Update dependent calls and types.
17687         * config/i386/t-cygming: Update for below.
17689         * config/i386/t-interix: Update for below.
17691         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
17692         Change type to hash_table.  Update dependent calls and types.
17693         (i386_find_on_wrapper_list::wrappers): Likewise.
17695         * config/ia64/t-ia64: Update for below.
17697         * config/ia64/ia64.c (bundle_state_table):
17698         Change type to hash_table.  Update dependent calls and types.
17700         * config/mips/mips.c (mips_reorg_process_insns::htab):
17701         Change type to hash_table.  Update dependent calls and types.
17703         * config/sol2.c (solaris_comdat_htab):
17704         Change type to hash_table.  Update dependent calls and types.
17706         * config/t-sol2: Update for above.
17708 2013-05-29  Teresa Johnson  <tejohnson@google.com>
17710         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
17711         functions are not yet marked as defined.
17713 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
17714             Pat Haugen  <pthaugen@us.ibm.com>
17715             Peter Bergner  <bergner@vnet.ibm.com>
17717         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
17718         instructions.
17719         (VEC_A): Likewise.
17720         (VEC_C): Likewise.
17721         (vrotl<mode>3): Likewise.
17722         (vashl<mode>3): Likewise.
17723         (vlshr<mode>3): Likewise.
17724         (vashr<mode>3): Likewise.
17726         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17727         support for power8 V2DI builtins.
17729         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
17730         power8 V2DI builtins.
17731         (vupkhsw): Likewise.
17732         (vupklsw): Likewise.
17733         (vaddudm): Likewise.
17734         (vminsd): Likewise.
17735         (vmaxsd): Likewise.
17736         (vminud): Likewise.
17737         (vmaxud): Likewise.
17738         (vpkudum): Likewise.
17739         (vpksdss): Likewise.
17740         (vpkudus): Likewise.
17741         (vpksdus): Likewise.
17742         (vrld): Likewise.
17743         (vsld): Likewise.
17744         (vsrd): Likewise.
17745         (vsrad): Likewise.
17746         (vsubudm): Likewise.
17747         (vcmpequd): Likewise.
17748         (vcmpgtsd): Likewise.
17749         (vcmpgtud): Likewise.
17750         (vcmpequd_p): Likewise.
17751         (vcmpgtsd_p): Likewise.
17752         (vcmpgtud_p): Likewise.
17753         (vupkhsw): Likewise.
17754         (vupklsw): Likewise.
17755         (vaddudm): Likewise.
17756         (vmaxsd): Likewise.
17757         (vmaxud): Likewise.
17758         (vminsd): Likewise.
17759         (vminud): Likewise.
17760         (vpksdss): Likewise.
17761         (vpksdus): Likewise.
17762         (vpkudum): Likewise.
17763         (vpkudus): Likewise.
17764         (vrld): Likewise.
17765         (vsld): Likewise.
17766         (vsrad): Likewise.
17767         (vsrd): Likewise.
17768         (vsubudm): Likewise.
17770         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
17771         support for power8 V2DI instructions.
17773         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
17774         power8 V2DI instructions.  Combine pack and unpack insns to use an
17775         iterator for each mode.  Check whether a particular mode supports
17776         Altivec instructions instead of just checking TARGET_ALTIVEC.
17777         (UNSPEC_VPKUWUM): Likewise.
17778         (UNSPEC_VPKSHSS): Likewise.
17779         (UNSPEC_VPKSWSS): Likewise.
17780         (UNSPEC_VPKUHUS): Likewise.
17781         (UNSPEC_VPKSHUS): Likewise.
17782         (UNSPEC_VPKUWUS): Likewise.
17783         (UNSPEC_VPKSWUS): Likewise.
17784         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
17785         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
17786         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
17787         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
17788         (UNSPEC_VUPKHSB): Likewise.
17789         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
17790         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
17791         (UNSPEC_VUPKHSH): Likewise.
17792         (UNSPEC_VUPKLSB): Likewise.
17793         (UNSPEC_VUPKLSH): Likewise.
17794         (VI2): Likewise.
17795         (VI_char): Likewise.
17796         (VI_scalar): Likewise.
17797         (VI_unit): Likewise.
17798         (VP): Likewise.
17799         (VP_small): Likewise.
17800         (VP_small_lc): Likewise.
17801         (VU_char): Likewise.
17802         (add<mode>3): Likewise.
17803         (altivec_vaddcuw): Likewise.
17804         (altivec_vaddu<VI_char>s): Likewise.
17805         (altivec_vadds<VI_char>s): Likewise.
17806         (sub<mode>3): Likewise.
17807         (altivec_vsubcuw): Likewise.
17808         (altivec_vsubu<VI_char>s): Likewise.
17809         (altivec_vsubs<VI_char>s): Likewise.
17810         (altivec_vavgs<VI_char>): Likewise.
17811         (altivec_vcmpbfp): Likewise.
17812         (altivec_eq<mode>): Likewise.
17813         (altivec_gt<mode>): Likewise.
17814         (altivec_gtu<mode>): Likewise.
17815         (umax<mode>3): Likewise.
17816         (smax<mode>3): Likewise.
17817         (umin<mode>3): Likewise.
17818         (smin<mode>3): Likewise.
17819         (altivec_vpkuhum): Likewise.
17820         (altivec_vpkuwum): Likewise.
17821         (altivec_vpkshss): Likewise.
17822         (altivec_vpkswss): Likewise.
17823         (altivec_vpkuhus): Likewise.
17824         (altivec_vpkshus): Likewise.
17825         (altivec_vpkuwus): Likewise.
17826         (altivec_vpkswus): Likewise.
17827         (altivec_vpks<VI_char>ss): Likewise.
17828         (altivec_vpks<VI_char>us): Likewise.
17829         (altivec_vpku<VI_char>us): Likewise.
17830         (altivec_vpku<VI_char>um): Likewise.
17831         (altivec_vrl<VI_char>): Likewise.
17832         (altivec_vsl<VI_char>): Likewise.
17833         (altivec_vsr<VI_char>): Likewise.
17834         (altivec_vsra<VI_char>): Likewise.
17835         (altivec_vsldoi_<mode>): Likewise.
17836         (altivec_vupkhsb): Likewise.
17837         (altivec_vupkhs<VU_char>): Likewise.
17838         (altivec_vupkls<VU_char>): Likewise.
17839         (altivec_vupkhsh): Likewise.
17840         (altivec_vupklsb): Likewise.
17841         (altivec_vupklsh): Likewise.
17842         (altivec_vcmpequ<VI_char>_p): Likewise.
17843         (altivec_vcmpgts<VI_char>_p): Likewise.
17844         (altivec_vcmpgtu<VI_char>_p): Likewise.
17845         (abs<mode>2): Likewise.
17846         (vec_unpacks_hi_v16qi): Likewise.
17847         (vec_unpacks_hi_v8hi): Likewise.
17848         (vec_unpacks_lo_v16qi): Likewise.
17849         (vec_unpacks_hi_<VP_small_lc>): Likewise.
17850         (vec_unpacks_lo_v8hi): Likewise.
17851         (vec_unpacks_lo_<VP_small_lc>): Likewise.
17852         (vec_pack_trunc_v8h): Likewise.
17853         (vec_pack_trunc_v4si): Likewise.
17854         (vec_pack_trunc_<mode>): Likewise.
17856         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
17857         V2DI builtins.
17858         (vec_vmaxsd): Likewise.
17859         (vec_vmaxud): Likewise.
17860         (vec_vminsd): Likewise.
17861         (vec_vminud): Likewise.
17862         (vec_vpksdss): Likewise.
17863         (vec_vpksdus): Likewise.
17864         (vec_vpkudum): Likewise.
17865         (vec_vpkudus): Likewise.
17866         (vec_vrld): Likewise.
17867         (vec_vsld): Likewise.
17868         (vec_vsrad): Likewise.
17869         (vec_vsrd): Likewise.
17870         (vec_vsubudm): Likewise.
17871         (vec_vupkhsw): Likewise.
17872         (vec_vupklsw): Likewise.
17874 2013-05-29  Jan Hubicka  <jh@suse.cz>
17876         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
17877         flags; reorder rest of fields in more consistent way.
17878         (varpool_node): Remove analyzed, finalized and alias.
17879         (cgraph_ndoe): Likewise.
17880         (symtab_alias_ultimate_target): New function.
17881         (cgraph_function_node): Move offline.
17882         (cgraph_reset_node): Declare.
17883         (cgraph_comdat_can_be_unshared_p): Remove.
17884         (varpool_remove_initializer): Declare.
17885         (varpool_first_defined_variable, varpool_next_defined_variable
17886         cgraph_first_defined_function, cgraph_next_defined_function): Update.
17887         (cgraph_function_with_gimple_body_p): Update.
17888         (varpool_all_refs_explicit_p): Update.
17889         (symtab_alias_target): New function.
17890         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
17891         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
17892         (cgraph_function_or_thunk_node): Simplify using
17893         symtab_alias_ultimate_target.
17894         (varpool_variable_node): Likewise.
17895         * cgraph.c (cgraph_create_function_alias): Update.
17896         (cgraph_add_thunk): Update.
17897         (cgraph_remove_node): Update.
17898         (dump_cgraph_node): Do not dump removed flags.
17899         (cgraph_function_body_availability): Update.
17900         (cgraph_propagate_frequency): Update.
17901         (verify_cgraph_node): Check sanity of local flag.
17902         (cgraph_function_node): Move here from cgraph.h; revamp for
17903         cgraph_function_or_thunk_node.
17904         * lto-symtab.c (lto_varpool_replace_node): Update.
17905         (lto_symtab_resolve_can_prevail_p): Update.
17906         (lto_symtab_merge_cgraph_nodes): Update.
17907         * ipa-cp.c (determine_versionability, initialize_node_lattices,
17908         propagate_constants_accross_call, devirtualization_time_bonus,
17909         ipcp_propagate_stage): Update.
17910         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
17911         * ipa-inline-transform.c (clone_inlined_nodes,
17912         preserve_function_body_p): Update.
17913         * ipa-reference.c (propagate): Update.
17914         (write_node_summary_p): Update.
17915         * toplev.c (wrapup_global_declaration_2): Update.
17916         * cgraphunit.c (cgraph_analyze_function): Rename to ...
17917         (analyze_function) ... this one.
17918         (cgraph_process_new_functions): Update.
17919         (cgraph_reset_node): Export.
17920         (cgraph_finalize_function): Update.
17921         (cgraph_add_new_function): Update.
17922         (process_function_and_variable_attributes): Update.
17923         (varpool_finalize_decl): Update.
17924         (symbol_finalized): Remove.
17925         (symbol_finalized_and_needed): Rename to ...
17926         (symbol_defined_and_needed): ... update.
17927         (cgraph_analyze_functions): Update.
17928         (handle_alias_pairs): Update.
17929         (mark_functions_to_output): Update.
17930         (assemble_thunk): Update.
17931         (output_in_order): Update.
17932         (output_weakrefs): Update.
17933         (finalize_compilation_unit): Update.
17934         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
17935         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
17936         input_node, input_varpool_node): Update.
17937         * dbxout.c (dbxout_expand_expr): Update.
17938         * cgraphclones.c (cgraph_clone_node): Update.
17939         (cgraph_copy_node_for_versioning): Update.
17940         (cgraph_materialize_clone): Update.
17941         (cgraph_materialize_all_clones): Update.
17942         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
17943         propagate_pure_const, propagate_nothrow): Update.
17944         * lto-streamer-out.c (lto_output, write_symbol): Update.
17945         * ipa-utils.c (ipa_reverse_postorder): Update.
17946         * ipa-inline.c (can_inline_edge_p): Update.
17947         (update_caller_keys, ipa_inline): Update.
17948         * dwarf2out.c (reference_to_unused,
17949         premark_types_used_by_global_vars_helper): Update.
17950         * tree-eh.c (tree_could_trap_p): Update.
17951         * ipa-split.c (consider_split, execute_split_functions): Update.
17952         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
17953         has_addr_references_p): Update; move ahead in file for better
17954         readability.
17955         (process_references): Simplify.
17956         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
17957         bodies are removed.
17958         (cgraph_comdat_can_be_unshared_p): Make static.
17959         (cgraph_externally_visible_p): Update.
17960         (varpool_externally_visible_p): Update.
17961         (function_and_variable_visibility): Update.
17962         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
17963         ipa_tm_mark_force_output_node): Update.
17964         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
17965         estimate_edge_devirt_benefit, inline_generate_summary,
17966         inline_write_summary): Update.
17967         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
17968         * ipa-prop.c (ipa_compute_jump_functions): Update.
17969         (ipa_print_node_params, ipa_prop_read_section,
17970         ipa_update_after_lto_read, read_replacements_section): Update.
17971         * varasm.c (mark_decl_referenced): Update.
17972         (assemble_alias, dump_tm_clone_pairs): Update.
17973         * tree-inline.c (copy_bb): Update.
17974         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
17975         Update.
17976         * symtab.c (dump_symtab_base): Print new flags.
17977         (verify_symtab_base): Verify new flags.
17978         (symtab_alias_ultimate_target): New function.
17979         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
17980         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
17981         Update.
17982         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
17983         Update.
17984         * i386.c (ix86_get_function_versions_dispatcher,
17985         ix86_generate_version_dispatcher_body): Update.
17986         (fold_builtin_cpu): Use varpool_add_new_variable.
17987         * varpool.c (varpool_remove_initializer): Break out from ...
17988         (varpool_remove_node): ... this one.
17989         (dump_varpool_node, varpool_node_for_asm,
17990         cgraph_variable_initializer_availability, varpool_analyze_node,
17991         varpool_assemble_decl, varpool_remove_unreferenced_decls,
17992         varpool_finalize_named_section_flags, varpool_create_variable_alias):
17993         Update.
17995 2013-05-29  Jan Hubicka  <jh@suse.cz>
17997         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
17999 2013-05-29  Easwaran Raman  <eraman@google.com>
18001         PR tree-optimization/57442
18002         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
18003         when control exits the main loop.
18005 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
18007         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
18008         and RX600.
18009         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
18010         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
18011         * rx/t-rx: Add rx100 under multi library matches option for nofpu
18012         option.
18014 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18016         PR tree-optimization/57441
18017         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
18018         Don't limit size of incr_vec to number of candidates.
18020 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
18022         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
18023         and mips16 directories.
18024         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
18025         (MULTILIB_DIRNAMES): Ditto.
18026         (MULTILIB_EXCEPTIONS): Add new exceptions.
18027         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
18028         (MULTILIB_DIRNAMES): Ditto.
18029         (MULTILIB_EXCEPTIONS): Add new exceptions.
18031 2012-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
18032             Marcus Shawcroft  <marcus.shawcroft@arm.com>
18034         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
18035         SYMBOL_TINY_ABSOLUTE.
18036         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
18037         SYMBOL_TINY_ABSOLUTE.
18038         (aarch64_expand_mov_immediate): Likewise.
18039         (aarch64_classify_symbol): Likewise.
18040         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
18041         Permit SYMBOL_TINY_ABSOLUTE.
18042         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
18044 2013-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
18045             Marcus Shawcroft  <marcus.shawcroft@arm.com>
18047         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
18048         Refactor if/switch.  Replace gcc_assert with if.
18050 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
18052         * config/i386/i386.c (initial_ix86_tune_features): Enable
18053         FP Reassociation for AMD bdver1 and bdver2.
18055 2013-05-29  Martin Jambor  <mjambor@suse.cz>
18057         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
18058         and IMAGPART_EXPR do not occur within other handled_components.
18060 2013-05-29  Richard Biener  <rguenther@suse.de>
18062         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
18063         access on whether the use is in the BB we currently try to
18064         vectorize.
18065         (vect_bb_vectorization_profitable_p): Pass the BB we currently
18066         vectorize to vect_bb_slp_scalar_cost.
18068 2013-05-29  Richard Biener  <rguenther@suse.de>
18070         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
18071         computing scalar cost offsetted by stmts that are kept live
18072         by scalar uses.
18073         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
18074         for computation of scalar cost.
18076 2013-05-28  Steve Ellcey  <sellcey@mips.com>
18078         * config/mips/mips-cpus.def (mips32r2): Change processor type.
18080 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
18082         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
18083         array notation built-in reduction functions.
18084         * doc/passes.texi (Passes): Added documentation about changes done
18085         for Cilk Plus.
18086         * doc/invoke.texi (C Dialect Options): Added documentation about
18087         the -fcilkplus flag.
18088         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
18089         (BUILTINS_DEF): Depend on cilkplus.def.
18090         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
18091         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
18092         * cilkplus.def: New file.
18094 2013-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
18096         PR rtl-optimization/57439
18097         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
18099 2013-05-28  Easwaran Raman  <eraman@google.com>
18101         PR tree-optimization/57337
18102         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
18103         (find_insert_point): Correctly identify the insertion point
18104         when two statements with the same UID is compared.
18106 2013-05-28  Richard Biener  <rguenther@suse.de>
18108         PR tree-optimization/56787
18109         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
18110         from the list of data references.
18111         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
18112         clobbers.
18113         (vect_analyze_loop_operations): Likewise.
18114         (vect_transform_loop): Remove clobbers.
18116 2013-05-28  Martin Jambor  <mjambor@suse.cz>
18118         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
18119         and REALPART_EXPRs have scalar type.
18121 2013-05-28  Richard Biener  <rguenther@suse.de>
18123         PR tree-optimization/57411
18124         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
18125         virtual operands.
18126         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
18127         virtual operand propagation.
18129 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
18131         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
18132         destination register for bmasksi_vis.
18133         (vector_init_bshuffle): Likewise.
18134         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
18136 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
18138         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
18139         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
18140         mode if the instruction isn't available in the original mode.
18141         * config/sparc/sparc.opt (mfix-ut699): New option.
18142         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
18143         (divdf3): Turn into expander.
18144         (divdf3_nofix): New insn.
18145         (divdf3_fix): Likewise.
18146         (divsf3): Disable if -mfix-ut699.
18147         (sqrtdf2): Turn into expander.
18148         (sqrtdf2_nofix): New insn.
18149         (sqrtdf2_fix): Likewise.
18150         (sqrtsf2): Disable if -mfix-ut699.
18152 2013-05-27  Richard Biener  <rguenther@suse.de>
18154         PR middle-end/57412
18155         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
18156         block for the new loop.
18158 2013-05-27  Richard Biener  <rguenther@suse.de>
18160         PR tree-optimization/57343
18161         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
18162         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
18163         (number_of_iterations_cond): Do not build the folded tree.
18165 2013-05-27  Richard Biener  <rguenther@suse.de>
18167         Revert
18168         PR middle-end/57381
18169         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
18170         OEP_CONSTANT_ADDRESS_OF retained.
18172         PR tree-optimization/57417
18173         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
18174         for unchanged base.
18175         (set_ssa_val_to): Compare addresses using
18176         get_addr_base_and_unit_offset.
18178 2013-05-27  Joern Rennecke  <joern.rennecke@embecosm.com>
18180         PR rtl-optimization/56833
18181         * postreload.c (move2add_record_mode): New function.
18182         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
18183         (move2add_use_add2_insn): Use move2add_record_sym_value.
18184         (move2add_use_add3_insn): Likewise.
18185         (reload_cse_move2add): Use move2add_valid_value_p and
18186         move2add_record_mode.  Invalidate call-clobbered and REG_INC
18187         affected regs by setting reg_mode to VOIDmode.
18188         (move2add_note_store): Don't pretend the inside of a SUBREG is
18189         the actual destination.  Invalidate single/leading registers by
18190         setting reg_mode to VOIDmode.
18191         Use move2add_record_sym_value, move2add_valid_value_p and
18192         move2add_record_mode.
18194 2013-05-27  Richard Biener  <rguenther@suse.de>
18196         PR tree-optimization/57396
18197         * tree-affine.c (double_int_constant_multiple_p): Properly
18198         return false for val == 0 and div != 0.
18200 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
18202         * config/mips/mips.h: Use #elif in preprocessor conditions.
18204 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
18206         PR target/53916
18207         * config/mips/constraints.md (kl): New constraint.
18208         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
18209         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
18210         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
18211         from LO for MIPS16.
18212         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
18214 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
18216         PR target/55777
18217         * config/mips/mips.c (mips_can_inline_p): New function.
18218         (TARGET_CAN_INLINE_P): Define.
18220 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
18222         * sched-int.h (ds_t, dw_t): Make unsigned int.
18223         Fix documentation that describes how all the ds_t bits are used.
18224         Reserve the last bit for delayed-branch scheduling.
18225         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
18226         (BITS_PER_DEP_WEAK): Fix definition and documentation.
18227         (gen_dep_weak_1): Remove prototype.
18228         * sched-deps.c (get_dep_weak_1): Make static.
18229         * target.def (speculate_insn, needs_block_p, gen_spec_check,
18230         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
18231         * doc/tm.texi: Regenerate.
18232         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
18234 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
18236         PR debug/56950
18237         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
18239 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
18240             Sandra Loosemore  <sandra@codesourcery.com>
18242         * config.gcc (powerpc-*): Allow native for with-cpu.
18244 2013-05-24  Jeff Law  <law@redhat.com>
18246         PR tree-optimization/57124
18247         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
18248         conversion feeding a condition if the range has an overflow
18249         if -fstrict-overflow.  Add warnings for when we do make the
18250         transformation.
18252 2013-05-24  Dehao Chen  <dehao@google.com>
18254         * tree-cfg.c (locus_discrim_map): Fix the typo.
18255         (locus_discrim_hasher): Likewise.
18256         (locus_discrim_hasher::hash): Likewise.
18257         (locus_discrim_hasher::equal): Likewise.
18259 2013-05-24  Martin Jambor  <mjambor@suse.cz>
18261         PR tree-optimization/57294
18262         * cgraph.h (ipa_record_stmt_references): Declare.
18263         * cgraphbuild.c (ipa_record_stmt_references): New function.
18264         (build_cgraph_edges): Use ipa_record_stmt_references.
18265         (rebuild_cgraph_edges): Likewise.
18266         (cgraph_rebuild_references): Likewise.
18267         * ipa-prop.c (ipa_modify_call_arguments): Discard references
18268         associated with the old statement and build references from the
18269         newly built statements.
18270         * ipa-ref.c (ipa_remove_stmt_references): New function.
18271         * ipa-ref.h (ipa_remove_stmt_references): Declare.
18273 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
18275         * lra-constraints.c (emit_spill_move): Use smaller mode for
18276         mem-mem moves.
18277         (check_and_process_move): Consider mem-reg moves for secondary
18278         too.
18279         (curr_insn_transform): Don't lose insns emitted before for
18280         secondary memory moves.
18281         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
18282         reg set up in the current insn.
18284 2013-05-24  Dehao Chen  <dehao@google.com>
18286         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
18287         hash function.
18288         (locus_descrim_hasher::equal): Likewise.
18289         (build_gimple_cfg): New discriminator assignment algorithm.
18290         (make_edges): Likewise.
18291         (next_discriminator_for_locus): Likewise.
18292         (same_line_p): Likewise.
18293         (assign_discriminators): Likewise.
18294         (make_cond_expr_edges): Likewise.
18295         (make_gimple_switch_edges): Likewise.
18296         (make_goto_expr_edges): Likewise.
18297         (make_gimple_asm_edges): Likewise.
18299 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
18301         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
18302         X format specifier to only display bottom 16 bits.
18303         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
18304         immediate to match for operand 2, since it will be masked.
18306 2013-05-24  Richard Biener  <rguenther@suse.de>
18308         PR tree-optimization/57287
18309         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
18310         all SSA names that occur in abnormal PHIs.
18312 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18314         PR tree-ssa/57385
18315         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
18316         that index is not negative.
18318 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
18320         PR rtl-optimization/55177
18321         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
18322         (simplify_byte_swapping_operation): New.
18323         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
18324         (simplify_relational_operation_1): Deal with BSWAP.
18326 2013-05-23  Richard Henderson  <rth@redhat.com>
18328         PR target/56742
18329         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
18330         (ix86_reorg): Call it.
18332 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
18334         PR target/57379
18335         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
18336         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
18337         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
18339 2013-05-23  Christian Bruel  <christian.bruel@st.com>
18341         PR debug/57351
18342         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
18344 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
18345             Marcus Shawcroft  <marcus.shawcroft@arm.com>
18347         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
18348         * config/aarch64/constraints.md (Usa): Remove.
18349         * doc/md.texi (AArch64 Usa): Remove.
18351 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
18352             Marcus Shawcroft  <marcus.shawcroft@arm.com>
18354         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
18355         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
18356         * config/aarch64/predicates.md (aarch64_const_address): Remove.
18357         (aarch64_mov_operand): Use aarch64_mov_operand_p.
18359 2013-05-23  Vidya Praveen  <vidyapraveen@arm.com>
18361         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
18362         instruction (AdvSIMD).
18363         * config/aarch64/aarch64-builtins.c
18364         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
18365         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
18367 2013-05-23  Martin Jambor  <mjambor@suse.cz>
18369         PR middle-end/57347
18370         * tree.h (contains_bitfld_component_ref_p): Declare.
18371         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
18372         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
18373         caller.
18374         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
18375         not access a bit-field.  Assert all final offsets are byte-aligned.
18377 2013-05-23  Richard Biener  <rguenther@suse.de>
18379         PR tree-optimization/57380
18380         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
18381         least one invariant or re-used load.
18382         * passes.c (init_optimization_passes): Move pass_phiprop before
18383         pass_forwprop.
18385 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
18387         * config/aarch64/aarch64-simd.md
18388         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
18390 2013-05-23  Richard Biener  <rguenther@suse.de>
18392         PR middle-end/57381
18393         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
18394         OEP_CONSTANT_ADDRESS_OF retained.
18396 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
18398         PR middle-end/57344
18399         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
18400         don't lower unit.  Handle unit not being always BITS_PER_WORD.
18402 2013-05-23  Richard Biener  <rguenther@suse.de>
18404         PR rtl-optimization/57341
18405         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
18406         instead of true_dependence.
18408 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
18410         * bb-reorder.c (branch_threshold): Make const.
18411         (exec_threshold): Ditto.
18413 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
18414             Pat Haugen  <pthaugen@us.ibm.com>
18415             Peter Bergner  <bergner@vnet.ibm.com>
18417         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
18418         documentation for the power8 crypto builtins.
18420         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
18422         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
18423         macros for defining power8 builtin functions.
18424         (BU_P8V_AV_2): Likewise.
18425         (BU_P8V_AV_P): Likewise.
18426         (BU_P8V_VSX_1): Likewise.
18427         (BU_P8V_OVERLOAD_1): Likewise.
18428         (BU_P8V_OVERLOAD_2): Likewise.
18429         (BU_CRYPTO_1): Likewise.
18430         (BU_CRYPTO_2): Likewise.
18431         (BU_CRYPTO_3): Likewise.
18432         (BU_CRYPTO_OVERLOAD_1): Likewise.
18433         (BU_CRYPTO_OVERLOAD_2): Likewise.
18434         (XSCVSPDP): Fix typo, point to the correct instruction.
18435         (VCIPHER): Add power8 crypto builtins.
18436         (VCIPHERLAST): Likewise.
18437         (VNCIPHER): Likewise.
18438         (VNCIPHERLAST): Likewise.
18439         (VPMSUMB): Likewise.
18440         (VPMSUMH): Likewise.
18441         (VPMSUMW): Likewise.
18442         (VPERMXOR_V2DI): Likewise.
18443         (VPERMXOR_V4SI: Likewise.
18444         (VPERMXOR_V8HI: Likewise.
18445         (VPERMXOR_V16QI: Likewise.
18446         (VSHASIGMAW): Likewise.
18447         (VSHASIGMAD): Likewise.
18448         (VPMSUM): Likewise.
18449         (VPERMXOR): Likewise.
18450         (VSHASIGMA): Likewise.
18452         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
18453         __CRYPTO__ if the crypto instructions are available.
18454         (altivec_overloaded_builtins): Add support for overloaded power8
18455         builtins.
18457         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
18458         support for power8 crypto builtins.
18459         (builtin_function_type): Likewise.
18460         (altivec_init_builtins): Add support for builtins that take vector
18461         long long (V2DI) arguments.
18463         * config/rs6000/crypto.md: New file, define power8 crypto
18464         instructions.
18466 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
18467             Pat Haugen  <pthaugen@us.ibm.com>
18468             Peter Bergner  <bergner@vnet.ibm.com>
18470         * doc/invoke.texi (Option Summary): Add power8 options.
18471         (RS/6000 and PowerPC Options): Likewise.
18473         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
18474         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
18475         wm, wn, wr documentation.
18477         * config/rs6000/constraints.md (wm): New constraint for VSX
18478         registers if direct move instructions are enabled.
18479         (wn): New constraint for no registers.
18480         (wq): New constraint for quad word even GPR registers.
18481         (wr): New constraint if 64-bit instructions are enabled.
18482         (wv): New constraint if power8 vector instructions are enabled.
18483         (wQ): New constraint for quad word memory locations.
18485         * config/rs6000/predicates.md (const_0_to_15_operand): New
18486         constraint for 0..15 for crypto instructions.
18487         (gpc_reg_operand): If VSX allow registers in VSX registers as well
18488         as GPR and floating point registers.
18489         (int_reg_operand): New predicate to match only GPR registers.
18490         (base_reg_operand): New predicate to match base registers.
18491         (quad_int_reg_operand): New predicate to match even GPR registers
18492         for quad memory operations.
18493         (vsx_reg_or_cint_operand): New predicate to allow vector logical
18494         operations in both GPR and VSX registers.
18495         (quad_memory_operand): New predicate for quad memory operations.
18496         (reg_or_indexed_operand): New predicate for direct move support.
18498         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
18499         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
18500         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
18501         (POWERPC_MASKS): Add power8 options.
18502         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
18503         various options.
18505         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
18506         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
18508         * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
18509         (-mpower8-fusion): New power8 options.
18510         (-mpower8-fusion-sign): Likewise.
18511         (-mpower8-vector): Likewise.
18512         (-mcrypto): Likewise.
18513         (-mdirect-move): Likewise.
18514         (-mquad-memory): Likewise.
18516         * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
18517         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
18518         registers.
18519         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
18520         (rs6000_debug_vector_unit): Add p8_vector.
18521         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
18522         definitions.  Also print fusion state.
18523         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
18524         (rs6000_builtin_mask_calculate): Add power8 builtin support.
18525         (rs6000_option_override_internal): Add support for power8.
18526         (rs6000_common_init_builtins): Add debugging for skipped builtins
18527         if -mdebug=builtin.
18528         (rs6000_adjust_cost): Add power8 support.
18529         (rs6000_issue_rate): Likewise.
18530         (insn_must_be_first_in_group): Likewise.
18531         (insn_must_be_last_in_group): Likewise.
18532         (force_new_group): Likewise.
18533         (rs6000_register_move_cost): Likewise.
18534         (rs6000_opt_masks): Likewise.
18536         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
18537         power8 capable assembler, default to power7 options.
18538         (TARGET_DIRECT_MOVE): Likewise.
18539         (TARGET_CRYPTO): Likewise.
18540         (TARGET_P8_VECTOR): Likewise.
18541         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
18542         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
18543         (VECTOR_MEM_P8_VECTOR_P): Likewise.
18544         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
18545         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
18546         (TARGET_XSCVDPSPN): Likewise.
18547         (TARGET_XSCVSPDPN): Likewsie.
18548         (TARGET_SYNC_HI_QI): Likewise.
18549         (TARGET_SYNC_TI): Likewise.
18550         (MASK_CRYPTO): Likewise.
18551         (MASK_DIRECT_MOVE): Likewise.
18552         (MASK_P8_FUSION): Likewise.
18553         (MASK_P8_VECTOR): Likewise.
18554         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
18555         temporary used by some of the direct move instructions to get two FP
18556         temporary registers does not force creation of a stack frame.
18557         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
18558         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
18559         that any VSX registers are tieable, even if they are also an
18560         Altivec vector mode.
18561         (r6000_reg_class_enum): Add wm, wr, wv constraints.
18562         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
18563         (RS6000_BTM_CRYPTO): Likewise.
18564         (RS6000_BTM_COMMON): Likewise.
18566         * config/rs6000/rs6000.md (cpu attribute): Add power8.
18567         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
18568         (enum rs6000_vector): Add power8 vector support.
18570 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18572         PR target/19599
18573         PR target/57340
18574         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
18575         (any_sibcall_could_use_r3): this and handle indirect calls.
18576         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
18578 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18580         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
18582 2013-05-22  Richard Biener  <rguenther@suse.de>
18584         PR middle-end/57349
18585         * profile.c (branch_prob): Do not split blocks that are
18586         abnormally receiving from ECF_RETURNS_TWICE functions.
18588 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
18590         * recog.c (offsettable_address_addr_space_p): Fix calculation of
18591         address mode.  Move pointer mode initialization to the same place.
18593 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18595         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
18596         while it has any effect.
18598 2013-05-21  Easwaran Raman  <eraman@google.com>
18600         PR tree-optimization/57322
18601         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
18602         UID of the statement added to the BB to be 1.
18604 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
18606         PR tree-optimization/57331
18607         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
18608         of conversion from pointer type to integral type with integer.
18610 2013-05-21  Martin Jambor  <mjambor@suse.cz>
18612         PR lto/57289
18613         * ipa-prop.c (ipa_read_node_info): Process param_used and
18614         controlled_uses in the same order as when writing.
18616 2013-05-21  Magnus Granberg  <baldrick@free.fr>
18618         PR plugins/56754
18619         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
18621 2013-05-21  Richard Biener  <rguenther@suse.de>
18623         PR tree-optimization/57318
18624         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
18625         estimate stmts with side-effects as likely eliminated.
18627 2013-05-21  Richard Biener  <rguenther@suse.de>
18629         PR tree-optimization/57330
18630         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
18631         preserve the call stmts fntype.
18633 2013-05-21  Richard Biener  <rguenther@suse.de>
18635         PR tree-optimization/57303
18636         * tree-ssa-sink.c (statement_sink_location): Improve killing
18637         stmt detection and properly handle self-assignments.
18639 2013-05-21  Christian Bruel  <christian.bruel@st.com>
18641         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
18642         spanning registers. LEAF_REG_REMAP is supported only for contiguous
18643         registers. Set register size out of the PARALLEL loop.
18645 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
18647         PR target/56547
18648         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
18649         (*fmasf4, *fmasf4_media): New insns.
18651 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
18653         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
18654         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
18655         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
18656         (mips_idiv_insns): Update the comments to say that the returned
18657         instruction counts are in units of BASE_INSN_LENGTH.
18658         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
18659         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
18660         using 2 rather than 4 as the length of indirect MIPS16 and
18661         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
18662         length of a NOP.  Don't divide MIPS16 lengths by 2.
18663         (mips16_split_long_branches): Assume a branch is long if the
18664         length is greater than 4 rather than 8.
18665         * config/mips/mips.md (length): Give MIPS16 lengths directly,
18666         rather than multiplying them by 2.  Multiply instruction counts
18667         by BASE_INSN_LENGTH rather than 4.
18668         (*jump_mips16, tls_get_tp_mips16_<mode>)
18669         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
18671 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
18673         * config/mips/mips.md (extended_mips16): Remove branch case.
18674         (length): Remove duplicated extended_mips16 test.
18676 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
18678         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
18680 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
18682         * recog.h (Recog_data): Rename to...
18683         (recog_data_d): ...this.
18684         (recog_data): Update accordingly.
18685         * recog.c (recog_data): Likewise.
18686         * reload.c (save_recog_data): Likewise.
18687         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
18688         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
18690 2013-05-17  Julian Brown  <julian@codesourcery.com>
18692         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
18693         found in a REG_EQUAL note, invalidate it.
18695 2013-05-17  Easwaran Raman  <eraman@google.com>
18697         * tree-ssa-reassoc.c (find_insert_point): New function.
18698         (insert_stmt_after): Likewise.
18699         (get_def_stmt): Likewise.
18700         (ensure_ops_are_available): Likewise.
18701         (not_dominated_by): Likewise.
18702         (rewrite_expr_tree): Do not move statements beyond what is
18703         necessary. Remove call to swap_ops_for_binary_stmt...
18704         (reassociate_bb): ... and move it here.
18705         (build_and_add_sum): Assign UIDs for new statements.
18706         (linearize_expr): Likewise.
18707         (do_reassoc): Renumber gimple statement UIDs.
18709 2013-05-17  Jan Hubicka  <jh@suse.cz>
18711         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
18712         weakrefs.
18713         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
18714         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
18715         weakrefs.
18716         (output_weakrefs): Update.
18718 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
18719             Martin Jambor  <mjambor@suse.cz>
18721         PR middle-end/57276
18722         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
18723         value that corresponds to the given aggval is found in values vector.
18725 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
18727         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
18728         sse, sse2, sse3, ssse3 and sse4a flags to options.
18730 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
18732         * gengtype-state.c: (s_expr_writer): New class, to handle
18733         prettifying of output layout of s-expressions.
18734         (state_writer): New class, to write out gtype.state.
18735         (state_written_type_count): Move this variable into member data of
18736         state_writer.
18737         (s_expr_writer::s_expr_writer): New code: constructor for new class
18738         (state_writer::state_writer(): ditto
18739         (s_expr_writer::write_new_line): New function
18740         (s_expr_writer::write_any_indent): ditto
18741         (s_expr_writer::begin_s_expr): ditto
18742         (s_expr_writer::end_s_expr): ditto
18743         (write_state_fileloc): convert to method of state_writer...
18744         (state_writer:: write_state_fileloc): ...and use methods of
18745         s_expr_writer to write indentation into the gtype.state output file
18746         to visually represent the hierarchical structure of the list
18747         structures
18748         (write_state_fields): ditto, renaming to...
18749         (state_writer::write_state_fields)
18750         (write_state_a_string): ditto, renaming to...
18751         (state_writer::write_state_a_string)
18752         (write_state_string_option): ditto, renaming to...
18753         (state_writer::write_state_string_option)
18754         (write_state_type_option): ditto, renaming to...
18755         (state_writer::write_state_type_option)
18756         (write_state_nested_option): ditto, renaming to...
18757         (state_writer::write_state_nested_option)
18758         (write_state_option): ditto, renaming to...
18759         (state_writer::write_state_option)
18760         (write_state_options): ditto, renaming to...
18761         (state_writer::write_state_options)
18762         (write_state_lang_bitmap): ditto, renaming to...
18763         (state_writer::write_state_lang_bitmap)
18764         (write_state_version): ditto, renaming to...
18765         (state_writer::write_state_version)
18766         (write_state_scalar_type): ditto, renaming to...
18767         (state_writer::write_state_scalar_type)
18768         (write_state_string_type): ditto, renaming to...
18769         (state_writer::write_state_string_type)
18770         (write_state_undefined_type): ditto, renaming to...
18771         (state_writer::write_state_undefined_type)
18772         (write_state_struct_union_type): ditto, renaming to...
18773         (state_writer::write_state_struct_union_type)
18774         (write_state_struct_type): ditto, renaming to...
18775         (state_writer::write_state_struct_type)
18776         (write_state_user_struct_type): ditto, renaming to...
18777         (state_writer::write_state_user_struct_type)
18778         (write_state_lang_struct_type): ditto, renaming to...
18779         (state_writer::write_state_lang_struct_type)
18780         (write_state_param_struct_type): ditto, renaming to...
18781         (state_writer::write_state_param_struct_type)
18782         (write_state_pointer_type): ditto, renaming to...
18783         (state_writer::write_state_pointer_type)
18784         (write_state_array_type): ditto, renaming to...
18785         (state_writer::write_state_array_type)
18786         (write_state_gc_used): ditto, renaming to...
18787         (state_writer::write_state_gc_used)
18788         (write_state_common_type_content): ditto, renaming to...
18789         (state_writer::write_state_common_type_content)
18790         (write_state_type): ditto, renaming to...
18791         (state_writer::write_state_type)
18792         (write_state_pair_list): ditto, renaming to...
18793         (state_writer::write_state_pair_list)
18794         (write_state_pair): ditto, renaming to...
18795         (state_writer::write_state_pair)
18796         (write_state_typedefs): ditto, renaming to...
18797         (state_writer::write_state_typedefs)
18798         (write_state_structures): ditto, renaming to...
18799         (state_writer::write_state_structures)
18800         (write_state_param_structs): ditto, renaming to...
18801         (state_writer::write_state_param_structs)
18802         (write_state_variables): ditto, renaming to...
18803         (state_writer::write_state_variables)
18804         (write_state_srcdir): ditto, renaming to...
18805         (state_writer::write_state_srcdir)
18806         (write_state_files_list): ditto, renaming to...
18807         (state_writer::write_state_files_list)
18808         (write_state_languages): ditto, renaming to...
18809         (state_writer::write_state_languages)
18810         (write_state): create a state_writer instance and use it when
18811         writing out the state file
18813 2013-05-17  Mike Stump  <mikestump@comcast.net>
18815         PR rtl-optimization/57304
18816         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
18817         accessing DF_REF_REAL_LOC.
18819 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
18821         PR rtl-optimization/57281
18822         PR rtl-optimization/57300
18823         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
18824         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
18825         what the other splitter did if the registers are dead.
18827 2013-05-17  Richard Biener  <rguenther@suse.de>
18829         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
18830         MEM_REF offsets.
18832 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
18834         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
18835         linking.
18837 2013-05-17  Marek Polacek  <polacek@redhat.com>
18839         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
18840         length when doing non-zero store of storing '\0' to '\0'.
18842 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
18844         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
18845         vect_external_def oprnd1 with loop_vinfo, try to emit
18846         optional cast, negation and and stmts on the loop preheader
18847         edge instead of into the pattern def seq.
18849         PR tree-optimization/57051
18850         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
18851         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
18853 2013-05-16  Nick Clifton  <nickc@redhat.com>
18855         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
18856         (rl78_is_naked_func): New function.
18857         (rl78_expand_prologue): Skip prologue generation for naked functions.
18858         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
18859         * doc/extend.texi (naked): Add RL78 to the list of processors
18860         that supports this attribute.
18862 2013-05-16  Jeff Law  <law@redhat.com>
18864         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
18866 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
18868         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
18869         cache parameters using detect_caches_amd also for CYRIX,
18870         NSC and TM2 signatures.
18872 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
18873             Dzianis Kahanovich  <mahatma@eu.by>
18875         PR target/45359
18876         PR target/46396
18877         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
18878         VIA/Centaur processors and determine their cache parameters
18879         using detect_caches_amd.
18881 2013-05-16  Teresa Johnson  <tejohnson@google.com>
18883         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
18884         (rtl_verify_edges): New function.
18885         (rtl_verify_bb_insns): Ditto.
18886         (rtl_verify_bb_pointers): Ditto.
18887         (rtl_verify_bb_insn_chain): Ditto.
18888         (rtl_verify_fallthru): Ditto.
18889         (rtl_verify_bb_layout): Ditto.
18890         (rtl_verify_flow_info_1): Outline checks into new functions.
18891         (rtl_verify_flow_info): Ditto.
18893 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
18895         * cfghooks.c (copy_bbs): Add update_dominance argument.
18896         * cfghooks.h (copy_bbs): Update prototype.
18897         * tree-cfg.c (gimple_duplicate_sese_region):
18898         Add update_dominance argument.
18899         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
18900         * tree-ssa-loop-ch.c (copy_loop_headers): Update
18901         gimple_duplicate_sese_region call.
18902         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
18903         Update copy_bbs call.
18904         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
18905         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
18907 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
18909         * tree-vectorizer.h (NUM_PATTERNS): Increment.
18910         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
18911         vect_recog_rotate_pattern.
18912         (vect_recog_rotate_pattern): New function.
18914 2013-05-16  Jason Merrill  <jason@redhat.com>
18916         * Makefile.in (LLINKER): New variable.
18917         (mostlyclean): Remove link mutex.
18918         * configure.ac: Handle --enable-link-mutex.
18919         * lock-and-run.sh: New script.
18921 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18923         PR target/19599
18924         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
18925         for NULL decl.
18927 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18929         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
18931 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
18933         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
18934         * config/arm/arm.c (next_consecutive_mem): New function.
18935         (gen_movmem_ldrd_strd): Likewise.
18936         * config/arm/arm.md (movmemqi): Update condition and code.
18937         (unaligned_loaddi, unaligned_storedi): New patterns.
18939 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18941         * config.gcc: Obsolete *-*-solaris2.9*.
18942         * doc/install.texi (Specific, *-*-solaris2*): Document it.
18944 2013-05-16  Richard Biener  <rguenther@suse.de>
18946         * passes.c (init_optimization_passes): Move pass_parallelize_loops
18947         earlier, after GRAPHITE transforms and IV canonicalization.
18949 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
18951         * omp-low.c (extract_omp_for_data): For collapsed loops,
18952         if at least one of the loops is known at compile time to
18953         iterate zero times, set count to 0.
18954         (expand_omp_regimplify_p): New function.
18955         (expand_omp_for_generic): For collapsed loops, if at least
18956         one of the loops isn't known to iterate at least once,
18957         add runtime check with setting count to 0.
18958         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
18959         For unsigned types if it isn't known at compile time that
18960         the loop will iterate at least once, add runtime check to bypass
18961         the whole loop if initial condition isn't true.
18963 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
18965         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
18967 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
18969         PR middle-end/57286
18970         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
18971         transformations to avoid an infinite loop.
18973 2013-05-16  Marek Polacek  <polacek@redhat.com>
18975         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
18977 2013-05-15  Leif Ekblad  <leif@rdos.net>
18979         * config/i386/i386.c (ix86_decompose_address): Use
18980         DEFAULT_TLS_SEG_REG to access TLS segment register.
18981         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
18982         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
18983         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
18985 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
18987         PR target/57260
18988         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
18989         sibling calls to functions that would normally be lazily bound,
18990         unless $gp is call-clobbered.
18992 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
18994         * config/i386/i386.c (ix86_option_override_internal): Update
18995         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
18996         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
18997         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
18998         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
18999         of TARGET_3DNOW.
19000         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
19002 2013-05-15  Andreas Schwab  <schwab@suse.de>
19004         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
19005         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
19006         third operand.
19008 2013-05-15  Teresa Johnson  <tejohnson@google.com>
19010         * loop-unroll.c (report_unroll_peel): Check decision before
19011         emitting unroll/peel message.
19013 2013-05-15  Teresa Johnson  <tejohnson@google.com>
19015         * function.h (has_bb_partition): New rtl_data flag.
19016         (bb_reorder_complete): Ditto.
19017         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
19018         instead of flag_reorder_blocks_and_partition.
19019         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
19020         with some enhancements.
19021         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
19022         * bb-reorder.c (connect_traces): Check for has_bb_partition
19023         instead of flag_reorder_blocks_and_partition.
19024         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
19025         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
19026         verify_hot_cold_block_grouping.
19027         (partition_hot_cold_basic_blocks): Set has_bb_partition.
19029 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19031         PR target/19599
19032         * config/arm/predicates.md (call_insn_operand): New predicate.
19033         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
19034         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
19035         if insn is not a tail call.
19036         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
19037         registers.
19038         * config/arm/arm.h (enum reg_class): New caller save register class.
19039         (REG_CLASS_NAMES): Likewise.
19040         (REG_CLASS_CONTENTS): Likewise.
19041         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
19042         without decls.
19044 2013-05-15  Richard Biener  <rguenther@suse.de>
19046         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
19047         of MSG_OPTIMIZED_LOCATIONS.
19048         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
19049         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
19050         message.
19051         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
19052         of MSG_OPTIMIZED_LOCATIONS.
19053         (execute_vect_slp): Likewise.
19054         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
19055         (vect_create_cond_for_alias_checks): Likewise.
19056         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
19057         (vect_recog_widen_mult_pattern): Likewise.
19058         (vect_recog_widen_sum_pattern): Likewise.
19059         (vect_recog_over_widening_pattern): Likewise.
19060         (vect_recog_widen_shift_pattern): Likewise.
19061         (vect_recog_vector_vector_shift_pattern): Likewise.
19062         (vect_recog_divmod_pattern): Likewise.
19063         (vect_recog_mixed_size_cond_pattern): Likewise.
19064         (vect_recog_bool_pattern): Likewise.
19065         (vect_pattern_recog_1): Likewise.
19067 2013-05-15  Martin Jambor  <mjambor@suse.cz>
19069         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
19070         non-functions to builtin_unreachable.
19071         * ipa-inline-transform.c (inline_call): Do not assert estimates were
19072         correct when new direct edges were discovered.
19074 2013-05-15  Martin Jambor  <mjambor@suse.cz>
19076         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
19077         header, print symbol order instead of node uid, print more information
19078         about indirect edge targets.
19079         (ipa_make_edge_direct_to_target): Print symbol order instead of node
19080         uids.
19081         (ipa_make_edge_direct_to_target): Likewise.
19082         (remove_described_reference): Likewise.
19083         (propagate_controlled_uses): Likewise.
19084         (ipa_print_node_params): Also print symbol order.
19085         (ipcp_transform_function): Print symbol order instead of node uids.
19086         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
19087         (cgraph_get_create_real_symbol_node): Likewise.
19088         * ipa-cp.c (print_lattice): Likewise.
19089         (print_all_lattices): Likewise.
19090         (determine_versionability): Likewise.
19091         (initialize_node_lattices): Likewise.
19092         (estimate_local_effects): Likewise.
19093         (update_profiling_info): Likewise.
19094         (create_specialized_node): Likewise.
19095         (perhaps_add_new_callers): Likewise.
19096         (decide_about_value): Likewise.
19097         (decide_whether_version_node): Likewise.
19098         (identify_dead_nodes): Likewise.
19099         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
19100         (dump_inline_summary): Likewise.
19101         (estimate_node_size_and_time): Likewise.
19102         (inline_analyze_function): Likewise.
19103         * ipa-inline.c (report_inline_failed_reason): Likewise.
19104         (want_early_inline_function_p): Likewise.
19105         (edge_badness): Likewise.
19106         (update_edge_key): Likewise.
19107         (inline_small_functions): Likewise.  Add dumping of order to two other
19108         dumps.
19109         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
19110         instead of node uids.
19111         (propagate_pure_const): Likewise.
19112         (propagate_pure_const): Likewise.
19113         * ipa-utils.c (dump_cgraph_node_set): Likewise.
19114         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
19115         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
19116         of node uids.
19117         * tree-pretty-print.c (dump_function_header): Likewise.
19118         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
19119         Print symbol order instead of node uids.
19121 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19123         * config/s390/s390.c (s390_register_move_cost): Don't impose the
19124         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
19126 2013-05-15  Richard Biener  <rguenther@suse.de>
19128         PR tree-optimization/57275
19129         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
19130         return value for fail to do runtime alias checks for gather loads.
19132 2013-05-15  Jan Hubicka  <jh@suse.cz>
19134         PR lto/57038
19135         PR lto/47375
19136         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
19137         weakrefs are not external.
19138         (lto_symtab_merge_decls): Fix thinko when dealing with
19139         non-lto_symtab decls.
19140         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
19141         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
19142         * varpool.c (dump_varpool_node): Dump more flags.
19144 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
19146         * config/i386/i386.c (processor_alias_table): Add instruction
19147         FSGSBASE for AMD bdver3 architecture.
19149 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
19151         * tree.c (warn_deprecated_use): Print file:line using locus color.
19152         * diagnostic.c (diagnostic_report_current_module): Print file:line
19153         and file:line:column using locus color.
19155 2013-05-14  Mike Stump  <mikestump@comcast.net>
19157         * gdbinit.in: Add __null.
19159 2013-05-14  Mike Stump  <mikestump@comcast.net>
19161         * recog.h: Rename struct recog_data to Recog_data.
19162         * recog.c: Likewise.
19163         * reload.c (can_reload_into): Likewise.
19164         * config/picochip/picochip.c: Likewise.
19166 2013-05-14  Mike Stump  <mikestump@comcast.net>
19168         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
19170 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
19172         * resource.h (struct resources): Remove unch_memory member.
19173         (CLEAR_RESOURCE): Don't clear unch_memory.
19174         * resource.c (mark_referenced_resources): Don't set it.
19175         (mark_set_resources): Likewise.
19176         (mark_target_live_regs): Don't clear it.
19177         (init_resource_info): Likewise.
19178         * reorg.c (resource_conflicts_p): Don't compare it.
19179         (redundant_insn): Don't set it.
19181         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
19182         Remove prototypes.
19183         * emit-rtl.c (next_label): Remove unused function.
19184         (skip_consecutive_labels, link_cc0_insns): Move to ...
19185         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
19186         only place where these functions are used, and make them static.
19188 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
19190         * fold-const.c (fold_negate_expr): Handle vectors.
19191         (fold_truth_not_expr): Make it static.
19192         (fold_invert_truthvalue): New static function.
19193         (invert_truthvalue_loc): Handle vectors. Do not call
19194         fold_truth_not_expr directly.
19195         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
19196         <TRUTH_NOT_EXPR>: Do not cast to boolean.
19197         (fold_comparison): Handle vector constants.
19198         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
19199         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
19200         * tree.h (fold_truth_not_expr): Remove declaration.
19202 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
19204         * config/aarch64/aarch64-simd.md
19205         (aarch64_vcond_internal<mode>): Rename to...
19206         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
19207         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
19208         float modes. Clarify all iterator modes.
19209         (vcond<mode><mode>): Use new name for vcond expanders.
19210         (vcond<v_cmp_result><mode>): Likewise.
19211         (vcondu<mode><mode>: Likewise.
19212         * config/aarch64/iterators.md (VDQF_COND): New.
19214 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
19216         PR bootstrap/57266
19217         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
19218         variable for the shift amount. Check that we shift by non-negative
19219         amounts.
19221 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
19223         PR target/42017
19224         * config/arm/arm.h (EPILOGUE_USES): Only return true
19225         for LR_REGNUM after epilogue_completed.
19227 2013-05-14  Joern Rennecke  <joern.rennecke@embecosm.com>
19229         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
19230         is error_mark_node.
19232 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19234         PR target/57261
19235         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
19236         and Solaris 11+/x86 with gld.
19237         * configure: Regenerate.
19239 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
19241         * expmed.c (expand_shift_1): Canonicalize rotates by
19242         constant bitsize / 2 to bitsize - 1.
19243         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
19244         case ROTATERT>: Likewise.
19246         Revert:
19247         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
19249         * config/i386/i386.md (rotateinv): New code attr.
19250         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
19251         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
19252         roll $31, %eax, etc.
19254 2013-05-14  Richard Biener  <rguenther@suse.de>
19256         PR middle-end/57235
19257         * tree-eh.c (sink_clobbers): Give up for successors with
19258         multiple predecessors and no virtual uses.
19260 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
19262         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
19263         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
19265 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
19267         PR middle-end/57251
19268         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
19269         the case when both op0 and op1 have VOIDmode.
19271 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
19273         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
19274         in multiply-accumulate mode.
19276 2013-05-13  Guozhi Wei  <carrot@google.com>
19278         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
19280 2013-05-13  Kai Tietz  <ktietz@redhat.com>
19282         PR target/56975
19283         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
19284         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
19285         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
19286         * config/i386/i386.c (ix86_option_override_internal): Likewise.
19287         (ix86_expand_prologue): Likewise.
19288         (ix86_expand_split_stack_prologue): Likewise.
19289         (legitimate_pic_address_disp_p): Likewise.
19290         (legitimize_pic_address): Likewise.
19291         (legitimize_tls_address): Likewise.
19292         (legitimize_pe_coff_symbol): Likewise.
19293         (output_pic_addr_const): Likewise.
19294         (construct_plt_address): Likewise.
19295         (ix86_expand_call): Likewise.
19296         (x86_output_mi_thunk): Likewise.
19297         (x86_function_profiler): Likewise.
19299 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
19301         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
19302         similar switch cases.
19303         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
19304         (aarch64_simd_mov_to_<mode>low): Delete.
19305         (aarch64_simd_mov_to_<mode>high): Delete.
19306         (move_lo_quad_<mode>): Add w<-r alternative.
19307         (aarch64_simd_move_hi_quad_<mode>): Likewise.
19308         (aarch64_simd_mov_from_*): Update type attribute.
19309         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
19310         statement.
19312 2013-05-13  Jan Hubicka  <jh@suse.cz>
19314         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
19315         * config/i386/i386.c (ix86_compute_frame_layout,
19316         ix86_expand_epilogue, emit_i387_cw_initialization,
19317         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
19318         ix86_local_alignment): Fix use of size/speed predicates.
19320 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
19322         PR tree-optimization/45216
19323         PR tree-optimization/57157
19324         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
19325         the (-Y) & (B - 1) variant if OP is |.
19326         * expmed.c (expand_shift_1): For rotations by const0_rtx just
19327         return shifted.  Use (-op1) & (prec - 1) as other_amount
19328         instead of prec - op1.
19330 2013-05-13  Martin Jambor  <mjambor@suse.cz>
19332         PR middle-end/42371
19333         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
19334         (ipa_constant_data): New type.
19335         (ipa_jump_func): Use ipa_constant_data to hold information about
19336         constant jump functions.
19337         (ipa_get_jf_constant): Adjust to jump function type changes.
19338         (ipa_get_jf_constant_rdesc): New function.
19339         (ipa_param_descriptor): New field controlled_uses.
19340         (ipa_get_controlled_uses): New function.
19341         (ipa_set_controlled_uses): Likewise.
19342         * ipa-ref.h (ipa_find_reference): Declare.
19343         * ipa-prop.c (ipa_cst_ref_desc): New type.
19344         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
19345         changes.
19346         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
19347         New parameter cs.  Adjust all callers.
19348         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
19349         (remove_described_reference): New function.
19350         (jfunc_rdesc_usable): Likewise.
19351         (try_make_edge_direct_simple_call): Decrement controlled use count,
19352         attempt to remove reference if it hits zero.
19353         (combine_controlled_uses_counters): New function.
19354         (propagate_controlled_uses): Likewise.
19355         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
19356         (ipa_edge_duplication_hook): Duplicate reference descriptions.
19357         (ipa_print_node_params): Print described use counter.
19358         (ipa_write_jump_function): Adjust to jump function type changes.
19359         (ipa_read_jump_function): New parameter CS, pass it to
19360         ipa_set_jf_constant.  Adjust caller.
19361         (ipa_write_node_info): Stream controlled use count
19362         (ipa_read_node_info): Likewise.
19363         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
19364         asserting.
19365         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
19366         count.  Remove cloning-added reference if it reaches zero.
19367         * ipa-ref.c (ipa_find_reference): New function.
19369 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
19371         * config/i386/i386.c (processor_target_table): Modified default
19372         alignment values for AMD BD and BT architectures.
19374 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
19376         * tree-vect-generic.c (uniform_vector_p): Move ...
19377         * tree.c (uniform_vector_p): ... here.
19378         * tree.h (uniform_vector_p): Declare it.
19379         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
19380         into a scalar.
19382 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
19384         PR tree-optimization/57230
19385         * tree-ssa-strlen.c (handle_char_store): Record length for
19386         array store from STRING_CST.
19388         PR tree-optimization/57230
19389         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
19390         check.
19392 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
19394         * config/epiphany/epiphany.c (epiphany_init): Check size of
19395         NUM_MODES_FOR_MODE_SWITCHING.
19396         (epiphany_expand_prologue):
19397         Remove CONFIG_REGNUM initial value handling code.
19398         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
19399         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
19400         (emit_set_fp_mode, epiphany_mode_after): Likewise.
19401         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
19402         Don't return 1 for FP_MODE_NONE.
19403         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
19404         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
19405         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
19406         * config/epiphany/epiphany.md (save_config): New pattern.
19408 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
19410         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
19412 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
19414         * config/i386/i386.md (memory): Handle sseishft1.
19415         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
19416         (*vec_extractv2di_1): Ditto.
19418 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
19420         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
19421         saved registers.
19423 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
19425         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
19426         Add mthumb/march=armv7-a multilib.
19427         Add mthumb/march=armv7-r multilib.
19428         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
19430 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
19432         * config/v850/t-rtems: Add more multilibs.
19434 2013-05-10  Richard Biener  <rguenther@suse.de>
19436         PR tree-optimization/57214
19437         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
19438         not propagate from SSA names that occur in abnormal PHI nodes.
19440 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
19442         * stor-layout.c (element_precision): New function.
19443         * machmode.h (element_precision): Declare it.
19444         * tree.c (build_minus_one_cst): New function.
19445         (element_precision): Likewise.
19446         * tree.h (build_minus_one_cst): Declare new function.
19447         (element_precision): Likewise.
19448         * fold-const.c (operand_equal_p): Use element_precision.
19449         (fold_binary_loc): Handle vector types.
19450         * convert.c (convert_to_integer): Use element_precision.
19451         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
19452         separately.
19454 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
19456         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
19457         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
19458         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
19459         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
19460         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
19461         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
19462         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
19463         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
19464         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
19465         (Uuw8): New constraints.
19466         (Usb4): Move into alphabetical order.
19467         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
19468         (sd8_operand, ub8_operand, uw8_operand): New predicates.
19469         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
19470         previously unnamed patterns.
19471         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
19472         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
19473         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
19474         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
19475         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
19476         of specific lengths.
19478 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
19480         * config/i386/i386.md (rotateinv): New code attr.
19481         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
19482         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
19483         roll $31, %eax, etc.
19485         PR tree-optimization/45216
19486         PR tree-optimization/57157
19487         * tree-ssa-forwprop.c (simplify_rotate): New function.
19488         (ssa_forward_propagate_and_combine): Call it.
19490 2013-05-10  Richard Biener  <rguenther@suse.de>
19492         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
19493         disable peeling when we version for aliasing.
19494         (vector_alignment_reachable_p): Honor explicit user alignment.
19495         (vect_supportable_dr_alignment): Likewise.
19496         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
19497         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
19498         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
19499         then peeling to arrange for the cost-model check to come first.
19501 2013-05-10  Alan Modra  <amodra@gmail.com>
19503         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
19504         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
19505         * configure: Regenerate.
19507 2013-05-10  Alan Modra  <amodra@gmail.com>
19509         PR target/55033
19510         * varasm.c (default_elf_select_section): Move !DECL_P check..
19511         (get_named_section): ..to here before calling get_section_name.
19512         Adjust assertion.
19513         (default_section_type_flags): Add DECL_P check.
19514         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
19515         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
19517 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
19519         * config/epiphany/epiphany.c (epiphany_expand_prologue):
19520         When using gen_stack_adjust_str with a register offset, add a
19521         REG_FRAME_RELATED_EXPR note.
19523 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
19525         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
19526         (*vec_extractv4si_zext_mem): Ditto.
19527         (*vec_extractv2di): Add 0->x and x->x alternatives.
19528         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
19529         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
19531 2013-05-09  Jason Merrill  <jason@redhat.com>
19533         N3639 C++1y VLA support
19534         * gimplify.c (gimplify_vla_decl): Don't touch an existing
19535         DECL_VALUE_EXPR.
19537         * tree.c (build_constructor_va): New.
19538         * tree.h: Declare it.
19540 2013-05-09  Martin Jambor  <mjambor@suse.cz>
19542         PR lto/57084
19543         * gimple-fold.c (canonicalize_constructor_val): Call
19544         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
19546 2013-05-09  Jan Hubicka  <jh@suse.cz>
19547             Richard Biener  <rguenther@suse.de>
19549         PR lto/54095
19550         * symtab.c (symtab_make_decl_local): Do not add private names.
19552 2013-05-09  Jan Hubicka  <jh@suse.cz>
19554         PR lto/54095
19555         * symtab.c (insert_to_assembler_name_hash): Handle clones.
19556         (unlink_from_assembler_name_hash): Likewise.
19557         (symtab_prevail_in_asm_name_hash, symtab_register_node,
19558         symtab_unregister_node, symtab_initialize_asm_name_hash,
19559         change_decl_assembler_name): Update.
19561 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
19563         * config/aarch64/aarch64.md: New movtf split.
19564         (*movtf_aarch64): Update.
19565         (aarch64_movdi_tilow): Handle TF modes and rename to
19566         aarch64_movdi_<mode>low.
19567         (aarch64_movdi_tihigh): Handle TF modes and rename to
19568         aarch64_movdi_<mode>high
19569         (aarch64_movtihigh_di): Handle TF modes and rename to
19570         aarch64_mov<mode>high_di
19571         (aarch64_movtilow_di): Handle TF modes and rename to
19572         aarch64_mov<mode>low_di
19573         (aarch64_movtilow_tilow): Remove spurious whitespace.
19574         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
19575         splits.
19576         (aarch64_print_operand): Update.
19578 2013-05-09  Alan Modra  <amodra@gmail.com>
19580         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
19581         powerpc64le.
19582         * configure: Regenerate.
19584 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
19586         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
19587         splitter preparation statements.
19588         * config/i386/sse.md (*vec_extract* splitters): Ditto.
19589         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
19590         adjust_address_nv.
19592 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19594         * gimple-ssa-strength-reduction.c (count_candidates): Change
19595         return value to int.
19596         (analyze_candidates_and_replace): Change type of length to int.
19598 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
19600         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
19601         (*vec_extract<mode>): Use VI12_128 mode iterator.
19602         (*vec_extract<mode>_mem): Ditto.
19603         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
19604         attribute.
19606 2013-05-08  Diego Novillo  <dnovillo@google.com>
19608         PR bootstrap/54659
19610         Revert:
19611         2012-08-17  Diego Novillo  <dnovillo@google.com>
19613         PR bootstrap/54281
19614         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
19615         * config.in: Regenerate.
19616         * configure: Regenerate.
19617         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
19619 2013-05-08  Jan Hubicka  <jh@suse.cz>
19621         PR lto/54095
19622         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
19623         * cgraph.h (symtab_node_base): Add unique_name.
19624         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
19625         input_overwrite_node, input_varpool_node): Stream unique_name.
19626         * cgraphclones.c (cgraph_create_virtual_clone,
19627         cgraph_function_versioning): Set unique_name.
19628         * ipa.c (function_and_variable_visibility): Set unique_name.
19630 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19632         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
19633         (alloc_cand_and_find_basis): Restrict conditional candidate
19634         processing to CAND_MULTs.
19636 2013-05-08  Jan Hubicka  <jh@suse.cz>
19638         PR lto/54095
19639         lto-symtab.c (lto_symtab_symbol_p): New function.
19640         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
19641         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
19642         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
19643         Skip static symbols.
19645 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
19647         PR tree-optimization/57200
19648         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
19649         Only call inform if the preceding warning_at returns true.
19651 2013-05-07  Han Shen  <shenhan@google.com>
19653         * cfgexpand.c (record_or_union_type_has_array_p): New function.
19654         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
19655         * common.opt (fstack-protector-strong): New option.
19656         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
19657         * doc/invoke.texi (Optimization Options): Document
19658         "-fstack-protector-strong".
19659         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
19661 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
19663         * config/mips/mips.c (mips_machine_reorg2): Return 0.
19665 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
19667         * ira.c (update_equiv_regs): Add insn having equiv memory even if
19668         it is not lhs of the insn.
19669         (setup_reg_equiv): Remove insn having equiv memory which it is not
19670         lhs of the insn.
19671         * lra-constraints.c (process_address): Try to improve generation
19672         code for address base + disp.
19673         (lra_constraints): Make correct the code for checking insn setting
19674         up backward equivalence.  Remove insn only if it is in the init
19675         insn list.
19676         * lra-eliminations.c (update_reg_eliminate): Change return value.
19677         (lra_eliminate): Use the result.
19679 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
19681         * config/i386/sse.md (ssescalarnummask): New mode attribute.
19682         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
19683         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
19684         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
19685         register target operands.
19686         (*vec_extractv8hi_sse2): New pattern.
19687         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
19688         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
19689         (*vec_extract<mode>_mem): New insn and split pattern.
19691 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
19693         * config/arm/arm.c (arm_asan_shadow_offset): New function.
19694         (TARGET_ASAN_SHADOW_OFFSET): Define.
19695         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
19696         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
19698 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19700         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
19701         (incr_vec_index): Return -1 if increment not found.
19702         (create_add_on_incoming_edge): Assert if increment not found.
19703         (record_increment): Limit number of increments recorded.
19704         (all_phi_incrs_profitable): Return false if an increment not found.
19705         (replace_profitable_candidates): Don't process increments that were
19706         not recorded.
19707         (analyze_candidates_and_replace): Limit size of incr_vec.
19709 2013-05-07  Richard Biener  <rguenther@suse.de>
19711         * calls.c (special_function_p): setjmp-like functions are leaf.
19712         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
19713         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
19715 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
19717         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
19718         (aarch64_simd_mov<mode>): New expander.
19719         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
19720         (aarch64_simd_mov_to_<mode>high): Likewise.
19721         (aarch64_simd_mov_from_<mode>low): Likewise.
19722         (aarch64_simd_mov_from_<mode>high): Likewise.
19723         (aarch64_dup_lane<mode>): Update.
19724         (aarch64_dup_lanedi): New instruction pattern.
19725         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
19726         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
19728 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19730         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
19731         (replace_mult_candidate): Remove unnecessary argument; remove
19732         unnecessary parameter from call to introduce_cast_before_cand.
19733         (replace_unconditional_candidate): Remove unnecessary parameter
19734         from call to replace_mult_candidate.
19735         (replace_conditional_candidate): Likewise.
19736         (insert_initializers): Use make_temp_ssa_name.
19737         (introduce_cast_before_cand): Remove unnecessary argument; use
19738         make_temp_ssa_name.
19739         (replace_one_candidate): Remove unnecessary argument; remove
19740         unnecessary parameter from calls to introduce_cast_before_cand.
19741         (replace_profitable_candidates): Remove unnecessary parameters
19742         from calls to replace_one_candidate.
19744 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19746         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
19747         phi def as possibly hiding a basis for a CAND_ADD whose operands
19748         have been commuted in the analysis.
19749         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
19751 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
19753         * config/aarch64/aarch64.md
19754         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
19755         shift value between 0-4.
19757 2013-05-07  Richard Biener  <rguenther@suse.de>
19759         * double-int.h (rshift): New overload.
19760         * double-int.c (rshift): New function.
19761         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
19762         (create_reference_ops_from_ref): Remove.
19763         (vn_reference_insert): Use shared ops for constructing the
19764         reference and copy it.
19766 2013-05-07  Richard Biener  <rguenther@suse.de>
19768         PR middle-end/57190
19769         * tree-eh.c (sink_clobbers): Properly propagate
19770         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
19772 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
19774         PR tree-optimization/57149
19775         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
19776         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
19777         collect_phi_def_edges, execute_late_warn_uninitialized): Use
19778         uninit_undefined_value_p instead of ssa_undefined_value_p.
19780         PR debug/57184
19781         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
19782         for modifier == EXPAND_INITIALIZER.
19784 2013-05-07  Anton Blanchard  <anton@samba.org>
19786         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
19787         for powerpc64 little endian.
19788         * configure: Regenerate.
19790 2013-05-06  Graham Stott  <grahams@btinternet.com>
19792         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
19793         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
19794         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
19795         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
19797 2013-05-06  Graham Stott  <grahams@btinternet.com>
19799         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
19800         codes which allow non-lvalues.
19802 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
19804         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
19805         components are all 1s.
19806         (integer_minus_onep): New function.
19807         * tree.h (integer_minus_onep): Declare it.
19808         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
19809         integer_minus_onep instead of integer_all_onesp.
19811 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
19813         PR target/52933
19814         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
19815         variations of these patterns.
19817 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
19819         * config/i386/i386.md (isa): Add x64_sse4 member.
19820         (enabled): Handle x64_sse4.
19821         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
19822         instruction for 64bit SSE4_1 targets.  Update insn attributes.
19823         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
19824         instruction for SSE4_1 targets.  Update insn attributes.
19825         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
19826         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
19827         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
19828         const_1 selector.
19829         (*vec_extractv4si): Rename from *sse4_1_pextrd.
19830         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
19831         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
19833 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
19835         PR target/57108
19836         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
19838 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
19840         * final.c (do_assembler_dialects): Don't handle curly braces and
19841         vertical bar escaped by % as dialect delimiters.
19842         (output_asm_insn): Print curly braces and vertical bar if escaped
19843         by % and ASSEMBLER_DIALECT defined.
19844         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
19845         * doc/tm.texi: Regenerated.
19847 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
19849         * config/mips/mips.c: Include tree-pass.h.
19850         (mips_reorg): Split in pre- and post-dbr_schedule parts.
19851         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
19852         (pass_mips_machine_reorg2): New machine specific pass.
19853         (insert_pass_mips_machine_reorg2): New pass plugin definition.
19854         (mips_option_override): Register the new pass.
19855         * rtl.h (cleanup_barriers): Remove prototype.
19856         (dbr_schedule): Likewise.
19857         * jump.c (cleanup_barriers): Make static.
19858         * reorg.c (dbr_schedule): Likewise.
19860 2013-05-06  Richard Biener  <rguenther@suse.de>
19862         PR tree-optimization/57185
19863         * tree-parloops.c (add_field_for_reduction): Handle anonymous
19864         SSA names properly.
19866 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
19868         PR target/57106
19869         * config/i386/i386.c (add_parameter_dependencies): Add dependence
19870         between "first_arg" and "insn", not "last" and "insn".
19872 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19874         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
19875         (find_candidates_in_block): Re-enable slsr_process_phi.
19876         (create_phi_basis): Fix double counting of candidate adjustment.
19878 2013-05-06  Richard Biener  <rguenther@suse.de>
19880         PR middle-end/57147
19881         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
19882         the edge is also fallthru, preserve it and just clear the
19883         abnormal flag.
19884         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
19885         also complex, preserve that and just clear the fallthru flag.
19886         * tree-inline.c (update_ssa_across_abnormal_edges): Also
19887         update virtual operands.
19889 2013-05-06  Alan Modra  <amodra@gmail.com>
19891         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
19892         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
19893         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
19894         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
19895         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
19896         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
19898 2013-05-06  Alan Modra  <amodra@gmail.com>
19900         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
19901         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
19902         (DEFAULT_ASM_ENDIAN): Define.
19903         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
19904         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
19905         Update -K PIC clause from sysv4.h.
19906         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
19907         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
19909 2013-05-06  Alan Modra  <amodra@gmail.com>
19911         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
19912         twice for little-endian.
19913         (ashrdi3_no_power, ashrdi3): Support little-endian.
19915 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
19917         PR target/55303
19918         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
19919         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
19920         related expanders.
19921         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
19922         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
19923         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
19924         New predicates.
19926 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
19927             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19929         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
19930         * config/pa/pa.opt: Make mbig-switch a no-op.
19931         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
19932         (CASE_VECTOR_MODE): Always return SImode.
19933         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
19934         for the !TARGET_BIG_SWITCH case.
19935         * config/pa/pa-linux.h: Likewise.
19936         * config/pa/pa-openbsd.h: Likewise.
19937         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
19938         * config/pa/pa.md (short_jump): Remove define_insn.
19939         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
19940         (casesi0): Remove define_insn.
19941         (type): Remove btable_branch.
19942         (pa_combine_type): Likewise.
19943         (in_nullified_branch_delay): Likewise.
19944         (in_call_delay): Likewise.
19945         (define_delay): Likewise.
19946         (define_insn_reservation "Z3"): Likewise.
19947         (define_insn_reservation "Z4"): Likewise.
19948         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
19949         (pa_adjust_insn_length): Remove adjustment for btable branches.
19950         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
19951         and mno-big-switch
19953 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
19955         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
19956         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
19957         Add m->r,x alternatives.
19958         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
19959         splitters using SWI48x mode iterator.
19960         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
19961         TARGET_64BIT.  Add m->x alternative.
19962         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
19963         Add o->x alternative.  Enable for TARGET_SSE.
19964         (sse_storeq): Remove expander.
19965         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
19966         with memory input operand.
19967         (*vec_extractv2di_1 splitter): New.
19968         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
19969         * config/i386/i386.md (ssevecmodelower): New mode attribute.
19971 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
19973         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
19974         (INT_LOWPART): Delete.
19975         (extract_MB): Adjust.
19976         (extract_ME): Adjust.
19977         (print_operand): Adjust.
19979 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
19981         * config/rs6000/predicates.md (reg_or_add_cint_operand,
19982         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
19983         (reg_or_logical_cint_operand, easy_fp_constant,
19984         logical_const_operand): Delete "CONST_DOUBLE" case.
19985         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
19986         "HOST_BITS_PER_WIDE_INT == 64" test.
19987         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
19988         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
19989         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
19990         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
19991         test.
19992         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
19993         CONST_DOUBLE DImode/VOIDmode case.
19994         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
19995         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
19996         CONST_DOUBLE VOIDmode case.
19997         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
19998         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
19999         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
20000         Delete CONST_DOUBLE case.
20001         (splitters for mov FMOVE64 const_double): Delete
20002         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
20003         "HOST_BITS_PER_WIDE_INT >= 64" test.
20004         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
20005         case.
20006         (mov DI const_double): Delete.
20008 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
20010         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
20011         on op shows all bits zero in mode of a lowpart subreg, return zero.
20013 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
20015         PR target/57150
20016         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
20017         to save TFmode registers and DImode to save TImode registers for
20018         caller save operations.
20019         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
20020         mark being partially clobbered since they only use the first
20021         double word.
20023         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
20024         and TDmode only use the upper 64-bits of each VSX register.
20026 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20028         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
20029         (find_candidates_in_block): Disable slsr_process_phi.
20031 2013-05-03  Guozhi Wei  <carrot@google.com>
20033         * coverage.c (coverage_obj_init): Move the construction of gcov
20034         constructor to ...
20035         (build_init_ctor): ... here.
20037 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20039         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
20040         (slsr_cand_d): Redefine def_phi.
20041         (stride_status, phi_adjust_status, count_phis_status): New enums.
20042         (find_phi_def): New.
20043         (find_basis_for_base_expr): New.
20044         (find_basis_for_candidate): Handle hidden bases.
20045         (alloc_cand_and_find_basis): Handle phi candidates.
20046         (slsr_process_phi): New.
20047         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
20048         (create_mul_imm_cand): Likewise.
20049         (create_add_ssa_cand): Exclude phi base candidates.
20050         (create_add_imm_cand): Likewise.
20051         (slsr_process_cast): Likewise.
20052         (slsr_process_copy): Likewise.
20053         (find_candidates_in_block): Handle phi candidates.
20054         (dump_candidate): Likewise.
20055         (unconditional_cands): Delete.
20056         (unconditional_cands_with_known_stride_p): Delete.
20057         (phi_dependent_cand_p): New.
20058         (cand_increment): Handle phi-dependent candidates.
20059         (replace_dependent): Delete.
20060         (replace_mult_candidate): New.
20061         (replace_unconditional_candidate): New.
20062         (incr_vec_index): Move to avoid forward reference.
20063         (create_add_on_incoming_edge): New.
20064         (create_phi_basis): New.
20065         (replace_dependents): Delete.
20066         (replace_conditional_candidate): New.
20067         (phi_add_costs): New.
20068         (replace_uncond_cands_and_profitable_phis): New.
20069         (record_increment): Handle phi adjustments.
20070         (record_phi_increments): New.
20071         (record_increments): Handle phi adjustments.
20072         (phi_incr_cost): New.
20073         (lowest_cost_path): Handle phis.
20074         (total_savings): Likewise.
20075         (analyze_increments): Likewise.
20076         (ncd_with_phi): New.
20077         (ncd_of_cand_and_phis): New.
20078         (nearest_common_dominator_for_cands): Handle phi increments.
20079         (all_phi_incrs_profitable): New.
20080         (replace_profitable_candidates): Handle phi-dependent candidates.
20081         (analyze_candidates_and_replace): Likewise.
20083 2013-05-03  Teresa Johnson  <tejohnson@google.com>
20085         PR bootstrap/57154
20086         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
20087         do not exceed REG_BR_PROB_BASE.
20089 2013-05-03  Jeff Law  <law@redhat.com>
20091         PR tree-optimization/57144
20092         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
20093         operand of the condition will bit into the new type when eliminating
20094         a cast feeding a condition.
20096 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
20098         PR rtl-optimization/57130
20099         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
20100         of COMPARE as in_code to the recursive call if needed.
20102 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
20104         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
20105         (enabled): Handle new members.
20106         * config/i386/sse.md (*vec_concatv2si): Merge from
20107         *vec_concatv2si_sse2 and vec_concatv2si_sse.
20108         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
20110 2013-05-03  Joern Rennecke  <joern.rennecke@embecosm.com>
20112         PR tree-optimization/57027
20113         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
20114         for fnms opportunity, check we got the prerequisite kind
20115         of tree / gimple before using accessor functions.
20117 2013-05-03  Richard Biener  <rguenther@suse.de>
20119         * double-int.h (lshift): New overload without precision
20120         and arith argument.
20121         (operator *=, operator +=, operator -=): Move ...
20122         * double-int.c (operator *=, operator +=, operator -=): ... here
20123         and implement more efficiently.
20124         (mul_double_with_sign): Remove.
20125         (lshift_double): Adjust to take unsinged shift argument, push
20126         dispatching code to callers.
20127         (mul_double_wide_with_sign): Add early out for callers that
20128         are not interested in high parts or overflow.
20129         (lshift): New function.
20130         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
20131         dispatch code here.
20132         (lrotate, rrotate): Use logical shifts.
20133         * expr.c (get_inner_reference): Use lshift.
20134         * fixed-value.c (do_fixed_divide): Likewise.
20135         * tree-dfa.c (get_ref_base_and_extent): Likewise.
20136         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
20137         (indirect_refs_may_alias_p): Likewise.
20138         (stmt_kills_ref_p_1): Likewise.
20140 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
20142         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
20144 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
20146         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
20147         scalar form of FABD instruction.
20149 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
20151         * lra-constraints.c (process_alt_operands): Add checking alt
20152         number to choose the best alternative.
20154 2013-05-02  Richard Biener  <rguenther@suse.de>
20156         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
20157         bitmap and its handling.
20158         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
20160 2013-05-02  Richard Biener  <rguenther@suse.de>
20162         PR middle-end/57140
20163         * tree-inline.c (copy_loops): Properly handle removed loops.
20164         (copy_cfg_body): Mark destination loops for fixup if source
20165         loops needed fixup.
20167 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
20169         PR target/56732
20170         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
20171         generating simple_return for naked functions.
20173 2013-05-02  Martin Jambor  <mjambor@suse.cz>
20175         PR middle-end/56988
20176         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
20177         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
20178         flags match.
20179         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
20180         ipa_agg_replacement_value structures.
20181         (known_aggs_to_agg_replacement_list): Likewise.
20182         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
20183         (read_agg_replacement_chain): Likewise.
20184         (ipcp_transform_function): Also check that by_ref flags match.
20186 2013-05-02  Richard Biener  <rguenther@suse.de>
20188         * graphds.h (struct graph): Add obstack member.
20189         * graphds.c (new_graph): Initialize obstack and allocate
20190         vertices from it.
20191         (add_edge): Allocate edge from the obstack.
20192         (free_graph): Free the obstack instead of all edges and vertices.
20194 2013-05-02  Teresa Johnson  <tejohnson@google.com>
20196         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
20197         divides.
20198         * cfg.c (update_bb_profile_for_threading): Ditto.
20199         * tree-inline.c (copy_bb): Ditto.
20200         (copy_edges_for_bb): Ditto.
20201         (initialize_cfun): Ditto.
20202         (copy_cfg_body): Ditto.
20203         (expand_call_inline): Ditto.
20204         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
20205         (estimate_node_size_and_time): Ditto.
20206         (inline_merge_summary): Ditto.
20207         * cgraphclones.c (cgraph_clone_edge): Ditto.
20208         (cgraph_clone_node): Ditto.
20209         * sched-rgn.c (compute_dom_prob_ps): Ditto.
20210         (compute_trg_info): Ditto.
20212 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
20214         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
20215         S reg when fp attribute set.
20216         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
20218 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
20220         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
20221         New pattern.
20222         (*and_one_cmplsi3_compare0_uxtw): Likewise.
20223         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
20224         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
20226 2013-05-02  Richard Biener  <rguenther@suse.de>
20228         * tree-scalar-evolution.c (scev_info_hasher): Remove.
20229         (struct instantiate_cache_entry): New type.
20230         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
20231         (struct instantiate_cache_type): New type.
20232         (set_instantiated_value, get_instantiated_value): Remove.
20233         (get_instantiated_value_entry): New function.
20234         (instantiate_scev_name): Use the new cache and adjust.
20235         (instantiate_scev_poly): Adjust.
20236         (instantiate_scev_binary): Likewise.
20237         (instantiate_array_ref): Likewise.
20238         (instantiate_scev_convert): Likewise.
20239         (instantiate_scev_not): Likewise.
20240         (instantiate_scev_3): Likewise.
20241         (instantiate_scev_2): Likewise.
20242         (instantiate_scev_r): Likewise.
20243         (instantiate_scev): Likewise.
20244         (resolve_mixers): Likewise.
20246 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
20248         PR target/57091
20249         * lra-constraints.c (best_small_class_operands_num): Remove.
20250         (process_alt_operands): Remove small_class_operands_num.  Take
20251         small classes operands into losers and only if the operand is not
20252         matched.  Modify debugging output.
20253         (curr_insn_transform): Remove best_small_class_operands_num.
20254         Print insn name.
20256 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
20258         * config/aarch64/aarch64-builtins.c
20259         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
20260         * config/aarch64/aarch64-simd-builtins.def
20261         (reduc_splus_): Add new modes.
20262         (reduc_uplus_): New.
20263         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
20264         (reduc_uplus_v4sf): Likewise.
20265         (reduc_splus_v4sf): Likewise.
20266         (aarch64_addv<mode>): Likewise.
20267         (reduc_uplus_<mode>): Likewise.
20268         (reduc_splus_<mode>): Likewise.
20269         (aarch64_addvv2di): Likewise.
20270         (reduc_uplus_v2di): Likewise.
20271         (reduc_splus_v2di): Likewise.
20272         (aarch64_addvv2si): Likewise.
20273         (reduc_uplus_v2si): Likewise.
20274         (reduc_splus_v2si): Likewise.
20275         (reduc_<sur>plus_<mode>): New.
20276         (reduc_<sur>plus_v2di): Likewise.
20277         (reduc_<sur>plus_v2si): Likewise.
20278         (reduc_<sur>plus_v4sf): Likewise.
20279         (aarch64_addpv4sf): Likewise.
20280         * config/aarch64/arm_neon.h
20281         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
20282         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
20283         add UNSPEC_SADDV, UNSPEC_UADDV.
20284         (SUADDV): New.
20285         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
20287 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
20289         * config/aarch64/arm_neon.h
20290         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
20292 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
20294         * config/aarch64/aarch64-builtins
20295         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
20297 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
20299         * config/aarch64/aarch64-simd-builtins.def
20300         (reduc_smax_): New.
20301         (reduc_smin_): Likewise.
20302         (reduc_umax_): Likewise.
20303         (reduc_umin_): Likewise.
20304         (reduc_smax_nan_): Likewise.
20305         (reduc_smin_nan_): Likewise.
20306         (fmax): Remove.
20307         (fmin): Likewise.
20308         (smax): Update for V2SF, V4SF and V2DF modes.
20309         (smin): Likewise.
20310         (smax_nan): New.
20311         (smin_nan): Likewise.
20312         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
20313         (<su><maxmin><mode>3): ...This, refactor.
20314         (s<maxmin><mode>3): New.
20315         (<maxmin_uns><mode>3): Likewise.
20316         (reduc_<maxmin_uns>_<mode>): Refactor.
20317         (reduc_<maxmin_uns>_v4sf): Likewise.
20318         (reduc_<maxmin_uns>_v2si): Likewise.
20319         (aarch64_<fmaxmin><mode>: Remove.
20320         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
20321         new builtin names.
20322         (vmin<q>_f<32,64>): Likewise.
20323         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
20324         (FMAXMIN): New.
20325         (su): Add mappings for smax, smin, umax, umin.
20326         (maxmin): New.
20327         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
20328         (FMAXMIN): Rename as...
20329         (FMAXMIN_UNS): ...This.
20330         (maxminv): Remove.
20331         (fmaxminv): Likewise.
20332         (fmaxmin): Likewise.
20333         (maxmin_uns): New.
20334         (maxmin_uns_op): Likewise.
20336 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
20338         * config/aarch64/arm_neon.h
20339         (vac<ge, gt><sd>_f<32, 64>): Rename to...
20340         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
20341         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
20343 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
20345         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
20346         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
20348 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
20350         * config/aarch64/aarch64-simd.md
20351         (vcond<mode>_internal): Handle special cases for constant masks.
20352         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
20353         (vcondu<mode><mode>): Likewise.
20354         (vcond<v_cmp_result><mode>): New.
20356 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
20358         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
20359         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
20360         * config/aarch64/aarch64-simd-builtins.def
20361         (cmeq): Update to BUILTIN_VALLDI.
20362         (cmgt): Likewise.
20363         (cmge): Likewise.
20364         (cmle): Likewise.
20365         (cmlt): Likewise.
20366         * config/aarch64/arm_neon.h
20367         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
20368         to builtins or C as appropriate.
20370 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
20372         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
20373         (cmgeu): ...This.
20374         (cmhi): Rename to...
20375         (cmgtu): ...This.
20376         * config/aarch64/aarch64-simd.md
20377         (simd_mode): Add SF.
20378         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
20379         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
20380         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
20381         (cstore<mode>_neg): ...This.
20382         * config/aarch64/iterators.md
20383         (VALLF): new.
20384         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
20385         (COMPARISONS): New.
20386         (UCOMPARISONS): Likewise.
20387         (optab): Add missing comparisons.
20388         (n_optab): New.
20389         (cmp_1): Likewise.
20390         (cmp_2): Likewise.
20391         (CMP): Likewise.
20392         (cmp): Remove.
20393         (VCMP_S): Likewise.
20394         (VCMP_U): Likewise.
20395         (V_cmp_result): Add DF, SF modes.
20396         (v_cmp_result): Likewise.
20397         (v): Likewise.
20398         (vmtype): Likewise.
20399         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
20401 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
20403         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
20404         define_insn to define_insn_and_split.
20405         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
20406         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
20407         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
20408         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
20409         (thumb2_negscc): Likewise.
20411 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
20413         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
20415 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
20417         * config/arm/thumb2.md: Remove trailing whitespaces.
20419 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
20421         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
20422         Use gen_int_mode rather than GEN_INT.
20424 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
20426         * value-prof.c (stream_in_histogram_value): Remove the strayed
20427         debug_gimple_stmt.
20429 2013-04-30  Richard Biener  <rguenther@suse.de>
20431         PR middle-end/57122
20432         * cfghooks.c (split_edge): Properly check for the loop latch edge.
20434 2013-04-30  Richard Biener  <rguenther@suse.de>
20436         PR middle-end/57107
20437         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
20439 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
20441         PR rtl-optimization/56957
20442         PR rtl-optimization/57105
20443         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
20444         variable.  Use just INSN_UID for determining whether an insn
20445         should be only disconnected from the insn stream.
20446         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
20448 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
20450         PR tree-optimization/57104
20451         * tsan.c (instrument_expr): Don't instrument accesses to
20452         DECL_HARD_REGISTER VAR_DECLs.
20454 2013-04-30  Richard Biener  <rguenther@suse.de>
20456         * function.h (loops_for_fn): New inline function.
20457         (set_loops_for_fn): Likewise.
20458         * cfgloop.h (place_new_loop): Add struct function parameter.
20459         (get_loop): Likewise.
20460         (get_loops): Likewise.
20461         (number_of_loops): Likewise.
20462         (fel_next): Adjust.
20463         (fel_init): Likewise.
20464         * cfg.c (get_loop_copy): Adjust.
20465         * cfgloop.c (flow_loops_dump): Likewise.
20466         (record_loop_exits): Likewise.
20467         (verify_loop_structure): Likewise.
20468         * cfgloopanal.c (mark_irreducible_loops): Likewise.
20469         (estimate_reg_pressure_cost): Likewise.
20470         (mark_loop_exit_edges): Likewise.
20471         * cfgloopmanip.c (place_new_loop): Likewise.
20472         (add_loop): Likewise.
20473         (duplicate_loop): Likewise.
20474         * graph.c (draw_cfg_nodes): Likewise.
20475         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
20476         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
20477         (extract_affine_chrec): Likewise.
20478         (build_scop_iteration_domain): Likewise.
20479         * graphite.c (graphite_initialize): Likewise.
20480         * ira-build.c (create_loop_tree_nodes): Likewise.
20481         (more_one_region_p): Likewise.
20482         (rebuild_regno_allocno_maps): Likewise.
20483         (mark_loops_for_removal): Likewise.
20484         (mark_all_loops_for_removal): Likewise.
20485         (remove_unnecessary_regions): Likewise.
20486         (ira_build): Likewise.
20487         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
20488         * loop-init.c (fix_loop_structure): Likewise.
20489         (gate_rtl_move_loop_invariants): Likewise.
20490         (gate_rtl_unswitch): Likewise.
20491         (gate_rtl_unroll_and_peel_loops): Likewise.
20492         (rtl_doloop): Likewise.
20493         * lto-streamer-in.c (input_cfg): Likewise.
20494         * lto-streamer-out.c (output_cfg): Likewise.
20495         * modulo-sched.c (sms_schedule): Likewise.
20496         * predict.c (tree_estimate_probability): Likewise.
20497         (tree_estimate_probability_driver): Likewise.
20498         (estimate_loops): Likewise.
20499         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
20500         (move_sese_region_to_fn): Likewise.
20501         (debug_loop_num): Likewise.
20502         * tree-chrec.c (chrec_evaluate): Likewise.
20503         (hide_evolution_in_other_loops_than_loop): Likewise.
20504         (chrec_component_in_loop_num): Likewise.
20505         (reset_evolution_in_loop): Likewise.
20506         (evolution_function_is_invariant_rec_p): Likewise.
20507         * tree-if-conv.c (main_tree_if_conversion): Likewise.
20508         * tree-inline.c (copy_loops): Likewise.
20509         (copy_cfg_body): Likewise.
20510         (tree_function_versioning): Likewise.
20511         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
20512         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
20513         Likewise.
20514         (add_to_evolution_1): Likewise.
20515         (scev_const_prop): Likewise.
20516         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
20517         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
20518         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
20519         (tree_ssa_lim_initialize): Likewise.
20520         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
20521         (verify_loop_closed_ssa): Likewise.
20522         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
20523         (tree_ssa_loop_im): Likewise.
20524         (tree_ssa_loop_unswitch): Likewise.
20525         (tree_vectorize): Likewise.
20526         (check_data_deps): Likewise.
20527         (tree_ssa_loop_ivcanon): Likewise.
20528         (tree_ssa_loop_bounds): Likewise.
20529         (tree_complete_unroll): Likewise.
20530         (tree_complete_unroll_inner): Likewise.
20531         (tree_parallelize_loops): Likewise.
20532         (tree_ssa_loop_prefetch): Likewise.
20533         (tree_ssa_loop_ivopts): Likewise.
20534         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
20535         * tree-vectorizer.c (vectorize_loops): Likewise.
20537 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
20539         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
20540         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
20541         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
20542         with EABI_LINK_SPEC.
20544 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
20546         PR target/44578
20547         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
20548         alternative.
20550 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
20552         PR target/57097
20553         * lra-constraints.c (process_alt_operands): Discourage a bit more
20554         using memory for pseudos.  Print cost dump for alternatives.
20555         Modify cost values for conflicts with early clobbers.
20556         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
20558 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
20560         PR target/57098
20561         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
20563 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
20565         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
20566         from/to S register.
20567         (movdi_aarch64): Support LDR/STR from/to D register.
20569 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
20571         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
20572         or higher by default.
20574 2013-04-29  Richard Biener  <rguenther@suse.de>
20576         PR middle-end/57075
20577         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
20578         even if not adding abnormal edges for calls that can make
20579         abnormal gotos.
20581 2013-04-29  Richard Biener  <rguenther@suse.de>
20583         PR middle-end/57103
20584         * tree-cfg.c (move_stmt_op): Fix condition under which to update
20585         TREE_BLOCK.
20586         (move_stmt_r): Remove redundant checking.
20588 2013-04-29  Teresa Johnson  <tejohnson@google.com>
20590         PR bootstrap/57077
20591         * basic-block.h (apply_scale): New function.
20592         (apply_probability): Use apply_scale.
20593         * gimple-streamer-in.c (input_bb): Ditto.
20594         * lto-streamer-in.c (input_cfg): Ditto.
20595         * lto-cgraph.c (merge_profile_summaries): Ditto.
20596         * tree-optimize.c (execute_fixup_cfg): Ditto.
20597         * tree-inline.c (copy_bb): Update comment to use apply_scale.
20598         (copy_edges_for_bb): Ditto.
20599         (copy_cfg_body): Ditto.
20601 2013-04-29  Tom de Vries  <tom@codesourcery.com>
20603         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
20604         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
20605         (tail_merge_optimize): Handle current_loops == NULL.
20607 2013-04-26  Jeff Law  <law@redhat.com>
20609         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
20610         (simplify_cond_using_ranges): Generalize code to simplify
20611         COND_EXPRs where one argument is a constant and the other
20612         is an SSA_NAME created by an integral type conversion.
20614 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20616         * config/arm/arm.md (store_minmaxsi): Use only when
20617         optimize_insn_for_size_p.
20619 2013-04-29  Christian Bruel  <christian.bruel@st.com>
20621         PR target/57108
20622         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
20624 2013-04-29  Richard Biener  <rguenther@suse.de>
20626         PR middle-end/57089
20627         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
20628         loop tree make sure to schedule a fixup for the child as well.
20629         (expand_omp_for_generic): Properly add loops.
20630         (expand_omp_for_static_nochunk): Likewise.
20631         (expand_omp_for_static_chunk): Likewise.
20632         (expand_omp_for): For the degenerate case fixup loops.
20633         (expand_omp_sections): Fix default bb placement in loops.
20634         (expand_omp_atomic_pipeline): Properly add loops.
20636 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20638         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
20640 2013-04-29  Tom de Vries  <tom@codesourcery.com>
20642         * tree-ssa-tail-merge.c: Update header comment.
20644 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
20646         * config/aarch64/arm_neon.h
20647         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
20648         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
20649         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
20650         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
20651         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
20652         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
20653         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
20654         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
20656 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
20658         * config/aarch64/aarch64-simd.md
20659         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
20660         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
20661         fix_trunc, fixuns_trunc.
20662         (ftrunc<VDQF:mode>2): New.
20663         * config/aarch64/iterators.md (optab): Add fix, fixuns.
20664         (fix_trunc_optab): New.
20666 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
20668         * config/aarch64/aarch64-builtins.c
20669         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
20670         iceilf, lround, iroundf.
20672 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
20674         PR target/54349
20675         * config/i386/i386.h (enum ix86_tune_indices)
20676         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
20677         New, split from X86_TUNE_INTER_UNIT_MOVES.
20678         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
20679         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
20680         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
20681         (TARGET_INTER_UNIT_MOVES): Remove.
20682         * config/i386/i386.c (initial_ix86_tune_features): Update.
20683         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
20684         (ix86_expand_convert_uns_didf_sse): Use
20685         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
20686         (ix86_expand_vector_init_one_nonzero): Ditto.
20687         (ix86_expand_vector_init_interleave): Ditto.
20688         (inline_secondary_memory_needed): Return true for moves from SSE class
20689         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
20690         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
20691         * config/i386/constraints.md (Yi, Ym): Depend on
20692         TARGET_INTER_UNIT_MOVES_TO_VEC.
20693         (Yj, Yn): New constraints.
20694         * config/i386/i386.md (*movdi_internal): Change constraints of
20695         operand 1 from Yi to Yj and from Ym to Yn.
20696         (*movsi_internal): Ditto.
20697         (*movdf_internal): Ditto.
20698         (*movsf_internal): Ditto.
20699         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
20700         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
20701         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
20702         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
20703         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
20704         * config/i386/sse.md (movdi_to_sse): Ditto.
20705         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
20706         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
20707         TARGET_INTER_UNIT_MOVES.
20708         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
20709         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
20710         instead of TARGET_INTER_UNIT_MOVES.
20711         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
20712         operand 1 from Yi to Yj and from Ym to Yn.
20714 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
20716         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
20717         (float_truncate_hi_): Likewise.
20718         (float_extend_lo_): Likewise.
20719         (float_truncate_lo_): Likewise.
20720         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
20721         (aarch64_float_extend_lo_v2df): Likewise.
20722         (vec_unpacks_hi_v4sf): Likewise.
20723         (aarch64_float_truncate_lo_v2sf): Likewise.
20724         (aarch64_float_truncate_hi_v4sf): Likewise.
20725         (vec_pack_trunc_v2df): Likewise.
20726         (vec_pack_trunc_df): Likewise.
20728 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
20730         * config/aarch64/aarch64-builtins.c
20731         (aarch64_fold_builtin): Fold float conversions.
20732         * config/aarch64/aarch64-simd-builtins.def
20733         (floatv2si, floatv4si, floatv2di): New.
20734         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
20735         * config/aarch64/aarch64-simd.md
20736         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
20737         * config/aarch64/iterators.md (FLOATUORS): New.
20738         (optab): Add float, floatuns.
20739         (su_optab): Likewise.
20741 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
20743         * config/aarch64/aarch64-builtins.c
20744         (aarch64_builtin_vectorized_function): Use new names for
20745         fcvt builtins.
20746         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
20747         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
20748         (fcvtzu): Split as...
20749         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
20750         (fcvtas): Split as...
20751         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
20752         (fcvtau): Split as...
20753         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
20754         (fcvtps): Split as...
20755         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
20756         (fcvtpu): Split as...
20757         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
20758         (fcvtms): Split as...
20759         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
20760         (fcvtmu): Split as...
20761         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
20762         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
20763         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
20764         (lfrintnusf, lfrintnudf): Likewise.
20765         * config/aarch64/aarch64-simd.md
20766         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
20767         define_insn.
20768         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
20769         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
20770         (fcvt_pattern): Likewise.
20772 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
20774         * config/aarch64/aarch64-simd.md
20775         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
20776         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
20778 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
20780         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
20781         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
20782         (vrnd<a,m,n,p>_f32): Implement using builtins.
20783         (vrnd<i,x><q>_f<32, 64>): New.
20785 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
20787         * config/aarch64/aarch64-builtins.c
20788         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
20789         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
20790         (frintz): Rename to...
20791         (btrunc): ...this.
20792         (frintp): Rename to...
20793         (ceil): ...this.
20794         (frintm): Rename to...
20795         (floor): ...this.
20796         (frinti): Rename to...
20797         (nearbyint): ...this.
20798         (frintx): Rename to...
20799         (rint): ...this.
20800         (frinta): Rename to...
20801         (round): ...this.
20802         * config/aarch64/aarch64-simd.md
20803         (aarch64_frint<frint_suffix><mode>): Delete.
20804         (<frint_pattern><mode>2): Convert to insn.
20805         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
20806         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
20807         (frint_pattern): Likewise.
20808         (frint_suffix): Likewise.
20810 2013-04-29  Richard Biener  <rguenther@suse.de>
20812         PR tree-optimization/57081
20813         * loop-init.c: Include tree-flow.h.
20814         (loop_optimizer_finalize): Free number of iteration estimates.
20815         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
20817 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
20819         PR tree-optimization/57083
20820         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
20821         non-singleton shift count range, zero extend low_bound for uns case.
20823         * config/i386/predicates.md (general_vector_operand): New predicate.
20824         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
20825         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
20826         if they aren't nonimmediate operands.  If their original values
20827         satisfy const_vector_equal_evenodd_p, don't shift them.
20828         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
20829         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
20830         if not nonimmediate_operand.
20831         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
20832         instead of register_operand.
20833         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
20835 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
20837         * stor-layout.c (finalize_size_functions): Allocate a structure and
20838         reset cfun before dumping the functions.
20840 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
20842         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
20844         PR target/56866
20845         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
20846         use xop_pmacsdqh if uns_p.
20847         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
20848         the immediate rotate count.
20850 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
20852         * rtl.h (struct rtx_def): Add comment for field jump.
20853         (LRA_SUBREG_P): New macro.
20854         * recog.c (register_operand): Check LRA_SUBREG_P.
20855         * lra.c (lra): Add note at the end of RTL code. Align non-empty
20856         stack frame.
20857         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
20858         (lra_final_code_change): Skip subreg change for operators.
20859         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
20860         if there are no operand changes.
20861         * lra-constraints.c (curr_insn_set): New.
20862         (match_reload): Set LRA_SUBREG_P.
20863         (emit_spill_move): Ditto.
20864         (check_and_process_move): Use curr_insn_set. Process only single
20865         set insns.  Don't initialize sec_mem_p and change_p.
20866         (simplify_operand_subreg): Use LRA_SUBREG_P.
20867         (reg_in_class_p): New function.
20868         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
20869         of #ifdef.  Add code to remove cycling.
20870         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
20871         non-null disp.  Reload inner instead of disp when base and index
20872         are null.  Try to put lo_sum into register.
20873         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
20874         (check_and_process_move): Move code for move cost check to
20875         simple_move_p.  Remove equiv_substitution.
20876         (simple_move_p): New function.
20877         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
20878         curr_insn_set.  Call check_and_process_move only for single set
20879         insns.  Use the new function.  Move call of check_and_process_move
20880         after operand equiv substitution and address process.
20882 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
20884         PR go/57045
20885         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
20886         with nonlocal goto receivers or returns twice calls, ignore
20887         unininitialized values from abnormal edges to nl goto receiver
20888         or returns twice call.
20890 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
20892         PR tree-optimization/57051
20893         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
20894         and VEC_RSHIFT_EXPR if shift count is a multiple of element
20895         bitsize.
20897 2013-04-26  Richard Biener  <rguenther@suse.de>
20899         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
20900         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
20901         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
20902         (fixup_loop_arrays_after_move): New function.
20903         (move_sese_region_to_fn): Properly outline the loop tree parts
20904         of the SESE region.
20906 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
20908         * config/i386/i386.md (type, unit): Fix long lines.
20910 2013-04-26  Richard Biener  <rguenther@suse.de>
20912         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
20913         (lto-streamer-out.o): Likewise.
20914         * cfgloop.c (init_loops_structure): Export, add struct function
20915         argument and adjust.
20916         (flow_loops_find): Adjust.
20917         * cfgloop.h (enum loop_estimation): Add EST_LAST.
20918         (init_loops_structure): Declare.
20919         * lto-streamer-in.c: Include cfgloop.h.
20920         (input_cfg): Input the loop tree.
20921         * lto-streamer-out.c: Include cfgloop.h.
20922         (output_cfg): Output the loop tree.
20923         (output_struct_function_base): Do not drop PROP_loops.
20925 2013-03-26  Richard Biener  <rguenther@suse.de>
20927         * tree-cfg.c (execute_build_cfg): Build the loop tree.
20928         (pass_build_cfg): Provide PROP_loops.
20929         (move_sese_region_to_fn): Remove loops that are outlined into fn
20930         for now.
20931         * tree-inline.c: Include cfgloop.h.
20932         (initialize_cfun): Do not drop PROP_loops.
20933         (copy_loops): New function.
20934         (copy_cfg_body): Copy loop structure.
20935         (tree_function_versioning): Initialize destination loop tree.
20936         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
20937         (pass_parallelize_loops): Do IL verification.
20938         * loop-init.c (loop_optimizer_init): Fixup loops if required.
20939         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
20940         the CFG make sure we fixup loops as well.
20941         * tree-ssa-tail-merge.c: Include cfgloop.h.
20942         (replace_block_by): When merging loop latches mark loops for fixup.
20943         * lto-streamer-out.c (output_struct_function_base): Drop
20944         PROP_loops for now.
20945         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
20946         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
20947         * ipa-split.c: Include cfgloop.h.
20948         (split_function): Add the new return block to the loop tree root.
20949         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
20950         whether we have removed the forwarder block.
20951         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
20952         * cfgloop.h (place_new_loop): Declare.
20953         * cfgloopmanip.c (place_new_loop): Export.
20954         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
20955         (tree-switch-conversion.o): Likewise.
20956         (tree-complex.o): Likewise.
20957         (tree-inline.o): Likewise.
20958         (tree-ssa-tailmerge.o): Likewise.
20959         (ipa-split.o): Likewise.
20960         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
20961         (tree-ssa-copy.o): Likewise.
20962         * tree-switch-conversion.c: Include cfgloop.h
20963         (process_switch): If we emit a bit-test cascade, schedule loops
20964         for fixup.
20965         * tree-complex.c: Include cfgloop.h.
20966         (expand_complex_div_wide): Properly add new basic-blocks to loops.
20967         * asan.c: Include cfgloop.h.
20968         (create_cond_insert_point): Properly add new basic-blocks to
20969         loops, schedule loop fixup.
20970         * cfgloop.c (verify_loop_structure): Check that looks are not
20971         marked for fixup.
20972         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
20973         to loops.
20974         (expand_omp_for_generic): Likewise.
20975         (expand_omp_sections): Likewise.
20976         (expand_omp_atomic_pipeline): Schedule loops for fixup.
20977         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
20978         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
20979         is initialized, not when loops are present.
20980         * tree-parloops.c (parallelize_loops): Remove checking here.
20981         * passes.c (init_optimization_passes): Schedule a copy-propagation
20982         pass before complete unrolling of inner loops.
20984 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
20986         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
20987         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
20988         (colorize_init): Add argument to _WIN32 version.
20989         * toplev.c: Include diagnostic-color.h.
20990         (process_options): Default to -fdiagnostics-color=auto if
20991         GCC_COLORS env var is in the environment.
20992         * common.opt (fdiagnostics-color=): Add Var and Init.
20993         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
20994         env var is in the environment, the default is auto rather than never.
20996         * diagnostic.h (file_name_as_prefix): Add context argument.
20997         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
20998         the string as locus.
20999         * langhooks.c (lhd_print_error_function): Adjust caller.
21001 2013-04-25  Lawrence Crowl  <crowl@google.com>
21003         * var-tracking.c (shared_hash_def::htab):
21004         Change type to hash_table.  Update dependent calls and types.
21006 2013-04-25  Lawrence Crowl  <crowl@google.com>
21008         * Makefile.in: Update as needed below.
21010         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
21011         Move declaration to after the type's method definitons.
21013         * attribs.c (htab_t scoped_attributes::attribute_hash):
21014         Change type to hash_table.  Update dependent calls and types.
21016         * bitmap.c (htab_t bitmap_desc_hash):
21017         Change type to hash_table.  Update dependent calls and types.
21019         * cselib.c (htab_t cselib_hash_table):
21020         Change type to hash_table.  Update dependent calls and types.
21022         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
21023         (hash_string_slot_node): Move implementation into lto-streamer.h
21024         struct string_slot_hasher.
21025         (eq_string_slot_node): Likewise.
21027         * data-streamer-out.c: Update output_block::string_hash_table
21028         dependent calls and types.
21030         * dwarf2cfi.c (htab_t trace_index):
21031         Change type to hash_table.  Update dependent calls and types.
21033         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
21034         Change type to hash_table.  Update dependent calls and types.
21035         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
21036         (htab_t optimize_external_refs::map): Likewise.
21037         (htab_t output_comp_unit::extern_map): Likewise.
21038         (htab_t output_comdat_type_unit::extern_map): Likewise.
21039         (htab_t output_macinfo::macinfo_htab): Likewise.
21040         (htab_t optimize_location_lists::htab): Likewise.
21041         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
21043         * except.c (htab_t ehspec_hash_type):
21044         Change type to hash_table.  Update dependent calls and types.
21045         (assign_filter_values::ttypes): Likewise.
21046         (assign_filter_values::ehspec): Likewise.
21047         (sjlj_assign_call_site_values::ar_hash): Likewise.
21048         (convert_to_eh_region_ranges::ar_hash): Likewise.
21050         * gcse.c (htab_t pre_ldst_table):
21051         Change type to hash_table.  Update dependent calls and types.
21053         * ggc-common.c (htab_t saving_htab):
21054         Change type to hash_table.  Update dependent calls and types.
21055         (htab_t loc_hash): Likewise.
21056         (htab_t ptr_hash): Likewise.
21057         (call_count): Rename ggc_call_count.
21058         (call_alloc): Rename ggc_call_alloc.
21059         (loc_descriptor): Rename make_loc_descriptor.
21060         (add_statistics): Rename ggc_add_statistics.
21062         * ggc-common.c (saving_htab):
21063         Change type to hash_table.  Update dependent calls and types.
21065         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
21066         (push_gimplify_context): Likewise.
21067         (pop_gimplify_context): Likewise.
21068         (struct gimple_temp_hash_elt): Added.
21069         (struct gimplify_hasher): Likewise.
21070         (struct gimplify_ctx.temp_htab):
21071         Change type to hash_table.  Update dependent calls and types.
21073         * gimple-fold.c: Include gimplify-ctx.h.
21075         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
21076         Change type to hash_table.  Update dependent calls and types.
21077         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
21078         avoid potential global name collision.
21080         * gimplify.c: Include gimplify-ctx.h.
21081         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
21082         (htab_t gimplify_ctx::temp_htab):
21083         Update dependent calls and types for new type hash_table.
21084         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
21085         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
21087         * gimplify-ctx.h: New.
21088         (struct gimple_temp_hash_elt): Move from gimplify.c.
21089         (class gimplify_hasher): New.
21090         (struct gimplify_ctx): Move from gimple.h.
21091         (htab_t gimplify_ctx::temp_htab):
21092         Change type to hash_table.  Update dependent calls and types.
21094         * graphite-clast-to-gimple.c: Include graphite-htab.h.
21095         (htab_t ivs_params::newivs_index):
21096         Change type to hash_table.  Update dependent calls and types.
21097         (htab_t ivs_params::params_index): Likewise.
21098         (htab_t print_generated_program::params_index): Likewise.
21099         (htab_t gloog::newivs_index): Likewise.
21100         (htab_t gloog::params_index): Likewise.
21102         * graphite.c: Include graphite-htab.h.
21103         4htab_t graphite_transform_loops::bb_pbb_mapping):
21104         Change type to hash_table.  Update dependent calls and types.
21106         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
21107         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
21108         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
21110         * graphite-dependences.c: Include graphite-htab.h.
21111         (loop_is_parallel_p): Change hash table type of parameter.
21113         * graphite-htab.h: New.
21114         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
21115         (extern find_pbb_via_hash): Move from graphite-poly.h.
21116         (extern loop_is_parallel_p): Move from graphite-poly.h.
21117         (extern get_loop_body_pbbs): Move from graphite-poly.h.
21119         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
21120         (extern loop_is_parallel_p): Move to graphite-htab.h.
21121         (extern get_loop_body_pbbs): Move to graphite-htab.h.
21123         * haifa-sched.c (htab_t delay_htab):
21124         Change type to hash_table.  Update dependent calls and types.
21125         (htab_t delay_htab_i2): Likewise.
21127         * ira-color.c (htab_t allocno_hard_regs_htab):
21128         Change type to hash_table.  Update dependent calls and types.
21130         * ira-costs.c (htab_t cost_classes_htab):
21131         Change type to hash_table.  Update dependent calls and types.
21133         * loop-invariant.c (htab_t merge_identical_invariants::eq):
21134         Change type to hash_table.  Update dependent calls and types.
21136         * loop-iv.c (htab_t bivs):
21137         Change type to hash_table.  Update dependent calls and types.
21139         * loop-unroll.c (htab_t opt_info::insns_to_split):
21140         Change type to hash_table.  Update dependent calls and types.
21141         (htab_t opt_info::insns_with_var_to_expand): Likewise.
21143         * lto-streamer.h (struct string_slot): Move from data-streamer.h
21144         (struct string_slot_hasher): New.
21145         (htab_t output_block::string_hash_table):
21146         Change type to hash_table.  Update dependent calls and types.
21148         * lto-streamer-in.c (freeing_string_slot_hasher): New.
21149         (htab_t file_name_hash_table):
21150         Change type to hash_table.  Update dependent calls and types.
21152         * lto-streamer-out.c: Update output_block::string_hash_table dependent
21153         calls and types.
21155         * lto-streamer.c (htab_t tree_htab):
21156         Change type to hash_table.  Update dependent calls and types.
21158         * omp-low.c: Include gimplify-ctx.h.
21160         * passes.c (htab_t name_to_pass_map):
21161         Change type to hash_table.  Update dependent calls and types.
21162         (pass_traverse): Rename to passes_pass_traverse.
21164         * plugin.c (htab_t event_tab):
21165         Change type to hash_table.  Update dependent calls and types.
21167         * postreload-gcse.c (htab_t expr_table):
21168         Change type to hash_table.  Update dependent calls and types.
21169         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
21171         * sese.c (debug_rename_map_1): Make extern.
21172         (htab_t copy_bb_and_scalar_dependences::rename_map):
21173         Change type to hash_table.  Update dependent calls and types.
21175         * sese.h (extern debug_rename_map): Move to .c file.
21177         * store-motion.c (htab_t store_motion_mems_table):
21178         Change type to hash_table.  Update dependent calls and types.
21180         * trans-mem.c (htab_t tm_new_mem_hash):
21181         Change type to hash_table.  Update dependent calls and types.
21183         * tree-browser.c (htab_t TB_up_ht):
21184         Change type to hash_table.  Update dependent calls and types.
21186         * tree-cfg.c (htab_t discriminator_per_locus):
21187         Change type to hash_table.  Update dependent calls and types.
21189         * tree-complex.c: Include tree-hasher.h
21190         (htab_t complex_variable_components):
21191         Change type to hash_table.  Update dependent calls and types.
21193         * tree-eh.c (htab_t finally_tree):
21194         Change type to hash_table.  Update dependent calls and types.
21196         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
21197         struct int_tree_hasher.
21198         (extern int_tree_map_eq): Likewise.
21199         (uid_decl_map_hash): Removed.
21200         (extern decl_tree_map_eq): Likewise.
21202         * tree-hasher.h: New.
21203         (struct int_tree_hasher): New.
21204         (typedef int_tree_htab_type): New.
21206         * tree-inline.c: Include gimplify-ctx.h.
21208         * tree-mudflap.c: Include gimplify-ctx.h.
21210         * tree-parloops.c: Include tree-hasher.h.
21211         (htab_t eliminate_local_variables_stmt::decl_address):
21212         Change type to hash_table.  Update dependent calls and types.
21213         (htab_t separate_decls_in_region::decl_copies): Likewise.
21215         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
21216         Change type to hash_table.  Update dependent calls and types.
21218         * tree-sra.c (candidates):
21219         Change type to hash_table.  Update dependent calls and types.
21221         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
21222         in tree-flow.h.
21223         (int_tree_map_hash): Likewise.
21225         * tree-ssa-dom.c (htab_t avail_exprs):
21226         Change type to hash_table.  Update dependent calls and types.
21228         * tree-ssa-live.c (var_map_base_init::tree_to_index):
21229         Change type to hash_table.  Update dependent calls and types.
21231         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
21232         Change type to hash_table.  Update dependent calls and types.
21234         * tree-ssa-phiopt.c (seen_ssa_names):
21235         Change type to hash_table.  Update dependent calls and types.
21237         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
21238         Change type to hash_table.  Update dependent calls and types.
21240         * tree-ssa-uncprop.c (equiv):
21241         Change type to hash_table.  Update dependent calls and types.
21243 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
21245         PR rtl-optimization/57003
21246         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
21247         call note_stores with kill_clobbered_value callback again after
21248         killing regs_invalidated_by_call.
21250 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
21252         * config/aarch64/aarch64-simd.md
21253         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
21254         (aarch64_simd_bsl<mode>): Likewise.
21255         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
21257 2013-04-25  Marek Polacek  <polacek@redhat.com>
21259         PR tree-optimization/57066
21260         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
21262 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
21264         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
21266 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
21268         * config/aarch64/aarch64-builtins.c
21269         (aarch64_fold_builtin): New.
21270         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
21271         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
21272         * config/aarch64/aarch64-simd-builtins.def (abs): New.
21273         * config/aarch64/arm_neon.h
21274         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
21276 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
21277             Tejas Belagod  <tejas.belagod@arm.com>
21279         * config/aarch64/aarch64-builtins.c
21280         (aarch64_gimple_fold_builtin): New.
21281         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
21282         * config/aarch64/aarch64-simd-builtins.def (addv): New.
21283         * config/aarch64/aarch64-simd.md (addpv4sf): New.
21284         (addvv4sf): Update.
21285         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
21287 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
21289         * config/aarch64/aarch64.md
21290         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
21292 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
21294         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
21295         (*ngcsi_uxtw): New pattern.
21297 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21298             Julian Brown  <julian@codesourcery.com>
21300         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
21301         (TB_DREG): Add T_V4HF.
21302         (v4hf_UP): New macro.
21303         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
21304         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
21305         Handle initialisation of V4HF. Adjust initialisation of reinterpret
21306         built-ins.
21307         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
21308         (arm_vector_mode_supported_p): Handle V4HF.
21309         (arm_mangle_map): Handle V4HFmode.
21310         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
21311         * config/arm/arm_neon_builtins.def: Add entries for
21312         vcvtv4hfv4sf, vcvtv4sfv4hf.
21313         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
21314         (neon_vcvtv4hfv4sf): Likewise.
21315         * config/arm/neon-gen.ml: Handle half-precision floating point
21316         features.
21317         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
21318         * config/arm/arm_neon.h: Regenerate.
21319         * config/arm/neon.ml (type elts): Add F16.
21320         (type vectype): Add T_float16x4, T_floatHF.
21321         (type vecmode): Add V4HF.
21322         (type features): Add Requires_FP_bit feature.
21323         (elt_width): Handle F16.
21324         (elt_class): Likewise.
21325         (elt_of_class_width): Likewise.
21326         (mode_of_elt): Refactor.
21327         (type_for_elt): Handle F16, fix error messages.
21328         (vectype_size): Handle T_float16x4.
21329         (vcvt_sh): New function.
21330         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
21331         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
21332         (string_of_mode): Handle V4HF.
21333         * doc/arm-neon-intrinsics.texi: Regenerate.
21335 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
21337         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
21338         format specifier in 'X' case.
21340 2013-04-25  Alan Modra  <amodra@gmail.com>
21342         PR target/57052
21343         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
21344         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
21345         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
21346         Repeat for many other rotate/shift and mask patterns using subregs.
21347         Name lshiftrt insns.
21348         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
21349         on WORDS_BIG_ENDIAN.
21351 2013-04-25  Alan Modra  <amodra@gmail.com>
21353         * config.gcc: Support little-endian powerpc-linux targets.
21354         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
21355         (LINK_OS_LINUX_SPEC): Define.
21356         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
21357         Preserve MASK_LITTLE_ENDIAN.
21358         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
21359         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
21360         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
21361         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
21362         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
21363         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
21364         Correct fp word order for little-endian.  Don't shift toc entries
21365         smaller than a word for little-endian.
21366         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
21367         (bswapdi2 splits): Correct low-part subreg for little-endian.
21368         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
21369         low/high where such is correct only for be.
21370         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
21371         little-endian for -mcall-aixdesc.
21373 2013-04-25  Alan Modra  <amodra@gmail.com>
21375         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
21376         replace_equiv_address_nv.
21378 2013-04-25  Alan Modra  <amodra@gmail.com>
21380         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
21382 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
21384         Revert:
21385         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
21386         * rtl.h (struct rtx_def): ...
21388 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
21390         PR rtl-optimizations/57046
21391         * lra-constraints (split_reg): Set up lra_risky_transformations_p
21392         for multi-reg splits.
21394 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
21396         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
21398 2013-04-24  Sterling Augustine  <saugustine@google.com>
21400         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
21401         (comp_dir_string, debug_str_dwo_section): New.
21402         (DEBUG_STR_DWO_SECTION): Rename to ...
21403         (DEBUG_DWO_STR_SECTION): ... this.
21404         (DEBUG_NORM_STR_SECTION): Delete.
21405         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
21406         (DEBUG_STR_DWO_SECTION_FLAGS): New.
21407         (find_AT_string): Move most logic to ...
21408         (find_AT_string_in_table): ... here.  New.
21409         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
21410         add_skeleton_AT_string.  Delete logic.
21411         (output_skeleton_debug_sections): Remove call to
21412         add_top_level_skeleton_die_attrs.
21413         (add_comp_dir_attribute): Move logic to comp_dir_string.
21414         (dwarf2out_init): Initialize debug_str_dwo_section.
21415         (output_indirect_string): Call find_string_form.
21416         (output_indirect_strings): Rewrite.
21417         (prune_unused_types): Empty skeleton_debug_str_hash.
21418         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
21419         (dwarf2out_finish):  Call output_indirect_strings.
21421 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
21423         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
21425 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
21427         * rtl.h (struct rtx_def): Add comment for field jump.
21428         (LRA_SUBREG_P): New macro.
21429         * recog.c (register_operand): Check LRA_SUBREG_P.
21430         * lra.c (lra): Add note at the end of RTL code. Align non-empty
21431         stack frame.
21432         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
21433         (lra_final_code_change): Skip subreg change for operators.
21434         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
21435         if there are no operand changes.
21436         * lra-constraints.c (curr_insn_set): New.
21437         (match_reload): Set LRA_SUBREG_P.
21438         (emit_spill_move): Ditto.
21439         (check_and_process_move): Use curr_insn_set. Process only single
21440         set insns.  Don't initialize sec_mem_p and change_p.
21441         (simplify_operand_subreg): Use LRA_SUBREG_P.
21442         (reg_in_class_p): New function.
21443         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
21444         of #ifdef.  Add code to remove cycling.
21445         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
21446         non-null disp.  Reload inner instead of disp when base and index
21447         are null.  Try to put lo_sum into register.
21448         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
21449         (check_and_process_move): Move code for move cost check to
21450         simple_move_p.  Remove equiv_substitution.
21451         (simple_move_p): New function.
21452         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
21453         curr_insn_set.  Call check_and_process_move only for single set
21454         insns.  Use the new function.  Move call of check_and_process_move
21455         after operand equiv substitution and address process.
21457 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
21459         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
21460         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
21461         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
21463 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
21465         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
21467 2013-04-24  Marek Polacek  <polacek@redhat.com>
21469         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
21470         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
21471         (select_loops_exit_conditions): Likewise.
21472         (number_of_iterations_for_all_loops): Likewise.
21473         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
21474         (scev_analysis): Likewise.
21476 2013-04-02  Catherine Moore  <clm@codesourcery.com>
21477             Chao-ying Fu  <fu@mips.com>
21479         * config/mips/micromips.md (jraddiusp): New pattern.
21480         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
21481         instruction if possible.
21483 2013-04-24  Alan Modra  <amodra@gmail.com>
21485         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
21487 2013-04-24  Julian Brown  <julian@codesourcery.com>
21488             Chung-Lin Tang  <cltang@codesourcery.com>
21490         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
21491         dependency behavior in enumeration type DIE generation. Add TODO note
21492         to comments about future DW_FORM_sdata/udata re-work of related code.
21494 2013-04-23  Lawrence Crowl  <crowl@google.com>
21496         * Makefile.in: Update as needed below.
21498         * hash-table.h (class hash_table):
21499         Correct many methods with parameter types compare_type to the correct
21500         value_type.  (Correct code was unlikely to notice the change.)
21501         (hash_table::elements_with_deleted) New.
21502         (class hashtable::iterator): New.
21503         (hashtable::begin()): New.
21504         (hashtable::end()): New.
21505         (FOR_EACH_HASH_TABLE_ELEMENT): New.
21507         * statistics.c (statistics_hashes):
21508         Change type to hash_table.  Update dependent calls and types.
21510         * tree-into-ssa.c (var_infos):
21511         Change type to hash_table.  Update dependent calls and types.
21513         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
21514         Change type to hash_table.  Update dependent calls and types.
21516         * tree-ssa-loop-im.c (struct mem_ref.refs):
21517         Change type to hash_table.  Update dependent calls and types.
21519         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
21520         Change type to hash_table.  Update dependent calls and types.
21522         * tree-ssa-sccvn.c (vn_tables_s::nary):
21523         Change type to hash_table.  Update dependent calls and types.
21524         (vn_tables_s::phis): Likewise.
21525         (vn_tables_s::references): Likewise.
21527         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
21528         (vn_reference_eq): Update parameter and return types.
21530         * tree-ssa-structalias.c (pointer_equiv_class_table):
21531         Change type to hash_table.  Update dependent calls and types.
21532         (location_equiv_class_table): Likewise.
21534         * tree-vect-data-refs.c: Consequential changes for making
21535         peeling a hash_table.
21537         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
21538         (destroy_loop_vec_info): Dependent hash_table update.
21540         * tree-vectorizer.h (peeling_htab):
21541         Change type to hash_table.  Update dependent calls and types.
21543 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
21545         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
21546         to check the register content is equal or not.
21547         * lra-constraints.c (match_reload): Use lra_assign_reg_val
21548         to assign register content record.
21549         * lra-eliminations.c (update_reg_eliminate): Use
21550         lra_update_reg_val_offset to update register content offset.
21551         * lra-int.h (struct lra_reg): Add offset member.
21552         (lra_reg_val_equal_p): New static inline function.
21553         (lra_update_reg_val_offset): New static inline function.
21554         (lra_assign_reg_val): New static inline function.
21555         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
21556         to assign register content record.
21557         (initialize_lra_reg_info_element): Initial offset to zero.
21559 2013-04-23  Catherine Moore  <clm@codesourcery.com>
21561         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
21562         operands.  Record compression.
21564 2013-04-23  Xinliang David Li  <davidxl@google.com>
21566         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
21568 2013-04-23  Richard Biener  <rguenther@suse.de>
21570         PR middle-end/57036
21571         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
21572         parameter, only add abnormal goto edges from the copied body
21573         if the call could perform abnormal gotos.
21574         (copy_cfg_body): Adjust.
21576 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
21578         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
21580 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
21582         * coretypes.h (gimple_stmt_iterator): Add struct to make
21583         compatible with C.
21585 2013-04-23  Richard Biener  <rguenther@suse.de>
21587         PR tree-optimization/57026
21588         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
21589         from SSA names occuring in abnormal PHI nodes.
21591 2013-04-22  Andi Kleen  <ak@linux.intel.com>
21593         * lto/lto.c (print_lto_report_1): Fix LTO report names.
21595 2013-04-22  Andi Kleen  <ak@linux.intel.com>
21597         * lto/lto.c (print_lto_report_1): Declare early.
21598         (read_cgraph_and_symbols): Call print_lto_report_1 early.
21600 2013-04-22  Andi Kleen  <ak@linux.intel.com>
21602         * common.opt (-flto-report-wpa): Add.
21603         * doc/invoke.texi (-flto-report-wpa): Add.
21604         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
21605         (lto_main): dito.
21607 2013-04-22  Xinliang David Li  <davidxl@google.com>
21609         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
21610         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
21611         * Makefile.in: New dependency
21613             David Daney <ddaney.cavm@gmail.com>
21615         * configure.ac (gcc_cv_as_micromips_support):  Use the
21616         --fatal-warnings option.
21617         * configure: Regenerate.
21619 2013-04-22  Marek Polacek  <polacek@redhat.com>
21621         PR sanitizer/56990
21622         * tsan.c (instrument_expr): Don't instrument expression
21623         in case its size is zero.
21625 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
21627         PR target/57032
21628         Revert:
21629         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
21631         * config/alpha/alpha.c (TARGET_LRA_P): New define.
21633 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
21635         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
21636         (gimple_stmt_iterator): New typedef.
21637         * gimple.h (gimple_stmt_iterator): Rename to...
21638         (gimple_stmt_iterator_d): ... This.
21639         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
21640         trees be valid for GIMPLE and GENERIC.
21641         (TARGET_GIMPLE_FOLD_BUILTIN): New.
21642         * gimple-fold.c (gimple_fold_call): Call target hook
21643         gimple_fold_builtin.
21644         * hooks.c (hook_bool_gsiptr_false): New.
21645         * hooks.h (hook_bool_gsiptr_false): New.
21646         * target.def (fold_stmt): New.
21647         * doc/tm.texi: Regenerate.
21649 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
21651         PR target/57018
21652         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
21653         a set sp if no stack realignment.
21655 2013-04-22  Nick Clifton  <nickc@redhat.com>
21657         * config.gcc (tilegx-linux): Extend extra_objs rather than
21658         overwriting it.
21659         (tilepro-linux): Likewise.
21661 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
21663         * config/aarch64/aarch64-builtins.c
21664         (CF): Remove.
21665         (CF0, CF1, CF2, CF3, CF4, CF10): New.
21666         (VAR<1-12>): Add MAP parameter.
21667         (BUILTIN_*): Likewise.
21668         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
21669         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
21670         (aarch64_ushl_n<mode>): Likewise.
21671         (aarch64_sshr_n<mode>): Likewise.
21672         (aarch64_ushr_n<mode>): Likewise.
21673         (aarch64_<maxmin><mode>): Likewise.
21674         (aarch64_sqrt<mode>): Likewise.
21675         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
21676         (vshr<q>_n_*): Likewise.
21678 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
21680         * config/aarch64/aarch64-builtins.c
21681         (aarch64_simd_builtin_type_mode): Handle SF types.
21682         (sf_UP): Define.
21683         (BUILTIN_GPF): Define.
21684         (aarch64_init_simd_builtins): Handle SF types.
21685         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
21686         (frecps): Likewise.
21687         (frecpx): Likewise.
21688         * config/aarch64/aarch64-simd.md
21689         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
21690         (aarch64_frecpe<mode>): New.
21691         (aarch64_frecps<mode>): Likewise.
21692         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
21693         (v8type): Add frecp<esx>.
21694         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
21695         (aarch64_frecps<mode>): Likewise.
21696         * config/aarch64/iterators.md (FRECP): New.
21697         (frecp_suffix): Likewise.
21698         * config/aarch64/arm_neon.h
21699         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
21701 2013-04-22  Christian Bruel  <christian.bruel@st.com>
21703         PR target/56995
21704         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
21705         (REG_CLASS_NAMES): Idem.
21706         (REG_CLASS_CONTENTS): Idem.
21707         (REGCLASS_HAS_FP_REG): Idem.
21708         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
21709         (sh_conditional_register_usage): Idem.
21711 2013-04-21  Jeff Law  <law@redhat.com>
21713         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
21714         (ssa_forward_propagate_and_combine): Use it.
21716 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
21718         * lra.c: Update the flow chart diagram.
21720 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
21722         PR rtl-optimization/56847
21723         * lra-constraints.c (process_alt_operands): Discourage alternative
21724         with non-matche doffsettable memory constraint fro memory with
21725         known offset.
21727 2013-04-19  Richard Biener  <rguenther@suse.de>
21729         PR tree-optimization/56982
21730         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
21731         function.
21732         * gimplify.c (gimplify_call_expr): Notice special calls.
21733         (gimplify_modify_expr): Likewise.
21734         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
21735         abnormal control flow receivers.
21736         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
21737         in the same way as cfun->has_nonlocal_labels.
21738         (gimple_purge_dead_abnormal_call_edges): Likewise.
21739         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
21740         receivers start a basic-block.
21742 2013-04-19  Richard Biener  <rguenther@suse.de>
21744         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
21745         member ...
21746         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
21747         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
21748         (SLP_TREE_LOAD_PERMUTATION): Add.
21749         (vect_transform_slp_perm_load): Adjust prototype.
21750         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
21751         (vect_free_slp_instance): Likewise.
21752         (vect_create_new_slp_node): Likewise.
21753         (vect_supported_slp_permutation_p): Remove.
21754         (vect_slp_rearrange_stmts): Adjust.
21755         (vect_supported_load_permutation_p): Likewise.  Inline
21756         vect_supported_slp_permutation_p here.
21757         (vect_analyze_slp_instance): Compute load permutations per
21758         slp node instead of per instance.
21759         (vect_get_slp_defs): Adjust.
21760         (vect_transform_slp_perm_load): Likewise.
21761         (vect_schedule_slp_instance): Remove redundant code.
21762         (vect_schedule_slp): Remove hack for PR56270, add it ...
21763         * tree-vect-stmts.c (vectorizable_load): ... here, do not
21764         CSE loads for SLP.  Adjust.
21766 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
21768         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
21769         spelling in two comments.
21771 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
21773         PR target/56797
21774         * config/arm/arm.c (load_multiple_sequence): Require SP
21775         as base register for loads if SP is in the register list.
21777 2013-04-19  Martin Jambor  <mjambor@suse.cz>
21779         PR tree-optimization/56718
21780         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
21781         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
21782         and made public.  Adjusted all callers.
21783         (ipa_intraprocedural_devirtualization): New function.
21784         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
21785         (ipa_intraprocedural_devirtualization): Likewise.
21786         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
21788 2013-04-19  Richard Biener  <rguenther@suse.de>
21790         PR tree-optimization/57000
21791         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
21793 2013-04-19  Terry Guo  <terry.guo@arm.com>
21795         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
21796         Replace with ...
21797         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
21798         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
21799         (cortex_m4_fmacs): Use new reservations.
21800         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
21802 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
21804         PR rtl-optimization/56999
21805         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
21806         related code.
21807         (lra_coalesce): Remove split_origin_bitmap and related code.
21808         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
21809         ranges if necessary.
21811 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
21813         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
21814         New array.
21815         (ix86_expand_call): Remove clobbered_registers array and use
21816         x86_64_ms_sysv_extra_clobbered_registers instead.
21817         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
21818         Declare here.
21819         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
21820         predicate.
21821         * config/i386/i386.md (*call_rex64_ms_sysv): Use
21822         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
21823         (*call_value_rex64_ms_sysv): Ditto.
21825 2013-04-18  Cary Coutant  <ccoutant@google.com>
21827         * dwarf2out.c (output_pubnames): Check die_perennial_p of
21828         parent instead of die_mark.
21830 2013-04-18  Diego Novillo  <dnovillo@google.com>
21832         * gimple.c (create_gimple_tmp): New.
21833         (get_expr_type): New.
21834         (build_assign): New.
21835         (build_type_cast): New.
21836         * gimple.h (enum ssa_mode): Define.
21837         (gimple_seq_set_location): New.
21838         * asan.c (build_check_stmt): Change some gimple_build_* calls
21839         to use build_assign and build_type_cast.
21841 2013-04-18  Richard Biener  <rguenther@suse.de>
21843         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
21844         handle negative step.  Remove redundant checks.
21845         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
21846         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
21847         for negative step and grouped loads fail to vectorize.
21849 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
21851         * emit-rtl.c (reset_insn_used_flags): New function.
21852         (reset_all_used_flags): Use it.
21853         (verify_insn_sharing): New function.
21854         (verify_rtl_sharing): Fix verification for SEQUENCEs.
21856 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
21858         PR tree-optimization/56984
21859         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
21860         and (x >> M) >= N don't register any assertion if N << M is the
21861         minimum value.
21863 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
21865         * lower-subreg.c (resolve_simple_move): If called self-recursive,
21866         do not delete_insn insns that have not yet been emitted, only
21867         unlink them with remove_insn.
21868         * df-scan.c (df_insn_delete): Revert r197492.
21870 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
21872         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
21873         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
21875 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
21877         * config/arm/arm.md (movsicc_insn): Convert define_insn into
21878         define_insn_and_split.
21879         (and_scc,ior_scc,negscc): Likewise.
21880         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
21882 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
21884         * config/arm/arm.c (use_return_insn): Return 0 for targets that
21885         can benefit from using a sequence of LDRD instructions in epilogue
21886         instead of a single LDM instruction.
21888 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21890         PR 45688
21891         * doc/extend.texi: Fix typo.
21893 2013-04-17  Richard Biener  <rguenther@suse.de>
21895         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
21896         (vect_build_slp_tree): ... here.
21897         (vect_build_slp_tree_1): Compute which stmts of the SLP group
21898         match.  Remove special-casing of mismatched complex loads.
21899         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
21900         re-try the match with swapped commutative operands.
21901         (vect_supported_load_permutation_p): Remove special-casing of
21902         mismatched complex loads.
21903         (vect_analyze_slp_instance): Adjust.
21905 2013-04-17  Richard Biener  <rguenther@suse.de>
21907         PR rtl-optimization/56921
21908         * cfgloop.h (struct loop): Add simple_loop_desc member.
21909         (struct niter_desc): Mark with GTY(()).
21910         (simple_loop_desc): Do not use aux field but simple_loop_desc.
21911         * loop-iv.c (get_simple_loop_desc): Likewise.
21912         (free_simple_loop_desc): Likewise.
21914         Revert
21915         2013-04-16  Richard Biener  <rguenther@suse.de>
21917         PR rtl-optimization/56921
21918         * loop-init.c (pass_rtl_move_loop_invariants): Add
21919         TODO_do_not_ggc_collect to todo_flags_finish.
21920         (pass_rtl_unswitch): Same.
21921         (pass_rtl_unroll_and_peel_loops): Same.
21922         (pass_rtl_doloop): Same.
21924 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
21926         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
21927         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
21928         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
21929         references.
21930         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
21931         * tree-streamer.c (record_common_node): Adjust reference in comment.
21933 2013-04-17  Terry Guo  <terry.guo@arm.com>
21935         * config/arm/cortex-m4.md: Add a new bypass.
21937 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
21939         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
21940         New pattern.
21941         (*subs_<optab><mode>_multp2): New pattern.
21942         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
21943         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
21945 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
21947         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
21948         (*subs_mul_imm_<mode>): New pattern.
21950 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
21952         PR target/56948
21953         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
21954         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
21955         (vsx_movti_32bit): Change j->wa to O->wa.
21957 2013-04-16  Richard Biener  <rguenther@suse.de>
21959         PR rtl-optimization/56921
21960         * loop-init.c (pass_rtl_move_loop_invariants): Add
21961         TODO_do_not_ggc_collect to todo_flags_finish.
21962         (pass_rtl_unswitch): Same.
21963         (pass_rtl_unroll_and_peel_loops): Same.
21964         (pass_rtl_doloop): Same.
21966 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
21968         * config/arm/arm.c (emit_multi_reg_push): New declaration
21969         for an existing function.
21970         (arm_emit_strd_push): New function.
21971         (arm_expand_prologue): Used here.
21972         (arm_emit_ldrd_pop): New function.
21973         (arm_expand_epilogue): Used here.
21974         (arm_get_frame_offsets): Update condition.
21975         (arm_emit_multi_reg_pop): Add a special case for load of a single
21976         register with writeback.
21978 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
21980         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
21981         description.
21983 2013-04-16  Richard Biener  <rguenther@suse.de>
21985         PR tree-optimization/56756
21986         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
21987         (first_mem_ref_loc): New.
21988         (execute_sm): Place the load temporarily before a previous
21989         access instead of in the latch edge to ensure its SSA dependencies
21990         are defined at points dominating the load.
21992 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
21994         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
21995         correct fix by moving header and footer insn to the footer of
21996         the merged basic block.  Clear BB_END of the merged-away block.
21998         PR middle-end/43631
21999         * emit-rtl.c (make_note_raw): New function.
22000         (link_insn_into_chain): New static inline function.
22001         (add_insn): Use it.
22002         (add_insn_before, add_insn_after): Factor insn chain linking code...
22003         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
22004         using link_insn_into_chain.
22005         (note_outside_basic_block_p): New helper function for emit_note_after
22006         and emit_note_before.
22007         (emit_note_after): Use nobb variant of add_insn_after if the note
22008         should not be contained in a basic block.
22009         (emit_note_before): Use nobb variant of add_insn_before if the note
22010         should not be contained in a basic block.
22011         (emit_note_copy): Use make_note_raw.
22012         (emit_note): Likewise.
22013         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
22014         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
22015         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
22016         the moved barrier the tail of the basic block it follows.
22017         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
22019 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
22021         PR tree-optimization/56962
22022         * gimple-ssa-strength-reduction.c (record_increment): Only set
22023         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
22024         either rhs1 or rhs2 is equal to c->base_expr.
22026 2013-04-15  Richard Biener  <rguenther@suse.de>
22028         PR tree-optimization/56933
22029         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
22030         member.
22031         (GROUP_READ_WRITE_DEPENDENCE): Remove.
22032         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
22033         * tree-vect-data-refs.c (vect_analyze_group_access): Move
22034         dependence check ...
22035         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
22036         ... here.
22037         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
22038         GROUP_READ_WRITE_DEPENDENCE.
22040 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22042         * emit-rtl.c (reset_all_used_flags): New function.
22043         (verify_rtl_sharing): Call reset_all_used_flags before and after
22044         performing the checks.
22046 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22048         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
22049         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
22050         * config/arm/constraints.md (De): New constraint.
22051         * config/arm/neon.md (anddi3_neon): Delete.
22052         (neon_vand<mode>): Expand to standard anddi3 pattern.
22053         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
22054         Move earlier in the file.
22055         (neon_inv_logic_op2): Likewise.
22056         (arm_anddi_operand_neon): New predicate.
22058 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22060         * configure.ac (gcc_cv_ld_as_needed): Set
22061         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
22062         Use -z ignore, -z record on *-*-solaris2*.
22063         (HAVE_LD_AS_NEEDED): Update comment.
22064         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
22065         * configure: Regenerate.
22066         * config.in: Regenerate.
22067         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
22068         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
22069         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
22070         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
22071         equivalents.  Fix markup.
22072         * doc/tm.texi: Regenerate.
22074 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
22076         * config/i386/i386.opt: New option mstack-protector-guard=.
22077         * config/i386/i386-opts.h: Add enum stack_protector_guard.
22078         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
22079         TARGET_SSP_TLS_GUARD.
22080         * config/i386/i386.c (ix86_option_override_internal): Set
22081         ix86_stack_protector_guard.
22082         * config/i386/i386.md (stack_protect_set): Enable for
22083         TARGET_SSP_TLS_GUARD only.
22084         (stack_protect_set_<mode>): Ditto.
22085         (stack_protect_test): Ditto.
22086         (stack_protect_test_<mode>): Ditto.
22087         * doc/invoke.texi (i386 Option): Document.
22089 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
22091         PR target/56890
22092         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
22093         (S_MODES): Set H_MODE bit.
22094         (SF_MODES): Set only S_MODE and SF_MODE bits.
22095         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
22096         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
22097         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
22098         <MODE_FLOAT>: Likewise.
22100 2013-04-15  Joey Ye  <joey.ye@arm.com>
22102         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
22104 2013-04-15  Joey Ye  <joey.ye@arm.com>
22106         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
22107         for real far jump.
22108         (thumb_far_jump_used_p): Count instruction size and set
22109         far_jump_used.
22111 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
22113         * reorg.c (fill_simple_delay_slots): Reindent block of code.
22114         * resource.c (mark_target_live_regs): Reformat conditional block.
22116 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
22118         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
22119         notes, they are emitted only just before final.
22120         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
22122 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
22124         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
22125         * cfgrtl.c (delete_insn): Call it here instead.
22126         * lra-spills.c (lra_final_code_change): Use delete_insn.
22127         * haifa-sched.c (sched_remove_insn): Likewise.
22128         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
22129         returning to the nop pool.
22130         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
22131         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
22133 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
22135         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
22136         * doc/tm.texi: Regenerated.
22138 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
22140         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
22141         QImode checks.
22143 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
22145         * df-core.c (df_find_def): Compare register numbers.
22146         (df_find_use): Likewise.
22148 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
22150         PR target/56903
22151         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
22152         lra_in_progress for return.
22154 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
22156         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
22157         define_insn into define_insn_and_split and emit movsicc patterns.
22159 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
22161         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
22163 2013-04-12  Richard Biener  <rguenther@suse.de>
22165         * tree-pass.h (TODO_do_not_ggc_collect): New.
22166         * passes.c (execute_one_ipa_transform_pass): Honor
22167         TODO_do_not_ggc_collect.
22168         (execute_one_pass): Likewise.
22170         Revert
22171         2013-04-10  Richard Biener  <rguenther@suse.de>
22173         * passes.c (init_optimization_passes): Remove reload pass.
22174         * ira.c (do_reload): Merge into ...
22175         (ira): ... this.
22176         (rest_of_handle_reload): Remove.
22177         (pass_reload): Likewise.
22178         * config/i386/i386.c (ix86_option_override): Refer to ira instead
22179         of reload for vzeroupper pass placement.
22181 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
22183         PR tree-optimization/56918
22184         PR tree-optimization/56920
22185         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
22186         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
22187         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
22188         use wide_mul_with_sign method.
22190 2013-04-12  Richard Biener  <rguenther@suse.de>
22192         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
22193         not be considered a gimple constant.
22195 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
22197         * fold-const.c (const_binop): Handle vector shifts by a scalar.
22198         (fold_binary_loc): Call const_binop also for mixed vector-scalar
22199         operations.
22201 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22202             Jakub Jelinek  <jakub@redhat.com>
22204         * opts.c: Include diagnostic-color.h.
22205         (common_handle_option): Handle OPT_fdiagnostics_color_.
22206         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
22207         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
22208         (diagnostic-color.o): New.
22209         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
22210         (diagnostic_color_rule): New enum.
22211         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
22212         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
22213         the location string.
22214         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
22215         either NULL, or color kind.
22216         * diagnostic-color.c: New file.
22217         * diagnostic-color.h: New file.
22218         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
22219         arguments.
22220         * doc/invoke.texi (-fdiagnostics-color): Document.
22221         * pretty-print.h (pp_show_color): Define.
22222         (struct pretty_print_info): Add show_color field.
22223         * diagnostic.c: Include diagnostic-color.h.
22224         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
22225         macros.  Colorize error:, warning: etc. strings and also the location
22226         string.
22227         (diagnostic_show_locus): Colorize the caret line.
22228         * pretty-print.c: Include diagnostic-color.h.
22229         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
22230         inside of %< %> quotes or quoted through q format modifier.
22232 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22234         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
22236 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
22238         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
22239         code in CC_NZ mode.
22240         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
22241         pattern.
22243 2013-04-11  Marek Polacek  <polacek@redhat.com>
22245         PR tree-optimization/48184
22246         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
22248 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
22250         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
22251         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
22252         (skip_simple_arithmetic): Tidy up.
22253         * tree.h (skip_simple_constant_arithmetic): Declare.
22255 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
22257         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
22259 2013-04-11  Richard Biener  <rguenther@suse.de>
22261         * tree-vect-loop.c (get_initial_def_for_induction): Properly
22262         generate vector constants.
22264 2013-04-11  Richard Biener  <rguenther@suse.de>
22266         PR tree-optimization/56878
22267         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
22268         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
22269         New function.
22270         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
22271         Prefer to align the DR with the most invariant base address.
22273 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
22275         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
22276         comment.
22278 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
22280         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
22281         floating-point vector comparisons against 0.
22283 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
22285         PR tree-optimization/56899
22286         * fold-const.c (extract_muldiv_1): Apply distributive law
22287         only if TYPE_OVERFLOW_WRAPS (ctype).
22289 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
22291         PR target/56124
22292         * ira-costs.c (scan_one_insn): Check whether the source rtx of
22293         loading has side effect.
22295 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
22297         * config/sparc/sparc.c: Include tree-pass.h.
22298         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
22299         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
22300         head of file.  Change return type.  Split off gate function.
22301         (sparc_gate_work_around_errata): New function.
22302         (pass_work_around_errata): New pass definition.
22303         (insert_pass_work_around_errata) New pass insert definition to
22304         insert pass_work_around_errata just after delayed-branch scheduling.
22305         (sparc_option_override): Insert the pass.
22306         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
22308 2013-04-10  David S. Miller  <davem@davemloft.net>
22310         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
22311         or -mcpu=hypersparc.
22313         * target.def (cstore_mode): New hook.
22314         * target.h: Include insn-codes.h
22315         * targhooks.c: Likewise.
22316         (default_cstore_mode): New function.
22317         * targhooks.h: Declare it.
22318         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
22319         * doc/tm.texi: Rebuild.
22320         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
22321         target hook, rather than inspecting the insn_data.
22322         * config/sparc/sparc.c (sparc_cstore_mode): New function.
22323         (TARGET_CSTORE_MODE): Redefine.
22324         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
22325         result patterns.
22326         * config/sparc/predicates.md (cstore_result_operand): New special
22327         predicate.
22328         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
22329         Use it for operand 0.
22330         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
22331         (*snesi_special): Likewise.
22332         (*snesi_zero): Likewise.
22333         (*seqsi_zero): Likewise.
22334         (*sltu_insn): Likewise.
22335         (*sgeu_insn): Likewise.
22336         (*seqdi_special): Make operand 0 and comparison operation be of
22337         DImode.
22338         (*snedi_special): Likewise.
22339         (*snedi_special_vis3): Likewise.
22340         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
22341         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
22342         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
22343         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
22344         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
22345         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
22346         (*sltu_extend_sp64): Likewise.
22347         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
22348         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
22349         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
22350         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
22351         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
22353 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
22355         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
22356         (aarch64_start_file): Use the new function.
22358 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
22359             Jason Merrill  <jason@redhat.com>
22361         * common.opt: Add -gdwarf.
22362         * opts.c (common_handle_option): Handle it.
22363         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
22365 2013-04-10  Richard Biener  <rguenther@suse.de>
22367         * passes.c (execute_todo): Do not call ggc_collect conditional here.
22368         (execute_one_ipa_transform_pass): But unconditionally here.
22369         (execute_one_pass): And here.
22370         (init_optimization_passes): Remove reload pass.
22371         * tree-pass.h (TODO_ggc_collect): Remove.
22372         (pass_reload): Likewise.
22373         * ira.c (do_reload): Merge into ...
22374         (ira): ... this.
22375         (rest_of_handle_reload): Remove.
22376         (pass_reload): Likewise.
22377         * config/i386/i386.c (ix86_option_override): Refer to ira instead
22378         of reload for vzeroupper pass placement.
22379         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
22380         and todo_flags_finish of all passes.
22382 2013-04-10  Richard Biener  <rguenther@suse.de>
22384         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
22385         first_const_oprnd field, rename first_def_type to first_op_type.
22386         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
22387         (vect_get_and_check_slp_defs): Always use the type of the
22388         operand.  Allow mixed vect_external_def, vect_constant_def types.
22389         (vect_get_constant_vectors): Handle mixed vect_external_def,
22390         vect_constant_def types.
22392 2013-04-10  Joern Rennecke  <joern.rennecke@embecosm.com>
22394         PR tree-optimization/55524
22395         * tree-ssa-math-opts.c
22396         (convert_mult_to_fma): Don't use an fms construct
22397         when we don't have an fms operation, but fnma, and it looks
22398         likely that we'll be able to use the latter.
22400 2013-04-10  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
22402         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
22403         function.
22404         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
22405         inline fail caused by overwritable functions.
22407 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
22409         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
22410         unnecessary bits in the constant power of two case.
22412 2013-04-10  Richard Biener  <rguenther@suse.de>
22414         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
22415         broken code swapping operands.
22416         (vect_build_slp_tree): Do not compute load permutations here.
22417         (vect_analyze_slp_instance): Compute load permutations here,
22418         after building the SLP tree.
22420 2013-04-09  Christian Bruel  <christian.bruel@st.com>
22422         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
22423         of next/prev_real_insn.
22425 2013-04-09  Jan Hubicka  <jh@suse.cz>
22427         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
22428         Drop aliased parameter.
22429         (function_and_variable_visibility): Do not handle alias pairs.
22430         * cgraph.c (varpool_externally_visible_p): Update prototype.
22431         * varpool.c (varpool_add_new_variable): Update.
22433 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22435         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
22437 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
22439         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
22441         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
22443 2013-04-09  Marek Polacek  <polacek@redhat.com>
22445         PR tree-optimization/48762
22446         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
22448 2013-04-09  Richard Biener  <rguenther@suse.de>
22450         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
22451         dealing with cost.
22452         (vect_build_slp_tree): Likewise.
22453         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
22454         calculating the cost of a SLP instance.
22455         (vect_analyze_slp_instance): Use it from here, after building
22456         the SLP tree.
22458 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
22460         PR middle-end/56883
22461         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
22462         expand_omp_for_static_chunk): Use simple_p = true in
22463         force_gimple_operand_gsi calls when assigning to addressable decls.
22465 2013-04-09  Jeff Law  <law@redhat.com>
22467         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
22468         when the boolean was created by converting a wider object which
22469         had a boolean range.
22471 2013-04-09  Richard Biener  <rguenther@suse.de>
22473         * tree-vectorizer.h (slp_void_p): Remove.
22474         (slp_tree): Typedef before _slp_tree declaration.
22475         (struct _slp_tree): Use a vector of slp_tree as children.
22476         (vect_get_place_in_interleaving_chain): Remove.
22477         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
22478         Move ...
22479         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
22480         and make static.
22481         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
22482         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
22483         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
22484         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
22485         Use slp_node instead of slp_void_p and adjust.
22487 2013-04-09  Richard Biener  <rguenther@suse.de>
22489         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
22490         work that is not necessary.
22492 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
22494         PR tree-optimization/56854
22495         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
22496         forward into clobber stmts if it would change MEM_REF lhs into
22497         non-MEM_REF.
22499 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
22501         * tree.c (type_hash_lookup, type_hash_add): Make static.
22502         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
22504 2013-04-09  Richard Biener  <rguenther@suse.de>
22506         * tree.h (unsave_expr_now): Remove.
22507         * tree-inline.c (mark_local_for_remap_r): Remove.
22508         (unsave_expr_1): Likewise.
22509         (unsave_r): Likewise.
22510         (unsave_expr_now): Likewise.
22511         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
22512         (propagate_tree_value): Likewise.
22514 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
22516         * doc/rtl.texi (sequence): Rewrite documentation to match the
22517         current use of SEQUENCE rtl objects.
22518         * rtl.def (SEQUENCE): Likewise.
22520         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
22521         Update documentation.
22522         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
22523         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
22525         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
22527 2013-04-08  Teresa Johnson  <tejohnson@google.com>
22529         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
22530         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
22531         methods.
22532         (estimate_edge_size_and_time): Add comment to suggest using rounding
22533         methods.
22534         (estimate_node_size_and_time): Ditto.
22535         (remap_edge_change_prob): Use helper rounding divide methods.
22536         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
22537         (gimple_mod_pow2_value_transform): Ditto.
22538         (gimple_mod_subtract_transform): Ditto.
22539         (gimple_ic_transform): Ditto.
22540         (gimple_stringops_transform): Ditto.
22541         * stmt.c (conditional_probability): Ditto.
22542         (emit_case_dispatch_table): Ditto.
22543         * lto-cgraph.c (merge_profile_summaries): Ditto.
22544         * tree-optimize.c (execute_fixup_cfg): Ditto.
22545         * cfgcleanup.c (try_forward_edges): Ditto.
22546         * cfgloopmanip.c (scale_loop_profile): Ditto.
22547         (loopify): Ditto.
22548         (duplicate_loop_to_header_edge): Ditto.
22549         (lv_adjust_loop_entry_edge): Ditto.
22550         * tree-vect-loop.c (vect_transform_loop): Ditto.
22551         * profile.c (compute_branch_probabilities): Ditto.
22552         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
22553         * lto-streamer-in.c (input_cfg): Ditto.
22554         * gimple-streamer-in.c (input_bb): Ditto.
22555         * ipa-cp.c (update_profiling_info): Ditto.
22556         (update_specialized_profile): Ditto.
22557         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
22558         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
22559         rounding methods.
22560         * sched-rgn.c (compute_dom_prob_ps): Ditto.
22561         (compute_trg_info): Ditto.
22562         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
22563         (purge_dead_edges): Ditto.
22564         * loop-unswitch.c (unswitch_loop): Ditto.
22565         * cgraphclones.c (cgraph_clone_edge): Ditto.
22566         (cgraph_clone_node): Ditto.
22567         * tree-inline.c (copy_bb): Ditto.
22568         (copy_edges_for_bb): Ditto.
22569         (initialize_cfun): Ditto.
22570         (copy_cfg_body): Ditto.
22571         (expand_call_inline): Ditto.
22573 2013-04-08  Kai Tietz  <ktietz@redhat.com>
22575         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
22576         TARGET_CYGWIN64 by TARGET_64BIT.
22578 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
22580         * config/epiphany/epiphany.md (GPR_1): New constant.
22581         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
22582         * config/epiphany/epiphany.c (gen_compare_reg):
22583         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
22584         is already in place.
22585         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
22586         Don't require being called during rtl expansion; If y operlaps r0,
22587         return 0.
22588         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
22589         (epiphany_expand_epilogue): Likewise.
22591         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
22592         Don't use CC_FPmode for ORDERED / UNORDERED.
22593         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
22595         * config/epiphany/constraints.md (CnL): New constraint.
22596         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
22597         * config/epiphany/predicates.md (add_operand): Allow 1024.
22599         * config/epiphany/epiphany.md (logical_op): New code iterator.
22600         (op_mnc): New code attribute.
22601         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
22602         (mov_f+1, mov_f+2): New peephole2 patterns.
22604         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
22605         (cstoresi4): Also allow re-use of zero result when doing a NE
22606         comparison to a non-zero operand.
22607         Use (clobber (scratch)) for first insn if the gpr output is not needed.
22609         * config/epiphany/epiphany.md (<insn_opname>v2si3):
22610         Use gen_addsi3_i / gen_subsi3_i.
22612 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
22614         PR c++/34949
22615         PR c++/50243
22616         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
22617         contain anything but clobbers, at most one __builtin_stack_restore,
22618         optionally debug stmts and final resx, and if it has at least one
22619         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
22620         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
22621         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
22622         which isn't defaut definition, remove them.
22623         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
22624         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
22625         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
22626         with MEM_REF LHS with SSA_NAME address.
22628 2013-04-08  Jeff Law  <law@redhat.com>
22630         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
22632 2013-04-08  Richard Biener  <rguenther@suse.de>
22634         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
22635         extra newline.
22636         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
22637         determined vector type.
22638         (vect_analyze_data_refs): Likewise.
22639         (vect_get_new_vect_var): Adjust.
22640         (vect_create_destination_var): Preserve SSA name versions.
22641         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
22642         not dump anything here.
22644 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
22646         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
22647         Add member lr_slot_known.
22648         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
22649         if necessary.
22650         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
22651         Remove code that sets lr_slot_offset according to what a previous
22652         version of epiphany_emit_save_restore used to do.
22653         (epiphany_emit_save_restore): When doing an lr save or restore,
22654         set/verify lr_slot_known and lr_slot_offset.
22656 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
22658         PR target/54338
22659         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
22660         in ALL_REGS.
22662 2013-04-08  Richard Biener  <rguenther@suse.de>
22664         * alias.c (find_base_term): Fix thinko in previous change.
22666 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
22668         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
22669         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
22670         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
22671         if possible to compute val.
22672         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
22673         For QImode integers don't require anything about precision.  Use
22674         const_with_all_bytes_same to find out if the constant doesn't have
22675         repeated bytes in it.
22677 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22679         * config/s390/s390.c (s390_expand_insv): Only accept insertions
22680         within mode size.
22682 2013-04-08  Marek Polacek  <polacek@redhat.com>
22684         PR rtl-optimization/48182
22685         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
22686         value to 1.
22688 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22690         PR target/55487
22691         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
22692         nuses, make sure we have a label.
22694 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22696         PR target/56843
22697         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
22698         (rs6000_emit_swdiv_low_precision): Remove.
22699         (rs6000_emit_swdiv): Rewrite to handle between one and four
22700         iterations of Newton-Raphson generally; modify required number of
22701         iterations for some cases.
22702         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
22704 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
22706         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
22707         set-but-unused variable.
22709         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
22710         basic blocks of released function bodies garbage-collectable.
22712         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
22713         (struct rtl_opt_pass): Add TODO_df_finish.
22715         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
22717 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
22719         * config/arm/constraints.md (q): New constraint.
22720         * config/arm/ldrdstrd.md: New file.
22721         * config/arm/arm.md (ldrdstrd.md) New include.
22722         (arm_movdi): Use "q" instead of "r" constraint
22723         for double-word memory access.
22724         (movdf_soft_insn): Likewise.
22725         * config/arm/vfp.md (movdi_vfp): Likewise.
22726         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
22727         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
22728         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
22729         (mem_ok_for_ldrd_strd): Likewise.
22730         (output_move_double): Update assertion.
22732 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
22734         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
22736 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
22738         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
22739         define_insn_and_split.
22740         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
22742 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
22744         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
22745         define_insn_and_split.
22746         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
22747         (shiftsi3_compare): New pattern.
22748         (rrx): New pattern.
22749         * config/arm/unspecs.md (UNSPEC_RRX): New.
22751 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
22753         * config/arm/arm.md (negdi_extendsidi): New pattern.
22754         (negdi_zero_extendsidi): Likewise.
22756 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
22758         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
22759         define_insn_and_split.
22760         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
22761         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
22763 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
22765         * config/arm/arm.md (arm_subdi3): Convert define_insn into
22766         define_insn_and_split.
22767         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
22768         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
22770 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
22772         * config/arm/arm.md (subsi3_carryin): New pattern.
22773         (subsi3_carryin_const): Likewise.
22774         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
22775         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
22777 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
22779         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
22781 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
22783         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
22784         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
22786 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22788         * config/arm/arm.c (arm_expand_builtin): Change fcode
22789         type to unsigned int.
22791 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22793         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
22795 2013-04-04  Ian Lance Taylor  <iant@google.com>
22797         * doc/standards.texi (Standards): The Go frontend supports the Go 1
22798         language standard.
22800 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
22802         PR middle-end/56729
22803         * df-scan.c (df_insn_delete): Disable failing assert.
22805 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22807         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
22808         New function prototype.
22809         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
22810         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
22811         (arm_builtin_vectorized_function): New function.
22813 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22815         * config/arm/arm_neon_builtins.def: New file.
22816         * config/arm/arm.c (neon_builtin_data): Move contents to
22817         arm_neon_builtins.def.
22818         (enum arm_builtins): Include neon builtin definitions.
22819         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
22820         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
22822 2013-04-04  Marek Polacek  <polacek@redhat.com>
22824         PR tree-optimization/48186
22825         * predict.c (maybe_hot_frequency_p): Return false if
22826         HOT_BB_FREQUENCY_FRACTION is 0.
22827         (cgraph_maybe_hot_edge_p): Likewise.
22829 2013-04-04  Richard Biener  <rguenther@suse.de>
22831         PR tree-optimization/56826
22832         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
22833         more accurately.
22835 2013-04-04  Richard Biener  <rguenther@suse.de>
22837         PR tree-optimization/56213
22838         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
22839         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
22841 2013-04-04  Richard Biener  <rguenther@suse.de>
22843         PR tree-optimization/56837
22844         * tree-loop-distribution.c (classify_partition): For non-zero
22845         values require that the value has the same precision as its
22846         mode to be useful as memset value.
22848 2013-04-03  Nick Clifton  <nickc@redhat.com>
22850         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
22851         (fmssf4): Use fmsf.s on E3V5 architectures.
22852         (fnmasf4): Use fnmaf.s on E3V5 architectures.
22853         (fnmssf4): Use fnmsf.s on E3V5 architectures.
22855 2013-04-03  Jeff Law  <law@redhat.com>
22857         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
22858         (lra-eliminations.o): Likewise.
22860 2013-04-03  Teresa Johnson  <tejohnson@google.com>
22862         * gcov-io.c (compute_working_sets): Moved most of body of old
22863         compute_working_sets here from profile.c.
22864         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
22865         (gcov_working_set_t): Moved typedef here from basic-block.h
22866         (compute_working_set): Declare.
22867         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
22868         (get_working_sets): Renamed from compute_working_set,
22869         replace most of body with call to new compute_working_sets.
22870         (get_exec_counts): Replace call to compute_working_sets
22871         to get_working_sets.
22872         * profile.h (get_working_sets): Renamed from compute_working_set.
22873         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
22874         to get_working_sets.
22875         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
22876         * gcov-dump.c (dump_working_sets): New function.
22878 2013-04-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
22880         * hwint.c (sext_hwi, zext_hwi): New functions.
22881         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
22882         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
22883         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
22884         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
22885         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
22886         (sext_hwi, zext_hwi): New functions.
22888 2013-04-03  Jeff Law  <law@redhat.com>
22890         PR tree-optimization/56799
22891         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
22892         back test for widening conversion erroneously dropped in prior change.
22894 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22896         PR target/56809
22897         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
22898         instead of next_real_insn.
22900 2013-04-03  Marek Polacek  <polacek@redhat.com>
22902         PR sanitizer/55702
22903         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
22905 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22907         PR target/56809
22908         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
22909         next_real_insn.
22910         (thumb1_output_casesi): Likewise.
22911         (thumb2_output_casesi): Likewise.
22913 2013-04-03  Richard Biener  <rguenther@suse.de>
22915         PR tree-optimization/56817
22916         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
22917         Split out ...
22918         (tree_unroll_loops_completely_1): ... new function to manually
22919         walk the loop tree, properly defering outer loops of unrolled
22920         loops to later iterations.
22922 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
22924         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
22925         (vectorizable_load): Likewise.
22926         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
22927         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
22929 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
22931         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
22932         BIT_FIELD_REF.
22934 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22936         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
22938 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
22940         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
22942 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
22944         PR tree-optimization/56790
22945         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
22946         folding.
22948 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
22950         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
22951         Handle VEC_MERGE.
22952         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
22953         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
22954         equal arguments.
22956 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
22958         PR c/19449
22959         * tree.h (force_folding_builtin_constant_p): New decl.
22960         * builtins.c (force_folding_builtin_constant_p): New variable.
22961         (fold_builtin_constant_p): Fold immediately also if
22962         force_folding_builtin_constant_p.
22964 2013-04-03  Richard Biener  <rguenther@suse.de>
22966         PR tree-optimization/56812
22967         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
22968         DRs of the same interleaving chain are independent.
22970 2013-04-02  Jason Merrill  <jason@redhat.com>
22972         * gdbinit.in (pbb): Use debug fn.
22974 2013-04-02  Lawrence Crowl  <crowl@google.com>
22976         * sese.h (struct ivtype_map_elt_s): Remove unused.
22977         (extern debug_ivtype_map): Remove unused.
22978         (extern eq_ivtype_map_elts): Remove unused.
22979         * sese.c (debug_ivtype_map): Removed unused.
22980         (debug_ivtype_map_1): Removed unused.
22981         (debug_ivtype_elt): Remove unused.
22982         (eq_ivtype_map_elts): Remove unused.
22985 2013-04-02  Kai Tietz  <ktietz@redhat.com>
22987         PR target/52790
22988         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
22989         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
22990         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
22991         function.
22992         (legitimize_pe_coff_symbol): Likewise.
22993         (is_imported_p): New helper-function.
22994         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
22995         for Windows x64 targets.
22996         (ix86_expand_prologue): Optimize for pe-coff targets.
22997         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
22998         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
22999         medium/large code-model.
23000         (legitimize_pic_address): Likewise.
23001         (legitimize_tls_address): Likewise.
23002         (ix86_expand_call): Likewise.
23003         (x86_output_mi_thunk): Likewise.
23004         (get_dllimport_decl): Add new beimport argument.
23005         (construct_plt_address): Don't assert for x64 pe-coff targets.
23006         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
23007         targets.
23008         (SYMBOL_FLAG_STUBVAR): New macro.
23009         (SYMBOL_REF_STUBVAR_P): Likewise.
23010         * config/i386/winnt.c (stub_list): New structure.
23011         (stub_head): New local variable.
23012         (i386_pe_record_stub): New function.
23013         (i386_pe_file_end): Emit refptr-stubs.
23015 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
23017         PR rtl-optimization/56745
23018         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
23019         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
23021         PR c++/34949
23022         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
23023         and both of them are MEM_REFs, just compare first argument for
23024         equality and attempt to deal even with differing offsets.
23026         PR c++/34949
23027         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
23028         of gimple_clobber_p to be MEM_REF.
23029         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
23030         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
23031         after gimplification.
23032         * asan.c (get_mem_ref_of_assignment): Don't instrument
23033         gimple_clobber_p stmts.
23034         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
23035         gimple_clobber_p stmt if they have MEM_REF lhs and
23036         are dead because of another gimple_clobber_p stmt.
23037         * tree-ssa-live.c (clear_unused_block_pointer): Treat
23038         gimple_clobber_p stmts like debug stmts.
23039         (remove_unused_locals): Remove clobbers with MEM_REF lhs
23040         that refer to unused VAR_DECLs or uninitialized values.
23041         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
23042         gimple_clobber_p stmts if they refer to removed parameters.
23043         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
23044         formatting.
23046 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
23048         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
23049         using SWI48 mode attribute.
23051 2013-04-02  Wei Mi  <wmi@google.com>
23053         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
23054         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
23055         *<rotate_insn><mode>3_mask in i386.md.
23057 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
23059         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
23061 2013-04-02  Richard Biener  <rguenther@suse.de>
23063         PR tree-optimization/56778
23064         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
23065         Runtime alias tests are not supported for gather loads.
23066         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
23067         stmts referenced from SSA operands before updating SSA form.
23069 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
23070             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23072         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
23073         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
23074         * config/arm/cortex-a53.md: New file.
23075         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
23076         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
23077         * config/arm/arm.c (arm_issue_rate): Likewise.
23078         * config/arm/arm-tune.md: Regenerate
23079         * config/arm/arm-tables.opt: Regenerate.
23080         * config/arm/arm-cores.def: Add cortex-a53.
23082 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
23084         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
23085         non-static link.
23087 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
23089         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
23090         scalar load/store operations using B/H registers.
23091         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
23093 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
23095         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
23096         scalar move.
23097         * config/aarch64/aarch64.c
23098         (aarch64_simd_scalar_immediate_valid_for_move): New.
23099         * config/aarch64/aarch64-protos.h
23100         (aarch64_simd_scalar_immediate_valid_for_move): New.
23101         * config/aarch64/constraints.md (Dh, Dq): New.
23102         * config/aarch64/iterators.md (hq): New.
23104 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
23106         * reorg.c (get_branch_condition): Deal with conditional returns.
23107         (fill_simple_delay_slots): Remove dead code dealing with jumps.
23109 2013-04-01  Wei Mi  <wmi@google.com>
23111         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
23112         Truncate operand 2 using %b asm operand modifier.
23113         (*<shift_insn><mode>3_mask): Ditto.
23114         (*<rotate_insn><mode>3_mask): Ditto.
23116 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
23118         PR middle-end/56798
23119         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
23121 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
23123         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
23124         of next_real_insn.
23125         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
23127 2013-03-30  Lawrence Crowl  <crowl@google.com>
23129         * dse.c (clear_alias_sets): Remove never set.
23130         (disqualified_clear_alias_sets): Remove never set.
23131         (clear_alias_mode_pool): Remove never set.
23132         (dse_step0): Remove condition that is never true.
23133         (canon_address): Remove condition that is never true.
23134         (dse_step7): Remove condition that is never true.
23135         (rest_of_handle_dse): Remove condition that is never true.
23136         (rest_of_handle_dse::did_global): Remove never read from above.
23137         (dse_step2_spill): Remove never called from above.
23138         (dse_step5_spill): Remove never called from above.
23140 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
23142         * doc/md.texi (Standard Names) <casesi>: Update documentation for
23143         JUMP_TABLE_DATA changes.
23144         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
23145         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
23146         (Insns) <jump_table_data>: New entry.
23147         * doc/tm.texi: Regenerate.
23149         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
23151         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
23152         for table jump at the end of a basic block using tablejump_p.
23153         * targhooks.c (default_invalid_within_doloop): Likewise.
23154         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
23155         target hook implementation that is identical to the default hook.
23156         (rs6000_invalid_within_doloop): Remove.
23158         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
23159         unused variable from tablejump_p call.
23161         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
23162         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
23163         (INSN_DELETED_P): Likewise.
23164         (emit_jump_table_data): New prototype.
23165         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
23166         after 4th as unused.
23167         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
23168         * sched-vis.c (print_insn): Likewise.
23169         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
23170         insn for compatibility with back ends that use next_active_insn to
23171         identify jump table data.
23172         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
23173         (remove_insn): Likewise.
23174         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
23175         to be emitted.
23176         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
23177         (emit_jump_table_data): New function.
23179         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
23180         basic block, a JUMP_TABLE_DATA never is.
23181         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
23182         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
23183         off from code handling real insns.
23184         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
23185         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
23186         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
23187         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
23188         is not a NONDEBUG_INSN_P.
23189         * ira-costs.c (scan_one_insn): Likewise.
23190         * jump.c (mark_all_labels): Likewise.
23191         (mark_jump_label_1): Likewise.
23192         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
23193         * lra.c (get_insn_freq): Expect all insns reaching here to be in
23194         a basic block.
23195         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
23196         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
23197         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
23198         JUMP_TABLE_DATA_P insns.
23199         (calculate_elim_costs_all_insns): Likewise.
23200         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
23201         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
23202         (delete_output_reload): Code style fixups.
23203         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
23204         insn flags on this non-insn.
23205         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
23206         as scheduling barriers, for pre-change compatibility.
23207         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
23208         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
23210         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
23211         redundant JUMP_TABLE_DATA_P test.
23212         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
23213         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
23214         (frv_for_each_packet): Likewise.
23215         * config/i386/i386.c (min_insn_size): Likewise.
23216         (ix86_avoid_jump_mispredicts): Likewise.
23217         * config/m32r/m32r.c (m32r_is_insn): Likewise.
23218         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
23219         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
23220         (mips16_insn_length): Robustify.
23221         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
23222         (mips16_split_long_branches): Likewise.
23223         * config/pa/pa.c (pa_combine_instructions): Likewise.
23224         * config/rs6000/rs6000.c (get_next_active_insn): Treat
23225         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
23226         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
23227         as contributing to pool range lengths.
23228         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
23229         Remove redundant JUMP_TABLE_DATA_P test.
23230         (sh_loop_align): Likewise.
23231         (split_branches): Likewise.
23232         (sh_insn_length_adjustment): Likewise.
23233         * config/spu/spu.c (get_branch_target): Likewise.
23235 2013-03-29  Jan Hubicka  <jh@suse.cz>
23237         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
23238         gcov streaming; stream hot bb threshold to ltrans.
23239         * predict.c (get_hot_bb_threshold): Break out from ....
23240         (maybe_hot_count_p): ... here.
23241         (set_hot_bb_threshold): New function.
23242         * lto-section-in.c (lto_section_name): Add profile.
23243         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
23244         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
23245         and data-streamer.h
23246         (histogram_entry): New structure.
23247         (histogram, histogram_pool): New global vars.
23248         (histogram_hash): New structure.
23249         (histogram_hash::hash): New method.
23250         (histogram_hash::equal): Likewise.
23251         (account_time_size): New function.
23252         (cmp_counts): New function.
23253         (dump_histogram): New function.
23254         (ipa_profile_generate_summary): New function.
23255         (ipa_profile_write_summary): New function.
23256         (ipa_profile_read_summary): New function.
23257         (ipa_profile): Decide on threshold.
23258         (pass_ipa_profile): Add ipa_profile_write_summary and
23259         ipa_profile_read_summary.
23260         * Makefile.in (ipa.o): Update dependencies.
23261         * lto-streamer.h (LTO_section_ipa_profile): New section.
23263 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
23265         * tree.h (VAR_P): New.
23267 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
23269         PR lto/56777
23270         * doc/invoke.texi ([-fwhole-program]): Fix typo.
23272 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
23274         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
23275         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
23276         (control_flow_insn_p): Likewise.
23277         * cfgrtl.c (duplicate_insn_chain): Likewise.
23278         * final.c (get_attr_length_1): Likewise.
23279         (shorten_branches): Likewise.
23280         (final_scan_insn): Likewise.
23281         * function.c (instantiate_virtual_regs): Likewise.
23282         * gcse.c (insert_insn_end_basic_block): Likewise.
23283         * ira-costs.c (scan_one_insn): Likewise.
23284         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
23285         * lra.c (check_rtl): Likewise.
23286         * reload1.c (elimination_costs_in_insn): Likewise.
23287         * reorg.c (follow_jumps): Likewise.
23289         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
23290         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
23291         (thumb_far_jump_used_p): Likewise.
23292         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
23293         (workaround_speculation): Likewise.
23294         (add_sched_insns_for_speculation): Likewise.
23295         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
23296         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
23297         (frv_for_each_packet): Likewise.
23298         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
23299         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
23300         (final_emit_insn_group_barriers): Likewise.
23301         * config/m32r/m32r.c (m32r_is_insn): Likewise.
23302         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
23303         (mips16_insn_length): Likewise.
23304         * config/pa/pa.c (pa_reorg): Likewise.
23305         (pa_combine_instructions): Likewise.
23306         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
23307         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
23308         (sh_reorg): Likewise.
23309         (split_branches): Likewise.
23310         * config/spu/spu.c (get_branch_target): Likewise.
23312         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
23313         JUMP_TABLE_DATA_P.
23315 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
23317         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
23318         Fix declaration name.
23320 2013-03-28  Lawrence Crowl  <crowl@google.com>
23322         * graphds.h (struct graph.indicies): Remove unused.
23323         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
23324         (SCOP_ORIGINAL_PDDRS): Remove unused.
23325         * sese.h (extern insert_loop_close_phis): Removed unused.
23326         (extern insert_guard_phis): Removed unused.
23327         (extern ivtype_map_elt_info): Removed unused.
23328         (new_ivtype_map_elt): Removed unused.
23329         * sese.c (ivtype_map_elt_info): Removed unused.
23331 2013-03-28  Lawrence Crowl  <crowl@google.com>
23333         * Makefile.in: Add several missing include dependences.
23334         (DUMPFILE_H): New.
23335         (test-dump.o): New.  This object is not added to any executable,
23336         but is present for ad-hoc testing.
23337         * bitmap.c
23338         (debug (const bitmap_head_def &)): New.
23339         (debug (const bitmap_head_def *)): New.
23340         * bitmap.h
23341         (extern debug (const bitmap_head_def &)): New.
23342         (extern debug (const bitmap_head_def *)): New.
23343         * cfg.c
23344         (debug (edge_def &)): New.
23345         (debug (edge_def *)): New.
23346         * cfghooks.c
23347         (debug (basic_block_def &)): New.
23348         (debug (basic_block_def *)): New.
23349         * dumpfile.h
23350         (dump_node (const_tree, int, FILE *)): Correct source file.
23351         * dwarf2out.c
23352         (debug (die_struct &)): New.
23353         (debug (die_struct *)): New.
23354         * dwarf2out.h
23355         (extern debug (die_struct &)): New.
23356         (extern debug (die_struct *)): New.
23357         * gimple-pretty-print.c
23358         (debug (gimple_statement_d &)): New.
23359         (debug (gimple_statement_d *)): New.
23360         * gimple-pretty-print.h
23361         (extern debug (gimple_statement_d &)): New.
23362         (extern debug (gimple_statement_d *)): New.
23363         * ira-build.c
23364         (debug (ira_allocno_copy &)): New.
23365         (debug (ira_allocno_copy *)): New.
23366         (debug (ira_allocno &)): New.
23367         (debug (ira_allocno *)): New.
23368         * ira-int.h
23369         (extern debug (ira_allocno_copy &)): New.
23370         (extern debug (ira_allocno_copy *)): New.
23371         (extern debug (ira_allocno &)): New.
23372         (extern debug (ira_allocno *)): New.
23373         * ira-lives.c
23374         (debug (live_range &)): New.
23375         (debug (live_range *)): New.
23376         * lra-int.h
23377         (debug (lra_live_range &)): New.
23378         (debug (lra_live_range *)): New.
23379         * lra-lives.c
23380         (debug (lra_live_range &)): New.
23381         (debug (lra_live_range *)): New.
23382         * omega.c
23383         (debug (omega_pb_d &)): New.
23384         (debug (omega_pb_d *)): New.
23385         * omega.h
23386         (extern debug (omega_pb_d &)): New.
23387         (extern debug (omega_pb_d *)): New.
23388         * print-rtl.c
23389         (debug (const rtx_def &)): New.
23390         (debug (const rtx_def *)): New.
23391         * print-tree.c
23392         (debug_tree (tree): Move within file.
23393         (debug_raw (const tree_node &)): New.
23394         (debug_raw (const tree_node *)): New.
23395         (dump_tree_via_hooks (const tree_node *, int)): New.
23396         (debug (const tree_node &)): New.
23397         (debug (const tree_node *)): New.
23398         (debug_verbose (const tree_node &)): New.
23399         (debug_verbose (const tree_node *)): New.
23400         (debug_head (const tree_node &)): New.
23401         (debug_head (const tree_node *)): New.
23402         (debug_body (const tree_node &)): New.
23403         (debug_body (const tree_node *)): New.
23404         (debug_vec_tree (tree): Move and reimplement in terms of dump.
23405         (debug (vec<tree, va_gc> &)): New.
23406         (debug (vec<tree, va_gc> *)): New.
23407         * rtl.h
23408         (extern debug (const rtx_def &)): New.
23409         (extern debug (const rtx_def *)): New.
23410         * sbitmap.c
23411         (debug_raw (simple_bitmap_def &)): New.
23412         (debug_raw (simple_bitmap_def *)): New.
23413         (debug (simple_bitmap_def &)): New.
23414         (debug (simple_bitmap_def *)): New.
23415         * sbitmap.h
23416         (extern debug (simple_bitmap_def &)): New.
23417         (extern debug (simple_bitmap_def *)): New.
23418         (extern debug_raw (simple_bitmap_def &)): New.
23419         (extern debug_raw (simple_bitmap_def *)): New.
23420         * sel-sched-dump.c
23421         (debug (vinsn_def &)): New.
23422         (debug (vinsn_def *)): New.
23423         (debug_verbose (vinsn_def &)): New.
23424         (debug_verbose (vinsn_def *)): New.
23425         (debug (expr_def &)): New.
23426         (debug (expr_def *)): New.
23427         (debug_verbose (expr_def &)): New.
23428         (debug_verbose (expr_def *)): New.
23429         (debug (vec<rtx> &)): New.
23430         (debug (vec<rtx> *)): New.
23431         * sel-sched-dump.h
23432         (extern debug (vinsn_def &)): New.
23433         (extern debug (vinsn_def *)): New.
23434         (extern debug_verbose (vinsn_def &)): New.
23435         (extern debug_verbose (vinsn_def *)): New.
23436         (extern debug (expr_def &)): New.
23437         (extern debug (expr_def *)): New.
23438         (extern debug_verbose (expr_def &)): New.
23439         (extern debug_verbose (expr_def *)): New.
23440         (extern debug (vec<rtx> &)): New.
23441         (extern debug (vec<rtx> *)): New.
23442         * sel-sched-ir.h
23443         (_list_iter_cond_expr): Make inline instead of static.
23444         * sreal.c
23445         (debug (sreal &)): New.
23446         (debug (sreal *)): New.
23447         * sreal.h
23448         (extern debug (sreal &)): New.
23449         (extern debug (sreal *)): New.
23450         * tree.h
23451         (extern debug_raw (const tree_node &)): New.
23452         (extern debug_raw (const tree_node *)): New.
23453         (extern debug (const tree_node &)): New.
23454         (extern debug (const tree_node *)): New.
23455         (extern debug_verbose (const tree_node &)): New.
23456         (extern debug_verbose (const tree_node *)): New.
23457         (extern debug_head (const tree_node &)): New.
23458         (extern debug_head (const tree_node *)): New.
23459         (extern debug_body (const tree_node &)): New.
23460         (extern debug_body (const tree_node *)): New.
23461         (extern debug (vec<tree, va_gc> &)): New.
23462         (extern debug (vec<tree, va_gc> *)): New.
23463         * tree-cfg.c
23464         (debug (struct loop &)): New.
23465         (debug (struct loop *)): New.
23466         (debug_verbose (struct loop &)): New.
23467         (debug_verbose (struct loop *)): New.
23468         * tree-dump.c: Add header dependence.
23469         * tree-flow.h
23470         (extern debug (struct loop &)): New.
23471         (extern debug (struct loop *)): New.
23472         (extern debug_verbose (struct loop &)): New.
23473         (extern debug_verbose (struct loop *)): New.
23474         * tree-data-ref.c
23475         (debug (data_reference &)): New.
23476         (debug (data_reference *)): New.
23477         (debug (vec<data_reference_p> &)): New.
23478         (debug (vec<data_reference_p> *)): New.
23479         (debug (vec<ddr_p> &)): New.
23480         (debug (vec<ddr_p> *)): New.
23481         * tree-data-ref.h
23482         (extern debug (data_reference &)): New.
23483         (extern debug (data_reference *)): New.
23484         (extern debug (vec<data_reference_p> &)): New.
23485         (extern debug (vec<data_reference_p> *)): New.
23486         (extern debug (vec<ddr_p> &)): New.
23487         (extern debug (vec<ddr_p> *)): New.
23488         * tree-ssa-alias.c
23489         (debug (pt_solution &)): New.
23490         (debug (pt_solution *)): New.
23491         * tree-ssa-alias.h
23492         (extern debug (pt_solution &)): New.
23493         (extern debug (pt_solution *)): New.
23494         * tree-ssa-alias.c
23495         (debug (_var_map &)): New.
23496         (debug (_var_map *)): New.
23497         (debug (tree_live_info_d &)): New.
23498         (debug (tree_live_info_d *)): New.
23499         * tree-ssa-alias.h
23500         (extern debug (_var_map &)): New.
23501         (extern debug (_var_map *)): New.
23502         (extern debug (tree_live_info_d &)): New.
23503         (extern debug (tree_live_info_d *)): New.
23505 2013-03-28  Jan Hubicka  <jh@suse.cz>
23507         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
23509 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
23511         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
23512         record only when desired or required.
23514 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
23516         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
23517         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
23519 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
23521         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
23522         (*andsi3_compare0_uxtw): New pattern.
23523         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
23524         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
23526 2013-03-28  Jan Hubicka  <jh@suse.cz>
23528         * data-streamer-in.c (streamer_read_gcov_count): New function.
23529         * gimple-streamer-out.c: Include value-prof.h.
23530         (output_gimple_stmt): Output histogram.
23531         (output_bb): Use streamer_write_gcov_count.
23532         * value-prof.c: Include data-streamer.h
23533         (dump_histogram_value): Add HIST_TYPE_MAX.
23534         (stream_out_histogram_value): New function.
23535         (stream_in_histogram_value): New function.
23536         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
23537         (stream_out_histogram_value, stream_in_histogram_value): Declare.
23538         * data-streamer-out.c (streamer_write_gcov_count): New function.
23539         (streamer_write_gcov_count_stream): New function.
23540         * lto-cgraph.c (lto_output_edge): Update counter streaming.
23541         (lto_output_node): Likewise.
23542         (input_node, input_edge): Likewise.
23543         * lto-streamer-out.c (output_cfg): Update streaming.
23544         * lto-streamer-in.c (input_cfg): Likewise.
23545         * data-streamer.h (streamer_write_gcov_count,
23546         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
23547         * gimple-streamer-in.c: Include value-prof.h
23548         (input_gimple_stmt): Input histograms.
23549         (input_bb): Update profile streaming.
23551 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
23553         * genmodes.c (emit_max_int): New function.
23554         (emit_insn_modes_h): Added call to emit_max_function.
23555         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
23556         Added doc.
23557         * machmode.def: Fixed comment.
23559 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
23561         * combine.c (try_combine): Removed useless assert.
23562         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
23564 2013-03-28  Marek Polacek  <polacek@redhat.com>
23565             Richard Biener  <rguenther@suse.de>
23567         PR tree-optimization/56695
23568         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
23569         build signed result of a vector comparison.
23570         * tree-cfg.c (verify_gimple_comparison): Check that a result
23571         of a vector comparison has signed type.
23573 2013-03-28  Richard Biener  <rguenther@suse.de>
23575         PR tree-optimization/37021
23576         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
23577         do not restrict gaps between groups.
23578         * tree-vect-stmts.c (vectorizable_load): Properly account for
23579         a gap between groups.
23581 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
23583         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
23584         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
23585         is not enabled.
23587 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
23589         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
23590         * doc/extend.texi (Named Address Spaces): Ditto.
23591         (Variable Attributes): Ditto.
23593 2013-03-27  Kai Tietz  <ktietz@redhat.com>
23595         * config.build: Add support for cygwin x64 target.
23596         * config.gcc: Likewise.
23597         * config.host: Likewise.
23598         * configure.ac: Likewise
23599         * configure: Regenerated.
23601 2013-03-27  Kai Tietz  <ktietz@redhat.com>
23603         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
23604         * config/i386/t-cygwin-w64: New file.
23605         * config/i386/cygwin-w64.h: New file.
23606         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
23607         and add support for x64-cygwin target.
23608         (CPP_SPEC): Likewise.
23609         (CXX_WRAP_SPEC_LIST): Undefine before define.
23610         (LIBGCJ_SONAME): Use 15 as version.
23612 2013-03-27  Richard Biener  <rguenther@suse.de>
23614         PR tree-optimization/56716
23615         * tree-ssa-structalias.c (perform_var_substitution): Adjust
23616         dumping for ref nodes.
23618 2013-03-27  Martin Jambor  <mjambor@suse.cz>
23620         PR tree-optimization/55334
23621         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
23622         restricted pointers to arrays.
23624 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
23626         * Makefile.in (.SUFFIXES): Add .cc.
23627         (.c.o): Apply same recipe for implicit rule .cc.o.
23629 2013-03-27  Richard Biener  <rguenther@suse.de>
23631         PR tree-optimization/37021
23632         * tree-vect-data-refs.c (vect_check_strided_load): Allow
23633         REALPART/IMAGPART_EXPRs around the supported refs.
23634         * tree-ssa-structalias.c (find_func_aliases): Assume that
23635         floating-point values are not used to transfer pointers.
23637 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
23639         * target.def (TARGET_HAS_IFUNC_P): New target hook.
23640         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
23641         * doc/tm.texi: Regenerate.
23642         * targhooks.h (default_has_ifunc_p): New.
23643         * targhooks.c (default_has_ifunc_p): Ditto.
23644         * config/linux-protos.h: New file.
23645         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
23646         hook for linux which disables support of indirect functions in android.
23647         * config/linux-android.c: New file.
23648         * config/t-linux-android.c: Ditto.
23649         * config.gcc: Added new object file linux-android.o.
23650         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
23651         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
23652         * varasm.c (do_assemble_alias): Likewise.
23653         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
23654         doesn't support indirect functions.
23655         * configure: Regenerate.
23657 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
23659         PR target/56102
23660         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
23661         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
23662         mult-word mode.
23664 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23666         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
23668 2013-03-27  Terry Guo  <terry.guo@arm.com>
23670         * config/arm/arm-cores.def: Added core cortex-r7.
23671         * config/arm/arm-tune.md: Regenerated.
23672         * config/arm/arm-tables.opt: Regenerated.
23673         * doc/invoke.texi: Added entry for core cortex-r7.
23675 2013-03-27  Walter Lee  <walt@tilera.com>
23677         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
23678         double-decrement of next_scratch_regno.
23680 2013-03-27  Walter Lee  <walt@tilera.com>
23682         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
23683         input operands.
23684         (insn_v1mulus): Ditto.
23685         (insn_v2muls): Ditto.
23687 2013-03-27  Walter Lee  <walt@tilera.com>
23689         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
23690         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
23692 2013-03-27  Walter Lee  <walt@tilera.com>
23694         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
23695         (*sibcall_value): Ditto.
23697 2013-03-27  Walter Lee  <walt@tilera.com>
23699         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
23700         (insn_mnz_v8qi): ... this ...
23701         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
23702         vector equivalent.
23703         (insn_v<n>mnz): Replaced by ...
23704         (insn_v1mnz): ... this ...
23705         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
23706         equivalent.
23707         (insn_mz_<mode>): Replaced by ...
23708         (insn_mz_v8qi): ... this ...
23709         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
23710         vector equivalent.
23711         (insn_v<n>mz): Replaced by ...
23712         (insn_v1mz): ... this ...
23713         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
23714         equivalent.
23716 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
23718         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
23720 2013-03-26  Roland McGrath  <mcgrathr@google.com>
23722         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
23723         than fprintf with a non-constant, non-format string.
23725 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
23727         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
23728         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
23729         operand 0 predicate.
23730         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
23731         attribute.  Use general_x64nomem_operand as operand 1 predicate.
23732         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
23733         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
23734         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
23735         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
23736         (mov<mode>_insv_1): Remove expander.  Merge insn with
23737         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
23738         Use general_x64nomem_operand as operand 1 predicate.
23739         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
23740         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
23741         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
23742         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
23743         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
23744         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
23745         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
23746         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
23747         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
23748         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
23749         (general_x64nomem_operand): Ditto.
23751 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
23753         * config/rtems.opt: Add -pthread option.
23755 2013-03-26  Richard Biener  <rguenther@suse.de>
23757         * alias.c (find_base_term): Avoid redundant and not used recursion.
23758         (base_alias_check): Get the initial base term from the caller.
23759         (true_dependence_1): Compute and pass base terms to base_alias_check.
23760         (write_dependence_p): Likewise.
23761         (may_alias_p): Likewise.
23763 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
23765         * config/aarch64/aarch64.c (aarch64_classify_address): Support
23766         PC-relative load in SI modes and above only.
23768 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
23770         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
23771         * config/arm/iwmmxt.md (WCGR0): Update.
23772         (WCGR1, WCGR2, WCGR3): Likewise.
23774 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
23776         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
23777         Use x64 and nox64 isa attributes.
23779 2013-03-26  Richard Biener  <rguenther@suse.de>
23781         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
23782         alignment computations and rely on get_object_alignment_1
23783         for the !TYPE_P case.
23784         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
23786 2013-03-26  Walter Lee  <walt@tilera.com>
23788         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
23789         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
23791 2013-03-25  Jeff Law  <law@redhat.com>
23793         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
23794         check for INTEGRAL_TYPE_P that was missing due to checking in
23795         wrong version of prior patch.
23797 2013-03-25  Walter Lee  <walt@tilera.com>
23799         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
23800         TILEGX_INSN_SHUFFLEBYTES1.
23801         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
23802         shufflebytes1.
23803         (tilegx_builtins): Ditto.
23804         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
23806 2013-03-25  Walter Lee  <walt@tilera.com>
23808         * config/tilegx/tilegx.md (floatsisf2): New pattern.
23809         (floatunssisf2): New pattern.
23810         (floatsidf2): New pattern.
23811         (floatunssidf2): New pattern.
23813 2013-03-25  Walter Lee  <walt@tilera.com>
23815         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
23816         tests for constraint J, K, N, P.
23818 2013-03-25  Walter Lee  <walt@tilera.com>
23820         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
23821         Use indirect/pcrel encoding.
23822         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
23823         Ditto.
23825 2013-03-25  Steve Ellcey  <sellcey@mips.com>
23827         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
23828         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
23829         * config/mips/mips.c (mips_option_override): Set IMADD default.
23830         * config/mips/mips.h (PTF_AVOID_IMADD): New.
23831         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
23832         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
23833         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
23834         * doc/invoke.texi (-mimadd/-mno-imadd): New.
23836 2013-03-25  Jeff Law  <law@redhat.com>
23838         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
23839         slightly to avoid creating and folding useless trees.  Simplify
23840         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
23842 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
23844         * config/i386/i386.md (*zero_extendsidi2): Merge with
23845         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
23846         * config/i386/predicates.md (x86_64_zext_operand): Rename from
23847         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
23848         targets.  Clarify comment.
23850 2013-03-25  Martin Jambor  <mjambor@suse.cz>
23852         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
23853         pass-through jump functions differently.
23854         (ipa_read_jump_function): Likewise.  Also use setter functions to set
23855         up jump functions.
23857 2013-03-25  Martin Jambor  <mjambor@suse.cz>
23859         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
23860         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
23861         process it.
23862         (ipa_get_indirect_edge_target): New function.
23863         (devirtualization_time_bonus): New parameter known_aggs, pass it to
23864         ipa_get_indirect_edge_target.  Update all callers.
23865         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
23866         ipa_get_indirect_edge_target_1 instead of calling
23867         ipa_get_indirect_edge_target.
23868         (create_specialized_node): Pass aggvlas to
23869         ipcp_discover_new_direct_edges.
23871 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23873         * config/arm/arm.md (f_sels, f_seld): New types.
23874         (*cmov<mode>): New pattern.
23875         * config/arm/predicates.md (arm_vsel_comparison_operator): New
23876         predicate.
23878 2013-03-25  Kai Tietz  <ktietz@redhat.com>
23880         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
23881         POSIX-printf for mingw-hosted  builds.
23883 2013-03-25  Richard Biener  <rguenther@suse.de>
23885         PR middle-end/56694
23886         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
23887         must-not-throw stmt location.
23889 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23891         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
23892         Emit load-acquire versions when acq is true.
23893         (arm_emit_store_exclusive): Add rel parameter.
23894         Emit store-release versions when rel is true.
23895         (arm_split_compare_and_swap): Use acquire-release instructions
23896         instead.
23897         of barriers when appropriate.
23898         (arm_split_atomic_op): Likewise.
23899         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
23900         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
23901         (VUNSPEC_SLX): Likewise.
23902         (VUNSPEC_LDA): Likewise.
23903         (VUNSPEC_STL): Likewise.
23904         * config/arm/sync.md (atomic_load<mode>): New pattern.
23905         (atomic_store<mode>): Likewise.
23906         (arm_load_acquire_exclusive<mode>): Likewise.
23907         (arm_load_acquire_exclusivesi): Likewise.
23908         (arm_load_acquire_exclusivedi): Likewise.
23909         (arm_store_release_exclusive<mode>): Likewise.
23911 2013-03-25  Catherine Moore  <clm@codesourcery.com>
23913         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
23914         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
23915         * config/mip/predicates.md (lwsp_swsp_operand,
23916         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
23917         sb16_operand, db4_operand, db7_operand, ib3_operand,
23918         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
23919         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
23920         andi16_operand): New predicates.
23921         * config/mips/mips.md (compression): New attribute.
23922         (enabled): New attribute.
23923         (length): Consider compression in computing length.
23924         (shift_compression): New code attribute.
23925         (*add<mode>3): New operands. Record compression.
23926         (sub<mode>3): Likewise.
23927         (one_cmpl<mode>2): Likewise.
23928         (*and<mode>3): Likewise.
23929         (*ior<mode>3): Likewise.
23930         (unnamed pattern for xor): Likewise.
23931         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
23932         (*<optab><mode>3): Likewise.
23933         (*mov<mode>_internal: Likewise.
23934         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
23935         (mips_unsigned_immediate_p): New.
23936         (umips_lwsp_swsp_address_p): New.
23937         (m16_based_address_p): New.
23938         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
23939         (mips_unsigned_immediate_p): New prototype.
23940         (lwsp_swsp_address_p): New prototype.
23941         (m16_based_address_p): New prototype.
23942         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
23943         (mips_signed_immediate_p): New function.
23944         (m16_based_address_p): New function.
23945         (lwsp_swsp_address_p): New function.
23946         (mips_print_operand_punctuation): Recognize short delay slot insns
23947         for microMIPS.add<mode>3"
23949 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23951         PR target/56720
23952         * config/arm/iterators.md (v_cmp_result): New mode attribute.
23953         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
23955 2013-03-25  Richard Biener  <rguenther@suse.de>
23957         PR tree-optimization/56689
23958         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
23959         any edge.
23961 2013-03-25  Richard Biener  <rguenther@suse.de>
23963         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
23964         of bitmap.
23965         (memory_references): Likewise.
23966         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
23967         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
23968         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
23969         (gather_mem_refs_in_loops): Fold into ...
23970         (analyze_memory_references): ... this.  Move initialization
23971         to tree_ssa_lim_initialize.
23972         (fill_always_executed_in): Rename to ...
23973         (fill_always_executed_in_1): ... this.
23974         (fill_always_executed_in): Move contains_call computation to
23975         this new function from ...
23976         (tree_ssa_lim_initialize): ... here.
23977         (tree_ssa_lim): Call fill_always_executed_in.
23979 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
23981         * postreload.c (reload_combine): Fix code detecting returns.
23983 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
23985         * function.c (emit_use_return_register_into_block): On cc0 targets,
23986         do not emit the sequence between cc0 setter and user.
23988 2013-03-25  Kai Tietz  <ktietz@redhat.com>
23990         * config/i386/predicates.md (local_symbolic_operand): Interpret
23991         dll-imported symbols as none-local.
23993 2013-03-25  Richard Biener  <rguenther@suse.de>
23995         * tree-ssa-loop-im.c (struct depend): Remove.
23996         (struct lim_aux_data): Make depends a vec of gimples.
23997         (free_lim_aux_data): Adjust.
23998         (add_dependency): Likewise.
23999         (set_level): Likewise.
24001 2013-03-25  Richard Biener  <rguenther@suse.de>
24003         PR middle-end/56434
24004         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
24005         the pointer returned by calls with ECF_MALLOC set.
24007 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
24009         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
24011 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
24013         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
24014         using MMXMODE mode iterator.
24015         (*move<mode>_internal): Merge with *movv2sf_internal and
24016         *movv2sf_internal_rex64 using MMXMODE mode iterator.
24018 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
24020         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
24021         (record_last_mem_set_info): Likewise.
24023         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
24024         of XNEWVEC followed by memset.
24025         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
24027 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
24029         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
24030         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
24031         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
24032         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
24033         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
24034         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
24035         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
24036         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
24037         BARRIER_P instead of GET_CODE.
24039 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
24041         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
24042         inaccuracy in the probing code.
24044         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
24045         (ctrapdi4): Likewise.
24047 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
24049         * calls.c (expand_call): Add missing guard to code handling return
24050         of non-BLKmode structures in MSB.
24051         * function.c (expand_function_end): Likewise.
24053 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
24055         * combine.c (try_combine): Adjust comment.  Do not add the set of
24056         insn #0 if the destination indirectly is set or dies in insn #2.
24057         Tidy up code to distribute a new note.
24059 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
24061         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
24062         also for alternatives 16 and 17.
24064 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
24066         * config/i386/sse.md (*mov<mode>_internal): Merge with
24067         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
24068         Emit insn template depending on type attribute.  Use
24069         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
24070         movd instead of movq mnemonic for interunit moves.  Rewrite mode
24071         attribute calculation.  Remove unit attribute calculation.
24072         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
24073         Set prefix_data16 attribute for DImode ssemov types.
24074         Use Ym instead of y for SSE-MMX conversion alternatives.
24075         Reorder operand constraints.
24077 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
24079         * df.h (df_insn_delete): Adjust prototype.
24080         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
24081         and let it decide whether mark the basic block dirty.
24082         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
24083         * df-scan.c (df_insn_info_delete): New helper function, split
24084         off from df_insn_delete.
24085         (df_scan_free_bb_info): Use it.
24086         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
24087         Likewise.
24088         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
24089         that the insn is actually an insn and it has a non-NULL basic block.
24090         Do not mark basic block dirty if only deleting a DEBUG_INSN.
24092 2013-03-22  Richard Biener  <rguenther@suse.de>
24094         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
24095         dep_ref members.
24096         (mem_ref_alloc): Do not allocate them.
24097         (refs_independent_p): Do not query or maintain a cache.
24099 2013-03-22  Richard Biener  <rguenther@suse.de>
24101         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
24102         (gather_mem_refs_in_loops): Do not compute it.
24103         (analyze_memory_references): Do not allocate it.
24104         (tree_ssa_lim_finalize): Do not free it.
24105         (for_all_locs_in_loop): Do not query all_refs_in_loop.
24107 2013-03-22  Richard Biener  <rguenther@suse.de>
24109         * is-a.h (as_a): Use gcc_checking_assert.
24111 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
24113         * config/aarch64/aarch64.c (aarch64_print_operand): New
24114         format specifier for printing a constant in hex.
24115         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
24116         format specifier for printing second operand.
24118 2013-03-22  Richard Biener  <rguenther@suse.de>
24120         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
24121         bitmaps.
24122         (gather_mem_refs_in_loops): Perform store accumulation here.
24123         (create_vop_ref_mapping_loop): Remove.
24124         (create_vop_ref_mapping): Likewise.
24125         (analyze_memory_references): Initialize refs_stored_in_loop.
24126         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
24127         (record_indep_loop): Remove.
24128         (record_dep_loop): New function.
24129         (ref_indep_loop_p_1): Adjust to only walk over references
24130         in the loop, not its subloops.
24131         (ref_indep_loop_p): Rename to ...
24132         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
24133         maintaining a more fine-grained cache.
24134         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
24135         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
24137 2013-03-22  Richard Biener  <rguenther@suse.de>
24139         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
24140         (struct mem_ref): Make accesses_in_loop a vec of a vec of
24141         aggregate mem_ref_loc.
24142         (free_mem_ref_locs): Inline into ...
24143         (memref_free): ... this and adjust.
24144         (mem_ref_alloc): Adjust.
24145         (mem_ref_locs_alloc): Remove.
24146         (record_mem_ref_loc): Adjust.
24147         (get_all_locs_in_loop): Rewrite into ...
24148         (for_all_locs_in_loop): ... this iterator.
24149         (rewrite_mem_ref_loc): New functor.
24150         (rewrite_mem_refs): Use for_all_locs_in_loop.
24151         (sm_set_flag_if_changed): New functor.
24152         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
24153         (ref_always_accessed): New functor.
24154         (ref_always_accessed_p): Use for_all_locs_in_loop.
24156 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
24158         * tree-pass.h (PROP_gimple_lvec): New.
24159         * passes.c (dump_properties): Handle PROP_gimple_lvec.
24160         (init_optimization_passes): Move pass_lower_vector.
24161         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
24162         PROP_gimple_lvec.
24163         (pass_lower_vector): Provide PROP_gimple_lvec.
24164         (pass_lower_vector_ssa): Likewise.
24165         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
24167 2013-03-21  Mark Wielaard  <mjw@redhat.com>
24169         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
24171 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
24173         * config/i386/i386.md (*movdi_internal): Disparage slightly
24174         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
24175         conversion alternatives.
24177 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
24179         PR middle-end/48087
24180         * diagnostic.def (DK_WERROR): New kind.
24181         * diagnostic.h (werrorcount): Define.
24182         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
24183         promoted to DK_ERROR, increment DK_WERROR counter instead of
24184         DK_ERROR counter.
24185         * toplev.c (toplev_main): Call print_ignored_options even if
24186         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
24187         even if just werrorcount is non-zero.
24189         PR debug/55608
24190         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
24191         on failure.
24192         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
24193         (string_cst_pool_decl): New function.
24194         (optimize_one_addr_into_implicit_ptr): New function.
24195         (resolve_addr_in_expr): Optimize DWARF location expression
24196         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
24197         which doesn't live in memory, but has DW_AT_location or
24198         DW_AT_const_value, or refers to a string literal, into
24199         DW_OP_GNU_implicit_pointer.
24200         (optimize_location_into_implicit_ptr): New function.
24201         (resolve_addr): If removing DW_AT_location of a variable because
24202         it was DW_OP_addr of address of the variable, but the variable doesn't
24203         live in memory, try to emit const value attribute for the initializer.
24205 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
24207         * tree.h (VECTOR_TYPE_P): New macro.
24208         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
24209         TYPE_MODE): Use it.
24210         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
24211         VEC_COND_EXPR cannot be lvalues.
24212         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
24214 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
24216         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
24217         Restrict the transformation to equal modes.
24219 2013-03-21  Richard Biener  <rguenther@suse.de>
24221         PR tree-optimization/39326
24222         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
24223         (MEM_ANALYZABLE): Adjust.
24224         (record_mem_ref_loc): Move bitmap ops ...
24225         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
24226         unanalyzable refs, do not record locations for it.
24227         (analyze_memory_references): Allocate ref zero as shared
24228         unanalyzable ref.
24229         (refs_independent_p): Do not test for unanalyzed mems here.
24230         (ref_indep_loop_p_1): Special-case disambiguation against
24231         the unanalyzed ref.
24232         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
24234 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
24236         * config/arm/arm-protos.h (tune_params): Add
24237         prefer_neon_for_64bits field.
24238         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
24239         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
24240         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
24241         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
24242         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
24243         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
24244         (arm_option_override): Handle -mneon-for-64bits new option.
24245         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
24246         (prefer_neon_for_64bits): Declare new variable.
24247         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
24248         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
24249         (arch_enabled): Handle new arch types. Remove support for onlya8
24250         and nota8.
24251         (one_cmpldi2): Use new arch names.
24252         (zero_extend<mode>di2, extend<mode>di2): Ditto.
24253         * config/arm/arm.opt (mneon-for-64bits): Add option.
24254         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
24255         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
24256         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
24257         of onlya8.
24258         * doc/invoke.texi (-mneon-for-64bits): Document.
24260 2013-03-21  Richard Biener  <rguenther@suse.de>
24262         PR tree-optimization/39326
24263         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
24264         (sort_bbs_in_loop_postorder_cmp): New function.
24265         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
24267 2013-03-21  Richard Biener  <rguenther@suse.de>
24269         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
24270         (vect_insert_into_interleaving_chain): Likewise.
24271         (vect_drs_dependent_in_basic_block): Inline ...
24272         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
24273         split out from ...
24274         (vect_analyze_data_ref_dependence): ... here.  Simplify.
24275         (vect_check_interleaving): Simplify.
24276         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
24277         (vect_slp_analyze_data_ref_dependences): ... this new function.
24278         (dr_group_sort_cmp): New function.
24279         (vect_analyze_data_ref_accesses): Compute data-reference groups
24280         here instead of in vect_analyze_data_ref_dependence.  Use
24281         a more efficient algorithm.
24282         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
24283         vect_slp_analyze_data_ref_dependences.  Call
24284         vect_analyze_data_ref_accesses earlier.
24285         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
24286         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
24287         (vect_slp_analyze_data_ref_dependences): New prototype.
24289 2013-03-21  Richard Biener  <rguenther@suse.de>
24291         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
24292         ref is stored in the loop.
24293         (find_refs_for_sm): Walk only over all stores.
24294         (store_motion_loop): Allocate from lim_bitmap_obstack.
24295         (store_motion): Likewise.
24297 2013-03-21  Richard Biener  <rguenther@suse.de>
24299         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
24300         Update virtual SSA form.
24302 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24304         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
24305         * configure: Regenerate.
24306         * config.in: Regenerate.
24307         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
24308         if !HAVE_LD_EH_FRAME_CIEV3.
24310 2013-03-21  Richard Biener  <rguenther@suse.de>
24312         * tree-cfg.c (verify_expr_no_block): New function.
24313         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
24314         nor DECL_VALUE_EXPR have locations with associated blocks.
24315         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
24316         (clear_unused_block_pointer): Remove code dealing with
24317         blocks in DECL_DEBUG_EXPR locations.
24319 2013-03-21  Richard Biener  <rguenther@suse.de>
24321         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
24322         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
24323         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
24324         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
24325         instead of DECL_DEBUG_EXPR_IS_FROM.
24326         * gimplify.c (gimplify_modify_expr): Likewise.
24327         * tree-cfg.c (verify_expr_location_1): Likewise.
24328         * tree-complex.c (create_one_component_var): Likewise.
24329         * tree-sra.c (create_access_replacement): Likewise.
24330         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
24331         (clear_unused_block_pointer): Likewise.
24332         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
24333         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
24334         * var-tracking.c (var_debug_decl): Likewise.
24335         (track_expr_p): Likewise.
24336         * tree-inline.c (add_local_variables): Likewise.  Set
24337         DECL_HAS_DEBUG_EXPR_P after copying it.
24338         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
24339         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
24341 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
24343         PR bootstrap/56656
24344         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
24345         * configure: Regenerate.
24346         * config.in: Regenerate.
24347         * config/i386/i386.md (*movdf_internal): Use
24348         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
24349         movd instead of movq mnemonic for interunit moves.
24350         (*movdi_internal): Ditto.
24352 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
24354         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
24355         (abd<mode>_3): New pattern.
24356         (aba<mode>_3): New pattern.
24357         (fabd<mode>_3): New pattern.
24359 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
24361         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
24362         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
24363         occurrence of REGISTER_PREFIX as its empty string.
24365 2013-03-20  Jeff Law  <law@redhat.com>
24367         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
24368         addititional equivalences for equality comparisons between an SSA_NAME
24369         and a constant where the SSA_NAME was set from a widening conversion.
24371 2013-03-20  Walter Lee  <walt@tilera.com>
24373         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
24375 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
24377         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
24378         depending on type attribute.
24379         (*movti_internal): Ditto.
24380         (*movtf_internal): Ditto.
24381         (*movxf_internal): Ditto.
24382         (*movdf_internal): Ditto.
24383         (*movsf_internal): Ditto.
24385 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
24387         * config/i386/i386.md (*movti_internal): Set prefix attribute to
24388         maybe_vex for sselog1 and ssemov types.
24389         (*movdi_internal): Reorder operand constraints.
24390         (*movsi_internal): Ditto.  Set prefix attribute to
24391         maybe_vex for sselog1 and ssemov types.
24392         (*movtf_internal): Set prefix attribute to maybe_vex
24393         for sselog1 and ssemov types.
24394         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
24395         DImode ssemov types.  Reorder operand constraints.
24396         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
24397         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
24398         attribute for SImode ssemov types.  Reorder operand constraints.
24400 2013-03-20  Martin Jambor  <mjambor@suse.cz>
24402         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
24403         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
24405 2013-03-20  Pat Haugen  <pthaugen@us.ibm.com>
24407         * config/rs6000/predicates.md (indexed_address, update_address_mem
24408         update_indexed_address_mem): New predicates.
24409         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
24410         attribute for load/store instructions.
24411         * config/rs6000/dfp.md (movsd_store): Likewise.
24412         (movsd_load): Likewise.
24413         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
24414         (unnamed HI->DI extend define_insn): Likewise.
24415         (unnamed SI->DI extend define_insn): Likewise.
24416         (unnamed QI->SI extend define_insn): Likewise.
24417         (unnamed QI->HI extend define_insn): Likewise.
24418         (unnamed HI->SI extend define_insn): Likewise.
24419         (unnamed HI->SI extend define_insn): Likewise.
24420         (extendsfdf2_fpr): Likewise.
24421         (movsi_internal1): Likewise.
24422         (movsi_internal1_single): Likewise.
24423         (movhi_internal): Likewise.
24424         (movqi_internal): Likewise.
24425         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
24426         attribute for load/store instructions.
24427         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
24428         instructions.
24429         (mov<mode>_softfloat): Likewise.
24430         (mov<mode>_hardfloat32): Likewise.
24431         (mov<mode>_hardfloat64): Likewise.
24432         (mov<mode>_softfloat64): Likewise.
24433         (movdi_internal32): Likewise.
24434         (movdi_internal64): Likewise.
24435         (probe_stack_<mode>): Likewise.
24437 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
24439         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
24440         floating point, and decimal floating point to reload iterator.
24442         * config/rs6000/constraints.md (wl constraint): New constraints to
24443         return FLOAT_REGS if certain options are used to reduce the number
24444         of separate patterns that exist in the file.
24445         (wx constraint): Likewise.
24446         (wz constraint): Likewise.
24448         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
24449         -mdebug=reg, print wg, wl, wx, and wz constraints.
24450         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
24451         Initialize the reload functions for 64-bit binary/decimal floating
24452         point types.
24453         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
24454         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
24455         create the buffer on the stack to overcome not having a 32-bit
24456         load and store.
24457         (rs6000_emit_move): Likewise.
24458         (rs6000_secondary_memory_needed_rtx): Likewise.
24459         (rs6000_alloc_sdmode_stack_slot): Likewise.
24460         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
24461         via xxlxor, just like DFmode 0.0.
24463         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
24464         define as 1 if we are running on a power7 or newer.
24465         (enum r6000_reg_class_enum): Add new constraints.
24467         * config/rs6000/dfp.md (movsd): Delete, combine with binary
24468         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
24469         with other moves by using conditional constraits (wg).  Use LFIWZX
24470         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
24471         (movsd splitter): Likewise.
24472         (movsd_hardfloat): Likewise.
24473         (movsd_softfloat): Likewise.
24475         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
24476         binary and decimal floating point moves.
24477         (fmove_ok): New attributes to combine binary and decimal floating
24478         point moves, and to combine power6x (mfpgpr) moves along normal
24479         floating moves.
24480         (real_value_to_target): Likewise.
24481         (f32_lr): Likewise.
24482         (f32_lm): Likewise.
24483         (f32_li): Likewise.
24484         (f32_sr): Likewise.
24485         (f32_sm): Likewise.
24486         (f32_si): Likewise.
24487         (movsf): Combine binary and decimal floating point moves.  Combine
24488         power6x (mfpgpr) moves with other moves by using conditional
24489         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
24490         (mov<mode> for SFmode/SDmode); Likewise.
24491         (SFmode/SDmode splitters): Likewise.
24492         (movsf_hardfloat): Likewise.
24493         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
24494         (movsf_softfloat): Likewise.
24495         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
24497         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
24498         wx and wz constraints.
24500         * config/rs6000/constraints.md (wg constraint): New constraint to
24501         return FLOAT_REGS if -mmfpgpr (power6x) was used.
24503         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
24504         constraint.
24506         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
24507         -mdebug=reg, print wg, wl, wx, and wz constraints.
24508         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
24509         Initialize the reload functions for 64-bit binary/decimal floating
24510         point types.
24511         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
24512         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
24513         create the buffer on the stack to overcome not having a 32-bit
24514         load and store.
24515         (rs6000_emit_move): Likewise.
24516         (rs6000_secondary_memory_needed_rtx): Likewise.
24517         (rs6000_alloc_sdmode_stack_slot): Likewise.
24518         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
24519         via xxlxor, just like DFmode 0.0.
24521         * config/rs6000/dfp.md (movdd): Delete, combine with binary
24522         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
24523         with other moves by using conditional constraits (wg).  Use LFIWZX
24524         and STFIWX for loading SDmode on power7.
24525         (movdd splitters): Likewise.
24526         (movdd_hardfloat32): Likewise.
24527         (movdd_softfloat32): Likewise.
24528         (movdd_hardfloat64_mfpgpr): Likewise.
24529         (movdd_hardfloat64): Likewise.
24530         (movdd_softfloat64): Likewise.
24532         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
24533         64-bit binary and decimal floating point moves.
24534         (FMOVE64X): Likewise.
24535         (movdf): Combine 64-bit binary and decimal floating point moves.
24536         Combine power6x (mfpgpr) moves with other moves by using
24537         conditional constraits (wg).
24538         (mov<mode> for DFmode/DDmode): Likewise.
24539         (DFmode/DDmode splitters): Likewise.
24540         (movdf_hardfloat32): Likewise.
24541         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
24542         (movdf_softfloat32): Likewise.
24543         (movdf_hardfloat64_mfpgpr): Likewise.
24544         (movdf_hardfloat64): Likewise.
24545         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
24546         (movdf_softfloat64): Likewise.
24547         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
24548         (reload_<mode>_load): Move to later in the file so they aren't in
24549         the middle of the floating point move insns.
24550         (reload_<mode>_store): Likewise.
24552         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
24553         constraint.
24555         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
24556         constraint if -mdebug=reg.
24557         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
24558         Enable using dd reload support if needed.
24560         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
24561         binary and decimal floating point moves in rs6000.md.
24562         (movtd_internal): Likewise.
24564         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
24565         decimal floating point moves.
24566         (movtf): Likewise.
24567         (movtf_internal): Likewise.
24568         (mov<mode>_internal, TDmode/TFmode): Likewise.
24569         (movtf_softfloat): Likewise.
24570         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
24572         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
24573         movdi_internal64, using wg constraint for move direct operations.
24574         (movdi_internal64): Likewise.
24576         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
24577         MODES_TIEABLE_P for selected modes.  Print the numerical value of
24578         the various virtual registers. Use GPR/FPR first/last values,
24579         instead of hard coding the register numbers.  Print which modes
24580         have reload functions registered.
24581         (rs6000_option_override_internal): If -mdebug=reg, trace the options
24582         settings before/after setting cpu, target and subtarget settings.
24583         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
24584         and for secondary reload failures in rs6000_secondary_reload_inner.
24585         (rs6000_secondary_reload_fail): Likewise.
24586         (rs6000_secondary_reload_inner): Likewise.
24588         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
24589         macros for first/last GPR and FPR registers.
24590         (LAST_GPR_REGNO): Likewise.
24591         (FIRST_FPR_REGNO): Likewise.
24592         (LAST_FPR_REGNO): Likewise.
24594         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
24595         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
24596         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
24597         (vcond<mode><mode>): Likewise.
24598         (vcondu<mode><mode>): Likewise.
24599         (vector_gtu<mode>): Likewise.
24600         (vector_gte<mode>): Likewise.
24601         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
24602         to prevent the compiler from converting DImode operations to TImode.
24603         (ior<mode>3): Likewise.
24604         (and<mode>3): Likewise.
24605         (one_cmpl<mode>2): Likewise.
24606         (nor<mode>3): Likewise.
24607         (andc<mode>3): Likewise.
24609         * config/rs6000/constraints.md (wt constraint): New constraint
24610         that returns VSX_REGS if TImode is allowed in VSX registers.
24612         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
24613         constant under VSX.
24615         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
24616         similar to TImode, but it is restricted to being in the GPRs.
24618         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
24619         TImode to occupy a single VSX register.
24621         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
24622         -mvsx-timode for power7/power8.
24623         (power7 cpu): Likewise.
24624         (power8 cpu): Likewise.
24626         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
24627         sure that TFmode/TDmode take up two registers if they are ever
24628         allowed in the upper VSX registers.
24629         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
24630         registers.
24631         (rs6000_init_hard_regno_mode_ok): Likewise.
24632         (rs6000_debug_reg_global): Add debugging for PTImode and wt
24633         constraint.  Print if LRA is turned on.
24634         (rs6000_option_override_internal): Give an error if -mvsx-timode
24635         and VSX is not enabled.
24636         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
24637         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
24638         to reg+offset addressing.  Use PTImode when checking offset
24639         addresses for validity.
24640         (reg_offset_addressing_ok_p): Likewise.
24641         (rs6000_legitimate_offset_address_p): Likewise.
24642         (rs6000_legitimize_address): Likewise.
24643         (rs6000_legitimize_reload_address): Likewise.
24644         (rs6000_legitimate_address_p): Likewise.
24645         (rs6000_eliminate_indexed_memrefs): Likewise.
24646         (rs6000_emit_move): Likewise.
24647         (rs6000_secondary_reload): Likewise.
24648         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
24649         reloads to fpr registers to continue to use reg+offset addressing,
24650         but 64-bit reloads to altivec registers need reg+reg addressing.
24651         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
24652         it.  Treat LO_SUM like a PLUS operation.
24653         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
24654         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
24655         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
24656         registers to share a register with a smaller sized type, since VSX
24657         puts scalars in the upper 64-bits.
24658         (print_operand): Add support for PTImode.
24659         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
24660         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
24661         registers, but don't have arithmetic support.
24662         (rs6000_memory_move_cost): Add test for VSX.
24663         (rs6000_opt_masks): Add -mvsx-timode.
24665         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
24666         for TImode.
24667         (VSs): Likewise.
24668         (VSr): Use wt constraint for TImode.
24669         (VSv): Drop TImode support.
24670         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
24671         (vsx_movti_64bit): Likewise.
24672         (vsx_movti_32bit): Likewise.
24673         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
24674         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
24675         one '?' on the appropriate output constraint.  Do not allow TImode
24676         logical operations on 32-bit systems.
24677         (vsx_ior<mode>3): Likewise.
24678         (vsx_xor<mode>3): Likewise.
24679         (vsx_one_cmpl<mode>2): Likewise.
24680         (vsx_nor<mode>3): Likewise.
24681         (vsx_andc<mode>3): Likewise.
24682         (vsx_concat_<mode>): Likewise.
24683         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
24685         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
24686         OPTION_MASK_VSX_TIMODE.
24687         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
24688         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
24690         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
24691         (TI2 iterator): New iterator for TImode, PTImode.
24692         (wd mode attribute): Add values for vector types.
24693         (movti_string): Replace TI move operations with operations for TImode
24694         and PTImode.  Add support for TImode being allowed in VSX registers.
24695         (mov<mode>_string, TImode/PTImode): Likewise.
24696         (movti_ppc64): Likewise.
24697         (mov<mode>_ppc64, TImode/PTImode): Likewise.
24698         (TI mode splitters): Likewise.
24700         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
24701         constraint.
24703 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
24705         PR tree-optimization/56355
24706         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
24707         Also handle integers with undefined overflow.
24709 2013-03-20  Catherine Moore  <clm@codesourcery.com>
24710             Maciej W. Rozycki  <macro@codesourcery.com>
24711             Tom de Vries  <tom@codesourcery.com>
24712             Nathan Sidwell  <nathan@codesourcery.com>
24713             Iain Sandoe  <iain@codesourcery.com>
24714             Nathan Froyd  <froydnj@codesourcery.com>
24715             Chao-ying Fu  <fu@mips.com>
24717         * doc/extend.texi: (micromips, nomicromips, nocompression):
24718         Document new function attributes.
24719         * doc/invoke.texi (minterlink-compressed, mmicromips,
24720         m14k, m14ke, m14kec): Document new options.
24721         (minterlink-mips16): Update documentation.
24722         * doc/md.texi (ZC, ZD): Document new constraints.
24723         * configure.ac (gcc_cv_as_micromips): Check if linker
24724         supports the .set micromips directive.
24725         * configure: Regenerate.
24726         * config.in: Regenerate.
24727         * config/mips/mips-tables.opt: Regenerate.
24728         * config/mips/micromips.md: New file.
24729         * constraints.md (ZC, ZD): New constraints.
24730         * config/mips/predicates.md (movep_src_register): New predicate.
24731         (movep_src_operand): New predicate.
24732         (non_volatile_mem_operand): New predicate.
24733         * config/mips/mips.md (multimem): New type.
24734         (length): Differentiate between 17-bit and 18-bit branch offsets.
24735         (MOVEP1, MOVEP2): New mode iterator.
24736         (mov_<load>l): Use ZC constraint.
24737         (mov_<load>r): Likewise.
24738         (mov_<store>l): Likewise.
24739         (mov_<store>r): Likewise.
24740         (*branch_equality<mode>_inverted): Add microMIPS support.
24741         (*branch_equality<mode>): Likewise.
24742         (*jump_absolute): Likewise.
24743         (indirect_jump_<mode>): Likewise.
24744         (tablejump_<mode>): Likewise.
24745         (<optab>_internal): Likewise.
24746         (sibcall_internal): Likewise.
24747         (sibcall_value_internal): Likewise.
24748         (prefetch): Use constraint ZD.
24749         * config/mips/mips.opt (minterlink-compressed): New option.
24750         (minterlink-mips16): Now an alias for minterlink-compressed.
24751         (mmicromips): New option.
24752         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
24753         (compare_and_swap_12): Likewise.
24754         (sync_add<mode>): Likewise.
24755         (sync_<optab>_12): Likewise.
24756         (sync_old_<optab>_12): Likewise.
24757         (sync_new_<optab>_12): Likewise.
24758         (sync_nand_12): Likewise.
24759         (sync_old_nand_12): Likewise.
24760         (sync_new_nand_12): Likewise.
24761         (sync_sub<mode>): Likewise.
24762         (sync_old_add<mode>): Likewise.
24763         (sync_old_sub<mode>): Likewise.
24764         (sync_new_add<mode>): Likewise.
24765         (sync_new_sub<mode>): Likewise.
24766         (sync_<optab><mode>): Likewise.
24767         (sync_old_<optab><mode>): Likewise.
24768         (sync_new_<optab><mode>): Likewise.
24769         (sync_nand<mode>): Likewise.
24770         (sync_old_nand<mode>): Likewise.
24771         (sync_new_nand<mode>): Likewise.
24772         (sync_lock_test_and_set<mode>): Likewise.
24773         (test_and_set_12): Likewise.
24774         (atomic_compare_and_swap<mode>): Likewise.
24775         (atomic_exchange<mode>_llsc): Likewise.
24776         (atomic_fetch_add<mode>_llsc): Likewise.
24777         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
24778         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
24779         (umips_save_restore_pattern_p): Likewise.
24780         (umips_load_store_pair_p): Likewise.
24781         (umips_output_load_store_pair): Likewise.
24782         (umips_movep_target_p): Likewise.
24783         (umips_12bit_offset_address_p): Likewise.
24784         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
24785         (mips_base_mips16): Rename this...
24786         (mips_base_compression_flags): ...to this. Update all uses.
24787         (mips_attribute_table): Add micromips, nomicromips and nocompression.
24788         (mips_mips16_decl_p): Delete.
24789         (mips_nomips16_decl_p): Delete.
24790         (mips_get_compress_on_flags): New function.
24791         (mips_get_compress_off_flags): New function.
24792         (mips_get_compress_mode): New function.
24793         (mips_get_compress_on_name): New function.
24794         (mips_get_compress_off_name): New function.
24795         (mips_insert_attributes): Support multiple compression types.
24796         (mips_merge_decl_attributes): Likewise.
24797         (umips_12bit_offset_address_p): New function.
24798         (mips_start_function_definition): Emit .set micromips directive.
24799         (mips_call_may_need_jalx_p): New function.
24800         (mips_function_ok_for_sibcall): Add microMIPS support.
24801         (mips_print_operand_punctuation): Support short delay slots and
24802         compact jumps.
24803         (umips_swm_mask, umips_swm_encoding): New.
24804         (umips_build_save_restore): New function.
24805         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
24806         (was_mips16_p): Remove.
24807         (old_compression_mode): New.
24808         (mips_set_compression_mode): New function.
24809         (mips_set_current_function): Add microMIPS support.
24810         (mips_option_override): Likewise.
24811         (umips_save_restore_pattern_p): New function.
24812         (umips_output_save_restore): New function.
24813         (umips_load_store_pair_p_1): New function.
24814         (umips_load_store_pair_p): New function.
24815         (umips_output_load_store_pair_1): New function.
24816         (umips_output_load_store_pair): New function.
24817         (umips_movep_target_p) New function.
24818         (mips_prepare_pch_save): Add microMIPS support.
24819         * config/mips/mips.h (TARGET_COMPRESSION): New.
24820         (TARGET_CPU_CPP_BUILTINS): Update macro
24821         to use new compression flags and to support microMIPS.
24822         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
24823         (MIPS_ARCH_FLOAT_SPEC): Likewise.
24824         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
24825         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
24826         (ASM_SPEC): Support mmicromips and mno-micromips.
24827         (M16STORE_REG_P): New macro.
24828         (MIPS_CALL): Support TARGET_MICROMIPS.
24829         (MICROMIPS_J): New macro.
24830         (mips_base_mips16): Rename this...
24831         (mips_base_compression_flags): ...to this.
24832         (UMIPS_12BIT_OFFSET_P): New macro.
24833         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
24834         (MULTILIB_DIRNAMES): Likewise.
24835 2013-03-20  Richard Biener  <rguenther@suse.de>
24837         PR tree-optimization/56661
24838         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
24839         the result does not have to be distinct.
24841 2013-03-20  Richard Biener  <rguenther@suse.de>
24843         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
24844         remap_gimple_op_r.
24846 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24847             Steven Bosscher  <steven@gcc.gnu.org>
24849         PR rtl-optimization/56605
24850         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
24852 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
24854         PR bootstrap/56656
24855         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
24856         that require movd instead of movq.
24858 2013-03-20  Richard Biener  <rguenther@suse.de>
24860         * tree-ssa-structalias.c (struct variable_info): Add pointer
24861         to the first field of an aggregate with sub-vars.  Make
24862         this and the pointer to the next subfield its ID.
24863         (vi_next): New function.
24864         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
24865         storedanything_id, integer_id): Increment by one.
24866         (new_var_info, get_call_vi, lookup_call_clobber_vi,
24867         get_call_clobber_vi): Adjust.
24868         (solution_set_expand): Simplify and speedup.
24869         (solution_set_add): Inline into ...
24870         (set_union_with_increment): ... this.  Adjust accordingly.
24871         (do_sd_constraint): Likewise.
24872         (do_ds_constraint): Likewise.
24873         (do_complex_constraint): Simplify.
24874         (build_pred_graph): Adjust.
24875         (solve_graph): Likewise.  Simplify and speedup.
24876         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
24877         get_constraint_for_component_ref, get_constraint_for_1,
24878         first_vi_for_offset, first_or_preceding_vi_for_offset,
24879         create_function_info_for, create_variable_info_for_1,
24880         create_variable_info_for, intra_create_variable_infos): Adjust.
24881         (init_base_vars): Push NULL for ID zero.
24882         (compute_points_to_sets): Adjust.
24884 2013-03-20  Richard Biener  <rguenther@suse.de>
24886         * cfgloop.c (verify_loop_structure): Streamline and avoid
24887         ICEing on corrupt loop tree.
24888         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
24889         loop tree.
24891 2013-03-20  Richard Biener  <rguenther@suse.de>
24893         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
24894         check whether an SSA update is needed.
24896 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
24898         * config/mips/constraints.md (T): Rename to...
24899         (Yf): ...this.
24900         (U): Rename to...
24901         (Yd): ...this.
24902         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
24903         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
24905 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
24907         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
24908         (*subsi3_carryin_uxtw): Likewise.
24910 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
24912         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
24913         (*rorsi3_insn_uxtw): Likewise.
24915 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
24917         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
24918         (*extrsi5_insn_uxtw): Likewise.
24920 2013-03-19  Richard Biener  <rguenther@suse.de>
24922         PR tree-optimization/56273
24923         * passes.c (init_optimization_passes): Move second VRP after DOM.
24925 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
24927         * config/i386/i386.md (*movti_internal): Merge from
24928         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
24929         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
24930         nox64 isa attributes.
24932 2013-03-18  Richard Biener  <rguenther@suse.de>
24934         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
24935         (unite): Likewise.
24936         (merge_node_constraints): Likewise.
24937         (build_succ_graph): Likewise.
24938         (valid_graph_edge): Inline into single caller.
24939         (unify_nodes): Likewise.  Use bitmap_set_bit return value
24940         and cache varinfo.
24941         (scc_visit): Fix formatting and variable use.
24942         (do_sd_constraint): Use gcc_checking_assert.
24943         (do_ds_constraint): Likewise.
24944         (do_complex_constraint): Likewise.
24945         (condense_visit): Likewise.  Cleanup.
24946         (dump_pred_graph): New function.
24947         (perform_var_substitution): Dump the pred-graph before
24948         variable substitution.
24949         (find_equivalent_node): Use gcc_checking_assert.
24950         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
24952 2013-03-18  Richard Biener  <rguenther@suse.de>
24954         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
24955         Remove cond_expr_stmt_list argument and do not gimplify the
24956         built expression.
24957         (vect_loop_versioning): Adjust.
24958         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
24959         Cleanup to use less temporaries.
24960         (vect_create_data_ref_ptr): Cleanup.
24962 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
24964         PR tree-optimization/56635
24965         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
24966         require types_compatible_p types.
24968 2013-03-18  Nick Clifton  <nickc@redhat.com>
24970         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
24971         spurious backslash.
24973         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
24974         Add missing line to comment describing function.
24976 2013-03-18  Richard Biener  <rguenther@suse.de>
24978         PR tree-optimization/56210
24979         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24980         Handle string / character search functions.
24981         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
24983 2013-03-18  Richard Biener  <rguenther@suse.de>
24985         PR middle-end/56483
24986         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
24987         and implement properly.
24988         * gimple.h (gimple_cond_single_var_p): Remove.
24990 2013-03-18  Richard Biener  <rguenther@suse.de>
24992         * tree-data-ref.h (find_data_references_in_loop): Declare.
24993         * tree-data-ref.c (get_references_in_stmt): Use a stack
24994         vector pre-allocated in the callers.
24995         (find_data_references_in_stmt): Adjust.
24996         (graphite_find_data_references_in_stmt): Likewise.
24997         (create_rdg_vertices): Likewise.
24998         (find_data_references_in_loop): Export.
24999         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
25000         Compute dependences here...
25001         (vect_analyze_data_refs): ...not here.  When we encounter
25002         a non-vectorizable data reference in basic-block vectorization
25003         truncate the data reference vector.  Do not bother to
25004         fixup data-dependence information for gather loads.
25005         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
25006         of data references, as reported.
25008 2013-03-18  Richard Biener  <rguenther@suse.de>
25010         PR tree-optimization/3713
25011         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
25012         has_constants and expr.
25013         (stmt_has_constants): Properly valueize SSA names when deciding
25014         whether the stmt has constants.
25016 2013-03-18  Richard Biener  <rguenther@suse.de>
25018         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
25019         whole function when there is nothing to do.
25020         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
25021         * tree-vectorizer.c (vectorize_loops): Update virtual and
25022         loop-closed SSA once.
25023         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
25025 2013-03-18  Richard Biener  <rguenther@suse.de>
25027         PR middle-end/56113
25028         * domwalk.c (bb_postorder): New global static.
25029         (cmp_bb_postorder): New function.
25030         (walk_dominator_tree): Replace scheme imposing an order for
25031         visiting dominator sons by one sorting them at the time they
25032         are pushed on the stack.
25034 2013-03-18  Richard Biener  <rguenther@suse.de>
25036         PR tree-optimization/39326
25037         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
25038         (struct mem_ref): Replace mem member with ao_ref typed member.
25039         (MEM_ANALYZABLE): Adjust.
25040         (memref_eq): Likewise.
25041         (mem_ref_alloc): Likewise.
25042         (gather_mem_refs_stmt): Likewise.
25043         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
25044         (execute_sm_if_changed_flag_set): Adjust.
25045         (execute_sm): Likewise.
25046         (ref_always_accessed_p): Likewise.
25047         (refs_independent_p): Likewise.
25048         (can_sm_ref_p): Likewise.
25050 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
25052         PR c/56566
25053         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
25054         return 1 even for !unsignedp.
25056 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
25058         * config/i386/i386.md (isa): Add x64 and nox64.
25059         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
25060         (*pushtf): Enable *roF alternative for x64 isa only.
25061         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
25062         mode attribute of integer alternatives to DImode for TARGET_64BIT.
25063         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
25064         (*movtf_internal): Merge from *movtf_internal_rex64 and
25065         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
25066         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
25067         nox64 isa attributes.
25068         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
25069         nox64 isa attributes.
25070         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
25072 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
25074         * config/alpha/alpha.c (TARGET_LRA_P): New define.
25076 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
25078         PR target/56640
25079         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
25080         class names.  Remove trailing comma after "ALL_REGS".
25082 2013-03-16  Jan Hubicka  <jh@suse.cz>
25084         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
25085         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
25086         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
25087         of cgraph_get_create_node.
25088         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
25090 2013-03-16  Jason Merrill  <jason@redhat.com>
25092         PR debug/49090
25093         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
25094         with DW_AT_default_value.
25096 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
25098         * BASE-VER: Set to 4.9.0.
25100 2013-03-14  Andi Kleen  <ak@linux.intel.com>
25102         PR target/56619
25103         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
25104         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
25105         Document _x* TSX intrinsics.
25107 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
25108             David Holsgrove  <david.holsgrove@xilinx.com>
25110         * configure.ac: Add MicroBlaze TLS support detection.
25111         * configure: Regenerate.
25112         * config/microblaze/microblaze-protos.h
25113         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
25114         symbol_mentioned_p, label_mentioned_p): Add prototypes.
25115         * config/microblaze/microblaze.c (microblaze_address_type): Add
25116         ADDRESS_TLS and tls_reloc address types.
25117         (microblaze_address_info): Add tls_reloc.
25118         (TARGET_HAVE_TLS): Define.
25119         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
25120          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
25121          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
25122         load_tls_operand,  microblaze_call_tls_get_addr,
25123         microblaze_legitimize_tls_address): New functions.
25124         (microblaze_classify_unspec): Handle UNSPEC_TLS.
25125         (get_base_reg): Use microblaze_tls_symbol_p.
25126         (microblaze_classify_address): Handle TLS.
25127         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
25128         label_mentioned_p and microblaze_tls_referenced_p.
25129         (microblaze_legitimize_address): Handle TLS.
25130         (microblaze_address_insns): Handle ADDRESS_TLS.
25131         (pic_address_needs_scratch): Handle TLS.
25132         (print_operand_address): Handle TLS.
25133         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
25134         (microblaze_expand_move): Handle TLS.
25135         (microblaze_legitimate_constant_p): Check
25136         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
25137         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
25138         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
25139         (PIC_OFFSET_TABLE_REGNUM): Set.
25140         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
25141         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
25142         (addsi3, movsi_internal2, movdf_internal): Update constraints
25143         * config/microblaze/predicates.md (arith_plus_operand): Define
25144         (move_operand): Redefine as move_src_operand,
25145         check microblaze_tls_referenced_p.
25147 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
25149         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
25150         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
25152 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
25154         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
25155         CC mode for AND.
25157 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
25159         PR tree-optimization/53265
25160         * common.opt (Waggressive-loop-optimizations): New option.
25161         * tree-ssa-loop-niter.c: Include tree-pass.h.
25162         (do_warn_aggressive_loop_optimizations): New function.
25163         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
25164         if number_of_latch_executions returned constant.
25165         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
25166         early.  If number_of_latch_executions returned constant, set
25167         nb_iterations_upper_bound back to it.
25168         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
25169         field.
25170         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
25171         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
25173         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
25174         (MULTILIB_OSDIRNAMES): Set.
25175         * genmultilib: If defaultosdirname doesn't start with :: , set
25176         defaultosdirname2 instead, clear it and emit two . multilib_raw
25177         entries instead of just one.
25179 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
25181         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
25182         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
25183         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
25184         (SUBTARGET_OVERRIDE_OPTIONS): New.
25186 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
25188         PR target/49880
25189         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
25190         (musermode): Convert to Var(TARGET_USERMODE).
25191         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
25192         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
25193         * config/sh/sh.c (sh_option_override): Use
25194         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
25195         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
25196         condition.
25197         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
25198         TARGET_SH4.
25199         (udivsi3_i4_single, divsi3_i4_single): Use
25200         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
25202 2013-03-13  Dave Korn  <dave.korn.cygwin@gmail.com>
25204         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
25205         default setting.
25207 2013-03-13  Richard Biener  <rguenther@suse.de>
25209         PR tree-optimization/56608
25210         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
25211         calls when vectorizing basic-blocks.
25213 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
25215         PR plugins/45078
25216         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
25217         tm_file.
25219 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
25221         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
25223 2013-03-11  Jan Hubicka  <jh@suse.cz>
25225         PR lto/56557
25226         * lto-streamer-out.c (output_symbol_p): Skip references from
25227         constructors of external variables.
25229 2013-03-11  Jan Hubicka  <jh@suse.cz>
25231         PR middle-end/56571
25232         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
25233         from pseudos.
25234         * emit-rtl.c (verify_rtx_sharing): Likewise.
25235         (copy_insn_1): Likewise.
25236         * rtl.c (copy_rtx): Likewise.
25238 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
25240         PR target/56591
25241         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
25242         output_operand_lossage message.
25244 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
25246         PR target/56470
25247         * arm.c (shift_op): Validate RTL pattern on the fly.
25248         (arm_print_operand, case 'S'): Don't use shift_operator to validate
25249         the RTL.
25251 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25253         PR target/56347
25254         * config/pa/pa.md (call_value): Check for calls to powf and direct to
25255         new call patterns that clobber %fr12.
25256         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
25257         split and postreload patterns.
25258         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
25259         registers %fr12 and %fr12R as call used.
25261 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
25263         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
25264         (canon_address, record_store, replace_read, check_mem_read_rtx,
25265         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
25266         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
25267         rest_of_handle_dse): Likewise.
25269 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
25271         PR middle-end/56524
25272         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
25273         Add base_optabs.
25274         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
25275         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
25276         (save_optabs_if_changed): Replace with...
25277         (init_tree_optimization_optabs): ...this.
25278         * optabs.c (save_optabs_if_changed): Rename to...
25279         (init_tree_optimization_optabs): ...this.  Take the optimization node
25280         as argument.  Do nothing if the base optabs are already correct.
25281         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
25282         to recompute optabs.
25283         * function.h (function): Remove optabs field.
25284         * function.c (invoke_set_current_function_hook): Call
25285         init_tree_optimization_optabs.  Use the result to initialize
25286         this_fn_optabs.
25288 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
25290         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
25291         if GTMA_HAS_NO_INSTRUMENTATION.
25292         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
25293         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
25294         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
25295         * gimple-pretty-print.c (dump_gimple_transaction): Handle
25296         GTMA_HAS_NO_INSTRUMENTATION.
25298 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
25300         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
25301         libasan_preinit.o.
25303 2013-03-08  Marek Polacek  <polacek@redhat.com>
25304             Jakub Jelinek  <jakub@redhat.com>
25306         PR tree-optimization/56478
25307         * predict.c (is_comparison_with_loop_invariant_p): Change the
25308         type of loop_step to tree.
25309         (predict_loops): Adjust.
25310         (predict_iv_comparison): Perform the computations on double_ints.
25312 2013-03-08  Richard Biener  <rguenther@suse.de>
25314         PR tree-optimization/56570
25315         * tree-cfg.c (verify_expr_location_1): Verify locations for
25316         DECL_DEBUG_EXPR.
25317         * tree-sra.c (create_access_replacement): Strip locations
25318         from DECL_DEBUG_EXPRs.
25320 2013-03-08  Richard Biener  <rguenther@suse.de>
25322         * tree-inline.c (expand_call_inline): Do not associate
25323         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
25324         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
25326 2013-03-08  Richard Biener  <rguenther@suse.de>
25328         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
25329         or block changes with -Og.  Fix for location / block encoding
25330         changes and PHI arguments with locations.
25332 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
25334         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
25335         for all counters.
25336         (struct output_info): Likewise.
25337         (register_overhead): Remove bad gcc_assert.
25338         (bitmap_find_bit): If there is only a single bitmap element, do not
25339         count a miss as a search.
25340         (print_statistics): Update for counter type changes.
25341         (dump_bitmap_statistics): Likewise.  Print headers such that they
25342         are properly lined up with the printed counters.
25344 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
25346         PR tree-optimization/56559
25347         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
25348         check that it has only a single use.
25350 2013-03-07  Richard Biener  <rguenther@suse.de>
25352         * doc/invoke.texi (fwhole-program): Discourage use in combination
25353         with -flto.
25355 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
25357         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
25359         PR tree-optimization/56539
25360         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
25361         instead of GSI_CONTINUE_LINKING as last argument to
25362         force_gimple_operand_gsi.  Adjust function comment.
25364         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
25365         aarch64-cores.def.
25367         PR middle-end/56548
25368         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
25369         promoted mode, convert the result back to the original mode.
25371 2013-03-06  Richard Biener  <rguenther@suse.de>
25373         PR middle-end/56294
25374         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
25375         (insert_updated_phi_nodes_compare_uids): New function.
25376         (update_ssa): Sort symbols_to_rename after UID before
25377         traversing it to insert PHI nodes.
25379 2013-03-06  Richard Biener  <rguenther@suse.de>
25381         PR middle-end/50494
25382         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
25383         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
25385         Revert
25386         2013-02-13  Richard Biener  <rguenther@suse.de>
25388         PR lto/50494
25389         * varasm.c (output_constant_def_1): Get the decl representing
25390         the constant as argument.
25391         (output_constant_def): Wrap output_constant_def_1.
25392         (make_decl_rtl): Use output_constant_def_1 with the decl
25393         representing the constant.
25394         (build_constant_desc): Optionally re-use a decl already
25395         representing the constant.
25396         (tree_output_constant_def): Adjust.
25398 2013-03-06  Joey Ye  <joey.ye@arm.com>
25400         PR lto/50293
25401         * gcc.c (convert_white_space): New function.
25402         (main): Handles white space in function name.
25404 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
25406         PR target/56529
25407         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
25408         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
25409         to SH_DIV_CALL_TABLE for TARGET_SH2.
25410         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
25411         list.
25412         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
25413         call-table options.
25415 2013-03-05  Sterling Augustine  <saugustine@google.com>
25416             Cary Coutant  <ccoutant@google.com>
25418         PR debug/55364
25419         * dwarf2out.c (resolve_addr): Don't call
25420         remove_loc_list_addr_table_entries a second time for the same
25421         expression.
25423 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
25425         PR debug/56510
25426         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
25427         (avoid_complex_debug_insns): New function.
25428         (expand_debug_locations): Call it.
25430         PR rtl-optimization/56484
25431         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
25432         lifetimes of hard registers on small register class machines.
25434 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
25436         * config/microblaze/microblaze-protos.h: Rename
25437         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
25438         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
25439         fast_interrupt.
25440         (microblaze_fast_interrupt_function_p): New function.
25441         (microblaze_is_interrupt_handler): Rename to
25442         microblaze_is_interrupt_variant and add fast_interrupt check.
25443         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
25444         (save_restore_insns): Likewise.
25445         (compute_frame_size): Likewise.
25446         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
25447         (microblaze_globalize_label): Likewise.
25448         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
25449         * config/microblaze/microblaze.md: Use wrapper
25450         microblaze_is_interrupt_variant.
25452 2013-03-05  Kai Tietz  <ktietz@redhat.com>
25454         * sdbout.c (sdbout_one_type): Switch to current function's section
25455         supporting cold/hot.
25457 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
25459         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
25460         -mxl-reorder.
25462 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
25464         PR middle-end/56461
25465         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
25466         if VALGRIND_GET_VBITS is defined, temporarily make object
25467         memory all defined, and restore previous valgrind addressability
25468         and definability afterwards.  Free this_object at the end.
25470         PR middle-end/56461
25471         * lra.c (lra): Call lra_clear_live_ranges if live_p,
25472         right before calling lra_create_live_ranges, also call it
25473         when clearing live_p.  Only call lra_clear_live_ranges
25474         at the end if live_p.
25476         PR middle-end/56461
25477         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
25479 2013-03-05  Richard Biener  <rguenther@suse.de>
25481         PR tree-optimization/56521
25482         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
25483         value-id.
25485 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
25487         PR c++/55135
25488         * except.h (remove_unreachable_eh_regions): New prototype.
25489         * except.c (remove_eh_handler_splicer): New function, split out
25490         of remove_eh_handler.
25491         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
25492         warning about running it on many EH regions one at a time.
25493         (remove_unreachable_eh_regions_worker): New function, walk the
25494         EH tree in depth-first order and remove non-marked regions.
25495         (remove_unreachable_eh_regions): New function.
25496         * tree-eh.c (mark_reachable_handlers): New function, split out
25497         from remove_unreachable_handlers.
25498         (remove_unreachable_handlers): Use mark_reachable_handlers and
25499         remove_unreachable_eh_regions.
25500         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
25501         and remove_unreachable_eh_regions.
25503 2013-03-05  Richard Biener  <rguenther@suse.de>
25505         PR middle-end/56525
25506         * loop-init.c (fix_loop_structure): Remove loops in two stages,
25507         not freeing them until the end.
25509 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25511         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
25513 2013-03-05  Richard Biener  <rguenther@suse.de>
25515         PR tree-optimization/56270
25516         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
25517         of loads after scheduling an SLP instance.
25519 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
25521         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
25522         tic6x.exp.
25523         (check_gcc_parallelize): Run guality.exp as a separate job from
25524         vect.exp with unsorted.exp and $(dg_target_exps) separately from
25525         struct-layout-1.exp with stackalign.exp.
25527         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
25529         PR middle-end/56461
25530         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
25531         load_index sbitmap even if some bit in it isn't set.
25533         PR middle-end/56461
25534         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
25535         (discover_iteration_bound_by_body_walk): Change queues to
25536         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
25537         spelling in comment.  Call safe_push on queues[bound_index] directly.
25538         Release queues[queue_index] in every iteration unconditionally.
25539         Release bounds vector.
25541         PR middle-end/56461
25542         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
25543         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
25544         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
25545         inner_phis vector.
25547 2013-03-05  Richard Biener  <rguenther@suse.de>
25549         PR lto/56515
25550         * tree-inline.c (remap_blocks_to_null): New function.
25551         (expand_call_inline): When expanding a call stmt without
25552         an associated block inline remap all callee blocks to NULL.
25554 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
25556         PR rtl-optimization/56494
25557         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
25558         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
25559         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
25561         PR middle-end/56461
25562         * sel-sched-ir.c (free_sched_pools): Release
25563         succs_info_pool.stack[succs_info_pool.max_top] vectors too
25564         if succs_info_pool.max_top isn't -1.
25566         PR bootstrap/56509
25567         * opts.c (opts_obstack, opts_concat): Moved to...
25568         * opts-common.c (opts_obstack, opts_concat): ... here.
25570 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
25572         PR middle-end/56461
25573         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
25575 2013-03-04  Martin Jambor  <mjambor@suse.cz>
25577         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
25578         all appropriate places.
25580 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
25582         PR tree-optimization/56424
25583         * ipa-split.c (split_function): Do not set the RSO flag if result is
25584         not by reference and its type is a register type.
25586 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
25588         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
25589         (microblaze_legitimate_pic_operand): Likewise
25590         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
25591         new function microblaze_legitimate_pic_operand
25592         * config/microblaze/microblaze-protos.h
25593         (microblaze_legitimate_pic_operand): Declare.
25595 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
25597         * config/microblaze/predicates.md (call_insn_simple_operand):
25598         New predicate for supported rtx code types.
25599         * config/microblaze/microblaze.md (call_internal1): Use
25600         call_insn_simple_operand predicate.
25602 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
25604         PR middle-end/56461
25605         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
25606         partitions.ordered_remove.
25608         PR middle-end/56461
25609         * tree-vect-stmts.c (vectorizable_conversion): Don't call
25610         vec_oprnds0.create (1) for modifier == NONE.
25612         PR middle-end/56461
25613         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
25614         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
25615         vec_oprnds1 right before pushing anything to it for
25616         scalar_shift_arg.
25618         PR middle-end/56461
25619         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
25620         set nbbs to 0 instead of having separate code path.
25621         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
25622         instead of false as last argument if returning NULL.
25624 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
25626         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
25627         the attribute is now called "target" instead of "option".
25628         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
25629         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
25630         attribute/pragma name for TARGET_OPTION_VALID_P and
25631         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
25632         * doc/tm.texi: Regenerated.
25634 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
25636         * config/microblaze/microblaze.c:
25637         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
25638         * config/microblaze/microblaze.h: Add -mxl-reorder to
25639         DRIVER_SELF_SPECS.
25640         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
25641         instructions emitted if TARGET_REORDER.
25642         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
25643         or 0 for -m/-mno case, but initialises as 2 to detect default use case
25644         separately.
25646 2013-03-01  Xinliang David Li  <davidxl@google.com>
25648         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
25649         walk length.
25651 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
25653         PR middle-end/56461
25654         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
25655         vector even when returning true.  Fix up function comment formatting.
25657         PR middle-end/56461
25658         * ira-build.c (ira_loop_nodes_count): New variable.
25659         (create_loop_tree_nodes): Initialize it.
25660         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
25662         PR middle-end/56461
25663         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
25664         method on dr_chain and result_chain.
25665         * tree-vect-stmts.c (vectorizable_store): Only call
25666         result_chain.create if j == 0.
25668         PR middle-end/56461
25669         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
25670         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
25671         before overwriting it.
25673 2013-03-01  Tobias Burnus  <burnus@net-b.de>
25675         * doc/extended.texi (C Extensions): Change order in @menu
25676         to match @node.
25677         (Other MIPS Built-in Functions): Move last MIPS entry before
25678         "picoChip Built-in Functions".
25679         (SH Built-in Functions): Move after RX Built-in Functions.
25680         * doc/gcc.texi (Introduction): Change order in @menu
25681         to match @node.
25682         * doc/md.texi (Constraints): Ditto.
25683         * gty.texi (Type Information): Ditto.
25684         (User-provided marking routines for template types): Make
25685         subsection.
25686         * doc/invoke.texi (AArch64 Options): Move before
25687         "Adapteva Epiphany Options".
25689 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
25690             Jakub Jelinek  <jakub@redhat.com>
25692         PR sanitizer/56454
25693         * asan.c (gate_asan): Lookup no_sanitize_address instead of
25694         no_address_safety_analysis attribute.
25695         * doc/extend.texi (no_address_safety_attribute): Rename to
25696         no_sanitize_address attribute, mention no_address_safety_analysis
25697         attribute as deprecated alias.
25699 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
25701         PR middle-end/56461
25702         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
25703         type to vec<vec<tree> > *.
25704         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
25705         to be vec<tree> instead of vec<tree> *, set vec_defs
25706         to vNULL and call vec_defs.create (number_of_vects), adjust other
25707         uses of vec_defs.
25708         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
25709         vectorizable_condition): Adjust vect_get_slp_defs callers.
25711 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
25713         * config/aarch64/aarch64.c
25714         (aarch64_float_const_representable): Remove unused variable.
25716 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
25718         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
25720 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
25722         * config/aarch64/aarch64-builtins.c
25723         (aarch64_init_simd_builtins): Make static.
25725 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
25727         * config/aarch64/aarch64.c
25728         (aarch64_simd_make_constant): Make static.
25730 2013-02-28  Martin Jambor  <mjambor@suse.cz>
25732         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
25733         with no initialization to the RHS of debug statements.
25735 2013-02-28  Martin Jambor  <mjambor@suse.cz>
25737         PR tree-optimization/56294
25738         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
25739         Adjust dumping.
25740         (get_access_replacement): Do not call create_access_replacement.
25741         Assert a replacement exists.
25742         (get_repl_default_def_ssa_name): Create the replacement declaration
25743         itself.
25745 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25747         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
25748         final_end_function.
25750 2013-02-28  Marek Polacek  <polacek@redhat.com>
25752         PR rtl-optimization/56466
25753         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
25754         if we're changing a loop.
25755         (peel_loops_completely): Likewise.
25757 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
25759         PR c++/55813
25760         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
25762 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
25764         PR target/56445
25765         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
25766         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
25767         INTX_FTYPE_FX, FX_FTYPE_INTX.
25768         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
25770 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
25772         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
25773         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
25774         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
25775         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
25776         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
25777         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
25778         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
25779         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
25780         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
25781         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
25782         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
25783         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
25784         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
25785         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
25786         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
25787         (avrxmega6): Increase max flash segments from 5 to 6.
25788         * config/avr/t-multilib: Regenerate.
25789         * config/avr/avr-tables.opt: Regenerate.
25790         * doc/avr-mmcu.texi: Regenerate.
25792 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
25794         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
25795         (avr_device_to_arch): Rename to avr_device_to_ld.
25796         (avr_device_to_as): New prototype.
25797         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
25798         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
25799         * config/avr/driver-avr.c (avr_device_to_as): New.
25800         (avr_device_to_arch): Rename to avr_device_to_ld.
25802 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
25804         PR middle-end/56461
25805         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
25806         method on dr_chain and result_chain.
25808         PR middle-end/56461
25809         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
25810         pointer_set_destroy on not_executed_last_iteration.
25812         PR middle-end/56461
25813         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
25815         PR middle-end/56461
25816         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
25817         FOR_EACH_DEFINED_FUNCTION when freeing state.
25819         PR middle-end/56461
25820         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
25821         pool_free.
25822         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
25823         overwriting it.
25825         PR middle-end/56461
25826         * ipa-cp.c (decide_whether_version_node): Call vec_free on
25827         known_aggs[i].items and release known_aggs vector.
25829         PR middle-end/56461
25830         * ipa-reference.c (propagate): Free node_info even for alias nodes.
25832 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
25834         * config/microblaze/microblaze.c (microblaze_emit_compare):
25835         Use xor for EQ/NE comparisions.
25836         * config/microblaze/microblaze.md (cstoresf4): Add constraints
25837         (cbranchsf4): Adjust operator to comparison_operator.
25839 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
25841         PR middle-end/56461
25842         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
25843         vector.
25844         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
25845         vec_safe_push, always update *slot.
25846         (redirect_edge_var_map_clear): Use vec_free.
25847         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
25848         (free_var_map_entry): Use vec_free.
25849         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
25850         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
25852 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
25854         PR middle-end/45472
25855         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
25856         when the may_trap_p bit of the exprs being merged differs.
25857         Reorder tests for speculativeness in the logical and operator.
25859 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
25861         * incpath.c (add_standard_paths): Use reconcat instead of concat
25862         where appropriate and avoid leaking memory.
25864         * opts.h: Include obstack.h.
25865         (opts_concat): New prototype.
25866         (opts_obstack): New declaration.
25867         * opts.c (opts_concat): New function.
25868         (opts_obstack): New variable.
25869         (init_options_struct): Call gcc_init_obstack on opts_obstack.
25870         (finish_options): Use opts_concat instead of concat
25871         and XOBNEWVEC instead of XNEWVEC.
25872         * opts-common.c (generate_canonical_option, decode_cmdline_option,
25873         generate_option): Likewise.
25874         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
25875         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
25877         PR target/56455
25878         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
25879         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
25881 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
25883         PR middle-end/56461
25884         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
25886 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
25888         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
25889         (arm_block_move_unaligned_straight): Likewise.
25890         (arm_adjust_block_mem): Likewise.
25892 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
25894         PR target/48901
25895         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
25896         temp, cond and label.
25897         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
25899         PR target/52500
25900         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
25901         * config/c6x/c6x.h (dbx_register_map): Update declaration.
25903         PR target/52501
25904         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
25905         of prologue/epilogue functions.
25907         PR target/52550
25908         * config/tilegx/tilegx.c (tilegx_expand_prologue):
25909         Remove unused variable cfa_offset.
25910         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
25912         PR target/54639
25913         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
25914         type promotion to unsigned.
25916         PR target/54640
25917         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
25918         for HOST_WIDE_INT of 32 bit / same size as int.
25919         (arm_block_move_unaligned_straight): Likewise.
25920         (arm_adjust_block_mem): Likewise.
25922         PR target/54662
25923         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
25924         ALL_CFLAGS.
25926 2013-02-26  Marek Polacek  <polacek@redhat.com>
25928         PR tree-optimization/56426
25929         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
25931 2013-02-26  Richard Biener  <rguenther@suse.de>
25933         PR target/56444
25934         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
25935         unused variable loops.
25937 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
25939         PR tree-optimization/56448
25940         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
25941         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
25942         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
25943         later operands of the references, or even first operand for
25944         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
25946         PR tree-optimization/56443
25947         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
25948         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
25949         to type_for_mode langhook.
25951 2013-02-25  Matt Turner  <mattst88@gmail.com>
25953         * doc/invoke.texi: Document r4700.
25955 2013-02-25  Richard Biener  <rguenther@suse.de>
25957         PR tree-optimization/56175
25958         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
25959         split out from ...
25960         (simplify_bitwise_binary): ... here.  Also guard the conversion
25961         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
25963 2013-02-25  Catherine Moore  <clm@codesourcery.com>
25965         Revert:
25966         2013-02-24  Catherine Moore  <clm@codesourcery.com>
25967             Maciej W. Rozycki  <macro@codesourcery.com>
25968             Tom de Vries  <tom@codesourcery.com>
25969             Nathan Sidwell  <nathan@codesourcery.com>
25970             Iain Sandoe  <iain@codesourcery.com>
25971             Nathan Froyd  <froydnj@codesourcery.com>
25972             Chao-ying Fu  <fu@mips.com>
25974         * doc/extend.texi: (micromips, nomicromips, nocompression):
25975         Document new function attributes.
25976         * doc/invoke.texi (minterlink-compressed, mmicromips,
25977         m14k, m14ke, m14kec): Document new options.
25978         (minterlink-mips16): Update documentation.
25979         * doc/md.texi (ZC, ZD): Document new constraints.
25980         * configure.ac (gcc_cv_as_micromips): Check if linker
25981         supports the .set micromips directive.
25982         * configure: Regenerate.
25983         * config.in: Regenerate.
25984         * config/mips/mips-tables.opt: Regenerate.
25985         * config/mips/micromips.md: New file.
25986         * constraints.md (ZC, AD): New constraints.
25987         * config/mips/predicates.md (movep_src_register): New predicate.
25988         (movep_src_operand): New predicate.
25989         (non_volatile_mem_operand): New predicate.
25990         * config/mips/mips.md (multimem): New type.
25991         (length): Differentiate between 17-bit and 18-bit branch offsets.
25992         (MOVEP1, MOVEP2): New mode iterator.
25993         (mov_<load>l): Use ZC constraint.
25994         (mov_<load>r): Likewise.
25995         (mov_<store>l): Likewise.
25996         (mov_<store>r): Likewise.
25997         (*branch_equality<mode>_inverted): Add microMIPS support.
25998         (*branch_equality<mode>): Likewise.
25999         (*jump_absolute): Likewise.
26000         (indirect_jump_<mode>): Likewise.
26001         (tablejump_<mode>): Likewise.
26002         (<optab>_internal): Likewise.
26003         (sibcall_internal): Likewise.
26004         (sibcall_value_internal): Likewise.
26005         (prefetch): Use constraint ZD.
26006         * config/mips/mips.opt (minterlink-compressed): New option.
26007         (minterlink-mips16): Now an alias for minterlink-compressed.
26008         (mmicromips): New option.
26009         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
26010         (compare_and_swap_12): Likewise.
26011         (sync_add<mode>): Likewise.
26012         (sync_<optab>_12): Likewise.
26013         (sync_old_<optab>_12): Likewise.
26014         (sync_new_<optab>_12): Likewise.
26015         (sync_nand_12): Likewise.
26016         (sync_old_nand_12): Likewise.
26017         (sync_new_nand_12): Likewise.
26018         (sync_sub<mode>): Likewise.
26019         (sync_old_add<mode>): Likewise.
26020         (sync_old_sub<mode>): Likewise.
26021         (sync_new_add<mode>): Likewise.
26022         (sync_new_sub<mode>): Likewise.
26023         (sync_<optab><mode>): Likewise.
26024         (sync_old_<optab><mode>): Likewise.
26025         (sync_new_<optab><mode>): Likewise.
26026         (sync_nand<mode>): Likewise.
26027         (sync_old_nand<mode>): Likewise.
26028         (sync_new_nand<mode>): Likewise.
26029         (sync_lock_test_and_set<mode>): Likewise.
26030         (test_and_set_12): Likewise.
26031         (atomic_compare_and_swap<mode>): Likewise.
26032         (atomic_exchange<mode>_llsc): Likewise.
26033         (atomic_fetch_add<mode>_llsc): Likewise.
26034         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
26035         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
26036         (umips_save_restore_pattern_p): Likewise.
26037         (umips_load_store_pair_p): Likewise.
26038         (umips_output_load_store_pair): Likewise.
26039         (umips_movep_target_p): Likewise.
26040         (umips_12bit_offset_address_p): Likewise.
26041         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
26042         (mips_base_mips16): Rename this...
26043         (mips_base_compression_flags): ...to this. Update all uses.
26044         (mips_attribute_table): Add micromips, nomicromips and nocompression.
26045         (mips_mips16_decl_p): Delete.
26046         (mips_nomips16_decl_p): Delete.
26047         (mips_get_compress_on_flags): New function.
26048         (mips_get_compress_off_flags): New function.
26049         (mips_get_compress_mode): New function.
26050         (mips_get_compress_on_name): New function.
26051         (mips_get_compress_off_name): New function.
26052         (mips_insert_attributes): Support multiple compression types.
26053         (mips_merge_decl_attributes): Likewise.
26054         (umips_12bit_offset_address_p): New function.
26055         (mips_start_function_definition): Emit .set micromips directive.
26056         (mips_call_may_need_jalx_p): New function.
26057         (mips_function_ok_for_sibcall): Add microMIPS support.
26058         (mips_print_operand_punctuation): Support short delay slots and
26059         compact jumps.
26060         (umips_swm_mask, umips_swm_encoding): New.
26061         (umips_build_save_restore): New function.
26062         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
26063         (was_mips16_p): Remove.
26064         (old_compression_mode): New.
26065         (mips_set_compression_mode): New function.
26066         (mips_set_current_function): Add microMIPS support.
26067         (mips_option_override): Likewise.
26068         (umips_save_restore_pattern_p): New function.
26069         (umips_output_save_restore): New function.
26070         (umips_load_store_pair_p_1): New function.
26071         (umips_load_store_pair_p): New function.
26072         (umips_output_load_store_pair_1): New function.
26073         (umips_output_load_store_pair): New function.
26074         (umips_movep_target_p) New function.
26075         (mips_prepare_pch_save): Add microMIPS support.
26076         * config/mips/mips.h (TARGET_COMPRESSION): New.
26077         (TARGET_CPU_CPP_BUILTINS): Update macro
26078         to use new compression flags and to support microMIPS.
26079         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
26080         (MIPS_ARCH_FLOAT_SPEC): Likewise.
26081         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
26082         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
26083         (ASM_SPEC): Support mmicromips and mno-micromips.
26084         (M16STORE_REG_P): New macro.
26085         (MIPS_CALL): Support TARGET_MICROMIPS.
26086         (MICROMIPS_J): New macro.
26087         (mips_base_mips16): Rename this...
26088         (mips_base_compression_flags): ...to this.
26089         (UMIPS_12BIT_OFFSET_P): New macro.
26090         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
26091         (MULTILIB_DIRNAMES): Likewise.
26093 2013-02-25  Tom de Vries  <tom@codesourcery.com>
26095         PR rtl-optimization/56131
26096         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
26097         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
26098         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
26100 2013-02-25  Tobias Burnus  <burnus@net-b.de>
26102         * doc/invoke.texi (-fsanitize=): Move from optimization
26103         to debugging options.
26105 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
26107         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
26109 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
26110             Alexander Monakov  <amonakov@ispras.ru>
26112         PR middle-end/56077
26113         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
26114         flush pending lists also on non-jumps.  Adjust comment.
26116 2013-02-24  Catherine Moore  <clm@codesourcery.com>
26117             Maciej W. Rozycki  <macro@codesourcery.com>
26118             Tom de Vries  <tom@codesourcery.com>
26119             Nathan Sidwell  <nathan@codesourcery.com>
26120             Iain Sandoe  <iain@codesourcery.com>
26121             Nathan Froyd  <froydnj@codesourcery.com>
26122             Chao-ying Fu  <fu@mips.com>
26124         * doc/extend.texi: (micromips, nomicromips, nocompression):
26125         Document new function attributes.
26126         * doc/invoke.texi (minterlink-compressed, mmicromips,
26127         m14k, m14ke, m14kec): Document new options.
26128         (minterlink-mips16): Update documentation.
26129         * doc/md.texi (ZC, ZD): Document new constraints.
26130         * configure.ac (gcc_cv_as_micromips): Check if linker
26131         supports the .set micromips directive.
26132         * configure: Regenerate.
26133         * config.in: Regenerate.
26134         * config/mips/mips-tables.opt: Regenerate.
26135         * config/mips/micromips.md: New file.
26136         * constraints.md (ZC, AD): New constraints.
26137         * config/mips/predicates.md (movep_src_register): New predicate.
26138         (movep_src_operand): New predicate.
26139         (non_volatile_mem_operand): New predicate.
26140         * config/mips/mips.md (multimem): New type.
26141         (length): Differentiate between 17-bit and 18-bit branch offsets.
26142         (MOVEP1, MOVEP2): New mode iterator.
26143         (mov_<load>l): Use ZC constraint.
26144         (mov_<load>r): Likewise.
26145         (mov_<store>l): Likewise.
26146         (mov_<store>r): Likewise.
26147         (*branch_equality<mode>_inverted): Add microMIPS support.
26148         (*branch_equality<mode>): Likewise.
26149         (*jump_absolute): Likewise.
26150         (indirect_jump_<mode>): Likewise.
26151         (tablejump_<mode>): Likewise.
26152         (<optab>_internal): Likewise.
26153         (sibcall_internal): Likewise.
26154         (sibcall_value_internal): Likewise.
26155         (prefetch): Use constraint ZD.
26156         * config/mips/mips.opt (minterlink-compressed): New option.
26157         (minterlink-mips16): Now an alias for minterlink-compressed.
26158         (mmicromips): New option.
26159         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
26160         (compare_and_swap_12): Likewise.
26161         (sync_add<mode>): Likewise.
26162         (sync_<optab>_12): Likewise.
26163         (sync_old_<optab>_12): Likewise.
26164         (sync_new_<optab>_12): Likewise.
26165         (sync_nand_12): Likewise.
26166         (sync_old_nand_12): Likewise.
26167         (sync_new_nand_12): Likewise.
26168         (sync_sub<mode>): Likewise.
26169         (sync_old_add<mode>): Likewise.
26170         (sync_old_sub<mode>): Likewise.
26171         (sync_new_add<mode>): Likewise.
26172         (sync_new_sub<mode>): Likewise.
26173         (sync_<optab><mode>): Likewise.
26174         (sync_old_<optab><mode>): Likewise.
26175         (sync_new_<optab><mode>): Likewise.
26176         (sync_nand<mode>): Likewise.
26177         (sync_old_nand<mode>): Likewise.
26178         (sync_new_nand<mode>): Likewise.
26179         (sync_lock_test_and_set<mode>): Likewise.
26180         (test_and_set_12): Likewise.
26181         (atomic_compare_and_swap<mode>): Likewise.
26182         (atomic_exchange<mode>_llsc): Likewise.
26183         (atomic_fetch_add<mode>_llsc): Likewise.
26184         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
26185         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
26186         (umips_save_restore_pattern_p): Likewise.
26187         (umips_load_store_pair_p): Likewise.
26188         (umips_output_load_store_pair): Likewise.
26189         (umips_movep_target_p): Likewise.
26190         (umips_12bit_offset_address_p): Likewise.
26191         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
26192         (mips_base_mips16): Rename this...
26193         (mips_base_compression_flags): ...to this. Update all uses.
26194         (mips_attribute_table): Add micromips, nomicromips and nocompression.
26195         (mips_mips16_decl_p): Delete.
26196         (mips_nomips16_decl_p): Delete.
26197         (mips_get_compress_on_flags): New function.
26198         (mips_get_compress_off_flags): New function.
26199         (mips_get_compress_mode): New function.
26200         (mips_get_compress_on_name): New function.
26201         (mips_get_compress_off_name): New function.
26202         (mips_insert_attributes): Support multiple compression types.
26203         (mips_merge_decl_attributes): Likewise.
26204         (umips_12bit_offset_address_p): New function.
26205         (mips_start_function_definition): Emit .set micromips directive.
26206         (mips_call_may_need_jalx_p): New function.
26207         (mips_function_ok_for_sibcall): Add microMIPS support.
26208         (mips_print_operand_punctuation): Support short delay slots and
26209         compact jumps.
26210         (umips_swm_mask, umips_swm_encoding): New.
26211         (umips_build_save_restore): New function.
26212         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
26213         (was_mips16_p): Remove.
26214         (old_compression_mode): New.
26215         (mips_set_compression_mode): New function.
26216         (mips_set_current_function): Add microMIPS support.
26217         (mips_option_override): Likewise.
26218         (umips_save_restore_pattern_p): New function.
26219         (umips_output_save_restore): New function.
26220         (umips_load_store_pair_p_1): New function.
26221         (umips_load_store_pair_p): New function.
26222         (umips_output_load_store_pair_1): New function.
26223         (umips_output_load_store_pair): New function.
26224         (umips_movep_target_p) New function.
26225         (mips_prepare_pch_save): Add microMIPS support.
26226         * config/mips/mips.h (TARGET_COMPRESSION): New.
26227         (TARGET_CPU_CPP_BUILTINS): Update macro
26228         to use new compression flags and to support microMIPS.
26229         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
26230         (MIPS_ARCH_FLOAT_SPEC): Likewise.
26231         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
26232         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
26233         (ASM_SPEC): Support mmicromips and mno-micromips.
26234         (M16STORE_REG_P): New macro.
26235         (MIPS_CALL): Support TARGET_MICROMIPS.
26236         (MICROMIPS_J): New macro.
26237         (mips_base_mips16): Rename this...
26238         (mips_base_compression_flags): ...to this.
26239         (UMIPS_12BIT_OFFSET_P): New macro.
26240         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
26241         (MULTILIB_DIRNAMES): Likewise.
26243 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
26245         PR target/52555
26246         * target-globals.c (save_target_globals): For init_reg_sets and
26247         target_reinit remporarily set this_fn_optabs to this_target_optabs.
26249 2013-02-22  James Greenhalgh  <james.greenhalgh@arm.com>
26251         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
26252         * config/aarch64/t-aarch64
26253         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
26255 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
26257         PR inline-asm/56148
26258         * lra-constraints.c (process_alt_operands): Reload operand
26259         conflicting with earlier clobber only if no more other conflicting
26260         operands.
26262 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
26264         PR sanitizer/56393
26265         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
26266         if not linking a shared library.
26268 2013-02-22  Seth LaForge  <sethml@google.com>
26270         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
26272 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
26274         * config/arm/arm.md (split for extendsidi): Update condition.
26275         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
26276         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
26277         (qhs_zextenddi_cstr): Likewise.
26279 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
26281         PR middle-end/56420
26282         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
26283         avoid signed wrapping.
26284         (expand_mult): Handle properly multiplication by
26285         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
26286         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
26287         in the compiler if coeff is HOST_WIDE_INT_MIN.
26288         (expand_divmod): Don't make ext_op1 static, change it's type to
26289         uhwi.  Avoid undefined behavior in -INTVAL (op1).
26291         PR rtl-optimization/50339
26292         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
26293         field.
26294         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
26295         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
26296         into splitting_ashiftrt field.
26297         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
26298         ASHIFTRT.
26299         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
26300         choices.
26302 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
26304         PR middle-end/56108
26305         * trans-mem.c (execute_tm_mark): Do not expand transactions that
26306         are sure to go irrevocable.
26308 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
26310         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
26311         scalars are valid operands.
26313 2013-02-21  Martin Jambor  <mjambor@suse.cz>
26315         PR tree-optimization/56310
26316         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
26317         only matching indices and non-negative final offsets.
26318         (intersect_aggregates_with_edge): Pass src_idx to
26319         agg_replacements_to_vector.  Pass src_idx insstead of index to
26320         intersect_with_agg_replacements.
26322 2013-02-21  Martin Jambor  <mjambor@suse.cz>
26324         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
26325         instead of hard-wired defaults.
26327 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
26329         * doc/invoke.texi (MIPS Options): Update documentation of the
26330         floating-point multiply-accumulate instruction restrictions.
26332 2013-02-21  Kostya Serebryany  <kcc@google.com>
26334         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
26335         asan_shadow_offset on x86_64 linux.
26337 2013-02-21  Richard Biener  <rguenther@suse.de>
26339         PR tree-optimization/56415
26340         Revert
26341         2013-02-11  Richard Biener  <rguenther@suse.de>
26343         PR tree-optimization/56273
26344         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
26345         first VRP run.
26347 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
26349         PR bootstrap/56258
26350         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
26351         instead of @itemx.
26353         PR inline-asm/56405
26354         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
26355         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
26357 2013-02-20  Jan Hubicka  <jh@suse.cz>
26359         PR tree-optimization/56265
26360         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
26361         when target is referenced for first time.
26363 2013-02-20  Richard Biener  <rguenther@suse.de>
26365         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
26366         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
26367         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
26368         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
26369         not return anything.
26370         (rename_ssa_copies): Do not remove unused locals.
26371         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
26372         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
26373         * passes.c (execute_function_todo): Do not schedule unused locals
26374         removal if cleanup_tree_cfg did something.
26375         * tree-ssa-live.c (remove_unused_locals): Dump statistics
26376         about the number of removed locals.
26378 2013-02-20  Richard Biener  <rguenther@suse.de>
26380         PR tree-optimization/56398
26381         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
26383 2013-02-20  Martin Jambor  <mjambor@suse.cz>
26385         PR tree-optimization/55334
26386         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
26387         restricted pointers to arrays.
26389 2013-02-20  Richard Biener  <rguenther@suse.de>
26390             Jakub Jelinek  <jakub@redhat.com>
26392         PR tree-optimization/56396
26393         * tree-ssa-ccp.c (n_const_val): New static variable.
26394         (get_value): Return NULL for SSA names we don't have a lattice
26395         entry for.
26396         (ccp_initialize): Initialize n_const_val.
26397         * tree-ssa-copy.c (n_copy_of): New static variable.
26398         (init_copy_prop): Initialize n_copy_of.
26399         (get_value): Return NULL_TREE for SSA names we don't have a
26400         lattice entry for.
26402 2013-02-20  Martin Jambor  <mjambor@suse.cz>
26404         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
26406 2013-02-20  Richard Biener  <rguenther@suse.de>
26408         * genpreds.c (write_lookup_constraint): Do not compare first
26409         letter of the constraint again.
26411 2013-02-20  Richard Biener  <rguenther@suse.de>
26413         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
26414         and ceil_log2.
26415         (get_use_iv_cost): Terminate hashtable walk when coming across
26416         an empty entry.
26418 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
26420         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
26421         reassociation for avx2 targets.
26423 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
26425         * config/microblaze/microblaze.c: microblaze_has_clz = 0
26426         Add version check for v8.10.a to enable microblaze_has_clz
26427         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
26428         version and TARGET_PATTERN_COMPARE check
26429         * config/microblaze/microblaze.md: New clzsi2 instruction
26431 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
26433         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
26434         function before branching.
26436 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
26438         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
26439         DUMP_INSN_RTX_UID.
26440         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
26442 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
26444         PR middle-end/55889
26445         * sel-sched.c: Include ira.h.
26446         (implicit_clobber_conflict_p): New function.
26447         (moveup_expr): Use it.
26448         * Makefile.in (sel-sched.o): Depend on ira.h.
26450 2013-02-19  Richard Biener  <rguenther@suse.de>
26452         PR tree-optimization/56384
26453         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
26454         (vn_hash_type): Split out from ...
26455         (vn_hash_constant_with_type): ... here.
26456         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
26457         (vn_phi_eq): Compare types from vn_phi_s structure.
26458         (vn_phi_lookup): Populate vn_phi_s type.
26459         (vn_phi_insert): Likewise.
26461 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
26463         PR tree-optimization/56350
26464         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
26465         if haven't found reduction or nested cycle operand, rather than
26466         asserting we must find it.
26468         PR tree-optimization/56381
26469         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
26470         to fold_build3.
26472 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
26473             Jakub Jelinek  <jakub@redhat.com>
26475         PR target/52555
26476         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
26477         (swap_optab_enable): Same.
26478         (init_all_optabs): Use argument instead of global.
26479         * tree.h (struct tree_optimization_option): New field target_optabs.
26480         * expr.h (init_all_optabs): Add argument to prototype.
26481         (TREE_OPTIMIZATION_OPTABS): New.
26482         (save_optabs_if_changed): Protoize.
26483         * optabs.h: Declare this_fn_optabs.
26484         * optabs.c (save_optabs_if_changed): New.
26485         Declare this_fn_optabs.
26486         (init_optabs): Add argument to init_all_optabs() call.
26487         * function.c (invoke_set_current_function_hook): Handle per
26488         function optabs.
26489         * function.h (struct function): New field optabs.
26490         * config/mips/mips.c (mips_set_mips16_mode): Handle when
26491         optimization_current_node has changed.
26492         * target-globals.h (save_target_globals_default_opts): Protoize.
26493         * target-globals.c (save_target_globals_default_opts): New.
26495 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26497         PR target/56347
26498         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
26499         registers %fr12 and %fr12R as call used.
26501         PR target/56214
26502         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
26503         and HImode, require all displacements to be an integer multiple of
26504         their mode size.
26505         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
26506         only allow QImode and HImode when reload is in progress and strict is
26507         true.  Likewise for symbolic addresses.  Use base14_operand to check
26508         displacements in REG+BASE addresses.
26510 2013-02-18  Richard Biener  <rguenther@suse.de>
26512         PR tree-optimization/56366
26513         * tree-vect-loop.c (get_initial_def_for_induction): Properly
26514         handle sign-conversion of outer-loop initial induction value.
26516 2013-02-18  Richard Biener  <rguenther@suse.de>
26518         PR middle-end/56349
26519         * cfghooks.c (merge_blocks): If we merge a latch into another
26520         block adjust references to it.
26521         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
26522         (verify_loop_structure): Verify that a recorded latch is in fact
26523         a latch.
26525 2013-02-18  Richard Biener  <rguenther@suse.de>
26527         PR tree-optimization/56321
26528         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
26529         order SSA name release and virtual operand unlinking.
26531 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
26533         * config/microblaze/microblaze.md (save_stack_block): Define.
26534         (restore_stack_block): Likewise.
26536 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
26538         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
26539         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
26540         * config/microblaze/microblaze.c (microblaze_option_override):
26541         Bail out early for PIC modes when target does not support PIC.
26543 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
26545         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
26546         Replace with a microblaze version.
26547         (microblaze_trampoline_init): Adapt for microblaze.
26548         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
26549         microblaze.
26551 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
26552             Dodji Seketeli  <dodji@redhat.com>
26554         PR asan/56330
26555         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
26556         (instrument_mem_region_access): Do not forget to always put
26557         instrumentation of the of 'base' and 'base + len' in a "if (len !=
26558         0) statement, even for cases where either 'base' or 'base + len'
26559         are not instrumented -- because they have been previously
26560         instrumented.  Simplify the logic by putting all the statements
26561         instrument 'base + len' inside a sequence, and then insert that
26562         sequence right before the current insertion point.  Then, to
26563         instrument 'base + len', just get an iterator on that statement.
26564         And do not forget to update the pointer to iterator the function
26565         received as argument.
26567 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
26569         PR rtl-optimization/56348
26570         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
26572 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
26574         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
26575         (clean_graph_dump_file): Pass base to start_graph_dump.
26577 2013-02-14  Richard Henderson  <rth@redhat.com>
26579         PR target/55941
26580         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
26582 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
26584         * collect2-aix.h: Define F_LOADONLY.
26586 2013-02-14  Richard Biener  <rguenther@suse.de>
26588         PR lto/50494
26589         * varasm.c (output_constant_def_1): Get the decl representing
26590         the constant as argument.
26591         (output_constant_def): Wrap output_constant_def_1.
26592         (make_decl_rtl): Use output_constant_def_1 with the decl
26593         representing the constant.
26594         (build_constant_desc): Optionally re-use a decl already
26595         representing the constant.
26596         (tree_output_constant_def): Adjust.
26598 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
26600         Fix an asan crash
26601         * asan.c (instrument_builtin_call):  Really put the length of the
26602         second source argument into src1_len.
26604 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
26606         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
26607         argument.  If it is false, don't create edge from then_bb to
26608         fallthru_bb.
26609         (insert_if_then_before_iter): Pass true to it.
26610         (build_check_stmt): Pass false to it.
26611         (transform_statements): Flush hash table only on extended basic
26612         block boundaries, rather than at the beginning of every bb.
26613         Don't flush hash table on nonfreeing_call_p calls.
26614         * tree-flow.h (nonfreeing_call_p): New prototype.
26615         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
26617 2013-02-13  David S. Miller  <davem@davemloft.net>
26619         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
26621 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
26623         PR target/56184
26624         * ira.c (max_regno_before_ira): Move from ...
26625         (ira): ... here.
26626         (fix_reg_equiv_init): Use max_regno_before_ira instead of
26627         vec_safe_length.
26629 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
26631         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
26633 2013-02-13  Richard Biener  <rguenther@suse.de>
26635         PR lto/56295
26636         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
26637         globals in MEM_REFs.
26639 2013-02-13  Richard Biener  <rguenther@suse.de>
26641         * loop-init.c (loop_optimizer_init): Clear loop state when
26642         re-initializing preserved loops.
26643         * loop-unswitch.c (unswitch_single_loop): Return whether
26644         we unswitched the loop.  Do not verify loop state here.
26645         (unswitch_loops): When we unswitched a loop discover new loops.
26647 2013-02-13  Kostya Serebryany  <kcc@google.com>
26649         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
26650         on x86_64 linux.
26651         * sanitizer.def: Rename __asan_init to __asan_init_v1.
26653 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
26655         Avoid instrumenting duplicated memory access in the same basic block
26656         * Makefile.in (asan.o): Add new dependency on hash-table.h
26657         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
26658         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
26659         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
26660         (free_mem_ref_resources, has_mem_ref_been_instrumented)
26661         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
26662         (get_mem_ref_of_assignment): New functions.
26663         (get_mem_refs_of_builtin_call): Extract from
26664         instrument_builtin_call and tweak a little bit to make it fit with
26665         the new signature.
26666         (instrument_builtin_call): Use the new
26667         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
26668         of is_gimple_builtin_call.
26669         (instrument_derefs, instrument_mem_region_access): Insert the
26670         instrumented memory reference into the hash table.
26671         (maybe_instrument_assignment): Renamed instrument_assignment into
26672         this, and change it to advance the iterator when instrumentation
26673         actually happened and return true in that case.  This makes it
26674         homogeneous with maybe_instrument_assignment, and thus give a
26675         chance to callers to be more 'regular'.
26676         (transform_statements): Clear the memory reference hash table
26677         whenever we enter a new BB, when we cross a function call, or when
26678         we are done transforming statements.  Use
26679         maybe_instrument_assignment instead of instrumentation.  No more
26680         need to special case maybe_instrument_assignment and advance the
26681         iterator after calling it; it's now handled just like
26682         maybe_instrument_call.  Update comment.
26684 2013-02-13  Richard Biener  <rguenther@suse.de>
26686         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
26687         Fix loop discovery code.
26689 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
26691         PR inline-asm/56148
26692         * lra-constraints.c (process_alt_operands): Match early clobber
26693         operand with itself.  Check conflicts with earlyclobber only if
26694         the operand is not reloaded.  Prefer to reload conflicting operand
26695         if earlyclobber and matching operands are the same.
26697 2013-02-12  Richard Biener  <rguenther@suse.de>
26699         PR lto/56297
26700         * lto-streamer-out.c (write_symbol): Do not output symbols
26701         for hard register variables.
26703 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
26705         PR target/54222
26706         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
26707         (umulsidi3_insn, mulsidi3_insn): New insns.
26709 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
26711         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
26712         (struct tune_params): Add vec_costs field.
26713         * config/arm/arm.c (arm_builtin_vectorization_cost)
26714         (arm_add_stmt_cost): New functions.
26715         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
26716         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
26717         (arm_default_vec_cost): New struct of type cpu_vec_costs.
26718         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
26719         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
26720         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
26721         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
26723 2013-02-12  Richard Biener  <rguenther@suse.de>
26725         PR lto/56295
26726         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
26727         decls again if possible.
26729 2013-02-12  Richard Biener  <rguenther@suse.de>
26731         PR middle-end/56288
26732         * tree-ssa.c (verify_ssa_name): Fix check, move
26733         SSA_NAME_IN_FREE_LIST check up.
26735 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
26736             Steven Bosscher   <steven@gcc.gnu.org>
26738         PR rtl-optimization/56151
26739         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
26740         equal to op0 or op1, and last_insn pattern is CODE operation
26741         with MEM dest and one of the operands matches that MEM.
26743 2013-02-11  Sriraman Tallam  <tmsriram@google.com>
26745         * doc/extend.texi: Document Function Multiversioning and "default"
26746         parameter string to target attribute.
26747         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
26748         target attribute parameter is "default".
26749         (ix86_compare_version_priority): Remove checks for target attribute.
26750         (ix86_mangle_function_version_assembler_name): Change error to sorry.
26751         Remove check for target attribute equal to NULL. Add assert.
26752         (ix86_generate_version_dispatcher_body): Change error to sorry.
26754 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
26755             Jack Howarth  <howarth@bromo.med.uc.edu>
26756             Patrick Marlier  <patrick.marlier@gmail.com>
26758         PR libitm/55693
26759         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
26760         define ENDFILE_SPEC as TM_DESTRUCTOR.
26761         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
26763 2013-02-11  Alexander Potapenko  <glider@google.com>
26764             Jack Howarth  <howarth@bromo.med.uc.edu>
26765             Jakub Jelinek  <jakub@redhat.com>
26767         PR sanitizer/55617
26768         * config/darwin.c (cdtor_record): Rename ctor_record.
26769         (sort_cdtor_records): Rename sort_ctor_records.
26770         (finalize_dtors): New routine to sort destructors by
26771         priority before use in assemble_integer.
26772         (machopic_asm_out_destructor): Use finalize_dtors if needed.
26774 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
26776         PR rtl-optimization/56275
26777         * simplify-rtx.c (avoid_constant_pool_reference): Check that
26778         offset is non-negative and less than cmode size before
26779         calling simplify_subreg.
26781 2013-02-11  Richard Biener  <rguenther@suse.de>
26783         PR tree-optimization/56264
26784         * cfgloop.h (fix_loop_structure): Adjust prototype.
26785         * loop-init.c (fix_loop_structure): Return the number of
26786         newly discovered loops.
26787         * tree-cfgcleanup.c (repair_loop_structures): When new loops
26788         are discovered, do a full loop-closed SSA rewrite.
26790 2013-02-11  Richard Biener  <rguenther@suse.de>
26792         PR tree-optimization/56273
26793         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
26794         first VRP run.
26795         (check_array_ref): Fix missing newline in dumps.
26796         (search_for_addr_array): Likewise.
26798 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
26800         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
26802 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
26804         PR target/56256
26805         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
26807 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
26809         PR rtl-optimization/56246
26810         * lra-constraints.c (simplify_operand_subreg): Try to reuse
26811         reload pseudo.
26812         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
26813         constraints are satisfied.
26815 2013-02-08  Jeff Law  <law@redhat.com>
26817         PR debug/53948
26818         * emit-rtl.c (reg_is_parm_p): New function.
26819         * regs.h (reg_is_parm_p): New prototype.
26820         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
26821         callee-clobbered registers.
26823 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
26825         PR target/56043
26826         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
26827         If there is no implicit builtin declaration, just return NULL.
26829 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
26831         * config/i386/sse.md (FMAMODEM): New mode iterator.
26832         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
26833         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
26835 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
26837         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
26838         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
26839         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
26841 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
26843         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
26844         (microblaze*-*-elf): Likewise.
26845         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
26846         LINK_SPEC.
26847         * config/microblaze/microblaze-c.c: Add builtin defines for
26848         _LITTLE_ENDIAN and _BIG_ENDIAN.
26849         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
26850         add to TARGET_DEFAULT flags.
26851         Expand ASM_SPEC and LINK_SPEC.
26852         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
26853         * config/microblaze/microblaze.md: Update extendsidi2 and
26854         movdi_internal instructions to use low-order / high-order reg
26855         print_operands.
26856         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
26857         options and inversemask / mask of LITTLE_ENDIAN.
26858         * config/microblaze/t-microblaze: Expand multilib options to
26859         include mlittle-endian (le) and update exceptions patterns.
26861 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
26863         PR rtl-optimization/56195
26864         * lra-constraints.c (get_reload_reg): Don't reuse regs
26865         if they have smaller mode than requested, if they have
26866         wider mode than requested, try to return a SUBREG.
26868         PR tree-optimization/56250
26869         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
26870         if type is unsigned and code isn't MULT_EXPR.
26872 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
26874         PR tree-optimization/56064
26875         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
26876         bits according to mode.
26877         * fixed-value.h (fixed_from_double_int)
26878         (const_fixed_from_double_int): Adjust comments.
26880 2013-02-08  Richard Biener  <rguenther@suse.de>
26882         PR lto/56231
26883         * lto-streamer.h (struct data_in): Remove current_file, current_line
26884         and current_col members.
26885         * lto-streamer-out.c (lto_output_location): Stream changed bits
26886         en-block for efficiency.
26887         * lto-streamer-in.c (clear_line_info): Remove.
26888         (lto_input_location): Cache current file, line and column
26889         globally via local statics.  Read changed bits en-block.
26890         (input_function): Do not call clear_line_info.
26891         (lto_read_body): Likewise.
26892         (lto_input_toplevel_asms): Likewise.
26894 2013-02-08  Michael Matz  <matz@suse.de>
26896         PR tree-optimization/52448
26897         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
26898         (nt_call_phase): New static.
26899         (add_or_mark_expr): Only mark accesses with newer phase than any
26900         call seen.
26901         (nonfreeing_call_p): New.
26902         (nt_init_block): Update nt_call_phase, mark blocks as visited.
26903         (nt_fini_block): Keep blocks marked as visited.
26904         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
26906 2013-02-08  Richard Biener  <rguenther@suse.de>
26908         * ira.c (ira): Free broken dominator information.
26910 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
26912         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
26914 2013-02-08  Marek Polacek  <polacek@redhat.com>
26916         * cfgloop.c (verify_loop_structure): Add more checking of headers.
26918 2013-02-08  Richard Biener  <rguenther@suse.de>
26920         PR middle-end/56181
26921         * cfgloop.h (flow_loops_find): Adjust.
26922         (bb_loop_header_p): Declare.
26923         * cfgloop.c (bb_loop_header_p): New function split out from ...
26924         (flow_loops_find): ... here.  Adjust function signature,
26925         support incremental loop structure update.
26926         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
26927         * cfgloopmanip.c (fix_loop_structure): Move ...
26928         * loop-init.c (fix_loop_structure): ... here.
26929         (apply_loop_flags): Split out from ...
26930         (loop_optimizer_init): ... here.
26931         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
26932         in incremental mode, only remove dead loops here.
26934 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
26936         PR target/54222
26937         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
26938         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
26939         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
26940         (*round<mode>3.libgcc): New insns for fixed-modes.
26941         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
26942         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
26943         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
26944         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
26945         implementations.  Define to __builtin_avr_absFX,
26946         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
26947         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
26948         __builtin_avr_countlsFX, respectively.
26949         * config/avr/avr-c.c (target.h): Include it.
26950         (enum avr_builtin_id): New enum.
26951         (avr_resolve_overloaded_builtin): New static function.
26952         (avr_register_target_pragmas): Use it to set
26953         targetm.resolve_overloaded_builtin.
26954         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
26955         tree nodes used by DEF_BUILTIN.
26956         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
26957         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
26958         <AVR_BUILTIN_xxBITS>: Same.
26960 2013-02-08  Richard Biener  <rguenther@suse.de>
26962         * cfgloop.c (verify_loop_structure): Properly handle
26963         a loop exiting to another loop header.
26964         * ira-int.h (ira_loops): Remove.
26965         * ira.c (ira_loops): Remove.
26966         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
26967         (do_reload): Use loop_optimizer_finalize.
26968         * ira-build.c (create_loop_tree_nodes): Use get_loops and
26969         number_of_loops to access the loop tree.
26970         (more_one_region_p): Likewise.
26971         (finish_loop_tree_nodes): Likewise.
26972         (rebuild_regno_allocno_maps): Likewise.
26973         (mark_loops_for_removal): Likewise.
26974         (mark_all_loops_for_removal): Likewise.
26975         (remove_unnecessary_regions): Likewise.
26976         (ira_build): Likewise.
26977         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
26979 2013-02-08  Richard Biener  <rguenther@suse.de>
26981         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
26982         * ipa-pure-const.c (analyze_function): Avoid calling
26983         mark_irreducible_loops twice.
26984         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
26986 2013-02-07  David S. Miller  <davem@davemloft.net>
26988         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
26989         on 'reg'.
26990         * var-tracking.c (vt_add_function_parameter): Test the presence of
26991         HAVE_window_save properly and do not remap argument registers when
26992         we have a leaf function.
26994 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
26996         PR bootstrap/56227
26997         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
26998         instead of "ll".
26999         * config/i386/i386.c (ix86_print_operand): Ditto.
27001 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
27003         * lra-constraints.c (process_alt_operands): Fix recently added comment.
27005 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
27007         PR rtl-optimization/56225
27008         * lra-constraints.c (process_alt_operands): Check that reload hard
27009         reg can hold value for strict_low_part.
27011 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
27013         PR debug/56154
27014         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
27015         dwarf2out_end_function.
27016         (in_first_function_p, maybe_at_text_label_p,
27017         first_loclabel_num_not_at_text_label): New variables.
27018         (dwarf2out_var_location): In the first function find out
27019         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
27020         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
27021         functions.
27023 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
27025         PR rtl-optimization/56178
27026         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
27027         SUBREG of a register.  Tidy up related block of code.
27028         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
27029         note if the source is a register or a SUBREG of a register.
27031 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
27033         PR target/56228
27034         * config/rs6000/rs6000.md (ptrm): New mode attr.
27035         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
27036         call_value_indirect_aix<pttrsize>,
27037         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
27038         m in constraints.
27040 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
27042         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
27043         if -bnortl. Convert to strcmp and strncmp.
27045 2013-02-07  Alan Modra  <amodra@gmail.com>
27047         PR target/54009
27048         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
27049         addresses won't wrap when offsetting.
27050         (rs6000_secondary_reload): Provide secondary reloads needed for
27051         wrapping LO_SUM addresses.
27053 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
27055         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
27056         MACH, just __MACH__.
27058 2013-02-06  Richard Biener  <rguenther@suse.de>
27060         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
27061         instead of calling fix_loop_structure.
27063 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
27065         PR middle-end/56217
27066         * omp-low.c (use_pointer_for_field): Return false if
27067         lower_send_shared_vars doesn't generate any copy-out code.
27069 2013-02-06  Tom de Vries  <tom@codesourcery.com>
27071         PR rtl-optimization/56131
27072         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
27073         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
27074         of the label is NULL.  Add comment.
27076 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
27078         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
27080         PR sanitizer/55374
27081         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
27082         (STATIC_LIBTSAN_LIBS): Likewise.
27083         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
27084         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
27085         is defined, don't add anything else beyond that.
27086         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
27087         (LINK_COMMAND_SPEC): Use them.
27089         PR tree-optimization/56205
27090         * tree-stdarg.c (check_all_va_list_escapes): Return true if
27091         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
27092         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
27094 2013-02-05  Richard Biener  <rguenther@suse.de>
27096         PR tree-optimization/53342
27097         PR tree-optimization/53185
27098         * tree-vectorizer.h (vect_check_strided_load): Remove.
27099         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
27100         not disallow peeling for vectorized strided loads.
27101         (vect_check_strided_load): Make static and simplify.
27102         (vect_analyze_data_refs): Adjust.
27103         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
27104         correctly when vectorizing strided loads.
27106 2013-02-05  Richard Biener  <rguenther@suse.de>
27108         * doc/install.texi: Refer to ISL, not PPL.
27110 2013-02-05  Jan Hubicka  <jh@suse.cz>
27112         PR tree-optimization/55789
27113         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
27115 2013-02-05  Jan Hubicka  <jh@suse.cz>
27117         PR tree-optimization/55789
27118         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
27119         the dead call anyway.
27121 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
27123         PR sanitizer/55374
27124         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
27126 2013-02-04  Alexander Potapenko  <glider@google.com>
27127             Jack Howarth  <howarth@bromo.med.uc.edu>
27128             Jakub Jelinek  <jakub@redhat.com>
27130         PR sanitizer/55617
27131         * config/darwin.c (sort_ctor_records): Stabilized qsort
27132         on constructor priority by using original position.
27133         (finalize_ctors): New routine to sort constructors by
27134         priority before use in assemble_integer.
27135         (machopic_asm_out_constructor): Use finalize_ctors if needed.
27137 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
27139         PR libstdc++/54314
27140         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
27141         about visibility on artificial decls.
27142         * config/sol2.c (solaris_assemble_visibility): Likewise.
27144 2013-02-04  Kai Tietz  <ktietz@redhat.com>
27146         PR target/56186
27147         * config/i386/i386.c (function_value_ms_64): Add additional valtype
27148         argument and improve checking of return-argument types for 16-byte
27149         modes.
27150         (ix86_function_value_1): Add additional valtype argument on call
27151         of function_value_64.
27152         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
27153         handling infunction_value_64 function.
27155 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
27157         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
27159 2013-02-04  Richard Biener  <rguenther@suse.de>
27161         PR tree-optimization/56188
27162         * tree-ssa-structalias.c (label_visit): Consider case with
27163         initially non-empty points-to set.
27164         (perform_var_substitution): Dump node mapping and clean up.
27166 2013-02-04  Richard Guenther  <rguenther@suse.de>
27168         PR lto/56168
27169         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
27170         node prevail as last resort.
27171         (lto_symtab_merge_decls): Remove guard on LTRANS here.
27172         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
27174 2013-02-04  Richard Biener  <rguenther@suse.de>
27176         PR tree-optimization/56113
27177         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
27178         Merge into ...
27179         (equiv_class_lookup_or_add): ... this.
27180         (label_visit): Adjust and fix error in previous patch.
27181         (perform_var_substitution): Adjust.
27183 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
27185         * config/sh/divtab.c: Fix formatting and comments throughout the file.
27186         * config/sh/sh4-300.md: Likewise.
27187         * config/sh/sh4a.md: Likewise.
27188         * config/sh/constraints.md: Likewise.
27189         * config/sh/sh.md: Likewise.
27190         * config/sh/netbsd-elf.h: Likewise.
27191         * config/sh/predicates.md: Likewise.
27192         * config/sh/sh-protos.h: Likewise.
27193         * config/sh/ushmedia.h: Likewise.
27194         * config/sh/linux.h: Likewise.
27195         * config/sh/sh.c: Likewise.
27196         * config/sh/superh.h: Likewise.
27197         * config/sh/elf.h: Likewise.
27198         * config/sh/sh4.md: Likewise.
27199         * config/sh/sh.h: Likewise.
27201 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27203         * config/pa/constraints.md: Adjust unused letters.  Change "T"
27204         constraint to match_test floating_point_store_memory_operand().
27205         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
27206         (base14_operand): New.
27207         (floating_point_store_memory_operand): New.
27208         (integer_store_memory_operand): Revise to use base14_operand and
27209         reg_plus_base_memory_operand.
27210         (move_dest_operand): Allow symbolic_memory_operands.
27211         (symbolic_memory_operand): Check for LO_SOM.
27212         (symbolic_operand): Change default case to break.
27213         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
27214         CONST_DOUBLE values to be reloaded by putting them into memory when
27215         the destination is a floating point register.
27216         (movdf): Remove code to handle CONST_DOUBLE.
27217         (movsf): Likewise.
27218         (reload_indf_r1): New.
27219         (reload_insf_r1): New.
27220         Consistently use "Q" and "T" constraints with integer and floating
27221         point move instructions, respectively.
27222         (movdi): Remove FAIL.
27223         Change predicate for source operand unamed DImode move from
27224         general_operand to move_src_operand.
27225         (umulsidi3): Change predicate for destination operand to
27226         register_operand.
27227         Likewise for similar unamed patterns.
27228         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
27229         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
27230         (hppa_legitimize_address): Simplify mask calculation.
27231         (pa_emit_move_sequence): Revised handling of secondary reloads from
27232         REG+D addresses for floating point loads and stores.  Directly handle
27233         loading CONST0_RTX (mode) to a floating point register.
27234         (pa_secondary_reload): Handle reloading DF and SFmode constant values
27235         to floating point registers.  Don't restrict secondary reloads to
27236         floating point registers to integer modes.  Revise some comments and
27237         cleanup some code.
27238         (TARGET_LEGITIMATE_ADDRESS_P): Define.
27239         (pa_legitimate_address_p): New.
27240         (pa_legitimize_reload_address): New.
27241         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
27242         (STRICT_REG_OK_FOR_BASE_P): New.
27243         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
27244         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
27246 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
27247             Andrew Dixie  <andrewd@gentrack.com>
27249         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
27250         flag set.
27252 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
27254         * expmed.c (extract_bit_field_1): Pass the full width of the
27255         structure to get_best_reg_extraction_insn.
27257 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
27259         PR target/54601
27260         * configure.ac (use_cxa_atexit): Add AIX.
27261         * configure: Regenerate.
27263         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
27265 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
27267         PR debug/54793
27268         * final.c (need_profile_function): New variable.
27269         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
27270         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
27271         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
27272         notes, targetm.asm_out.function_prologue doesn't emit anything,
27273         HAVE_prologue and profiler should be emitted before prologue,
27274         set need_profile_function instead of emitting it.
27275         (final_scan_insn): If need_profile_function, emit
27276         profile_function on the first NOTE_INSN_BASIC_BLOCK or
27277         NOTE_INSN_FUNCTION_BEG note.
27279 2013-02-01  Richard Henderson  <rth@redhat.com>
27281         * config/rs6000/rs6000.md (smulditi3): New.
27282         (umulditi3): New.
27284         * config/alpha/alpha.md (umulditi3): New.
27286 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
27288         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
27289         (ASM_OUTPUT_ALIGNED_LOCAL): New.
27291 2013-02-01  Richard Biener  <rguenther@suse.de>
27293         PR tree-optimization/56113
27294         * tree-ssa-structalias.c (label_visit): Reduce work for
27295         single-predecessor nodes.
27297 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
27299         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
27300         range isn't testing for zero.
27302 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
27304         PR middle-end/56113
27305         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
27307 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
27308             Nick Clifton  <nickc@redhat.com>
27310         * config/v850/constraints.md (Q): Define as a memory constraint.
27311         * config/v850/predicates.md (label_ref_operand): New predicate.
27312         (e3v5_shift_operand): New predicate.
27313         (ior_operator): New predicate.
27314         * config/v850/t-v850: Add e3v5 multilib.
27315         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
27316         (v850_gen_movdi): Prototype.
27317         * config/v850/v850.c: Add support for e3v5 architecture.
27318         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
27319         TARGET_V850E_UP.
27320         (construct_save_jarl): Add e3v5 long JARL support.
27321         (v850_adjust_insn_length): New function.  Adjust length of call
27322         insns when using e3v5 instructions.
27323         (v850_gen_movdi): New function: Generate instructions to move a
27324         DImode value.
27325         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
27326         (CPP_SPEC): Define __v850e3v5__ as appropriate.
27327         (TARGET_USE_FPU): Enable for e3v5.
27328         (CONST_OK_FOR_W): New macro.
27329         (ADJUST_INSN_LENGTH): Define.
27330         * config/v850/v850.md (UNSPEC_LOOP): Define.
27331         (attr cpu): Add v850e3v5.
27332         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
27333         (movdi): New pattern.
27334         (movdi_internal): New pattern.
27335         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
27336         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
27337         (cstoresf4): Likewise.
27338         (cstoredf4): Likewise.
27339         (insv): New pattern.
27340         (rotlso3_a): New pattern.
27341         (rotlsi3_b): New pattern
27342         (rotlsi3_v850e3v5): New pattern.
27343         (doloop_begin): New pattern.
27344         (fix_loop_counter): New pattern.
27345         (doloop_end): New pattern.
27346         (branch_normal): Add e3v5 long branch support.
27347         (branch_invert): Likewise.
27348         (branch_z_normal): Likewise.
27349         (branch_z_invert): Likewise.
27350         (branch_nz_normal): Likewise.
27351         (branch_nz_invert): Likewise.
27352         (call_internal_short): Add e3v5 register-indirect JARL support.
27353         (call_internal_long): Likewise.
27354         (call_value_internal_short): Likewise.
27355         (call_value_internal_long): Likewise.
27356         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
27357         (mloop): New option.
27358         * config.gcc: Add support for configuring v840e3v5 target.
27359         * doc/invoke.texi: Document new v850 specific command line options.
27361 2013-01-31  Paul Koning  <ni1d@arrl.net>
27363         PR debug/55059
27364         PR debug/54508
27365         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
27366         children if parent is a class.
27367         (prune_unused_types_prune): Don't add DW_AT_declaration.
27369 2013-01-31  Richard Biener  <rguenther@suse.de>
27371         PR tree-optimization/56157
27372         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
27373         match up operand with SLP child.
27375 2013-01-31  Jason Merrill  <jason@redhat.com>
27377         PR debug/54410
27378         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
27379         parameters the first time.
27380         (gen_scheduled_generic_parms_dies): Check completeness here.
27382 2013-01-31  Richard Biener  <rguenther@suse.de>
27384         PR middle-end/53073
27385         * common.opt (faggressive-loop-optimizations): New flag,
27386         enabled by default.
27387         * doc/invoke.texi (faggressive-loop-optimizations): Document.
27388         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
27389         infer_loop_bounds_from_undefined by it.
27391 2013-01-31  Richard Biener  <rguenther@suse.de>
27393         PR tree-optimization/56150
27394         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
27395         visit virtual operands.
27396         (find_uses_to_rename_bb): Likewise.
27398 2013-01-31  Richard Biener  <rguenther@suse.de>
27400         PR tree-optimization/56150
27401         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
27402         mixed store non-store stmts.
27404 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
27406         PR sanitizer/55374
27407         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
27408         LIBASAN_EARLY_SPEC is defined.
27409         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
27410         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
27411         before %o.
27412         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
27414         PR c++/55742
27415         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
27416         invalid args instead of ICEing on it.
27417         (ix86_valid_target_attribute_tree): Return error_mark_node if
27418         ix86_valid_target_attribute_inner_p failed.
27419         (ix86_valid_target_attribute_p): Return false only if
27420         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
27421         target("default") attribute.
27422         (sorted_attr_string): Change argument from const char * to tree,
27423         merge in all target attribute arguments rather than just one.
27424         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
27425         instead of free.  Avoid using strcat.
27426         (ix86_mangle_function_version_assembler_name): Mangle
27427         target("default") as if no target attribute is present.  Adjust
27428         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
27429         instead of xmalloc and XDELETEVEC instead of free.
27430         (ix86_function_versions): Don't return true if one of the decls
27431         doesn't have target attribute.  If they don't and one of the decls
27432         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
27433         sorted_attr_string caller.  Use XDELETEVEC instead of free.
27434         (ix86_supports_function_versions): Remove.
27435         (make_name): Fix up formatting.
27436         (make_dispatcher_decl): Remove resolver_name and its initialization.
27437         Avoid leaking memory.
27438         (is_function_default_version): Return true if there is
27439         target("default") attribute rather than no target attribute at all.
27440         (make_resolver_func): Avoid leaking memory.
27441         (ix86_generate_version_dispatcher_body): Likewise.
27442         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
27443         * target.def (supports_function_versions): Remove.
27444         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
27445         * doc/tm.texi: Regenerated.
27447 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
27449         PR rtl-optimization/56144
27450         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
27451         for values with side effects.
27453 2013-01-30  Richard Biener  <rguenther@suse.de>
27455         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
27456         (sparseset_pop): Likewise.
27457         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
27458         to be able to use quick_push in the worker loop.
27460 2013-01-30  Marek Polacek  <polacek@redhat.com>
27462         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
27464 2013-01-30  Richard Biener  <rguenther@suse.de>
27466         PR lto/56147
27467         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
27469 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
27471         PR tree-optimization/56064
27472         * fixed-value.c (fixed_from_double_int): New function.
27473         * fixed-value.h (fixed_from_double_int): New prototype.
27474         (const_fixed_from_double_int): New static inline function.
27475         * fold-const.c (native_interpret_fixed): New static function.
27476         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
27477         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
27478         (native_encode_fixed): New static function.
27479         (native_encode_expr) <FIXED_CST>: Use it.
27480         (native_interpret_int): Move double_int worker code to...
27481         * double-int.c (double_int::from_buffer): ...this new static method.
27482         * double-int.h (double_int::from_buffer): Prototype it.
27484 2013-01-30  Richard Biener  <rguenther@suse.de>
27486         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
27487         New pointer-map and obstack.
27488         (init_alias_vars): Allocate pointer-map and obstack.
27489         (delete_points_to_sets): Free them.
27490         (find_what_var_points_to): Cache result.
27491         (find_what_p_points_to): Adjust for changed interface of
27492         find_what_var_points_to.
27493         (compute_points_to_sets): Likewise.
27494         (ipa_pta_execute): Likewise.
27496 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27498         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
27499         * configure: Regenerate.
27500         * config.in: Regenerate.
27501         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
27502         #nobits/#progbits if supported.
27504 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
27506         PR target/56121
27507         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
27508         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
27509         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
27511 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
27513         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
27514         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
27516 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
27518         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
27519         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
27521 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
27523         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
27524         declaration.
27525         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
27526         * config/arm/cortex-a7.md: New bypasses using
27527         arm_mac_accumulator_is_result.
27529 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
27531         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
27532         (cortex_a7_neon_mla): Likewise.
27533         (cortex_a7_fpfmad): New reservation.
27534         (cortex_a7_fpmacs): Use ffmas and update required units.
27535         (cortex_a7_fpmuld): Update required units and latency.
27536         (cortex_a7_fpmacd): Likewise.
27537         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
27538         (cortex_a7_neon). Likewise.
27539         (bypass) Update participating units.
27541 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
27543         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
27544         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
27545         from fmac to ffma.
27546         * config/arm/vfp11.md (vfp_farith): Use ffmas.
27547         (vfp_fmul): Use ffmad.
27548         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
27549         (cortex_r4_fmacd): Use ffmad.
27550         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
27551         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
27552         (cortex_a9_fmacd): Use ffmad.
27553         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
27554         (cortex_a8_vfp_macd): Use ffmad.
27555         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
27556         (cortex_a5_fpmacd): Use ffmad.
27557         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
27558         (cortex_a15_vfp_macd): Use ffmad.
27559         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
27561 2013-01-29  Jason Merrill  <jason@redhat.com>
27563         PR libstdc++/54314
27564         * varasm.c (default_assemble_visibility): Don't warn about
27565         visibility on artificial decls.
27567 2013-01-29  Richard Biener  <rguenther@suse.de>
27569         PR tree-optimization/56113
27570         * tree-ssa-structalias.c (equiv_class_lookup): Also return
27571         the bitmap leader.
27572         (label_visit): Free duplicate bitmaps and record the leader instead.
27573         (perform_var_substitution): Adjust.
27575 2013-01-29  Richard Biener  <rguenther@suse.de>
27577         PR tree-optimization/55270
27578         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
27579         the CFG, schedule loops for fixup.
27581 2013-01-29  Nick Clifton  <nickc@redhat.com>
27583         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
27584         SP_REG.
27586 2013-01-28  Leif Ekblad  <leif@rdos.net>
27588         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
27589         * config/i386/i386.h (TARGET_RDOS): New macro.
27590         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
27591         * config/i386/i386.c (ix86_option_override_internal): For 64bit
27592         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
27593         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
27594         DEFAULT_LARGE_SECTION_THRESHOLD.
27595         * config/i386/i386.md (R14_REG, R15_REG): New constants.
27596         * config/i386/rdos.h: New file.
27597         * config/i386/rdos64.h: New file.
27599 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
27601         PR other/54814
27602         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
27603         TEST_HARD_REG_BIT.
27605 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
27607         PR rtl-optimization/56117
27608         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
27609         call cselib_lookup_from_insn on the MEM before calling
27610         add_insn_mem_dependence.
27612 2013-01-28  Richard Biener  <rguenther@suse.de>
27614         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
27615         to a stmt that didn't have one.
27616         (copy_phis_for_bb): Likewise for PHI arguments.
27617         (copy_debug_stmt): Likewise for debug stmts.
27619 2013-01-28  Richard Biener  <rguenther@suse.de>
27621         PR tree-optimization/56034
27622         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
27623         (partition_builtin_p): Adjust.
27624         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
27625         it is the last partition.
27626         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
27627         up the vertex for the definition.
27628         (classify_partition): Classify whether a partition is a
27629         PKIND_REDUCTION, thus has uses outside of the loop.
27630         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
27631         Merge all PKIND_REDUCTION partitions into the last partition.
27632         (tree_loop_distribution): Seed partitions from reductions as well.
27634 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
27636         PR tree-optimization/56125
27637         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
27638         pow(x,c) into sqrt(x) * powi(x, n/2) or
27639         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
27640         optimizing for size.
27641         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
27642         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
27643         integer.
27645         PR tree-optimization/56094
27646         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
27647         to UNKNOWN_LOCATION while gimplifying expr.
27649 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
27651         PR target/56114
27652         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
27653         operand 0 in movabs insn template for -masm=intel asm alternative.
27654         (*movabs<mode>_2): Ditto for operand 1.
27656 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
27658         PR target/54663
27659         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
27660         of microblaze-c.o
27662 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
27664         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
27665         tm_file.
27667 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
27669         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
27670         Undef to avoid warning.
27672 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
27674         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
27675         * configure: Regenerate.
27677 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
27679         PR tree-optimization/56098
27680         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
27681         for stmts with volatile ops.
27682         (cond_store_replacement): Don't optimize if assign has volatile ops.
27683         (cond_if_else_store_replacement_1): Don't optimize if either
27684         then_assign or else_assign have volatile ops.
27685         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
27686         volatile ops.
27688 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
27690         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
27692 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
27694         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
27695         missing ':' in asm example.
27697 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
27699         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
27700         entries into lane and laneq entries.
27701         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
27702         Remove AdvSIMD scalar modes.
27703         (aarch64_sq<r>dmulh_laneq<mode>): New.
27704         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
27705         modes.
27706         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
27707         builtin implementations to relfect changes in RTL in aarch64-simd.md.
27708         * config/aarch64/iterators.md (VCOND): New.
27709         (VCONQ): New.
27711 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
27713         PR target/54222
27714         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
27715         Add NULL LIBNAME argument to existing definitions.
27716         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
27717         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
27718         * config/avr/avr.c (DEF_BUILTIN): Same.
27719         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
27720         (avr_expand_builtin): Expand to a vanilla call if a libgcc
27721         implementation is available (DECL_ASSEMBLER_NAME is set).
27722         (avr_fold_absfx): New static function.
27723         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
27724         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
27725         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
27726         AVR_BUILTIN_ABSLLK.
27727         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
27728         (abshk, absk, abslk, absllk): Provide as static inline functions.
27730 2013-01-25  Marek Polacek  <polacek@redhat.com>
27732         PR tree-optimization/56035
27733         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
27735 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
27737         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
27738         (*movtf_internal_rex64): Add (!o,C) alternative
27739         (*movxf_internal_rex64): Ditto.
27740         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
27742 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
27744         * doc/invoke.texi: fix typo.
27745         * doc/objc.texi: fix typo.
27747 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
27749         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
27750         for the first two alternatives.
27752 2013-01-24  Diego Novillo  <dnovillo@google.com>
27754         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
27755         (ggc-zone.o): Remove.
27756         * configure.ac: Remove option --with-gc.
27757         * configure: Re-generate.
27758         * doc/install.texi: Remove documentation for --with-gc.
27759         * gengtype.c (write_enum_defn): Remove.  Update all users.
27760         (write_Types_process_field): Remove generation of gt_e_* argument.
27761         (output_type_enum): Remove.  Update all users.
27762         (write_enum_defn): Remove.  Update all users.
27763         (enum alloc_zone): Remove.  Update all users.
27764         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
27765         * ggc-common.c (ggc_splay_alloc): Remove first argument.
27766         Update all callers.
27767         (struct ptr_data): Remove field TYPE.  Update all users.
27768         (gt_pch_note_object): Remove argument TYPE.  Update all users.
27769         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
27770         Update all users.
27771         * ggc-none.c (ggc_alloc_typed_stat): Remove.
27772         (struct alloc_zone): Remove.
27773         (ggc_internal_alloc_zone_stat): Remove.
27774         (ggc_internal_cleared_alloc_zone_stat): Remove.
27775         * ggc-page.c (ggc_alloc_typed_stat): Remove.
27776         (ggc_pch_count_object): Remove last argument.  Update all users.
27777         (ggc_pch_alloc_object): Remove last argument.  Update all users.
27778         (struct alloc_zone): Remove.
27779         * ggc-zone.c: Remove.
27780         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
27781         (struct alloc_zone): Remove.
27782         (ggc_alloc_typed_stat): Remove.
27783         (ggc_alloc_typed): Remove.
27784         (ggc_splay_alloc): Remove first argument.
27785         (rtl_zone): Remove.  Update all users.
27786         (tree_zone): Remove.  Update all users.
27787         (tree_id_zone): Remove.  Update all users.
27788         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
27789         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
27790         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
27791         * tree-ssanames.c: Remove references to zone allocator in comments.
27793 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
27795         * config/avr/avr.c (avr_out_fract): Make register numbers that
27796         might be outside of source operand signed.
27798 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
27800         * config/i386/constraints.md (Yf): New constraint.
27801         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
27802         of f constraint to conditionaly disable x87 register preferences.
27803         (*movdf_internal): Ditto.
27804         (*movsf_internal): Ditto.
27806 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
27808         PR inline-asm/55934
27809         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
27810         that have operands with impossible constraints.
27811         Add a FIXME for a speed-up opportunity.
27812         * lra-constraints.c (process_alt_operands): Verify that a class
27813         selected from constraints on asms is valid for the operand mode.
27814         (curr_insn_transform): Remove incorrect comment.
27816 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
27818         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
27819         TOC operand is a valid symbol ref in the constant pool.
27821 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
27823         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
27825 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
27827         PR target/54222
27828         * config/avr/stdfix.h: New file.
27829         * t-avr (stdfix-gcc.h): New rule to build it.
27830         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
27832 2013-01-23  Kostya Serebryany  <kcc@google.com>
27834         * config/darwin.h: remove dependency on
27835         CoreFoundation (asan on Mac OS).
27837 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
27839         PR target/49069
27840         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
27841         instead of cmpdi_operand for first comparison operand.
27842         Don't assert that comparison operands aren't both constants.
27844 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
27846         * doc/install.texi (Downloading the Source): Update references to
27847         downloading separate components.
27849 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
27851         * doc/extend.texi (__int128): Improve grammar.
27853 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
27855         PR target/56028
27856         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
27857         alternative to (o,r).
27858         (*movdi_internal_rex64): Remove (!o,n) alternative.
27859         (DImode immediate->memory splitter): Remove.
27860         (DImode immediate->memory peephole2): Remove.
27861         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
27862         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
27863         alternative to (!o,*r).
27864         (*movtf_internal_sse): New pattern.
27865         (*movxf_internal_rex64): New pattern.
27866         (*movxf_internal): Disable for TARGET_64BIT.
27867         (*movdf_internal_rex64): Remove (!o,F) alternative.
27869 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
27871         PR middle-end/56074
27872         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
27873         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
27874         * tree-vect-loop-manip.c (find_loop_location): Also ignore
27875         stmt locations where LOCATION_LOCUS of the stmt location is
27876         UNKNOWN_LOCATION or BUILTINS_LOCATION.
27878         PR target/55686
27879         * config/i386/i386.md (UNSPEC_STOS): New.
27880         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
27881         *strsetqi_1): Add UNSPEC_STOS.
27883 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
27885         PR c++/56067
27886         * doc/invoke.texi: Remove left over -Wsynth example.
27888 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
27890         PR tree-optimization/56051
27891         * fold-const.c (fold_binary_loc): Don't fold
27892         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
27893         a narrowing conversion, or widening conversion from signed
27894         to unsigned.
27896 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
27898         PR rtl-optimization/56023
27899         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
27900         dependent on debug instruction.
27902 2013-01-21  Martin Jambor  <mjambor@suse.cz>
27904         PR middle-end/56022
27905         * function.c (allocate_struct_function): Call
27906         invoke_set_current_function_hook earlier.
27908 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
27910         * reload1.c (init_reload): Only initialize reload_obstack
27911         during the first call.
27913 2013-01-21  Marek Polacek  <polacek@redhat.com>
27915         * cfgloop.c (verify_loop_structure): Fix up grammar.
27917 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
27919         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
27920         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
27922 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27924         PR target/56058
27925         * config/arm/marvell-pj4.md: Update copyright year.
27926         Fix up use of alu to alu_reg and simple_alu_imm.
27928 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
27930         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
27932 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
27934         PR target/55433
27935         * lra-constraints.c (curr_insn_transform): Don't reuse original
27936         insn for secondary memory move when memory mode should be different.
27938 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27940         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
27941         atomic_storedi_1): New patterns.
27943 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
27945         btver2 pipeline descriptions.
27946         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
27947         descriptions.
27948         * config/i386/i386.md (btver2_decode): New type attributes.
27949         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
27950         type attributes.
27951         * config/i386/btver2.md: New file describing btver2 pipelines.
27953 2013-01-19  Andrew Pinski  <apinski@cavium.com>
27955         PR tree-optimization/52631
27956         * tree-ssa-sccvn (visit_use): Before looking up the original
27957         statement, try looking up the simplified expression.
27959 2013-01-19  Anthony Green  <green@moxielogic.com>
27961         * config/moxie/moxie.c (moxie_expand_prologue): Set
27962         current_function_static_stack_size.
27964 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
27966         PR tree-optimization/56029
27967         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
27968         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
27970 2013-01-18  Sharad Singhai  <singhai@google.com>
27972         PR tree-optimization/55995
27973         * dumpfile.c (dump_loc): Print location only if available.
27974         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
27976 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
27978         PR target/55433
27979         * lra-constraints.c (curr_insn_transform): Reuse original insn for
27980         secondary memory move.
27981         (inherit_reload_reg): Use rclass instead of cl for
27982         check_secondary_memory_needed_p.
27984 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
27986         PR middle-end/56015
27987         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
27988         the case where writing real complex part of target modifies op1.
27990 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
27992         * config/aarch64/aarch64-simd.md
27993         (aarch64_vcond_internal<mode>): Handle unordered cases.
27994         * config/aarch64/iterators.md (v_cmp_result): New.
27996 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
27997             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27999         * config/arm/marvell-pj4.md: New file.
28000         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
28001         * config/arm/arm.md (generic_sched): Add marvell_pj4.
28002         (generic_vfp): Likewise.
28003         * config/arm/arm-cores.def: Add marvell-pj4.
28004         * config/arm/arm-tune.md: Regenerate.
28005         * config/arm/arm-tables.opt: Regenerate.
28006         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
28007         * doc/invoke.texi: Document marvell-pj4.
28009 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
28011         * config/aarch64/arm_neon.h: Map scalar types to standard types.
28013 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
28015         PR debug/54114
28016         PR debug/54402
28017         PR debug/49888
28018         * var-tracking.c (negative_power_of_two_p): New.
28019         (global_get_addr_cache, local_get_addr_cache): New.
28020         (get_addr_from_global_cache, get_addr_from_local_cache): New.
28021         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
28022         heading comment.
28023         (vt_stack_offset_p): Remove.
28024         (vt_canon_true_dep): Always canonicalize loc's address.
28025         (clobber_overlapping_mems): Make sure we have a MEM.
28026         (local_get_addr_clear_given_value): New.
28027         (val_reset): Clear local cached entries.
28028         (compute_bb_dataflow): Create and release the local cache.
28029         Disable duplicate MEMs clobbering.
28030         (emit_notes_in_bb): Clobber MEMs likewise.
28031         (vt_emit_notes): Create and release the local cache.
28032         (vt_initialize, vt_finalize): Create and release the global
28033         cache, respectively.
28034         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
28036 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
28038         PR libmudflap/53359
28039         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
28040         not found in the symtab.
28042 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
28044         PR debug/56006
28045         PR rtl-optimization/55547
28046         PR rtl-optimization/53827
28047         PR debug/53671
28048         PR debug/49888
28049         * alias.c (offset_overlap_p): New, factored out of...
28050         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
28051         the conservative special case for symbolic constants.  Don't
28052         adjust zero sizes on alignment.
28054 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
28056         PR rtl-optimization/52573
28057         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
28058         REG_UNUSED for the same register.
28060 2013-01-17  Richard Biener  <rguenther@suse.de>
28061             Marek Polacek  <polacek@redhat.com>
28063         PR rtl-optimization/55833
28064         * loop-unswitch.c (unswitch_loops): Move loop verification...
28065         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
28066         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
28067         Set it to true when we're removing a loop from hierarchy tree in
28068         an irreducible region.
28069         (fix_bb_placements): Adjust caller.
28070         (fix_loop_placements): Likewise.
28072 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
28074         * config/avr/builtins.def (DEF_BUILTIN): Factor out
28075         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
28076         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
28077         Remove ID.  Adjust comments.
28078         * config/avr/avr-c.c (avr_builtin_name): Remove.
28079         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
28080         * config/avr/avr.c (avr_tolower): New static function.
28081         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
28082         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
28083         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
28084         default expansion.
28086 2013-01-17  Jan Hubicka  <jh@suse.cz>
28088         PR tree-optimization/55273
28089         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
28091 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
28093         PR target/55981
28094         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
28095         store through atomic_store<mode>_1.
28096         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
28098 2013-01-17  Martin Jambor  <mjambor@suse.cz>
28100         PR tree-optimizations/55264
28101         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
28102         for virtual methods.
28103         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
28104         virtual methods before inlining is over.
28105         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
28106         virtual functions.
28107         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
28108         non-virtual.
28110 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
28112         PR rtl-optimization/56005
28113         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
28114         pending reads for prefetch.
28116 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
28118         * config/aarch64/aarch64.md
28119         (*cstoresi_neg_uxtw): New pattern.
28120         (*cmovsi_insn_uxtw): New pattern.
28121         (*<optab>si3_uxtw): New pattern.
28122         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
28123         (*<optab>si3_insn_uxtw): New pattern.
28124         (*bswapsi2_uxtw): New pattern.
28126 2013-01-16  Richard Biener  <rguenther@suse.de>
28128         * tree-inline.c (tree_function_versioning): Remove set but
28129         never used variable.
28131 2013-01-16  Richard Biener  <rguenther@suse.de>
28133         PR tree-optimization/55964
28134         * tree-flow.h (rename_variables_in_loop): Remove.
28135         (rename_variables_in_bb): Likewise.
28136         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
28137         (copy_loop_before): Adjust and delete update-ssa status.
28138         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
28139         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
28140         (rename_variables_in_loop): Remove.
28141         (slpeel_update_phis_for_duplicate_loop): Likewise.
28142         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
28143         use available cfg machinery instead of duplicating it.
28144         Update PHI nodes and perform poor-mans SSA update here.
28145         (slpeel_tree_peel_loop_to_edge): Adjust.
28147 2013-01-16  Richard Biener  <rguenther@suse.de>
28149         PR tree-optimization/54767
28150         PR tree-optimization/53465
28151         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
28152         (vrp_visit_phi_node): For PHI arguments coming via backedges
28153         drop all symbolical range information.
28154         (execute_vrp): Compute backedges.
28156 2013-01-16  Richard Biener  <rguenther@suse.de>
28158         * doc/install.texi: Update CLooG and ISL requirements to
28159         0.18.0 and 0.11.1.
28161 2013-01-16  Christian Bruel  <christian.bruel@st.com>
28163         PR target/55301
28164         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
28165         (broken_move): Handle UNSPECV_SP_SWITCH_B.
28166         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
28168 2013-01-16  DJ Delorie  <dj@redhat.com>
28170         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
28171         (UNSPECV_SP_SWITCH_E): New.
28172         (sp_switch_1): Change to an unspec.
28173         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
28174         replace $r15.
28176 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
28178         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
28179         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
28180         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
28181         (expand_mem_thread_fence): Ditto.
28182         (expand_mem_signal_fence): Ditto.
28183         (expand_atomic_load): Ditto.
28184         (expand_atomic_store): Ditto.
28186 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
28188         PR rtl-optimization/55547
28189         PR rtl-optimization/53827
28190         PR debug/53671
28191         PR debug/49888
28192         * alias.c (memrefs_conflict_p): Set sizes to negative after
28193         AND adjustments.
28195 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
28197         PR target/55940
28198         * function.c (thread_prologue_and_epilogue_insns): Always
28199         add crtl->drap_reg to set_up_by_prologue.set, even if
28200         stack_realign_drap is false.
28202 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
28204         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
28205         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
28206         *call): Fix indention.
28208 2013-01-15  Tom de Vries  <tom@codesourcery.com>
28210         PR target/55876
28211         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
28212         Update comment.
28214 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
28216         PR rtl-optimization/55153
28217         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
28219 2013-01-15  Martin Jambor  <mjambor@suse.cz>
28221         PR tree-optimization/55920
28222         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
28223         accesses as grp_to_be_debug_replaced.
28225 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
28227         PR tree-optimization/55920
28228         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
28229         there is non-useless type conversion needed from debug rhs to lhs,
28230         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
28232 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
28233             Mikael Pettersson  <mikpe@it.uu.se>
28235         PR target/43961
28236         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
28237         Thumb.
28238         (ASM_OUTPUT_CASE_LABEL): Remove.
28239         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
28240         * final.c (shorten_branches): Update alignment of labels before
28241         jump tables if CASE_VECTOR_SHORTEN_MODE.
28243 2013-01-15  Richard Biener  <rguenther@suse.de>
28245         PR bootstrap/55961
28246         * system.h: Do not include gmp.h for building host tools.
28248 2013-01-15  Richard Biener  <rguenther@suse.de>
28250         PR middle-end/55882
28251         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
28252         account for bitpos when computing alignment.
28254 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
28256         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
28257         (ix86_target_macros_internal): Likewise.
28259         * config/i386/i386.c (m_CORE2I7): Removed.
28260         (m_CORE_HASWELL): New macro.
28261         (m_CORE_ALL): Likewise.
28262         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
28263         (initial_ix86_arch_features): Likewise.
28264         (processor_target_table): Initializations for Core avx2.
28265         (cpu_names): New names "core-avx2".
28266         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
28267         PROCESSOR_CORE_HASWELL.
28268         (ix86_issue_rate): New case.
28269         (ia32_multipass_dfa_lookahead): Likewise.
28270         (ix86_sched_init_global): Likewise.
28272         * config/i386/i386.h (TARGET_HASWELL): New macro.
28273         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
28274         (processor_type): New PROCESSOR_HASWELL.
28276 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
28278         PR tree-optimization/55955
28279         * tree-vect-loop.c (vectorizable_reduction): Give up early on
28280         *SHIFT_EXPR and *ROTATE_EXPR codes.
28282         PR tree-optimization/48766
28283         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
28284         -ftrapv disable -fwrapv.
28286 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
28288         PR target/55974
28289         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
28290         etc. to 1 and not to __flash.
28291         Use LL suffix for __INT24_MAX__ with -mint8.
28292         Use ULL suffix for __UINT24_MAX__ with -mint8.
28294 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
28296         * config/avr/avr-arch.h
28297         (struct base_arch_s): Use typedef avr_arch_t instead.
28298         (struct arch_info_s): Use typedef avr_arch_info_t instead.
28299         (struct mcu_type_s): Use typedef avr_mcu_t instead.
28300         * config/avr/avr.c: Same.
28301         * config/avr/avr-devices.c: Same.
28302         * config/avr/driver-avr.c: Same.
28303         * config/avr/gen-avr-mmcu-texi.c: Same.
28304         * config/avr/avr-mcus.def: Adjust comment.
28306 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
28308         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
28309         * config/aarch64/iterators.md (VALLDI): New.
28311 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
28312             Andi Kleen  <ak@linux.intel.com>
28314         PR target/55948
28315         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
28316         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
28317         memmodel flag.
28319 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
28321         * config/avr/avr-stdint.h: Remove trailing blanks.
28322         * config/avr/avr-log.h: Same.
28323         * config/avr/avr-arch.h: Same.
28324         * config/avr/avr-devices.c: Same.
28325         * config/avr/avr-dimode.md: Same.
28326         * config/avr/predicates.md: Same.
28327         * config/avr/avr-c.c: Same.  And fix typo.
28329         * config/avr/avr-protos.h: Same.  And:
28330         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
28331         (init_cumulative_args): Rename to avr_init_cumulative_args.
28332         (expand_prologue): Rename to avr_expand_prologue.
28333         (expand_epilogue): Rename to avr_expand_epilogue.
28334         (adjust_insn_length): Rename to avr_adjust_insn_length.
28335         (notice_update_cc): Rename to avr_notice_update_cc.
28336         (final_prescan_insn): Rename to avr_final_prescan_insn.
28337         * config/avr/avr.c: Same.
28338         * config/avr/avr.h: Same.
28339         * config/avr/avr.md: Remove trailing blanks.
28340         (prologue): Use avr_expand_prologue.
28341         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
28343 2013-01-14  Richard Biener  <rguenther@suse.de>
28345         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
28346         verify_location, collect_subblocks): New functions.
28347         (verify_gimple_in_cfg): Verify that locations only reference
28348         BLOCKs in the functions BLOCK tree.
28350 2013-01-14  Richard Biener  <rguenther@suse.de>
28352         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
28353         PHI argument.
28354         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
28355         unshare reference.
28356         (insert_out_of_ssa_copy_on_edge): Likewise.
28357         (rewrite_close_phi_out_of_ssa): Likewise.
28358         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
28359         debug expressions.
28360         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
28361         propagated constants.
28362         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
28363         can not be shared.
28365 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
28367         * config/avr/avr-modes.def: Add GPL copyright notice.
28369 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
28371         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
28372         MEMMODEL_MASK to determine memory model.
28373         (atomic_store<mode>): Ditto from operands[2].
28374         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
28376 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
28378         PR fortran/55935
28379         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
28380         (fold_gimple_assign): Don't call unshare_expr here.
28381         (fold_ctor_reference): Call unshare_expr.
28383 2013-01-13  Terry Guo  <terry.guo@arm.com>
28385         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
28386         * doc/fragments.texi: Document MULTILIB_REUSE.
28387         * gcc.c (multilib_reuse): New internal spec.
28388         (set_multilib_dir): Also search multilib from multilib_reuse.
28389         * genmultilib (tmpmultilib3): Refactor code.
28390         (tmpmultilib4): Ditto.
28391         (multilib_reuse): New multilib argument.
28393 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
28395         * Makefile.in: Update copyright.
28397 2013-01-12  Tom de Vries  <tom@codesourcery.com>
28399         PR middle-end/55890
28400         * calls.c (expand_call): Check if arg_nr is valid.
28402 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
28404         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
28405         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
28406         documentation.  Add missing '__' in front of
28407         __builtin_ia32_packssdw256.
28409 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28411         PR target/55719
28412         * config/s390/s390.c (s390_preferred_reload_class): Do not return
28413         NO_REGS for larl operands.
28414         (s390_reload_larl_operand): Use s390_load_address instead of
28415         emit_move_insn.
28417 2013-01-11  Richard Biener  <rguenther@suse.de>
28419         * tree-cfg.c (verify_node_sharing_1): Split out from ...
28420         (verify_node_sharing): ... here.
28421         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
28423 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
28425         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
28426         Substitute TREECHECKING.
28427         * configure: Regenerate.
28428         * Makefile.in (TREECHECKING): New.
28430 2013-01-11  Richard Guenther  <rguenther@suse.de>
28432         PR tree-optimization/44061
28433         * tree-vrp.c (extract_range_basic): Compute zero as
28434         value-range for __builtin_constant_p of function parameters.
28436 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
28438         Update copyright years.
28440 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
28442         PR rtl-optimization/55672
28443         * lra-eliminations.c (mark_not_eliminable): Permit addition with
28444         const to be eliminable.
28446 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
28448         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
28449         * configure: Regenerate.
28451 2013-01-10  Richard Biener  <rguenther@suse.de>
28453         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
28455 2013-01-10  Richard Biener  <rguenther@suse.de>
28457         PR bootstrap/55792
28458         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
28459         locations for virtual PHI arguments.
28460         (rewrite_update_phi_arguments): Likewise.
28462 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
28464         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
28465         on to assembler.
28467 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
28469         PR tree-optimization/55921
28470         * tree-complex.c (expand_complex_asm): New function.
28471         (expand_complex_operations_1): Call it for GIMPLE_ASM.
28473 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28475         PR target/55718
28476         * config/s390/s390.c (s390_symref_operand_p)
28477         (s390_loadrelative_operand_p): Merge the two functions.
28478         (s390_check_qrst_address, print_operand_address): Add parameters
28479         to s390_loadrelative_operand_p invokation.
28480         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
28481         (s390_reload_larl_operand, s390_secondary_reload): Use
28482         s390_loadrelative_operand_p instead of s390_symref_operand_p.
28483         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
28485 2013-01-09  Mike Stump  <mikestump@comcast.net>
28487         * dse.c (record_store): Remove unnecessary assert.
28489 2013-01-09  Jan Hubicka  <jh@suse.cz>
28491         PR tree-optimization/55569
28492         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
28493         * cfgloop.h (scale_loop_profile): Likewise.
28495 2013-01-09  Jan Hubicka  <jh@suse.cz>
28497         PR lto/45375
28498         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
28499         functions.
28500         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
28502 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
28504         PR middle-end/55114
28505         * expr.h (maybe_emit_group_store): Declare.
28506         * expr.c (maybe_emit_group_store): New function.
28507         * builtins.c (expand_builtin_int_roundingfn): Call it.
28508         (expand_builtin_int_roundingfn_2): Likewise.
28510 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
28512         PR rtl-optimization/55829
28513         * lra-constraints.c (match_reload): Add code for absent output.
28514         (curr_insn_transform): Add code for reloads of matched inputs
28515         without output.
28517 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
28519         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
28520         attribute of movddup insn to DF.
28521         (*vec_interleave_lowv2df): Ditto.
28522         (vec_dupv2df): Ditto.
28524 2013-01-09  Jan Hubicka  <jh@suse.cz>
28526         PR tree-optimiation/55875
28527         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
28528         EVERY_ITERATION parameter.
28529         (number_of_iterations_exit): Check if exit is executed every iteration.
28530         (idx_infer_loop_bounds): Similarly here.
28531         (n_of_executions_at_most): Simplify
28532         to only test for cases where statement is dominated by the
28533         particular bound; handle correctly the "postdominance" test.
28534         (scev_probably_wraps_p): Use max loop iterations info
28535         as a global bound first.
28537 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
28538             Nick Clifton  <nickc@redhat.com>
28540         * config/v850/v850.md (cbranchsf4): New pattern.
28541         (cstoresf4): New pattern.
28542         (cbranchdf4): New pattern.
28543         (cstoredf4): New pattern.
28544         (movsicc): Disallow floating point comparisons.
28545         (cmpsf_le_insn): Fix order of operators.
28546         (cmpsf_lt_insn): Likewise.
28547         (cmpsf_eq_insn): Likewise.
28548         (cmpdf_le_insn): Likewise.
28549         (cmpdf_lt_insn): Likewise.
28550         (cmpdf_eq_insn): Likewise.
28551         (cmpsf_ge_insn): Use LE comparison.
28552         (cmpdf_ge_insn): Likewise.
28553         (cmpsf_gt_insn): Use LT comparison.
28554         (cmpdf_gt_insn): Likewise.
28555         (cmpsf_ne_insn): Delete pattern.
28556         (cmpdf_ne_insn): Delete pattern.
28557         * config/v850/v850.c (v850_gen_float_compare): Use
28558         gen_cmpdf_eq_insn for NE comparison.
28559         (v850_float_z_comparison_operator)
28560         (v850_float_nz_comparison_operator): Move from here ...
28561         * config/v850/predicates.md: ... to here.  Move GT and GE
28562         comparisons into v850_float_z_comparison_operator.
28563         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
28564         Delete prototype.
28565         (v850_float_nz_comparison_operator): Likewise.
28567 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28569         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
28570         with calls to gen_insvsi/gen_insvdi.
28572 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
28574         * config/i386/i386.c (initial_ix86_tune_features): Set up
28575         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
28577 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
28578             Jakub Jelinek  <jakub@redhat.com>
28580         PR tree-optimization/48189
28581         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
28582         If nitercst is 0, don't predict the exit edge.
28584 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28586         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
28587         in asm_fprintf with reg_names.
28588         (aarch64_print_operand_address): Likewise.
28589         (aarch64_return_addr): Likewise.
28590         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
28592 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28594         * config/pa/pa.h (VAL_U6_BITS_P): Define.
28595         (INT_U6_BITS): Likewise.
28596         * config/pa/predicates.md (uint6_operand): New predicate.
28597         (shift5_operand, shift6_operand): Likewise.
28598         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
28599         arith32_operand.
28600         (lshrdi3): Use shift6_operand.
28601         (shrpsi4, shrpdi4): New insn patterns.
28602         (extzv): Delete expander.
28603         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
28604         predicates in unamed zero extract patterns.  Tighten common constraint.
28605         (extv): Delete expander.
28606         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
28607         predicates in unamed sign extract patterns.  Tighten common constraint.
28608         (insv): Delete expander.
28609         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
28610         predicates in unamed insert patterns.  Tighten common constraint.
28611         Change uint32_operand predicate to uint6_operand predicate in unamed
28612         DImode pattern to insert constant values of type 1...1xxxx.
28614 2013-01-04  Jan Hubicka  <jh@suse.cz>
28616         PR tree-optimization/55823
28617         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
28618         issue.
28620 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
28621             Uros Bizjak  <ubizjak@gmail.com>
28623         PR rtl-optimization/55845
28624         * df-problems.c (can_move_insns_across): Stop scanning at
28625         volatile_insn_p source instruction or give up if
28626         across_from .. across_to range contains any volatile_insn_p
28627         instructions.
28629 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
28631         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
28632         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
28633         Declare.
28634         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
28635         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
28637 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
28639         PR fortran/55341
28640         * asan.c (asan_clear_shadow): New function.
28641         (asan_emit_stack_protection): Use it.
28643 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
28645         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
28646         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
28647         with tab instead of space.
28649 2013-01-08  Nick Clifton  <nickc@redhat.com>
28651         * config/rl78/rl78.c (rl78_expand_prologue): Always select
28652         register bank 0 at the start of an interrupt handler.
28653         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
28654         MDBH registers.
28656 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
28658         * config/aarch64/aarch64-simd.md
28659         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
28660         (aarch64_simd_bsl): Likewise.
28661         (aarch64_vcond_internal<mode>): Likewise.
28662         (vcond<mode><mode>): Likewise.
28663         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
28664         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
28666 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
28668         * config/aarch64/aarch64-builtins.c
28669         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
28671 2013-01-08  Martin Jambor  <mjambor@suse.cz>
28673         PR debug/55579
28674         * tree-sra.c (analyze_access_subtree): Return true also after
28675         potentially creating a debug-only replacement.
28677 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
28679         PR middle-end/55890
28680         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
28682         PR tree-optimization/54120
28683         * tree-vrp.c (range_fits_type_p): Don't allow
28684         src_precision < precision from signed vr to unsigned_p
28685         if vr->min or vr->max is negative.
28686         (simplify_float_conversion_using_ranges): Test can_float_p
28687         against CODE_FOR_nothing.
28689 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
28690             Richard Biener  <rguenther@suse.de>
28692         PR middle-end/55851
28693         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
28694         types instead of just INTEGER_TYPE types.
28696 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
28698         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
28699         TF_SIZE): Define.
28701 2013-01-07  Steve Ellcey  <sellcey@mips.com>
28703         PR target/42661
28704         * config/mips/mips.opt: Change mad to mmad to match documentation.
28706 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
28708         PR target/55897
28709         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
28710         .progmemx.data now.
28712 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
28714         PR target/55897
28715         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
28716         (avr_addrspace_t): Add .section_name field.
28717         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
28718         array size.
28719         (avr_addrspace): Same.  Initialize .section_name.  Remove last
28720         NULL entry.  Put __memx into .progmemx.data.
28721         (progmem_section_prefix): Remove.
28722         (avr_asm_init_sections): No need to initialize progmem_section.
28723         (avr_asm_named_section): Use avr_addrspace[].section_name to get
28724         section name prefix.
28725         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
28726         retrieve the progmem section.
28727         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
28728         boundary to run over avr_addrspace[].
28729         (avr_register_target_pragmas): Ditto.
28731 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
28733         * varasm.c (output_constant_def_contents): For asan_protect_global
28734         protected strings, adjust DECL_ALIGN if needed, before testing for
28735         anchored symbols.
28736         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
28737         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
28738         normal decls.
28739         (output_object_block): For asan protected decls, emit asan padding
28740         after their contents.
28741         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
28742         (asan_finish_file): Test it here instead.
28744 2013-01-07  Nick Clifton  <nickc@redhat.com>
28745             Matthias Klose  <doko@debian.org>
28746             Doug Kwan  <dougkwan@google.com>
28747             H.J. Lu  <hongjiu.lu@intel.com>
28749         PR driver/55470
28750         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
28752         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
28754         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
28756         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
28758         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
28760 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
28762         PR target/54461
28763         * doc/install.texi (Cross-Compiler-Specific Options): Document
28764         --with-avrlibc.
28766 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
28768         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
28769         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
28770         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
28771         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
28772         vqmovun_high_s64): Fix source operand number and update copyright.
28774 2013-01-07  Richard Biener  <rguenther@suse.de>
28776         PR middle-end/55890
28777         * gimple.h (gimple_call_builtin_p): New overload.
28778         * gimple.c (validate_call): New function.
28779         (gimple_call_builtin_p): Likewise.
28780         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
28781         Use gimple_call_builtin_p.
28782         (find_func_clobbers): Likewise.
28783         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
28784         (strlen_optimize_stmt): Likewise.
28786 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
28788         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
28789         (vld1q_dup_*): Likewise.
28790         (vld1_*): Likewise.
28791         (vld1q_*): Likewise.
28792         (vld1_lane_*): Likewise.
28793         (vld1q_lane_*): Likewise.
28795 2013-01-07  Richard Biener  <rguenther@suse.de>
28797         * lto-streamer.h (LTO_minor_version): Bump to 2.
28799 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
28801         * config/aarch64/aarch64-protos.h
28802         (aarch64_const_double_zero_rtx_p): Rename to...
28803         (aarch64_float_const_zero_rtx_p): ...this.
28804         (aarch64_float_const_representable_p): New.
28805         (aarch64_output_simd_mov_immediate): Likewise.
28806         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
28807         move immediate case.
28808         * config/aarch64/aarch64.c
28809         (aarch64_const_double_zero_rtx_p): Rename to...
28810         (aarch64_float_const_zero_rtx_p): ...this.
28811         (aarch64_print_operand): Allow printing of new constants.
28812         (aarch64_valid_floating_const): New.
28813         (aarch64_legitimate_constant_p): Check for valid floating-point
28814         constants.
28815         (aarch64_simd_valid_immediate): Likewise.
28816         (aarch64_vect_float_const_representable_p): New.
28817         (aarch64_float_const_representable_p): Likewise.
28818         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
28819         (aarch64_output_simd_mov_immediate): New.
28820         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
28821         (*movdf_aarch64): Likewise.
28822         * config/aarch64/constraints.md (Ufc): New.
28823         (Y): call aarch64_float_const_zero_rtx.
28824         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
28826 2013-01-07  Richard Biener  <rguenther@suse.de>
28828         PR tree-optimization/55888
28829         PR tree-optimization/55862
28830         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
28831         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
28832         not if it is contained therein.
28834 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
28836         * config/avr/t-avr: Typo.
28838 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
28840         PR55243
28841         * config/avr/t-avr: Don't automatically rebuild
28842         $(srcdir)/config/avr/t-multilib
28843         $(srcdir)/config/avr/avr-tables.opt
28844         $(srcdir)/doc/avr-mmcu.texi
28845         (avr-mcus): New phony target to build them on request.
28846         (s-avr-mlib, s-avr-mmcu-texi): Remove.
28847         * avr/avr-mcus.def: Adjust comments.
28849 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
28851         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
28853 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
28855         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
28857 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
28859         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
28861 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
28863         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
28864         to generate profiling.
28865         * config/rs6000/aix64.h (LIB_SPEC): Same.
28867 2013-01-04  Andrew Pinski  <apinski@cavium.com>
28869         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
28870         New function.
28871         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
28873 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
28875         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
28876         unconditionally.
28877         (ix86_expand_move): Ditto.
28878         (ix86_zero_extend_to_Pmode): Ditto.
28879         (ix86_expand_call): Ditto.
28880         (ix86_expand_special_args_builtin): Ditto.
28881         (ix86_expand_builtin): Ditto.
28883 2013-01-04  Richard Biener  <rguenther@suse.de>
28885         PR tree-optimization/55862
28886         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
28887         translating them through PHI nodes.
28889 2013-01-04  Martin Jambor  <mjambor@suse.cz>
28891         PR tree-optimization/55755
28892         * tree-sra.c (sra_modify_assign): Do not check that an access has no
28893         children when trying to avoid producing a VIEW_CONVERT_EXPR.
28895 2013-01-04  Marek Polacek  <polacek@redhat.com>
28897         PR middle-end/55859
28898         * opts.c (default_options_optimization): Clarify error message.
28900 2013-01-04  Richard Biener  <rguenther@suse.de>
28902         PR middle-end/55863
28903         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
28904         reassociation.
28906 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28908         PR target/53789
28909         * config/pa/pa.md (movsi): Revert previous change.
28910         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
28911         references.
28913 2013-01-03  Richard Henderson  <rth@redhat.com>
28915         * config/i386/i386.c (ix86_expand_move): Always assign to op1
28916         after eliminating TLS symbols.
28918 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
28920         PR bootstrap/50167
28921         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
28922         * graphite-poly.c (debug_gmp_value): Likewise.
28924 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
28926         PR target/55712
28927         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
28928         selected code model, define __code_mode_small__, __code_model_medium__,
28929         __code_model_large__, __code_model_32__ or __code_model_kernel__.
28930         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
28931         xchg temporary register with %k.  Declare temporary register as
28932         early clobbered.
28933         [__x86_64__]: For medium and large code models, preserve %rbx register.
28935 2013-01-03  Richard Biener  <rguenther@suse.de>
28937         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
28938         (dump_subscript): Adjust.
28939         (finalize_ddr_dependent): Do not dump redundant info.
28940         (analyze_siv_subscript): Adjust.
28941         (subscript_dependence_tester): Likewise.
28942         (compute_affine_dependence): Likewise.
28944 2013-01-03  Richard Biener  <rguenther@suse.de>
28946         Revert
28947         2013-01-03  Richard Biener  <rguenther@suse.de>
28949         PR tree-optimization/55857
28950         * tree-vect-stmts.c (vectorizable_load): Do not setup
28951         re-alignment for invariant loads.
28953         2013-01-02  Richard Biener  <rguenther@suse.de>
28955         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
28956         invariant load do not generate a vector load from the scalar location.
28958 2013-01-03  Richard Biener  <rguenther@suse.de>
28960         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
28961         for not vectorizing.
28962         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
28963         not build INDIRECT_REFs, call get_name once only.
28964         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
28965         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
28967 2013-01-03  Richard Biener  <rguenther@suse.de>
28969         PR tree-optimization/55857
28970         * tree-vect-stmts.c (vectorizable_load): Do not setup
28971         re-alignment for invariant loads.
28973 2013-01-03  Richard Biener  <rguenther@suse.de>
28975         PR lto/55848
28976         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
28977         prefer a built-in decl.
28979 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
28981         * gcc.c (process_command): Update copyright notice dates.
28982         * gcov.c (print_version): Likewise.
28983         * gcov-dump.c (print_version): Likewise.
28985         PR rtl-optimization/55838
28986         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
28987         iv0.step, iv1.step and step.
28989 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
28990             Marc Glisse  <marc.glisse@inria.fr>
28992         PR tree-optimization/55832
28993         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
28994         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
28995         integer_{one,zero}_node.
28997 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
28999         PR debug/54402
29000         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
29001         * var-tracking.c (reverse_op): Don't add reverse ops to
29002         VALUEs that have already
29003         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
29005 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
29007         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
29009 2013-01-02  Teresa Johnson  <tejohnson@google.com>
29011         * dumpfile.c (dump_loc): Print filename with location.
29012         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
29013         new location_t parameter to emit complete unroll message with
29014         new dump framework.
29015         (canonicalize_loop_induction_variables): Compute loops location
29016         and pass to try_unroll_loop_completely.
29017         * loop-unroll.c (report_unroll_peel): New function.
29018         (peel_loops_completely): Use new dump format with location
29019         for main dumpfile message, and invoke report_unroll_peel on success.
29020         (decide_unrolling_and_peeling): Ditto.
29021         (decide_peel_once_rolling): Remove old dumpfile message subsumed
29022         by report_unroll_peel.
29023         (decide_peel_completely): Ditto.
29024         (decide_unroll_constant_iterations): Ditto.
29025         (decide_unroll_runtime_iterations): Ditto.
29026         (decide_peel_simple): Ditto.
29027         (decide_unroll_stupid): Ditto.
29028         * cfgloop.c (get_loop_location): New function.
29029         * cfgloop.h (get_loop_location): Declare.
29031 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
29033         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
29034         NULL.
29036 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29038         PR middle-end/55198
29039         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
29040         BLKmode objects when EXPAND_MEMORY is specified.
29042 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
29044         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
29045         in loop predicate.
29046         (fold_builtin_cpu): Do not share cpu model decls across statements.
29048 2013-01-02  Jason Merrill  <jason@redhat.com>
29050         PR c++/55804
29051         * tree.c (build_array_type_1): Revert earlier change.
29053 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
29055         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
29056         "cortex-a57".
29057         * config/aarch64/aarch64-tune.md: Re-generate.
29059 2013-01-02  Richard Biener  <rguenther@suse.de>
29061         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
29062         invariant load do not generate a vector load from the scalar location.
29064 2013-01-02  Richard Biener  <rguenther@suse.de>
29066         PR bootstrap/55784
29067         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
29068         * configure: Regenerate.
29070 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
29072         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
29073         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
29074         (expand_builtin_int_roundingfn_2): Keep the original target around
29075         for the fallback case.
29077 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
29079         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
29080         to be clear for sign changes.
29082 2013-01-01  Jan Hubicka  <jh@suse.cz>
29084         * ipa-inline-analysis.c: Fix formatting.
29086 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
29088         PR tree-optimization/55831
29089         * tree-vect-loop.c (get_initial_def_for_induction): Use
29090         gsi_after_labels instead of gsi_start_bb.
29092 Copyright (C) 2013 Free Software Foundation, Inc.
29094 Copying and distribution of this file, with or without modification,
29095 are permitted in any medium without royalty provided the copyright
29096 notice and this notice are preserved.