* gimple-ssa-isolate-paths.c (check_loadstore): New function.
[official-gcc.git] / gcc / ChangeLog
bloba9254472c8eb162840b1b4995c338ea29e0ebb46
1 2013-11-12  Jeff Law  <law@redhat.com>
3         * gimple-ssa-isolate-paths.c (check_loadstore): New function.
4         (insert_trap_and_remove_trailing_statements): New argument OP which
5         is the NULL pointer.  Emit the trap after the load/store through
6         the NULL pointer.  Simplify the RHS of a store through a NULL pointer
7         when trivial to do so.
8         (isolate_path): Corresponding changes.
9         (gimple_ssa_isolate_erroneous_path): Likewise.
11 2013-11-12  Teresa Johnson  <tejohnson@google.com>
12             Jan Hubicka  <jh@suse.cz>
14         * predict.c (drop_profile): New function.
15         (handle_missing_profiles): Ditto.
16         (counts_to_freqs): Don't overwrite estimated frequencies
17         when function has no profile counts.
18         * predict.h (handle_missing_profiles): Declare.
19         * tree-inline.c (freqs_to_counts): New function.
20         (copy_cfg_body): Invoke freqs_to_counts as needed.
21         * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
23 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
25         PR target/59088
26         * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
27         Set for m_HASWELL.
28         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
30 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
32         PR target/59084
33         * config/i386/i386.c (ix86_option_override_internal): Check
34         X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
35         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
36         MASK_AVX256_SPLIT_UNALIGNED_LOAD and
37         MASK_AVX256_SPLIT_UNALIGNED_STORE.
39         * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
40         Clear m_COREI7_AVX and update comments.
41         (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
43 2013-11-12  Martin Jambor  <mjambor@suse.cz>
45         PR rtl-optimization/10474
46         * ira.c (interesting_dest_for_shprep): New function.
47         (split_live_ranges_for_shrink_wrap): Likewise.
48         (find_moveable_pseudos): Move calculation of dominance info,
49         df_analysios and the final anlyses to...
50         (ira): ...here, call split_live_ranges_for_shrink_wrap.
52 2013-11-12  Bin Cheng  <bin.cheng@arm.com>
54         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
55         Handle type conversion.
57 2013-11-11  Martin Liska  <marxin.liska@gmail.com>
58                                                 Jan Hubicka  <jh@suse.cz>
60         * cgraph.c (dump_cgraph_node): Profile dump added.
61         * cgraph.h (struct cgraph_node): New time profile variable added.
62         * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
63         * gcov-io.h (gcov_type): New profiler type introduced.
64         * ipa-profile.c (lto_output_node): Streaming for time profile added.
65         (input_node): Time profiler is read from LTO stream.
66         * predict.c (maybe_hot_count_p): Hot prediction changed.
67         * profile.c (instrument_values): New case for time profiler added.
68         (compute_value_histograms): Read of time profile.
69         * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
70         * tree-profile.c (init_ic_make_global_vars): Time profiler function added.
71         (gimple_init_edge_profiler): TP function instrumentation.
72         (gimple_gen_time_profiler): New.
73         * value-prof.c (gimple_add_histogram_value): Support for time profiler
74         added.
75         (dump_histogram_value): TP type added to dumps.
76         (visit_hist): More sensitive check that takes TP into account.
77         (gimple_find_values_to_profile): TP instrumentation.
78         * value-prof.h (hist_type): New histogram type added.
79         (struct histogram_value_t): Pointer to struct function added.
80         * libgcc/Makefile.in: New GCOV merge function for TP added.
81         * libgcov.c: function_counter variable introduced.
82         (_gcov_merge_time_profile): New.
83         (_gcov_time_profiler): New.
85 2013-11-11  Marc Glisse  <marc.glisse@inria.fr>
86             Jeff Law  <law@redhat.com>
88         * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
89         ao_ref_init_from_ptr_and_size for builtins.
91 2013-11-11  Uros Bizjak  <ubizjak@gmail.com>
92             H.J. Lu  <hongjiu.lu@intel.com>
94         PR target/58853
95         * config/i386/x86-tune.def
96         (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
97         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
98         * config/i386/i386.h
99         (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
100         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES.  Update for renamed
101         X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
102         * config/i386/i386.c (ix86_expand_set_or_movmem): Use
103         TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
104         misaligned_prologue_used.  Check that
105         desired_aling <= epilogue_size_needed.
107 2013-11-11  Cong Hou  <congh@google.com>
109         PR tree-optimization/59050
110         * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
112 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
114         PR middle-end/59049
115         * expmed.c (emit_store_flag): Fail for const-const comparison.
117 2013-11-11  Tristan Gingold  <gingold@adacore.com>
118             Eric Botcazou  <ebotcazou@adacore.com>
120         * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
121         * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
122         * tree.def (CONSTRUCTOR): Likewise.
123         * doc/generic.texi (CONSTRUCTOR): Likewise.  Update description.
124         * gimplify.c (gimplify_init_constructor): Do not clear the object when
125         the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
127 2013-11-11  Basile Starynkevitch  <basile@starynkevitch.net>
129         * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
130         diagnostic_finish.
132 2013-11-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
134         * config/arm/arm.c (arm_new_rtx_costs): Return after handling
135         comparisons.
137 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
139         * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
141 2013-11-08  Jeff Law  <law@redhat.com>
143         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
144         threading paths first, then perform PHI node checks if applicable.
146 2013-11-10  Karlson2k  <k2k@narod.ru>
147             Kai Tietz  <ktietz@redhat.com>
149         PR plugin/52872
150         * configure.ac: Adding for exported symbols check
151         and for rdynamic-check executable-extension.
152         * configure: Regenerated.
154 2013-11-10  Uros Bizjak  <ubizjak@gmail.com>
156         * mode-switching.c (optimize_mode_switching): Mark block as
157         nontransparent, if last_mode at block exit is different from no_mode.
159 2013-11-09  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
161         * function.c (NAME__MAIN): Move to...
162         * cfgexpand.c (NAME__MAIN): ...here.
164 2013-11-09  Richard Sandiford  <rdsandiford@googlemail.com>
166         * target.def (can_use_doloop_p): New hook.
167         * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
168         * doc/tm.texi: Regenerate.
169         * doc/md.texi (doloop_begin, doloop_end): Update documentation.
170         * hooks.h (hook_bool_dint_dint_uint_true): Declare.
171         * hooks.c (hook_bool_dint_dint_uint_true): New function.
172         * targhooks.h (can_use_doloop_if_innermost): Declare.
173         * targhooks.c (can_use_doloop_if_innermost): New function.
174         * target.h: Include double-int.h.
175         * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
176         Remove iteration count, maximum iteration count, loop depth and
177         enter-at-top inputs from doloop_begin and doloop_end.
178         * config/arc/arc.md (doloop_begin, doloop_end): Update for new
179         interface.
180         * config/arc/arc.c (arc_can_use_doloop_p): New function.
181         (TARGET_CAN_USE_DOLOOP_P): Define.
182         * config/arm/thumb2.md (doloop_end): Update for new interface.
183         * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
184         * config/bfin/bfin.md (doloop_end): Update for new interface.
185         * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
186         (TARGET_CAN_USE_DOLOOP_P): Define.
187         * config/c6x/c6x.md (doloop_end): Update for new interface.
188         * config/ia64/ia64.md (doloop_end): Update for new interface.
189         * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
190         * config/mep/mep.md (doloop_begin, doloop_end): Update for new
191         interface.
192         * config/mep/mep.c (mep_emit_doloop): Likewise.
193         (TARGET_CAN_USE_DOLOOP_P): Define.
194         * config/rs6000/rs6000.md (doloop_end): Update for new interface.
195         * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
196         * config/s390/s390.md (doloop_end): Update for new interface.
197         * config/sh/sh.md (doloop_end): Likewise.
198         * config/spu/spu.md (doloop_end): Likewise.
199         * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
200         * config/tilegx/tilegx.md (doloop_end): Update for new interface.
201         * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
202         * config/tilepro/tilepro.md (doloop_end): Update for new interface.
203         * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
204         * config/v850/v850.md (doloop_begin, doloop_end): Update for new
205         interface.
206         * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
208 2013-11-08  H.J. Lu  <hongjiu.lu@intel.com>
210         PR other/59055
211         * doc/extend.texi: Move Cilk Plus Builtins node before Other
212         Builtins node.
214 2013-11-08  Andrew MacLeod  <amacleod@redhat.com>
215             Joseph Myers  <joseph@codesourcery.com>
217         * ginclude/stdatomic.h: New file.
218         * Makefile.in (USER_H): Add stdatomic.h.
220 2013-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
222         * config/arm/arm.c (arm_new_rtx_costs): Break after handling
223         comparisons.
225 2013-11-08  Jeff Law  <law@redhat.com>
227         * tree-ssa-threadupdate.h (delete_thread_path): Declare.
228         * tree-ssa-threadupdate.c (delete_thread_path): New function.
229         (ssa_redirect_edges, thread_block_1): Use it.
230         (thread_through_loop_header, mark_threaded_blocks): Likewise.
231         (thread_through_all_blocks, register_jump_thread): Likewise.
232         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
234 2013-11-08  James Greenhalgh  <james.greenhalgh@arm.com>
236         * config/arm/aarch-common.c
237         (search_term): New typedef.
238         (shift_rtx_costs): New array.
239         (arm_rtx_shift_left_p): New.
240         (arm_find_sub_rtx_with_search_term): Likewise.
241         (arm_find_sub_rtx_with_code): Likewise.
242         (arm_early_load_addr_dep): Add sanity checking.
243         (arm_no_early_alu_shift_dep): Likewise.
244         (arm_no_early_alu_shift_value_dep): Likewise.
245         (arm_no_early_mul_dep): Likewise.
246         (arm_no_early_store_addr_dep): Likewise.
248 2013-11-08  Richard Biener  <rguenther@suse.de>
250         PR tree-optimization/59047
251         * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
253 2013-11-08  Ilya Enkovich  <ilya.enkovich@intel.com>
255         * common.opt (fcheck-pointer-bounds): Move to ...
256         * c-family/c.opt: ... here.
257         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
258         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
259         * langhooks.h (lang_hooks): Remove chkp_supported field.
260         * toplev.c (process_options): Remove chkp_supported check.
262 2013-11-08  Richard Biener  <rguenther@suse.de>
264         PR tree-optimization/59038
265         PR tree-optimization/58955
266         * tree-loop-distribution.c (pg_add_dependence_edges): Revert
267         previous change.  Handle known dependences correctly.
269 2013-11-08  Tom de Vries  <tom@codesourcery.com>
271         * config/rs6000/t-xilinx: Remove duplicate contents.
273 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
274             Joseph Myers  <joseph@codesourcery.com>
276         * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
277         (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
278         TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
279         (struct tree_base): Add atomic_flag field.
280         * tree.h (TYPE_ATOMIC): New accessor macro.
281         (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
282         (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
283         (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
284         (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
285         * tree.c (set_type_quals): Set TYPE_ATOMIC.
286         (find_atomic_core_type): New function.
287         (build_qualified_type): Adjust alignment for qualified types.
288         (build_atomic_base): New function
289         (build_common_tree_nodes): Build atomicQI_type_node,
290         atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
291         atomicTI_type_node.
292         * print-tree.c (print_node): Print atomic qualifier.
293         * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
294         * target.def (atomic_assign_expand_fenv): New hook.
295         * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
296         * doc/tm.texi: Regenerate.
297         * targhooks.c (default_atomic_assign_expand_fenv): New function.
298         * targhooks.h (default_atomic_assign_expand_fenv): Declare.
299         * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
300         * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
301         function type.
302         * config/i386/i386.c (enum ix86_builtins): Add
303         IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
304         IX86_BUILTIN_FNCLEX.
305         (bdesc_special_args): Add __builtin_ia32_fnstenv,
306         __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
307         (ix86_expand_builtin): Handle the new built-in functions.
308         (ix86_atomic_assign_expand_fenv): New function.
309         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
310         * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
311         (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
312         (fnstenv, fldenv, fnstsw, fnclex): New insns.
314 2013-11-07  Steve Ellcey  <sellcey@mips.com>
316         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
317         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
318         (MULTILIB_DIRNAMES): Add fp64 directory.
319         (MULTILIB_EXCEPTIONS): Add new exclusions.
321 2013-11-07  Aldy Hernandez  <aldyh@redhat.com>
323         * gimplify.c (gimple_regimplify_operands): Do not set
324         SSA_NAME_DEF_STMT.
325         * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
326         (rewrite_close_phi_out_of_ssa): Same.
327         (rewrite_phi_out_of_ssa): Same.
328         (rewrite_degenerate_phi): Same.
329         (handle_scalar_deps_crossing_scop_limits): Same.
330         * tree-if-conv.c (predicate_scalar_phi): Same.
331         * tree-parloops.c (create_loads_for_reductions): Same.
332         (create_final_loads_for_reduction): Same.
333         (create_loads_and_stores_for_name): Same.
334         (transform_to_exit_first_loop): Same.
335         (create_parallel_loop): Same.
336         * tree-ssa-loop-im.c
337         (move_computations_dom_walker::before_dom_children): Same.
338         * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
339         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
340         * tree-ssa-propagate.c (substitute_and_fold): Same.
341         * tree-vect-loop.c (vect_finalize_reduction): Same.
342         * tree-vect-stmts.c (vectorizable_call): Same.
344 2013-11-07  Mike Stump  <mikestump@comcast.net>
346         * config/pdp11/pdp11.c: Include dbxout.h.
347         * config/picochip/picochip.c: Likewise.
349 2013-11-07  Cong Hou  <congh@google.com>
351         PR tree-optimization/56764
352         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
353         Combine alias checks if it is possible to amortize the runtime
354         overhead.  Return the number of alias checks after merging.
355         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
356         Use the function vect_create_cond_for_alias_checks () to check
357         the number of alias checks.
359 2013-11-07  Jeff Law  <law@redhat.com>
361         * varpool.c (ctor_for_folding): Fix typo in comment.
363 2013-11-07  Joern Rennecke  <joern.rennecke@embecosm.com>
365         * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
366         reg_a := reg_b + reg_a  ==>  reg_a := reg_a + reg_b
368 2013-11-07  Jeff Law  <law@redhat.com>
370         * doc/invoke.texi (-fisolate-erroneous-paths): Document.
372         * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
373         No longer check if we have __builtin_trap, assume it's available.
375 2013-11-07  Diego Novillo  <dnovillo@google.com>
377         * attribs.c (lookup_scoped_attribute_spec): Make static.
378         (get_attribute_namespace): Likewise.
379         * builtins.c (more_const_call_expr_args_p): Move from tree.h.
380         (validate_arglist): Move earlier in the file. Make static.
381         (expand_stack_restore): Move from stmt.c
382         (expand_stack_save): Move from stmt.c
383         (rewrite_call_expr_array): Move earlier in the file.
384         (rewrite_call_expr_valist): Likewise.
385         * cfgexpand.c: Include hard-reg-set.h before tree.h
386         Include recog.h.
387         Include output.h.
388         (expand_asm_loc): Move from stmt.c.
389         (n_occurrences): Move from stmt.c.
390         (check_operand_nalternatives): Move from stmt.c.
391         (tree_conflicts_with_clobbers_p): Move from stmt.c.
392         (expand_asm_operands): Move from stmt.c
393         (expand_asm_stmt): Move from stmt.c
394         (expand_computed_goto): Move from stmt.c
395         (expand_goto): Move from stmt.c
396         (expand_null_return_1): Move from stmt.c
397         (expand_null_return): Move from stmt.c
398         (expand_value_return): Move from stmt.c
399         (expand_return): Move from stmt.c
400         (expand_main_function): Move from function.c
401         (stack_protect_prologue): Move from function.c
402         * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
403         (build_function_decl_skip_args): Move from tree.c.
404         * explow.c (tree_expr_size): Move from tree.c.
405         * expr.c (addr_expr_of_non_mem_decl_p): Remove.
406         (fields_length): Move from tree.c.
407         * fold-const.c (size_low_cst): Move from tree.c.
408         (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
409         (tree_expr_nonzero_p): Make static. Move earlier in the file.
410         (fold_build3_initializer_loc): Remove.
411         (tree_invalid_nonnegative_warnv_p): Make static.
412         * function.c (expand_main_function): Move to cfgexpand.c.
413         (stack_protect_prologue): Move to cfgexpand.c.
414         (set_insn_locations): Move earlier in the file.
415         * gimple-fold.c: Include langhooks.h.
416         (truth_type_for): Move from tree.c.
417         * print-tree.c (print_vec_tree): Remove.
418         * stmt.c (expand_computed_goto): Move to cfgexpand.c.
419         (expand_goto): Move to cfgexpand.c.
420         (n_occurrences): Move to cfgexpand.c.
421         (expand_asm_loc): Move to cfgexpand.c
422         (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
423         (expand_asm_operands): Move to cfgexpand.c.
424         (expand_asm_stmt): Move to cfgexpand.c.
425         (check_operand_nalternatives): Move to cfgexpand.c
426         (expand_null_return): Move to cfgexpand.c.
427         (expand_value_return): Move to cfgexpand.c.
428         (expand_null_return_1): Move to cfgexpand.c.
429         (expand_return): Move to cfgexpand.c.
430         (expand_stack_save): Move to builtins.c.
431         (expand_stack_restore): Move to builtins.c
432         * symtab.c: Include output.h.
433         (decl_assembler_name_hash): Move from tree.c.
434         (decl_assembler_name_equal): Move from tree.c.
435         * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
436         * tree-eh.c (in_array_bounds_p): Move from tree.c.
437         (range_in_array_bounds_p): Move from tree.c.
438         * tree-object-size.c (fini_object_sizes): Make static.
439         * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
440         * tree-vrp.c (ssa_name_nonnegative_p): Remove.
441         * tree.c (decl_assembler_name_equal): Move to symtab.c.
442         (tree_expr_size): Move to explow.c.
443         (decl_assembler_name_hash): Move to symtab.c.
444         (real_twop): Remove.
445         (tree_expr_size): Move to explow.c.
446         (stabilize_reference_1): Move earlier in the file. Make static.
447         (omp_remove_redundant_declare_simd_attrs): Remove.
448         (simple_cst_list_equal): Move earlier in the file. Make static.
449         (size_low_cst): Move to fold-const.c.
450         (build_type_no_quals): Remove.
451         (build_function_type_skip_args): Move to cgraphclones.c.
452         (build_function_decl_skip_args): Move to cgraphclones.c.
453         (in_array_bounds_p): Move to tree-eh.c.
454         (range_in_array_bounds_p): Move to tree-eh.c.
455         (truth_type_for): Move to gimple-fold.c.
456         (list_equal_p): Remove.
457         * tree.h (decl_assembler_name_equal): Remove.
458         (decl_assembler_name_hash): Remove.
459         (truth_type_for): Remove.
460         (build_type_no_quals): Remove.
461         (build_function_decl_skip_args): Remove.
462         (in_array_bounds_p): Remove.
463         (range_in_array_bounds_p): Remove.
464         (size_low_cst): Remove.
465         (omp_remove_redundant_declare_simd_attrs): Remove.
466         (tree_expr_size): Remove.
467         (fields_length): Remove.
468         (stabilize_reference_1): Remove.
469         (expand_goto): Remove.
470         (expand_stack_save): Remove.
471         (expand_stack_restore): Remove.
472         (expand_return): Remove.
473         (fold_build3_initializer_loc): Remove.
474         (tree_expr_nonzero_p): Remove.
475         (tree_invalid_nonnegative_warnv_p): Remove.
476         (tree_expr_nonzero_warnv_p): Remove.
477         (fold_builtin_snprintf_chk): Remove.
478         (validate_arglist): Remove.
479         (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
480         (simple_cst_list_equal): Remove.
481         (real_twop): Remove.
482         (expand_main_function): Remove.
483         (stack_protect_prologue): Remove.
484         (print_vec_tree): Remove.
485         (lookup_scoped_attribute_spec): Remove.
486         (get_attribute_namespace): Remove.
487         (expand_computed_goto): Remove.
488         (expand_asm_stmt): Remove.
489         (list_equal_p): Remove.
490         (ssa_name_nonnegative_p): Remove.
491         (fini_object_sizes): Remove.
492         (addr_expr_of_non_mem_decl_p): Remove.
493         (is_tm_safe_or_pure): Move to trans-mem.c.
494         (more_const_call_expr_args_p): Remove.
495         (save_vtable_map_decl): Remove.
497 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
499         * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
500         linker plugins, too.
502         * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
503         link to libgomp and its dependencies.
504         * config/ia64/hpux.h (LIB_SPEC): Likewise.
505         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
506         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
507         * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
509 2013-11-07  Jakub Jelinek  <jakub@redhat.com>
511         * tree-ssa-loop-niter.c: Include tree-ssanames.h.
512         (determine_value_range): Add loop argument.  Use get_range_info to
513         improve range.
514         (bound_difference): Adjust caller.
516 2013-11-07  Richard Biener  <rguenther@suse.de>
517             Jakub Jelinek  <jakub@redhat.com>
519         * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
520         latches from header PHI arguments from the latch edge.
522 2013-11-07  Paolo Carlini  <paolo.carlini@oracle.com>
524         PR c++/58176
525         * varasm.c (output_constant): Handle NULLPTR_TYPE.
527 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
529         * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
530         misaligned_prologue_used when it has been set.
532 2013-11-07  Yury Gribov  <y.gribov@samsung.com>
533             Jakub Jelinek  <jakub@redhat.com>
535         PR sanitizer/59029
536         * asan.c (get_mem_refs_of_builtin_call): Allow
537         integer literals as addresses in instrumented builtins.
539 2013-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
541         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
542         Explain why plus_constant is not used.
544 2013-11-07  Richard Biener  <rguenther@suse.de>
546         * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
547         (canonicalize_value): ... this.  Also handle stripping of
548         TREE_OVERFLOW.
549         (get_value, set_lattice_value, get_value_for_expr): Adjust.
550         * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
551         * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
553 2013-11-07  Richard Biener  <rguenther@suse.de>
555         * tree-dfa.c (get_ref_base_and_extent): Fix casting.
557 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
559         PR target/59034
560         * config/i386/i386.md (push peepholer/splitter): Use Pmode
561         with stack_pointer_rtx.
563 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
565         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
566         using operand_equal_p.
568 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
570         * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
571         * tree-affine.c (get_inner_reference_aff): Return base.
572         * tree-affine.h (get_inner_reference_aff): Change prototype.
574 2013-11-06  Tobias Burnus  <burnus@net-b.de>
576         * doc/invoke.texi (Wdate-time): Fix typo.
578 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
580         * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
581         cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
582         fp_arith_reg_operand instead of arith_reg_operand.
584 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
586         * config/sh/sh.md (adddi3): Remove empty constraints.
587         Remove can_create_pseudo_p and arith_reg_operand check.
588         (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
589         Split before reload.
591 2013-11-06  Jeff Law  <law@redhat.com>
592             Tom Tromey  <tromey@redhat.com>
594         * gdbinit.in: Disable strict type checking.
596 2013-11-06  Vladimir Makarov  <vmakarov@redhat.com>
598         * tree-pass.h (make_pass_live_range_shrinkage): New external.
599         * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
600         * sched-rgn.c (gate_handle_live_range_shrinkage): New.
601         (rest_of_handle_live_range_shrinkage): Ditto
602         (class pass_live_range_shrinkage): Ditto.
603         (pass_data_live_range_shrinkage): Ditto.
604         (make_pass_live_range_shrinkage): Ditto.
605         * sched-int.h (initialize_live_range_shrinkage): New prototype.
606         (finish_live_range_shrinkage): Ditto.
607         * sched-deps.c (create_insn_reg_set): Make void return value.
608         * passes.def: Add pass_live_range_shrinkage.
609         * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
610         * haifa-sched.c (live_range_shrinkage_p): New.
611         (initialize_live_range_shrinkage, finish_live_range_shrinkage):
612         New functions.
613         (rank_for_schedule): Add code for pressure relief through live
614         range shrinkage.
615         (schedule_insn): Print more debug info.
616         (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
617         through live range shrinkage.
618         * doc/invoke.texi (-flive-range-shrinkage): New.
619         * common.opt (flive-range-shrinkage): New.
621 2013-11-06  Uros Bizjak  <ubizjak@gmail.com>
623         PR target/59021
624         * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
625         AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
626         (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
627         RTXes that return in AVX256 register.
629 2013-11-06  Richard Biener  <rguenther@suse.de>
631         PR tree-optimization/58653
632         * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
633         (prepare_initializers_chain): Adjust.
635 2013-11-06  Andrew MacLeod  <amacleod@redhat.com>
637         * gimple.h (block_in_transaction): Move to basic-block.h and rename.
638         (gimple_in_transaction): Use bb_in_transaction.
639         * basic-block.h (bb_in_transaction): Relocate here and rename.
640         * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
642 2013-11-06  Richard Biener  <rguenther@suse.de>
644         * tree.c (drop_tree_overflow): New function.
645         * tree.h (drop_tree_overflow): Declare.
646         * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
647         * tree-vrp.c (range_int_cst_singleton_p): Use
648         is_overflow_infinity instead of testing TREE_OVERFLOW.
649         (extract_range_from_assert): Likewise.
650         (zero_nonzero_bits_from_vr): Likewise.
651         (extract_range_basic): Likewise.
652         (register_new_assert_for): Use drop_tree_overflow.
653         (vrp_visit_phi_node): Likewise.
655 2013-11-06  Eric Botcazou  <ebotcazou@adacore.com>
657         * config/i386/i386.c (ix86_expand_prologue): Optimize stack
658         checking for leaf functions without dynamic stack allocation.
659         * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
660         (ia64_expand_prologue): Likewise.
661         * config/mips/mips.c (mips_expand_prologue): Likewise.
662         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
663         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
664         (sparc_flat_expand_prologue): Likewise.
666 2013-11-06  James Greenhalgh  <james.greenhalgh@arm.com>
668         * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
669         (__ST3_LANE_FUNC): Likewise.
670         (__ST4_LANE_FUNC): Likewise.
672 2013-11-06  Nick Clifton  <nickc@redhat.com>
674         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
675         name returned by msp430_mcu_name.
676         (LIB_SPEC): If a -T option has not been specified then set a
677         default, mcu-specific, linker script.
678         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
679         * config/msp430/msp430.c (msp430x_names): Likewise.
680         Alpha sort the names for ease of comparison.
681         (msp430_mcu_name): New function:  Returns a string suitable for
682         use as a C preprocessor symbol based upon the name of the MCU
683         being targeted.
684         (msp430_option_override): Accept msp430x and msp430xv2 as generic
685         mcu names.
686         * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
688         * gcc.c (do_spec_1): Do not insert a space after a %* substitution
689         unless it is the last part of a spec substring.
690         * doc/invoke.texi (Spec Files): Document space insertion
691         behaviour of %*.
693 2013-11-06  Christian Bruel  <christian.bruel@st.com>
695         * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
696         Factorize probabilities, Use adjust_address instead of
697         adjust_automodify_address when possible. Enable for optimize.
698         (sh_expand_strlen): New function.
699         * config/sh/sh-protos.h (sh_expand_strlen): Declare.
700         * config/sh/sh.md (strlensi): New pattern.
701         (UNSPEC_BUILTIN_STRLEN): Define.
703 2013-11-06  Jakub Jelinek  <jakub@redhat.com>
705         PR middle-end/58970
706         * expr.c (get_bit_range): Handle *offset == NULL_TREE.
707         (expand_assignment): If *bitpos is negative, set *offset
708         and adjust *bitpos, so that it is not negative.
710 2013-11-06  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
712         * config/i386/bdver3.md : Added two additional decoder units
713         to support issue rate of 4 and remodeled vector unit.
714         * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
715         architectures is set to 4.
716         * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
717         lookahead is set to 4 for BD architectures.
719 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
721         * config/rs6000/rs6000.c (rs6000_option_override_internal):
722         Remove restriction against use of VSX instructions when generating
723         code for little endian mode.
725 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
727         * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
728         for both big and little endian.
729         (mulv8hi3): Swap input operands for merge high and merge low
730         instructions for little endian.
732 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
734         * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
735         define_insn to define_expand that uses even patterns for big
736         endian and odd patterns for little endian.
737         (vec_widen_smult_even_v16qi): Likewise.
738         (vec_widen_umult_even_v8hi): Likewise.
739         (vec_widen_smult_even_v8hi): Likewise.
740         (vec_widen_umult_odd_v16qi): Likewise.
741         (vec_widen_smult_odd_v16qi): Likewise.
742         (vec_widen_umult_odd_v8hi): Likewise.
743         (vec_widen_smult_odd_v8hi): Likewise.
744         (altivec_vmuleub): New define_insn.
745         (altivec_vmuloub): Likewise.
746         (altivec_vmulesb): Likewise.
747         (altivec_vmulosb): Likewise.
748         (altivec_vmuleuh): Likewise.
749         (altivec_vmulouh): Likewise.
750         (altivec_vmulesh): Likewise.
751         (altivec_vmulosh): Likewise.
753 2013-11-05  Mike Stump  <mikestump@comcast.net>
755         * Makefile.in (mostlyclean): Remove c-family objects.
757 2013-11-05  Ian Lance Taylor  <iant@google.com>
759         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
760         If possible, add .cfi directives to record change to bx.
761         * config/i386/i386.c (ix86_emit_cfi): New function.
762         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
764 2013-11-05  Steven Bosscher  <steven@gcc.gnu.org>
766         * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
767         immediately after a label for a tablejump pattern.
769         * config/arm/arm.c (is_jump_table): Remove.
770         (create_fix_barrier): Use tablejump_p instead.
771         (arm_reorg): Likewise.
772         (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
773         (thumb2_output_casesi): Likewise.
774         * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
775         * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
776         casesi_shift_media, casesi_load_media): Likewise.
777         * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
778         * config/microblaze/microblaze.md: Likewise.
780 2013-11-05  Tobias Burnus  <burnus@net-b.de>
782         * doc/invoke.texi (-Wdate-time): Document.
784 2013-11-05  Richard Sandiford  <rdsandiford@googlemail.com>
786         * double-int.c (lshift_double, rshift_double): Remove
787         SHIFT_COUNT_TRUNCATED handling.
789 2013-11-05  Jeff Law  <law@redhat.com>
791         * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
792         * common.opt (-fisolate-erroneous-paths): Add option and documentation.
793         * gimple-ssa-isolate-paths.c: New file.
794         * gimple.c (check_loadstore): New function.
795         (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
796         Verify OP is in the argument list and the argument corresponding
797         to OP is a pointer type.  Use operand_equal_p rather than
798         pointer equality when testing if OP is on the nonnull list.
799         Use check_loadstore rather than count_ptr_derefs.  Handle
800         GIMPLE_RETURN statements.
801         * tree-vrp.c (infer_nonnull_range): Remove.
802         * gimple.h (infer_nonnull_range): Declare.
803         * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
804         * passes.def: Add pass_isolate_erroneous_paths.
805         * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
806         * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
807         * tree-ssa.c (struct count_ptr_d): Remove.
808         (count_ptr_derefs, count_uses_and_derefs): Remove.
809         * tree-ssa.h (count_uses_and_derefs): Remove.
811 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
813         PR rtl-optimization/58997
814         * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
815         get_iv_value to be in iv->mode rather than iv->extend_mode.
816         (iv_extend): Likewise.  Otherwise, if iv->extend != extend,
817         use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
818         * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
819         mode.
821 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
823         * gimple.h: Move some prototypes to gimple-expr.h and add to include
824         list.
825         (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
826         Move to gimple-expr.h.
827         * gimple-expr.h: New file.  Relocate some prototypes from gimple.h.
828         (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
829         is_gimple_id, virtual_operand_p, is_gimple_addressable,
830         is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
831         Relocate here.
832         * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
833         gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
834         is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
835         is_gimple_address, is_gimple_invariant_address,
836         is_gimple_ip_invariant_address, is_gimple_min_invariant,
837         is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
838         virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
839         is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
840         gimple_decl_printable_name, useless_type_conversion_p,
841         types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
842         gimple-expr.[ch].
843         * gimple-expr.c: New File.
844         (useless_type_conversion_p, gimple_set_body, gimple_body,
845         gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
846         gimple_can_coalesce_p, extract_ops_from_tree_1,
847         gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
848         is_gimple_address, is_gimple_invariant_address,
849         is_gimple_ip_invariant_address, is_gimple_min_invariant,
850         is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
851         is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
852         is_gimple_mem_ref_addr): Relocate here.
853         * Makefile.in (OBJS): Add gimple-expr.o.
855 2013-11-05  David Malcolm  <dmalcolm@redhat.com>
857         * gengtype-parse.c (struct_field_seq): Support empty structs.
859 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
861         * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
863 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
865         * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
866         for !TARGET_80387.
867         * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
868         _SOFT_FLOAT here.
869         (LONG_DOUBLE_TYPE_SIZE): New define.
870         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
872 2013-11-05  Paolo Carlini  <paolo.carlini@oracle.com>
874         PR c++/58724
875         * doc/extend.texi [visibility ("visibility_type")]: Add example
876         about visibility attribute on namespace declaration.
878 2013-11-05  Richard Biener  <rguenther@suse.de>
880         PR ipa/58492
881         * passes.def (all_passes): Start with pass_fixup_cfg again.
883 2013-11-05  Richard Biener  <rguenther@suse.de>
885         PR tree-optimization/58955
886         * tree-loop-distribution.c (pg_add_dependence_edges): Fix
887         edge direction.
889 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
891         * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
892         little endian.
893         (vec_pack_ufix_trunc_v2df): Likewise.
895 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
897         PR middle-end/58981
898         * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
899         pattern, instead of word_mode.
901         * expr.c (emit_block_move_via_movmem): Don't use mode wider than
902         Pmode for size.
903         (set_storage_via_setmem): Likewise.
905 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
907         * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
908         gimple.h and the rest of the condition in eliminate_build.
909         (eliminate_build): Call new routine.
910         * gimple.h (phi_ssa_name_p): Delete.
912 2013-11-05  Trevor Saunders  <tsaunders@mozilla.com>
914         * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
915         case of no prefix and reserving zero slots, because when that's the
916         case we'll never get here.
917         * vec.h (va_heap::reserve): Don't try and handle
918         vec_prefix::calculate_allocation returning zero because that should
919         never happen.
921 2013-11-05  Richard Biener  <rguenther@suse.de>
923         PR middle-end/58941
924         * tree-dfa.c (get_ref_base_and_extent): Merge common code
925         in MEM_REF and TARGET_MEM_REF handling.  Make sure to
926         process trailing array detection before diving into the
927         view-converted object (and possibly apply some extra offset).
929 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
931         * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
932         New function.
933         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
935 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
937         PR tree-optimization/58958
938         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
939         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
941 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
943         * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
944         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
946 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
948         PR tree-optimization/58984
949         * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
950         set *SIZE_P if non-NULL on success.
951         (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
952         callers.
953         (ipcp_transform_function): Likewise.  Punt if size of access
954         is different from TYPE_SIZE on v->value's type.
956 2013-11-05  Tobias Burnus  <burnus@net-b.de>
958         * doc/invoke.texi (-fopenmp-simd): Document new option.
959         * gimplify.c (gimplify_body): Accept -fopenmp-simd.
960         * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
961         * tree.c (attribute_value_equal): Ditto.
963 2013-11-04  Wei Mi  <wmi@google.com>
965         * sched-rgn.c (add_branch_dependences): Keep insns in
966         a SCHED_GROUP at the end of BB to remain their location.
968 2013-11-04  Wei Mi  <wmi@google.com>
970         * config/i386/i386.c (memory_address_length): Extract a part
971         of code to rip_relative_addr_p.
972         (rip_relative_addr_p): New Function.
973         (ix86_macro_fusion_p): Ditto.
974         (ix86_macro_fusion_pair_p): Ditto.
975         * config/i386/i386.h: Add new tune features about macro-fusion.
976         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
977         * doc/tm.texi: Generated.
978         * doc/tm.texi.in: Ditto.
979         * haifa-sched.c (try_group_insn): New Function.
980         (group_insns_for_macro_fusion): Ditto.
981         (sched_init): Call group_insns_for_macro_fusion.
982         * target.def: Add two hooks: macro_fusion_p and
983         macro_fusion_pair_p.
985 2013-11-04  Kostya Serebryany  <kcc@google.com>
987         Update to match the changed asan API.
988         * asan.c (asan_function_start): New function.
989         (asan_emit_stack_protection): Update the string stored in the
990         stack red zone to match new API.  Store the PC of the current
991         function in the red zone.
992         (asan_global_struct): Update the __asan_global definition to match
993         the new API.
994         (asan_add_global): Ditto.
995         * asan.h (asan_function_start): New prototype.
996         * final.c (final_start_function): Call asan_function_start.
997         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
998         to __asan_init_v3.
1000 2013-11-04  Wei Mi  <wmi@google.com>
1002         * config/i386/i386-c.c (ix86_target_macros_internal): Separate
1003         PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
1004         * config/i386/i386.c (ix86_option_override_internal): Ditto.
1005         (ix86_issue_rate): Ditto.
1006         (ix86_adjust_cost): Ditto.
1007         (ia32_multipass_dfa_lookahead): Ditto.
1008         (ix86_sched_init_global): Ditto.
1009         (get_builtin_code_for_version): Ditto.
1010         * config/i386/i386.h (enum target_cpu_default): Ditto.
1011         (enum processor_type): Ditto.
1012         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
1014 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
1016         PR rtl-optimization/58967
1017         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
1018         !lra_in_progress for mode sizes bigger word.
1020 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1022         * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
1023         arguments to merge instruction for little endian.
1024         (vec_widen_umult_lo_v16qi): Likewise.
1025         (vec_widen_smult_hi_v16qi): Likewise.
1026         (vec_widen_smult_lo_v16qi): Likewise.
1027         (vec_widen_umult_hi_v8hi): Likewise.
1028         (vec_widen_umult_lo_v8hi): Likewise.
1029         (vec_widen_smult_hi_v8hi): Likewise.
1030         (vec_widen_smult_lo_v8hi): Likewise.
1032 2013-11-04  Ian Lance Taylor  <iant@google.com>
1034         * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
1035         * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
1036         builtins that take pointers.
1037         * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
1038         * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
1039         (run_gcc): Pass -fnon-call-exceptions.
1041 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
1043         * optabs.c (expand_vec_perm): Revert one incorrect line from
1044         2013-10-31 change.
1046         PR tree-optimization/58978
1047         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
1048         use_stmt by single_imm_use directly.  Only call single_imm_use
1049         on SSA_NAMEs.
1051 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
1053         PR rtl-optimization/58968
1054         * lra-spills.c (return_regno_p): New function.
1055         (lra_final_code_change): Use it.
1057 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
1059         * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
1060         * target.def (float_exceptions_rounding_supported_p): New hook.
1061         * targhooks.c (default_float_exceptions_rounding_supported_p): New
1062         function.
1063         * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
1064         * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
1065         New @hook.
1066         * doc/tm.texi: Regenerate.
1067         * config.gcc (powerpc*-*-linux*): Set extra_objs.
1068         * config/rs6000/rs6000-linux.c: New file.
1069         * config/rs6000/rs6000-protos.h
1070         (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
1071         * config/rs6000/linux.h
1072         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
1073         * config/rs6000/linux64.h
1074         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
1075         * config/rs6000/t-linux (rs6000-linux.o): New rule.
1076         * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
1078 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1080         * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
1081         Replace the define_insn_and_split with a define_insn and two
1082         define_splits, with the split after reload re-permuting the source
1083         register to its original value.
1084         (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
1085         (*vsx_le_perm_store_v8hi): Likewise.
1086         (*vsx_le_perm_store_v16qi): Likewise.
1088 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1090         * config/rs6000/vector.md (vec_pack_trunc_v2df):  Adjust for
1091         little endian.
1093 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
1095         PR tree-optimization/58946
1096         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
1097         bbs with bbinfo[idx].op != NULL before all blocks with
1098         bbinfo[idx].op == NULL.
1100 2013-11-04  Richard Sandiford  <rdsandiford@googlemail.com>
1102         * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
1103         (avr_dump_double_int_hex): Likewise.
1104         (avr_log_vadump): Remove %D and %X handling.
1105         * config/avr/avr.c (avr_double_int_push_digit): Delete.
1106         (avr_map_op_t): Change map from double_int to unsigned int.
1107         (avr_map_op): Update accordingly.
1108         (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
1109         (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
1110         unsigned ints rather than double_ints.
1112 2013-11-03  Marek Polacek  <polacek@redhat.com>
1114         Implement -fsanitize=vla-bound.
1115         * opts.c (common_handle_option): Handle vla-bound.
1116         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
1117         * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
1118         * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
1120 2013-11-02  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
1122         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
1123         little endian.
1125 2013-11-02  Uros Bizjak  <ubizjak@gmail.com>
1127         * config/i386/constraints.md (Ts, Tv): New address constrains.
1128         * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
1129         constraint for address_no_seg_operand.
1130         * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
1131         (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
1132         (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
1133         (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
1134         (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
1135         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
1136         (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
1137         (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
1138         constraint for vsib_address_operand.
1140 2013-11-02  Steven Bosscher  <steven@gcc.gnu.org>
1142         * gcse.c (pre_delete): Remove references to regmove from comments.
1143         * recog.c: (validate_replace_rtx_1): Likewise.
1144         * config/rl78/rl78.c: Likewise.
1145         * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
1146         * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
1147         * common/config/mmix/mmix-common.c: Likewise.
1149 2013-11-01  Trevor Saunders  <tsaunders@mozilla.com>
1151         * function.c (reorder_blocks): Convert block_stack to a stack_vec.
1152         * gimplify.c (gimplify_compound_lval): Likewise.
1153         * graphite-clast-to-gimple.c (gloog): Likewise.
1154         * graphite-dependences.c (loop_is_parallel_p): Likewise.
1155         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
1156         (limit_scop); Likewise.
1157         (build_scops): Likewise.
1158         (dot_scop): Likewise.
1159         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
1160         (build_scop_drs): Likewise.
1161         (insert_stmts): Likewise.
1162         (insert_out_of_ssa_copy): Likewise.
1163         (remove_phi): Likewise.
1164         (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
1165         * hw-doloop.c (discover_loop): Likewise.
1166         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
1167         * tree-dfa.c (dump_enumerated_decls): Likewise.
1168         * tree-if-conv.c (if_convertable_loop_p): Likewise.
1169         * tree-inline.c (tree_function_versioning): Likewise.
1170         * tree-loop-distribution.c (build_rdg): Likewise.
1171         (rdg_flag_vertex_and_dependent): Likewise.
1172         (distribute_loop): Likewise.
1173         * tree-parloops.c (loop_parallel_p): Likewise.
1174         (eliminate_local_variables): Likewise.
1175         (separate_decls_in_region): Likewise.
1176         * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
1177         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
1178         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
1179         * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
1180         * tree-vect-patterns.c (vect_pattern_recog): Likewise.
1181         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
1182         (vectorizable_condition): Likewise.
1184 2013-11-01  Uros Bizjak  <ubizjak@gmail.com>
1186         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
1187         * configure: Regenerate.
1188         * config/i386/i386.md (*movdi_internal): Change
1189         HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
1190         (*movdf_internal): Ditto.
1191         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
1192         * config/i386/sse.md (vec_concatv2di): Output interunit movq
1193         for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
1195 2013-10-31  Robert Suchanek  <Robert.Suchanek@imgtec.com>
1197         * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
1198         after comment.
1200 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
1202         Automated part of renaming of symtab_node_base to symtab_node.
1204         Patch autogenerated by rename_symtab.py from
1205         https://github.com/davidmalcolm/gcc-refactoring-scripts
1206         revision 58bb219cc090b2f4516a9297d868c245495ee622
1207         with ChangeLog entry fixed up by hand.
1209         * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
1210         symtab_node.
1211         (cgraph_node_for_asm): Likewise.
1212         * cgraph.h (symtab_node_base): Likewise.
1213         (cgraph_node): Likewise.
1214         (varpool_node): Likewise.
1215         (is_a_helper <cgraph_node>::test): Likewise.
1216         (is_a_helper <varpool_node>::test): Likewise.
1217         (symtab_nodes): Likewise.
1218         (symtab_register_node): Likewise.
1219         (symtab_unregister_node): Likewise.
1220         (symtab_remove_node): Likewise.
1221         (symtab_get_node): Likewise.
1222         (symtab_node_for_asm): Likewise.
1223         (symtab_node_asm_name): Likewise.
1224         (symtab_node_name): Likewise.
1225         (symtab_insert_node_to_hashtable): Likewise.
1226         (symtab_add_to_same_comdat_group): Likewise.
1227         (symtab_dissolve_same_comdat_group_list): Likewise.
1228         (dump_symtab_node): Likewise.
1229         (debug_symtab_node): Likewise.
1230         (dump_symtab_base): Likewise.
1231         (verify_symtab_node): Likewise.
1232         (verify_symtab_base): Likewise.
1233         (symtab_used_from_object_file_p): Likewise.
1234         (symtab_alias_ultimate_target): Likewise.
1235         (symtab_resolve_alias): Likewise.
1236         (fixup_same_cpp_alias_visibility): Likewise.
1237         (symtab_for_node_and_aliases): Likewise.
1238         (symtab_nonoverwritable_alias): Likewise.
1239         (availability symtab_node_availability): Likewise.
1240         (symtab_semantically_equivalent_p): Likewise.
1241         (fixup_same_cpp_alias_visibility): Likewise.
1242         (symtab_prevail_in_asm_name_hash): Likewise.
1243         (cgraph): Likewise.
1244         (varpool): Likewise.
1245         (varpool_first_variable): Likewise.
1246         (varpool_next_variable): Likewise.
1247         (varpool_first_static_initializer): Likewise.
1248         (varpool_next_static_initializer): Likewise.
1249         (varpool_first_defined_variable): Likewise.
1250         (varpool_next_defined_variable): Likewise.
1251         (cgraph_first_defined_function): Likewise.
1252         (cgraph_next_defined_function): Likewise.
1253         (cgraph_first_function): Likewise.
1254         (cgraph_next_function): Likewise.
1255         (cgraph_first_function_with_gimple_body): Likewise.
1256         (cgraph_next_function_with_gimple_body): Likewise.
1257         (symtab_alias_target): Likewise.
1258         (symtab_real_symbol_p): Likewise.
1259         (symtab_can_be_discarded): Likewise.
1260         * cgraphbuild.c (mark_address): Likewise.
1261         (mark_load): Likewise.
1262         (mark_store): Likewise.
1263         * cgraphunit.c (decide_is_symbol_needed): Likewise.
1264         (first): Likewise.
1265         (enqueue_node): Likewise.
1266         (referred_to_p): Likewise.
1267         (cgraph_process_same_body_aliases): Likewise.
1268         (analyze_functions): Likewise.
1269         (handle_alias_pairs): Likewise.
1270         (output_weakrefs): Likewise.
1271         (compile): Likewise.
1272         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
1273         * ipa-inline-analysis.c (inline_write_summary): Likewise.
1274         * ipa-prop.c (remove_described_reference): Likewise.
1275         (try_decrement_rdesc_refcount): Likewise.
1276         (ipa_edge_duplication_hook): Likewise.
1277         * ipa-ref.c (ipa_record_reference): Likewise.
1278         (ipa_maybe_record_reference): Likewise.
1279         (ipa_clone_ref): Likewise.
1280         (ipa_clone_references): Likewise.
1281         (ipa_clone_referring): Likewise.
1282         (ipa_find_reference): Likewise.
1283         (ipa_remove_stmt_references): Likewise.
1284         (ipa_clear_stmts_in_references): Likewise.
1285         * ipa-ref.h (symtab_node_base): Likewise.
1286         (ipa_ref): Likewise.
1287         (ipa_record_reference): Likewise.
1288         (ipa_maybe_record_reference): Likewise.
1289         (ipa_clone_references): Likewise.
1290         (ipa_clone_referring): Likewise.
1291         (ipa_clone_ref): Likewise.
1292         (ipa_find_reference): Likewise.
1293         (ipa_remove_stmt_references): Likewise.
1294         (ipa_clear_stmts_in_references): Likewise.
1295         * ipa-reference.c (ipa_reference_write_optimization_summary):
1296         Likewise.
1297         * ipa.c (enqueue_node): Likewise.
1298         (process_references): Likewise.
1299         (walk_polymorphic_call_targets): Likewise.
1300         (symtab_remove_unreachable_nodes): Likewise.
1301         (address_taken_from_non_vtable_p): Likewise.
1302         (comdat_can_be_unshared_p_1): Likewise.
1303         (comdat_can_be_unshared_p): Likewise.
1304         (can_replace_by_local_alias): Likewise.
1305         (function_and_variable_visibility): Likewise.
1306         * is-a.h: Likewise (within example in comment).
1307         * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
1308         (lto_symtab_encoder_encode): Likewise.
1309         (lto_symtab_encoder_delete_node): Likewise.
1310         (lto_symtab_encoder_in_partition_p): Likewise.
1311         (lto_set_symtab_encoder_in_partition): Likewise.
1312         (output_refs): Likewise.
1313         (compute_ltrans_boundary): Likewise.
1314         (output_symtab): Likewise.
1315         (input_node): Likewise.
1316         (input_ref): Likewise.
1317         (input_edge): Likewise.
1318         (input_cgraph_1): Likewise.
1319         (input_refs): Likewise.
1320         (output_cgraph_opt_summary): Likewise.
1321         (input_node_opt_summary): Likewise.
1322         (input_cgraph_opt_section): Likewise.
1323         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
1324         Likewise.
1325         * lto-streamer-out.c (lto_output): Likewise.
1326         (output_symbol_p): Likewise.
1327         (produce_symtab): Likewise.
1328         * lto-streamer.h (lto_encoder_entry): Likewise.
1329         (lto_free_function_in_decl_state_for_node): Likewise.
1330         (lto_symtab_encoder_encode): Likewise.
1331         (lto_symtab_encoder_delete_node): Likewise.
1332         (lto_symtab_encoder_in_partition_p): Likewise.
1333         (lto_set_symtab_encoder_in_partition): Likewise.
1334         (lto_symtab_encoder_lookup): Likewise.
1335         (lsei_node): Likewise.
1336         (lto_symtab_encoder_deref): Likewise.
1337         * symtab.c (symtab_hash): Likewise.
1338         (assembler_name_hash): Likewise.
1339         (symtab_nodes): Likewise.
1340         (hash_node): Likewise.
1341         (eq_node): Likewise.
1342         (hash_node_by_assembler_name): Likewise.
1343         (eq_assembler_name): Likewise.
1344         (insert_to_assembler_name_hash): Likewise.
1345         (unlink_from_assembler_name_hash): Likewise.
1346         (symtab_prevail_in_asm_name_hash): Likewise.
1347         (symtab_register_node): Likewise.
1348         (symtab_insert_node_to_hashtable): Likewise.
1349         (symtab_unregister_node): Likewise.
1350         (symtab_get_node): Likewise.
1351         (symtab_remove_node): Likewise.
1352         (symtab_initialize_asm_name_hash): Likewise.
1353         (symtab_node_for_asm): Likewise.
1354         (symtab_add_to_same_comdat_group): Likewise.
1355         (symtab_dissolve_same_comdat_group_list): Likewise.
1356         (symtab_node_asm_name): Likewise.
1357         (symtab_node_name): Likewise.
1358         (dump_symtab_base): Likewise.
1359         (dump_symtab_node): Likewise.
1360         (dump_symtab): Likewise.
1361         (debug_symtab_node): Likewise.
1362         (verify_symtab_base): Likewise.
1363         (verify_symtab_node): Likewise.
1364         (verify_symtab): Likewise.
1365         (symtab_used_from_object_file_p): Likewise.
1366         (symtab_node_availability): Likewise.
1367         (symtab_alias_ultimate_target): Likewise.
1368         (fixup_same_cpp_alias_visibility): Likewise.
1369         (symtab_resolve_alias): Likewise.
1370         (symtab_for_node_and_aliases): Likewise.
1371         (symtab_for_node_and_aliases): Likewise.
1372         (symtab_nonoverwritable_alias_1): Likewise.
1373         (symtab_nonoverwritable_alias): Likewise.
1374         (symtab_semantically_equivalent_p): Likewise.
1375         * value-prof.c (init_node_map): Likewise.
1376         * varasm.c (find_decl): Likewise.
1377         * varpool.c (varpool_node_for_asm): Likewise.
1378         (varpool_remove_unreferenced_decls): Likewise.
1380 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
1382         Manual part of renaming of symtab_node_base to symtab_node.
1384         * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
1385         clashes with the preferred name for the base class.
1386         (const_symtab_node): Remove redundant typedef.
1388 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
1390         * optabs.c (expand_vec_perm): Avoid vector mode punning
1391         SUBREGs in SET_DEST.
1392         * expmed.c (store_bit_field_1): Likewise.
1393         * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
1394         vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
1395         vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
1396         * config/i386/i386.c (ix86_expand_vector_move_misalign,
1397         ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
1398         ix86_expand_sse_unpack, ix86_expand_args_builtin,
1399         ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
1400         emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
1401         expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
1402         expand_vec_perm_vpshufb2_vpermq,
1403         expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
1404         expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
1405         ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
1406         (expand_vec_perm_palignr): Likewise.  Modify a copy of *d rather
1407         than *d itself.
1409 2013-10-31  Uros Bizjak  <ubizjak@gmail.com>
1411         * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
1412         Use gcc_unreachable for unhandled modes.  Do not check results of
1413         expand_simple_binop.  If not expanded to target, move the result.
1415 2013-10-31  Chung-Ju Wu  <jasonwucj@gmail.com>
1416             Shiva Chen  <shiva0217@gmail.com>
1418         * config.gcc (nds32*-*-*): Add nds32 target.
1419         * config/nds32/nds32.c: New file.
1420         * config/nds32/nds32.h: New file.
1421         * config/nds32/nds32.md: New file.
1422         * config/nds32/constants.md: New file.
1423         * config/nds32/constraints.md: New file.
1424         * config/nds32/iterators.md: New file.
1425         * config/nds32/nds32-doubleword.md: New file.
1426         * config/nds32/nds32-intrinsic.md: New file.
1427         * config/nds32/nds32_intrinsic.h: New file.
1428         * config/nds32/nds32-modes.def: New file.
1429         * config/nds32/nds32-multiple.md: New file.
1430         * config/nds32/nds32.opt: New file.
1431         * config/nds32/nds32-opts.h: New file.
1432         * config/nds32/nds32-protos.h: New file.
1433         * config/nds32/nds32-peephole2.md: New file.
1434         * config/nds32/pipelines.md: New file.
1435         * config/nds32/predicates.md: New file.
1436         * config/nds32/t-mlibs: New file.
1437         * common/config/nds32: New directory and files.
1439         * doc/invoke.texi (NDS32 options): Document nds32 specific options.
1440         * doc/md.texi (NDS32 family): Document nds32 specific constraints.
1441         * doc/install.texi (Cross-Compiler-Specific Options): Document
1442         --with-nds32-lib for nds32 target.
1443         * doc/extend.texi (Function Attributes, Target Builtins): Document
1444         nds32 specific attributes.
1446 2013-10-31  Vladimir Makarov  <vmakarov@redhat.com>
1448         * lra-constraints (process_alt_operands): Use the result
1449         elimination register for operand when matching constraints.
1451 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
1453         * tree-vrp.c (maybe_set_nonzero_bits): New function.
1454         (remove_range_assertions): Call it.
1456         * tree.c (tree_ctz): New function.
1457         * tree.h (tree_ctz): New prototype.
1458         * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
1459         first argument from tree to const_tree.
1460         * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
1461         * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
1462         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
1463         static.
1464         * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
1465         * tree-vect-loop.c (vect_analyze_loop_operations,
1466         vect_transform_loop): Don't force scalar loop for bound just because
1467         number of iterations is unknown, only do it if it is not known to be
1468         a multiple of vectorization_factor.
1469         * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
1471         * gimple-pretty-print.c (dump_ssaname_info): Print newline also
1472         in case of VR_VARYING.  Print get_nonzero_bits if not all ones.
1473         * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
1474         (set_nonzero_bits, get_nonzero_bits): New prototypes.
1475         * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
1476         a default def isn't partially constant.
1477         (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
1478         is known to be partially zero.
1479         (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
1480         to see if a default def isn't partially constant.
1481         * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
1482         creation of a range, if VR_RANGE, try to improve nonzero_bits from
1483         the range.
1484         (set_nonzero_bits, get_nonzero_bits): New functions.
1486         * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
1487         * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
1488         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
1489         (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
1490         uses but in the condition and ASSERT_EXPR and the other successor of
1491         the predecessor bb is __builtin_unreachable (), set_range_info of the
1492         ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
1494 2013-10-31  Martin Jambor  <mjambor@suse.cz>
1496         PR rtl-optimization/58934
1497         Revert:
1498         2013-10-30  Martin Jambor  <mjambor@suse.cz>
1499         PR rtl-optimization/10474
1500         * ira.c (find_moveable_pseudos): Do not calculate dominance info
1501         nor df analysis.
1502         (interesting_dest_for_shprep): New function.
1503         (split_live_ranges_for_shrink_wrap): Likewise.
1504         (ira): Calculate dominance info and df analysis. Call
1505         split_live_ranges_for_shrink_wrap.
1507 2013-10-31  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
1508             Yury Gribov  <y.gribov@samsung.com>
1510         PR sanitizer/58543
1511         * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
1512         shadow pointer to avoid clobbering the main one.
1514 2013-10-31  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
1516         * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
1518 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
1520         PR bootstrap/58933
1521         * ira-color.c (update_costs_from_copies): Add new parameter.  Use
1522         it for calling update_costs_from_allocno.
1523         (assign_hard_reg): Call restore_costs_from_copies only for
1524         !retry_p.  Pass new argument to update_costs_from_copies.
1525         (color_pass): Pass new argument to update_costs_from_copies.
1526         (ira_mark_allocation_change): Ditto.
1528 2013-10-30  Sharad Singhai  <singhai@google.com>
1530         PR middle-end/58134
1531         * opts.c (common_handle_option): Remove deprecated option
1532         -ftree-vectorizer-verbose.
1533         * doc/invoke.texi (Debugging Options): Ditto.
1534         * opts-global.c (handle_common_deferred_options): Ditto.
1535         (dump_remap_tree_vectorizer_verbose): Delete.
1536         * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
1538 2013-10-30  DJ Delorie  <dj@redhat.com>
1540         * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
1541         that take no arguments.
1543 2013-10-30  Joern Rennecke  <joern.rennecke@embecosm.com>
1545         PR other/58545
1546         * reload1.c (update_eliminables_and_spill): New function, broken
1547         out of reload.
1548         (reload): Use it.  Check for frame size change after frame size
1549         alignment, and call update_eliminables_and_spill first if continue-ing.
1551 2013-10-30  Cong Hou  <congh@google.com>
1553         PR target/58762
1554         * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
1555         * config/i386/i386.c (ix86_expand_sse2_abs): New function.
1556         * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
1558 2013-10-18  Mikael Pettersson  <mikpelinux@gmail.com>
1560         PR rtl-optimization/58369
1561         * reload1.c (compute_reload_subreg_offset): New function.
1562         (choose_reload_regs): Use it to pass endian-correct
1563         offset to subreg_regno_offset.
1565 2013-10-30  Tobias Burnus  <burnus@net-b.de>
1567         PR other/33426
1568         * tree-cfg.c (replace_loop_annotate): Replace warning by
1569         warning_at.
1571 2013-10-30  Jason Merrill  <jason@redhat.com>
1573         * configure.ac (loose_warn): Add -Wno-format if
1574         --disable-build-format-warnings.
1576 2013-10-30  David Malcolm  <dmalcolm@redhat.com>
1578         * cgraphunit.c (analyze_functions): Split symtab_node declarations
1579         onto multiple lines to make things easier for rename_symtab.py.
1581         * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
1582         (symtab_semantically_equivalent_p): Likewise.
1584 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
1586         PR target/58784
1587         * lra.c (check_rtl): Remove address check before LRA work.
1589 2013-10-30  Marc Glisse  <marc.glisse@inria.fr>
1591         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
1592         POINTER_PLUS_EXPR in the defining statement.
1594 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
1596         * regmove.c: Remove.
1597         * tree-pass.h (make_pass_regmove): Remove.
1598         * timevar.def (TV_REGMOVE): Remove.
1599         * passes.def (pass_regmove): Remove.
1600         * opts.c (default_options_table): Remove entry for regmove.
1601         * doc/passes.texi: Remove regmove pass description.
1602         * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
1603         options.
1604         (-fdump-rtl-regmove): Ditto.
1605         * common.opt (foptimize-register-move, fregmove): Ignore.
1606         * Makefile.in (OBJS): Remove regmove.o.
1607         * regmove.c: Remove.
1608         * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
1609         and type.
1610         (struct ira_allocno) New member allocno_prefs.
1611         (ALLOCNO_PREFS): New macro.
1612         (ira_prefs, ira_prefs_num): New external vars.
1613         (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
1614         (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
1615         (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
1616         Ditto.
1617         (ira_add_allocno_copy_to_list): Remove prototype.
1618         (ira_swap_allocno_copy_ends_if_necessary): Ditto.
1619         (ira_pref_iterator): New type.
1620         (ira_pref_iter_init, ira_pref_iter_cond): New functions.
1621         (FOR_EACH_PREF): New macro.
1622         * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
1623         (ira_get_dup_out_num): Ditto. Rename from get_dup_num.  Modify the
1624         code.
1625         (ira_setup_alts): New function.
1626         (decrease_live_ranges_number): New function.
1627         (ira): Call the above function.
1628         * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
1629         (ira_create_allocno): Initialize allocno prefs.
1630         (pref_pool, pref_vec): New static vars.
1631         (initiate_prefs, find_allocno_pref, ira_create_pref): New
1632         functions.
1633         (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
1634         (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
1635         (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
1636         (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
1637         (ira_add_allocno_copy_to_list): Make static.  Rename to
1638         add_allocno_copy_to_list.
1639         (ira_swap_allocno_copy_ends_if_necessary): Make static.  Rename to
1640         swap_allocno_copy_ends_if_necessary.
1641         (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
1642         ira_remove_allocno_prefs.
1643         (ira_flattening): Ditto.
1644         (ira_build): Call initiate_prefs, print_prefs.
1645         (ira_destroy): Call finish_prefs.
1646         * ira-color.c (struct update_cost_record): New.
1647         (struct allocno_color_data): Add new member update_cost_records.
1648         (update_cost_record_pool): New static var.
1649         (init_update_cost_records, get_update_cost_record): New functions.
1650         (free_update_cost_record_list, finish_update_cost_records): Ditto.
1651         (struct update_cost_queue_elem): Add member from.
1652         (initiate_cost_update): Call init_update_cost_records.
1653         (finish_cost_update): Call finish_update_cost_records.
1654         (queue_update_cost, get_next_update_cost): Add new param from.
1655         (Update_allocno_cost, update_costs_from_allocno): New functions.
1656         (update_costs_from_prefs): Ditto.
1657         (update_copy_costs): Rename to update_costs_from_copies.
1658         (restore_costs_from_copies): New function.
1659         (update_conflict_hard_regno_costs): Don't go back.
1660         (assign_hard_reg): Call restore_costs_from_copies.  Add printing
1661         more debug info.
1662         (pop_allocnos): Add priniting more debug info.
1663         (color_allocnos): Remove prefs for conflicting hard regs.
1664         Call update_costs_from_prefs.
1665         * ira-conflicts.c (commutative_constraint_p): Move to ira.c
1666         (get_dup_num): Rename, modify, and move to ira.c
1667         (process_regs_for_copy): Add prefs.
1668         (add_insn_allocno_copies): Put src as first arg of
1669         process_regs_for_copy.  Remove dead code.  Call ira_setup_alts.
1670         * ira-costs.c (record_reg_classes): Modify and move code into
1671         record_operands_costs.
1672         (find_costs_and_classes): Create prefs for the hard reg of small
1673         reg class.
1674         (process_bb_node_for_hard_reg_moves): Add prefs.
1676 2013-10-30  Richard Biener  <rguenther@suse.de>
1678         PR middle-end/57100
1679         * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
1680         * cfganal.c (pre_and_rev_post_order_compute_fn): New function
1681         as worker for ...
1682         (pre_and_rev_post_order_compute): ... which now wraps it.
1683         * graph.c (draw_cfg_nodes_no_loops): Use
1684         pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
1685         on cfun.
1687 2013-10-30  Christian Bruel  <christian.bruel@st.com>
1689         * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
1690         (sh_expand_cmpstr): Handle known align and schedule improvements.
1691         * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
1692         * config/sh/sh.md (cmpstrnsi): New pattern.
1694 2013-10-30  Martin Jambor  <mjambor@suse.cz>
1696         PR rtl-optimization/10474
1697         * ira.c (find_moveable_pseudos): Do not calculate dominance info
1698         nor df analysis.
1699         (interesting_dest_for_shprep): New function.
1700         (split_live_ranges_for_shrink_wrap): Likewise.
1701         (ira): Calculate dominance info and df analysis. Call
1702         split_live_ranges_for_shrink_wrap.
1704 2013-10-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1706         PR target/58854
1707         * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
1709 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
1711         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
1712         * tree.h (POINTER_BOUNDS_P): New.
1713         (BOUNDED_TYPE_P): New.
1714         (BOUNDED_P): New.
1715         (pointer_bounds_type_node): New.
1716         * tree.c (build_common_tree_nodes): Initialize
1717         pointer_bounds_type_node.
1718         * gimple.h (gimple_call_get_nobnd_arg_index): New.
1719         (gimple_call_num_nobnd_args): New.
1720         (gimple_call_nobnd_arg): New.
1721         (gimple_return_retbnd): New.
1722         (gimple_return_set_retbnd): New
1723         * gimple.c (gimple_build_return): Increase number of ops
1724         for return statement.
1725         (gimple_call_get_nobnd_arg_index): New.
1726         * gimple-pretty-print.c (dump_gimple_return): Print second op.
1728 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
1730         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
1731         with "chkp ctor" and "bnd_legacy" attributes.
1732         * gimplify.c (gimplify_init_constructor): Avoid infinite
1733         loop during gimplification of bounds initializer.
1735 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
1737         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
1738         (handle_bnd_legacy): New.
1739         (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
1740         * doc/extend.texi: Document bnd_variable_size and bnd_legacy
1741         attributes.
1743 2013-10-29  Ilya Enkovich  <ilya.enkovich@intel.com>
1745         * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
1746         (BT_FN_PTR_CONST_PTR): New.
1747         (BT_FN_CONST_PTR_CONST_PTR): New.
1748         (BT_FN_PTR_CONST_PTR_SIZE): New.
1749         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
1750         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
1751         (BT_FN_VOID_CONST_PTR_SIZE): New.
1752         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
1753         * chkp-builtins.def: New.
1754         * builtins.def: include chkp-builtins.def.
1755         (DEF_CHKP_BUILTIN): New.
1756         * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
1757         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
1758         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
1759         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
1760         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
1761         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
1762         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
1763         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
1764         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
1765         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
1766         * common.opt (fcheck-pointer-bounds): New.
1767         * toplev.c (process_options): Check Pointer Bounds Checker is
1768         supported.
1769         * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
1771 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
1773         * target.def (builtin_chkp_function): New.
1774         (chkp_bound_type): New.
1775         (chkp_bound_mode): New.
1776         (fn_abi_va_list_bounds_size): New.
1777         (load_bounds_for_arg): New.
1778         (store_bounds_for_arg): New.
1779         * targhooks.h (default_load_bounds_for_arg): New.
1780         (default_store_bounds_for_arg): New.
1781         (default_fn_abi_va_list_bounds_size): New.
1782         (default_chkp_bound_type): New.
1783         (default_chkp_bound_mode): New.
1784         (default_builtin_chkp_function): New.
1785         * targhooks.c (default_load_bounds_for_arg): New.
1786         (default_store_bounds_for_arg): New.
1787         (default_fn_abi_va_list_bounds_size): New.
1788         (default_chkp_bound_type): New.
1789         (default_chkp_bound_mode); New.
1790         (default_builtin_chkp_function): New.
1791         * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
1792         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
1793         (TARGET_STORE_BOUNDS_FOR_ARG): New.
1794         (TARGET_BUILTIN_CHKP_FUNCTION): New.
1795         (TARGET_CHKP_BOUND_TYPE): New.
1796         (TARGET_CHKP_BOUND_MODE): New.
1797         * doc/tm.texi: Regenerated.
1798         * langhooks.h (lang_hooks): Add chkp_supported field.
1799         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
1800         (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
1802 2013-10-29  Andrew Pinski <apinski@cavium.com>
1804         * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
1805         (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
1806         fails, combining the branches anyways.
1807         (tree_ssa_ifcombine): Inverse the order of the basic block walk,
1808         increases the number of combinings.
1809         * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
1811 2013-10-29  Mike Stump  <mikestump@comcast.net>
1813         * machmode.def (PARTIAL_INT_MODE): Add precision and name.
1814         * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
1815         (make_vector_mode): Increase namebuf to 16.
1816         (emit_insn_modes_h): When processing BImode, don't
1817         also match partial int modes.
1818         (emit_class_narrowest_mode): Likewise.
1820         * config/bfin/bfin-modes.def: Add precision to PDI.
1821         * config/m32c/m32c-modes.def: Add precision to PSI.
1822         * config/msp430/msp430-modes.def: Add precision to PSI.
1823         * config/rs6000/rs6000-modes.def: Add precision to PTI.
1824         * config/sh/sh-modes.def: Add precision to PSI and PDI.
1826 2013-10-29  Oleg Endo  <olegendo@gcc.gnu.org>
1828         PR target/54236
1829         * config/sh/sh.md (*addc): Rename existing variations to ...
1830         (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
1831         (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
1832         *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
1833         * config/sh/sh.c (addsubcosts): Handle some addc special cases.
1835 2013-10-29  Teresa Johnson  <tejohnson@google.com>
1837         PR ipa/58862
1838         * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
1839         insanities when updating probabilities.
1841 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
1843         * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
1844         prettyprinter for cgraph_node to reflect the conversion of the
1845         symtable types to a C++ class hierarchy: it now *is* a
1846         symtab_node_base, rather than having one (named "symbol").
1848 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1850         * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
1851         __cilkrts_pop_frame.  If matched, then return true for built-in
1852         function name.
1853         (expand_builtin): Added BUILT_IN_CILK_DETACH and
1854         BUILT_IN_CILK_POP_FRAME case.
1855         * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
1856         (lhs_cilk_detect_spawn): Likewise.
1857         (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
1858         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
1859         (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
1860         (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
1861         (LANG_HOOKS_CILKPLUS): Likewise.
1862         * tree.h (CILK_SPAWN_FN): Likewise.
1863         * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
1864         * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
1865         (OBJS): Added cilk-common.o.
1866         (BUILTINS_DEF): Added cilk-builtins.def.
1867         * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
1868         (lhd_cilk_detect_spawn): Likewise.
1869         * langhooks.h (lang_hooks_for_cilkplus): New struct.
1870         (struct lang_hooks): Added new field called "cilkplus."
1871         * cilk-common.c: New file.
1872         * cilk.h: Likewise.
1873         * cilk-builtins.def: Likewise.
1874         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
1875         "__cilk" macro and set it to 200.
1876         * function.h (struct function::cilk_frame_decl): New field.
1877         (struct function::is_cilk_function): Likewise.
1878         (struct function::calls_cilk_spawn): Likewise.
1879         * gimplify.c (gimplify_call_expr): Added a check if the function call
1880         being gimplified is a spawn detach point.  If so, then add pop_frame
1881         and detach function calls.
1882         (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
1883         for gimplifying _Cilk_spawn and _Cilk_sync statements.
1884         (gimplify_return_expr): Added a check for _Cilk_spawn usage in
1885         function.  If so, added a _Cilk_sync and gimplified it.
1886         (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
1887         INIT_EXPRs.  If so, then call gimplify_cilk_spawn.
1888         * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
1889         spawner function.
1890         (can_inline_edge_p): Prevent inling of spawnee function.
1891         * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
1892         for functions that use Cilk keywords.
1893         * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
1894         * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
1895         CILK_SYNC_STMT cases.
1896         * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
1897         trees.
1898         * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
1899         (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
1900         * passes.texi (Cilk Keywords): New section that describes the compiler
1901         code changes for handling Cilk Keywords.
1903 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
1905         Patch autogenerated by refactor_symtab.py from
1906         https://github.com/davidmalcolm/gcc-refactoring-scripts
1907         revision 58bb219cc090b2f4516a9297d868c245495ee622
1909         * asan.c (asan_finish_file): Update for conversion of symtab types to
1910         a true class hierarchy.
1911         * cfgexpand.c (estimated_stack_frame_size): Likewise.
1912         * cgraph.c (cgraph_get_body): Likewise.
1913         (cgraph_get_create_real_symbol_node): Likewise.
1914         (verify_cgraph_node): Likewise.
1915         (verify_edge_corresponds_to_fndecl): Likewise.
1916         (verify_edge_count_and_frequency): Likewise.
1917         (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
1918         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
1919         (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
1920         (cgraph_node_cannot_return): Likewise.
1921         (cgraph_set_pure_flag_1): Likewise.
1922         (cgraph_set_const_flag_1): Likewise.
1923         (cgraph_set_nothrow_flag_1): Likewise.
1924         (cgraph_make_node_local_1): Likewise.
1925         (cgraph_for_node_and_aliases): Likewise.
1926         (cgraph_for_node_thunks_and_aliases): Likewise.
1927         (cgraph_node_can_be_local_p): Likewise.
1928         (cgraph_node_cannot_be_local_p_1): Likewise.
1929         (cgraph_function_body_availability): Likewise.
1930         (dump_cgraph_node): Likewise.
1931         (cgraph_rtl_info): Likewise.
1932         (cgraph_mark_address_taken_node): Likewise.
1933         (cgraph_remove_node): Likewise.
1934         (cgraph_release_function_body): Likewise.
1935         (cgraph_update_edges_for_call_stmt_node): Likewise.
1936         (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
1937         (cgraph_make_edge_direct): Likewise.
1938         (cgraph_resolve_speculation): Likewise.
1939         (cgraph_speculative_call_info): Likewise.
1940         (cgraph_turn_edge_to_speculative): Likewise.
1941         (cgraph_create_edge_1): Likewise.
1942         (cgraph_set_call_stmt): Likewise.
1943         (cgraph_node_for_asm): Likewise.
1944         (cgraph_add_thunk): Likewise.
1945         (cgraph_same_body_alias): Likewise.
1946         (cgraph_create_function_alias): Likewise.
1947         (cgraph_create_node): Likewise.
1948         (cgraph_create_empty_node): Likewise.
1949         (record_function_versions): Likewise.
1950         (used_from_object_file_p): Likewise.
1951         * cgraph.h (symtab_can_be_discarded): Likewise.
1952         (symtab_real_symbol_p): Likewise.
1953         (cgraph_mark_force_output_node): Likewise.
1954         (cgraph_edge_recursive_p): Likewise.
1955         (symtab_alias_target): Likewise.
1956         (varpool_all_refs_explicit_p): Likewise.
1957         (varpool_can_remove_if_no_refs): Likewise.
1958         (cgraph_only_called_directly_or_aliased_p): Likewise.
1959         (cgraph_next_function_with_gimple_body): Likewise.
1960         (cgraph_first_function_with_gimple_body): Likewise.
1961         (cgraph_function_with_gimple_body_p): Likewise.
1962         (cgraph_next_function): Likewise.
1963         (cgraph_first_function): Likewise.
1964         (cgraph_next_defined_function): Likewise.
1965         (cgraph_first_defined_function): Likewise.
1966         (varpool_next_defined_variable): Likewise.
1967         (varpool_first_defined_variable): Likewise.
1968         (varpool_next_static_initializer): Likewise.
1969         (varpool_first_static_initializer): Likewise.
1970         (varpool_next_variable): Likewise.
1971         (varpool_first_variable): Likewise.
1972         (varpool_node_name): Likewise.
1973         (varpool): Likewise.
1974         (cgraph): Likewise.
1975         (is_a_helper <varpool_node>::test): Likewise.
1976         (is_a_helper <cgraph_node>::test): Likewise.
1977         (varpool_variable_node): Likewise.
1978         (cgraph_function_or_thunk_node): Likewise.
1979         (varpool_alias_target): Likewise.
1980         (cgraph_alias_target): Likewise.
1981         (cgraph_node_name): Likewise.
1982         (varpool_node_asm_name): Likewise.
1983         (cgraph_node_asm_name): Likewise.
1984         * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
1985         (cgraph_rebuild_references): Likewise.
1986         (rebuild_cgraph_edges): Likewise.
1987         (record_eh_tables): Likewise.
1988         (build_cgraph_edges): Likewise.
1989         (mark_store): Likewise.
1990         (mark_load): Likewise.
1991         (mark_address): Likewise.
1992         (record_type_list): Likewise.
1993         (record_reference): Likewise.
1994         * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
1995         (cgraph_materialize_clone): Likewise.
1996         (cgraph_function_versioning): Likewise.
1997         (cgraph_copy_node_for_versioning): Likewise.
1998         (update_call_expr): Likewise.
1999         (cgraph_find_replacement_node): Likewise.
2000         (cgraph_create_virtual_clone): Likewise.
2001         (cgraph_clone_node): Likewise.
2002         * cgraphunit.c (compile): Likewise.
2003         (output_weakrefs): Likewise.
2004         (output_in_order): Likewise.
2005         (expand_function): Likewise.
2006         (assemble_thunks_and_aliases): Likewise.
2007         (expand_thunk): Likewise.
2008         (mark_functions_to_output): Likewise.
2009         (handle_alias_pairs): Likewise.
2010         (analyze_functions): Likewise.
2011         (walk_polymorphic_call_targets): Likewise.
2012         (varpool_finalize_decl): Likewise.
2013         (process_function_and_variable_attributes): Likewise.
2014         (cgraph_process_same_body_aliases): Likewise.
2015         (analyze_function): Likewise.
2016         (cgraph_add_new_function): Likewise.
2017         (cgraph_finalize_function): Likewise.
2018         (referred_to_p): Likewise.
2019         (cgraph_reset_node): Likewise.
2020         (cgraph_process_new_functions): Likewise.
2021         (enqueue_node): Likewise.
2022         (decide_is_symbol_needed): Likewise.
2023         * coverage.c (coverage_compute_profile_id): Likewise.
2024         * dbxout.c (dbxout_expand_expr): Likewise.
2025         * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
2026         (reference_to_unused): Likewise.
2027         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
2028         * gimplify.c (unvisit_body): Likewise.
2029         (unshare_body): Likewise.
2030         * ipa-cp.c (ipcp_generate_summary): Likewise.
2031         (ipcp_decision_stage): Likewise.
2032         (identify_dead_nodes): Likewise.
2033         (decide_whether_version_node): Likewise.
2034         (decide_about_value): Likewise.
2035         (perhaps_add_new_callers): Likewise.
2036         (create_specialized_node): Likewise.
2037         (update_profiling_info): Likewise.
2038         (ipcp_propagate_stage): Likewise.
2039         (estimate_local_effects): Likewise.
2040         (good_cloning_opportunity_p): Likewise.
2041         (devirtualization_time_bonus): Likewise.
2042         (propagate_constants_accross_call): Likewise.
2043         (initialize_node_lattices): Likewise.
2044         (ipcp_cloning_candidate_p): Likewise.
2045         (determine_versionability): Likewise.
2046         (print_all_lattices): Likewise.
2047         (print_lattice): Likewise.
2048         (ipcp_discover_new_direct_edges): Likewise.
2049         * ipa-devirt.c (ipa_devirt): Likewise.
2050         (likely_target_p): Likewise.
2051         (update_type_inheritance_graph): Likewise.
2052         (possible_polymorphic_call_target_p): Likewise.
2053         (dump_possible_polymorphic_call_targets): Likewise.
2054         (devirt_variable_node_removal_hook): Likewise.
2055         (record_binfo): Likewise.
2056         (maybe_record_node): Likewise.
2057         (build_type_inheritance_graph): Likewise.
2058         * ipa-inline-analysis.c (inline_write_summary): Likewise.
2059         (inline_generate_summary): Likewise.
2060         (inline_analyze_function): Likewise.
2061         (do_estimate_growth): Likewise.
2062         (simple_edge_hints): Likewise.
2063         (estimate_node_size_and_time): Likewise.
2064         (estimate_edge_devirt_benefit): Likewise.
2065         (compute_inline_parameters): Likewise.
2066         (estimate_function_body_sizes): Likewise.
2067         (compute_bb_predicates): Likewise.
2068         (initialize_inline_failed): Likewise.
2069         (dump_inline_summary): Likewise.
2070         (dump_inline_edge_summary): Likewise.
2071         * ipa-inline-transform.c (inline_transform): Likewise.
2072         (preserve_function_body_p): Likewise.
2073         (save_inline_function_body): Likewise.
2074         (inline_call): Likewise.
2075         (clone_inlined_nodes): Likewise.
2076         (can_remove_node_now_p): Likewise.
2077         (can_remove_node_now_p_1): Likewise.
2078         * ipa-inline.c (early_inliner): Likewise.
2079         (early_inline_small_functions): Likewise.
2080         (inline_always_inline_functions): Likewise.
2081         (ipa_inline): Likewise.
2082         (flatten_function): Likewise.
2083         (inline_small_functions): Likewise.
2084         (speculation_useful_p): Likewise.
2085         (recursive_inlining): Likewise.
2086         (update_caller_keys): Likewise.
2087         (reset_edge_caches): Likewise.
2088         (update_edge_key): Likewise.
2089         (edge_badness): Likewise.
2090         (relative_time_benefit): Likewise.
2091         (want_inline_self_recursive_call_p): Likewise.
2092         (want_inline_small_function_p): Likewise.
2093         (want_early_inline_function_p): Likewise.
2094         (num_calls): Likewise.
2095         (can_early_inline_edge_p): Likewise.
2096         (can_inline_edge_p): Likewise.
2097         (report_inline_failed_reason): Likewise.
2098         * ipa-profile.c (ipa_profile): Likewise.
2099         (ipa_propagate_frequency): Likewise.
2100         (ipa_propagate_frequency_1): Likewise.
2101         (ipa_profile_generate_summary): Likewise.
2102         * ipa-prop.c (ipcp_transform_function): Likewise.
2103         (read_replacements_section): Likewise.
2104         (ipa_prop_read_section): Likewise.
2105         (ipa_modify_call_arguments): Likewise.
2106         (ipa_print_node_params): Likewise.
2107         (propagate_controlled_uses): Likewise.
2108         (update_indirect_edges_after_inlining): Likewise.
2109         (remove_described_reference): Likewise.
2110         (ipa_make_edge_direct_to_target): Likewise.
2111         (ipa_analyze_node): Likewise.
2112         (ipa_analyze_params_uses): Likewise.
2113         (ipa_compute_jump_functions): Likewise.
2114         (ipa_get_callee_param_type): Likewise.
2115         (ipa_print_node_jump_functions): Likewise.
2116         (ipa_initialize_node_params): Likewise.
2117         (ipa_populate_param_decls): Likewise.
2118         (ipa_func_spec_opts_forbid_analysis_p): Likewise.
2119         (write_agg_replacement_chain): Likewise.
2120         (ipa_write_node_info): Likewise.
2121         (ipa_edge_duplication_hook): Likewise.
2122         (try_decrement_rdesc_refcount): Likewise.
2123         * ipa-pure-const.c (propagate_nothrow): Likewise.
2124         (propagate_pure_const): Likewise.
2125         (pure_const_read_summary): Likewise.
2126         (pure_const_write_summary): Likewise.
2127         (analyze_function): Likewise.
2128         * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
2129         (ipa_ref_referring_ref_list): Likewise.
2130         * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
2131         (ipa_remove_stmt_references): Likewise.
2132         (ipa_find_reference): Likewise.
2133         (ipa_dump_referring): Likewise.
2134         (ipa_dump_references): Likewise.
2135         (ipa_record_reference): Likewise.
2136         * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
2137         (ipa_reference_write_optimization_summary): Likewise.
2138         (write_node_summary_p): Likewise.
2139         (propagate): Likewise.
2140         (read_write_all_from_decl): Likewise.
2141         (generate_summary): Likewise.
2142         (analyze_function): Likewise.
2143         (propagate_bits): Likewise.
2144         (ipa_reference_get_not_written_global): Likewise.
2145         (ipa_reference_get_not_read_global): Likewise.
2146         * ipa-split.c (execute_split_functions): Likewise.
2147         (split_function): Likewise.
2148         * ipa-utils.c (ipa_merge_profiles): Likewise.
2149         (dump_cgraph_node_set): Likewise.
2150         (ipa_reverse_postorder): Likewise.
2151         (ipa_edge_within_scc): Likewise.
2152         (ipa_get_nodes_in_cycle): Likewise.
2153         (ipa_free_postorder_info): Likewise.
2154         (ipa_reduced_postorder): Likewise.
2155         (searchc): Likewise.
2156         (recursive_call_p): Likewise.
2157         * ipa.c (ipa_cdtor_merge): Likewise.
2158         (record_cdtor_fn): Likewise.
2159         (function_and_variable_visibility): Likewise.
2160         (varpool_externally_visible_p): Likewise.
2161         (cgraph_externally_visible_p): Likewise.
2162         (comdat_can_be_unshared_p): Likewise.
2163         (comdat_can_be_unshared_p_1): Likewise.
2164         (address_taken_from_non_vtable_p): Likewise.
2165         (ipa_discover_readonly_nonaddressable_vars): Likewise.
2166         (symtab_remove_unreachable_nodes): Likewise.
2167         (walk_polymorphic_call_targets): Likewise.
2168         (process_references): Likewise.
2169         (enqueue_node): Likewise.
2170         (has_addr_references_p): Likewise.
2171         (cgraph_non_local_node_p_1): Likewise.
2172         * is-a.h (varpool_analyze_node): Likewise.
2173         * lto-cgraph.c (input_symtab): Likewise.
2174         (merge_profile_summaries): Likewise.
2175         (input_cgraph_1): Likewise.
2176         (input_edge): Likewise.
2177         (input_varpool_node): Likewise.
2178         (input_node): Likewise.
2179         (input_overwrite_node): Likewise.
2180         (compute_ltrans_boundary): Likewise.
2181         (output_refs): Likewise.
2182         (lto_output_varpool_node): Likewise.
2183         (lto_output_node): Likewise.
2184         (reachable_from_other_partition_p): Likewise.
2185         (referenced_from_other_partition_p): Likewise.
2186         (lto_output_edge): Likewise.
2187         (output_node_opt_summary): Likewise.
2188         (add_node_to): Likewise.
2189         (reachable_from_this_partition_p): Likewise.
2190         (lto_set_symtab_encoder_in_partition): Likewise.
2191         (lto_symtab_encoder_in_partition_p): Likewise.
2192         (lto_set_symtab_encoder_encode_initializer): Likewise.
2193         (lto_symtab_encoder_encode_initializer_p): Likewise.
2194         (lto_set_symtab_encoder_encode_body): Likewise.
2195         (lto_symtab_encoder_encode_body_p): Likewise.
2196         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
2197         Likewise.
2198         * lto-streamer-in.c (lto_read_body): Likewise.
2199         (fixup_call_stmt_edges): Likewise.
2200         (fixup_call_stmt_edges_1): Likewise.
2201         * lto-streamer-out.c (produce_symtab): Likewise.
2202         (output_symbol_p): Likewise.
2203         (write_symbol): Likewise.
2204         (lto_output): Likewise.
2205         (copy_function): Likewise.
2206         (output_function): Likewise.
2207         * passes.c (function_called_by_processed_nodes_p): Likewise.
2208         (ipa_write_optimization_summaries): Likewise.
2209         (ipa_write_summaries): Likewise.
2210         (do_per_function_toporder): Likewise.
2211         (do_per_function): Likewise.
2212         (dump_passes): Likewise.
2213         * symtab.c (symtab_semantically_equivalent_p): Likewise.
2214         (symtab_nonoverwritable_alias): Likewise.
2215         (symtab_nonoverwritable_alias_1): Likewise.
2216         (symtab_for_node_and_aliases): Likewise.
2217         (symtab_resolve_alias): Likewise.
2218         (fixup_same_cpp_alias_visibility): Likewise.
2219         (symtab_alias_ultimate_target): Likewise.
2220         (symtab_used_from_object_file_p): Likewise.
2221         (verify_symtab_base): Likewise.
2222         (dump_symtab_base): Likewise.
2223         (symtab_node_name): Likewise.
2224         (symtab_node_asm_name): Likewise.
2225         (symtab_dissolve_same_comdat_group_list): Likewise.
2226         (symtab_add_to_same_comdat_group): Likewise.
2227         (symtab_unregister_node): Likewise.
2228         (symtab_insert_node_to_hashtable): Likewise.
2229         (symtab_register_node): Likewise.
2230         (unlink_from_assembler_name_hash): Likewise.
2231         (insert_to_assembler_name_hash): Likewise.
2232         (eq_assembler_name): Likewise.
2233         (hash_node_by_assembler_name): Likewise.
2234         (eq_node): Likewise.
2235         (hash_node): Likewise.
2236         * toplev.c (wrapup_global_declaration_2): Likewise.
2237         * trans-mem.c (ipa_tm_execute): Likewise.
2238         (ipa_tm_transform_clone): Likewise.
2239         (ipa_tm_transform_transaction): Likewise.
2240         (ipa_tm_transform_calls_redirect): Likewise.
2241         (ipa_tm_insert_gettmclone_call): Likewise.
2242         (ipa_tm_insert_irr_call): Likewise.
2243         (ipa_tm_create_version): Likewise.
2244         (ipa_tm_create_version_alias): Likewise.
2245         (ipa_tm_mark_forced_by_abi_node): Likewise.
2246         (ipa_tm_mark_force_output_node): Likewise.
2247         (ipa_tm_diagnose_tm_safe): Likewise.
2248         (ipa_tm_mayenterirr_function): Likewise.
2249         (ipa_tm_scan_irr_function): Likewise.
2250         (ipa_tm_note_irrevocable): Likewise.
2251         (ipa_tm_scan_calls_clone): Likewise.
2252         (get_cg_data): Likewise.
2253         * tree-eh.c (tree_could_trap_p): Likewise.
2254         * tree-emutls.c (ipa_lower_emutls): Likewise.
2255         (create_emultls_var): Likewise.
2256         (lower_emutls_function_body): Likewise.
2257         (gen_emutls_addr): Likewise.
2258         (emutls_decl): Likewise.
2259         (new_emutls_decl): Likewise.
2260         * tree-inline.c (tree_function_versioning): Likewise.
2261         (optimize_inline_calls): Likewise.
2262         (expand_call_inline): Likewise.
2263         (estimate_num_insns): Likewise.
2264         (copy_bb): Likewise.
2265         (delete_unreachable_blocks_update_callgraph): Likewise.
2266         * tree-nested.c (gimplify_all_functions): Likewise.
2267         (create_nesting_tree): Likewise.
2268         (check_for_nested_with_variably_modified): Likewise.
2269         * tree-pretty-print.c (dump_function_header): Likewise.
2270         * tree-profile.c (tree_profiling): Likewise.
2271         * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
2272         (modify_function): Likewise.
2273         (convert_callers): Likewise.
2274         (convert_callers_for_node): Likewise.
2275         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
2276         (associate_varinfo_to_alias): Likewise.
2277         (create_variable_info_for): Likewise.
2278         (get_constraint_for_ssa_var): Likewise.
2279         * tree-vectorizer.c (increase_alignment): Likewise.
2280         * tree.c (find_decls_types_in_var): Likewise.
2281         (find_decls_types_in_node): Likewise.
2282         (free_lang_data_in_decl): Likewise.
2283         * value-prof.c (gimple_ic_transform): Likewise.
2284         (gimple_ic): Likewise.
2285         (check_ic_target): Likewise.
2286         (init_node_map): Likewise.
2287         * varasm.c (decl_binds_to_current_def_p): Likewise.
2288         (default_binds_local_p_1): Likewise.
2289         (dump_tm_clone_pairs): Likewise.
2290         (assemble_alias): Likewise.
2291         (find_decl): Likewise.
2292         (mark_decl_referenced): Likewise.
2293         * varpool.c (varpool_for_node_and_aliases): Likewise.
2294         (varpool_extra_name_alias): Likewise.
2295         (varpool_create_variable_alias): Likewise.
2296         (add_new_static_var): Likewise.
2297         (varpool_finalize_named_section_flags): Likewise.
2298         (varpool_remove_unreferenced_decls): Likewise.
2299         (enqueue_node): Likewise.
2300         (varpool_assemble_decl): Likewise.
2301         (assemble_aliases): Likewise.
2302         (varpool_analyze_node): Likewise.
2303         (cgraph_variable_initializer_availability): Likewise.
2304         (varpool_add_new_variable): Likewise.
2305         (ctor_for_folding): Likewise.
2306         (dump_varpool_node): Likewise.
2307         (varpool_remove_initializer): Likewise.
2308         (varpool_remove_node): Likewise.
2309         (varpool_node_for_decl): Likewise.
2310         (varpool_create_empty_node): Likewise.
2311         * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
2312         (ix86_get_function_versions_dispatcher): Likewise.
2314 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
2316         * cgraph.h (symtab_node_base): Convert to a class;
2317         add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
2318         chain_next/prev from symtab_node_def.
2319         (cgraph_node): Inherit from symtab_node; add GTY option
2320         tag ("SYMTAB_FUNCTION").
2321         (varpool_node): Inherit from symtab_node; add GTY option
2322         tag ("SYMTAB_VARIABLE").
2323         (symtab_node_def): Remove.
2324         (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
2325         (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
2326         (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
2327         (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
2329         * ipa-ref.h (symtab_node_def): Drop.
2330         (symtab_node): Change underlying type from symtab_node_def to
2331         symtab_node_base.
2332         (const_symtab_node): Likwise.
2334         * is-a.h: Update examples in comment.
2336         * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
2337         (assembler_name_hash): Likewise.
2339 2013-10-29  Martin Liska  <marxin.liska@gmail.com>
2341         * doc/tree-ssa.texi (gimple_phi_result): Document.
2342         (gimple_phi_num_args, gimple_phi_arg): Likewise.
2343         (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
2344         (PHI_RESULT, PHI_NUM_ARGS): Remove.
2345         (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
2347 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
2349         * expr.h: Revert change and include tree-core.h.
2350         * rtl.h: Revert change and don't include tree-core.h.
2352 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
2354         * config/darwin.c: Include gimple.h.
2355         * config/i386/winnt.c: Likewise.
2357 2013-10-29  Marc Glisse  <marc.glisse@inria.fr>
2359         PR tree-optimization/19831
2360         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
2362 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
2364         * tree-outof-ssa.h: Remove include files.
2365         * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
2366         * expr.c: Likewise.
2367         * tree-ssa-coalesce.c: Likewise.
2368         * cfgexpand.c: Likewise.
2369         * tree-ssa-ter.c: Likewise.
2370         * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
2371         * lto-streamer.h: Likewise.
2372         * cgraphbuild.c: Add gimple.h to include list.
2373         * data-streamer-in.c: Likewise.
2374         * ipa-cp.c: Likewise.
2375         * tree-streamer.c: Likewise.
2376         * lto-compress.c: Likewise.
2377         * ipa-reference.c: Likewise.
2378         * data-streamer-out.c: Likewise.
2379         * lto-cgraph.c: Likewise.
2380         * cgraphclones.c: Likewise.
2381         * ipa-utils.c: Likewise.
2382         * data-streamer.c: Likewise.
2383         * ipa-split.c: Likewise.
2384         * lto-section-in.c: Likewise.
2385         * tree-streamer-out.c: Likewise.
2386         * ipa-prop.c: Likewise.
2387         * tree-streamer-in.c: Likewise.
2388         * symtab.c: Likewise.
2389         * opts-global.c: Likewise.
2390         * lto-opts.c: Likewise.
2391         * lto-section-out.c: Likewise.
2392         * lto-streamer.c: Likewise.
2393         * rtl.h: Add tree-core.h to include list.
2394         * expr.h: Remove tree-core.h from include list.
2395         * gimple.h: Likewise.
2396         * ipa-utils.h: Likewise.
2397         * streamer-hooks.h: Likewise.
2398         * streamer-hooks.c: Include input.h.
2400 2013-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2402         * config/arm/arm.c (cortexa7_extra_costs): New table.
2403         (arm_cortex_a7_tune): New.
2404         * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
2406 2013-10-29  Eric Botcazou  <ebotcazou@adacore.com>
2408         * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
2410 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
2412         * doc/gty.texi ("Inheritance and GTY"): Make it clear that
2413         to use autogenerated markers for a class-hierarchy, every class
2414         must have a GTY marker.
2415         * gengtype.h (struct type): Add linked list of subclasses to
2416         the "s" member of the union.
2417         (add_subclass): New decl.
2418         * gengtype-state.c (read_state_struct_type): Set up subclass
2419         linked list.
2420         * gengtype.c (get_ultimate_base_class): New.
2421         (add_subclass): New.
2422         (new_structure): Set up subclass linked list.
2423         (set_gc_used_type): Propagate usage information to subclasses.
2424         (output_mangled_typename): Use get_ultimate_base_class.
2425         (walk_subclasses): Use the subclass linked list, avoiding an
2426         O(N^2) when writing out all types.
2427         (walk_type): Issue an error if the base class is missing a tag,
2428         rather than generating bogus C code.  Add a gcc_unreachable
2429         default case, in case people omit tags from concrete subclasses,
2430         or get the values wrong.
2431         (write_func_for_structure): Issue an error for subclasses for
2432         which the base doesn't have a "desc", since otherwise the
2433         autogenerated routines for the base would silently fail to visit
2434         any subclass fields.
2435         (write_root): Use get_ultimate_base_class, tweaking constness of
2436         tp to match that function's signature.
2438 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
2440         * doc/gty.texi (GTY Options): Add note about inheritance to
2441         description of desc and tag.
2442         (Inheritance and GTY): New.
2444 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
2446         * gengtype-parse.c (opts_have): Drop "static" so that
2447         we can use this from gengtype.c.
2448         * gengtype.c (set_gc_used_type): Mark any base class as used;
2449         update field traversal to visit inherited fields.
2450         (output_mangled_typename):  Convert references to classes within
2451         an inheritance hierarchy to reference the ultimate base class,
2452         since only it will have gt_ functions.
2453         (get_string_option): New.
2454         (walk_subclasses): New.
2455         (walk_type): Treat GTY structs that have a "desc" as being the
2456         root of an inheritance hierarchy.  Generate a switch on it
2457         within the marking function which walks all subclasses, adding
2458         cases for them via walk_subclasses.  For subclasses, visit all
2459         fields of the type (including inherited ones).
2460         (write_func_for_structure): Don't write fns for subclasses, only
2461         for the ultimate base class within an inheritance hierarchy.
2462         Subclasses-marking will be handled by the base class marking functions.
2463         (write_types): Likewise.
2464         (write_local_func_for_structure): Likewise.
2465         (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
2466         a "tag" option (and are thus concrete subclasses).
2467         (write_root): Use the marker function for the ultimate base class.
2468         * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
2469         (opts_have): Add declaration.
2471 2013-10-28  Vladimir Makarov  <vmakarov@redhat.com>
2473         * lra-spills.c (lra_final_code_change): Remove useless move insns
2474         originated from moves of pseudos.
2476 2013-10-28  Jeff Law  <law@redhat.com>
2478         * lower-subreg.c (resolve_simple_move): Fix comment typo.
2480 2013-10-28  Trevor Saunders  <tsaunders@mozilla.com>
2482         * df-scan.c (df_collection_rec): Adjust.
2483         (copy_defs): New constant.
2484         (copy_uses): Likewise.
2485         (copy_eq_uses): Likewise.
2486         (copy_mw): Likewise.
2487         (copy_all): Likewise.
2488         (df_insn_rescan): Adjust.
2489         (df_notes_rescan): Likewise.
2490         (df_swap_refs): Likewise.
2491         (df_sort_and_compress_refs): Likewise.
2492         (df_sort_and_compress_mws): Likewise.
2493         (df_install_refs): Likewise.
2494         (df_install_mws): Likewise.
2495         (df_refs_add_to_chains): Add flags parameter controlling which vectors
2496         are coppied.
2497         (df_bb_refs_record): Adjust.
2498         (df_record_entry_block_defs): Likewise.
2499         (df_record_exit_block_defs): Likewise.
2500         (df_refs_verify): Likewise.
2501         (df_mws_verify): Likewise.
2502         (df_insn_refs_verify): Likewise.
2503         (df_bb_verify): Likewise.
2504         * ipa-pure-const.c (finish_state): Remove.
2505         (propagate): Adjust.
2506         * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
2507         tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
2508         var-tracking.c: Adjust.
2509         * vec.c (stack_vecs): Remove.
2510         (register_stack_vec): Likewise.
2511         (stack_vec_register_index): Likewise.
2512         (unregister_stack_vec): Likewise.
2513         * vec.h (struct va_stack): Remove.
2514         (struct vec<T, A, vl_ptr>): Specialize as
2515         struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
2516         allocation strategy compatable with the vl_ptr layout.
2517         (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
2518         specialization anyway.
2519         (class stack_vec): New class.
2520         (vec_stack_alloc): Remove.
2521         (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
2523 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2524             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2525             Sergey Lega  <sergey.s.lega@intel.com>
2526             Anna Tikhonova  <anna.tikhonova@intel.com>
2527             Ilya Tocar  <ilya.tocar@intel.com>
2528             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2529             Ilya Verbin  <ilya.verbin@intel.com>
2530             Kirill Yukhin  <kirill.yukhin@intel.com>
2531             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2533         * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
2534         (*prefetch_avx512pf_<mode>): New.
2535         * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
2536         (avx512f_maskcmp<mode>3): Ditto.
2537         (vashrv16si3): Ditto.
2539 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2540             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2541             Sergey Lega  <sergey.s.lega@intel.com>
2542             Anna Tikhonova  <anna.tikhonova@intel.com>
2543             Ilya Tocar  <ilya.tocar@intel.com>
2544             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2545             Ilya Verbin  <ilya.verbin@intel.com>
2546             Kirill Yukhin  <kirill.yukhin@intel.com>
2547             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2549         * config/i386/i386.md (any_truncate): New.
2550         (trunsuffix): Ditto.
2551         * config/i386/predicates.md (const_8_to_9_operand): New.
2552         (const_10_to_11_operand): Ditto.
2553         (const_12_to_13_operand): Ditto.
2554         (const_14_to_15_operand): Ditto.
2555         (const_16_to_19_operand): Ditto.
2556         (const_20_to_23_operand): Ditto.
2557         (const_24_to_27_operand): Ditto.
2558         (const_28_to_31_operand): Ditto.
2559         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
2560         (cvtusi2<ssescalarmodesuffix>32): New.
2561         (cvtusi2<ssescalarmodesuffix>64): Ditto.
2562         (ufloatv16siv16sf2): Ditto.
2563         (avx512f_fix_notruncv16sfv16si): Ditto.
2564         (avx512f_ufix_notruncv16sfv16si): Ditto.
2565         (avx512f_vcvtss2usi): Ditto.
2566         (avx512f_vcvtss2usiq): Ditto.
2567         (avx512f_vcvttss2usi): Ditto.
2568         (avx512f_vcvttss2usiq): Ditto.
2569         (avx512f_vcvtsd2usi): Ditto.
2570         (avx512f_vcvtsd2usiq): Ditto.
2571         (avx512f_vcvttsd2usi): Ditto.
2572         (avx512f_vcvttsd2usiq): Ditto.
2573         (ufloatv8siv8df): Ditto.
2574         (avx512f_cvtdq2pd512_2): Ditto.
2575         (avx512f_cvtpd2dq512): Ditto.
2576         (avx512f_ufix_notruncv8dfv8si): Ditto.
2577         (avx512f_cvtpd2ps512): Ditto.
2578         (vec_unpacks_lo_v16sf): Ditto.
2579         (vec_unpacks_hi_v16sf): Ditto.
2580         (vec_unpacks_float_hi_v16si): Ditto.
2581         (vec_unpacks_float_lo_v16si): Ditto.
2582         (avx512f_unpckhps512): Ditto.
2583         (avx512f_unpcklps512): Ditto.
2584         (avx512f_movshdup512): Ditto.
2585         (avx512f_movsldup512): Ditto.
2586         (vec_extract_lo_v32hi): Ditto.
2587         (vec_extract_hi_v32hi): Ditto.
2588         (vec_extract_lo_v64qi): Ditto.
2589         (vec_extract_hi_v64qi): Ditto.
2590         (avx512f_unpckhpd512): Ditto.
2591         (avx512f_movddup512): Ditto.
2592         (avx512f_unpcklpd512): Ditto.
2593         (*avx512f_unpcklpd512): Ditto.
2594         (avx512f_shufps512_1): Ditto.
2595         (avx512f_shufpd512_1): Ditto.
2596         (avx512f_interleave_highv8di): Ditto.
2597         (avx512f_interleave_lowv8di): Ditto.
2598         (PMOV_DST_MODE): Ditto.
2599         (pmov_src_mode): Ditto.
2600         (pmov_src_lower): Ditto.
2601         (pmov_suff): Ditto.
2602         (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
2603         (*avx512f_<code>v8div16qi2): Ditto.
2604         (*avx512f_<code>v8div16qi2_store): Ditto.
2605         (vec_widen_umult_even_v16si): Ditto.
2606         (*vec_widen_umult_even_v16si): Ditto.
2607         (vec_widen_smult_even_v16si): Ditto.
2608         (*vec_widen_smult_even_v16si): Ditto.
2609         (avx512f_interleave_highv16si): Ditto.
2610         (avx512f_interleave_lowv16si): Ditto.
2611         (avx512f_<code>v16qiv16si2): Ditto.
2612         (avx512f_<code>v16hiv16si2): Ditto.
2613         (avx512f_<code>v8qiv8di2): Ditto.
2614         (avx512f_<code>v8hiv8di2): Ditto.
2615         (avx512f_<code>v8siv8di2): Ditto.
2616         (avx512cd_maskb_vec_dupv8di): Ditto.
2617         (avx512cd_maskw_vec_dupv16si): Ditto.
2618         (avx512f_vcvtph2ps512): Ditto.
2619         (avx512f_vcvtps2ph512): Ditto.
2620         (VEC_EXTRACT_MODE): Extened with wider modes.
2621         (VEC_PERM_AVX2): Ditto.
2622         (VEC_PERM_CONST): Ditto.
2624 2013-10-28  Joern Rennecke  <joern.rennecke@embecosm.com>
2626         * config/arc/arc.c (arc_ccfsm_post_advance):
2627         Add comment about TYPE_RETURN.
2629 2013-10-28  Bin Cheng  <bin.cheng@arm.com>
2631         * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
2632         Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
2633         (strip_offset): Convert offset to unsigned number.
2635 2013-10-27  Tom de Vries  <tom@codesourcery.com>
2637         * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
2638         Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
2640 2013-10-27  Oleg Endo  <olegendo@gcc.gnu.org>
2642         * config/sh/sh.c (MSW, LSW): Move and rename macros to...
2643         * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
2644         (TARGET_BIG_ENDIAN): New macro.
2645         * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
2646         Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
2647         * config/sh/sh.c: Likewise.
2648         * config/sh/sh.h: Likewise.
2650 2013-10-27  Hans-Peter Nilsson  <hp@axis.com>
2652         * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
2653         removed PRED_MUDFLAP with PRED_NORETURN.  Correct file-path in comment.
2655 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
2657         * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
2658         Fix formatting.
2659         (cmpstr_t, cmpstrsi): Fix formatting.
2661 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
2663         PR target/52483
2664         * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
2665         addressing, do not use general_operand for memory operands.
2667 2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
2669         Revert:
2670         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
2671         * lra-spills.c (lra_final_code_change): Remove useless move insns.
2673 2013-10-26  Jeff Law  <law@redhat.com>
2675         * predict.c (PRED_MUDFLAP): Remove.
2676         * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
2678         * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
2679         (OBJS): Remove tree-nomudflap.o
2680         (GTFILES): Remove tree-mudflap.c
2681         * builtins.c (expand_builtin_alloc): Remove mudflap support.
2682         * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
2683         (mfwrap_spec, mflib_spec): Likewise.
2684         (cpp_unique_options, cc1_options, static_specs): Likewise.
2685         * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
2686         * passes.def: Likewise.
2687         * toplev.c (compile_file, process_options): Likewise.
2688         * tree-inline.c (copy_tree_r): Likewise.
2689         * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
2690         * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
2691         (build_constant_desc, output_constant_def_contents): Likewise.
2692         (categorize_decl_for_section): Likewise.
2693         * tree-mudflap.c: Removed.
2694         * tree-mudflap.h: Removed.
2695         * tree-nomudflap.c: Removed.
2696         * bfin/uclinux.h (MFWRAP_SPEC): Remove.
2697         * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
2698         * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
2699         * config/sol2.h (MFLIB_SPEC): Likewise.
2700         * doc/install.texi: Remove mudflap references.
2701         * doc/passes.texi: Similarly.
2702         * doc/sourcebuild.texi: Similarly.
2703         * doc/invoke.texi: Remove mudlfap related options.
2705 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
2707         PR rtl-optimization/58759
2708         * lra-constraints.c (lra_constraints): Remove wrong condition to
2709         remove insn setting up an equivalent pseudo.
2711 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
2713         * config/rs6000/rs6000-protos.h
2714         (rs6000_secondary_memory_needed_mode): New prototype.
2715         * config/rs6000/rs6000.c: Include ira.h.
2716         (TARGET_LRA_P): Redefine.
2717         (rs6000_legitimate_offset_address_p): Call
2718         legitimate_constant_pool_address_p in strict mode for LRA.
2719         (rs6000_legitimate_address_p): Ditto.
2720         (legitimate_lo_sum_address_p): Add code for LRA.  Use lra_in_progress.
2721         (rs6000_emit_move): Add LRA version of code to generate load/store
2722         of SDmode values.
2723         (rs6000_secondary_memory_needed_mode): New.
2724         (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
2725         (rs6000_secondary_reload_class): Return NO_REGS for LRA for
2726         constants, memory, and FP registers.
2727         (rs6000_lra_p): New.
2728         * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
2729         * config/rs6000/rs6000.opt (mlra): New option.
2730         * lra-spills.c (lra_final_code_change): Remove useless move insns.
2732 2013-10-25  Yufeng Zhang  <yufeng.zhang@arm.com>
2734         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
2735         has_single_use () and not do the conversion if has_single_use ()
2736         returns false for the multiplication result.
2738 2013-10-25  David Malcolm  <dmalcolm@redhat.com>
2740         * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
2741         to "NODE", since this works on a "tree", not an
2742         "enum tree_code".
2743         (CONSTANT_CLASS_P): Likewise.
2744         (TYPE_P): Likewise.
2745         (DECL_P): Likewise.
2746         (INDIRECT_REF_P): Likewise.
2747         (REFERENCE_CLASS_P): Likewise.
2748         (COMPARISON_CLASS_P): Likewise.
2749         (UNARY_CLASS_P): Likewise.
2750         (BINARY_CLASS_P): Likewise.
2751         (STATEMENT_CLASS_P): Likewise.
2752         (VL_EXP_CLASS_P): Likewise.
2753         (EXPRESSION_CLASS_P): Likewise.
2754         (IS_TYPE_OR_DECL_P): Likewise.
2756 2013-10-25  Marc Glisse  <marc.glisse@inria.fr>
2758         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
2759         ADDR_EXPR in the defining statement.
2761 2013-10-25  Richard Biener  <rguenther@suse.de>
2763         PR tree-optimization/58626
2764         * tree-loop-distribution.c (enum rdg_dep_type): Remove
2765         anti_dd, output_dd and input_dd.
2766         (struct rdg_edge): Remove level and relation members.
2767         (RDGE_LEVEL, RDGE_RELATION): Remove.
2768         (dot_rdg_1): Adjust.
2769         (create_rdg_edge_for_ddr): Remove.
2770         (create_rdg_edges_for_scalar): Adjust.
2771         (create_edge_for_control_dependence): Likewise.
2772         (create_rdg_edges): Split into ...
2773         (create_rdg_flow_edges): ... this
2774         (create_rdg_cd_edges): ... and this.
2775         (free_rdg): Adjust.
2776         (build_rdg): Likewise, do not compute data dependences or
2777         add edges for them.
2778         (pg_add_dependence_edges): New function.
2779         (pgcmp): Likewise.
2780         (distribute_loop): First apply all non-dependence based
2781         partition mergings.  Then compute dependences between partitions
2782         and merge and order partitions according to them.
2784 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
2786         PR rtl-optimization/58831
2787         * alias.c (init_alias_analysis): At the beginning of each iteration,
2788         set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
2790 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
2792         * recog.c (search_ofs): New static variable moved from...
2793         (peep2_find_free_register): ...here.
2794         (peephole2_optimize): Initialize it.
2796 2013-10-25  Tobias Burnus  <burnus@net-b.de>
2798         * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
2800 2013-10-25  Uros Bizjak  <ubizjak@gmail.com>
2802         * config/i386/i386.h (TARGET_MPX): New define.
2803         (TARGET_MPX_P): Ditto.
2805 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
2807         * config/i386/constraints.md (B): New.
2808         (Ti): New.
2809         (Tb): New.
2810         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
2811         * config/i386/i386-modes.def (BND32): New.
2812         (BND64): New.
2813         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
2814         * config/i386/i386.c (isa_opts): Add mmpx.
2815         (regclass_map): Add bound registers.
2816         (dbx_register_map): Likewise.
2817         (dbx64_register_map): Likewise.
2818         (svr4_dbx_register_map): Likewise.
2819         (PTA_MPX): New.
2820         (ix86_option_override_internal): Support MPX ISA.
2821         (ix86_conditional_register_usage): Support bound registers.
2822         (print_reg): Likewise.
2823         (ix86_code_end): Add MPX bnd prefix.
2824         (output_set_got): Likewise.
2825         (ix86_output_call_insn): Likewise.
2826         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
2827         (ix86_print_operand_punct_valid_p): Likewise.
2828         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
2829         UNSPEC_BNDMK_ADDR.
2830         (ix86_class_likely_spilled_p): Add bound regs support.
2831         (ix86_hard_regno_mode_ok): Likewise.
2832         (x86_order_regs_for_local_alloc): Likewise.
2833         (ix86_bnd_prefixed_insn_p): New.
2834         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
2835         (FIXED_REGISTERS): Add bound registers.
2836         (CALL_USED_REGISTERS): Likewise.
2837         (REG_ALLOC_ORDER): Likewise.
2838         (HARD_REGNO_NREGS): Likewise.
2839         (TARGET_MPX): New.
2840         (VALID_BND_REG_MODE): New.
2841         (FIRST_BND_REG): New.
2842         (LAST_BND_REG): New.
2843         (reg_class): Add BND_REGS.
2844         (REG_CLASS_NAMES): Likewise.
2845         (REG_CLASS_CONTENTS): Likewise.
2846         (BND_REGNO_P): New.
2847         (ANY_BND_REG_P): New.
2848         (BNDmode): New.
2849         (HI_REGISTER_NAMES): Add bound registers.
2850         * config/i386/i386.md (UNSPEC_BNDMK): New.
2851         (UNSPEC_BNDMK_ADDR): New.
2852         (UNSPEC_BNDSTX): New.
2853         (UNSPEC_BNDLDX): New.
2854         (UNSPEC_BNDLDX_ADDR): New.
2855         (UNSPEC_BNDCL): New.
2856         (UNSPEC_BNDCU): New.
2857         (UNSPEC_BNDCN): New.
2858         (UNSPEC_MPX_FENCE): New.
2859         (BND0_REG): New.
2860         (BND1_REG): New.
2861         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
2862         (length_immediate): Likewise.
2863         (prefix_0f): Likewise.
2864         (memory): Likewise.
2865         (prefix_rep): Check for bnd prefix.
2866         (length_nobnd): New.
2867         (length): Use length_nobnd if specified.
2868         (BND): New.
2869         (bnd_ptr): New.
2870         (BNDCHECK): New.
2871         (bndcheck): New.
2872         (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
2873         (*jcc_2): Likewise.
2874         (jump): Likewise.
2875         (simple_return_internal): Likewise.
2876         (simple_return_pop_internal): Likewise.
2877         (*indirect_jump): Add MPX bnd prefix.
2878         (*tablejump_1): Likewise.
2879         (simple_return_internal_long): Likewise.
2880         (simple_return_indirect_internal): Likewise.
2881         (<mode>_mk): New.
2882         (*<mode>_mk): New.
2883         (mov<mode>): New.
2884         (*mov<mode>_internal_mpx): New.
2885         (<mode>_<bndcheck>): New.
2886         (*<mode>_<bndcheck>): New.
2887         (<mode>_ldx): New.
2888         (*<mode>_ldx): New.
2889         (<mode>_stx): New.
2890         (*<mode>_stx): New.
2891         * config/i386/predicates.md (lea_address_operand): Rename to...
2892         (address_no_seg_operand): ... this.
2893         (address_mpx_no_base_operand): New.
2894         (address_mpx_no_index_operand): New.
2895         (bnd_mem_operator): New.
2896         * config/i386/i386.opt (mmpx): New.
2897         * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
2898         * doc/rtl.texi Add documentation for BND32mode and BND64mode.
2900 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
2902         * mode-classes.def (MODE_POINTER_BOUNDS): New.
2903         * tree.def (POINTER_BOUNDS_TYPE): New.
2904         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
2905         (POINTER_BOUNDS_MODE): New.
2906         (make_pointer_bounds_mode): New.
2907         * machmode.h (POINTER_BOUNDS_MODE_P): New.
2908         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
2909         (layout_type): Support POINTER_BOUNDS_TYPE.
2910         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
2911         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
2912         (type_contains_placeholder_1): Likewise.
2913         * tree.h (POINTER_BOUNDS_TYPE_P): New.
2914         * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
2915         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
2917 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
2919         * expr.c (expand_expr_real_1): Use mode of memory reference rather than
2920         mode of address computation when calling memory_address_addr_space.
2922 2013-08-24  Richard Henderson  <rth@twiddle.net>
2924         PR rtl/58542
2925         * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
2926         instead of create_convert_operand_to.
2927         (maybe_emit_sync_lock_test_and_set): Likewise.
2928         (expand_atomic_compare_and_swap): Likewise.
2929         (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
2931 2013-08-24  Sriraman Tallam  <tmsriram@google.com>
2933         * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
2934         Change param_is to use the struct and not the pointer to the struct.
2936 2013-10-24  Andrew MacLeod  <amacleod@redhat.com>
2938         * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
2939         * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
2940         Move to targhooks.c.
2941         (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
2942         * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
2943         Relocate from gimplify.c.
2944         * targhooks.h: Add 2 prototypes.
2945         * tree.h: Delete 2 prototypes.
2947 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
2949         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
2950         [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
2952 2013-10-24  Cong Hou  <congh@google.com>
2954         * convert.c (convert_to_real): Guard those unsafe math function
2955         convertions with flag_unsafe_math_optimizations.  Handle sqrt()
2956         specially.
2958 2013-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
2960         PR ipa/58712
2961         * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
2962         as argument.
2963         (cgraph_create_edge): Use the new argument.
2964         (cgraph_create_indirect_edge): Likewise.
2966 2013-10-24  Joern Rennecke  <joern.rennecke@embecosm.com>
2968         * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
2969         TYPE_UNCOND_BRANCH.
2970         (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
2971         changes statep->state.
2973 2013-10-24  Tobias Burnus  <burnus@net-b.de>
2975         PR other/33426
2976         * tree-cfg.c (replace_loop_annotate): New function.
2977         (execute_build_cfg): Call it.
2978         * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
2979         * internal-fn.c (expand_ANNOTATE): New function.
2980         * internal-fn.def (ANNOTATE): Define as new internal function.
2981         * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
2982         * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
2983         * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
2984         * doc/extend.texi (Pragmas): Document #pragma ivdep.
2985         * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
2987 2013-10-17  Ian Bolton  <ian.bolton@arm.com>
2988             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2990         * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
2991         Special case reload SP+C into none GENERAL_REGS.
2993 2013-10-24  Michael Matz  <matz@suse.de>
2995         * gengtype.c (is_file_equal): Check that files will be same length.
2997 2013-10-25  Christian Bruel  <christian.bruel@st.com>
2999         * config.gcc (sh-*): Add sh-mem.o to extra_obj.
3000         * config/sh/t-sh (sh-mem.o): New rule.
3001         * config/sh/sh-mem.cc (expand_block_move): Moved here.
3002         (sh_expand_cmpstr): New function.
3003         * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
3004         * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
3005         * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
3006         (rotlhi3_8): Rename.
3008 2013-10-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
3010         * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
3011         * Makefile.in (CXXDEPMODE): Assign and change users.
3012         (CCDEPMODE): Delete.
3013         * configure: Regenerate.
3015 2013-10-23  David Malcolm  <dmalcolm@redhat.com>
3017         * gengtype-parse.c (require_without_advance): New.
3018         (type): For GTY-marked types that are not GTY((user)), parse any
3019         base classes, requiring them to be single-inheritance, and not
3020         be templates.  For non-GTY-marked types and GTY((user)),
3021         continue to skip over any C++ inheritance specification.
3022         * gengtype-state.c (state_writer::write_state_struct_type):
3023         Write base class of type (if any).
3024         (read_state_struct_type): Read base class of type (if any).
3025         * gengtype.c (new_structure): Add a "base_class" parameter.
3026         (create_optional_field_): Update for new parameter to new_structure.
3027         (adjust_field_rtx_def): Likewise.
3028         (adjust_field_tree_exp): Likewise.
3029         * gengtype.h (struct type): Add "base_class" field to the s
3030         union field.
3031         (new_structure): Add "base" parameter.
3033 2013-10-23  Sriraman Tallam  <tmsriram@google.com>
3035         PR target/57756
3036         * config/i386/i386.c (ix86_option_override_internal):
3037         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
3038         (ix86_valid_target_attribute_tree):
3039         Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
3040         Change TARGET_SSE to TARGET_SSE_P (opts->...)
3042 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
3044         * tree-ssa-loop.h: Remove include files.
3045         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
3046         * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
3047         * graphite-clast-to-gimple.c: Likewise.
3048         * graphite-scop-detection.c: Likewise.
3049         * graphite-sese-to-poly.c: Likewise.
3050         * ipa-inline-analysis.c: Likewise.
3051         * ipa-pure-const.c: Likewise.
3052         * loop-init.c: Likewise.
3053         * passes.c: Likewise.
3054         * predict.c: Likewise.
3055         * tree-cfg.c: Likewise.
3056         * tree-cfgcleanup.c: Likewise.
3057         * tree-chrec.c: Likewise.
3058         * tree-data-ref.c: Likewise.
3059         * tree-loop-distribution.c: Likewise.
3060         * tree-parloops.c: Likewise.
3061         * tree-predcom.c: Likewise.
3062         * tree-scalar-evolution.c: Likewise.
3063         * tree-ssa-address.c: Likewise.
3064         * tree-ssa.c: Likewise.
3065         * tree-ssa-dce.c: Likewise.
3066         * tree-ssa-loop.c: Likewise.
3067         * tree-ssa-loop-im.c: Likewise.
3068         * tree-ssa-loop-ivcanon.c: Likewise.
3069         * tree-ssa-loop-ivopts.c: Likewise.
3070         * tree-ssa-loop-manip.c: Likewise.
3071         * tree-ssa-loop-niter.c: Likewise.
3072         * tree-ssa-loop-prefetch.c: Likewise.
3073         * tree-ssa-loop-unswitch.c: Likewise.
3074         * tree-ssa-reassoc.c: Likewise.
3075         * tree-vect-data-refs.c: Likewise.
3076         * tree-vect-loop.c: Likewise.
3077         * tree-vect-loop-manip.c: Likewise.
3078         * tree-vectorizer.c: Likewise.
3079         * tree-vect-stmts.c: Likewise.
3080         * tree-vrp.c: Likewise.
3082 2013-10-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3084         * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
3086 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
3088         PR tree-optimization/58775
3089         PR tree-optimization/58791
3090         * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
3091         (insert_stmt_after): Rewritten, don't move the stmt, but really
3092         insert it.
3093         (get_stmt_uid_with_default): Remove.
3094         (build_and_add_sum): Use insert_stmt_after and
3095         reassoc_stmt_dominates_stmt_p.  Fix up uid if bb contains only labels.
3096         (update_range_test): Set uid on stmts added by
3097         force_gimple_operand_gsi.  Don't immediately modify statements
3098         in inter-bb optimization, just update oe->op values.
3099         (optimize_range_tests): Return bool whether any changed have been made.
3100         (update_ops): New function.
3101         (struct inter_bb_range_test_entry): New type.
3102         (maybe_optimize_range_tests): Perform statement changes here.
3103         (not_dominated_by, appears_later_in_bb, get_def_stmt,
3104         ensure_ops_are_available): Remove.
3105         (find_insert_point): Rewritten.
3106         (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
3107         return LHS of the (new resp. old) stmt.  Don't call
3108         ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
3109         instead of last, move new stmt at the right place.
3110         (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
3111         (negate_value): Likewise.  Set uids.
3112         (break_up_subtract_bb): Initialize uids.
3113         (reassociate_bb): Adjust rewrite_expr_tree caller.
3114         (do_reassoc): Don't call renumber_gimple_stmt_uids.
3116 2013-10-23  David Edelsohn  <dje.gcc@gmail.com>
3118         PR target/58838
3119         * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
3120         TARGET_32BIT final condition.
3121         (mulsi3_internal2 and splitter): Same.
3123 2013-10-23  Jeff Law  <law@redhat.com>
3125         * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
3126         through joiner blocks with abnormal outgoing edges.
3128         * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
3129         Add parameter JOINERS, to allow/disallow threading through joiner
3130         blocks.
3131         (thread_block): New.  Call thread_block_1.
3132         (mark_threaded_blocks): Remove code to filter out certain cases
3133         of threading through joiner blocks.
3134         (thread_through_all_blocks): Document how we can have a dangling
3135         edge AUX field and clear it.
3137 2013-10-23  Ian Lance Taylor  <iant@google.com>
3139         * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
3140         (C++ Dialect Options): Likewise.
3141         (Optimize Options): Likewise.
3143 2013-10-23  Tom de Vries  <tom@codesourcery.com>
3145         PR tree-optimization/58805
3146         * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
3148 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
3150         * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
3151         sequence based on get_range_info returned range.
3153 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
3155         * tree-ssa.h: Remove all #include's
3156         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
3157         * alias.c: Move required includes from tree-ssa.h.
3158         * asan.c: Likewise.
3159         * builtins.c: Likewise.
3160         * calls.c: Likewise.
3161         * cfgexpand.c: Likewise.
3162         * cfghooks.c: Likewise.
3163         * cfgloop.c: Likewise.
3164         * cfgloopmanip.c: Likewise.
3165         * cgraph.c: Likewise.
3166         * cgraphbuild.c: Likewise.
3167         * cgraphclones.c: Likewise.
3168         * cgraphunit.c: Likewise.
3169         * dse.c: Likewise.
3170         * except.c: Likewise.
3171         * expr.c: Likewise.
3172         * final.c: Likewise.
3173         * fold-const.c: Likewise.
3174         * ggc-page.c: Likewise.
3175         * gimple-builder.c: Likewise.
3176         * gimple-fold.c: Likewise.
3177         * gimple-iterator.c: Likewise.
3178         * gimple-low.c: Likewise.
3179         * gimple-pretty-print.c: Likewise.
3180         * gimple-ssa-strength-reduction.c: Likewise.
3181         * gimple-streamer-in.c: Likewise.
3182         * gimple-streamer-out.c: Likewise.
3183         * gimplify.c: Likewise.
3184         * graphite-blocking.c: Likewise.
3185         * graphite-clast-to-gimple.c: Likewise.
3186         * graphite-dependences.c: Likewise.
3187         * graphite-interchange.c: Likewise.
3188         * graphite-optimize-isl.c: Likewise.
3189         * graphite-poly.c: Likewise.
3190         * graphite-scop-detection.c: Likewise.
3191         * graphite-sese-to-poly.c: Likewise.
3192         * graphite.c: Likewise.
3193         * ipa-cp.c: Likewise.
3194         * ipa-inline-analysis.c: Likewise.
3195         * ipa-inline-transform.c: Likewise.
3196         * ipa-inline.c: Likewise.
3197         * ipa-prop.c: Likewise.
3198         * ipa-pure-const.c: Likewise.
3199         * ipa-reference.c: Likewise.
3200         * ipa-split.c: Likewise.
3201         * ipa-utils.c: Likewise.
3202         * loop-init.c: Likewise.
3203         * lto-cgraph.c: Likewise.
3204         * lto-section-in.c: Likewise.
3205         * lto-section-out.c: Likewise.
3206         * lto-streamer-in.c: Likewise.
3207         * lto-streamer-out.c: Likewise.
3208         * lto-streamer.c: Likewise.
3209         * omp-low.c: Likewise.
3210         * passes.c: Likewise.
3211         * predict.c: Likewise.
3212         * print-tree.c: Likewise.
3213         * profile.c: Likewise.
3214         * sese.c: Likewise.
3215         * targhooks.c: Likewise.
3216         * tracer.c: Likewise.
3217         * trans-mem.c: Likewise.
3218         * tree-call-cdce.c: Likewise.
3219         * tree-cfg.c: Likewise.
3220         * tree-cfgcleanup.c: Likewise.
3221         * tree-chrec.c: Likewise.
3222         * tree-complex.c: Likewise.
3223         * tree-data-ref.c: Likewise.
3224         * tree-dfa.c: Likewise.
3225         * tree-eh.c: Likewise.
3226         * tree-emutls.c: Likewise.
3227         * tree-if-conv.c: Likewise.
3228         * tree-inline.c: Likewise.
3229         * tree-into-ssa.c: Likewise.
3230         * tree-loop-distribution.c: Likewise.
3231         * tree-mudflap.c: Likewise.
3232         * tree-nested.c: Likewise.
3233         * tree-nrv.c: Likewise.
3234         * tree-object-size.c: Likewise.
3235         * tree-outof-ssa.c: Likewise.
3236         * tree-parloops.c: Likewise.
3237         * tree-phinodes.c: Likewise.
3238         * tree-predcom.c: Likewise.
3239         * tree-pretty-print.c: Likewise.
3240         * tree-profile.c: Likewise.
3241         * tree-scalar-evolution.c: Likewise.
3242         * tree-sra.c: Likewise.
3243         * tree-ssa-address.c: Likewise.
3244         * tree-ssa-alias.c: Likewise.
3245         * tree-ssa-ccp.c: Likewise.
3246         * tree-ssa-coalesce.c: Likewise.
3247         * tree-ssa-copy.c: Likewise.
3248         * tree-ssa-copyrename.c: Likewise.
3249         * tree-ssa-dce.c: Likewise.
3250         * tree-ssa-dom.c: Likewise.
3251         * tree-ssa-dse.c: Likewise.
3252         * tree-ssa-forwprop.c: Likewise.
3253         * tree-ssa-ifcombine.c: Likewise.
3254         * tree-ssa-live.c: Likewise.
3255         * tree-ssa-loop-ch.c: Likewise.
3256         * tree-ssa-loop-im.c: Likewise.
3257         * tree-ssa-loop-ivcanon.c: Likewise.
3258         * tree-ssa-loop-ivopts.c: Likewise.
3259         * tree-ssa-loop-manip.c: Likewise.
3260         * tree-ssa-loop-niter.c: Likewise.
3261         * tree-ssa-loop-prefetch.c: Likewise.
3262         * tree-ssa-loop-unswitch.c: Likewise.
3263         * tree-ssa-loop.c: Likewise.
3264         * tree-ssa-math-opts.c: Likewise.
3265         * tree-ssa-operands.c: Likewise.
3266         * tree-ssa-phiopt.c: Likewise.
3267         * tree-ssa-phiprop.c: Likewise.
3268         * tree-ssa-pre.c: Likewise.
3269         * tree-ssa-propagate.c: Likewise.
3270         * tree-ssa-reassoc.c: Likewise.
3271         * tree-ssa-sccvn.c: Likewise.
3272         * tree-ssa-sink.c: Likewise.
3273         * tree-ssa-strlen.c: Likewise.
3274         * tree-ssa-structalias.c: Likewise.
3275         * tree-ssa-tail-merge.c: Likewise.
3276         * tree-ssa-ter.c: Likewise.
3277         * tree-ssa-threadedge.c: Likewise.
3278         * tree-ssa-threadupdate.c: Likewise.
3279         * tree-ssa-uncprop.c: Likewise.
3280         * tree-ssa-uninit.c: Likewise.
3281         * tree-ssa.c: Likewise.
3282         * tree-ssanames.c: Likewise.
3283         * tree-stdarg.c: Likewise.
3284         * tree-streamer-in.c: Likewise.
3285         * tree-switch-conversion.c: Likewise.
3286         * tree-tailcall.c: Likewise.
3287         * tree-vect-data-refs.c: Likewise.
3288         * tree-vect-generic.c: Likewise.
3289         * tree-vect-loop-manip.c: Likewise.
3290         * tree-vect-loop.c: Likewise.
3291         * tree-vect-patterns.c: Likewise.
3292         * tree-vect-slp.c: Likewise.
3293         * tree-vect-stmts.c: Likewise.
3294         * tree-vectorizer.c: Likewise.
3295         * tree-vrp.c: Likewise.
3296         * tree.c: Likewise.
3297         * tsan.c: Likewise.
3298         * value-prof.c: Likewise.
3299         * var-tracking.c: Likewise.
3300         * varpool.c: Likewise.
3301         * vtable-verify.c: Likewise.
3303 2013-10-23  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
3305         * config/tilegx/tilegx.c: Include "tree.h".
3307 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
3309         * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
3310         the info, not after it.
3311         (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
3312         dump_ssaname_info call.
3313         (pp_gimple_stmt_1): Adjust caller.
3314         (dump_phi_nodes): Likewise.  Don't print "# " here.
3316 2013-10-22  Jan Hubicka  <jh@suse.cz>
3318         * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
3319         tuning flag.
3320         * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
3321         * i386.c (expand_small_movmem_or_setmem): New function.
3322         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
3323         function.
3324         (alg_usable_p): Add support for value ranges; cleanup.
3325         (ix86_expand_set_or_movmem): Add support for misaligned moves.
3327 2013-10-22  Sterling Augustine  <saugustine@google.com>
3329         * doc/invoke.texi: Document -ggnu-pubnames.
3330         * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
3331         logic.
3332         * dwarf2out.c: Include gdb/gdb-index.h.
3333         (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
3334         debug_generate_pub_sections.
3335         (is_java, output_pubtables, output_pubname): New functions.
3336         (include_pubname_in_output): Handle debug_generate_pub_sections at
3337         level 2.
3338         (size_of_pubnames): Use new local space_for_flags based on
3339         debug_generate_pub_sections.
3340         (output_pubnames): Unify pubnames and pubtypes output logic.
3341         Genericize comments.  Call output_pubname.
3342         (dwarf2out_finish): Move logic to output_pubnames and call it.
3344 2013-10-22  Uros Bizjak  <ubizjak@gmail.com>
3346         PR target/58779
3347         * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
3348         Remove CCCmode handling.
3349         <case LTU>: Return 'c' suffix for CCCmode.
3350         <case GEU>: Return 'nc' suffix for CCCmode.
3351         (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
3352         * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
3353         (*sub<mode>3_cc_overflow): Ditto.
3354         (*subsi3_zext_cc_overflow): Ditto.
3356 2013-10-22  Steve Ellcey  <sellcey@mips.com>
3358         * config/mips/mips.c (mips_rtx_costs):  Fix cost estimate for nor
3359         (AND (NOT OP1) (NOT OP2)).
3361 2013-10-22  Bill Schmidt  <wschmidt@vnet.ibm.com>
3363         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
3364         meaning of merge-high and merge-low masks for little endian; avoid
3365         use of vector-pack masks for little endian for mismatched modes.
3367 2013-10-22  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
3369         * config/tilepro/tilepro.c: Include "tree.h".
3371 2013-10-22  Andreas Schwab  <schwab@suse.de>
3373         * config/m68k/m68k.c (notice_update_cc): Handle register conflict
3374         with PRE_DEC.
3376 2013-10-22  Paolo Carlini  <paolo.carlini@oracle.com>
3378         * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
3379         [Ed Smith-Rowland]): New entries.
3380         ([Stephen M. Webb]): Update.
3382 2013-10-22  Andrew MacLeod  <amacleod@redhat.com>
3384         * tree-ssa-ter.h: Remove duplicate copy of file contents.
3386 2013-10-21  Marek Polacek  <polacek@redhat.com>
3388         PR middle-end/58809
3389         * fold-const.c (fold_range_test): Return 0 if the type is not
3390         an integral type.
3392 2013-10-21  Richard Sandiford  <rdsandiford@googlemail.com>
3394         * system.h: Move hwint.h include further down.
3395         * hwint.h (sext_hwi, zext_hwi): Define unconditionally.  Add
3396         gcc_checking_asserts.
3397         * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
3399 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3401         Fix volatile issues in optimize_bit_field_compare.
3402         * fold-const.c (optimize_bit_field_compare): Bail out if
3403         lvolatilep or rvolatilep.
3405 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3407         Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
3408         and get_inner_reference returning different pmode for non-volatile
3409         bit-field members dependent on flag_strict_volatile_bitfields.
3410         * stor-layout.c (layout_decl): Remove special handling of
3411         flag_strict_volatile_bitfields.
3412         * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
3413         if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
3415 2013-10-21  Paulo Matos  <pmatos@broadcom.com>
3417         * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
3418         calculations.
3420 2013-10-21  Jeff Law  <law@redhat.com>
3422         * tree-ssa-threadedge.c (thread_through_normal_block): New
3423         argument VISITED.  Remove VISISTED as a local variable.  When we
3424         have a threadable jump, verify the destination of the jump has not
3425         been visised.
3426         (thread_across_edge): Allocate VISITED bitmap once at function
3427         scope and use it throughout.  Make sure to set appropriate bits in
3428         VISITED for E (start of jump thread path).
3429         * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
3430         through a joiner if any edge on the path has a recorded jump thread.
3432 2013-10-21  Ian Lance Taylor  <iant@google.com>
3434         * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
3435         don't imply that attributes can solve all problems.
3436         (Directory Options): Fix typo.
3438 2013-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3440         * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
3441         extend and extend_add.
3443 2013-10-21  Richard Biener  <rguenther@suse.de>
3445         PR tree-optimization/58794
3446         * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
3447         of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
3449 2013-10-21  Richard Biener  <rguenther@suse.de>
3451         PR middle-end/58742
3452         * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
3453         to (T) X for sign-changing conversions (or no conversion).
3455 2013-10-20  Uros Bizjak  <ubizjak@gmail.com>
3457         * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
3459 2013-10-20  Jan Hubicka  <jh@suse.cz>
3461         * config/i386/i386-tune.def: Add comment; organize into categories
3463 2013-10-21  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
3465         * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
3466         argument.  Update function comment.
3467         (expand_set_or_movmem_via_rep): New function combining
3468         expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
3469         (expand_movmem_via_rep_mov): Remove.
3470         expand_setmem_via_rep_stos): Remove.
3471         (expand_movmem_epilogue): Update calls correspondingly.
3472         (expand_setmem_epilogue_via_loop): Likewise.
3473         (emit_memset): New.
3474         (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
3475         (expand_set_or_movmem_prologue): New function combining
3476         expand_movmem_prologue and expand_setmem_prologue.
3477         (expand_movmem_prologue): Remove.
3478         (expand_setmem_prologue): Remove.
3479         (expand_set_or_movmem_constant_prologue): New function combining
3480         expand_constant_movmem_prologue and expand_constant_setmem_prologue.
3481         (expand_constant_movmem_prologue): Remove.
3482         (expand_constant_setmem_prologue): Remove.
3483         (promote_duplicated_reg): Allow vector-const0 value.
3484         (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
3485         and ix86_expand_setmem.
3486         (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
3487         (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
3489 2013-10-21  Diego Novillo  <dnovillo@google.com>
3491         * asan.c: Include tree.h
3492         * bb-reorder.c: Likewise.
3493         * cfgcleanup.c: Likewise.
3494         * cfgloopmanip.c: Likewise.
3495         * data-streamer-in.c: Likewise.
3496         * data-streamer-out.c: Likewise.
3497         * data-streamer.c: Likewise.
3498         * dwarf2cfi.c: Likewise.
3499         * graphite-blocking.c: Likewise.
3500         * graphite-clast-to-gimple.c: Likewise.
3501         * graphite-dependences.c: Likewise.
3502         * graphite-interchange.c: Likewise.
3503         * graphite-optimize-isl.c: Likewise.
3504         * graphite-poly.c: Likewise.
3505         * graphite-scop-detection.c: Likewise.
3506         * graphite-sese-to-poly.c: Likewise.
3507         * graphite.c: Likewise.
3508         * ipa-devirt.c: Likewise.
3509         * ipa-profile.c: Likewise.
3510         * ipa.c: Likewise.
3511         * ira.c: Likewise.
3512         * loop-init.c: Likewise.
3513         * loop-unroll.c: Likewise.
3514         * lower-subreg.c: Likewise.
3515         * lto/lto-object.c: Likewise.
3516         * recog.c: Likewise.
3517         * reginfo.c: Likewise.
3518         * tree-loop-distribution.c: Likewise.
3519         * tree-parloops.c: Likewise.
3520         * tree-ssa-strlen.c: Likewise.
3521         * tree-streamer.c: Likewise.
3522         * value-prof.c: Likewise.
3523         * target-globals.c: Likewise.
3524         * expr.h: Include tree-core.h instead of tree.h.
3525         * gimple.h: Likewise.
3526         * ipa-prop.h: Likewise.
3527         * ipa-utils.h: Likewise.
3528         * lto-streamer.h: Likewise.
3529         * streamer-hooks.h: Likewise.
3530         * ipa-reference.h: Include cgraph.h instead of tree.h.
3531         * cgraph.h: Include basic-block.h instead of tree.h.
3532         * tree-streamer.h: Do not include tree.h.
3533         * genattrtab.c (write_header): Generate inclusion of
3534         tree.h.
3535         * genautomata.c (main): Likewise.
3536         * genemit.c: Likewise.
3537         * genopinit.c: Likewise.
3538         * genoutput.c (output_prologue): Likewise.
3539         * genpeep.c: Likewise.
3541 2013-10-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3543         * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
3544         little endian.
3545         (vec_unpacku_hi_v8hi): Likewise.
3546         (vec_unpacku_lo_v16qi): Likewise.
3547         (vec_unpacku_lo_v8hi): Likewise.
3549 2013-10-20  Jan Hubicka  <jh@suse.cz>
3551         * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
3552         X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
3553         (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
3555 2013-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
3557         * config/mips/mips.h (ISA_HAS_WSBH): Define.
3558         * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
3559         constants.
3560         (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
3562 2013-10-19  John David Anglin  <danglin@gcc.gnu.org>
3564         PR target/58603
3565         * system.h: Undef m_slot.
3567 2013-10-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3569         * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
3570         all elements for both endian flavors.
3572 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
3574         PR target/58792
3575         * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
3576         ST1_REG and XMM1_REG for 32bit and 64bit targets.  Also add DI_REG
3577         and SI_REG for 64bit SYSV ABI targets.
3579 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
3581         * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
3582         to multi_reg_return.  Clarify that we are skipping USEs of multiple
3583         return registers.  Use bool type where appropriate.
3585 2013-10-18  Jan Hubicka  <jh@suse.cz>
3587         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
3588         for cold functions.
3589         * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
3590         (X86_TUNE_PUSH_MEMORY): Likewise.
3591         (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
3592         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
3593         (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
3594         New.
3595         * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
3596         x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
3597         Remove.
3598         (ix86_option_override_internal): Update to use tune features instead
3599         of variables.
3601 2013-10-18  Cong Hou  <congh@google.com>
3603         PR tree-optimization/58508
3604         * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
3605         statement that contains data refs with zero-step.
3607 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
3609         * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
3610         sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
3611         * gimple-low.c (gimple_check_call_arg,
3612         gimple_check_call_matching_types): Move to cgraph.c.
3613         * gimple-low.h: Remove prototype.
3614         * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
3615         Relocate from gimple-low.c.
3616         * cgraph.h: Add prototype.  Don't include basic-block.h.
3617         * gimplify.c: Add gimple-low to include list.
3618         * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
3619         * tree-eh.c: Add gimple-low to include list.
3620         * tree-nested.c: Likewise.
3621         * cfgexpand.c: Add tree-ssa-address.h to include list.
3622         * expr.c: Likewise.
3623         * gimple-fold.c: Likewise.
3624         * gimple-ssa-strength-reduction.c: Likewise.
3625         * trans-mem.c: Likewise.
3626         * tree-mudflap.c: Likewise.
3627         * tree-ssa-loop-ivopts.c: Likewise.
3628         * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
3629         (degenerate_phi_result): Move to tree-phinodes.c.
3630         * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
3631         * tree-ssa-threadedge.c: Likewise.
3632         * tree-vrp.c: Likewise.
3633         * tree-phinodes.c (degenerate_phi_result): Relocate here.
3634         * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
3635         * tree-phinodes.h (degenerate_phi_result): Add prototype.
3636         * tree-ssa-copy.c: Include tree-ssa-dom.h.
3637         * tree-ssa-forwprop.c: Likewise.
3638         * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
3639         pass_data_cleanup_cfg_post_optimizing,
3640         make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
3641         * tree-optimize.c: Delete File.
3642         * graphite.c: Include tree-cfgcleanup.h.
3643         * passes.c: Likewise.
3644         * tree-cfg.c: Likewise.
3645         * tree-profile.c: Likewise.
3646         * tree-ssa-dse.c: Likewise.
3647         * tree-ssa-loop-ivcanon.c: Likewise.
3648         * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
3649         * tree-outof-ssa.c: Include sbitmap.h.
3650         * tree-ssa-live.c: Likewise.
3651         * tree-ssa-propagate.c: Likewise.
3652         * tree-ssa-structalias.c: Likewise.
3653         * tree-stdarg.c: Likewise.
3654         * Makefile.in (OBJS): Delete tree-optimize.o.
3655         * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
3656         * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
3657         * varasm.c: Include basic-block.h.
3658         * cfgloop.h: Include function.h instead of basic-block.h
3659         (bb_loop_depth): Move to cfgloop.c.
3660         * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
3662 2013-10-18  Teresa Johnson  <tejohnson@google.com>
3664         * predict.c (probably_never_executed): Compare frequency-based
3665         count to number of training runs.
3666         * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
3668 2013-10-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3670         * config/arm/arm.c (cortexa9_extra_costs): New table.
3671         (arm_cortex_a9_tune): Use cortexa9_extra_costs.
3673 2013-10-18  Jeff Law  <law@redhat.com>
3675         * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
3677         * tree-ssa-threadupdate.c: Include "dbgcnt.h".
3678         (register_jump_thread): Add "registered_jump_thread" debug
3679         counter support.
3680         * dbgcnt.def (registered_jump_thread): New debug counter.
3682 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
3684         * config/rs6000/rs6000.c: Include cgraph.h.
3686 2013-10-18  Teresa Johnson  <tejohnson@google.com>
3688         * tree-ssa-tail-merge.c (replace_block_by): Update edge
3689         weights during merging.
3691 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
3693         * tree-cfg.h: Rename from tree-flow.h.  Remove #includes.
3694         * tree-ssa.h: Relocate required #includes from tree-cfg.h.
3695         * tree-ssa-operands.h: Remove prototype.
3696         * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
3697         * gimple.c (virtual_operand_p): Relocate from gimple.c.
3698         * gimple.h: Add prototype.
3699         * gimple-ssa.h: Include tree-ssa-operands.h.
3700         * tree-dump.c: Add tree-cfg.h to include list.
3701         * tree-ssa-alias.c: Add ipa-reference.h to include list.
3702         * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
3703         * config/i386/i386.c: Don't include tree-flow.h.
3704         * config/rs6000/rs6000.c: Likewise.
3706 2013-10-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
3708         * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
3710 2013-10-18  Richard Biener  <rguenther@suse.de>
3712         * stor-layout.c (layout_type): Do not change TYPE_PRECISION
3713         or TYPE_UNSIGNED of integral types.
3714         (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
3715         NULL_TREE for zero-precision integral types.
3717 2013-10-18  James Greenhalgh  <james.greenhalgh@arm.com>
3719         * config/aarch64/arm_neon.h
3720         (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
3722 2013-10-17  Sriraman Tallam  <tmsriram@google.com>
3724         PR target/57756
3725         * opth-gen.awk: Define target_flags_explicit.
3727 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
3729         * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
3730         fields to the reg_addr array that describes the valid addressing
3731         mode for any register, general purpose registers, floating point
3732         registers, and Altivec registers.
3733         (FIRST_RELOAD_REG_CLASS): Likewise.
3734         (LAST_RELOAD_REG_CLASS): Likewise.
3735         (struct reload_reg_map_type): Likewise.
3736         (reload_reg_map_type): Likewise.
3737         (RELOAD_REG_VALID): Likewise.
3738         (RELOAD_REG_MULTIPLE): Likewise.
3739         (RELOAD_REG_INDEXED): Likewise.
3740         (RELOAD_REG_OFFSET): Likewise.
3741         (RELOAD_REG_PRE_INCDEC): Likewise.
3742         (RELOAD_REG_PRE_MODIFY): Likewise.
3743         (reg_addr): Likewise.
3744         (mode_supports_pre_incdec_p): New helper functions to say whether
3745         a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
3746         (mode_supports_pre_modify_p): Likewise.
3747         (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
3748         print the valid address mode bits for each mode.
3749         (rs6000_debug_print_mode): Likewise.
3750         (rs6000_debug_reg_global): Likewise.
3751         (rs6000_setup_reg_addr_masks): New function to set up the address
3752         mask bits for each type.
3753         (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
3754         Call rs6000_setup_reg_addr_masks to set up the address mask bits.
3755         (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
3756         mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
3757         PRE_MODIFY are supported.
3758         (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
3759         registers, instead of {src,dest}_av_p.
3760         (rs6000_print_options_internal): Tweak the debug output slightly.
3762 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
3764         * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
3765         isa attribute.
3767 2013-10-17  Andrew MacLeod  <amacleod@redhat.com>
3769         * tree-flow.h (struct omp_region): Move to omp-low.c.
3770         Remove omp_ prototypes and variables.
3771         * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
3772         (copy_var_decl): Relocate prototype from tree-flow.h.
3773         * gimple.c (copy_var_decl): Relocate from omp-low.c.
3774         * tree.h: Move prototype to omp-low.h.
3775         * omp-low.h: New File.  Relocate prototypes here.
3776         * omp-low.c (struct omp_region): Make local here.
3777         (root_omp_region): Make static.
3778         (copy_var_decl) Move to gimple.c.
3779         (new_omp_region): Make static.
3780         (make_gimple_omp_edges): New.  Refactored from tree-cfg.c make_edges.
3781         * tree-cfg.c: Include omp-low.h.
3782         (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
3783         * gimplify.c: Include omp-low.h.
3784         * tree-parloops.c: Likewise.
3786 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
3788         * config/i386/i386.c (ix86_fixup_binary_operands): When both source
3789         operands are in memory, prefer to force non-matched operand 1 to
3790         the register.
3792 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
3794         PR target/58673
3795         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
3796         restrict TImode addresses to single indirect registers if both
3797         -mquad-memory and -mvsx-timode are used.
3798         (rs6000_output_move_128bit): Use quad_load_store_p to determine if
3799         we should emit load/store quad.  Remove using %y for quad memory
3800         addresses.
3802         * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
3803         constraints to allow load/store quad on machines where TImode is
3804         not allowed in VSX registers.  Use 'n' instead of 'F' constraint
3805         for TImode to load integer constants.
3807 2013-10-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3809         * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
3811 2013-10-17  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3813         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
3814         handling of STACK_REG.
3816 2013-10-17  Richard Biener  <rguenther@suse.de>
3818         PR tree-optimization/58143
3819         * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
3820         New function.
3821         (rewrite_to_defined_overflow): Likewise.
3822         (move_computations_dom_walker::before_dom): Rewrite stmts
3823         with undefined signed overflow that are not always executed
3824         into unsigned arithmetic.
3826 2013-10-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
3828         PR target/57756
3829         * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
3830         explicit isa flag to be an options variable, instead of using
3831         global_options_set.  Remove define from rs6000.h.
3832         * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
3834         * config/rs6000/rs6000.c (rs6000_option_override_internal):
3835         Initialize rs6000_isa_flags_explicit.
3836         (rs6000_function_specific_save): Add gcc_options* parameter, so
3837         that the powerpc builds after the 2013-10-15 changes.
3838         (rs6000_function_specific_restore): Likewise.
3840 2013-10-16  DJ Delorie  <dj@redhat.com>
3842         * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
3843         op is a REG before checking REGNO.
3844         (rl78_alloc_physical_registers): Verify pattern is a SET before
3845         checking SET_SRC.
3847 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3849         * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
3850         endianness.
3851         (vec_unpacks_lo_v4sf): Likewise.
3852         (vec_unpacks_float_hi_v4si): Likewise.
3853         (vec_unpacks_float_lo_v4si): Likewise.
3854         (vec_unpacku_float_hi_v4si): Likewise.
3855         (vec_unpacku_float_lo_v4si): Likewise.
3857 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3859         * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
3860         (vsx_concat_v2sf): Likewise.
3862 2013-10-16  James Greenhalgh  <james.greenhalgh@arm.com>
3864         * config/aarch64/aarch64.md
3865         (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
3867 2013-10-16  Andrew MacLeod  <amacleod@redhat.com>
3869         PR tree-optimization/58697
3870         * cfgloop.c (get_estimated_loop_iterations_int): Rename from
3871         estimated_loop_iterations_int.
3872         (max_stmt_executions_int): Call get_max_loop_iterations_int.
3873         (get_max_loop_iterations_int): New.  HWINT version of
3874         get_max_loop_iterations.
3875         * cfgloop.h: Add prototypes.
3876         * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
3877         * loop-unroll.c (decide_peel_once_rolling): Call
3878         get_estimated_loop_iterations_int.
3879         * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
3880         * tree-ssa-loop-niter.h: Tweak prototypes.
3882 2013-10-16  David Malcolm  <dmalcolm@redhat.com>
3884         * gengtype-parse.c (struct_field_seq): Ignore access-control
3885         keywords ("public:" etc).
3887 2013-10-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3889         * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
3890         FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
3892 2013-10-16  Yvan Roux  <yvan.roux@linaro.org>
3894         * config/arm/arm.opt (mlra): New option.
3895         * config/arm/arm.c (arm_lra_p): New function.
3896         (TARGET_LRA_P): Define.
3898 2013-10-16  Paulo Matos  <pmatos@broadcom.com>
3900         * tree-core.h (tree_code_name): Remove.
3901         * tree.h (get_tree_code_name): New prototype.
3902         * tree.c (tree_code_name): Make static.
3903         (get_tree_code_name): New function.
3904         (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
3905         tree_class_check_failed, tree_range_check_failed,
3906         tree_not_class_check_failed, omp_clause_check_failed,
3907         tree_contains_struct_check_failed, tree_operand_check_failed): Use new
3908         wrapper get_tree_code_name instead of calling tree_code_name directly.
3909         * tree-vrp.c (dump_asserts_for): Likewise.
3910         * tree-dump.c (dequeue_and_dump): Likewise.
3911         * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
3912         * tree-pretty-print.h (pp_unsupported_tree): Likewise.
3913         * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
3914         * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
3915         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
3916         dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
3917         dump_gimple_omp_for): Likewise.
3918         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
3919         * tree-ssa-pre.c (print_pre_expr): Likewise.
3920         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
3921         * print-tree.c (print_node_brief, print_node): Likewise.
3922         * gimple.c (gimple_check_failed): Likewise.
3923         * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
3924         * config/frv/frv.c (frv_init_cumulative_args): Likewise.
3925         * config/mep/mep.c (mep_validate_vliw): Likewise.
3926         * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
3927         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
3929 2013-10-16 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3931         * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
3932         for AMD bdver3.
3934 2013-10-16  Hans-Peter Nilsson  <hp@axis.com>
3936         * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
3937         (MULTILIB_MATCHES): Add multilib for -march=v8.
3939 2013-10-15 Sriraman Tallam  <tmsriram@google.com>
3941         PR target/57756
3942         * optc-save-gen.awk: Add extra parameter to the save and restore
3943         target calls.
3944         * opth-gen.awk: Generate new TARGET_* macros  to accept a parameter.
3945         * tree.c (build_optimization_node): New parameter.  Add extra parameter
3946         to call to cl_optimization_save.
3947         (build_target_option_node): New parameter. Add extra parameter
3948         to call to cl_target_option_save.
3949         * tree.h (build_optimization_node): New parameter.
3950         (build_target_option_node): New parameter.
3951         * c-family/c-common.c (handle_optimize_attribute): Fix calls to
3952         build_optimization_node and build_target_option_node.
3953         * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
3954         (handle_pragma_push_options): Ditto.
3955         * toplev.c (process_options): Ditto.
3956         * opts.c (init_options_struct): Check for opts_set non-null.
3957         * target.def (target_option.save): New parameter.
3958         (target_option.restore): New parameter.
3959         * tm.texi: Generate.
3960         * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
3961         (ix86_pragma_target_parse): Ditto.
3962         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
3963         parameters.
3964         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
3965         to  build_optimization_node and build_target_option_node.
3966         (rs6000_valid_attribute_p): Ditto.
3967         (rs6000_pragma_target_parse): Ditto.
3968         * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
3969         data.
3970         * config/i386/i386.h:
3971         TARGET_64BIT_P: New Macro
3972         TARGET_MMX_P: New Macro.
3973         TARGET_3DNOW_P: New Macro.
3974         TARGET_3DNOW_A_P: New Macro.
3975         TARGET_SSE_P: New Macro.
3976         TARGET_SSE2_P: New Macro.
3977         TARGET_SSE3_P: New Macro.
3978         TARGET_SSSE3_P: New Macro.
3979         TARGET_SSE4_1_P: New Macro.
3980         TARGET_SSE4_2_P: New Macro.
3981         TARGET_AVX_P: New Macro.
3982         TARGET_AVX2_P: New Macro.
3983         TARGET_AVX512F_P: New Macro.
3984         TARGET_AVX512PF_P: New Macro.
3985         TARGET_AVX512ER_P: New Macro.
3986         TARGET_AVX512CD_P: New Macro.
3987         TARGET_FMA_P: New Macro.
3988         TARGET_SSE4A_P: New Macro.
3989         TARGET_FMA4_P: New Macro.
3990         TARGET_XOP_P: New Macro.
3991         TARGET_LWP_P: New Macro.
3992         TARGET_ABM_P: New Macro.
3993         TARGET_BMI_P: New Macro.
3994         TARGET_BMI2_P: New Macro.
3995         TARGET_LZCNT_P: New Macro.
3996         TARGET_TBM_P: New Macro.
3997         TARGET_POPCNT_P: New Macro.
3998         TARGET_SAHF_P: New Macro.
3999         TARGET_MOVBE_P: New Macro.
4000         TARGET_CRC32_P: New Macro.
4001         TARGET_AES_P: New Macro.
4002         TARGET_PCLMUL_P: New Macro.
4003         TARGET_CMPXCHG16B_P: New Macro.
4004         TARGET_FSGSBASE_P: New Macro.
4005         TARGET_RDRND_P: New Macro.
4006         TARGET_F16C_P: New Macro.
4007         TARGET_RTM_P: New Macro.
4008         TARGET_HLE_P: New Macro.
4009         TARGET_RDSEED_P: New Macro.
4010         TARGET_PRFCHW_P: New Macro.
4011         TARGET_ADX_P: New Macro.
4012         TARGET_FXSR_P: New Macro.
4013         TARGET_XSAVE_P: New Macro.
4014         TARGET_XSAVEOPT_P: New Macro.
4015         TARGET_LP64_P: New Macro.
4016         TARGET_X32_P: New Macro.
4017         TARGET_FPMATH_DEFAULT_P: New Macro.
4018         TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
4019         * config/i386/i386.c (ix86_option_override_internal): New parameters.
4020         opts and opts_set.
4021         Change ix86_tune_string to access opts->x_ix86_tune_string.
4022         Change ix86_isa_flags to access opts->x_ix86_isa_flags.
4023         Change ix86_arch_string to access opts->x_ix86_arch_string.
4024         Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
4025         Change ix86_pmode to access opts->x_ix86_pmode.
4026         Change ix86_abi to access opts->x_ix86_abi.
4027         Change ix86_cmodel to access opts->x_ix86_cmodel.
4028         Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
4029         Change ix86_isa_flags_explicit to access
4030         opts->x_ix86_isa_flags_explicit.
4031         Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
4032         Change ix86_regparm to access opts->x_ix86_regparm.
4033         Change ix86_branch_cost to access opts->x_ix86_branch_cost.
4034         Change ix86_preferred_stack_boundary_arg to access
4035         opts->x_ix86_preferred_stack_boundary_arg.
4036         Change ix86_force_align_arg_pointer to access
4037         opts->x_ix86_force_align_arg_pointer.
4038         Change ix86_incoming_stack_boundar_arg to access
4039         opts->x_ix86_incoming_stack_boundar_arg.
4040         Change ix86_fpmath to access opts->x_ix86_fpmath.
4041         Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
4042         Change ix86_recip_name to access opts->x_ix86_recip_name.
4043         Change ix86_stack_protector_guard to access
4044         opts->x_ix86_stack_protector_guard.
4045         Change ix86_tune_memcpy_strategy to access
4046         opts->x_ix86_tune_memcpy_strategy.
4047         Change ix86_tune_memset_strategy to access
4048         opts->x_ix86_tune_memset_strategy.
4049         Change global_options to access opts.
4050         Change global_options_set to access opts_set.
4051         Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
4052         Change TARGET_MMX to TARGET_MMX_P (opts->...).
4053         Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
4054         Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
4055         Change TARGET_SSE to TARGET_SSE_P (opts->...).
4056         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
4057         Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
4058         Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
4059         Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
4060         Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
4061         Change TARGET_AVX to TARGET_AVX_P (opts->...).
4062         Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
4063         Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
4064         Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
4065         Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
4066         Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
4067         Change TARGET_FMA to TARGET_FMA_P (opts->...).
4068         Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
4069         Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
4070         Change TARGET_XOP to TARGET_XOP_P (opts->...).
4071         Change TARGET_LWP to TARGET_LWP_P (opts->...).
4072         Change TARGET_ABM to TARGET_ABM_P (opts->...).
4073         Change TARGET_BMI to TARGET_BMI_P (opts->...).
4074         Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
4075         Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
4076         Change TARGET_TBM to TARGET_TBM_P (opts->...).
4077         Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
4078         Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
4079         Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
4080         Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
4081         Change TARGET_AES to TARGET_AES_P (opts->...).
4082         Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
4083         Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
4084         Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
4085         Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
4086         Change TARGET_F16C to TARGET_F16C_P (opts->...).
4087         Change TARGET_RTM to TARGET_RTM_P (opts->...).
4088         Change TARGET_HLE to TARGET_HLE_P (opts->...).
4089         Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
4090         Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
4091         Change TARGET_ADX to TARGET_ADX_P (opts->...).
4092         Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
4093         Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
4094         Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
4095         Change TARGET_LP64 to TARGET_LP64_P (opts->...).
4096         Change TARGET_X32 to TARGET_X32_P (opts->...).
4097         Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
4098         Change TARGET_FLOAT_RETURNS_IN_80387 to
4099         TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
4100         (ix86_function_specific_save): New parameter. Use opts-> fields
4101         to replace global fields.
4102         (ix86_function_specific_restore): Ditto.
4103         (ix86_valid_target_attribute_inner_p): New parameters.
4104         Fix recursive call.
4105         Fix call to ix86_handle_option and set_option.
4106         (ix86_valid_target_attribute_tree): New parameters.
4107         Change global_options to access opts.
4108         Change global_options_set to access opts_set.
4109         Fix call to ix86_valid_target_attribute_inner_p.
4110         Change ix86_tune_string to access opts->x_ix86_tune_string.
4111         Change ix86_arch_string to access opts->x_ix86_arch_string.
4112         Change ix86_fpmath to access opts->x_ix86_fpmath
4113         Fix call to ix86_option_override_internal.
4114         Fix call to ix86_add_new_builtins.
4115         Fix calls to build_optimization_node and build_target_option_node.
4116         (ix86_valid_target_attribute_p): Remove access to global_options.
4117         Use new gcc_options structure func_options.
4118         Fix call to ix86_valid_target_attribute_tree.
4119         Fix call to  build_optimization_node.
4120         (get_builtin_code_for_version): Fix call to
4121         ix86_valid_target_attribute_tree.
4123 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
4125         * Makefile.in (PICFLAG): New.
4126         (enable_host_shared): New.
4127         (INTERNAL_CFLAGS): Use PICFLAG.
4128         (LIBIBERTY): Use pic build of libiberty.a if configured with
4129         --enable-host-shared.
4130         * configure.ac: Add --enable-host-shared, setting up new
4131         PICFLAG variable.
4132         * configure: Regenerate.
4133         * doc/install.texi (--enable-shared): Add note contrasting it with ...
4134         (--enable-host-shared): New option.
4136 2013-10-15  Richard Biener  <rguenther@suse.de>
4138         * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
4139         for built-in functions.
4141 2013-10-15  Zhenqiang Chen  <zhenqiang.chen@arm.com>
4143         * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
4144         (optimize_range_tests_1): New function,
4145         extracted from optimize_range_tests.
4146         (optimize_range_tests_xor): Similarly.
4147         (optimize_range_tests_diff): New function.
4148         (optimize_range_tests): Use optimize_range_tests_1.
4150 2013-10-15  Cong Hou  <congh@google.com>
4152         * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
4153         requirement of the reduction pattern so that one operand of the
4154         reduction operation can come from outside of the loop.
4156 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
4158         * config/arm/neon-schedgen.ml: Remove.
4159         * config/arm/cortex-a9-neon.md: Remove comment regarding
4160         neon-schedgen.ml.
4162 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
4164         * config/arm/types: Remove old neon types.
4166 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
4168         * config/arm/cortex-a7.md
4169         (cortex_a7_neon_type): New.
4170         (cortex_a7_neon_mul): Update for new types.
4171         (cortex_a7_neon_mla): Likewise.
4172         (cortex_a7_neon): Likewise.
4174 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
4176         * config/arm/cortex-a15-neon.md
4177         (cortex_a15_neon_type): New,
4179         (cortex_a15_neon_int_1): Remove.
4180         (cortex_a15_neon_int_2): Likewise.
4181         (cortex_a15_neon_int_3): Likewise.
4182         (cortex_a15_neon_int_4): Likewise.
4183         (cortex_a15_neon_int_5): Likewise.
4184         (cortex_a15_neon_vqneg_vqabs): Likewise.
4185         (cortex_a15_neon_vmov): Likewise.
4186         (cortex_a15_neon_vaba): Likewise.
4187         (cortex_a15_neon_vaba_qqq): Likewise.
4188         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
4189         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
4190         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
4191         Likewise.
4192         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
4193         (cortex_a15_neon_mla_qqq_8_16): Likewise.
4194         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
4195         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
4196         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
4197         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
4198         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
4199         (cortex_a15_neon_shift_1): Likewise.
4200         (cortex_a15_neon_shift_2): Likewise.
4201         (cortex_a15_neon_shift_3): Likewise.
4202         (cortex_a15_neon_vshl_ddd): Likewise.
4203         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
4204         (cortex_a15_neon_vsra_vrsra): Likewise.
4205         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
4206         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
4207         (cortex_a15_neon_bp_3cycle): Likewise.
4208         (cortex_a15_neon_ldm_2): Likewise.
4209         (cortex_a15_neon_stm_2): Likewise.
4210         (cortex_a15_neon_mcr): Likewise.
4211         (cortex_a15_neon_mrc): Likewise.
4212         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
4213         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
4214         (cortex_a15_neon_fp_vmul_ddd): Likewise.
4215         (cortex_a15_neon_fp_vmul_qqd): Likewise.
4216         (cortex_a15_neon_fp_vmla_ddd): Likewise.
4217         (cortex_a15_neon_fp_vmla_qqq): Likewise.
4218         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
4219         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
4220         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
4221         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
4222         (cortex_a15_neon_bp_simple): Likewise.
4223         (cortex_a15_neon_bp_2cycle): Likewise.
4224         (cortex_a15_neon_bp_3cycle): Likewise.
4225         (cortex_a15_neon_vld1_1_2_regs): Likewise.
4226         (cortex_a15_neon_vld1_3_4_regs): Likewise.
4227         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
4228         (cortex_a15_neon_vld2_4_regs): Likewise.
4229         (cortex_a15_neon_vld3_vld4): Likewise.
4230         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
4231         (cortex_a15_neon_vst1_3_4_regs): Likewise.
4232         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
4233         (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
4234         (cortex_a15_neon_vst3_vst4): Rename to...
4235         (cortex_a15_neon_vst4): This, update for new attributes.
4236         (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
4237         (cortex_a15_neon_vld3_vld4_lane): Likewise.
4238         (cortex_a15_neon_vst1_vst2_lane): Likewise.
4239         (cortex_a15_neon_vst3_vst4_lane): Likewise.
4240         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
4241         (cortex_a15_neon_ldm_2): Likewise.
4242         (cortex_a15_neon_stm_2): Likewise.
4243         (cortex_a15_neon_mcr): Likewise.
4244         (cortex_a15_neon_mcr_2_mcrr): Likewise.
4245         (cortex_a15_neon_mrc): Likewise.
4246         (cortex_a15_neon_mrrc): Likewise.
4248         (cortex_a15_neon_abd): New.
4249         (cortex_a15_neon_abd_q): Likewise.
4250         (cortex_a15_neon_aba): Likewise.
4251         (cortex_a15_neon_aba_q): Likewise.
4252         (cortex_a15_neon_acc): Likewise.
4253         (cortex_a15_neon_acc_q): Likewise.
4254         (cortex_a15_neon_arith_basic): Likewise.
4255         (cortex_a15_neon_arith_complex): Likewise.
4256         (cortex_a15_neon_multiply): Likewise.
4257         (cortex_a15_neon_multiply_q): Likewise.
4258         (cortex_a15_neon_mla): Likewise.
4259         (cortex_a15_neon_mla_q): Likewise.
4260         (cortex_a15_neon_sat_mla_long): Likewise.
4261         (cortex_a15_neon_shift_acc): Likewise.
4262         (cortex_a15_neon_shift_imm_basic): Likewise.
4263         (cortex_a15_neon_shift_imm_complex): Likewise.
4264         (cortex_a15_neon_shift_reg_basic): Likewise.
4265         (cortex_a15_neon_shift_reg_basic_q): Likewise.
4266         (cortex_a15_neon_shift_reg_complex): Likewise.
4267         (cortex_a15_neon_shift_reg_complex_q): Likewise.
4268         (cortex_a15_neon_fp_negabs): Likewise
4269         (cortex_a15_neon_fp_arith): Likewise
4270         (cortex_a15_neon_fp_arith_q): Likewise
4271         (cortex_a15_neon_fp_cvt_int): Likewise
4272         (cortex_a15_neon_fp_cvt_int_q): Likewise
4273         (cortex_a15_neon_fp_cvt_16): Likewise
4274         (cortex_a15_neon_fp_mul): Likewise
4275         (cortex_a15_neon_fp_mul_q): Likewise
4276         (cortex_a15_neon_fp_mla): Likewise
4277         (cortex_a15_neon_fp_mla_q): Likewise
4278         (cortex_a15_neon_fp_recps_rsqrte): Likewise.
4279         (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
4280         (cortex_a15_neon_bitops): Likewise.
4281         (cortex_a15_neon_bitops_q): Likewise.
4282         (cortex_a15_neon_from_gp): Likewise.
4283         (cortex_a15_neon_from_gp_q): Likewise.
4284         (cortex_a15_neon_tbl3_tbl4): Likewise.
4285         (cortex_a15_neon_zip_q): Likewise.
4286         (cortex_a15_neon_to_gp): Likewise.
4287         (cortex_a15_neon_load_a): Likewise.
4288         (cortex_a15_neon_load_b): Likewise.
4289         (cortex_a15_neon_load_c): Likewise.
4290         (cortex_a15_neon_load_d): Likewise.
4291         (cortex_a15_neon_load_e): Likewise.
4292         (cortex_a15_neon_load_f): Likewise.
4293         (cortex_a15_neon_store_a): Likewise.
4294         (cortex_a15_neon_store_b): Likewise.
4295         (cortex_a15_neon_store_c): Likewise.
4296         (cortex_a15_neon_store_d): Likewise.
4297         (cortex_a15_neon_store_e): Likewise.
4298         (cortex_a15_neon_store_f): Likewise.
4299         (cortex_a15_neon_store_g): Likewise.
4300         (cortex_a15_neon_store_h): Likewise.
4301         (cortex_a15_vfp_to_from_gp): Likewise.
4303 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
4305         * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
4307         (cortex_a9_neon_vshl_ddd): Remove.
4308         (cortex_a9_neon_vst3_vst4): Likewise.
4309         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
4311         (cortex_a9_neon_bit_ops_q): New.
4313         (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
4314         (cortex_a9_neon_int_2): Likewise.
4315         (cortex_a9_neon_int_3): Likewise.
4316         (cortex_a9_neon_int_4): Likewise.
4317         (cortex_a9_neon_int_5): Likewise.
4318         (cortex_a9_neon_vqneg_vqabs): Likewise.
4319         (cortex_a9_neon_vmov): Likewise.
4320         (cortex_a9_neon_vaba): Likewise.
4321         (cortex_a9_neon_vaba_qqq): Likewise.
4322         (cortex_a9_neon_shift_1): Likewise.
4323         (cortex_a9_neon_shift_2): Likewise.
4324         (cortex_a9_neon_shift_3): Likewise.
4325         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
4326         (cortex_a9_neon_vsra_vrsra): Likewise.
4327         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
4328         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
4329         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
4330         Likewise.
4331         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
4332         (cortex_a9_neon_mla_qqq_8_16): Likewise.
4333         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
4334         Likewise.
4335         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
4336         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
4337         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
4338         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
4339         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
4340         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
4341         (cortex_a9_neon_fp_vsum): Likewise.
4342         (cortex_a9_neon_fp_vmul_ddd): Likewise.
4343         (cortex_a9_neon_fp_vmul_qqd): Likewise.
4344         (cortex_a9_neon_fp_vmla_ddd): Likewise.
4345         (cortex_a9_neon_fp_vmla_qqq): Likewise.
4346         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
4347         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
4348         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
4349         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
4350         (cortex_a9_neon_bp_simple): Likewise.
4351         (cortex_a9_neon_bp_2cycle): Likewise.
4352         (cortex_a9_neon_bp_3cycle): Likewise.
4353         (cortex_a9_neon_ldr): Likewise.
4354         (cortex_a9_neon_str): Likewise.
4355         (cortex_a9_neon_vld1_1_2_regs): Likewise.
4356         (cortex_a9_neon_vld1_3_4_regs): Likewise.
4357         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
4358         (cortex_a9_neon_vld2_4_regs): Likewise.
4359         (cortex_a9_neon_vld3_vld4): Likewise.
4360         (cortex_a9_neon_vld1_vld2_lane): Likewise.
4361         (cortex_a9_neon_vld3_vld4_lane): Likewise.
4362         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
4363         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
4364         (cortex_a9_neon_vst1_3_4_regs): Likewise.
4365         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
4366         (cortex_a9_neon_vst1_vst2_lane): Likewise.
4367         (cortex_a9_neon_vst3_vst4_lane): Likewise.
4368         (cortex_a9_neon_mcr): Likewise.
4369         (cortex_a9_neon_mcr_2_mcrr): Likewise.
4370         (cortex_a9_neon_mrc): Likewise.
4371         (cortex_a9_neon_mrrc): Likewise.
4373 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
4375         * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
4377         (cortex_a8_neon_vshl_ddd): Remove.
4378         (cortex_a8_neon_vst3_vst4): Likewise.
4379         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
4381         (cortex_a8_neon_bit_ops_q): New.
4383         (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
4384         (cortex_a8_neon_int_2): Likewise..
4385         (cortex_a8_neon_int_3): Likewise.
4386         (cortex_a8_neon_int_5): Likewise.
4387         (cortex_a8_neon_vqneg_vqabs): Likewise.
4388         (cortex_a8_neon_int_4): Likewise.
4389         (cortex_a8_neon_vaba): Likewise.
4390         (cortex_a8_neon_vaba_qqq): Likewise.
4391         (cortex_a8_neon_shift_1): Likewise.
4392         (cortex_a8_neon_shift_2): Likewise.
4393         (cortex_a8_neon_shift_3): Likewise.
4394         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
4395         (cortex_a8_neon_vsra_vrsra): Likewise.
4396         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
4397         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
4398         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
4399         Likewise.
4400         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
4401         (cortex_a8_neon_mla_qqq_8_16): Likewise.
4402         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
4403         Likewise.
4404         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
4405         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
4406         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
4407         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
4408         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
4409         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
4410         (cortex_a8_neon_fp_vsum): Likewise.
4411         (cortex_a8_neon_fp_vmul_ddd): Likewise.
4412         (cortex_a8_neon_fp_vmul_qqd): Likewise.
4413         (cortex_a8_neon_fp_vmla_ddd): Likewise.
4414         (cortex_a8_neon_fp_vmla_qqq): Likewise.
4415         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
4416         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
4417         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
4418         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
4419         (cortex_a8_neon_bp_simple): Likewise.
4420         (cortex_a8_neon_bp_2cycle): Likewise.
4421         (cortex_a8_neon_bp_3cycle): Likewise.
4422         (cortex_a8_neon_ldr): Likewise.
4423         (cortex_a8_neon_str): Likewise.
4424         (cortex_a8_neon_vld1_1_2_regs): Likewise.
4425         (cortex_a8_neon_vld1_3_4_regs): Likewise.
4426         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
4427         (cortex_a8_neon_vld2_4_regs): Likewise.
4428         (cortex_a8_neon_vld3_vld4): Likewise.
4429         (cortex_a8_neon_vld1_vld2_lane): Likewise.
4430         (cortex_a8_neon_vld3_vld4_lane): Likewise.
4431         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
4432         (cortex_a8_neon_vst1_3_4_regs): Likewise.
4433         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
4434         (cortex_a8_neon_vst1_vst2_lane): Likewise.
4435         (cortex_a8_neon_vst3_vst4_lane): Likewise.
4436         (cortex_a8_neon_mcr): Likewise.
4437         (cortex_a8_neon_mcr_2_mcrr): Likewise.
4438         (cortex_a8_neon_mrc): Likewise.
4439         (cortex_a8_neon_mrrc): Likewise.
4441 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
4443         * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
4444         (fp): New.
4445         * config/aarch64/aarch64-simd.md (neon_type): Remove.
4446         (aarch64_simd_dup<mode>): Add "type" attribute.
4447         (aarch64_dup_lane<mode>): Likewise.
4448         (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
4449         (*aarch64_simd_mov<mode>): Likewise.
4450         (aarch64_simd_mov_from_<mode>low): Likewise.
4451         (aarch64_simd_mov_from_<mode>high): Likewise.
4452         (orn<mode>3): Likewise.
4453         (bic<mode>3): Likewise.
4454         (add<mode>3): Likewise.
4455         (sub<mode>3): Likewise.
4456         (mul<mode>3): Likewise.
4457         (*aarch64_mul3_elt<mode>): Likewise.
4458         (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
4459         (*aarch64_mul3_elt_to_128df): Likewise.
4460         (*aarch64_mul3_elt_to_64v2df): Likewise.
4461         (neg<mode>2): Likewise.
4462         (abs<mode>2): Likewise.
4463         (abd<mode>_3): Likewise.
4464         (aba<mode>_3): Likewise.
4465         (fabd<mode>_3): Likewise.
4466         (*fabd_scalar<mode>3): Likewise.
4467         (and<mode>3): Likewise.
4468         (ior<mode>3): Likewise.
4469         (xor<mode>3): Likewise.
4470         (one_cmpl<mode>2): Likewise.
4471         (aarch64_simd_vec_set<mode>): Likewise.
4472         (aarch64_simd_lshr<mode>): Likewise.
4473         (aarch64_simd_ashr<mode>): Likewise.
4474         (aarch64_simd_imm_shl<mode>): Likewise.
4475         (aarch64_simd_reg_sshl<mode): Likewise.
4476         (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
4477         (aarch64_simd_reg_shl<mode>_signed): Likewise.
4478         (aarch64_simd_vec_setv2di): Likewise.
4479         (aarch64_simd_vec_set<mode>): Likewise.
4480         (aarch64_mla<mode>): Likewise.
4481         (*aarch64_mla_elt<mode>): Likewise.
4482         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
4483         (aarch64_mls<mode>): Likewise.
4484         (*aarch64_mls_elt<mode>): Likewise.
4485         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
4486         (<su><maxmin><mode>3): Likewise.
4487         (move_lo_quad_<mode>): Likewise.
4488         (aarch64_simd_move_hi_quad_<mode>): Likewise.
4489         (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
4490         (vec_pack_trunc_<mode>): Likewise.
4491         (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
4492         (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
4493         (*aarch64_<su>mlal_lo<mode>): Likewise.
4494         (*aarch64_<su>mlal_hi<mode>): Likewise.
4495         (*aarch64_<su>mlsl_lo<mode>): Likewise.
4496         (*aarch64_<su>mlsl_hi<mode>): Likewise.
4497         (*aarch64_<su>mlal<mode>): Likewise.
4498         (*aarch64_<su>mlsl<mode>): Likewise.
4499         (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
4500         (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
4501         (add<mode>3): Likewise.
4502         (sub<mode>3): Likewise.
4503         (mul<mode>3): Likewise.
4504         (div<mode>3): Likewise.
4505         (neg<mode>2): Likewise.
4506         (abs<mode>2): Likewise.
4507         (fma<mode>4): Likewise.
4508         (*aarch64_fma4_elt<mode>): Likewise.
4509         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
4510         (*aarch64_fma4_elt_to_128df): Likewise.
4511         (*aarch64_fma4_elt_to_64v2df): Likewise.
4512         (fnma<mode>4): Likewise.
4513         (*aarch64_fnma4_elt<mode>): Likewise.
4514         (*aarch64_fnma4_elt_<vswap_width_name><mode>
4515         (*aarch64_fnma4_elt_to_128df): Likewise.
4516         (*aarch64_fnma4_elt_to_64v2df): Likewise.
4517         (<frint_pattern><mode>2): Likewise.
4518         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
4519         (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
4520         (vec_unpacks_lo_v4sf): Likewise.
4521         (aarch64_float_extend_lo_v2df): Likewise.
4522         (vec_unpacks_hi_v4sf): Likewise.
4523         (aarch64_float_truncate_lo_v2sf): Likewise.
4524         (aarch64_float_truncate_hi_v4sf): Likewise.
4525         (aarch64_vmls<mode>): Likewise.
4526         (<su><maxmin><mode>3): Likewise.
4527         (<maxmin_uns><mode>3): Likewise.
4528         (reduc_<sur>plus_<mode>): Likewise.
4529         (reduc_<sur>plus_v2di): Likewise.
4530         (reduc_<sur>plus_v2si): Likewise.
4531         (reduc_<sur>plus_<mode>): Likewise.
4532         (aarch64_addpv4sf): Likewise.
4533         (clz<mode>2): Likewise.
4534         (reduc_<maxmin_uns>_<mode>): Likewise.
4535         (reduc_<maxmin_uns>_v2di): Likewise.
4536         (reduc_<maxmin_uns>_v2si): Likewise.
4537         (reduc_<maxmin_uns>_<mode>): Likewise.
4538         (reduc_<maxmin_uns>_v4sf): Likewise.
4539         (aarch64_simd_bsl<mode>_internal): Likewise.
4540         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
4541         (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
4542         (aarch64_get_lane<mode>): Likewise.
4543         (*aarch64_combinez<mode>): Likewise.
4544         (aarch64_combine<mode>): Likewise.
4545         (aarch64_simd_combine<mode>): Likewise.
4546         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
4547         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
4548         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
4549         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
4550         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
4551         (aarch64_<sur>h<addsub><mode>): Likewise.
4552         (aarch64_<sur><addsub>hn<mode>): Likewise.
4553         (aarch64_<sur><addsub>hn2<mode>): Likewise.
4554         (aarch64_pmul<mode>): Likewise.
4555         (aarch64_<su_optab><optab><mode>): Likewise.
4556         (aarch64_<sur>qadd<mode>): Likewise.
4557         (aarch64_sqmovun<mode>): Likewise.
4558         (aarch64_<sur>qmovn<mode>): Likewise.
4559         (aarch64_s<optab><mode>): Likewise.
4560         (aarch64_sq<r>dmulh<mode>): Likewise.
4561         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
4562         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
4563         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
4564         (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
4565         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
4566         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
4567         (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
4568         (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
4569         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
4570         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
4571         (aarch64_sqdmull<mode>): Likewise.
4572         (aarch64_sqdmull_lane<mode>_internal): Likewise.
4573         (aarch64_sqdmull_n<mode>): Likewise.
4574         (aarch64_sqdmull2<mode>_internal): Likewise.
4575         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
4576         (aarch64_sqdmull2_n<mode>_internal): Likewise.
4577         (aarch64_<sur>shl<mode>): Likewise.
4578         (aarch64_<sur>q<r>shl<mode>
4579         (aarch64_<sur>shll_n<mode>): Likewise.
4580         (aarch64_<sur>shll2_n<mode>): Likewise.
4581         (aarch64_<sur>shr_n<mode>): Likewise.
4582         (aarch64_<sur>sra_n<mode>): Likewise.
4583         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
4584         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
4585         (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
4586         (aarch64_cm<optab><mode>): Likewise.
4587         (aarch64_cm<optab>di): Likewise.
4588         (aarch64_cm<optab><mode>): Likewise.
4589         (aarch64_cm<optab>di): Likewise.
4590         (aarch64_cmtst<mode>): Likewise.
4591         (aarch64_cmtstdi): Likewise.
4592         (aarch64_cm<optab><mode>): Likewise.
4593         (*aarch64_fac<optab><mode>): Likewise.
4594         (aarch64_addp<mode>): Likewise.
4595         (aarch64_addpdi): Likewise.
4596         (sqrt<mode>2): Likewise.
4597         (vec_load_lanesoi<mode>): Likewise.
4598         (vec_store_lanesoi<mode>): Likewise.
4599         (vec_load_lanesci<mode>): Likewise.
4600         (vec_store_lanesci<mode>): Likewise.
4601         (vec_load_lanesxi<mode>): Likewise.
4602         (vec_store_lanesxi<mode>): Likewise.
4603         (*aarch64_mov<mode>): Likewise.
4604         (aarch64_ld2<mode>_dreg): Likewise.
4605         (aarch64_ld2<mode>_dreg): Likewise.
4606         (aarch64_ld3<mode>_dreg): Likewise.
4607         (aarch64_ld3<mode>_dreg): Likewise.
4608         (aarch64_ld4<mode>_dreg): Likewise.
4609         (aarch64_ld4<mode>_dreg): Likewise.
4610         (aarch64_tbl1<mode>): Likewise.
4611         (aarch64_tbl2v16qi): Likewise.
4612         (aarch64_combinev16qi): Likewise.
4613         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
4614         (aarch64_st2<mode>_dreg): Likewise.
4615         (aarch64_st2<mode>_dreg): Likewise.
4616         (aarch64_st3<mode>_dreg): Likewise.
4617         (aarch64_st3<mode>_dreg): Likewise.
4618         (aarch64_st4<mode>_dreg): Likewise.
4619         (aarch64_st4<mode>_dreg): Likewise.
4620         (*aarch64_simd_ld1r<mode>): Likewise.
4621         (aarch64_frecpe<mode>): Likewise.
4622         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
4623         (aarch64_frecps<mode>): Likewise.
4625 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
4627         * config/arm/iterators.md (V_elem_ch): New.
4628         (q): Likewise.
4629         (VQH_type): Likewise.
4630         * config/arm/arm.md (is_neon_type): New.
4631         (conds): Use is_neon_type.
4632         (anddi3_insn): Update type attribute.
4633         (xordi3_insn): Likewise.
4634         (one_cmpldi2): Likewise.
4635         * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
4636         * config/arm/neon.md (neon_mov): Update type attribute.
4637         (*movmisalign<mode>_neon_store): Likewise.
4638         (*movmisalign<mode>_neon_load): Likewise.
4639         (vec_set<mode>_internal): Likewise.
4640         (vec_set<mode>_internal): Likewise.
4641         (vec_setv2di_internal): Likewise.
4642         (vec_extract<mode>): Likewise.
4643         (vec_extract<mode>): Likewise.
4644         (vec_extractv2di): Likewise.
4645         (*add<mode>3_neon): Likewise.
4646         (adddi3_neon): Likewise.
4647         (*sub<mode>3_neon): Likewise.
4648         (subdi3_neon): Likewise.
4649         (fma<VCVTF:mode>4): Likewise.
4650         (fma<VCVTF:mode>4_intrinsic): Likewise.
4651         (*fmsub<VCVTF:mode>4): Likewise.
4652         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
4653         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
4654         (ior<mode>3): Likewise.
4655         (and<mode>3): Likewise.
4656         (orn<mode>3_neon): Likewise.
4657         (orndi3_neon): Likewise.
4658         (bic<mode>3_neon): Likewise.
4659         (bicdi3_neon): Likewise.
4660         (xor<mode>3): Likewise.
4661         (one_cmpl<mode>2): Likewise.
4662         (abs<mode>2): Likewise.
4663         (neg<mode>2): Likewise.
4664         (negdi2_neon): Likewise.
4665         (*umin<mode>3_neon): Likewise.
4666         (*umax<mode>3_neon): Likewise.
4667         (*smin<mode>3_neon): Likewise.
4668         (*smax<mode>3_neon): Likewise.
4669         (vashl<mode>3): Likewise.
4670         (vashr<mode>3_imm): Likewise.
4671         (vlshr<mode>3_imm): Likewise.
4672         (ashl<mode>3_signed): Likewise.
4673         (ashl<mode>3_unsigned): Likewise.
4674         (neon_load_count): Likewise.
4675         (ashldi3_neon_noclobber): Likewise.
4676         (ashldi3_neon): Likewise.
4677         (signed_shift_di3_neon): Likewise.
4678         (unsigned_shift_di3_neon): Likewise.
4679         (ashrdi3_neon_imm_noclobber): Likewise.
4680         (lshrdi3_neon_imm_noclobber): Likewise.
4681         (<shift>di3_neon): Likewise.
4682         (widen_ssum<mode>3): Likewise.
4683         (widen_usum<mode>3): Likewise.
4684         (quad_halves_<code>v4si): Likewise.
4685         (quad_halves_<code>v4sf): Likewise.
4686         (quad_halves_<code>v8hi): Likewise.
4687         (quad_halves_<code>v16qi): Likewise.
4688         (reduc_splus_v2di): Likewise.
4689         (neon_vpadd_internal<mode>): Likewise.
4690         (neon_vpsmin<mode>): Likewise.
4691         (neon_vpsmax<mode>): Likewise.
4692         (neon_vpumin<mode>): Likewise.
4693         (neon_vpumax<mode>): Likewise.
4694         (*ss_add<mode>_neon): Likewise.
4695         (*us_add<mode>_neon): Likewise.
4696         (*ss_sub<mode>_neon): Likewise.
4697         (*us_sub<mode>_neon): Likewise.
4698         (neon_vadd<mode>_unspec): Likewise.
4699         (neon_vaddl<mode>): Likewise.
4700         (neon_vaddw<mode>): Likewise.
4701         (neon_vhadd<mode>): Likewise.
4702         (neon_vqadd<mode>): Likewise.
4703         (neon_vaddhn<mode>): Likewise.
4704         (neon_vmul<mode>): Likewise.
4705         (neon_vfms<VCVTF:mode>): Likewise.
4706         (neon_vmlal<mode>): Likewise.
4707         (neon_vmls<mode>): Likewise.
4708         (neon_vmlsl<mode>): Likewise.
4709         (neon_vqdmulh<mode>): Likewise.
4710         (neon_vqdmlal<mode>): Likewise.
4711         (neon_vqdmlsl<mode>): Likewise.
4712         (neon_vmull<mode>): Likewise.
4713         (neon_vqdmull<mode>): Likewise.
4714         (neon_vsub<mode>_unspec): Likewise.
4715         (neon_vsubl<mode>): Likewise.
4716         (neon_vsubw<mode>): Likewise.
4717         (neon_vqsub<mode>): Likewise.
4718         (neon_vhsub<mode>): Likewise.
4719         (neon_vsubhn<mode>): Likewise.
4720         (neon_vceq<mode>): Likewise.
4721         (neon_vcge<mode>): Likewise.
4722         (neon_vcgeu<mode>): Likewise.
4723         (neon_vcgt<mode>): Likewise.
4724         (neon_vcgtu<mode>): Likewise.
4725         (neon_vcle<mode>): Likewise.
4726         (neon_vclt<mode>): Likewise.
4727         (neon_vcage<mode>): Likewise.
4728         (neon_vcagt<mode>): Likewise.
4729         (neon_vtst<mode>): Likewise.
4730         (neon_vabd<mode>): Likewise.
4731         (neon_vabdl<mode>): Likewise.
4732         (neon_vaba<mode>): Likewise.
4733         (neon_vabal<mode>): Likewise.
4734         (neon_vmax<mode>): Likewise.
4735         (neon_vmin<mode>): Likewise.
4736         (neon_vpaddl<mode>): Likewise.
4737         (neon_vpadal<mode>): Likewise.
4738         (neon_vpmax<mode>): Likewise.
4739         (neon_vpmin<mode>): Likewise.
4740         (neon_vrecps<mode>): Likewise.
4741         (neon_vrsqrts<mode>): Likewise.
4742         (neon_vqabs<mode>): Likewise.
4743         (neon_vqneg<mode>): Likewise.
4744         (neon_vcls<mode>): Likewise.
4745         (clz<mode>2): Likewise.
4746         (popcount<mode>2): Likewise.
4747         (neon_vrecpe<mode>): Likewise.
4748         (neon_vrsqrte<mode>): Likewise.
4749         (neon_vget_lane<mode>_sext_internal): Likewise.
4750         (neon_vget_lane<mode>_zext_internal): Likewise.
4751         (neon_vdup_n<mode>): Likewise.
4752         (neon_vdup_n<mode>): Likewise.
4753         (neon_vdup_nv2di): Likewise.
4754         (neon_vdup_lane<mode>_interal): Likewise.
4755         (*neon_vswp<mode>): Likewise.
4756         (neon_vcombine<mode>): Likewise.
4757         (float<mode><V_cvtto>2): Likewise.
4758         (floatuns<mode><V_cvtto>2): Likewise.
4759         (fix_trunc<mode><V_cvtto>2): Likewise.
4760         (fixuns_trunc<mode><V_cvtto>2
4761         (neon_vcvt<mode>): Likewise.
4762         (neon_vcvt<mode>): Likewise.
4763         (neon_vcvtv4sfv4hf): Likewise.
4764         (neon_vcvtv4hfv4sf): Likewise.
4765         (neon_vcvt_n<mode>): Likewise.
4766         (neon_vcvt_n<mode>): Likewise.
4767         (neon_vmovn<mode>): Likewise.
4768         (neon_vqmovn<mode>): Likewise.
4769         (neon_vqmovun<mode>): Likewise.
4770         (neon_vmovl<mode>): Likewise.
4771         (neon_vmul_lane<mode>): Likewise.
4772         (neon_vmul_lane<mode>): Likewise.
4773         (neon_vmull_lane<mode>): Likewise.
4774         (neon_vqdmull_lane<mode>): Likewise.
4775         (neon_vqdmulh_lane<mode>): Likewise.
4776         (neon_vqdmulh_lane<mode>): Likewise.
4777         (neon_vmla_lane<mode>): Likewise.
4778         (neon_vmla_lane<mode>): Likewise.
4779         (neon_vmlal_lane<mode>): Likewise.
4780         (neon_vqdmlal_lane<mode>): Likewise.
4781         (neon_vmls_lane<mode>): Likewise.
4782         (neon_vmls_lane<mode>): Likewise.
4783         (neon_vmlsl_lane<mode>): Likewise.
4784         (neon_vqdmlsl_lane<mode>): Likewise.
4785         (neon_vext<mode>): Likewise.
4786         (neon_vrev64<mode>): Likewise.
4787         (neon_vrev32<mode>): Likewise.
4788         (neon_vrev16<mode>): Likewise.
4789         (neon_vbsl<mode>_internal): Likewise.
4790         (neon_vshl<mode>): Likewise.
4791         (neon_vqshl<mode>): Likewise.
4792         (neon_vshr_n<mode>): Likewise.
4793         (neon_vshrn_n<mode>): Likewise.
4794         (neon_vqshrn_n<mode>): Likewise.
4795         (neon_vqshrun_n<mode>): Likewise.
4796         (neon_vshl_n<mode>): Likewise.
4797         (neon_vqshl_n<mode>): Likewise.
4798         (neon_vqshlu_n<mode>): Likewise.
4799         (neon_vshll_n<mode>): Likewise.
4800         (neon_vsra_n<mode>): Likewise.
4801         (neon_vsri_n<mode>): Likewise.
4802         (neon_vsli_n<mode>): Likewise.
4803         (neon_vtbl1v8qi): Likewise.
4804         (neon_vtbl2v8qi): Likewise.
4805         (neon_vtbl3v8qi): Likewise.
4806         (neon_vtbl4v8qi): Likewise.
4807         (neon_vtbl1v16qi): Likewise.
4808         (neon_vtbl2v16qi): Likewise.
4809         (neon_vcombinev16qi): Likewise.
4810         (neon_vtbx1v8qi): Likewise.
4811         (neon_vtbx2v8qi): Likewise.
4812         (neon_vtbx3v8qi): Likewise.
4813         (neon_vtbx4v8qi): Likewise.
4814         (*neon_vtrn<mode>_insn): Likewise.
4815         (*neon_vzip<mode>_insn): Likewise.
4816         (*neon_vuzp<mode>_insn): Likewise.
4817         (neon_vld1<mode>): Likewise.
4818         (neon_vld1_lane<mode>): Likewise.
4819         (neon_vld1_lane<mode>): Likewise.
4820         (neon_vld1_dup<mode>): Likewise.
4821         (neon_vld1_dup<mode>): Likewise.
4822         (neon_vld1_dupv2di): Likewise.
4823         (neon_vst1<mode>): Likewise.
4824         (neon_vst1_lane<mode>): Likewise.
4825         (neon_vst1_lane<mode>): Likewise.
4826         (neon_vld2<mode>): Likewise.
4827         (neon_vld2<mode>): Likewise.
4828         (neon_vld2_lane<mode>): Likewise.
4829         (neon_vld2_lane<mode>): Likewise.
4830         (neon_vld2_dup<mode>): Likewise.
4831         (neon_vst2<mode>): Likewise.
4832         (neon_vst2<mode>): Likewise.
4833         (neon_vst2_lane<mode>): Likewise.
4834         (neon_vst2_lane<mode>): Likewise.
4835         (neon_vld3<mode>): Likewise.
4836         (neon_vld3qa<mode>): Likewise.
4837         (neon_vld3qb<mode>): Likewise.
4838         (neon_vld3_lane<mode>): Likewise.
4839         (neon_vld3_lane<mode>): Likewise.
4840         (neon_vld3_dup<mode>): Likewise.
4841         (neon_vst3<mode>): Likewise.
4842         (neon_vst3qa<mode>): Likewise.
4843         (neon_vst3qb<mode>): Likewise.
4844         (neon_vst3_lane<mode>): Likewise.
4845         (neon_vst3_lane<mode>): Likewise.
4846         (neon_vld4<mode>): Likewise.
4847         (neon_vld4qa<mode>): Likewise.
4848         (neon_vld4qb<mode>): Likewise.
4849         (neon_vld4_lane<mode>): Likewise.
4850         (neon_vld4_lane<mode>): Likewise.
4851         (neon_vld4_dup<mode>): Likewise.
4852         (neon_vst4<mode>): Likewise.
4853         (neon_vst4qa<mode>): Likewise.
4854         (neon_vst4qb<mode>): Likewise.
4855         (neon_vst4_lane<mode>): Likewise.
4856         (neon_vst4_lane<mode>): Likewise.
4857         (neon_vec_unpack<US>_lo_<mode>): Likewise.
4858         (neon_vec_unpack<US>_hi_<mode>): Likewise.
4859         (neon_vec_<US>mult_lo_<mode>): Likewise.
4860         (neon_vec_<US>mult_hi_<mode>): Likewise.
4861         (neon_vec_<US>shiftl_<mode>): Likewise.
4862         (neon_unpack<US>_<mode>): Likewise.
4863         (neon_vec_<US>mult_<mode>): Likewise.
4864         (vec_pack_trunc_<mode>): Likewise.
4865         (neon_vec_pack_trunc_<mode>): Likewise.
4866         (neon_vabd<mode>_2): Likewise.
4867         (neon_vabd<mode>_3): Likewise.
4869 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
4871         * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
4872         (load_pair): Update type attribute.
4873         (store_pair): Update type attribute.
4874         * config/aarch64/iterators.md (q): New.
4876 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
4878         * config/arm/types.md: Add new types for Neon insns.
4880 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4881             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4882             Sergey Lega  <sergey.s.lega@intel.com>
4883             Anna Tikhonova  <anna.tikhonova@intel.com>
4884             Ilya Tocar  <ilya.tocar@intel.com>
4885             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4886             Ilya Verbin  <ilya.verbin@intel.com>
4887             Kirill Yukhin  <kirill.yukhin@intel.com>
4888             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4890         * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
4891         UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
4892         UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
4893         (rcp14<mode>): New.
4894         (srcp14<mode>): Ditto.
4895         (rsqrt14<mode>): Ditto.
4896         (rsqrt14<mode>): Ditto.
4897         (avx512f_vmscalef<mode>): Ditto.
4898         (avx512f_scalef<mode>): Ditto.
4899         (avx512f_getexp<mode>): Ditto.
4900         (avx512f_sgetexp<mode>): Ditto.
4901         (avx512f_fixupimm<mode>): Ditto.
4902         (avx512f_sfixupimm<mode>): Ditto.
4903         (avx512f_rndscale<mode>): Ditto.
4904         (*avx512er_exp2<mode>): Ditto.
4905         (*avx512er_rcp28<mode>): Ditto.
4906         (avx512er_rsqrt28<mode>): Ditto.
4907         (avx512f_getmant<mode>): Ditto.
4908         (avx512f_getmant<mode>): Ditto.
4909         (avx512f_rndscale<mode>): Fix formatting.
4911 2013-10-15  Martin Jambor  <mjambor@suse.cz>
4913         * ipa-utils.h (ipa_edge_within_scc): Declare.
4914         * ipa-cp.c (edge_within_scc): Moved...
4915         * ipa-utils.c (ipa_edge_within_scc): ...here.  Updated all callers.
4917 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4918             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4919             Sergey Lega  <sergey.s.lega@intel.com>
4920             Anna Tikhonova  <anna.tikhonova@intel.com>
4921             Ilya Tocar  <ilya.tocar@intel.com>
4922             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4923             Ilya Verbin  <ilya.verbin@intel.com>
4924             Kirill Yukhin  <kirill.yukhin@intel.com>
4925             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4927         * config/i386/predicates.md (const_8_to_15_operand): New.
4928         (const_16_to_31_operand): Ditto.
4929         * config/i386/sse.md (V8FI): New.
4930         (V16FI): Ditto.
4931         (reduc_splus_v8df): Ditto.
4932         (reduc_splus_v16sf): Ditto.
4933         (avx512f_vextract<shuffletype>32x4_1): Ditto.
4934         (vec_extract_hi_<mode>): Ditto.
4935         (avx512f_vinsert<shuffletype>32x4_1): Ditto.
4936         (vec_set_lo_<mode>): Ditto.
4937         (vec_set_hi_<mode>): Ditto.
4938         (avx512f_shuf_<shuffletype>64x2_1): Ditto.
4939         (avx512f_shuf_<shuffletype>32x4_1): Ditto.
4940         (avx512f_pshufd_1): Ditto.
4941         (avx512f_broadcast<mode>): Ditto.
4942         (avx512f_broadcast<mode>): Ditto.
4943         (define_split): Split vec_extract_lo into move.
4944         (ssequartermode): Ditto.
4945         (ssedoublemode): Extened with wider modes.
4946         (vec_extract_lo_<mode>): Ditto.
4948 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4949             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4950             Sergey Lega  <sergey.s.lega@intel.com>
4951             Anna Tikhonova  <anna.tikhonova@intel.com>
4952             Ilya Tocar  <ilya.tocar@intel.com>
4953             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4954             Ilya Verbin  <ilya.verbin@intel.com>
4955             Kirill Yukhin  <kirill.yukhin@intel.com>
4956             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4958         * config/i386/predicates.md (register_or_constm1_operand): New.
4959         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
4960         UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
4961         UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
4962         UNSPEC_SCATTER_PREFETCH
4963         (VI48_512): New.
4964         (avx512f_ucmp<mode>3): Ditto.
4965         (avx512f_vternlog<mode>): Ditto.
4966         (avx512f_align<mode>): Ditto.
4967         (<shift_insn><mode>3): Ditto.
4968         (avx512f_<rotate>v<mode>): Ditto.
4969         (avx512f_<rotate><mode>): Ditto.
4970         (avx512f_eq<mode>3): Ditto.
4971         (avx512f_eq<mode>3_1): Ditto.
4972         (avx512f_gt<mode>3): Ditto.
4973         (avx512f_testm<mode>3): Ditto.
4974         (avx512f_testnm<mode>3): Ditto.
4975         (avx512pf_gatherpf<mode>): Ditto.
4976         (*avx512pf_gatherpf<mode>_mask): Ditto.
4977         (*avx512pf_gatherpf<mode>): Ditto.
4978         (avx512pf_scatterpf<mode>): Ditto.
4979         (*avx512pf_scatterpf<mode>_mask): Ditto.
4980         (*avx512pf_scatterpf<mode>): Ditto.
4981         (avx512f_vec_dup_gpr<mode>): Ditto.
4982         (clz<mode>2): Ditto.
4983         (conflict<mode>): Ditto.
4984         (REDUC_SMINMAX_MODE): Extened with wider modes.
4985         (reduc_<code>_<mode>): Ditto.
4986         (vlshr<mode>3): Ditto.
4987         (vashl<mode>3): Ditto.
4989 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4990             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4991             Sergey Lega  <sergey.s.lega@intel.com>
4992             Anna Tikhonova  <anna.tikhonova@intel.com>
4993             Ilya Tocar  <ilya.tocar@intel.com>
4994             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4995             Ilya Verbin  <ilya.verbin@intel.com>
4996             Kirill Yukhin  <kirill.yukhin@intel.com>
4997             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4999         * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
5000         UNSPEC_SCATTER.
5001         (VI48F_512): New.
5002         (avx512fmaskmode): Ditto.
5003         (bcstscalarsuff): Ditto.
5004         (avx512f_blendm<mode>): Ditto.
5005         (cmp_imm_predicate): Ditto.
5006         (avx512f_cmp<mode>3): Ditto.
5007         (avx512f_vec_dup<mode>): Ditto.
5008         (avx512f_vec_dup_mem<mode>): Ditto.
5009         (avx512f_vpermi2var<mode>3): Ditto.
5010         (avx512f_vpermt2var<mode>3): Ditto.
5011         (vec_init<mode>): Ditto.
5012         (avx512f_gathersi<mode>): Ditto.
5013         (*avx512f_gathersi<mode>): Ditto.
5014         (*avx512f_gathersi<mode>_2): Ditto.
5015         (avx512f_gatherdi<mode>): Ditto.
5016         (*avx512f_gatherdi<mode>): Ditto.
5017         (*avx512f_gatherdi<mode>_2): Ditto.
5018         (avx512f_scattersi<mode>): Ditto.
5019         (*avx512f_scattersi<mode>): Ditto.
5020         (avx512f_scatterdi<mode>): Ditto.
5021         (*avx512f_scatterdi<mode>): Ditto.
5022         (sseintprefix): Extened with wider modes.
5023         (VEC_GATHER_IDXSI): Ditto.
5024         (VEC_GATHER_IDXDI): Ditto.
5025         (VEC_GATHER_SRCDI): Ditto.
5027 2013-10-15  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
5028             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5030         * config/arm/t-aprofile: New file.
5031         * config.gcc: Handle --with-multilib-list option.
5033 2013-10-15  Bernd Schmidt  <bernds@codesourcery.com>
5035         * reload1.c (reloads_unique_chain_p): Ensure that r1 is
5036         the input for r2.
5038 2013-10-15  Richard Biener  <rguenther@suse.de>
5040         * tree-loop-distribution.c (build_empty_rdg): Inline into
5041         single user.
5042         (rdg_flag_vertex): Inline into single user.
5043         (rdg_flag_vertex_and_dependent): Likewise.
5044         (build_rdg_partition_for_vertex): Remove processed bitmap.
5045         (rdg_build_partitions): Simplify.
5047 2013-10-15  Richard Biener  <rguenther@suse.de>
5049         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
5050         Restructure forwarding through conversions and copies to
5051         avoid performing copy-propagation the wrong way.  Adjust
5052         recursion invocations.
5053         (forward_propagate_addr_expr): Add argument stating if we
5054         are recursing from a single-use.
5055         (ssa_forward_propagate_and_combine): Adjust.
5057 2013-10-14  David Malcolm  <dmalcolm@redhat.com>
5059         * dumpfile.h (gcc::dump_manager): New class, to hold state
5060         relating to dumpfile management.
5061         (get_dump_file_name): Remove in favor of method of dump_manager.
5062         (dump_initialized_p): Likewise.
5063         (dump_start): Likewise.
5064         (dump_finish): Likewise.
5065         (dump_switch_p): Likewise.
5066         (dump_register): Likewise.
5067         (get_dump_file_info): Likewise.
5068         * context.c (gcc::context::context): Construct the dump_manager
5069         instance.
5070         * context.h (gcc::context::get_dumps): New.
5071         (gcc::context::m_dumps): New.
5072         * coverage.c (coverage_init): Port to dump_manager API.
5073         * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
5074         (extra_dump_files_in_use): Likewise.
5075         (extra_dump_files_alloced): Likewise.
5076         (gcc::dump_manager::dump_manager): New.
5077         (dump_register): Convert to...
5078         (gcc::dump_manager::dump_register): ...method, replacing
5079         function-static next_dump with m_next_dump field.
5080         (get_dump_file_info): Convert to...
5081         (gcc::dump_manager::get_dump_file_info): ...method.
5082         (get_dump_file_name): Convert to...
5083         (gcc::dump_manager::get_dump_file_name): ...method.
5084         (dump_start): Convert to...
5085         (gcc::dump_manager::dump_start): ...method.
5086         (dump_finish): Convert to...
5087         (gcc::dump_manager::dump_finish): ...method.
5088         (dump_begin): Replace body with...
5089         (gcc::dump_manager::dump_begin): ...new method.
5090         (dump_phase_enabled_p): Convert to...
5091         (gcc::dump_manager::dump_phase_enabled_p): ...method.
5092         (dump_phase_enabled_p): Convert to...
5093         (gcc::dump_manager::dump_phase_enabled_p): ...method.
5094         (dump_initialized_p):  Convert to...
5095         (gcc::dump_manager::dump_initialized_p): ...method.
5096         (dump_flag_name): Replace body with...
5097         (gcc::dump_manager::dump_flag_name): ...new method.
5098         (dump_enable_all): Convert to...
5099         (gcc::dump_manager::dump_enable_all): ...new method.
5100         (opt_info_enable_passes): Convert to...
5101         (gcc::dump_manager::opt_info_enable_passes): ...new method.
5102         (dump_switch_p_1): Convert to...
5103         (gcc::dump_manager::dump_switch_p_1): ...new method.
5104         (dump_switch_p):  Convert to...
5105         (gcc::dump_manager::dump_switch_p): ...new method.
5106         (opt_info_switch_p): Port to dump_manager API.
5107         (enable_rtl_dump_file): Likewise.
5108         * opts-global.c (handle_common_deferred_options): Port to new
5109         dump_manager API.
5110         * passes.c (pass_manager::finish_optimization_passes): Likewise.
5111         (pass_manager::register_one_dump_file): Likewise.
5112         (pass_manager::register_pass): Likewise.
5113         (pass_init_dump_file): Likewise.
5114         (pass_fini_dump_file): Likewise.
5115         * statistics.c (statistics_early_init): Likewise.
5117 2013-10-14  Richard Biener  <rguenther@suse.de>
5119         * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
5120         iterative_hash_canonical_type, gimple_canonical_type_hash,
5121         gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
5122         gimple_register_canonical_type, print_gimple_types_stats,
5123         free_gimple_type_tables): Move to lto/lto.c
5124         (gt-gimple.h): Do not include.
5125         * gimple.h (gimple_register_canonical_type,
5126         print_gimple_types_stats, free_gimple_type_tables): Remove.
5127         * Makefile.in (GTFILES): Remove gimple.c.
5129 2013-10-14  Travis Snoozy  <quandary@remstate.com>
5131         PR target/58716
5132         * config/msp430/msp430.c (msp430_option_override): Correct thinko
5133         scanning for msp430x targets.
5135 2013-10-14  Eric Botcazou  <ebotcazou@adacore.com>
5137         PR bootstrap/58509
5138         * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
5139         (registers_ok_for_ldd_peep): Move around.
5140         * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
5141         * config/sparc/sparc.md (widening peepholes): Use it.
5143 2013-10-14  Richard Biener  <rguenther@suse.de>
5145         PR middle-end/58712
5146         PR middle-end/55358
5147         * gimple.c (iterative_hash_canonical_type): Make sure to
5148         record the hash into the correct hashtable slot.
5150 2013-10-13  Eric Botcazou  <ebotcazou@adacore.com>
5152         PR rtl-optimization/58662
5153         * combine.c (try_combine): Take into account death nodes on I2 when
5154         splitting a PARALLEL of two independent SETs.  Fix dump message.
5156 2013-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
5158         PR target/51244
5159         * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
5160         * config.gcc (SH extra_objs): Add sh_ifcvt.o.
5161         * config/sh/t-sh (sh_treg_combine.o): New entry.
5162         * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
5163         implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
5164         (register_sh_passes): New function.  Register sh_treg_combine pass.
5165         (sh_option_override): Invoke it.
5166         (sh_canonicalize_comparison): Handle op0_preserve_value.
5167         * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
5168         opportunities.  Canonicalize branch condition.
5169         (nott): Allow only if pseudos can be created for non-SH2A.
5171 2013-10-12  H.J. Lu  <hongjiu.lu@intel.com>
5173         PR target/58690
5174         * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
5175         (ix86_expand_movmem): Replace copy_addr_to_reg with
5176         ix86_copy_addr_to_reg.
5177         (ix86_expand_setmem): Likewise.
5179 2013-10-12  Alexander Monakov  <amonakov@ispras.ru>
5181         * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
5182         provided by ix86_fp_compare_mode instead of CCFPUmode.
5184 2013-10-12  James Greenhalgh  <james.greenhalgh@arm.com>
5186         * config/aarch64/arm_neon.h
5187         (vtbx<1,3>_<psu>8): Fix register constriants.
5189 2013-10-11  Jeff Law  <law@redhat.com>
5191         PR tree-optimization/58640
5192         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
5193         threading paths that cross over two loop entry points.
5195 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5197         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
5198         handle vector float as well.
5199         (*vsx_le_perm_load_v4si): Likewise.
5200         (*vsx_le_perm_store_v2di): Likewise.
5201         (*vsx_le_perm_store_v4si): Likewise.
5203 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5205         * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
5206         directly to circumvent subtract from splat{31} workaround.
5207         * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
5208         prototype.
5209         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
5210         * config/rs6000/altivec.md (define_c_enum "unspec"): Add
5211         UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
5212         (altivec_vperm_<mode>): Convert to define_insn_and_split to
5213         separate big and little endian logic.
5214         (*altivec_vperm_<mode>_internal): New define_insn.
5215         (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
5216         separate big and little endian logic.
5217         (*altivec_vperm_<mode>_uns_internal): New define_insn.
5218         (vec_permv16qi): Add little endian logic.
5220 2013-10-11  Marc Glisse  <marc.glisse@inria.fr>
5222         * doc/extend.texi (returns_nonnull): Remove arguments.
5224 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5225             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5226             Sergey Lega  <sergey.s.lega@intel.com>
5227             Anna Tikhonova  <anna.tikhonova@intel.com>
5228             Ilya Tocar  <ilya.tocar@intel.com>
5229             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5230             Ilya Verbin  <ilya.verbin@intel.com>
5231             Kirill Yukhin  <kirill.yukhin@intel.com>
5232             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5234         * config/i386/sse.md (VI48F_256_512): New.
5235         (avx2_permvar<mode>): Change to ...
5236         (<avx2_avx512f>_permvar<mode>): This.
5238 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5239             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5240             Sergey Lega  <sergey.s.lega@intel.com>
5241             Anna Tikhonova  <anna.tikhonova@intel.com>
5242             Ilya Tocar  <ilya.tocar@intel.com>
5243             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5244             Ilya Verbin  <ilya.verbin@intel.com>
5245             Kirill Yukhin  <kirill.yukhin@intel.com>
5246             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5248         * config/i386/i386.c (bdesc_args): Change corresponding pattern for
5249         __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
5250         * config/i386/sse.md (VI4_AVX): New.
5251         (sf2simodelower): Ditto.
5252         (sse2_cvtps2dq): Change to ...
5253         (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
5255 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5256             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5257             Sergey Lega  <sergey.s.lega@intel.com>
5258             Anna Tikhonova  <anna.tikhonova@intel.com>
5259             Ilya Tocar  <ilya.tocar@intel.com>
5260             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5261             Ilya Verbin  <ilya.verbin@intel.com>
5262             Kirill Yukhin  <kirill.yukhin@intel.com>
5263             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5265         * config/i386/sse.md (V_512): New.
5266         (VI_512): Ditto.
5267         (vcond<V_512:mode><VF_512:mode>): Ditto.
5268         (vcond<V_512:mode><VI_512:mode>): Ditto.
5269         (vcondu<V_512:mode><VI_512:mode>): Ditto.
5271 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5272             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5273             Sergey Lega  <sergey.s.lega@intel.com>
5274             Anna Tikhonova  <anna.tikhonova@intel.com>
5275             Ilya Tocar  <ilya.tocar@intel.com>
5276             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5277             Ilya Verbin  <ilya.verbin@intel.com>
5278             Kirill Yukhin  <kirill.yukhin@intel.com>
5279             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5281         * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
5282         * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
5283         (FMAMODE): Ditto.
5284         (fma<mode>4): Removed condition.
5285         (fms<mode>4): Ditto.
5286         (fnma<mode>4): Ditto.
5287         (fnms<mode>4): Ditto.
5288         (fma4i_fmadd_<mode>): Ditto.
5289         (*fma_fmadd_<mode>): Ditto.
5290         (*fma_fmsub_<mode>): Ditto.
5291         (*fma_fnmadd_<mode>): Ditto.
5292         (*fma_fnmsub_<mode>): Ditto.
5293         (fmaddsub_<mode>): Allow for TARGET_AVX512F.
5294         (*fma_fmaddsub_<mode>): Ditto.
5295         (*fma_fmsubadd_<mode>): Ditto.
5296         (*fmai_fmadd_<mode>): Ditto.
5297         (*fmai_fmsub_<mode>): Ditto.
5298         (*fmai_fnmadd_<mode>): Ditto.
5299         (*fmai_fnmsub_<mode>): Ditto.
5301 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5302             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5303             Sergey Lega  <sergey.s.lega@intel.com>
5304             Anna Tikhonova  <anna.tikhonova@intel.com>
5305             Ilya Tocar  <ilya.tocar@intel.com>
5306             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5307             Ilya Verbin  <ilya.verbin@intel.com>
5308             Kirill Yukhin  <kirill.yukhin@intel.com>
5309             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5311         * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
5312         (VI124_256): Changed to ...
5313         (VI124_256_48_512): This.
5314         (ssepackmode): Extended with wider modes.
5315         (<code><mode>3): Changed iterator.
5316         (*avx2_<code><mode>3): Ditto.
5317         (vec_pack_trunc_<mode>): Ditto.
5319 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5320             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5321             Sergey Lega  <sergey.s.lega@intel.com>
5322             Anna Tikhonova  <anna.tikhonova@intel.com>
5323             Ilya Tocar  <ilya.tocar@intel.com>
5324             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5325             Ilya Verbin  <ilya.verbin@intel.com>
5326             Kirill Yukhin  <kirill.yukhin@intel.com>
5327             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5329         * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
5330         (VI8F_256_512): Ditto.
5331         (abs<mode>2): Changed iterator.
5332         (avx2_perm<mode>): Changed to ...
5333         (<avx2_avx512f>_perm<mode>): This.
5334         (avx2_perm<mode>_1): Changed to ...
5335         (<avx2_avx512f>_perm<mode>_1): This.
5337 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5338             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5339             Sergey Lega  <sergey.s.lega@intel.com>
5340             Anna Tikhonova  <anna.tikhonova@intel.com>
5341             Ilya Tocar  <ilya.tocar@intel.com>
5342             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5343             Ilya Verbin  <ilya.verbin@intel.com>
5344             Kirill Yukhin  <kirill.yukhin@intel.com>
5345             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5347         * config/i386/sse.md (VI48_AVX512F): New.
5348         (VI48_AVX2): Changed to ...
5349         (VI48_AVX2_48_AVX512F): This.
5350         (avx2_ashrv<mode>): Changed to ...
5351         (<avx2_avx512f>_ashrv<mode>): This.
5352         (avx2_<shift_insn>v<mode>): Changed to ...
5353         (<avx2_avx512f>_<shift_insn>v<mode>): This.
5355 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5356             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5357             Sergey Lega  <sergey.s.lega@intel.com>
5358             Anna Tikhonova  <anna.tikhonova@intel.com>
5359             Ilya Tocar  <ilya.tocar@intel.com>
5360             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5361             Ilya Verbin  <ilya.verbin@intel.com>
5362             Kirill Yukhin  <kirill.yukhin@intel.com>
5363             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5365         * config/i386/sse.md (VI4_AVX512F): New.
5366         (VI8_AVX2_AVX512F): Ditto.
5367         (mul<mode>3): Extended with wider modes.
5368         (*<sse4_1_avx2>_mul<mode>3): Ditto.
5369         (mul<mode>3): Ditto.
5370         (vec_widen_<s>mult_odd_<mode>): Ditto.
5372 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5373             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5374             Sergey Lega  <sergey.s.lega@intel.com>
5375             Anna Tikhonova  <anna.tikhonova@intel.com>
5376             Ilya Tocar  <ilya.tocar@intel.com>
5377             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5378             Ilya Verbin  <ilya.verbin@intel.com>
5379             Kirill Yukhin  <kirill.yukhin@intel.com>
5380             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5382         * config/i386/sse.md (VI2_AVX512F): New.
5383         (VI124_AVX512F): Ditto.
5384         (sseunpackmode): Extended with wider modes.
5385         (sseunpackfltmode): Ditto.
5386         (vec_unpacks_float_hi_<mode>): Ditto.
5387         (vec_unpacks_float_lo_<mode>): Ditto.
5388         (vec_unpacku_float_hi_<mode>): Ditto.
5389         (vec_unpacku_float_lo_<mode>): Ditto.
5390         (vec_unpacks_lo_<mode>): Ditto.
5391         (vec_unpacks_hi_<mode>): Ditto.
5392         (vec_unpacku_lo_<mode>): Ditto.
5393         (vec_unpacku_hi_<mode>): Ditto.
5395 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5396             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5397             Sergey Lega  <sergey.s.lega@intel.com>
5398             Anna Tikhonova  <anna.tikhonova@intel.com>
5399             Ilya Tocar  <ilya.tocar@intel.com>
5400             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5401             Ilya Verbin  <ilya.verbin@intel.com>
5402             Kirill Yukhin  <kirill.yukhin@intel.com>
5403             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5405         * config/i386/i386.md (multdiv): New.
5406         (multdiv_mnemonic): Ditto.
5407         * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
5408         (<sse>_vm<multdiv_mnemonic><mode>3): This.
5409         (<sse>_vmdiv<mode>3): Removed.
5411 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5412             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5413             Sergey Lega  <sergey.s.lega@intel.com>
5414             Anna Tikhonova  <anna.tikhonova@intel.com>
5415             Ilya Tocar  <ilya.tocar@intel.com>
5416             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5417             Ilya Verbin  <ilya.verbin@intel.com>
5418             Kirill Yukhin  <kirill.yukhin@intel.com>
5419             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5421         * config/i386/sse.md (V): Extended with wider modes.
5422         (VF2): Ditto.
5423         (ssehalfvecmode): Ditto.
5424         (i128): Ditto.
5425         (ssepackfltmode): Ditto.
5426         (avx_vec_concat<mode>): Ditto.
5427         (V_256_512): New iterator.
5428         (VF2_512_256): Ditto.
5429         (si2dfmode): New attribute.
5430         (si2dfmodelower): Ditto.
5431         (sf2dfmode): Ditto.
5432         (concat_tg_mode): Ditto.
5433         (floatv4siv4df2): Changed to ...
5434         (float<si2dfmodelower><mode>2): This.
5435         (avx_cvtps2pd256): Changed to ...
5436         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
5437         (vec_pack_trunc_v4df): Changed to ...
5438         (vec_pack_trunc_<mode>): This.
5439         (avx_vpermil<mode>): Changed to ...
5440         (<sse2_avx_avx512f>_vpermil<mode>): This.
5441         (<fixsuffix>fix_truncv8dfv8si2): New.
5442         (vec_pack_sfix_trunc_v8df): Ditto.
5443         (avx512f_rndscale<mode>): Ditto.
5444         (avx512f_roundpd512): Ditto.
5445         (vec_pack_ufix_trunc_<mode>): Updated iterator.
5447 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5448             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5449             Sergey Lega  <sergey.s.lega@intel.com>
5450             Anna Tikhonova  <anna.tikhonova@intel.com>
5451             Ilya Tocar  <ilya.tocar@intel.com>
5452             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5453             Ilya Verbin  <ilya.verbin@intel.com>
5454             Kirill Yukhin  <kirill.yukhin@intel.com>
5455             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5457         * config/i386/i386.md (any_fix): New iterator.
5458         (fixsuffix): New attribute.
5459         * config/i386/sse.md (VF1): Extened with wider modes.
5460         (VI): Ditto.
5461         (VI_AVX2): Ditto.
5462         (VI8): Ditto.
5463         (sseintvecmodelower): Ditto.
5464         (ssescalarmode): Ditto.
5465         (ssescalarnum): Ditto.
5466         (VF1_128_256): New.
5467         (ssexmmmode): Ditto.
5468         (<fixsuffix>fix_truncv16sfv16si2): Ditto.
5469         (<sse>_rcp<mode>2): Change iterator.
5470         (rsqrt<mode>2): Ditto.
5471         (<sse>_rsqrt<mode>2): Ditto.
5472         (avx2_vec_dup<mode>): Ditto.
5473         (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
5474         (round<mode>2_sfix): Ditto.
5475         (avx2_pbroadcast<mode>): Ditto.
5476         (*andnot<mode>3): Handle XI mode.
5477         (*<code><mode>3): Ditto.
5478         (AVXTOSSEMODE): Removed.
5479         (avx_vpermil<mode>): Changed to ...
5480         (<sse2_avx_avx512f>_vpermil<mode>): This.
5482 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5483             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5484             Sergey Lega  <sergey.s.lega@intel.com>
5485             Anna Tikhonova  <anna.tikhonova@intel.com>
5486             Ilya Tocar  <ilya.tocar@intel.com>
5487             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5488             Ilya Verbin  <ilya.verbin@intel.com>
5489             Kirill Yukhin  <kirill.yukhin@intel.com>
5490             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5492         * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
5493         (<sse>_comi): Ditto.
5494         (<sse>_ucomi): Ditto.
5495         (sse_cvtss2siq_2): Ditto.
5496         (sse2_cvtsd2si): Ditto.
5497         (sse2_cvtsd2siq): Ditto.
5498         (sse2_cvttsd2si): Ditto.
5499         (sse2_cvttsd2siq): Ditto.
5500         (<shift_insn><mode>3): Ditto.
5501         (sse2_cvtsi2sdq): Update constraint and prefix.
5502         (sse_cvtsi2ss): Update prefix.
5503         (sse_cvtsi2ssq): Ditto.
5505 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
5507         * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
5508         ignore internal calls.
5510 2013-10-11  Richard Biener  <rguenther@suse.de>
5512         * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
5513         and (ab) for SSA_NAMEs.  Mark INTEGER_CSTs with (OVF) if
5514         TREE_OVERFLOW is set.
5516 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
5518         * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
5520         * gimple.c: GIMPLE statements have subcodes, not sub-codes.
5521         * gimple.h: Likewise.
5523         * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
5525         * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
5526         macros.
5528         * doc/gimple.texi (is_gimple_omp): Move into the correct section.
5530         * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
5531         * configure: Regenerate.
5533 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
5535         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
5536         and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
5537         formatting fixes, use pp_colon instead of pp_character (..., ':'),
5538         similarly pp_right_paren.
5539         (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
5540         OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
5541         allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
5542         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
5543         clauses.
5544         (omp_declare_simd_clauses_equal,
5545         omp_remove_redundant_declare_simd_attrs): New functions.
5546         (attribute_value_equal): Use omp_declare_simd_clauses_equal.
5547         (walk_tree_1): Handle new OpenMP 4.0 clauses.
5548         * tree.h (OMP_LOOP_CHECK): Define.
5549         (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
5550         OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
5551         (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
5552         OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
5553         OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
5554         OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
5555         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
5556         OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
5557         OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
5558         OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
5559         OMP_CLAUSE_SIMDLEN_EXPR): Define.
5560         (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
5561         (omp_remove_redundant_declare_simd_attrs): New prototype.
5562         * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
5563         GIMPLE_OMP_TEAMS): New codes.
5564         (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
5565         * omp-low.c (struct omp_context): Add cancel_label and cancellable
5566         fields.
5567         (target_nesting_level): New variable.
5568         (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
5569         OMP_CLAUSE_DIST_SCHEDULE.  Don't fallback to library implementation
5570         for collapse > 1 static schedule unless ordered.
5571         (get_ws_args_for): Add par_stmt argument.  Handle combined loops.
5572         (determine_parallel_type): Adjust get_ws_args_for caller.
5573         (install_var_field): Handle mask & 4 for double indirection.
5574         (scan_sharing_clauses): Ignore shared clause on teams construct.
5575         Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
5576         (create_omp_child_function): If inside target or declare target
5577         constructs, set "omp declare target" attribute on the child function.
5578         (find_combined_for): New function.
5579         (scan_omp_parallel): Handle combined loops.
5580         (scan_omp_target, scan_omp_teams): New functions.
5581         (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
5582         restrictions and set ctx->cancellable for cancellable constructs.
5583         (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
5584         selected builtin calls.  Handle GIMPLE_OMP_TASKGROUP,
5585         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
5586         (build_omp_barrier): Add lhs argument, return gimple rather than tree.
5587         (omp_clause_aligned_alignment): New function.
5588         (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
5589         (lower_rec_input_clauses): Add FD argument.  Ignore shared clauses
5590         on teams constructs.  Handle user defined reductions and new
5591         OpenMP 4.0 clauses.
5592         (lower_reduction_clauses): Don't set placeholder to address of ref
5593         if it has already the right type.
5594         (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
5595         (expand_parallel_call): Use the new non-_start suffixed builtins,
5596         handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
5597         and GOMP_parallel_end after the call.
5598         (expand_task_call): Handle OMP_CLAUSE_DEPEND.
5599         (expand_omp_for_init_counts): Handle combined loops.
5600         (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
5601         loops.
5602         (expand_omp_for_generic): Likewise.  Use GOMP_loop_end_cancel at the
5603         end of cancellable loops.
5604         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
5605         Likewise.  Handle collapse > 1 loops.
5606         (expand_omp_simd): Handle combined loops.
5607         (expand_omp_for): Add inner_stmt argument, adjust callers of
5608         expand_omp_for* functions, use expand_omp_for_static*chunk even
5609         for collapse > 1 unless ordered.
5610         (expand_omp_sections): Use GOMP_sections_end_cancel at the end
5611         of cancellable sections.
5612         (expand_omp_single): Remove need_barrier variable, just rely on
5613         gimple_omp_return_nowait_p.  Adjust build_omp_barrier caller.
5614         (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
5615         (expand_omp_atomic_load, expand_omp_atomic_store,
5616         expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
5617         (expand_omp_target): New function.
5618         (expand_omp): Handle combined loops.  Handle GIMPLE_OMP_TASKGROUP,
5619         GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
5620         (build_omp_regions_1): Immediately close region for
5621         GF_OMP_TARGET_KIND_UPDATE.
5622         (maybe_add_implicit_barrier_cancel): New function.
5623         (lower_omp_sections): Adjust lower_rec_input_clauses caller.  Handle
5624         cancellation.
5625         (lower_omp_single): Likewise.  Add clobber after the barrier.
5626         (lower_omp_taskgroup): New function.
5627         (lower_omp_for): Handle combined loops.  Adjust
5628         lower_rec_input_clauses caller.  Handle cancellation.
5629         (lower_depend_clauses): New function.
5630         (lower_omp_taskreg): Lower depend clauses.  Adjust
5631         lower_rec_input_clauses caller.  Add clobber after the call.  Handle
5632         cancellation.
5633         (lower_omp_target, lower_omp_teams): New functions.
5634         (lower_omp_1): Handle cancellation.  Handle GIMPLE_OMP_TASKGROUP,
5635         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
5636         and GOMP_cancellation_point calls.
5637         (lower_omp): Fold stmts inside of target region.
5638         (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
5639         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
5640         * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
5641         (BT_FN_VOID_OMPFN_PTR_UINT,
5642         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
5643         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
5644         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
5645         (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
5646         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
5647         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
5648         BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
5649         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
5650         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
5651         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
5652         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
5653         call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
5654         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
5655         BUILT_IN_GOMP_SECTIONS_END_CANCEL.  Don't handle
5656         BUILT_IN_GOMP_PARALLEL_END.
5657         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
5658         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
5659         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
5660         GF_OMP_FOR_KIND_DISTRIBUTE.
5661         (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
5662         (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
5663         (dump_gimple_omp_return): Print lhs if it has any.
5664         (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
5665         gimple_omp_atomic_seq_cst_p.
5666         (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
5667         and GIMPLE_OMP_TEAMS.
5668         * langhooks.c (lhd_omp_mappable_type): New function.
5669         * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
5670         * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
5671         hook.
5672         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
5673         GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
5674         (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
5675         (struct gimplify_omp_ctx): Add combined_loop field.
5676         (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
5677         on stmts inside of target region.
5678         (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
5679         (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
5680         ORT_TARGET and ORT_TARGET_DATA.
5681         (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
5682         Handle GOVD_MAP.
5683         (omp_notice_threadprivate_variable): Complain about threadprivate
5684         variables in target region.
5685         (omp_notice_variable): Complain about vars with non-mappable type
5686         in target region.  Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
5687         (omp_check_private): Ignore ORT_TARGET* regions.
5688         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
5689         gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
5690         (find_combined_omp_for): New function.
5691         (gimplify_omp_for): Handle gimplification of combined loops.
5692         (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
5693         OMP_TEAMS.
5694         (gimplify_omp_target_update): New function.
5695         (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
5696         (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
5697         OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
5698         (gimplify_body): If fndecl has "omp declare target" attribute, add
5699         implicit ORT_TARGET context around it.
5700         * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
5701         OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
5702         * tree-nested.c (convert_nonlocal_reference_stmt,
5703         convert_local_reference_stmt, convert_gimple_call): Handle
5704         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
5705         * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
5706         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
5707         instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
5708         (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
5709         BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
5710         BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
5711         BUILT_IN_GOMP_LOOP_END_CANCEL,
5712         BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
5713         BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
5714         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
5715         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
5716         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
5717         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
5718         BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
5719         BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
5720         (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
5721         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
5722         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
5723         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
5724         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
5725         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
5726         * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
5727         Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
5728         * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
5729         gimple_build_omp_teams): New functions.
5730         (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
5731         GIMPLE_OMP_TASKGROUP.  Walk optional lhs on GIMPLE_OMP_RETURN.
5732         (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
5733         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
5734         * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
5735         GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
5736         GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
5737         GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
5738         GF_OMP_ATOMIC_SEQ_CST): New.
5739         (gimple_build_omp_taskgroup, gimple_build_omp_target,
5740         gimple_build_omp_teams): New prototypes.
5741         (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
5742         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
5743         (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
5744         GIMPLE_OMP_SINGLE as end of range.
5745         (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
5746         gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
5747         gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
5748         gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
5749         gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
5750         gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
5751         gimple_omp_target_kind, gimple_omp_target_set_kind,
5752         gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
5753         gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
5754         gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
5755         gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
5756         gimple_omp_teams_set_clauses): New inlines.
5757         (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
5758         and GIMPLE_OMP_TASKGROUP.
5759         * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
5760         (enum omp_clause_depend_kind, enum omp_clause_map_kind,
5761         enum omp_clause_proc_bind_kind): New.
5762         (union omp_clause_subcode): Add depend_kind, map_kind and
5763         proc_bind_kind fields.
5764         * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
5765         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
5766         * langhooks-def.h (lhd_omp_mappable_type): New prototype.
5767         (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
5768         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
5770 2013-10-10  Teresa Johnson  <tejohnson@google.com>
5772         * predict.c (tree_estimate_probability): Add new parameter
5773         for estimate_bb_frequencies.
5774         (estimate_bb_frequencies): Add new parameter to force estimation.
5775         (rebuild_frequencies): When max frequency in function is small,
5776         recompute counts from frequencies.
5777         * predict.h (estimate_bb_frequencies): New parameter.
5779 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
5781         * ipa-inline.c (ipa_inline): Fix leak of "order" when
5782         optimizations are disabled.
5784 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
5786         * coverage.c (coverage_finish): Fix leak of da_file_name.
5788 2013-10-10  Jan Hubicka  <jh@suse.cz>
5790         * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
5791         for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
5792         Bobcat and generic.
5794 2013-10-10  Jakub Jelinek  <jakub@redhat.com>
5796         PR middle-end/58670
5797         * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
5798         if any labels are in FALLTHRU_BB, use a special label emitted
5799         immediately after the asm goto insn rather than label_rtx
5800         of the LABEL_DECL.
5801         (expand_asm_stmt): Adjust caller.
5802         * cfgrtl.c (commit_one_edge_insertion): Force splitting of
5803         edge if the last insn in predecessor is a jump with single successor,
5804         but it isn't simplejump_p.
5806 2013-10-10  Richard Biener  <rguenther@suse.de>
5808         PR tree-optimization/58656
5809         * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
5811 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
5813         * gimplify.c: Include expr.h and tm_p.h for targets with special
5814         va-arg padding requirements.
5816 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
5818         * tree-flow.h: Move some prototypes to gimple.h.
5819         (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
5820         * gimple.h: Relocate some prototypes from tree-flow.h
5821         * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
5822         Move to gimplify.c.
5823         * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
5824         (build_va_arg_indirect_ref): Relocate and make static.
5825         (std_gimplify_va_arg_expr): Relocate here.
5826         * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
5827         * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
5829 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5831         * doc/md.texi: Document the mnemonic attribute.
5833 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5835         PR target/57377
5836         * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
5837         (set_attr_alternative x ...) when searching for user defined
5838         mnemonic attribute.
5840 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
5842         * config/aplha/alpha.c: Add gimple-ssa.h to include list.
5844 2013-10-09  Easwaran Raman <eraman@google.com>
5846         * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
5847         * cfgexpand.c (defer_stack_allocation): ...use here
5848         * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
5850 2013-10-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
5852         * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
5853         (operand_equal_for_value_replacement): New function, extracted from
5854         value_replacement and enhanced to catch more cases.
5855         (value_replacement): Use operand_equal_for_value_replacement.
5857 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
5859         * loop-doloop.c (doloop_modify, doloop_optimize): Use
5860         get_max_loop_iterations.
5862 2013-10-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5864         * config/arm/aarch-common.c (arm_early_load_addr_dep):
5865         Place comment above function.
5867 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
5869         * tree-flow.h: Remove all remaining prototypes, enums and structs that
5870         are not related to tree-cfg.c.
5871         * tree-ssa-address.h: New file.  Relocate prototypes.
5872         * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
5873         (addr_for_mem_ref): New.  Combine call to get_address_description and
5874         return addr_for_mem_ref.
5875         * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
5876         * tree-ssa-live.h: Adjust prototypes.
5877         * passes.c: Include tree-ssa-live.h.
5878         * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
5879         * graphite.c (graphite_transform_loops): Make static.
5880         (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
5881         make_pass_graphite, pass_data_graphite_transforms,
5882         make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
5883         * ipa-pure-const.c (warn_function_noreturn): Make static.
5884         (execute_warn_function_noreturn, gate_warn_function_noreturn,
5885         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
5886         Relocate from tree-cfg.c
5887         * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
5888         static.
5889         (execute_warn_function_noreturn, gate_warn_function_noreturn,
5890         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
5891         Move to ipa-pure-const.c.
5892         (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
5893         Relocate from tree-optimize.c.
5894         * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
5895         make_pass_fixup_cfg): Move to tree-cfg.c.
5896         * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
5897         Relocate some prototypes.
5898         * tree-data-ref.h (tree_check_data_deps) Add prototype.
5899         * tree-dump.c (dump_function_to_file): Remove prototype.
5900         Add tree-flow.h to the include file.
5901         * tree-dump.h: Remove prototype.
5902         * tree-parloops.h: New File.  Add prototypes.
5903         * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
5904         pass_data_parallelize_loops,  make_pass_parallelize_loops): Relocate
5905         from tree-ssa-loop.c.
5906         * tree-predcom.c (run_tree_predictive_commoning,
5907         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
5908         Relocate here from tree-ssa-loop.c.
5909         * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
5910         ssa_name_values.release ().
5911         * tree-ssa-threadedge.h: New File.  Relocate prototypes here.
5912         (ssa_name_values): Relocate from tree-flow.h.
5913         * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
5914         * tree-ssa-loop.c (run_tree_predictive_commoning,
5915         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
5916         graphite_transforms, gate_graphite_transforms, pass_data_graphite,
5917         make_pass_graphite, pass_data_graphite_transforms,
5918         make_pass_graphite_transforms, gate_tree_parallelize_loops,
5919         tree_parallelize_loops, pass_data_parallelize_loops,
5920         make_pass_parallelize_loops): Move to other files.
5921         * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
5922         moved here.
5923         * tree.h: Remove prototypes from tree-address.c.
5925 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
5927         * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
5928         (struct int_tree_map): Move to tree-hasher.h
5929         (SCALE, LABEL, PERCENT): Move to gimple.h
5930         * tree-flow-inline.h: Delete.  Move functions to other files.
5931         (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
5932         * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
5933         (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
5934         * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
5935         inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
5936         (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
5937         * tree-hasher.h: Don't include tree-flow.h.
5938         (struct int_tree_map): Relocate from tree-flow.h.
5939         * tree-sra.c (contains_view_convert_expr_p): Relocate from
5940         tree-flow-inline.h and make static.
5941         * tree-ssa-alias.h (ranges_overlap_p): Relocate from
5942         tree-flow-inline.h.
5943         * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
5944         tree-flow-inline.h and make static.
5945         * tree.h (is_global_var, may_be_aliased): Relocate from
5946         tree-flow-inline.h.
5947         * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
5948         * value-prof.c: No longer include tree-flow-inline.h.
5949         * tree-switch-conversion.c: No longer include tree-flow-inline.h.
5951 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
5953         * tree-flow.h: Move some protoypes.  Include new tree-ssa-loop.h.
5954         (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
5955         (enum move_pos): Move to tree-ssa-loop-im.h
5956         * cfgloop.h: Move some prototypes.
5957         (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
5958         * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
5959         * tree-ssa-loop.h: New File.  Include other tree-ssa-loop-*.h files.
5960         (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
5961         (loop_containing_stmt): Relocate from tree-flow-inline.h.
5962         * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
5963         * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
5964         (enum move_pos): Relocate here.
5965         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
5966         tree-ssa-loop.c.
5967         (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
5968         (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
5969         make_pass_lim): Relocate here from tree-ssa-loop.c.
5970         * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
5971         tree-ssa-loop.c.
5972         (loop_edge_to_cancel, unloop_loops): Make static.
5973         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
5974         make_pass_iv_canon): Relocate from tree-ssa-loop.c.
5975         (tree_complete_unroll, gate_tree_complete_unroll,
5976         pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
5977         (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
5978         pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
5979         * tree-ssa-loop-ivopts.c: Remove local prototypes.
5980         (stmt_invariant_in_loop_p): Remove unused function.
5981         * tree-ssa-loop-ivopts.h: New file.  Add prototypes.
5982         * tree-ssa-loop-manip.h: New file.  Add prototypes.
5983         * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
5984         (gcov_type_to_double_int): Move to cfgloop.h.
5985         (double_int_cmp, bound_index,
5986         estimate_numbers_of_iterations_loop): Make static.
5987         (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
5988         (max_loop_iterations): Factor out get_max_loop_iterations.
5989         (estimated_loop_iterations_int, max_stmt_executions_int): Move to
5990         cfgloop.c.
5991         * tree-ssa-loop-niter.h: New file.  Add prototypes.
5992         * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
5993         gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
5994         make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
5995         * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
5996         gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
5997         make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
5998         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
5999         pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
6000         (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
6001         pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
6002         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
6003         make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
6004         pass_data_complete_unroll, make_pass_complete_unroll,
6005         tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
6006         pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
6007         tree-ssa-loop-ivcanon.c.
6008         (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
6009         pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
6010         tree-ssa-loop-prefetch.c.
6011         (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
6012         tree-ssa-loop-im.c.
6013         (get_lsm_tmp_name): Relocate and add suffix parameter.
6014         (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
6015         * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
6016         * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
6017         max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
6018         (get_estimated_loop_iterations): Factor out accessor from
6019         estimated_loop_iterations in tree-ssa-loop-niter.c.
6020         (get_max_loop_iterations): Factor out accessor from
6021         _max_loop_iterations in tree-ssa-niter.c.
6022         * loop-unroll.c (decide_unroll_constant_iterations,
6023         decide_unroll_runtime_iterations, decide_peel_simple,
6024         decide_unroll_stupid): Use new get_* accessors.
6026 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
6028         PR tree-optimization/20318
6029         * doc/extend.texi (returns_nonnull): New function attribute.
6030         * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
6031         attribute.
6032         * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
6033         (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
6035 2013-10-09  Eric Botcazou  <ebotcazou@adacore.com>
6037         PR middle-end/58570
6038         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
6039         false if both components are bitfields.
6041 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
6043         * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
6044         (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
6045         (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
6046         * config/aarch64/aarch64.h
6047         (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
6048         * config/aarch64/aarch64-simd-builtins.def
6049         (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
6051 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
6053         * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
6055 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
6057         * config/aarch64/arm_neon.h (vdiv_f64): Added.
6059 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
6061         * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
6062         (vneg_f64): New intrinsic.
6063         (vneg_s8): Asm replaced with C.
6064         (vneg_s16): Likewise.
6065         (vneg_s32): Likewise.
6066         (vneg_s64): New intrinsic.
6067         (vnegq_f32): Asm replaced with C.
6068         (vnegq_f64): Likewise.
6069         (vnegq_s8): Likewise.
6070         (vnegq_s16): Likewise.
6071         (vnegq_s32): Likewise.
6072         (vnegq_s64): Likewise.
6074 2013-10-09  Renlin Li  <Renlin.Li@arm.com>
6076         * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
6078 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6080         * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
6081         packed stack special handling.
6082         (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
6083         back to fixed stack slots for FPRs saved due to stdarg.
6085 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6087         * config/s390/s390.c (s390_frame_info): Restructure function.
6089 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6091         * config/s390/s390.c (struct s390_frame_layout): New field
6092         gpr_save_slots.
6093         (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
6094         (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
6095         regs_ever_clobbered to char*.
6096         (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
6097         of cfun->has_nonlocal_label.  Ignore frame related restore INSNs.
6098         (s390_register_info): Enable FPR save slots.  Move/Copy some
6099         functionality into ...
6100         (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
6101         (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
6102         function.
6103         (s390_frame_info): Do gpr slot allocation here now.  stdarg does
6104         not imply a stack frame.
6105         (s390_init_frame_layout): Remove variable clobbered_regs.
6106         (s390_update_register_info): Remove function.
6107         (s390_hard_regno_rename_ok): Call-saved regs without a save slot
6108         cannot be used for register renaming.
6109         (s390_hard_regno_scratch_ok): New function.
6110         (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
6111         (s390_initial_elimination_offset): Change offset calculation of
6112         the return address pointer.
6113         (save_gprs): Deal with only r6 being saved from the call-saved regs.
6114         (restore_gprs): Set frame related flag.
6115         (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
6116         (s390_emit_prologue): Call s390_register_info instead of
6117         s390_update_frame_layout.  Call s390_save_gprs_to_fprs.
6118         (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
6119         (s390_optimize_prologue): Call s390_optimize_register_info.
6120         Try to remove also FPR slot save/restore INSNs.  Remove frame
6121         related flags from restore INSNs.
6123 2013-10-08  DJ Delorie  <dj@redhat.com>
6125         * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
6126         (movhi): Likewise.
6128         * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
6129         avoid conflict with the MI use of %c.
6130         * config/rl78/rl78-real.md: change %c to %C throughout.
6131         * config/rl78/rl78-virt.md: Likewise.
6133 2013-10-08  Jan Hubicka  <jh@suse.cz>
6135         * config/i386/i386.c (ix86_option_override_internal): Switch
6136         to SSE math for -ffast-math when target ISA supports SSE2.
6138 2013-10-08  Andrew MacLeod  <amacleod@redhat.com>
6140         * tree-flow.h: Remove some prototypes.
6141         * tree.h: Remove some protypes, add a couple.
6142         * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
6143         using_eh_for_cleanups_p): Add interface routines for front ends.
6144         * tree-eh.h: New file.  Add protoptyes.
6145         * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
6146         (add_stmt_to_eh_lp_fn): Make static.
6147         (lower_try_finally): Use new using_eh_for_cleanups_p.
6148         * emit-rtl.c: Include tree-eh.h.
6149         * gimple.h: Include tree-eh.h.
6151 2013-10-08  Marc Glisse  <marc.glisse@inria.fr>
6153         PR tree-optimization/58480
6154         * tree-vrp.c (infer_nonnull_range): New function.
6155         (infer_value_range): Call infer_nonnull_range.
6157 2013-10-08  Dehao Chen  <dehao@google.com>
6159         PR tree-optimization/58619
6160         * tree-inline.c (copy_phis_for_bb): Combine location data
6161         only if non-null.
6163 2013-10-08  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
6165         PR target/58423
6166         * config/arm/arm.c (arm_emit_ldrd_pop): Attach
6167         RTX_FRAME_RELATED_P on INSN.
6169 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6171         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
6172         (altivec_expand_vec_perm_const): Call it.
6174 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6176         * config/rs6000/vector.md (mov<mode>): Emit permuted move
6177         sequences for LE VSX loads and stores at expand time.
6178         * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
6179         prototype.
6180         * config/rs6000/rs6000.c (rs6000_const_vec): New.
6181         (rs6000_gen_le_vsx_permute): New.
6182         (rs6000_gen_le_vsx_load): New.
6183         (rs6000_gen_le_vsx_store): New.
6184         (rs6000_gen_le_vsx_move): New.
6185         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
6186         (*vsx_le_perm_load_v4si): New.
6187         (*vsx_le_perm_load_v8hi): New.
6188         (*vsx_le_perm_load_v16qi): New.
6189         (*vsx_le_perm_store_v2di): New.
6190         (*vsx_le_perm_store_v4si): New.
6191         (*vsx_le_perm_store_v8hi): New.
6192         (*vsx_le_perm_store_v16qi): New.
6193         (*vsx_xxpermdi2_le_<mode>): New.
6194         (*vsx_xxpermdi4_le_<mode>): New.
6195         (*vsx_xxpermdi8_le_V8HI): New.
6196         (*vsx_xxpermdi16_le_V16QI): New.
6197         (*vsx_lxvd2x2_le_<mode>): New.
6198         (*vsx_lxvd2x4_le_<mode>): New.
6199         (*vsx_lxvd2x8_le_V8HI): New.
6200         (*vsx_lxvd2x16_le_V16QI): New.
6201         (*vsx_stxvd2x2_le_<mode>): New.
6202         (*vsx_stxvd2x4_le_<mode>): New.
6203         (*vsx_stxvd2x8_le_V8HI): New.
6204         (*vsx_stxvd2x16_le_V16QI): New.
6206 2013-10-07  Renlin Li  <Renlin.Li@arm.com>
6208         * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
6210 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6212         * config/s390/s390.c (s390_register_info): Make the call-saved FPR
6213         loop to work also for 31bit ABI.
6214         Save the stack pointer for frame_size > 0.
6216 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6218         * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
6219         ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
6220         constraint letters from expanders.
6221         ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
6222         retry count to general_operand.
6223         ("tabort"): Give operand 0 a mode.
6224         ("tabort_1"): Add mode and constraint letter for operand 0.
6225         * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
6227 2013-10-04  Jeff Law  <law@redhat.com>
6229         * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
6231         * tree-ssa-threadedge.c (thread_through_normal_block): Broken
6232         out of ...
6233         (thread_across_edge): Here.  Call it.
6235 2013-10-04  Cary Coutant  <ccoutant@google.com>
6237         * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
6238         discarding a location list expression (or a piece of one).
6240 2013-10-03  Jan Hubicka  <jh@suse.cz>
6242         * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
6243         rate of 2.  Core2, Corei7 and Haswell has issue rate of 4.
6244         (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
6246 2013-10-03  Jan Hubicka  <jh@suse.cz>
6248         * config/i386/i386.c (ix86_option_override_internal): Do not enable
6249         accumulate-outgoing-args when producing unwind info.
6251 2013-10-03  Wei Mi  <wmi@google.com>
6253         * lra-constraints.c (insert_move_for_subreg): New function
6254         extracted from simplify_operand_subreg.
6255         (simplify_operand_subreg): Add reload for paradoxical subreg.
6257 2013-10-03  Rong Xu  <xur@google.com>
6259         * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
6260         the candidate of builtin_expect such that we should fix the
6261         size/time estimation.
6262         (estimate_function_body_sizes): Do the acutally size/time fix-up
6263         for builtin_expect.
6265 2013-10-03  Rong Xu  <xur@google.com>
6267         * predict.c (tree_predict_by_opcode): Get the probability
6268         for builtin_expect from param builtin_expect_probability.
6269         * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
6270         * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
6271         * doc/invoke.texi: Add documentation for builtin-expect-probability.
6273 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
6275         PR c++/19476
6276         * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
6277         * calls.c (alloca_call_p): Use get_callee_fndecl.
6278         * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
6279         * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
6280         Likewise.
6281         (vrp_visit_stmt): Remove duplicated code.
6283 2013-10-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
6285         * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
6286         ceildf2, btruncdf2, instead of vsx_* name.
6288         * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
6289         iterators to only do V2DF and V4SF here.  Move the DF code to
6290         rs6000.md where it is combined with SF mode.  Replace <VSv> with
6291         just 'v' since only vector operations are handled with these insns
6292         after moving the DF support to rs6000.md.
6293         (vsx_sub<mode>3): Likewise.
6294         (vsx_mul<mode>3): Likewise.
6295         (vsx_div<mode>3): Likewise.
6296         (vsx_fre<mode>2): Likewise.
6297         (vsx_neg<mode>2): Likewise.
6298         (vsx_abs<mode>2): Likewise.
6299         (vsx_nabs<mode>2): Likewise.
6300         (vsx_smax<mode>3): Likewise.
6301         (vsx_smin<mode>3): Likewise.
6302         (vsx_sqrt<mode>2): Likewise.
6303         (vsx_rsqrte<mode>2): Likewise.
6304         (vsx_fms<mode>4): Likewise.
6305         (vsx_nfma<mode>4): Likewise.
6306         (vsx_copysign<mode>3): Likewise.
6307         (vsx_btrunc<mode>2): Likewise.
6308         (vsx_floor<mode>2): Likewise.
6309         (vsx_ceil<mode>2): Likewise.
6310         (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
6311         (vsx_sminsf3): Likewise.
6312         (vsx_fmadf4): Likewise.
6313         (vsx_fmsdf4): Likewise.
6314         (vsx_nfmadf4): Likewise.
6315         (vsx_nfmsdf4): Likewise.
6316         (vsx_cmpdf_internal1): Likewise.
6318         * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
6319         simpler to select whether a target has SPE or traditional floating
6320         point support in iterators.
6321         (TARGET_DF_SPE): Likewise.
6322         (TARGET_SF_FPR): Likewise.
6323         (TARGET_DF_FPR): Likewise.
6324         (TARGET_SF_INSN): Macros to say whether floating point support
6325         exists for a given operation for expanders.
6326         (TARGET_DF_INSN): Likewise.
6328         * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
6329         combining of SF/DF mode operations, using both traditional and VSX
6330         registers.
6331         (Fvsx): Likewise.
6332         (Ff): Likewise.
6333         (Fv): Likewise.
6334         (Fs): Likewise.
6335         (Ffre): Likewise.
6336         (FFRE): Likewise.
6337         (abs<mode>2): Combine SF/DF modes using traditional floating point
6338         instructions.  Add support for using the upper DF registers with
6339         VSX support, and SF registers with power8-vector support.  Update
6340         expanders for operations supported by both the SPE and traditional
6341         floating point units.
6342         (abs<mode>2_fpr): Likewise.
6343         (nabs<mode>2): Likewise.
6344         (nabs<mode>2_fpr): Likewise.
6345         (neg<mode>2): Likewise.
6346         (neg<mode>2_fpr): Likewise.
6347         (add<mode>3): Likewise.
6348         (add<mode>3_fpr): Likewise.
6349         (sub<mode>3): Likewise.
6350         (sub<mode>3_fpr): Likewise.
6351         (mul<mode>3): Likewise.
6352         (mul<mode>3_fpr): Likewise.
6353         (div<mode>3): Likewise.
6354         (div<mode>3_fpr): Likewise.
6355         (sqrt<mode>3): Likewise.
6356         (sqrt<mode>3_fpr): Likewise.
6357         (fre<Fs>): Likewise.
6358         (rsqrt<mode>2): Likewise.
6359         (cmp<mode>_fpr): Likewise.
6360         (smax<mode>3): Likewise.
6361         (smin<mode>3): Likewise.
6362         (smax<mode>3_vsx): Likewise.
6363         (smin<mode>3_vsx): Likewise.
6364         (negsf2): Delete SF operations that are merged with DF.
6365         (abssf2): Likewise.
6366         (addsf3): Likewise.
6367         (subsf3): Likewise.
6368         (mulsf3): Likewise.
6369         (divsf3): Likewise.
6370         (fres): Likewise.
6371         (fmasf4_fpr): Likewise.
6372         (fmssf4_fpr): Likewise.
6373         (nfmasf4_fpr): Likewise.
6374         (nfmssf4_fpr): Likewise.
6375         (sqrtsf2): Likewise.
6376         (rsqrtsf_internal1): Likewise.
6377         (smaxsf3): Likewise.
6378         (sminsf3): Likewise.
6379         (cmpsf_internal1): Likewise.
6380         (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
6381         (negdf2): Delete DF operations that are merged with SF.
6382         (absdf2): Likewise.
6383         (nabsdf2): Likewise.
6384         (adddf3): Likewise.
6385         (subdf3): Likewise.
6386         (muldf3): Likewise.
6387         (divdf3): Likewise.
6388         (fred): Likewise.
6389         (rsqrtdf_internal1): Likewise.
6390         (fmadf4_fpr): Likewise.
6391         (fmsdf4_fpr): Likewise.
6392         (nfmadf4_fpr): Likewise.
6393         (nfmsdf4_fpr): Likewise.
6394         (sqrtdf2): Likewise.
6395         (smaxdf3): Likewise.
6396         (smindf3): Likewise.
6397         (cmpdf_internal1): Likewise.
6398         (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
6399         (btrunc<mode>2): Delete separate expander, and combine with the
6400         insn and add VSX instruction support.  Use TARGET_<MODE>_FPR.
6401         (btrunc<mode>2_fpr): Likewise.
6402         (ceil<mode>2): Likewise.
6403         (ceil<mode>2_fpr): Likewise.
6404         (floor<mode>2): Likewise.
6405         (floor<mode>2_fpr): Likewise.
6406         (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
6407         Add support for using the upper registers with VSX and
6408         power8-vector.  Move insns to be closer to the define_expands. On
6409         VSX systems, prefer the traditional form of FMA over the VSX
6410         version, since the traditional form allows the target not to
6411         overlap with the inputs.
6412         (fms<mode>4_fpr): Likewise.
6413         (nfma<mode>4_fpr): Likewise.
6414         (nfms<mode>4_fpr): Likewise.
6416 2013-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6417             Richard Earnshaw  <richard.earnshaw@arm.com>
6419         * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
6420         (struct mult_cost_table): Likewise.
6421         (struct mem_cost_table): Likewise.
6422         (struct fp_cost_table): Likewise.
6423         (struct vector_cost_table): Likewise.
6424         (cpu_cost_table): Likewise.
6425         * config/arm/arm.opt (mold-rts-costs): New option.
6426         (mnew-generic-costs): Likewise.
6427         * config/arm/arm.c (generic_extra_costs): New table.
6428         (cortexa15_extra_costs): Likewise.
6429         (arm_slowmul_tune): Use NULL as new costs.
6430         (arm_fastmul_tune): Likewise.
6431         (arm_strongarm_tune): Likewise.
6432         (arm_xscale_tune): Likewise.
6433         (arm_9e_tune): Likewise.
6434         (arm_v6t2_tune): Likewise.
6435         (arm_cortex_a5_tune): Likewise.
6436         (arm_cortex_a9_tune): Likewise.
6437         (arm_v6m_tune): Likewise.
6438         (arm_fa726te_tune): Likewise.
6439         (arm_cortex_a15_tune): Use cortex15_extra_costs.
6440         (arm_cortex_tune): Use generict_extra_costs.
6441         (shifter_op_p): New function.
6442         (arm_unspec_cost): Likewise.
6443         (LIBCALL_COST): Define.
6444         (arm_new_rtx_costs): New function.
6445         (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
6446         table is available. Use old costs otherwise unless mnew-generic-costs
6447         is specified.
6448         * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
6449         (cpu_cost_table): Declare.
6451 2013-10-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6453         PR target/58460
6454         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
6455         (*subs_mul_imm_<mode>)
6456         (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
6457         (*sub_<shift>_<mode>)
6458         (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
6459         Remove k constraint.
6461 2013-10-03  Ian Bolton  <ian.bolton@arm.com>
6463         * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
6464         code.
6465         * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
6467 2013-10-02  Teresa Johnson  <tejohnson@google.com>
6469         * predict.c (probably_never_executed): New function.
6470         (probably_never_executed_bb_p): Invoke probably_never_executed.
6471         (probably_never_executed_edge_p): Ditto.
6472         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
6473         Treat profile insanities conservatively.
6475 2013-10-02  John David Anglin  <danglin@gcc.gnu.org>
6477         * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
6479 2013-10-02  Vladimir Makarov  <vmakarov@redhat.com>
6481         * lra-constraints.c (process_alt_operand): Calculate scratch_p and
6482         use it.  Use smaller increase for scratch.  Don't increase reject
6483         for early clobber scratch.
6484         * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
6485         setting eliminated regs except setting fp from hfp.
6486         (lra_eliminate): Check lra_insn_recog_data on NULL.
6488 2013-10-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
6490         PR target/58587
6491         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
6492         setting -mvsx-timode by default until the underlying problem is fixed.
6493         (RS6000_CPU, power7 defaults): Likewise.
6495 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
6497         * config/x-linux (host-linux.o): Remove header dependencies.
6498         Use $(COMPILE) and $(POSTCOMPILE).
6499         * config/t-linux-android (linux-android.o): Ditto.
6501 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
6503         * Makefile.in (expmed.o-warn): Remove.
6505 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
6507         * graphite-scop-detection.c: Include tree-ssa-propagate,h.
6508         * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
6510 2013-10-02  Teresa Johnson  <tejohnson@google.com>
6512         * dojump.c (do_jump_1): Divide probability between
6513         both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
6515 2013-10-02  Tom Tromey  <tromey@redhat.com>
6517         * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
6519 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
6521         * tree-flow.h: Remove some prototypes.
6522         * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
6523         mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
6524         * tree-into-ssa.c (mark_virtual_operand_for_renaming,
6525         mark_virtual_phi_result_for_renaming): Relocate here.
6526         * tree-into-ssa.h: Add prototypes.
6527         * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
6528         single_pred_before_succ_order.
6529         (blocks_in_phiopt_order): Rename and move to cfganal.c.
6530         (nonfreeing_call_p) Move to gimple.c.
6531         * cfganal.c (single_pred_before_succ_order): Move and renamed from
6532         tree-ssa-phiopt.c.
6533         * basic-block.h (single_pred_before_succ_order): Add prototype.
6534         * gimple.c (nonfreeing_call_p): Relocate here.
6535         * gimple.h: Add prototype.
6536         * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
6537         * tree-ssa-dom.h: New file.  Relocate prototypes here.
6538         * tree-ssa.h: Include tree-ssa-dom.h.
6540 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
6542         * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
6543         Use $(COMPILE) and $(POSTCOMPILE).
6545         * config/alpha/x-alpha (driver-alpha.o): Ditto.
6547 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
6549         * tree-flow.h: Remove some prototypes.
6550         * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
6551         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
6552         * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
6553         propagate_tree_value*): Move from here to...
6554         * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
6555         propagate_tree_value*): Relocate here.
6556         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
6557         * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
6558         * gimple-fold.c: Remove gimple-fold.h from include list.
6559         * tree-vrp.c: Remove gimple-fold.h from include list.
6560         * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
6561         * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
6562         * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
6563         * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
6564         * sese.c: Add tree-ssa-propagate.h to include list.
6566 2013-10-02  Richard Biener  <rguenther@suse.de>
6568         * tree-loop-distribution.c: Include tree-vectorizer.h for
6569         find_loop_location.
6570         (enum partition_kind): Remove PKIND_REDUCTION.
6571         (struct partition_s): Remove has_writes member, add reduction_p member.
6572         (partition_alloc): Adjust.
6573         (partition_builtin_p): Likewise.
6574         (partition_has_writes): Remove.
6575         (partition_reduction_p): New function.
6576         (partition_merge_into): Likewise.
6577         (generate_code_for_partition): Commonize builtin partition
6578         handling tail.
6579         (rdg_cannot_recompute_vertex_p): Remove.
6580         (already_processed_vertex_p): Likewise.
6581         (rdg_flag_vertex): Do not set has_writes.
6582         (classify_partition): Adjust.
6583         (rdg_build_partitions): Do not set has_writes, treat all
6584         partitions as useful.
6585         (distribute_loop): Record number of library calls generated.  Adjust.
6586         (tree_loop_distribution): Report number of loops and library
6587         calls generated as opt-info.
6589 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
6591         * tree-flow.h: Include new .h files.  Move prototypes.
6592         * tree-cfgcleanup.h: New file.  Add prototypes from tree-flow.h.
6593         * tree-dfa.h: New File.  Add prototypes from tree-flow.h.
6594         (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
6595         * tree-pretty-print.h: Add prototypes from tree-flow.h.
6596         * tree-into-ssa.h: New File.  Add prototypes from tree-flow.h.
6597         ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
6598         * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
6599         * tree.h (get_ref_base_and_extent): Move prototype out.
6600         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
6601         tree-dfa.h.
6602         * gimple-low.h: New File.  Add prototypes from tree-flow.h.
6603         * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
6604         * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
6605         * tree-scalar-evolution.c: Include tree.h.
6606         * sese.c: Include tree.h.
6607         * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
6608         * dwarf2out.c: Include tree-dfa.h.
6609         * tree-chrec.c: Include tree.h.
6610         * tree-data-ref.c: Include tree.h.
6612 2013-10-02  Yufeng Zhang  <yufeng.zhang@arm.com>
6614         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
6615         Fix whitespace.
6617 2013-10-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6619         * config/t-sol2 (sol2-c.o): Remove header dependencies.
6620         Use $(COMPILE) and $(POSTCOMPILE).
6621         (sol2-cxx.o): Likewise.
6622         (sol2-stubs.o): Likewise.
6623         (sol2.o): Likewise.
6624         * config/x-solaris (host-solaris.o): Likewise.
6626         * config/sparc/t-sparc (sparc.o): Remove.
6627         (sparc-c.o): Remove header dependencies.
6628         Use $(COMPILE) and $(POSTCOMPILE).
6629         * config/sparc/x-sparc: Likewise.
6631 2013-10-02  Joern Rennecke  <joern.rennecke@embecosm.com>
6633         * config/arc/arc-opts.h: Add 2013 to Copyright years.
6634         * config/arc/arc700.md: Likewise.
6635         * config/arc/arc-modes.def: Likewise.
6636         * config/arc/arc-simd.h: Likewise.
6637         * config/arc/t-arc-uClibc: Likewise.
6638         * config/arc/t-arc-newlib: Likewise.
6640 2013-10-02  Renlin Li  <renlin.li@arm.com>
6642         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
6643         plus_constant.
6644         (aarch64_expand_epilogue): Likewise.
6646 2013-10-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6647             Yufeng Zhang  <yufeng.zhang@arm.com>
6649         * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
6650         declaration.
6651         (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
6652         'base_in' represent a conversion and legal_cast_p_1 holds; set
6653         'base_in' with the returned value from get_unwidened.
6655 2013-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6657         * config/arm/arm.c (arm_legitimize_reload_address): Explain why
6658         plus_constant is not used.
6660 2013-10-01  Wei Mi  <wmi@google.com>
6662         * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
6663         * config/i386/i386.md: Add define_peephole2 to
6664         break partial reg stall for cvtss2sd/cvtsd2ss.
6666 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
6668         * config/arc/arc.c (pass_arc_ifcvt::clone):
6669         Update for ctxt_ -> m_ctxt change.
6671 2013-10-01  Jeff Law  <law@redhat.com>
6673         * tree-ssa-threadupdate.c (struct redirection_data): Delete
6674         outgoing_edge and intermediate_edge fields.  Instead store the path.
6675         (redirection_data::hash): Hash on the last edge's destination index.
6676         (redirection_data::equal): Check the entire thread path.
6677         (lookup_redirectio_data): Corresponding changes.
6678         (create_edge_and_update_destination_phis): Likewise.
6679         (thread_single_edge): Likewise.
6681 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
6682             Diego Novillo <dnovillo@google.com>
6684         * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
6685         (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
6686         (vld32wh_insn, vld32wl_insn): Delete commented-out old
6687         versions of these patterns.
6689         * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
6690         (__builtin_arc_aligned): Likewise.
6692         * config/arc/arc.md: Expand adc_0 comment stating the intended
6693         purpose and why it isn't ready.
6694         Replace commented out call_value_via_label_mixed with a
6695         plain comment about bl_s.
6697         * config/arc/arc.c (stdio.h): Don't include directly.
6698         (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
6699         Remove if (1) condition.
6700         (arc_encode_section_info): Fix comment.
6702 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
6704         * config/arc/arc.c (arc_conditional_register_usage):
6705         Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
6706         Also set reg_alloc_order for DMA config regs.
6708 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
6709             Jeremy Bennett  <jeremy.bennett@embecosm.com>
6711         * doc/install.texi (--with-cpu): Mention ARC.
6712         (arc-*-elf32): New paragraph.
6713         (arc-linux-uclibc): Likewise.
6714         * doc/md.texi (Machine Constraints): Add ARC part.
6715         * doc/invoke.texi: (menu): Add ARC Options.
6716         (Machine Dependent Options) <ARC Options>: Add synopsis.
6717         (node ARC Options): Add.
6718         * doc/extend.texi (long_call / short_call attribute): Add ARC.
6719         (ARC Built-in Functions): New section defining
6720         generic ARC built-in functions.
6721         (ARC SIMD Built-in Functions): New section defining SIMD specific
6722         built-in functions.
6723         (Declaring Attributes of Functions): Extended
6724         description of short_call and long_call attributes for ARC and
6725         added index entries.
6727 2013-10-01  Saurabh Verma  <saurabh.verma@codito.com>
6728             Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
6729             Joern Rennecke  <joern.rennecke@embecosm.com>
6730             Muhammad Khurram Riaz  <khurram.riaz@arc.com>
6731             Brendan Kehoe  <brendan@zen.org>
6732             Michael Eager  <eager@eagercon.com>
6733             Simon Cook  <simon.cook@embecosm.com>
6734             Jeremy Bennett  <jeremy.bennett@embecosm.com>
6736         * config/arc, common/config/arc: New directories.
6738 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
6739             Brendan Kehoe  <brendan@zen.org>
6740             Simon Cook  <simon.cook@embecosm.com>
6742         * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
6744 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
6746         * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
6747         * tree-ssa-coalesce.h: New. Move prototype to here.
6748         * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
6749         * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
6750         (gimple_can_coalesce_p): Move to...
6751         * gimple.c (gimple_can_coalesce_p): Here.
6753 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
6755         * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
6756         (dump_decl_set): Move to gimple.c.
6757         * gimple.h: Don't include tree-ssa-operands.h.
6758         (dump_decl_set): Add prototype.
6759         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
6760         Move to gimple-ssa.h.
6761         (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
6762         gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
6763         gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
6764         gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
6765         * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
6766         than PHI_ARG_DEF.
6767         (dump_decl_set): Relocate here.
6768         * gimple-ssa.h: New file.
6769         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
6770         Relocate from gimple.h.
6771         * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
6772         * tree-ssa-operands.c (swap_ssa_operands): Rename from
6773         swap_tree_operands and remove non-ssa path.
6774         (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
6775         * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
6776         swap_ssa_operands.
6777         * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
6778         vect_is_simple_reduction_1): Use swap_ssa_operands.
6779         * tree-flow.h: Move various prototypes to tree-phinodes.h.
6780         (enum need_phi_state): Move to tree-into-ssa.c.
6781         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
6782         BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
6783         (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
6784         * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
6785         link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
6786         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
6787         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
6788         num_imm_uses): Move to ssa-iterators.h.
6789         (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
6790         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
6791         tree-phinodes.h.
6792         (op_iter_done, op_iter_next_def, op_iter_next_tree,
6793         clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
6794         op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
6795         single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
6796         num_ssa_operands, delink_stmt_imm_use, single_phi_def,
6797         op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
6798         end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
6799         first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
6800         end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
6801         (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
6802         gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
6803         gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
6804         phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
6805         (set_phi_nodes): Move to tree-phinodes.h.
6806         * tree-ssa-operands.h (enum ssa_op_iter_type,
6807         struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
6808         ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
6809         (dump_decl_set): Remove prototype.
6810         (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
6811         * tree-phinodes.h: New file.  Move some prototypes from tree-flow.h.
6812         (set_phi_nodes): Relocate from tree-flow-inline.h.
6813         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
6814         tree-flow-inline.h
6815         * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
6816         include list.  Temporarily add gimple.h to include list.
6817         * ssa-iterators.h: New file.
6818         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
6819         BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
6820         (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
6821         FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
6822         Relocate from tree-ssa-operands.h.
6823         (delink_imm_use, link_imm_use_to_list, link_imm_use,
6824         set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
6825         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
6826         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
6827         num_imm_uses, get_use_from_ptr, get_def_from_ptr,
6828         phi_arg_index_from_use, op_iter_done, op_iter_next_def,
6829         op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
6830         op_iter_init_use, op_iter_init_def, op_iter_init_tree,
6831         single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
6832         zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
6833         single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
6834         end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
6835         link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
6836         first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
6837         Relocate from tree-flow-inline.h.
6838         * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
6840 2013-10-01  Vidya Praveen  <vidyapraveen@arm.com>
6842         * aarch64-simd.md
6843         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
6844         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
6845         Insert '\t' to output template.
6846         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
6847         (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
6848         gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
6849         (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
6851 2013-10-01  Uros Bizjak  <ubizjak@gmail.com>
6853         * doc/install.texi (Host/target specific installation notes for GCC):
6854         Put @anchor before @heading.
6855         * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
6856         Use @email for email addresses.
6858 2013-10-01  Jeff Law  <law@redhat.com>
6860         * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
6861         a vec.  Only delete the path if we create one without successfully
6862         registering a jump thread.
6863         * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
6864         as a pointer.
6865         * tree-ssa-threadupdate.c (threaded_edges): Remove.  No longer used
6866         (paths): New vector of jump threading paths.
6867         (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
6868         (THREAD_PATH): New accessor macro for the entire thread path.
6869         (lookup_redirection_data): Get intermediate and final outgoing edge
6870         from the thread path.
6871         (create_edge_and_update_destination_phis): Copy the threading path.
6872         (ssa_fix_duplicate_block_edges): Get edges and block types from the
6873         jump threading path.
6874         (ssa_redirect_edges): Get edges and block types from the jump threading
6875         path.  Free the path vector.
6876         (thread_block): Get edges from the jump threading path.  Look at the
6877         entire path to see if we thread to a loop exit.  If we cancel a jump
6878         thread request, then free the path vector.
6879         (thread_single_edge): Get edges and block types from the jump threading
6880         path.  Free the path vector.
6881         (thread_through_loop_header): Get edges and block types from the jump
6882         threading path.  Free the path vector.
6883         (mark_threaded_blocks): Iterate over the vector of paths and store
6884         the path on the appropriate edge.  Get edges and block types from the
6885         jump threading path.
6886         (mark_threaded_blocks): Get edges and block types from the jump
6887         threading path.  Free the path vector.
6888         (thread_through_all_blocks): Use the vector of paths rather than
6889         a vector of 3-edge sets.
6890         (register_jump_thread): Accept pointer to a path vector rather
6891         than the path vector itself.  Store the path vector for later use.
6892         Simplify.
6894 2013-10-01  Jakub Jelinek  <jakub@redhat.com>
6895             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6897         PR target/58574
6898         * config/s390/s390.c (s390_split_branches): Modify check for table
6899         jump insns.
6900         (s390_chunkify_start): Rearrange table jump insn check in order to
6901         deal with compare and branch insns correctly.
6903 2013-10-01  Kugan Vivekanandarajah  <kuganv@linaro.org>
6905         PR target/58578
6906         Revert
6907         2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
6908         * config/arm/arm.md (arm_ashldi3_1bit):  define_insn into
6909         define_insn_and_split.
6910         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
6911         (shiftsi3_compare): New pattern.
6912         (rrx): New pattern.
6913         * config/arm/unspecs.md (UNSPEC_RRX): New.
6915 2013-10-01  Alan Modra  <amodra@gmail.com>
6917         * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
6918         casing inout operands.
6920 2013-10-01  Richard Biener  <rguenther@suse.de>
6922         PR tree-optimization/58553
6923         * tree-loop-distribution.c (struct partition_s): Add niter member.
6924         (classify_partition): Populate niter member for the partition
6925         and properly identify whether the relevant store happens before
6926         or after the loop exit.
6927         (generate_memset_builtin): Use niter member from the partition.
6928         (generate_memcpy_builtin): Likewise.
6930 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
6932         * vec.h (vec_prefix, vec): Prefix member names with "m_".
6933         * vec.c (vec_prefix::calculate_allocation): Update accordingly.
6935 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
6937         * basic-block.h (edge_list): Prefix member names with "m_".
6938         * context.h (context): Likewise.
6939         * domwalk.h (dom_walker): Likewise.
6940         * gengtype-state.c (s_expr_writer, state_writer): Likewise.
6941         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
6942         * hash-table.h (hash_table): Likewise.
6943         * machmode.h (bit_field_mode_iterator): Likewise.
6944         * pass_manager.h (pass_list): Likewise.
6945         * tree-into-ssa.c (mark_def_dom_walker): Likewise.
6946         * tree-pass.h (pass_data): Likewise.
6947         * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
6948         * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
6949         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
6950         * asan.c (pass_data_asan): Update accordingly.
6951         * cfganal.c (control_dependences::find_control_dependence): Likewise.
6952         (control_dependences::control_dependences): Likewise.
6953         (control_dependences::~control_dependences): Likewise.
6954         (control_dependences::~control_dependences): Likewise.
6955         (control_dependences::get_edges_dependent_on): Likewise.
6956         * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
6957         (pass_data_remove_cgraph_callee_edges::clone): Likewise.
6958         * context.c (gcc::context::context): Likewise.
6959         * cprop.c (pass_rtl_cprop::clone): Likewise.
6960         * domwalk.c (dom_walker::walk): Likewise.
6961         * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
6962         * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
6963         * mode-switching.c (pass_mode_switching::clone): Likewise.
6964         * passes.c (opt_pass::opt_pass): Likewise.
6965         (pass_manager::pass_manager): Likewise.
6966         * predict.c (pass_strip_predict_hints::clone): Likewise.
6967         * recog.c (pass_data pass_data_peephole2::clone): Likewise.
6968         (pass_split_all_insns::clone): Likewise.
6969         * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
6970         Likewise.
6971         (bit_field_mode_iterator::next_mode): Likewise.
6972         (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
6973         * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
6974         * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
6975         * tree-complex.c (pass_lower_complex::clone): Likewise.
6976         * tree-eh.c (pass_cleanup_eh::clone): Likewise.
6977         * tree-object-size.c (pass_object_sizes::clone): Likewise.
6978         * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
6979         * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
6980         (pass_fold_builtins::clone): Likewise.
6981         * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
6982         * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
6983         * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
6984         (pass_cd_dce::clone): Likewise.
6985         * tree-ssa-dom.c (pass_dominator::clone): Likewise.
6986         (pass_phi_only_cprop::clone): Likewise.
6987         * tree-ssa-dse.c (pass_dse::clone): Likewise.
6988         * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
6989         * tree-ssa-loop.c (pass_lim::clone): Likewise.
6990         * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
6991         * tree-ssa-pre.c (pass_fre::clone): Likewise.
6992         * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
6993         * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
6994         * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
6995         * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
6996         * tree-vrp.c (pass_vrp::clone): Likewise.
6997         * tsan.c (pass_tsan::clone): Likewise.
6999 2013-09-30  Jakub Jelinek  <jakub@redhat.com>
7001         PR middle-end/58564
7002         * fold-const.c (tree_unary_nonnegative_warnv_p): Use
7003         INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
7005         PR middle-end/58564
7006         * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
7007         optimization, punt if sign_bit_p looked through any zero extension.
7009 2013-09-30  Teresa Johnson  <tejohnson@google.com>
7011         * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
7012         Update redirected out edge count in joiner case.
7013         (ssa_redirect_edges): Common the joiner and non-joiner cases
7014         so that joiner case gets profile updates.
7016 2013-09-30  Richard Biener  <rguenther@suse.de>
7018         PR tree-optimization/58554
7019         * tree-loop-distribution.c (classify_partition): Require
7020         unconditionally executed stores for memcpy and memset recognition.
7021         (tree_loop_distribution): Calculate dominance info.
7023 2013-09-30  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
7025         * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
7026         (NO_PROFILE_COUNTERS): Likewise.
7027         (PROFILE_HOOK): Likewise.
7028         (FUNCTION_PROFILER): Likewise.
7029         * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
7031 2013-09-30  Iain Sandoe  <iain@codesourcery.com>
7033         * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
7034         calls and defines in TARGET_MACHO conditional.
7035         (load_macho_picbase_di): Likewise.
7036         (reload_macho_picbase): Likewise.
7037         (reload_macho_picbase_si): Likewise.
7038         (reload_macho_picbase_di): Likewise.
7039         (nonlocal_goto_receiver): Likewise.
7041 2013-09-30  Nick Clifton  <nickc@redhat.com>
7043         * config/msp430/msp430.c (msp430x_names): New array.  Lists MCUs
7044         that use the MSP430X ISA.
7045         (msp430_option_override): Scan -mmcu command line option for any
7046         MCU name that supports the MSP430X ISA.
7047         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
7048         -mmcu options which enable the MSP430X ISA.
7050 2013-09-30  Richard Biener  <rguenther@suse.de>
7052         PR middle-end/58532
7053         * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
7054         before looking for setjmp-like calls.
7056 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
7058         PR target/10901
7059         * config/darwin-protos.h (machopic_get_function_picbase): New.
7060         * config/darwin.c (machopic_get_function_picbase): New.
7061         * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
7062         label for a new func.  (load_macho_picbase_di): Likewise.
7063         (reload_macho_picbase): New expand.
7064         (reload_macho_picbase_si): New insn.
7065         (reload_macho_picbase_di): New insn.
7066         (nonlocal_goto_receiver): New define and split.
7067         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
7068         (unspecv enum): Add UNSPECV_NLGR.
7070 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
7072         * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
7073         that altivec registers are correctly sized on Darwin.
7075 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
7077         * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
7078         darwin-driver.o): Use COMPILE and POSTCOMPILE.
7079         * config/x-darwin (host-darwin.o): Likewise.
7080         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
7081         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
7082         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
7084 2013-09-29  Uros Bizjak  <ubizjak@gmail.com>
7086         * doc/invoke.texi: Fix usage of @tie{} command.
7088 2013-09-29  Eric Botcazou  <ebotcazou@adacore.com>
7090         * config/sparc/sync.md: Add peephole for consecutive memory barriers.
7092 2013-09-28  Jan Hubicka  <jh@suse.cz>
7094         * config/i386/x86-tune.def: Add documentation for each of the options;
7095         add whitespace.
7097 2013-09-28  Jan Hubicka  <jh@suse.cz>
7099         * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
7100         generic.
7101         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
7102         (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
7103         (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
7104         (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
7105         (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
7107 2013-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
7109         * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
7110         bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
7111         cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
7112         cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
7113         combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
7114         cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
7115         df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
7116         dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
7117         errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
7118         fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
7119         gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
7120         genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
7121         genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
7122         genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
7123         gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
7124         gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
7125         gimple.h, godump.c, graphite-clast-to-gimple.c,
7126         graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
7127         graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
7128         hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
7129         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
7130         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
7131         ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
7132         loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
7133         lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
7134         mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
7135         pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
7136         predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
7137         profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
7138         regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
7139         reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
7140         sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
7141         statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
7142         system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
7143         tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
7144         tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
7145         tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
7146         tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
7147         tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
7148         tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
7149         tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
7150         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
7151         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
7152         tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
7153         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
7154         tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
7155         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
7156         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
7157         tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
7158         tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
7159         tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
7160         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
7161         tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
7162         tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
7163         varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
7164         whitespace before "(".
7166 2013-09-28  Sandra Loosemore  <sandra@codesourcery.com>
7168         * expr.h (extract_bit_field): Remove packedp parameter.
7169         * expmed.c (extract_fixed_bit_field): Remove packedp parameter
7170         from forward declaration.
7171         (store_split_bit_field): Remove packedp arg from calls to
7172         extract_fixed_bit_field.
7173         (extract_bit_field_1): Remove packedp parameter and packedp
7174         argument from recursive calls and calls to extract_fixed_bit_field.
7175         (extract_bit_field): Remove packedp parameter and corresponding
7176         arg to extract_bit_field_1.
7177         (extract_fixed_bit_field): Remove packedp parameter.  Remove code
7178         to issue warnings.
7179         (extract_split_bit_field): Remove packedp arg from call to
7180         extract_fixed_bit_field.
7181         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
7182         (copy_blkmode_from_reg): Likewise.
7183         (copy_blkmode_to_reg): Likewise.
7184         (read_complex_part): Likewise.
7185         (store_field): Likewise.
7186         (expand_expr_real_1): Likewise.
7187         * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
7188         to extract_bit_field.
7189         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
7190         call to extract_bit_field.
7191         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
7192         call to extract_bit_field.
7193         * doc/invoke.texi (Code Gen Options): Remove mention of warnings
7194         and special packedp behavior from -fstrict-volatile-bitfields
7195         documentation.
7197 2013-09-27  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7199         * lra-eliminations.c (init_elim_table): Guard value_p.
7201 2013-09-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
7203         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
7204         DFmode, DImode, and SFmode in the upper VSX registers based on the
7205         -mupper-regs-{df,sf} flags.  Fix wu constraint to be ALTIVEC_REGS
7206         if -mpower8-vector.  Combine -mvsx-timode handling with the rest
7207         of the VSX register handling.
7209         * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
7210         (f32_sv): Likewise.
7211         (zero_extendsidi2_lfiwzx): Add support for loading into the
7212         Altivec registers with -mpower8-vector.  Use wu/wv constraints to
7213         only do VSX memory options on Altivec registers.
7214         (extendsidi2_lfiwax): Likewise.
7215         (extendsfdf2_fpr): Likewise.
7216         (mov<mode>_hardfloat, SF/SD modes): Likewise.
7217         (mov<mode>_hardfloat32, DF/DD modes): Likewise.
7218         (mov<mode>_hardfloat64, DF/DD modes): Likewise.
7219         (movdi_internal64): Likewise.
7221 2013-09-27  Xinliang David Li  <davidxl@google.com>
7223         * opts.c (finish_options): Adjust parameters
7224         according to vect cost model.
7225         (common_handle_option): Set dynamic vect cost
7226         model for FDO.
7227         targhooks.c (default_add_stmt_cost): Compute stmt cost
7228         unconditionally.
7229         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
7230         Use helper function.
7231         * tree-vectorizer.h (unlimited_cost_model): New function.
7232         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
7233         * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
7234         function.
7235         (vect_enhance_data_refs_alignment): Ditto.
7236         * flag-types.h: New enum.
7237         * common/config/i386/i386-common.c (ix86_option_init_struct):
7238         No need to initialize vect_cost_model flag.
7239         * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
7240         unconditionally.
7242 2013-09-27  Diego Novillo  <dnovillo@google.com>
7244         * gimple.h (enum ssa_mode): Remove.
7246 2013-09-27  Paulo Matos  <pmatos@broadcom.com>
7248         * cfgloop.h (number_of_loops): Fix typo in check for null.
7250 2013-09-27  Jakub Jelinek  <jakub@redhat.com>
7252         PR middle-end/58551
7253         * tree-cfg.c (move_sese_region_to_fn): Also move loops that
7254         are children of outermost saved_cfun's loop, and set it up to
7255         be moved to dest_cfun's outermost loop.  Fix up num_nodes adjustments
7256         if loop != loop0 and SESE region contains bbs that belong to loop0.
7258 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
7260         * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
7261         (binary_scale_code_p, get_base_term, get_index_term): New functions.
7262         (set_address_segment, set_address_base, set_address_index)
7263         (set_address_disp): Accept the argument unconditionally.
7264         (baseness): Remove must_be_base_p and must_be_index_p checks.
7265         (decompose_normal_address): Classify as much as possible in the
7266         main loop.
7268 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
7270         * cse.c (count_reg_usage): Handle INT_LIST.
7271         * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
7272         * reginfo.c (reg_scan_mark_refs): Likewise.
7273         * reload1.c (eliminate_regs_1): Likewise.
7275 2013-09-27  Iain Sandoe  <iain@codesourcery.com>
7277         PR middle-end/58547
7278         * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
7279         signed.
7281 2013-09-27  Richard Biener  <rguenther@suse.de>
7283         PR tree-optimization/58459
7284         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
7285         restriction not propagating into loops.
7287 2013-09-26  Florian Weimer  <fw@deneb.enyo.de>
7289         * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
7290         * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
7291         * doc/tree-ssa.texi (Walking use-def chains): Delete.
7293 2013-09-26  Richard Biener  <rguenther@suse.de>
7295         * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
7297 2013-09-26  Richard Biener  <rguenther@suse.de>
7299         * alias.h (component_uses_parent_alias_set): Rename to ...
7300         (component_uses_parent_alias_set_from): ... this.
7301         * alias.c (component_uses_parent_alias_set): Rename to ...
7302         (component_uses_parent_alias_set_from): ... this and return
7303         the desired parent.
7304         (reference_alias_ptr_type_1): Use the result from
7305         component_uses_parent_alias_set_from instead of stripping
7306         components one at a time.
7307         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
7309 2013-09-26  Andrew MacLeod  <amacleod@redhat.com>
7311         * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
7312         Move prototypes to...
7313         * tree-ssa-ter.h: New File.  Move prototypes here.
7314         * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
7315         * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
7316         * tree-outof-ssa.c (ssa_is_replaceable_p): New.  Refactor common bits
7317         from is_replaceable_p.
7318         * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
7319         (ter_is_replaceable_p): New.  Use new refactored ssa_is_replaceable_p.
7320         (process_replaceable): Use ter_is_replaceable_p.
7321         (find_replaceable_in_bb): Use ter_is_replaceable_p.
7322         * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c.  Use
7323         newly refactored ssa_is_replaceable_p.
7324         * cfgexpand.c: Include tree-outof-ssa.h.
7325         * ssaexpand.h: Delete.
7327 2013-09-26  Andrew MacLeod <amacleod@redhat.com>
7329         * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
7330         (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
7331         tree-ssa.c
7332         (create_gimple_tmp): Delete.
7333         (get_expr_type, build_assign, build_type_cast): Move to...
7334         * gimple-builder.c: New File.
7335         (get_expr_type): Relocate from gimple.c.
7336         (build_assign, build_type_cast): Change to only create ssanames.
7337         * gimple.h: Move prototypes to...
7338         * gimple-builder.h: New File. Here.
7339         * tree-ssa.h: And here.
7340         * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
7341         count_uses_and_derefs): Relocate from gimple.c.
7342         (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
7343         * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
7344         * tree-ssa-math-opts (execute_cse_reciprocals): Use
7345         gimple_replace_ssa_lhs.
7346         * asan.c: Include gimple-builder.h.
7347         * Makefile.in: Add gimple-builder.o.
7349 2013-09-26  Richard Biener  <rguenther@suse.de>
7351         * tree-ssa-live.c (var_map_base_init): Handle SSA names with
7352         DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
7353         (loe_visit_block): Use gcc_checking_assert.
7354         * tree-ssa-coalesce.c (create_outofssa_var_map): Use
7355         gimple_assign_ssa_name_copy_p.
7356         (gimple_can_coalesce_p): Adjust according to the var_map_base_init
7357         change.
7359 2013-09-26  David Edelsohn  <dje.gcc@gmail.com>
7361         * config/rs6000/t-rs6000 (rs6000.o): Remove.
7362         (rs6000-c.o): Use COMPILE and POSTCOMPILE.
7364 2013-09-26  Richard Biener  <rguenther@suse.de>
7366         PR tree-optimization/58539
7367         * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
7368         the fact that debug statements are not taking part in loop-closed
7369         SSA construction.
7371 2013-09-26  Nick Clifton  <nickc@redhat.com>
7373         * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
7374         time warning message.
7375         (msp430_print_operand_raw): Delete unused letter parameter.
7376         (TARGET_PRINT_OPERAND_ADDRESS): Define.
7377         (msp430_print_operand_address): New function.
7378         (msp430_print_operand): Move address printing code from here to
7379         new function.
7380         * config/msp430/msp430.md (movsipsi2): Add comment in generated
7381         assembler.
7382         (zero_extendpsisi2): Likewise.
7383         (extendpsisi2): New pattern.
7384         (andneghi3): New pattern.
7386 2013-09-26  Yvan Roux  <yvan.roux@linaro.org>
7388         * config/aarch64/aarch64.opt (mlra): New option.
7389         * config/aarch64/aarch64.c (aarch64_lra_p): New function.
7390         (TARGET_LRA_P): Define.
7392 2013-09-26  Eric Botcazou  <ebotcazou@adacore.com>
7394         * expr.c (expand_assignment): Remove obsolete comment.
7396 2013-09-25  Jeff Law  <law@redhat.com>
7398         * tree-flow.h (thread_through_all_blocks): Prototype moved into
7399         tree-ssa-threadupdate.h.
7400         (register_jump_thread): Similarly.
7401         * tree-ssa-threadupdate.h: New header file.
7402         * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
7403         * tree-vrp.c: Likewise.
7404         * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
7405         (thread_around_empty_blocks): Change type of path vector argument to
7406         an edge,type pair from just an edge.  Initialize both elements when
7407         appending to a jump threading path.  Tweak references to elements
7408         appropriately.
7409         (thread_across_edge): Similarly.  Release memory for the elements
7410         as needed.
7411         * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
7412         (dump_jump_thread_path): New function broken out from
7413         register_jump_thread.
7414         (register_jump_thread): Use dump_jump_thread_path.  Change type of
7415         path vector entries.  Search the path for NULL edges and dump
7416         the path if one is found.  Tweak the conversion of path to 3-edge
7417         form to use the block copy type information embedded in the path.
7419 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
7421         * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
7423 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
7424             Vladimir Makarov  <vmakarov@redhat.com>
7426         * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
7427         from the least significant bit.
7428         (strip_address_mutations): Add bitfield operations handling.
7429         (must_be_index_p): Add shifting and rotate operations handling.
7430         (set_address_base): Use must_be_base_p predicate.
7431         (set_address_index): Use must_be_index_p predicate.
7433 2013-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7434             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7435             Sergey Lega  <sergey.s.lega@intel.com>
7436             Anna Tikhonova  <anna.tikhonova@intel.com>
7437             Ilya Tocar  <ilya.tocar@intel.com>
7438             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7439             Ilya Verbin  <ilya.verbin@intel.com>
7440             Kirill Yukhin  <kirill.yukhin@intel.com>
7441             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7443         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
7444         Use new names.
7445         (ix86_expand_vector_move_misalign): Support new unaligned load and
7446         stores and use new names.
7447         (CODE_FOR_sse2_storedqu): Rename to ...
7448         (CODE_FOR_sse2_storedquv16qi): ... this.
7449         (CODE_FOR_sse2_loaddqu): Rename to ...
7450         (CODE_FOR_sse2_loaddquv16qi): ... this.
7451         (CODE_FOR_avx_loaddqu256): Rename to ...
7452         (CODE_FOR_avx_loaddquv32qi): ... this.
7453         (CODE_FOR_avx_storedqu256): Rename to ...
7454         (CODE_FOR_avx_storedquv32qi): ... this.
7455         * config/i386/i386.md (fpint_logic): New.
7456         * config/i386/sse.md (VMOVE): Extend for AVX512.
7457         (VF): Ditto.
7458         (VF_128_256): New.
7459         (VF_512): Ditto.
7460         (VI_UNALIGNED_LOADSTORE): Ditto.
7461         (sse2_avx_avx512f): Ditto.
7462         (sse2_avx2): Extend for AVX512.
7463         (sse4_1_avx2): Ditto.
7464         (avx2_avx512f): New.
7465         (sse): Extend for AVX512.
7466         (sse2): Ditto.
7467         (sse4_1): Ditto.
7468         (avxsizesuffix): Ditto.
7469         (sseintvecmode): Ditto.
7470         (ssePSmode): Ditto.
7471         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
7472         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
7473         (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
7474         (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
7475         (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
7476         (<sse2_avx_avx512f>_storedqu<mode): ... this.
7477         (<sse>_movnt<mode>): Replace constraint "x" with "v".
7478         (STORENT_MODE): Extend for AVX512.
7479         (*absneg<mode>2): Replace constraint "x" with "v".
7480         (*mul<mode>3): Ditto.
7481         (*ieee_smin<mode>3): Ditto.
7482         (*ieee_smax<mode>3): Ditto.
7483         (avx_cmp<mode>3): Replace VF with VF_128_256.
7484         (*<sse>_maskcmp<mode>3_comm): Ditto.
7485         (<sse>_maskcmp<mode>3): Ditto.
7486         (<sse>_andnot<mode>3): Extend for AVX512.
7487         (<code><mode>3, anylogic): Replace VF with VF_128_256.
7488         (<code><mode>3, fpint_logic): New.
7489         (*<code><mode>3): Extend for AVX512.
7490         (avx512flogicsuff): New.
7491         (avx512f_<logic><mode>): Ditto.
7492         (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
7493         VF_128_256.
7494         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
7495         (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
7496         (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
7497         (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
7498         (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
7499         (xop_vpermil2<mode>3): Ditto.
7500         (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
7501         (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
7502         (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
7503         (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
7505 2013-09-25  Tom Tromey  <tromey@redhat.com>
7507         * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
7508         (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
7509         (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
7510         (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
7511         (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
7512         (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
7513         (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
7514         (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
7515         (GRAPHITE_HTAB_H): Remove.
7517 2013-09-25  Tom Tromey  <tromey@redhat.com>
7519         * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
7521 2013-09-25  Tom Tromey  <tromey@redhat.com>
7523         * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
7525 2013-09-25  Tom Tromey  <tromey@redhat.com>
7527         * config/i386/t-i386 (i386.o): Remove.
7528         (i386-c.o): Use COMPILE and POSTCOMPILE.
7530 2013-09-25  Tom Tromey  <tromey@redhat.com>
7532         * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
7534 2013-09-25  Tom Tromey  <tromey@redhat.com>
7536         * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
7537         (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
7538         (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
7539         (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
7540         (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
7541         (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
7542         (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
7543         (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
7544         (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
7545         (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
7546         (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
7547         (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
7548         (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
7549         (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
7550         (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
7551         (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
7552         (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
7553         (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
7554         (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
7555         (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
7556         (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
7557         (tree-ssa-pre.o, tree-ssa-sccvn.o)
7558         (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
7559         (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
7560         (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
7561         (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
7562         (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
7563         (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
7564         (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
7565         (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
7566         (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
7567         (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
7568         (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
7569         (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
7570         (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
7571         (graphite-clast-to-gimple.o, graphite-dependences.o)
7572         (graphite-interchange.o, graphite-poly.o)
7573         (graphite-scop-detection.o, graphite-sese-to-poly.o)
7574         (graphite-optimize-isl.o, tree-vect-loop.o)
7575         (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
7576         (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
7577         (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
7578         (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
7579         (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
7580         (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
7581         (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
7582         (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
7583         (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
7584         (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
7585         (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
7586         (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
7587         (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
7588         (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
7589         (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
7590         (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
7591         (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
7592         (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
7593         (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
7594         (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
7595         (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
7596         (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
7597         (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
7598         (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
7599         (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
7600         (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
7601         (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
7602         (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
7603         (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
7604         (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
7605         (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
7606         (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
7607         (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
7608         (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
7609         (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
7610         (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
7611         (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
7612         (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
7613         (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
7614         (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
7615         (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
7616         (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
7617         (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
7618         (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
7619         (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
7620         (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
7621         (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
7622         (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
7623         (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
7624         (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
7625         (gcov-dump.o): Remove.
7626         (default-c.o): Use COMPILE and POSTCOMPILE.
7627         (CFLAGS-gcc.o): New variable.
7628         ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
7630 2013-09-25  Tom Tromey  <tromey@redhat.com>
7632         * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
7633         (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
7634         (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
7635         (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
7636         (c-family/c-pragma.o, c-family/c-pretty-print.o)
7637         (c-family/c-semantics.o, c-family/c-ada-spec.o)
7638         (c-family/array-notation-common.o, c-family/stub-objc.o)
7639         (c-family/c-ubsan.o): Remove.
7641 2013-09-25  Tom Tromey  <tromey@redhat.com>
7643         * Makefile.in (C_TREE_H): Reference c/c-tree.h.
7645 2013-09-25  Tom Tromey  <tromey@redhat.com>
7647         * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
7648         to add -DENABLE_SHARED_LIBGCC.
7649         (gcc.o): Don't use subshell.
7651 2013-09-25  Tom Tromey  <tromey@redhat.com>
7653         * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
7654         * configure.ac: Don't invoke AM_PROG_CC_C_O.
7655         (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
7656         * configure, config.in: Rebuild.
7658 2013-09-25  Tom Tromey  <tromey@redhat.com>
7660         * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
7661         (COMPILE, POSTCOMPILE): New variables.
7662         (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
7663         (DEPFILES): New variable.
7664         Include ".Po" files.
7665         * configure.ac: Add checks for dependency checking.
7666         * configure, aclocal.m4: Regenerate.
7668 2013-09-25  Tom Tromey  <tromey@redhat.com>
7670         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
7671         ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
7673 2013-09-25  Tom Tromey  <tromey@redhat.com>
7675         * Makefile.in (generated_files): Add options.h,
7676         target-hooks-def.h, insn-opinit.h,
7677         common/common-target-hooks-def.h, pass-instances.def,
7678         c-family/c-target-hooks-def.h.
7680 2013-09-25  Jeff Law  <law@redhat.com>
7682         * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
7683         than foo[foo.length () - 1] to access last member in a vec.
7684         * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
7686 2013-09-25  Richard Biener  <rguenther@suse.de>
7688         PR middle-end/58521
7689         * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
7691 2013-09-25  Jan Hubicka  <jh@suse.cz>
7693         * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
7694         test.
7696 2013-09-25  Marek Polacek  <polacek@redhat.com>
7698         PR sanitizer/58420
7699         * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
7700         when determining the type name.
7702 2013-09-24  Oleg Endo  <olegendo@gcc.gnu.org>
7704         * config/sh/sh.md: Fix formatting.
7706 2013-09-24  Xinliang David Li  <davidxl@google.com>
7708         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
7709         max peel iterations parameter.
7710         * param.def: New parameter.
7711         * doc/invoke.texi: Document New parameter.
7713 2013-09-24  Christophe Lyon  <christophe.lyon@linaro.org>
7715         * gimple-pretty-print.c: Various whitespace tweaks.
7716         * tree-core.h: Likewise.
7717         * tree-pretty-print.c: Likewise.
7718         * tree-ssa-alias.c: Likewise.
7719         * tree-ssa-copy.c: Likewise.
7720         * tree-ssanames.c: Likewise.
7721         * tree-ssanames.h: Likewise.
7722         * tree-vrp.c: Likewise.
7724 2013-09-24  Alan Modra  <amodra@gmail.com>
7726         PR middle-end/57134
7727         PR middle-end/57586
7728         * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
7729         for output operands that disallow regs.  Don't use EXPAND_WRITE on
7730         inout operands.
7732 2013-09-24  Richard Biener  <rguenther@suse.de>
7734         PR middle-end/58513
7735         * tree.c (reference_alias_ptr_type): Move ...
7736         * alias.c (reference_alias_ptr_type): ... here and implement
7737         in terms of the new reference_alias_ptr_type_1.
7738         (ref_all_alias_ptr_type_p): New helper.
7739         (get_deref_alias_set_1): Drop flag_strict_aliasing here,
7740         use ref_all_alias_ptr_type_p.
7741         (get_deref_alias_set): Add flag_strict_aliasing check here.
7742         (reference_alias_ptr_type_1): New function, split out from ...
7743         (get_alias_set): ... here.
7744         (alias_ptr_types_compatible_p): New function.
7745         * alias.h (reference_alias_ptr_type): Declare.
7746         (alias_ptr_types_compatible_p): Likewise.
7747         * tree.h (reference_alias_ptr_type): Remove.
7748         * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
7749         to compare MEM_REF alias types.
7751 2013-09-24  Richard Biener  <rguenther@suse.de>
7753         * tree-vrp.c (vrp_finalize): Check for SSA name presence.
7755 2013-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
7757         * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
7758         reload helper function arrays into a single array reg_addr.
7759         (reload_fpr_gpr): Likewise.
7760         (reload_gpr_vsx): Likewise.
7761         (reload_vsx_gpr): Likewise.
7762         (struct rs6000_reg_addr): Likewise.
7763         (reg_addr): Likewise.
7764         (rs6000_debug_reg_global): Change rs6000_vector_reload,
7765         reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
7766         (rs6000_init_hard_regno_mode_ok): Likewise.
7767         (rs6000_secondary_reload_direct_move): Likewise.
7768         (rs6000_secondary_reload): Likewise.
7770         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
7771         constraints: wu, ww, and wy.  Repurpose wv constraint added during
7772         power8 changes.  Put wg constraint in alphabetical order.
7774         * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
7775         for future work to add ISA 2.07 VSX single precision support.
7776         (-mvsx-scalar-double): Change default from -1 to 1, update
7777         documentation comment.
7778         (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
7779         (-mupper-regs-df): New debug switch to control whether DF values
7780         can go in the traditional Altivec registers.
7781         (-mupper-regs-sf): New debug switch to control whether SF values
7782         can go in the traditional Altivec registers.
7784         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
7785         and wy constraints.
7786         (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
7787         loop variables.  Rename -mvsx-scalar-memory to -mupper-regs-df.
7788         Add new constraints, wu/ww/wy.  Repurpose wv constraint.
7789         (rs6000_debug_legitimate_address_p): Print if we are running
7790         before, during, or after reload.
7791         (rs6000_secondary_reload): Add a comment.
7792         (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
7794         * config/rs6000/constraints.md (wa constraint): Sort w<x>
7795         constraints.  Update documentation string.
7796         (wd constraint): Likewise.
7797         (wf constraint): Likewise.
7798         (wg constraint): Likewise.
7799         (wn constraint): Likewise.
7800         (ws constraint): Likewise.
7801         (wt constraint): Likewise.
7802         (wx constraint): Likewise.
7803         (wz constraint): Likewise.
7804         (wu constraint): New constraint for ISA 2.07 SFmode scalar
7805         instructions.
7806         (ww constraint): Likewise.
7807         (wy constraint): Likewise.
7808         (wv constraint): Repurpose ISA 2.07 constraint that we did not use
7809         in the previous submissions.
7810         * doc/md.texi (PowerPC and IBM RS6000): Likewise.
7812 2013-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
7814         * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
7815         (REG_BR_PROB): Say that the probability is stored in an int_list.
7816         * reg-notes.def: Update commentary to mention INT_LIST.
7817         * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
7818         (INT_LIST): New rtx.
7819         * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
7820         * rtlanal.c (int_reg_note_p): New function.
7821         (alloc_reg_note): Assert that the note does not have an int argument.
7822         (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
7823         * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
7824         * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
7825         rather than an INSN_LIST.  Handle INT_LIST.
7826         * ifcvt.c (cond_exec_process_insns): Take the probability as an int
7827         rather than an rtx.  Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
7828         (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
7829         Manipulate them as ints rather than rtxes.
7830         * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
7831         * regmove.c (copy_src_to_dest): Likewise.
7832         * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
7834         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
7835         into the cases that need it.
7836         * config/arm/arm.c (arm_unwind_emit): Likewise.
7838         * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
7839         * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
7840         * loop-doloop.c (add_test, doloop_modify): Likewise.
7841         * loop-unswitch.c (compare_and_jump_seq): Likewise.
7842         * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
7843         * predict.c (combine_predictions_for_insn): Likewise.
7844         * print-rtl.c (print_rtx): Handle INT_LIST.
7845         * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
7846         * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
7847         * config/arm/arm.c (emit_unlikely_jump): Likewise.
7848         * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
7849         (ix86_split_fp_branch, predict_jump): Likewise.
7850         * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
7851         * config/sh/sh.c (expand_cbranchsi4): Likewise.
7852         * config/spu/spu.c (ea_load_store_inline): Likewise.
7854         * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
7855         value of a REG_BR_PROB note.
7856         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
7857         (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
7858         * emit-rtl.c (try_split): Likewise.
7859         * predict.c (br_prob_note_reliable_p): Likewise.
7860         (invert_br_probabilities, combine_predictions_for_insn): Likewise.
7861         * reorg.c (mostly_true_jump): Likewise.
7862         * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
7863         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
7864         * config/i386/i386.c (ix86_print_operand): Likewise.
7865         * config/ia64/ia64.c (ia64_print_operand): Likewise.
7866         * config/mmix/mmix.c (mmix_print_operand): Likewise.
7867         * config/rs6000/rs6000.c (output_cbranch): Likewise.
7868         * config/s390/s390.c (s390_expand_tbegin): Likewise.
7869         * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
7870         * config/sparc/sparc.c (output_cbranch): Likewise.
7871         * config/spu/spu.c (get_branch_target): Likewise.
7872         * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
7873         * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
7875 2013-09-23  Jan Hubicka  <jh@suse.cz>
7877         * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
7878         for ipa-devirt.
7879         * ipa-utils.h (possible_polymorphic_call_target_p): New function.
7880         * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
7881         of external calls
7882         * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
7883         (gimple_fold_call): Dump inconsistent devirtualizations; add
7884         sanity check for type based devirtualizations.
7885         * ipa-prop.c: Include ipa-utils.h
7886         (ipa_intraprocedural_devirtualization): Add sanity check.
7887         (try_make_edge_direct_virtual_call): Likewise.
7889 2013-09-23  Eric Botcazou  <ebotcazou@adacore.com>
7891         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
7892         assignment statements.
7894 2013-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
7896         * gimple-pretty-print.c (dump_ssaname_info): New function.
7897         (dump_gimple_phi): Call it.
7898         (pp_gimple_stmt_1): Likewise.
7899         * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
7900         (range_info_def): Declare.
7901         * tree-pretty-print.c (pp_double_int): New function.
7902         (dump_generic_node): Call it.
7903         * tree-pretty-print.h (pp_double_int): Declare.
7904         * tree-ssa-alias.c (dump_alias_info): Check pointer type.
7905         * tree-ssanames.h (range_info_def): New structure.
7906         (value_range_type): Move definition here.
7907         (set_range_info, value_range_type, duplicate_ssa_name_range_info):
7908         Declare.
7909         * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
7910         initialization.
7911         (set_range_info): New function.
7912         (get_range_info): Likewise.
7913         (duplicate_ssa_name_range_info): Likewise.
7914         (duplicate_ssa_name_fn): Check pointer type and call
7915         duplicate_ssa_name_range_info.
7916         * tree-ssa-copy.c (fini_copy_prop): Likewise.
7917         * tree-vrp.c (value_range_type): Remove definition, now in
7918         tree-ssanames.h.
7919         (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
7920         * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
7921         (SSA_NAME_RANGE_INFO): New macro.
7923 2013-09-23  Richard Biener  <rguenther@suse.de>
7925         PR tree-optimization/58464
7926         * tree-ssa-pre.c (phi_trans_lookup): Remove.
7927         (phi_trans_add): Change to add conditionally on being not present.
7928         (phi_translate_1): Remove recursion detection here.
7929         (phi_translate): Pre-seed the cache with NULL to catch
7930         recursion here in a more generic way.
7931         (bitmap_find_leader): Adjust comment.
7932         (get_representative_for): Dump value-numbers.
7933         (create_expression_by_pieces): Likewise.
7934         (insert_into_preds_of_block): Likewise.
7936 2013-09-23  Christian Bruel  <christian.bruel@st.com>
7938         PR target/58475
7939         * config/sh/sh.md (movsf_ie): Allow fpul_operand.
7940         * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
7942 2013-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
7944         Revert r202780:
7945         2013-09-20  Renlin Li  <renlin.li@arm.com>
7947         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
7948         plus_constant.
7949         (aarch64_expand_epilogue): Likewise.
7950         (aarch64_legitimize_reload_address): Likewise.
7952 2013-09-22  Eric Botcazou  <ebotcazou@adacore.com>
7954         * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
7955         NULL_TREE before pushing them onto the vector.  Likewise for labels.
7957 2013-09-21  Eric Botcazou  <ebotcazou@adacore.com>
7959         * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
7960         comparison operators when -fno-trapping-math is in effect.
7961         * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
7962         comparison operators in TFmode and assert that unsupported operators
7963         cannot reach here.
7964         (ia64_print_operand): Likewise.
7966 2013-09-21  Jan Hubicka  <jh@suse.cz>
7968         * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
7969         (sse_typeless_stores): Enable for core
7970         (sse_load0_by_pxor): Likewise.
7971         (four_jump_limit): Disable for core.
7972         (pad_returns): Likewise.
7973         (avoid_vector_decode): Likewise.
7974         (fuse_cmp_and_branch): Enable for cores.
7975         * i386.c (x86_accumulate_outgoing_args): Disable for cores.
7977 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
7979         PR middle-end/56791
7980         * config/pa/pa.c (pa_option_override): Disable auto increment and
7981         decrement instructions until reload is completed.
7983         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
7984         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
7985         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
7987 2013-09-20  DJ Delorie  <dj@redhat.com>
7988             Nick Clifton  <nickc@redhat.com>
7990         * config/rl78/rl78.c: Various whitespace and comment tweaks.
7991         (need_to_save): Save bank 0 on interrupts.
7992         (characterize_address): Strip far address wrappers.
7993         (rl78_as_legitimate_address): Likewise.
7994         (transcode_memory_rtx): Likewise.
7995         (rl78_peep_movhi_p): Disable this peephole after devirt.
7996         (rl78_propogate_register_origins): Forget all origins when a
7997         CLOBBER is seen.
7998         * config/rl78/rl78-virt.md: Various whitespace tweaks.
7999         * config/rl78/rl78-real.md: Various whitespace tweaks.  Additional
8000         peephole2's.
8001         * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
8002         * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
8003         * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
8004         relocating.
8005         * config/rl78/constraints.md: Various whitespace and paren tweaks.
8007 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
8009         * config/pa/pa.md: In "scc" insn patterns, change output template to
8010         handle const0_rtx in reg_or_0_operand operands.
8012 2013-09-20  Martin Husemann  <martin@NetBSD.org>
8014         PR target/56875
8015         * config/vax/vax.c (vax_output_int_move): Use D format specifier.
8016         * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
8018 2013-09-20  Richard Biener  <rguenther@suse.de>
8020         PR middle-end/58484
8021         * tree-scalar-evolution.c (struct scev_info_str): Shrink by
8022         remembering SSA name version and block index.
8023         (new_scev_info_str): Adjust.
8024         (hash_scev_info): Likewise.  Also hash the block index.
8025         (eq_scev_info): Adjust.
8026         (find_var_scev_info): Likewise.
8027         (struct instantiate_cache_entry): Remove.
8028         (struct instantiate_cache_type): Use a htab to map name, block
8029         to chrec.
8030         (instantiate_cache_type::~instantiate_cache_type): Adjust.
8031         (get_instantiated_value_entry): Likewise.
8032         (hash_idx_scev_info, eq_idx_scev_info): New functions.
8033         (instantiate_scev_name): Adjust.
8035 2013-09-20  Jeff Law  <law@redhat.com>
8037         * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
8039 2013-09-20  Yufeng Zhang  <yufeng.zhang@arm.com>
8041         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
8042         Call aarch64_simd_expand_args to update op[argc].
8044 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
8046         * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
8047         plugin argument.
8049 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
8051         * gengtype.c (file_rules): Added rule for *.cc files.
8052         (get_output_file_with_visibility): Give fatal message when no
8053         rules found.
8055 2013-09-20  Renlin Li  <renlin.li@arm.com>
8057         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
8058         (aarch64_expand_epilogue): Likewise.
8059         (aarch64_legitimize_reload_address): Likewise.
8061 2013-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8063         PR middle-end/57748
8064         * expr.c (expand_assignment): Remove misalignp code path.
8066 2013-09-20  Marek Polacek  <polacek@redhat.com>
8068         PR sanitizer/58413
8069         * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
8070         TYPE_PRECISION.  Add asserts.
8072 2013-09-20  Richard Biener  <rguenther@suse.de>
8074         PR tree-optimization/58453
8075         * tree-loop-distribution.c (distribute_loop): Apply the cost
8076         model for -ftree-loop-distribute-patterns, too.
8078 2013-09-20  Richard Biener  <rguenther@suse.de>
8080         PR middle-end/58473
8081         * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
8082         make type comparison less strict.
8084 2013-09-20  Alan Modra  <amodra@gmail.com>
8086         * configure: Regenerate.
8087         * aclocal.m4: Regenerate.
8089 2013-09-20  Marek Polacek  <polacek@redhat.com>
8091         PR other/58467
8092         * doc/extend.texi: Document that attribute used is meant to be used
8093         on variables with static storage duration.
8095 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
8097         PR tree-optimization/58472
8098         * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
8099         simd_lane_access set inv_p = false.
8100         * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
8101         the simduid magic VAR_DECL.
8103 2013-09-19  Jan Hubicka  <jh@suse.cz>
8105         * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
8107 2013-09-17  Jeff Law  <law@redhat.com>
8109         * tree-ssa-dom.c (record_temporary_equivalences): New function
8110         split out of dom_opt_dom_walker::after_dom_children.
8111         (dom_opt_dom_walker::thread_across_edge): Move common code
8112         in here from dom_opt_dom_walker::after_dom_children.
8113         (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
8115 2013-09-19  Jan Hubicka  <jh@suse.cz>
8117         * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
8118         (TARGET_GENERIC): Use PROCESOR_GENERIC
8119         (enum processor_type): Unify generic32 and 64.
8120         * i386.md (cpu): Likewise.
8121         * x86-tune.def (use_leave): Enable for generic32.
8122         (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
8123         * athlon.md: Change generic64 to generic in all occurences.
8124         * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
8125         (ix86_target_macros_internal): Likewise.
8126         * driver-i386.c (host_detect_local_cpu): Likewise.
8127         * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
8128         to ..
8129         (generic_memcpy, generic_memset, generic_cost): This one.
8130         (generic32_memcpy, generic32_memset, generic32_cost): Remove.
8131         (m_GENERIC32, m_GENERIC64): Remove.
8132         (m_GENERIC): Turn into one flag.
8133         (processor_target): Unify generic tunnings.
8134         (ix86_option_override_internal): Replace generic32/64 by generic.
8135         (ix86_issue_rate): Likewise.
8136         (ix86_adjust_cost): Likewise.
8138 2013-09-19  Jan Hubicka  <jh@suse.cz>
8140         * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
8141         of speculative flag.
8143 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
8145         * omp-low.c (expand_omp_sections): Always pass len - 1 to
8146         GOMP_sections_start, even if !exit_reachable.
8148 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
8150         * lra-constraints.c (need_for_all_save_p): Use macro
8151         HARD_REGNO_CALL_PART_CLOBBERED.
8152         * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
8153         set up pseudo conflict hard regs.
8155 2013-09-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
8157         PR target/58452
8158         * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
8159         operands.
8161 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
8163         PR rtl-optimization/58438
8164         * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
8165         * lra-constraints.c (undo_optional_reloads): Keep optional reloads
8166         from previous subpasses.
8168 2013-09-18  Richard Earnshaw  <rearnsha@arm.com>
8170         * arm.c (arm_get_frame_offsets): Validate architecture supports
8171         LDRD/STRD before accepting the tuning preference.
8172         (arm_expand_prologue): Likewise.
8173         (arm_expand_epilogue): Likewise.
8175 2013-09-18  Richard Biener  <rguenther@suse.de>
8177         PR tree-optimization/58417
8178         * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
8179         have chrecs with symbols defined in the loop as operands.
8180         (chrec_fold_multiply): Likewise.
8181         * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
8182         parameters before folding binary operations.
8183         (struct instantiate_cache_entry_hasher): Remove.
8184         (struct instantiate_cache_type): Use a pointer-map.
8185         (instantiate_cache_type::instantiate_cache_type): New function.
8186         (instantiate_cache_type::get): Likewise.
8187         (instantiate_cache_type::set): Likewise.
8188         (instantiate_cache_type::~instantiate_cache_type): Adjust.
8189         (get_instantiated_value_entry): Likewise.
8190         (global_cache): New global.
8191         (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
8192         instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
8193         instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
8194         (instantiate_scev_name): Adjust.
8195         (instantiate_scev): Construct global instead of local cache.
8196         (resolve_mixers): Likewise.
8198 2013-09-18  Daniel Morris  <danielm@ecoscentric.com>
8199             Paolo Carlini  <paolo.carlini@oracle.com>
8201         PR c++/58458
8202         * doc/implement-cxx.texi: Fix references to the C++ standards.
8204 2013-09-18  Jakub Jelinek  <jakub@redhat.com>
8206         * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
8207         * tree-vect-data-refs.c (vect_analyze_data_refs): For
8208         simd_lane_access drs, update also DR_ALIGNED_TO.
8210 2013-09-18  Marek Polacek  <polacek@redhat.com>
8212         PR sanitizer/58411
8213         * doc/extend.texi: Document no_sanitize_undefined attribute.
8214         * builtins.c (fold_builtin_0): Don't sanitize function if it has the
8215         no_sanitize_undefined attribute.
8217 2013-09-18  Nick Clifton  <nickc@redhat.com>
8219         * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
8220         (ASM_DECLARE_FUNCTION_NAME): Define.
8222 2013-09-17  Trevor Saunders  <tsaunders@mozilla.com>
8224         * compare-elim.c (find_comparison_dom_walker): New class
8225         (find_comparisons_in_bb): Rename to
8226         find_comparison_dom_walker::before_dom_children
8227         (find_comparisons): Adjust
8228         * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
8229         adjust.
8230         (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
8231         * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
8232         (init_walk_dominator_tree): Remove declaration.
8233         (fini_walk_dominator_tree): Remove declaration.
8234         * fwprop.c (single_def_use_dom_walker): New class
8235         (single_def_use_enter_block): Convert to
8236         single_def_use_dom_walker::before_dom_children.
8237         (single_def_use_leave_block): Convert to
8238         single_def_use_dom_walker::after_dom_children.
8239         (build_single_def_use_links): Adjust.
8240         * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
8241         class.
8242         (find_candidates_in_block): Convert to
8243         find_candidates_dom_walker::before_dom_children.
8244         (execute_strength_reduction): Adjust.
8245         * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
8246         (sese_dom_walker): New class.
8247         (sese_dom_walker::sese_dom_walker): New constructor.
8248         (sese_dom_walker::~sese_dom_walker): New destructor.
8249         (build_sese_conditions_before): Convert to
8250         sese_dom_walker::before_dom_children.
8251         (build_sese_conditions_after): Convert to
8252         sese_dom_walker::after_dom_children.
8253         (build_poly_scop): Adjust
8254         * tree-into-ssa.c (rewrite_dom_walker): New class
8255         (rewrite_enter_block): Convert to
8256         rewrite_dom_walker::before_dom_children.
8257         (rewrite_leave_block): Convert to
8258         rewrite_dom_walker::after_dom_children.
8259         (rewrite_update_dom_walker): New class.
8260         (rewrite_update_enter_block): Convert to
8261         rewrite_update_dom_walker::before_dom_children.
8262         (rewrite_update_leave_block): Convert to
8263         rewrite_update_dom_walker::after_dom_children.
8264         (rewrite_blocks, rewrite_into_ssa): Adjust.
8265         (mark_def_dom_walker): New class.
8266         (mark_def_dom_walker::mark_def_dom_walker): New constructor.
8267         (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
8268         (mark_def_sites_blocks): Convert to
8269         mark_def_dom_walker::before_dom_children.
8270         (mark_def_site_blocks): Remove.
8271         * tree-ssa-dom.c (dom_opt_dom_walker): New class.
8272         (tree_ssa_dominator_optimize): Adjust.
8273         (dom_thread_across_edge): Convert to method
8274         dom_opt_dom_walker::thread_across_edge.
8275         (dom_opt_enter_block): Convert to member function
8276         dom_opt_dom_walker::before_dom_children.
8277         (dom_opt_leave_block): Convert to member function
8278         dom_opt_dom_walker::after_dom_children.
8279         * tree-ssa-dse.c (dse_dom_walker): New class.
8280         (dse_enter_block): Convert to member function
8281         dse_dom_walker::before_dom_children.
8282         (tree_ssa_dse): Adjust.
8283         * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
8284         (determine_invariantness_stmt): Convert to method
8285         invariantness_dom_walker::before_dom_children.
8286         (determine_invariantness): Remove
8287         (move_computations_dom_walker): New class.
8288         (move_computations_stmt): Convert to method
8289         move_computations_dom_walker::before_dom_children.
8290         (move_computations, tree_ssa_lim): Adjust.
8291         * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
8292         (nt_init_block): Convert to method
8293         notrappping_dom_walker::before_dom_children.
8294         (nt_fini_block): Convert to method
8295         method nontrapping_dom_walker::after_dom_children.
8296         (get_non_trapping): Adjust.
8297         * tree-ssa-pre.c (eliminate_dom_walker): New class.
8298         (eliminate_bb): Convert to method
8299         eliminate_dom_walker::before_dom_children.
8300         (eliminate_leave_block): Convert to method
8301         eliminate_dom_walker::after_dom_children.
8302         (eliminate): Adjust.
8303         * tree-ssa-strlen.c (strlen_dom_walker): New class.
8304         (strlen_enter_block): Convert to method
8305         strlen_dom_walker::before_dom_children.
8306         (strlen_leave_block): Convert to method
8307         method strlen_dom_walker::after_dom_children.
8308         (tree_ssa_strlen): Adjust.
8309         * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
8310         (tree_ssa_uncprop): Adjust.
8311         (uncprop_leave_block): Convert to method
8312         uncprop_dom_walker::after_dom_children.
8313         (uncprop_leave_block): Convert to method
8314         uncprop_dom_walker::before_dom_children.
8316 2013-09-18  Bin Cheng  <bin.cheng@arm.com>
8318         * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
8319         branch in same basic block.  Check both src and dest of the move insn.
8321 2013-09-17  Nick Clifton  <nickc@redhat.com>
8323         * config/rl78/rl78-real.md (bf): New pattern.
8324         (bt): New pattern.
8325         * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
8326         (rl78_print_operand): Do not put a # before a %B.
8327         * config/rl78/rl78.opt: Tweak doc strings.
8329 2013-09-17  DJ Delorie  <dj@redhat.com>
8331         * config/rl78/constraints.md (Wcv): Allow up to $r31.
8332         * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
8333         (rl78_option_override): Likewise, if -mallregs.
8334         (is_virtual_register): Likewise.
8335         * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
8336         (REGNO_OK_FOR_BASE_P): Likewise.
8337         * config/rl78/rl78.opt (-mallregs): New.
8339 2013-09-17  Nick Clifton  <nickc@redhat.com>
8341         * config/rl78/rl78.c (need_to_save): Change return type to bool.
8342         For interrupt functions: save all call clobbered registers if the
8343         interrupt handler is not a leaf function.
8344         (rl78_expand_prologue): Always recompute the frame information.
8345         For interrupt functions: only select bank 0 if one of the bank 0
8346         registers is going to be psuhed.
8348 2013-09-17  DJ Delorie  <dj@redhat.com>
8350         * config/rl78/constraints.md: For each W* constraint, rename to C*
8351         and create a W* constraint that checks for an optional ES: prefix
8352         pattern also.
8353         * config/rl78/rl78.md (UNS_ES_ADDR): New.
8354         (es_addr): New.  Used to wrap far addresses.
8355         * config/rl78/rl78-protos.h (rl78_es_addr): New.
8356         (rl78_es_base): New.
8357         * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
8358         wrapped far addresses.
8359         (rl78_print_operand_1): Unwrap far addresses before processing.
8360         (rl78_lo16): Wrap far addresses in unspecs.
8361         (rl78_es_addr): New.
8362         (rl78_es_base): New.
8363         (insn_ok_now): Check for not-yet-wrapped far addresses.
8364         (transcode_memory_rtx): Properly re-wrap far addresses.
8366 2013-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8368         * config/sparc/t-rtems: Add leon3 multilibs.
8370 2013-09-17  Cong Hou  <congh@google.com>
8372         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
8373         when checking the dot production pattern. The type of rhs operand
8374         of multiply is now checked correctly.
8376 2013-09-17  Jeff Law  <law@redhat.com>
8378         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
8379         edge implied equivalences into successor phis.
8380         * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
8381         here from tree-ssa-threadedge.c.
8382         (mark_threaded_blocks): When threading through a joiner, if both
8383         successors of the joiner's clone reach the same block, verify the
8384         PHI arguments are equal.  If not, cancel the jump threading request.
8385         * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
8386         tree-ssa-threadupdate.c
8387         (thread_across_edge): Don't check PHI argument equality when
8388         threading through joiner block here.
8390 2013-09-17  Andrew MacLeod <amacleod@redhat.com>
8392         * tree-flow.h (ssa_undefined_value_p): Remove prototype.
8393         * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
8394         (warn_uninit, warn_uninitialized_vars,
8395         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
8396         Move to tree-ssa-uninit.c.
8397         * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
8398         (has_undefined_value_p): New.  Pass dependant parts of
8399         ssa_undefined_value_p.
8400         (uninit_undefined_value_p): Use has_undefined_value_p.
8401         (warn_uninit, warn_uninitialized_vars,
8402         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
8403         Move from tree-ssa.c.
8404         * tree-ssa.h: Adjust prototypes.
8406 2013-09-17  Jan Hubicka  <jh@suse.cz>
8408         PR middle-end/58332
8409         * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
8410         * ipa-inline.c (can_inline_edge_p): Do not downgrade
8411         FUNCTION_NOT_OPTIMIZED.
8412         * ipa-inline-analysis.c (compute_inline_parameters): Function
8413         not optimized is not inlinable unless it is alwaysinline.
8414         (inline_analyze_function): Force calls in not optimized
8415         function not inlinable.
8417 2013-09-17  Jan Hubicka  <jh@suse.cz>
8419         PR middle-end/58329
8420         * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
8421         to return NULL.
8422         * ipa.c (function_and_variable_visibility): Likewise.
8423         * ipa-profile.c (ipa_profile): Likewise.
8425 2013-09-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8427         PR ipa/58398
8428         * cgraph.c (cgraph_function_body_availability): Check for ifunc
8429         attribute, and don't inline the resolver in this case.
8431 2013-09-17  Teresa Johnson  <tejohnson@google.com>
8433         * coverage.c (get_coverage_counts): Add missing newline.
8435 2013-09-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8437         PR tree-optimization/58088
8438         * fold-const.c (mask_with_trailing_zeros): New function.
8439         (fold_binary_loc): Make sure we don't recurse infinitely
8440         when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
8441         Use mask_with_trailing_zeros where appropriate.
8443 2013-09-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
8445         * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
8446         of 'prev' var to get better distance estimation.
8448 2013-09-17  Eric Botcazou  <ebotcazou@adacore.com>
8450         * tree-inline.h (struct copy_body_data): Add transform_parameter.
8451         * tree-inline.c (is_parameter_of): New predicate.
8452         (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
8453         a parameter has been remapped.
8454         (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
8455         (optimize_inline_calls): Initialize transform_parameter.
8456         (copy_gimple_seq_and_replace_locals): Likewise.
8457         (tree_function_versioning): Likewise.
8458         (maybe_inline_call_in_expr): Likewise.
8460 2013-09-17  Nick Clifton  <nickc@redhat.com>
8462         * config/msp430/msp430-protos.h: Add prototypes for new functions.
8463         * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
8464         interrupt handlers.
8465         (is_attr_func): New function.
8466         (msp430_is_interrupt_func): New function.
8467         (is_naked_func): New function.
8468         (is_reentrant_func): New function.
8469         (is_critical_func): New function.
8470         (msp430_start_function): Add annotations for function attributes.
8471         (msp430_attr): New function.
8472         (msp430_attribute_table): New.
8473         (msp430_function_section): New function.
8474         (TARGET_ASM_FUNCTION_SECTION): Define.
8475         (msp430_builtin): New enum.
8476         (msp430_init_builtins): New function.
8477         (msp430_builtin_devl): New function.
8478         (msp430_expand_builtin): New function.
8479         (TARGET_INIT_BUILTINS): Define.
8480         (TARGET_EXPAND_BUILTINS): Define.
8481         (TARGET_BUILTIN_DECL): Define.
8482         (msp430_expand_prologue): Add support for naked, interrupt,
8483         critical and reentrant functions.
8484         (msp430_expand_epilogue): Likewise.
8485         (msp430_print_operand): Handle 'O' character.
8486         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
8487         NO_TRAMPOLINES.
8488         * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
8489         UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
8490         (pushm): Use a 'n' rather than an 'i' constraint.
8491         (msp_return): Add generation of the interrupt return instruction.
8492         (disable_interrupts): New pattern.
8493         (enable_interrupts): New pattern.
8494         (push_intr_state): New pattern.
8495         (pop_intr_state): New pattern.
8496         (bic_SR): New pattern.
8497         (bis_SR): New pattern.
8498         * doc/extend.texi: Document MSP430 function attributes and builtin
8499         functions.
8501 2013-09-17  Richard Biener  <rguenther@suse.de>
8503         PR tree-optimization/58432
8504         * tree-loop-distribution.c (tree_loop_distribution): Also
8505         scan PHIs for outside loop uses and seed a partition from them.
8507 2013-09-17  Bin Cheng  <bin.cheng@arm.com>
8509         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
8510         (restructure_reference): Call backtrace_base_for_ref.
8512 2013-09-17  Alan Modra  <amodra@gmail.com>
8514         PR target/57589
8515         * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
8516         patch.
8518 2013-09-16  DJ Delorie  <dj@redhat.com>
8520         * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
8521         vregs location for RL78/G10.
8522         (rl78_expand_prologue): Avoid SEL on G10.
8523         (rl78_expand_epilogue): Likewise.
8524         (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
8525         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
8526         __RL78_G10__ when appropriate.
8527         (ASM_SPEC): Pass -mg10 along to the assembler.
8528         * config/rl78/rl78.md (sel_rb): Disable for G10.
8529         * config/rl78/rl78.opt: Add -mg10 option.
8530         * config/rl78/t-rl78: Add -mg10 multilib.
8532 2013-09-16  Xinliang David Li  <davidxl@google.com>
8534         * tree-if-conv.c (main_tree_if_conversion): Check new flag.
8535         * omp-low.c (omp_max_vf): Ditto.
8536         (expand_omp_simd): Ditto.
8537         * tree-vectorizer.c (vectorize_loops): Ditto.
8538         (gate_vect_slp): Ditto.
8539         (gate_increase_alignment): Ditto.
8540         * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
8541         * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
8542         (gate_tree_vectorize): Name change.
8543         (tree_vectorize): Ditto.
8544         (pass_vectorize::gate): Call new function.
8545         (pass_vectorize::execute): Ditto.
8546         * opts.c: O3 default setting change.
8547         (finish_options): Check new flag.
8548         * doc/invoke.texi: Document new flags.
8549         * common.opt: New flags.
8551 2013-09-16  Andreas Schwab  <schwab@linux-m68k.org>
8553         * doc/tm.texi.in (Cond Exec Macros): Remove node.
8554         (Condition Code): Don't reference it.
8555         * doc/tm.texi: Regenerate.
8557 2013-09-16  Vladimir Makarov  <vmakarov@redhat.com>
8559         PR middle-end/58418
8560         * lra-constraints.c (undo_optional_reloads): Consider all optional
8561         reload even if it did not get a hard reg.
8563 2013-09-16  Teresa Johnson  <tejohnson@google.com>
8565         * dumpfile.c (dump_loc): Remove newline emission.
8566         * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
8567         emission to dump_printf_loc calls where missing.
8568         (vect_mark_for_runtime_alias_test): Ditto.
8569         (vect_analyze_data_ref_dependence): Ditto.
8570         (vect_analyze_data_ref_dependences): Ditto.
8571         (vect_slp_analyze_data_ref_dependence): Ditto.
8572         (vect_slp_analyze_data_ref_dependences): Ditto.
8573         (vect_compute_data_ref_alignment): Ditto.
8574         (vect_update_misalignment_for_peel): Ditto.
8575         (vect_verify_datarefs_alignment): Ditto.
8576         (vector_alignment_reachable_p): Ditto.
8577         (vect_get_data_access_cost): Ditto.
8578         (vect_enhance_data_refs_alignment): Ditto.
8579         (vect_find_same_alignment_drs): Ditto.
8580         (vect_analyze_data_refs_alignment): Ditto.
8581         (vect_analyze_group_access): Ditto.
8582         (vect_analyze_data_ref_access): Ditto.
8583         (vect_analyze_data_ref_accesses): Ditto.
8584         (vect_prune_runtime_alias_test_list): Ditto.
8585         (vect_analyze_data_refs): Ditto.
8586         (vect_create_addr_base_for_vector_ref): Ditto.
8587         (vect_create_data_ref_ptr): Ditto.
8588         (vect_grouped_store_supported): Ditto.
8589         (vect_grouped_load_supported): Ditto.
8590         * value-prof.c (check_counter): Ditto.
8591         (check_ic_target): Ditto.
8592         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
8593         (vect_recog_widen_mult_pattern): Ditto.
8594         (vect_recog_widen_sum_pattern): Ditto.
8595         (vect_recog_over_widening_pattern): Ditto.
8596         (vect_recog_widen_shift_pattern): Ditto.
8597         (vect_recog_rotate_pattern): Ditto.
8598         (vect_recog_vector_vector_shift_pattern): Ditto.
8599         (vect_recog_divmod_pattern): Ditto.
8600         (vect_recog_mixed_size_cond_pattern): Ditto.
8601         (vect_recog_bool_pattern): Ditto.
8602         (vect_pattern_recog_1): Ditto.
8603         (vect_pattern_recog): Ditto.
8604         * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
8605         (vect_is_simple_iv_evolution): Ditto.
8606         (vect_analyze_scalar_cycles_1): Ditto.
8607         (vect_get_loop_niters): Ditto.
8608         (vect_analyze_loop_1): Ditto.
8609         (vect_analyze_loop_form): Ditto.
8610         (vect_analyze_loop_operations): Ditto.
8611         (vect_analyze_loop_2): Ditto.
8612         (vect_analyze_loop): Ditto.
8613         (report_vect_op): Ditto.
8614         (vect_is_slp_reduction): Ditto.
8615         (vect_is_simple_reduction_1): Ditto.
8616         (vect_get_known_peeling_cost): Ditto.
8617         (vect_estimate_min_profitable_iters): Ditto.
8618         (vect_model_reduction_cost): Ditto.
8619         (vect_model_induction_cost): Ditto.
8620         (get_initial_def_for_induction): Ditto.
8621         (vect_create_epilog_for_reduction): Ditto.
8622         (vectorizable_reduction): Ditto.
8623         (vectorizable_induction): Ditto.
8624         (vectorizable_live_operation): Ditto.
8625         (vect_loop_kill_debug_uses): Ditto.
8626         (vect_transform_loop): Ditto.
8627         * tree-vect-stmts.c (vect_mark_relevant): Ditto.
8628         (vect_stmt_relevant_p): Ditto.
8629         (process_use): Ditto.
8630         (vect_mark_stmts_to_be_vectorized): Ditto.
8631         (vect_model_simple_cost): Ditto.
8632         (vect_model_promotion_demotion_cost): Ditto.
8633         (vect_model_store_cost): Ditto.
8634         (vect_get_store_cost): Ditto.
8635         (vect_model_load_cost): Ditto.
8636         (vect_get_load_cost): Ditto.
8637         (vect_init_vector_1): Ditto.
8638         (vect_get_vec_def_for_operand): Ditto.
8639         (vect_finish_stmt_generation): Ditto.
8640         (vectorizable_call): Ditto.
8641         (vectorizable_conversion): Ditto.
8642         (vectorizable_assignment): Ditto.
8643         (vectorizable_shift): Ditto.
8644         (vectorizable_operation): Ditto.
8645         (vectorizable_store): Ditto.
8646         (vectorizable_load): Ditto.
8647         (vectorizable_condition): Ditto.
8648         (vect_analyze_stmt): Ditto.
8649         (vect_transform_stmt): Ditto.
8650         (vect_is_simple_use): Ditto.
8651         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
8652         (vect_can_advance_ivs_p): Ditto.
8653         (vect_update_ivs_after_vectorizer): Ditto.
8654         (vect_do_peeling_for_loop_bound): Ditto.
8655         (vect_gen_niters_for_prolog_loop): Ditto.
8656         (vect_update_inits_of_drs): Ditto.
8657         (vect_create_cond_for_alias_checks): Ditto.
8658         * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
8659         (vect_build_slp_tree_1): Ditto.
8660         (vect_supported_load_permutation_p): Ditto.
8661         (vect_analyze_slp_instance): Ditto.
8662         (vect_analyze_slp): Ditto.
8663         (vect_make_slp_decision): Ditto.
8664         (vect_detect_hybrid_slp): Ditto.
8665         (vect_bb_vectorization_profitable_p): Ditto.
8666         (vect_slp_analyze_bb_1): Ditto.
8667         (vect_update_slp_costs_according_to_vf): Ditto.
8668         (vect_get_mask_element): Ditto.
8669         (vect_transform_slp_perm_load): Ditto.
8670         (vect_schedule_slp_instance): Ditto.
8671         (vect_schedule_slp): Ditto.
8672         (vect_slp_transform_bb): Ditto.
8673         * profile.c (read_profile_edge_counts): Ditto.
8674         (compute_branch_probabilities): Ditto.
8675         * coverage.c (get_coverage_counts): Ditto.
8677 2013-09-16  Diego Novillo  <dnovillo@google.com>
8679         * tree-core.h: Add missing comment lines from refactoring of tree.h.
8681 2013-09-16  Jan Hubicka  <jh@suse.cz>
8683         * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
8684         abstract functions; for static functions check the presence of body.
8686 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
8688         * config/aarch64/aarch64-simd-builtins.def (fma): New.
8689         * config/aarch64/aarch64-simd.md
8690         (aarch64_mla_elt<mode>): New.
8691         (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
8692         (aarch64_mls_elt<mode>): Likewise.
8693         (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
8694         (aarch64_fma4_elt<mode>): Likewise.
8695         (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
8696         (aarch64_fma4_elt_to_128v2df): Likewise.
8697         (aarch64_fma4_elt_to_64df): Likewise.
8698         (fnma<mode>4): Likewise.
8699         (aarch64_fnma4_elt<mode>): Likewise.
8700         (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
8701         (aarch64_fnma4_elt_to_128v2df): Likewise.
8702         (aarch64_fnma4_elt_to_64df): Likewise.
8703         * config/aarch64/iterators.md (VDQSF): New.
8704         * config/aarch64/arm_neon.h
8705         (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
8706         (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
8708 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
8710         * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
8711         (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
8712         (aarch64_mul3_elt_to_128df): Likewise.
8713         (aarch64_mul3_elt_to_64v2df): Likewise.
8714         * config/aarch64/iterators.md (VEL): Also handle DFmode.
8715         (VMUL): New.
8716         (VMUL_CHANGE_NLANES) Likewise.
8717         (h_con): Likewise.
8718         (f): Likewise.
8719         * config/aarch64/arm_neon.h
8720         (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
8722 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
8724         * config/aarch64/arm_neon.h
8725         (vcvtx_high_f32_f64): Fix parameters.
8727 2013-09-16  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8728             Uros Bizjak  <ubizjak@gmail.com>
8730         * config/alpha.c: Include tree-ssanames.h.
8732 2013-09-16  Richard Biener  <rguenther@suse.de>
8734         * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
8735         (dot_rdg_1): Handle control_dd.
8736         (create_edge_for_control_dependence): New function.
8737         (create_rdg_edges): Add control dependences if asked for.
8738         (build_rdg): Likewise.
8739         (generate_loops_for_partition): If there are not necessary
8740         control stmts remove all their dependencies.
8741         (collect_condition_stmts, rdg_flag_loop_exits): Remove.
8742         (distribute_loop): Pass on control dependences.
8743         (tree_loop_distribution): Compute control dependences and remove
8744         restriction on number of loop nodes.
8746 2013-09-16  Jakub Jelinek  <jakub@redhat.com>
8748         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
8749         for internal calls.
8751 2013-09-16  Richard Sandiford  <rdsandiford@googlemail.com>
8753         * cse.c (try_const_anchors): Punt on CC modes.
8755 2013-09-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8757         * config/vax/constraints.md (T): Add missing CONSTANT_P check.
8759 2013-09-14  John David Anglin  <danglin@gcc.gnu.org>
8761         PR target/58382
8762         * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
8763         calls to word_mode.
8765 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
8767         PR target/48094
8768         * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
8769         seen.
8770         (darwin_objc1_section): Likewise.
8771         (darwin_file_end): Emit Image Info section when required.
8773 2013-09-14  Jan Hubicka  <jh@suse.cz>
8775         * tree-into-ssa.c (gate_into_ssa): New.
8776         (pass_data_build_ssa): Use it.
8777         * cgraph.h (expand_thunk): Update prototype.
8778         * cgraphunit.c (analyze_function): Expand thunks early.
8779         (expand_thunk): Fix DECL_CONTEXT of reust_decl;
8780         build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
8781         set lowered flag; do not add new function.
8782         (assemble_thunks_and_aliases): Update.
8783         * tree-ssa.c (gate_init_datastructures): New gate.
8784         (pass_data_init_datastructures): Use it.
8786 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
8788         PR target/58269
8789         * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
8790         xmm register set described in the psABI.
8792 2013-09-13  Evgeny Gavrin <e.gavrin@samsung.com>
8794         * dwarf2out.c (should_emit_struct_debug): Add check
8795         for type_decl variable is not NULL.
8797 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
8799         * config.gcc: Use new winnt-c.c target hooks
8800         * config/t-winnt: New file
8801         * config/winnt-c.c: New file
8802         * doc/tm.texi.in: Document new hook
8803         * doc/tm.texi: Regenerated
8805 2013-09-13  Jan Hubicka  <jh@suse.cz>
8807         PR middle-end/58094
8808         * ipa-inline.c (check_callers): New function.
8809         (check_caller_edge): Remove.
8810         (want_inline_function_to_all_callers_p): Also permit alises that are
8811         called dirrectly.
8812         (inline_to_all_callers): Terminate the walk when devirtualization
8813         introduce new calls.
8815 2013-09-13  Jan Hubicka  <jh@suse.cz>
8817         * ipa-inline-analysis.c (struct growth_data): Add node.
8818         (do_estimate_growth_1): Fix detection of recursion.
8820 2013-09-13  Jakub Jelinek  <jakub@redhat.com>
8822         PR tree-optimization/58392
8823         * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
8824         to avoid shadowing of outer loop variable.  If
8825         saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
8826         replace_by_duplicate_decl simduid of loops that have it set and
8827         set dest_cfun->has_simduid_loops and/or
8828         dest_cfun->has_force_vect_loops.
8829         * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
8830         instead of maybe_lookup_decl.
8831         * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
8832         Use id->blocks_to_copy instead of blocks_to_copy.  Adjust recursive
8833         call.  Copy over force_vect and copy and remap simduid.  Set
8834         cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
8835         (copy_cfg_body): Remove blocks_to_copy argument.  Use
8836         id->blocks_to_copy instead of blocks_to_copy.  Adjust copy_loops
8837         caller.  Don't set cfun->has_simduid_loops and/or
8838         cfun->has_force_vect_loops here.
8839         (copy_body): Remove blocks_to_copy argument.  Adjust copy_cfg_body
8840         caller.
8841         (expand_call_inline, tree_function_versioning): Adjust copy_body
8842         callers.
8844 2013-09-13  Martin Jambor  <mjambor@suse.cz>
8846         PR bootstrap/58388
8847         * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
8848         the assert if the edge was a speculative one.
8850 2013-09-13  Richard Biener  <rguenther@suse.de>
8852         * tree-data-ref.h (known_dependences_p): Move here ...
8853         * tree-loop-distribution.c (known_dependences_p): ... from here.
8854         (dump_rdg_component, debug_rdg_component): Remove.
8855         (dump_rdg): Adjust.
8856         (generate_loops_for_partition): Use gimple_uid instead of
8857         relying on matching stmt visit order.
8858         (rdg_build_partitions): Take starting stmt vector.
8859         (ldist_gen): Merge into ...
8860         (distribute_loop): ... this function.  Do not compute starting
8861         vertices vector.
8862         * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
8864 2013-09-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8866         * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
8867         Set type attribute correctly. Set predicable_short_it attribute.
8868         (cmpsi_shiftsi): Remove %? from output template.
8870 2013-09-13  Richard Biener  <rguenther@suse.de>
8872         * tree-loop-distribution.c (struct rdg_component,
8873         rdg_defs_used_in_other_loops_p, free_rdg_components,
8874         rdg_build_components): Remove.
8875         (stmts_from_loop): Do not record virtual PHIs.
8876         (generate_loops_for_partition): Skip virtual PHIs.
8877         (build_rdg_partition_for_component): Rename to ...
8878         (build_rdg_partition_for_vertex): ... this and adjust.
8879         (rdg_build_partitions): Take a vector of starting vertices
8880         instead of components.  Remove unnecessary leftover handling.
8881         (ldist_gen): Do not build components or record other stores.
8882         (distribute_loop): Do not distribute loops containing stmts
8883         with side-effects.
8885 2013-09-13  Christian Bruel  <christian.bruel@st.com>
8887         PR target/58314
8888         * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
8890 2013-09-13  Kai Tietz  <ktietz@redhat.com>
8892         * config.gcc: Separate cases for mingw and cygwin targets,
8893         and add 64-bit cygwin target case.
8895         * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
8896         dll-export inline-functions.
8897         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
8899 2013-09-13  Jeff Law  <law@redhat.com>
8901         PR middle-end/58387
8902         Revert:
8903         2013-09-06  Jeff Law  <law@redhat.com>
8905         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
8906         edge implied equivalences into successor phis.
8908 2013-09-12  DJ Delorie  <dj@redhat.com>
8910         * config/rl78/rl78-virt.md: Change from | to \; for asm line
8911         separators.
8913 2013-09-12  Brooks Moses  <bmoses@google.com>
8915         PR driver/42955
8916         * Makefile.in: Do not install driver binaries in $(target)/bin.
8918 2013-09-12  DJ Delorie  <dj@redhat.com>
8920         * config/rl78/rl78.opt (mrelax): New.
8921         * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
8922         * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
8924         * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
8925         between SP and FP.
8926         (rl78_expand_epilogue): Likewise.
8928 2013-09-12  Vladimir Makarov  <vmakarov@redhat.com>
8930         PR middle-end/58335
8931         * lra-eliminations.c (remove_reg_equal_offset_note): New.
8932         (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
8933         pointer elimination with using remove_reg_equal_offset_note.
8935 2013-09-12  DJ Delorie  <dj@redhat.com>
8937         * config/msp430/: New port.
8938         * config.gcc (msp430): Added.
8939         * doc/invoke.texi: Document MSP430 options.
8940         * doc/install.texi: Document msp430-elf
8941         * doc/md.texi: Document msp430-elf
8942         * doc/contrib.texi: Document msp430-elf
8944         * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
8945         PSImode.
8947 2013-09-12  Martin Jambor  <mjambor@suse.cz>
8949         PR ipa/58389
8950         * ipa-prop.c (remove_described_reference): Give up if the edge in the
8951         reference descriptor is NULL.
8952         (ipa_edge_removal_hook): If owning a reference descriptor, set its
8953         edge to NULL.
8955 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
8957         * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
8958         (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
8959         num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
8960         * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
8961         make_temp_ssa_name): move to tree-ssanames.h
8962         * tree-ssa-alias.h: Move prototype.
8963         * tree-ssa.h: Include tree-ssanames.h.
8964         * tree-ssanames.c (FREE_SSANAMES): Move to here.
8965         * tree-ssanames.h: New.  Move items from tree-flow*.h
8966         * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
8968 2013-09-12  Richard Biener  <rguenther@suse.de>
8970         PR tree-optimization/58404
8971         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
8972         propagate non-invariant addresses into dereferences wrapped
8973         in component references.
8975 2013-09-12  Richard Biener  <rguenther@suse.de>
8977         PR tree-optimization/58402
8978         * passes.def: Move pass_late_warn_uninitialized later.
8980 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
8982         * tree-ssa.h: New.  Move content from tree-flow.h and
8983         tree-flow-inline.h.
8984         * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
8985         Move prototypes belonging to tree-ssa.c.
8986         * tree-flow-inline.h (redirect_edge_var_map_def,
8987         redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
8988         tree-ssa.h.
8989         * gimple.h: Adjust prototypes.
8990         * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
8991         to...
8992         * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
8993         * tree.h: Move prototype to tree-ssa.h.
8994         * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
8995         * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
8996         * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
8997         cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
8998         cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
8999         ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
9000         gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
9001         gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
9002         graphite-blocking.c, graphite-clast-to-gimple.c,
9003         graphite-dependences.c, graphite-interchange.c,
9004         graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
9005         graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
9006         ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
9007         ipa-reference.c, ipa-split.c, ipa-utils.c,
9008         loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
9009         lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
9010         passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
9011         tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
9012         tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
9013         tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
9014         tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
9015         tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
9016         tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
9017         tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
9018         tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
9019         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
9020         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
9021         tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
9022         value-prof.c, var-tracking.c,
9023         varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
9025 2013-09-12  Richard Biener  <rguenther@suse.de>
9027         PR tree-optimization/58396
9028         * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
9029         (build_rdg): Take a loop-nest parameter, fix memleaks.
9030         (distribute_loop): Compute loop-nest here and pass it to build_rdg.
9032 2013-09-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
9034         * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
9035         for SLM.
9037 2013-09-12  Cameron McInally  <cameron.mcinally@nyu.edu>
9039         * doc/extend.texi: Fix errors in x86 FMA builtin naming.
9040         The FMA instruction names should have a 'v' prefix.
9042 2013-09-12  Richard Biener  <rguenther@suse.de>
9044         * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
9045         (dot_rdg): Use popen instead of system in optional code.
9046         (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
9047         (already_processed_vertex_p): Adjust.
9048         (has_anti_or_output_dependence, predecessor_has_mem_write,
9049         mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
9050         rdg_flag_uses): Remove.
9051         (rdg_flag_vertex): Simplify.
9052         (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
9053         remove recursion.
9054         (build_rdg_partition_for_component): Process the first vertex
9055         of a component only.
9056         (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
9058 2013-09-12  Alan Modra  <amodra@gmail.com>
9060         * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
9062 2013-09-11  DJ Delorie  <dj@redhat.com>
9063             Nick Clifton  <nickc@redhat.com>
9065         * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
9066         (rl78_stack_based_mem): New.
9067         * config/rl78/constraints.md (Iv08): New.
9068         (Iv16): New.
9069         (Iv24): New.
9070         (Is09): New.
9071         (Is17): New.
9072         (Is25): New.
9073         (ISsi): New.
9074         (IShi): New.
9075         (ISqi): New.
9076         * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
9077         (movhi): Likewise.
9078         (movsi): Change from expand to insn-and-split.
9079         (ashrsi3): Clobber AX.
9080         (lshrsi3): New.
9081         (ashlsi3): New.
9082         (cbranchsi4): New.
9083         * config/rl78/rl78.md (CC_REG): Fix.
9084         (addsi3): Allow memory and immediate operands.
9085         (addsi3_internal): Split into...
9086         (addsi3_internal_virt): ...new, and ...
9087         (addsi3_internal_real): ...new.
9088         (subsi): New.
9089         (subsi3_internal_virt): New.
9090         (subsi3_internal_real): New.
9091         (mulsi3): Add memory operand.
9092         (mulsi3_rl78): Likewise.
9093         (mulsi3_g13): Likewise.
9094         * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
9095         (cbranchqi4_real): Add more constraint options.
9096         (cbranchhi4_real): Expand pattern.
9097         (cbranchhi4_real_signed): New.
9098         (cbranchhi4_real_inverted): New.
9099         (cbranchsi4_real_lt): New.
9100         (cbranchsi4_real_ge): New.
9101         (cbranchsi4_real_signed): New.
9102         (cbranchsi4_real): New.
9103         (peephole2): New.
9104         * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
9105         constant shifts.
9106         (lshrsi3_virt): Likewise.
9107         (ashlsi3_virt): Likewise.
9108         (cbranchqi4_virt_signed): New.
9109         (cbranchhi4_virt_signed): New.
9110         (cbranchsi4_virt): New.
9111         * config/rl78/rl78.c: Whitespace fixes throughout.
9112         (move_elim_pass): New.
9113         (pass_data_rl78_move_elim): New.
9114         (pass_rl78_move_elim): New.
9115         (make_pass_rl78_move_elim): New.
9116         (rl78_devirt_info): Run devirt earlier.
9117         (rl78_move_elim_info): New.
9118         (rl78_asm_file_start): Register it.
9119         (rl78_split_movsi): New.
9120         (rl78_as_legitimate_address): Allow virtual base registers when
9121         appropriate.
9122         (rl78_addr_space_convert): Remove spurious debug stuff.
9123         (rl78_print_operand_1): Add z,s,S,r,E modifiers.
9124         (rl78_print_operand): More cases for not printing '#'.
9125         (rl78_expand_compare): Remove most of the logic.
9126         (content_memory): New.
9127         (clear_content_memory): New.
9128         (get_content_index): New.
9129         (get_content_name): New.
9130         (display_content_memory): New.
9131         (update_content): New.
9132         (record_content): New.
9133         (already_contains): New.
9134         (insn_ok_now): Re-recog insns with virtual registers.
9135         (add_postponed_content_update): New.
9136         (process_postponed_content_update): New.
9137         (gen_and_emit_move): New.
9138         (transcode_memory_rtx): Record new location content.
9139         Use gen_and_emit_move.
9140         (force_into_acc): New.
9141         (move_to_acc): Use gen_and_emit_move.
9142         (move_from_acc): Likewise.
9143         (move_acc_to_reg): Likewise.
9144         (move_to_x): Likewise.
9145         (move_to_hl): Likewise.
9146         (move_to_de): Likewise.
9147         (rl78_alloc_physical_registers_op1): Record location content.
9148         (has_constraint): New.
9149         (rl78_alloc_physical_registers_op2): Record location content.
9150         Optimize use of HL.
9151         (rl78_alloc_physical_registers_ro1): Likewise.
9152         (rl78_alloc_physical_registers_cmp): Likewise.
9153         (rl78_alloc_physical_registers_umul): Likewise.
9154         (rl78_alloc_address_registers_macax): New.
9155         (rl78_alloc_physical_registers): Initialize and set location
9156         content memory as needed.
9157         (rl78_reorg): Make sure split2 is called.
9158         (rl78_rtx_costs): New.
9160 2013-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
9162         * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
9163         for (not (neg ...)) and (neg (not ...)) cases.
9165 2013-09-11  Richard Biener  <rguenther@suse.de>
9167         PR middle-end/58377
9168         * passes.def: Split critical edges before late uninit warning passes.
9169         * tree-cfg.c (pass_split_crit_edges): Implement clone method.
9171 2013-09-11  Jakub Jelinek  <jakub@redhat.com>
9173         PR tree-optimization/58385
9174         * fold-const.c (build_range_check): If both low and high are NULL,
9175         use omit_one_operand_loc to preserve exp side-effects.
9177 2013-09-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9179         * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
9181 2013-09-11  Richard Biener  <rguenther@suse.de>
9183         * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
9184         dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
9185         dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
9186         create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
9187         stmts_from_loop, known_dependences_p, build_empty_rdg,
9188         build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
9189         * tree-loop-distribution.c: ... here.
9190         * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
9191         RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
9192         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
9193         struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
9194         * tree-loop-distribution.c: ... here.
9195         * tree-loop-distribution.c: Include gimple-pretty-print.h.
9196         (struct partition_s): Add loops member.
9197         (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
9198         rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
9199         build_rdg_partition_for_component, rdg_build_partitions): Adjust.
9201 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9202             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9203             Sergey Lega  <sergey.s.lega@intel.com>
9204             Anna Tikhonova  <anna.tikhonova@intel.com>
9205             Ilya Tocar  <ilya.tocar@intel.com>
9206             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9207             Ilya Verbin  <ilya.verbin@intel.com>
9208             Kirill Yukhin  <kirill.yukhin@intel.com>
9209             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9211         * config/i386/constraints.md (k): New.
9212         (Yk): Ditto.
9213         * config/i386/i386.c (const regclass_map): Add new mask registers.
9214         (dbx_register_map): Ditto.
9215         (dbx64_register_map): Ditto.
9216         (svr4_dbx_register_map): Ditto.
9217         (ix86_conditional_register_usage): Squash mask registers if AVX512F is
9218         disabled.
9219         (ix86_preferred_reload_class): Disable constants for mask registers.
9220         (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
9221         (ix86_hard_regno_mode_ok): Support new mask registers.
9222         (x86_order_regs_for_local_alloc): Ditto.
9223         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
9224         (FIXED_REGISTERS): Add new mask registers.
9225         (CALL_USED_REGISTERS): Ditto.
9226         (REG_ALLOC_ORDER): Ditto.
9227         (VALID_MASK_REG_MODE): New.
9228         (FIRST_MASK_REG): Ditto.
9229         (LAST_MASK_REG): Ditto.
9230         (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
9231         (MAYBE_MASK_CLASS_P): New.
9232         (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
9233         (REG_CLASS_CONTENTS): Ditto.
9234         (MASK_REGNO_P): New.
9235         (ANY_MASK_REG_P): Ditto.
9236         (HI_REGISTER_NAMES): Add new mask registers.
9237         * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
9238         MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
9239         mask registers.
9240         (attribute "type"): Add mskmov, msklog.
9241         (attribute "length_immediate"): Support them.
9242         (attribute "memory"): Ditto.
9243         (attribute "prefix_0f"): Ditto.
9244         (*movhi_internal): Support new mask registers.
9245         (*movqi_internal): Ditto.
9246         (define_split): Split out clobber pattern is a logic
9247         insn on mask registers.
9248         (*k<logic><mode>): New.
9249         (*andhi_1): Extend to support mask regs.
9250         (*andqi_1): Extend to support mask regs.
9251         (kandn<mode>): New.
9252         (define_split): Split and-not to and and not if operands
9253         are not mask regs.
9254         (*<code><mode>_1): Separate HI mode to new pattern...
9255         (*<code>hi_1): This.
9256         (*<code>qi_1): Extend to support mask regs.
9257         (kxnor<mode>): New.
9258         (kortestzhi): Ditto.
9259         (kortestchi): Ditto.
9260         (kunpckhi): Ditto.
9261         (*one_cmpl<mode>2_1): Remove HImode and handle it...
9262         (*one_cmplhi2_1): ...Here, now with mask registers support.
9263         (*one_cmplqi2_1): Support new mask registers.
9264         (HI/QImode arithmetics splitter): Don't split if mask registers
9265         are used.
9266         (HI/QImode not splitter): Ditto.
9267         * config/i386/predicated.md (mask_reg_operand): New.
9268         (general_reg_operand): Ditto.
9270 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9272         * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
9273         * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
9275 2013-09-10  Jeff Law  <law@redhat.com>
9277         PR tree-optimization/58380
9278         * tree-ssa-threadupdate.c (thread_block): Recognize another case
9279         of threading through a buried loop header.
9281         * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
9282         return value for single successor case.
9284 2013-09-10  Jan Hubicka  <jh@suse.cz>
9286         * ipa-devirt.c (ipa_devirt): Enable with LTO.
9288 2013-09-10  Richard Earnshaw  <rearnsha@arm.com>
9290         PR target/58361
9291         * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
9292         support conditional execution.
9293         (combine_vcvt_f64_<FCVTI32typename>): Likewise.
9295 2013-09-10  Vladimir Makarov  <vmakarov@redhat.com>
9297         * lra.c (lra): Clear lra_optional_reload_pseudos before every
9298         constraint pass.
9299         * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
9300         Check destination too to check move insn.
9301         (undo_optional_reloads): Add check that the original peudo did not
9302         changed its allocation and the optional reload was inherited on last
9303         inheritance pass.  Break loop after deciding to keep optional reload.
9304         (lra_undo_inheritance): Add check that inherited pseudo still in
9305         memory.
9307 2013-09-10  James Greenhalgh  <james.greenhalgh@arm.com>
9309         * config/aarch64/aarch64.md (generic_sched): New.
9310         * config/aarch64/aarch64-generic.md (load): Make conditional
9311         on generic_sched attribute.
9312         (nonload): Likewise.
9314 2013-09-10  Jan Hubicka  <jh@suse.cz>
9316         * lto-cgraph.c: Include ipa-utils.h.
9317         (compute_ltrans_boundary): Also add possible targets into the boundary.
9319 2013-09-10  Jan Hubicka  <jh@suse.cz>
9321         * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
9322         VAR_DECL of vtable rather than full expression.
9324 2013-09-10  Jan Hubicka  <jh@suse.cz>
9325             Paolo Carlini  <paolo.carlini@oracle.com>
9327         * cgraphunit.c (analyze_functions): Save input_location, set it
9328         to UNKNOWN_LOCATION and restore it at the end.
9330 2013-09-10  Martin Jambor  <mjambor@suse.cz>
9332         * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
9333         represented by a thunk.
9335 2013-09-10  Jeff Law  <law@redhat.com>
9337         PR tree-optimization/58343
9338         * tree-ssa-threadupdate.c (thread_block): Identify and disable
9339         jump threading requests through loop headers buried in the middle
9340         of a jump threading path.
9342         * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
9343         in return value/type.
9345 2013-09-10  Jakub Jelinek  <jakub@redhat.com>
9347         PR rtl-optimization/58365
9348         * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
9349         resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
9350         it differs.
9352 2013-09-10  Richard Biener  <rguenther@suse.de>
9354         * tree-data-ref.h (build_rdg): Drop all parameters but loop.
9355         * tree-data-ref.c (create_rdg_vertices): Collect all data
9356         references, signal failure to the caller, use data-ref API.
9357         (build_rdg): Compute data references only once.  Maintain lifetime
9358         of data references and data dependences from within RDG.
9359         (free_rdg): Free dependence relations.
9360         * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
9361         inventing extra dependences.
9362         (distribute_loop): Update for RDG API changes.
9364 2013-09-10  Kai Tietz  <ktietz@redhat.com>
9366         * doc/invoke.texi (fms-extensions): Document changed
9367         behavior for ms-abi targets.
9368         * config/i386/i386.c (ix86_option_override_internal):
9369         Set default value of option -fms-extension for ms-abi targets.
9371 2013-09-10  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
9373         * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
9375 2013-09-10  Alan Modra  <amodra@gmail.com>
9377         PR target/58330
9378         * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
9380 2013-09-10  Alan Modra  <amodra@gmail.com>
9382         * config/rs6000/predicates.md (add_cint_operand): New.
9383         (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
9384         * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
9385         using add_cint_operand.
9386         (largetoc_high_plus_aix): Likewise.
9388 2013-09-09  Jakub Jelinek  <jakub@redhat.com>
9390         PR tree-optimization/58364
9391         * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
9392         BOOLEAN_TYPE, only invert in_p and continue with arg0 if
9393         the current range can't be an unconditional true or false.
9395 2013-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
9397         * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
9399 2013-09-09  Uros Bizjak  <ubizjak@gmail.com>
9401         * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
9403 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
9405         PR c++/43452
9406         * doc/invoke.texi (-Wdelete-incomplete): Document it.
9408 2013-09-09  Ian Bolton  <ian.bolton@arm.com>
9410         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
9411         NO_REGS for immediate that can't be moved directly into FP_REGS.
9413 2013-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9415         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
9416         comparison with negated operand.
9417         * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
9418         RTL form.
9420 2013-09-09  Richard Biener  <rguenther@suse.de>
9422         PR middle-end/58326
9423         * cfgloopmanip.c (fix_bb_placements): When fixing the placement
9424         of a subloop record all its block as affecting loop-closed SSA form.
9426 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
9428         * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
9429         of an rtx/bitpos pair.
9430         (store_fixed_bit_field): Update accordingly.
9432 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
9434         * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
9435         GEN_INT.
9436         * builtins.c (expand_errno_check): Likewise.
9437         * dwarf2cfi.c (init_return_column_size): Likewise.
9438         * except.c (sjlj_mark_call_sites): Likewise.
9439         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
9440         * lra-constraints.c (emit_inc): Likewise.
9441         * ree.c (combine_set_extension): Likewise.
9442         * regmove.c (fixup_match_2): Likewise.
9443         * reload1.c (inc_for_reload): Likewise.
9445 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
9447         * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
9448         (force_to_mode, simplify_shift_const_1, simplify_comparison):
9449         Use gen_int_mode with the mode of the associated simplify_* call.
9450         * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
9451         * expmed.c (expand_shift_1): Likewise.
9452         * function.c (instantiate_virtual_regs_in_insn): Likewise.
9453         * loop-iv.c (iv_number_of_iterations): Likewise.
9454         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
9455         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9457 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
9459         * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
9460         of the associated expand_* call.
9461         (asan_emit_stack_protection): Likewise.
9462         * builtins.c (round_trampoline_addr): Likewise.
9463         * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
9464         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
9465         (emit_store_flag): Likewise.
9466         * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
9467         (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
9468         Likewise.
9469         * function.c (instantiate_virtual_regs_in_insn): Likewise.
9470         * ifcvt.c (noce_try_store_flag_constants): Likewise.
9471         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
9472         * modulo-sched.c (generate_prolog_epilog): Likewise.
9473         * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
9474         (expand_ctz, expand_ffs, expand_unop): Likewise.
9476 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
9478         * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
9479         of the associated gen_rtx_* call.
9480         * caller-save.c (init_caller_save): Likewise.
9481         * combine.c (find_split_point, make_extraction): Likewise.
9482         (make_compound_operation): Likewise.
9483         * dwarf2out.c (mem_loc_descriptor): Likewise.
9484         * explow.c (plus_constant, probe_stack_range): Likewise.
9485         * expmed.c (expand_mult_const): Likewise.
9486         * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
9487         * reload1.c (init_reload): Likewise.
9488         * valtrack.c (cleanup_auto_inc_dec): Likewise.
9489         * var-tracking.c (adjust_mems): Likewise.
9490         * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
9491         rather than gen_rtx_fmt_ee.
9493 2013-09-09  Jan Hubicka  <jh@suse.cz>
9495         PR middle-end/58294
9496         * value-prof.c (gimple_ic): Copy also abnormal edges.
9498 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
9500         * asan.c (asan_shadow_cst): Use gen_int_mode.
9502 2013-09-08  Jan Hubicka  <jh@suse.cz>
9504         * ipa-profile.c: Add toplevel comment.
9505         (ipa_propagate_frequency_1): Be more conservative when profile is read.
9506         (contains_hot_call_p): New function.
9507         (ipa_propagate_frequency): Set frequencies based on counts when
9508         profile is read.
9509         * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
9510         profile; do not tamper with profile after inlining if it is read.
9512 2013-09-08  Jan Hubicka  <jh@suse.cz>
9514         * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
9515         speculative edges.
9517 2013-09-08  Jan Hubicka  <jh@suse.cz>
9519         * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
9520         summary generation.
9522 2013-09-08  Jeff Law  <law@redhat.com>
9524         PR bootstrap/58340
9525         * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
9526         of 'found'.
9528 2013-09-08  Andi Kleen  <ak@linux.intel.com>
9530         * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
9532 2013-09-08  Jan Hubicka  <jh@suse.cz>
9534         * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
9536 2013-09-08  Richard Sandiford  <rdsandiford@googlemail.com>
9538         * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
9539         for non-debug insns.
9540         * lra.c (new_insn_reg): Take the containing insn as a parameter.
9541         Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
9542         (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
9543         accordingly.
9545 2013-09-08  Jan Hubicka  <jh@suse.cz>
9547         * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
9548         targets and devirtualize to BUILT_IN_UNREACHABLE.
9549         * timevar.def (TV_IPA_UNREACHABLE): New timevar.
9550         * ipa.c (walk_polymorphic_call_targets): New function.
9551         (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
9552         functions; use the new timevar.
9553         * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
9554         was removed from the program.
9555         (record_binfo): If BINFO corresponds to an anonymous namespace, we may
9556         not consider it in the walk when its vtable is dead.
9557         (possible_polymorphic_call_targets_1): Pass anonymous flag to
9558         record_binfo.
9559         (devirt_variable_node_removal_hook): New function.
9560         (possible_polymorphic_call_targets): Also register
9561         devirt_variable_node_removal_hook.
9562         (ipa_devirt): Do not do non-speculative devirtualization.
9563         (gate_ipa_devirt): One execute if devirtualizing speculatively.
9565 2013-09-08  Jan Hubicka  <jh@suse.cz>
9567         * cgraph.h (varpool_node_hook, varpool_node_hook_list,
9568         varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
9569         varpool_remove_variable_insertion_hook): Declare.
9570         * varpool.c (varpool_node_hook_list): New structure.
9571         (first_varpool_node_removal_hook,
9572         first_varpool_variable_insertion_hook): New variables.
9573         (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
9574         varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
9575         varpool_remove_variable_insertion_hook,
9576         varpool_call_variable_insertion_hooks): New functions.
9577         (varpool_remove_node): Use it.
9579 2013-09-08  Paolo Carlini  <paolo.carlini@oracle.com>
9581         PR c++/54941
9582         * diagnostic.c (diagnostic_build_prefix): When s.file is
9583         "<built-in>" don't output line and column numbers.
9585 2013-09-06  Jan Hubicka  <jh@suse.cz>
9587         * cgraphunit.c (expand_thunk): Get body before touching arguments.
9588         * lto-streamer-out.c: Stream thunks, too.
9589         * lto-streamer-in.c (input_function): Pop cfun here
9590         (lto_read_body): Instead of here.
9592 2013-09-06  Caroline Tice  <cmtice@google.com>
9594         * doc/install.texi: Add documentation for the --enable-vtable-verify
9595         and the --disable-libvtv configure options.
9597 2013-09-06  Jeff Law  <law@redhat.com>
9599         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
9600         edge implied equivalences into successor phis.
9602 2013-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
9604         * resource.c (mark_referenced_resources): Handle COND_EXEC.
9606 2013-09-06  Claudiu Zissulescu  <claziss@synopsys.com>
9608         * resource.c (mark_target_live_regs): Compute resources taking
9609         into account if a call is predicated or not.
9611 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
9613         * toplev.c (output_stack_usage): Be prepared for suffixes created by
9614         the compiler in the function names.
9616 2013-09-06  Jan Hubicka  <jh@suse.cz>
9618         PR middle-end/58094
9619         * ipa-inline.c (has_caller_p): New function.
9620         (want_inline_function_to_all_callers_p): Use it.
9621         (sum_callers, inline_to_all_callers): Break out from ...
9622         (ipa_inline): ... here.
9624 2013-09-06  Jan Hubicka  <jh@suse.cz>
9626         * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
9627         only when AVX is enabled.
9629 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
9631         * config/aarch64/aarch64.md
9632         (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
9633         is fpsimd_<load/store>2.
9634         (load_pair<mode>): Likewise.
9635         (store_pair<mode>): Likewise.
9637 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
9639         * config/arm/types.md (type): Add "mrs" type.
9640         * config/aarch64/aarch64.md
9641         (aarch64_load_tp_hard): Make type "mrs".
9642         * config/arm/arm.md
9643         (load_tp_hard): Make type "mrs".
9644         * config/arm/cortex-a15.md: Update with new attributes.
9645         * config/arm/cortex-a5.md: Update with new attributes.
9646         * config/arm/cortex-a53.md: Update with new attributes.
9647         * config/arm/cortex-a7.md: Update with new attributes.
9648         * config/arm/cortex-a8.md: Update with new attributes.
9649         * config/arm/cortex-a9.md: Update with new attributes.
9650         * config/arm/cortex-m4.md: Update with new attributes.
9651         * config/arm/cortex-r4.md: Update with new attributes.
9652         * config/arm/fa526.md: Update with new attributes.
9653         * config/arm/fa606te.md: Update with new attributes.
9654         * config/arm/fa626te.md: Update with new attributes.
9655         * config/arm/fa726te.md: Update with new attributes.
9657 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
9659         * config/aarch64/aarch64.md
9660         (*movti_aarch64): Use "multiple" for type where v8type is "move2".
9661         (*movtf_aarch64): Likewise.
9662         * config/arm/arm.md
9663         (thumb1_movdi_insn): Use "multiple" for type where more than one
9664         instruction is used for a move.
9665         (*arm32_movhf): Likewise.
9666         (*thumb_movdf_insn): Likewise.
9668 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
9670         * config/arm/types.md (type): Rename fcpys to fmov.
9671         * config/arm/vfp.md
9672         (*arm_movsi_vfp): Rename type fcpys as fmov.
9673         (*thumb2_movsi_vfp): Likewise
9674         (*movhf_vfp_neon): Likewise
9675         (*movhf_vfp): Likewise
9676         (*movsf_vfp): Likewise
9677         (*thumb2_movsf_vfp): Likewise
9678         (*movsfcc_vfp): Likewise
9679         (*thumb2_movsfcc_vfp): Likewise
9680         * config/aarch64/aarch64-simd.md
9681         (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
9682         * config/aarch64/aarch64.md
9683         (*movsi_aarch64): Replace type mov_reg with fmovs.
9684         (*movdi_aarch64): Likewise
9685         (*movsf_aarch64): Likewise
9686         (*movdf_aarch64): Likewise
9687         * config/arm/arm.c
9688         (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
9689         * config/arm/iwmmxt.md
9690         (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
9691         * config/arm/arm1020e.md: Update with new attributes.
9692         * config/arm/cortex-a15-neon.md: Update with new attributes.
9693         * config/arm/cortex-a5.md: Update with new attributes.
9694         * config/arm/cortex-a53.md: Update with new attributes.
9695         * config/arm/cortex-a7.md: Update with new attributes.
9696         * config/arm/cortex-a8-neon.md: Update with new attributes.
9697         * config/arm/cortex-a9.md: Update with new attributes.
9698         * config/arm/cortex-m4-fpu.md: Update with new attributes.
9699         * config/arm/cortex-r4f.md: Update with new attributes.
9700         * config/arm/marvell-pj4.md: Update with new attributes.
9701         * config/arm/vfp11.md: Update with new attributes.
9703 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
9705         * config/aarch64/aarch64.md
9706         (*madd<mode>): Fix type attribute.
9707         (*maddsi_uxtw): Likewise.
9708         (*msub<mode>): Likewise.
9709         (*msubsi_uxtw): Likewise.
9710         (<su_optab>maddsidi4): Likewise.
9711         (<su_optab>msubsidi4): Likewise.
9713 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
9715         * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
9716         * config/arm/arm.md (core_cycles): Remove fdiv.
9717         * config/arm/vfp.md:
9718         (*sqrtsf2_vfp): Update for attribute changes.
9719         (*sqrtdf2_vfp): Likewise.
9720         * config/aarch64/aarch64.md:
9721         (sqrt<mode>2): Update for attribute changes.
9722         * config/arm/arm1020e.md: Update with new attributes.
9723         * config/arm/cortex-a15-neon.md: Update with new attributes.
9724         * config/arm/cortex-a5.md: Update with new attributes.
9725         * config/arm/cortex-a53.md: Update with new attributes.
9726         * config/arm/cortex-a7.md: Update with new attributes.
9727         * config/arm/cortex-a8-neon.md: Update with new attributes.
9728         * config/arm/cortex-a9.md: Update with new attributes.
9729         * config/arm/cortex-m4-fpu.md: Update with new attributes.
9730         * config/arm/cortex-r4f.md: Update with new attributes.
9731         * config/arm/marvell-pj4.md: Update with new attributes.
9732         * config/arm/vfp11.md: Update with new attributes.
9734 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
9736         * config/arm/types.md
9737         (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
9738         * config/aarch64/aarch64.md
9739         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
9740         new attributes.
9741         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
9742         (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
9743         (float<GPI:mode><GPF:mode>2): Likewise.
9744         * config/arm/vfp.md
9745         (*truncsisf2_vfp): Update with new attributes.
9746         (*truncsidf2_vfp): Likewise.
9747         (fixuns_truncsfsi2): Likewise.
9748         (fixuns_truncdfsi2): Likewise.
9749         (*floatsisf2_vfp): Likewise.
9750         (*floatsidf2_vfp): Likewise.
9751         (floatunssisf2): Likewise.
9752         (floatunssidf2): Likewise.
9753         (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
9754         (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
9755         * config/arm/arm1020e.md: Update with new attributes.
9756         * config/arm/cortex-a15-neon.md: Update with new attributes.
9757         * config/arm/cortex-a5.md: Update with new attributes.
9758         * config/arm/cortex-a53.md: Update with new attributes.
9759         * config/arm/cortex-a7.md: Update with new attributes.
9760         * config/arm/cortex-a8-neon.md: Update with new attributes.
9761         * config/arm/cortex-a9.md: Update with new attributes.
9762         * config/arm/cortex-m4-fpu.md: Update with new attributes.
9763         * config/arm/cortex-r4f.md: Update with new attributes.
9764         * config/arm/marvell-pj4.md: Update with new attributes.
9765         * config/arm/vfp11.md: Update with new attributes.
9767 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
9769         * config/aarch64/arm_neon.h
9770         (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
9771         (vqtbx<1,2,3,4><q>_s8): Likewise.
9773 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
9775         * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
9776         * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
9777         (add<mode>3): Add type attribute.
9778         (add<mode>3): Likewise.
9779         (usadd<mode>3): Likewise.
9780         (ssadd<mode>3): Likewise.
9781         (sub<mode>3): Likewise.
9782         (sub<mode>3): Likewise.
9783         (ussub<mode>3): Likewise.
9784         (sssub<mode>3): Likewise.
9785         (ssmulsa3): Likewise.
9786         (usmulusa3): Likewise.
9787         (arm_usatsihi): Likewise.
9788         * config/arm/vfp.md
9789         (*movdi_vfp): Add types for all instructions.
9790         (*movdi_vfp_cortexa8): Likewise.
9791         (*movhf_vfp_neon): Likewise.
9792         (*movhf_vfp): Likewise.
9793         (*movdf_vfp): Likewise.
9794         (*thumb2_movdf_vfp): Likewise.
9795         (*thumb2_movdfcc_vfp): Likewise.
9796         * config/arm/arm.md: Add type attribute to all insn patterns.
9797         (*thumb1_adddi3): Add type attribute.
9798         (*arm_adddi3): Likewise.
9799         (*adddi_sesidi_di): Likewise.
9800         (*adddi_zesidi_di): Likewise.
9801         (*thumb1_addsi3): Likewise.
9802         (addsi3_compare0): Likewise.
9803         (*addsi3_compare0_scratch): Likewise.
9804         (*compare_negsi_si): Likewise.
9805         (cmpsi2_addneg): Likewise.
9806         (*addsi3_carryin_<optab>): Likewise.
9807         (*addsi3_carryin_alt2_<optab>): Likewise.
9808         (*addsi3_carryin_clobercc_<optab>): Likewise.
9809         (*subsi3_carryin): Likewise.
9810         (*subsi3_carryin_const): Likewise.
9811         (*subsi3_carryin_compare): Likewise.
9812         (*subsi3_carryin_compare_const): Likewise.
9813         (*arm_subdi3): Likewise.
9814         (*thumb_subdi3): Likewise.
9815         (*subdi_di_zesidi): Likewise.
9816         (*subdi_di_sesidi): Likewise.
9817         (*subdi_zesidi_di): Likewise.
9818         (*subdi_sesidi_di): Likewise.
9819         (*subdi_zesidi_ze): Likewise.
9820         (thumb1_subsi3_insn): Likewise.
9821         (*arm_subsi3_insn): Likewise.
9822         (*anddi3_insn): Likewise.
9823         (*anddi_zesidi_di): Likewise.
9824         (*anddi_sesdi_di): Likewise.
9825         (*ne_zeroextracts): Likewise.
9826         (*ne_zeroextracts): Likewise.
9827         (*ite_ne_zeroextr): Likewise.
9828         (*ite_ne_zeroextr): Likewise.
9829         (*anddi_notdi_di): Likewise.
9830         (*anddi_notzesidi): Likewise.
9831         (*anddi_notsesidi): Likewise.
9832         (andsi_notsi_si): Likewise.
9833         (thumb1_bicsi3): Likewise.
9834         (*iordi3_insn): Likewise.
9835         (*iordi_zesidi_di): Likewise.
9836         (*iordi_sesidi_di): Likewise.
9837         (*thumb1_iorsi3_insn): Likewise.
9838         (*xordi3_insn): Likewise.
9839         (*xordi_zesidi_di): Likewise.
9840         (*xordi_sesidi_di): Likewise.
9841         (*arm_xorsi3): Likewise.
9842         (*andsi_iorsi3_no): Likewise.
9843         (*smax_0): Likewise.
9844         (*smax_m1): Likewise.
9845         (*arm_smax_insn): Likewise.
9846         (*smin_0): Likewise.
9847         (*arm_smin_insn): Likewise.
9848         (*arm_umaxsi3): Likewise.
9849         (*arm_uminsi3): Likewise.
9850         (*minmax_arithsi): Likewise.
9851         (*minmax_arithsi_): Likewise.
9852         (*satsi_<SAT:code>): Likewise.
9853         (arm_ashldi3_1bit): Likewise.
9854         (arm_ashrdi3_1bit): Likewise.
9855         (arm_lshrdi3_1bit): Likewise.
9856         (*arm_negdi2): Likewise.
9857         (*thumb1_negdi2): Likewise.
9858         (*arm_negsi2): Likewise.
9859         (*thumb1_negsi2): Likewise.
9860         (*negdi_extendsid): Likewise.
9861         (*negdi_zero_extend): Likewise.
9862         (*arm_abssi2): Likewise.
9863         (*thumb1_abssi2): Likewise.
9864         (*arm_neg_abssi2): Likewise.
9865         (*thumb1_neg_abss): Likewise.
9866         (one_cmpldi2): Likewise.
9867         (extend<mode>di2): Likewise.
9868         (*compareqi_eq0): Likewise.
9869         (*arm_extendhisi2addsi): Likewise.
9870         (*arm_movdi): Likewise.
9871         (*thumb1_movdi_insn): Likewise.
9872         (*arm_movt): Likewise.
9873         (*thumb1_movsi_insn): Likewise.
9874         (pic_add_dot_plus_four): Likewise.
9875         (pic_add_dot_plus_eight): Likewise.
9876         (tls_load_dot_plus_eight): Likewise.
9877         (*thumb1_movhi_insn): Likewise.
9878         (*thumb1_movsf_insn): Likewise.
9879         (*movdf_soft_insn): Likewise.
9880         (*thumb_movdf_insn): Likewise.
9881         (cbranchsi4_insn): Likewise.
9882         (cbranchsi4_scratch): Likewise.
9883         (*negated_cbranchsi4): Likewise.
9884         (*tbit_cbranch): Likewise.
9885         (*tlobits_cbranch): Likewise.
9886         (*tstsi3_cbranch): Likewise.
9887         (*cbranchne_decr1): Likewise.
9888         (*addsi3_cbranch): Likewise.
9889         (*addsi3_cbranch_scratch): Likewise.
9890         (*arm_cmpdi_insn): Likewise.
9891         (*arm_cmpdi_unsig): Likewise.
9892         (*arm_cmpdi_zero): Likewise.
9893         (*thumb_cmpdi_zero): Likewise.
9894         (*deleted_compare): Likewise.
9895         (*mov_scc): Likewise.
9896         (*mov_negscc): Likewise.
9897         (*mov_notscc): Likewise.
9898         (*cstoresi_eq0_thumb1_insn): Likewise.
9899         (cstoresi_nltu_thumb1): Likewise.
9900         (cstoresi_ltu_thu): Likewise.
9901         (thumb1_addsi3_addgeu): Likewise.
9902         (*arm_jump): Likewise.
9903         (*thumb_jump): Likewise.
9904         (*check_arch2): Likewise.
9905         (arm_casesi_internal): Likewise.
9906         (thumb1_casesi_dispatch): Likewise.
9907         (*arm_indirect_jump): Likewise.
9908         (*thumb1_indirect_jump): Likewise.
9909         (nop): Likewise.
9910         (*and_scc): Likewise.
9911         (*ior_scc): Likewise.
9912         (*compare_scc): Likewise.
9913         (*cond_move): Likewise.
9914         (*cond_arith): Likewise.
9915         (*cond_sub): Likewise.
9916         (*cmp_ite0): Likewise.
9917         (*cmp_ite1): Likewise.
9918         (*cmp_and): Likewise.
9919         (*cmp_ior): Likewise.
9920         (*ior_scc_scc): Likewise.
9921         (*ior_scc_scc_cmp): Likewise.
9922         (*and_scc_scc): Likewise.
9923         (*and_scc_scc_cmp): Likewise.
9924         (*and_scc_scc_nod): Likewise.
9925         (*negscc): Likewise.
9926         (movcond_addsi): Likewise.
9927         (movcond): Likewise.
9928         (*ifcompare_plus_move): Likewise.
9929         (*if_plus_move): Likewise.
9930         (*ifcompare_move_plus): Likewise.
9931         (*if_move_plus): Likewise.
9932         (*ifcompare_arith_arith): Likewise.
9933         (*if_arith_arith): Likewise.
9934         (*ifcompare_arith_move): Likewise.
9935         (*if_arith_move): Likewise.
9936         (*ifcompare_move_arith): Likewise.
9937         (*if_move_arith): Likewise.
9938         (*ifcompare_move_not): Likewise.
9939         (*if_move_not): Likewise.
9940         (*ifcompare_not_move): Likewise.
9941         (*if_not_move): Likewise.
9942         (*ifcompare_shift_move): Likewise.
9943         (*if_shift_move): Likewise.
9944         (*ifcompare_move_shift): Likewise.
9945         (*if_move_shift): Likewise.
9946         (*ifcompare_shift_shift): Likewise.
9947         (*ifcompare_not_arith): Likewise.
9948         (*ifcompare_arith_not): Likewise.
9949         (*if_arith_not): Likewise.
9950         (*ifcompare_neg_move): Likewise.
9951         (*if_neg_move): Likewise.
9952         (*ifcompare_move_neg): Likewise.
9953         (*if_move_neg): Likewise.
9954         (prologue_thumb1_interwork): Likewise.
9955         (*cond_move_not): Likewise.
9956         (*sign_extract_onebit): Likewise.
9957         (*not_signextract_onebit): Likewise.
9958         (stack_tie): Likewise.
9959         (align_4): Likewise.
9960         (align_8): Likewise.
9961         (consttable_end): Likewise.
9962         (consttable_1): Likewise.
9963         (consttable_2): Likewise.
9964         (consttable_4): Likewise.
9965         (consttable_8): Likewise.
9966         (consttable_16): Likewise.
9967         (*thumb1_tablejump): Likewise.
9968         (prefetch): Likewise.
9969         (force_register_use): Likewise.
9970         (thumb_eh_return): Likewise.
9971         (load_tp_hard): Likewise.
9972         (load_tp_soft): Likewise.
9973         (tlscall): Likewise.
9974         (*arm_movtas_ze): Likewise.
9975         (*arm_rev): Likewise.
9976         (*arm_revsh): Likewise.
9977         (*arm_rev16): Likewise.
9978         * config/arm/thumb2.md
9979         (*thumb2_smaxsi3): Likewise.
9980         (*thumb2_sminsi3): Likewise.
9981         (*thumb32_umaxsi3): Likewise.
9982         (*thumb2_uminsi3): Likewise.
9983         (*thumb2_negdi2): Likewise.
9984         (*thumb2_abssi2): Likewise.
9985         (*thumb2_neg_abss): Likewise.
9986         (*thumb2_movsi_insn): Likewise.
9987         (tls_load_dot_plus_four): Likewise.
9988         (*thumb2_movhi_insn): Likewise.
9989         (*thumb2_mov_scc): Likewise.
9990         (*thumb2_mov_negs): Likewise.
9991         (*thumb2_mov_negs): Likewise.
9992         (*thumb2_mov_nots): Likewise.
9993         (*thumb2_mov_nots): Likewise.
9994         (*thumb2_movsicc_): Likewise.
9995         (*thumb2_movsfcc_soft_insn): Likewise.
9996         (*thumb2_indirect_jump): Likewise.
9997         (*thumb2_and_scc): Likewise.
9998         (*thumb2_ior_scc): Likewise.
9999         (*thumb2_ior_scc_strict_it): Likewise.
10000         (*thumb2_cond_move): Likewise.
10001         (*thumb2_cond_arith): Likewise.
10002         (*thumb2_cond_ari): Likewise.
10003         (*thumb2_cond_sub): Likewise.
10004         (*thumb2_negscc): Likewise.
10005         (*thumb2_movcond): Likewise.
10006         (thumb2_casesi_internal): Likewise.
10007         (thumb2_casesi_internal_pic): Likewise.
10008         (*thumb2_alusi3_short): Likewise.
10009         (*thumb2_mov<mode>_shortim): Likewise.
10010         (*thumb2_addsi_short): Likewise.
10011         (*thumb2_subsi_short): Likewise.
10012         (thumb2_addsi3_compare0): Likewise.
10013         (*thumb2_cbz): Likewise.
10014         (*thumb2_cbnz): Likewise.
10015         (*thumb2_one_cmplsi2_short): Likewise.
10016         (*thumb2_negsi2_short): Likewise.
10017         (*orsi_notsi_si): Likewise.
10018         * config/arm/arm1020e.md: Update with new attributes.
10019         * config/arm/arm1026ejs.md: Update with new attributes.
10020         * config/arm/arm1136jfs.md: Update with new attributes.
10021         * config/arm/arm926ejs.md: Update with new attributes.
10022         * config/arm/cortex-a15.md: Update with new attributes.
10023         * config/arm/cortex-a5.md: Update with new attributes.
10024         * config/arm/cortex-a53.md: Update with new attributes.
10025         * config/arm/cortex-a7.md: Update with new attributes.
10026         * config/arm/cortex-a8.md: Update with new attributes.
10027         * config/arm/cortex-a9.md: Update with new attributes.
10028         * config/arm/cortex-m4.md: Update with new attributes.
10029         * config/arm/cortex-r4.md: Update with new attributes.
10030         * config/arm/fa526.md: Update with new attributes.
10031         * config/arm/fa606te.md: Update with new attributes.
10032         * config/arm/fa626te.md: Update with new attributes.
10033         * config/arm/fa726te.md: Update with new attributes.
10035 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
10037         * config/aarch64/aarch64-simd.md
10038         (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
10039         <vwx> iterator to ensure correct register choice.
10040         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
10041         (aarch64_sqdmull_n<mode>): Likewise.
10042         (aarch64_sqdmull2_n<mode>_internal): Likewise.
10043         * config/aarch64/arm_neon.h
10044         (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
10045         (vml<as><q>_n_<su>16): Likewise.
10046         (vml<as>l_high_lane<q>_<su>16): Likewise.
10047         (vml<as>l_high_n_<su>16): Likewise.
10048         (vml<as>l_lane<q>_<su>16): Likewise.
10049         (vml<as>l_n_<su>16): Likewise.
10050         (vmul<q>_lane<q>_<su>16): Likewise.
10051         (vmul<q>_n_<su>16): Likewise.
10052         (vmull_lane<q>_<su>16): Likewise.
10053         (vmull_n_<su>16): Likewise.
10054         (vmull_high_lane<q>_<su>16): Likewise.
10055         (vmull_high_n_<su>16): Likewise.
10056         (vqrdmulh<q>_n_s16): Likewise.
10058 2013-09-06  Tejas Belagod  <tejas.belagod@arm.com>
10060         * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
10061         have the correct lane parameter.
10063 2013-09-06  Richard Biener <rguenther@suse.de>
10065         * cfganal.c (control_dependences::~control_dependences):
10066         Properly free all of the vector.
10068 2013-09-06  Kirill Yukhin  <kirill.yukhin@intel.com>
10070         PR target/58269
10071         * config/i386/i386.c (ix86_conditional_register_usage):
10072         Proper initialize extended SSE registers.
10074 2013-09-06  Jan Hubicka  <jh@suse.cz>
10076         PR tree-optimization/58311
10077         * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
10079 2013-09-06  Jan Hubicka  <jh@suse.cz>
10081         * Makefile.in (tree-sra.o): Update dependencies.
10082         * tree-sra.c: Include ipa-utils.h
10083         (scan_function): Use recursive_call_p.
10084         (has_caller_p): New function.
10085         (cgraph_for_node_and_aliases): Count also callers of aliases.
10087 2013-09-06  Jan Hubicka  <jh@suse.cz>
10089         PR middle-end/58094
10090         * cgraph.h (symtab_semantically_equivalent_p): Declare.
10091         * tree-tailcall.c: Include ipa-utils.h.
10092         (find_tail_calls): Use it.
10093         * ipa-pure-const.c (check_call): Likewise.
10094         * ipa-utils.c (recursive_call_p): New function.
10095         * ipa-utils.h (recursive_call_p): Dclare.
10096         * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
10097         (symtab_semantically_equivalent_p): New function.
10098         * Makefile.in (tree-tailcall.o): Update dependencies.
10100 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
10102         * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
10103         non-inlinable part.
10105 2013-09-06  Richard Biener  <rguenther@suse.de>
10107         * lto-streamer.h (lto_global_var_decls): Remove.
10108         * Makefile.in (OBJS): Remove lto-symtab.o.
10109         (lto-symtab.o): Remove.
10110         (GTFILES): Remove lto-symtab.c
10111         * lto-symtab.c: Move to lto/
10113 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10115         * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
10116         (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
10117         (UNSPEC_FPINT_RINT): New constant definitions.
10118         (FPINT, fpint_name, fpint_roundingmode): New integer iterator
10119         definition with 2 attributes.
10120         ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
10121         ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
10122         definitions.
10124 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10126         * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
10127         ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
10128         Set the mnemonic attribute to "bcr_flush".  Set the "z196prop"
10129         attribute to "z196_alone".
10130         * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
10131         "zEC12_simple".
10133 2013-09-06  Richard Biener  <rguenther@suse.de>
10135         * basic-block.h (class control_dependences): New.
10136         * tree-ssa-dce.c (control_dependence_map): Remove.
10137         (cd): New global.
10138         (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
10139         (set_control_dependence_map_bit, clear_control_dependence_bitmap,
10140         find_pdom, find_control_dependence, find_all_control_dependences):
10141         Move to cfganal.c.
10142         (mark_control_dependent_edges_necessary,
10143         find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
10144         tree_dce_done, perform_tree_ssa_dce): Adjust.
10145         * cfganal.c (set_control_dependence_map_bit,
10146         clear_control_dependence_bitmap, find_pdom, find_control_dependence,
10147         find_all_control_dependences): Move from tree-ssa-dce.c and
10148         implement as methods of control_dependences class.
10149         (control_dependences::control_dependences): New.
10150         (control_dependences::~control_dependences): Likewise.
10151         (control_dependences::get_edges_dependent_on): Likewise.
10152         (control_dependences::get_edge): Likewise.
10154 2013-09-04  Jan Hubicka  <jh@suse.cz>
10156         * tree.c (types_same_for_odr): Drop overactive check.
10157         * ipa-devirt.c (hash_type_name): Likewise.
10159 2013-09-04  Jan Hubicka  <jh@suse.cz>
10161         * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
10162         (analyze_functions): ... here.
10164 2013-09-04  Jan Hubicka  <jh@suse.cz>
10166         PR middle-end/58201
10167         * cgraphunit.c (analyze_functions): Clear AUX fields
10168         after processing; initialize assembler name has.
10170 2013-09-05  Jeff Law  <law@redhat.com>
10172         * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
10173         from thread_around_empty_block.  Record threading path into PATH.
10174         Recurse if threading through the initial block is successful.
10175         (thread_across_edge): Corresponding changes to slightly simplify.
10177 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
10179         * config/aarch64/aarch64.md
10180         (type): Remove frecpe, frecps, frecpx.
10181         (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
10182         fix to be a TARGET_SIMD instruction.
10183         (aarch64_frecps): Remove.
10184         * config/aarch64/aarch64-simd.md
10185         (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
10186         (aarch64_frecps<mode>): Handle all float/vector of float modes.
10188 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
10189             Sofiane Naci  <sofiane.naci@arm.com>
10191         * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
10192         into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
10193         Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
10194         "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
10195         "logic_reg", "logics_reg", "rev".  Expand "arlo_shift" into
10196         "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
10197         "logics_shift_imm".  Expand "arlo_shift_reg" into "alu_shift_reg",
10198         "alus_shift_reg", "logic_shift_reg", "logics_shift_reg".  Expand "clz"
10199         into "clz, "rbit".  Rename "shift" to "shift_imm".
10200         * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
10201         changes.  Update for attribute changes all occurrences of arlo_* and
10202         shift* types.
10203         * config/arm/arm-fixed.md: Update for attribute changes
10204         all occurrences of arlo_* types.
10205         * config/arm/thumb2.md: Update for attribute changes all occurrences
10206         of arlo_* types.
10207         * config/arm/arm.c (xscale_sched_adjust_cost):  (rtx insn, rtx
10208         (cortexa7_older_only): Likewise.
10209         (cortexa7_younger):  Likewise.
10210         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
10211         (1020alu_shift_op): Likewise.
10212         (1020alu_shift_reg_op): Likewise.
10213         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
10214         (alu_shift_op): Likewise.
10215         (alu_shift_reg_op): Likewise.
10216         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
10217         (11_alu_shift_op): Likewise.
10218         (11_alu_shift_reg_op): Likewise.
10219         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
10220         (9_alu_shift_reg_op): Likewise.
10221         * config/arm/cortex-a15.md (cortex_a15_alu): Update for
10222         attribute changes.
10223         (cortex_a15_alu_shift): Likewise.
10224         (cortex_a15_alu_shift_reg): Likewise.
10225         * config/arm/cortex-a5.md (cortex_a5_alu): Update for
10226         attribute changes.
10227         (cortex_a5_alu_shift): Likewise.
10228         * config/arm/cortex-a53.md (cortex_a53_alu): Update for
10229         attribute changes.
10230         (cortex_a53_alu_shift): Likewise.
10231         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
10232         attribute changes.
10233         (cortex_a7_alu_reg): Likewise.
10234         (cortex_a7_alu_shift): Likewise.
10235         * config/arm/cortex-a8.md (cortex_a8_alu): Update for
10236         attribute changes.
10237         (cortex_a8_alu_shift): Likewise.
10238         (cortex_a8_alu_shift_reg): Likewise.
10239         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
10240         (cortex_a9_dp_shift): Likewise.
10241         * config/arm/cortex-m4.md (cortex_m4_alu): Update for
10242         attribute changes.
10243         * config/arm/cortex-r4.md
10244         (cortex_r4_alu): Update for attribute changes.
10245         (cortex_r4_mov): Likewise.
10246         (cortex_r4_alu_shift_reg): Likewise.
10247         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
10248         (526_alu_shift_op): Likewise.
10249         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
10250         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
10251         (626te_alu_shift_op): Likewise.
10252         * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
10253         (726te_alu_shift_op): Likewise.
10254         (726te_alu_shift_reg_op): Likewise.
10255         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
10256         (mp626_alu_shift_op): Likewise.
10257         * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
10258         (pj4_alu_conds): Likewise.
10259         (pj4_shift): Likewise.
10260         (pj4_shift_conds): Likewise.
10261         (pj4_alu_shift): Likewise.
10262         (pj4_alu_shift_conds): Likewise.
10263         * config/aarch64/aarch64.md: Update for attribute change
10264         all occurrences of arlo_* and shift* types.
10266 2013-09-05  Mike Stump  <mikestump@comcast.net>
10268         * tree.h: Move documentation for tree_function_decl to tree-core.h
10269         with the declaration.
10271 2013-09-05  Peter Bergner  <bergner@vnet.ibm.com>
10273         PR target/58139
10274         * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
10275         looking for widest mode.
10277 2013-09-05  Eric Botcazou  <ebotcazou@adacore.com>
10279         * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
10281 2013-09-05  Richard Biener  <rguenther@suse.de>
10283         PR tree-optimization/58137
10284         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
10285         Do not create vectors of pointers.
10286         * tree-vect-loop.c (get_initial_def_for_induction): Use proper
10287         types for the components of the vector initializer.
10288         * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
10289         allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
10291 2013-09-05  Martin Jambor  <mjambor@suse.cz>
10293         * ipa-prop.c (remove_described_reference): Accept missing references,
10294         return false if that hppens, otherwise return true.
10295         (cgraph_node_for_jfunc): New function.
10296         (try_decrement_rdesc_refcount): Likewise.
10297         (try_make_edge_direct_simple_call): Use them.
10298         (ipa_edge_removal_hook): Remove references from rdescs.
10299         (ipa_edge_duplication_hook): Clone rdescs and their references
10300         when the new edge has the same caller as the old one.
10301         * cgraph.c (cgraph_resolve_speculation): Remove speculative
10302         reference before removing any edges.
10304 2013-09-05  Richard Earnshaw  <rearnsha@arm.com>
10306         * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
10307         initial store.
10308         * thumb2.md (thumb2_storewb_parisi): New pattern.
10310 2013-09-05  Yufeng Zhang  <yufeng.zhang@arm.com>
10312         * config/aarch64/aarch64-option-extensions.def: Add
10313         AARCH64_OPT_EXTENSION of 'crc'.
10314         * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
10315         (AARCH64_ISA_CRC): Ditto.
10316         * doc/invoke.texi (-march and -mcpu feature modifiers): Add
10317         description of the CRC extension.
10319 2013-09-05  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10321         * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
10322         * config/rs6000/linux.h: Ditto.
10323         * alpha/linux.h: Ditto.
10324         * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
10325         no_c99_libc_has_function.
10326         * config/c6x/uclinux-elf.h: Ditto.
10327         * config/lm32/uclinux-elf.h: Ditto.
10328         * config/m68k/uclinux.h: Ditto.
10329         * config/moxie/uclinux.h: Ditto.
10330         * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
10331         (crisv32-*-linux*, cris-*-linux*): Ditto.
10332         * config/bfin/bfin.c: Include "tm_p.h".
10334 2013-09-05  Richard Biener  <rguenther@suse.de>
10336         * tree-vect-loop.c (vect_analyze_loop_operations): Properly
10337         check for a definition without a basic-block.
10339 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
10340             Sofiane Naci <sofiane.naci@arm.com>
10342         * config/aarch64/aarch64.md
10343         (*movti_aarch64): Rename r_2_f and f_2_r.
10344         (*movsf_aarch64): Likewise.
10345         (*movdf_aarch64): Likewise.
10346         (*movtf_aarch64): Likewise.
10347         (aarch64_movdi_<mode>low): Likewise.
10348         (aarch64_movdi_<mode>high): Likewise.
10349         (aarch64_mov<mode>high_di): Likewise.
10350         (aarch64_mov<mode>low_di): Likewise.
10351         (aarch64_movtilow_tilow): Likewise.
10352         * config/arm/arm.md (attribute "neon_type"): Delete.  Move attribute
10353         values to config/arm/types.md
10354         (attribute "conds"): Update for attribute change.
10355         (anddi3_insn): Likewise.
10356         (iordi3_insn): Likewise.
10357         (xordi3_insn): Likewise.
10358         (one_cmpldi2): Likewise.
10359         * config/arm/types.md (type): Add Neon types.
10360         * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
10361         use "type" attribute.
10362         (movmisalign<mode>_neon_store): Likewise.
10363         (movmisalign<mode>_neon_load): Likewise.
10364         (vec_set<mode>_internal): Likewise.
10365         (vec_setv2di_internal): Likewise.
10366         (vec_extract<mode>): Likewise.
10367         (vec_extractv2di): Likewise.
10368         (add<mode>3_neon): Likewise.
10369         (adddi3_neon): Likewise.
10370         (sub<mode>3_neon): Likewise.
10371         (subdi3_neon): Likewise.
10372         (mul<mode>3_neon): Likewise.
10373         (mul<mode>3add<mode>_neon): Likewise.
10374         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
10375         (fma<VCVTF:mode>4)): Likewise.
10376         (fma<VCVTF:mode>4_intrinsic): Likewise.
10377         (fmsub<VCVTF:mode>4)): Likewise.
10378         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
10379         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
10380         (ior<mode>3): Likewise.
10381         (and<mode>3): Likewise.
10382         (anddi3_neon): Likewise.
10383         (orn<mode>3_neon): Likewise.
10384         (orndi3_neon): Likewise.
10385         (bic<mode>3_neon): Likewise.
10386         (bicdi3_neon): Likewise.
10387         (xor<mode>3): Likewise.
10388         (one_cmpl<mode>2): Likewise.
10389         (abs<mode>2): Likewise.
10390         (neg<mode>2): Likewise.
10391         (umin<mode>3_neon): Likewise.
10392         (umax<mode>3_neon): Likewise.
10393         (smin<mode>3_neon): Likewise.
10394         (smax<mode>3_neon): Likewise.
10395         (vashl<mode>3): Likewise.
10396         (vashr<mode>3_imm): Likewise.
10397         (vlshr<mode>3_imm): Likewise.
10398         (ashl<mode>3_signed): Likewise.
10399         (ashl<mode>3_unsigned): Likewise.
10400         (neon_load_count): Likewise.
10401         (ashldi3_neon_noclobber): Likewise.
10402         (signed_shift_di3_neon): Likewise.
10403         (unsigned_shift_di3_neon): Likewise.
10404         (ashrdi3_neon_imm_noclobber): Likewise.
10405         (lshrdi3_neon_imm_noclobber): Likewise.
10406         (widen_ssum<mode>3): Likewise.
10407         (widen_usum<mode>3): Likewise.
10408         (quad_halves_<code>v4si): Likewise.
10409         (quad_halves_<code>v4sf): Likewise.
10410         (quad_halves_<code>v8hi): Likewise.
10411         (quad_halves_<code>v16qi): Likewise.
10412         (reduc_splus_v2di): Likewise.
10413         (neon_vpadd_internal<mode>): Likewise.
10414         (neon_vpsmin<mode>): Likewise.
10415         (neon_vpsmax<mode>): Likewise.
10416         (neon_vpumin<mode>): Likewise.
10417         (neon_vpumax<mode>): Likewise.
10418         (ss_add<mode>_neon): Likewise.
10419         (us_add<mode>_neon): Likewise.
10420         (ss_sub<mode>_neon): Likewise.
10421         (us_sub<mode>_neon): Likewise.
10422         (neon_vadd<mode>_unspec): Likewise.
10423         (neon_vaddl<mode>): Likewise.
10424         (neon_vaddw<mode>): Likewise.
10425         (neon_vhadd<mode>): Likewise.
10426         (neon_vqadd<mode>): Likewise.
10427         (neon_vaddhn<mode>): Likewise.
10428         (neon_vmul<mode>): Likewise.
10429         (neon_vmla<mode>): Likewise.
10430         (neon_vmlal<mode>): Likewise.
10431         (neon_vmls<mode>): Likewise.
10432         (neon_vmlsl<mode>): Likewise.
10433         (neon_vqdmulh<mode>): Likewise.
10434         (neon_vqdmlal<mode>): Likewise.
10435         (neon_vqdmlsl<mode>): Likewise.
10436         (neon_vmull<mode>): Likewise.
10437         (neon_vqdmull<mode>): Likewise.
10438         (neon_vsub<mode>_unspec): Likewise.
10439         (neon_vsubl<mode>): Likewise.
10440         (neon_vsubw<mode>): Likewise.
10441         (neon_vqsub<mode>): Likewise.
10442         (neon_vhsub<mode>): Likewise.
10443         (neon_vsubhn<mode>): Likewise.
10444         (neon_vceq<mode>): Likewise.
10445         (neon_vcge<mode>): Likewise.
10446         (neon_vcgeu<mode>): Likewise.
10447         (neon_vcgt<mode>): Likewise.
10448         (neon_vcgtu<mode>): Likewise.
10449         (neon_vcle<mode>): Likewise.
10450         (neon_vclt<mode>): Likewise.
10451         (neon_vcage<mode>): Likewise.
10452         (neon_vcagt<mode>): Likewise.
10453         (neon_vtst<mode>): Likewise.
10454         (neon_vabd<mode>): Likewise.
10455         (neon_vabdl<mode>): Likewise.
10456         (neon_vaba<mode>): Likewise.
10457         (neon_vabal<mode>): Likewise.
10458         (neon_vmax<mode>): Likewise.
10459         (neon_vmin<mode>): Likewise.
10460         (neon_vpaddl<mode>): Likewise.
10461         (neon_vpadal<mode>): Likewise.
10462         (neon_vpmax<mode>): Likewise.
10463         (neon_vpmin<mode>): Likewise.
10464         (neon_vrecps<mode>): Likewise.
10465         (neon_vrsqrts<mode>): Likewise.
10466         (neon_vqabs<mode>): Likewise.
10467         (neon_vqneg<mode>): Likewise.
10468         (neon_vcls<mode>): Likewise.
10469         (clz<mode>2): Likewise.
10470         (popcount<mode>2): Likewise.
10471         (neon_vrecpe): Likewise.
10472         (neon_vrsqrte): Likewise.
10473         (neon_vget_lane<mode>_sext_internal): Likewise.
10474         (neon_vget_lane<mode>_zext_internal): Likewise.
10475         (neon_vdup_n<mode>): Likewise.
10476         (neon_vdup_nv2di): Likewise.
10477         (neon_vdpu_lane<mode>_internal): Likewise.
10478         (neon_vswp<mode>): Likewise.
10479         (float<mode><V_cvtto>2): Likewise.
10480         (floatuns<mode><V_cvtto>2): Likewise.
10481         (fix_trunc<mode><V_cvtto>)2): Likewise
10482         (fixuns_trunc<mode><V_cvtto)2): Likewise.
10483         (neon_vcvt<mode>): Likewise.
10484         (neon_vcvtv4sfv4hf): Likewise.
10485         (neon_vcvtv4hfv4sf): Likewise.
10486         (neon_vcvt_n<mode>): Likewise.
10487         (neon_vmovn<mode>): Likewise.
10488         (neon_vqmovn<mode>): Likewise.
10489         (neon_vqmovun<mode>): Likewise.
10490         (neon_vmovl<mode>): Likewise.
10491         (neon_vmul_lane<mode>): Likewise.
10492         (neon_vmull_lane<mode>): Likewise.
10493         (neon_vqdmull_lane<mode>): Likewise.
10494         (neon_vqdmulh_lane<mode>): Likewise.
10495         (neon_vmla_lane<mode>): Likewise.
10496         (neon_vmlal_lane<mode>): Likewise.
10497         (neon_vqdmlal_lane<mode>): Likewise.
10498         (neon_vmls_lane<mode>): Likewise.
10499         (neon_vmlsl_lane<mode>): Likewise.
10500         (neon_vqdmlsl_lane<mode>): Likewise.
10501         (neon_vext<mode>): Likewise.
10502         (neon_vrev64<mode>): Likewise.
10503         (neon_vrev32<mode>): Likewise.
10504         (neon_vrev16<mode>): Likewise.
10505         (neon_vbsl<mode>_internal): Likewise.
10506         (neon_vshl<mode>): Likewise.
10507         (neon_vqshl<mode>): Likewise.
10508         (neon_vshr_n<mode>): Likewise.
10509         (neon_vshrn_n<mode>): Likewise.
10510         (neon_vqshrn_n<mode>): Likewise.
10511         (neon_vqshrun_n<mode>): Likewise.
10512         (neon_vshl_n<mode>): Likewise.
10513         (neon_vqshl_n<mode>): Likewise.
10514         (neon_vqshlu_n<mode>): Likewise.
10515         (neon_vshll_n<mode>): Likewise.
10516         (neon_vsra_n<mode>): Likewise.
10517         (neon_vsri_n<mode>): Likewise.
10518         (neon_vsli_n<mode>): Likewise.
10519         (neon_vtbl1v8qi): Likewise.
10520         (neon_vtbl2v8qi): Likewise.
10521         (neon_vtbl3v8qi): Likewise.
10522         (neon_vtbl4v8qi): Likewise.
10523         (neon_vtbx1v8qi): Likewise.
10524         (neon_vtbx2v8qi): Likewise.
10525         (neon_vtbx3v8qi): Likewise.
10526         (neon_vtbx4v8qi): Likewise.
10527         (neon_vtrn<mode>_internal): Likewise.
10528         (neon_vzip<mode>_internal): Likewise.
10529         (neon_vuzp<mode>_internal): Likewise.
10530         (neon_vld1<mode>): Likewise.
10531         (neon_vld1_lane<mode>): Likewise.
10532         (neon_vld1_dup<mode>): Likewise.
10533         (neon_vld1_dupv2di): Likewise.
10534         (neon_vst1<mode>): Likewise.
10535         (neon_vst1_lane<mode>): Likewise.
10536         (neon_vld2<mode>): Likewise.
10537         (neon_vld2_lane<mode>): Likewise.
10538         (neon_vld2_dup<mode>): Likewise.
10539         (neon_vst2<mode>): Likewise.
10540         (neon_vst2_lane<mode>): Likewise.
10541         (neon_vld3<mode>): Likewise.
10542         (neon_vld3qa<mode>): Likewise.
10543         (neon_vld3qb<mode>): Likewise.
10544         (neon_vld3_lane<mode>): Likewise.
10545         (neon_vld3_dup<mode>): Likewise.
10546         (neon_vst3<mode>): Likewise.
10547         (neon_vst3qa<mode>): Likewise.
10548         (neon_vst3qb<mode>): Likewise.
10549         (neon_vst3_lane<mode>): Likewise.
10550         (neon_vld4<mode>): Likewise.
10551         (neon_vld4qa<mode>): Likewise.
10552         (neon_vld4qb<mode>): Likewise.
10553         (neon_vld4_lane<mode>): Likewise.
10554         (neon_vld4_dup<mode>): Likewise.
10555         (neon_vst4<mode>): Likewise.
10556         (neon_vst4qa<mode>): Likewise.
10557         (neon_vst4qb<mode>): Likewise.
10558         (neon_vst4_lane<mode>): Likewise.
10559         (neon_vec_unpack<US>_lo_<mode>): Likewise.
10560         (neon_vec_unpack<US>_hi_<mode>): Likewise.
10561         (neon_vec_<US>mult_lo_<mode>): Likewise.
10562         (neon_vec_<US>mult_hi_<mode>): Likewise.
10563         (neon_vec_<US>shiftl_<mode>): Likewise.
10564         (neon_unpack<US>_<mode>): Likewise.
10565         (neon_vec_<US>mult_<mode>): Likewise.
10566         (vec_pack_trunc_<mode>): Likewise.
10567         (neon_vec_pack_trunk_<mode>): Likewise.
10568         (neon_vabd<mode>_2): Likewise.
10569         (neon_vabd<mode>_3): Likewise.
10570         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
10571         (thumb2_movsi_vfp): Likewise.
10572         (movdi_vfp): Likewise.
10573         (movdi_vfp_cortexa8): Likewise.
10574         (movhf_vfp_neon): Likewise.
10575         (movhf_vfp): Likewiwse.
10576         (movsf_vfp): Likewiwse.
10577         (thumb2_movsf_vfp): Likewiwse.
10578         (movdf_vfp): Likewise.
10579         (thumb2_movdf_vfp): Likewise.
10580         (movsfcc_vfp): Likewise.
10581         (thumb2_movsfcc_vfp): Likewise.
10582         (movdfcc_vfp): Likewise.
10583         (thumb2_movdfcc_vfp): Likewise.
10584         * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
10585         * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
10586         (v10_v2c): Likewise.
10587         * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
10588         attribute change.
10589         (cortex_a15_neon_int_2): Likewise.
10590         (cortex_a15_neon_int_3): Likewise.
10591         (cortex_a15_neon_int_4): Likewise.
10592         (cortex_a15_neon_int_5): Likewise.
10593         (cortex_a15_neon_vqneg_vqabs): Likewise.
10594         (cortex_a15_neon_vmov): Likewise.
10595         (cortex_a15_neon_vaba): Likewise.
10596         (cortex_a15_neon_vaba_qqq): Likewise.
10597         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10598         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10599         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
10600         scalar_64_32_long_scalar): Likewise.
10601         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10602         (cortex_a15_neon_mla_qqq_8_16): Likewise.
10603         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
10604         lotype_qdd_64_32_long): Likewise.
10605         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10606         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10607         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
10608         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10609         (cortex_a15_neon_shift_1): Likewise.
10610         (cortex_a15_neon_shift_2): Likewise.
10611         (cortex_a15_neon_shift_3): Likewise.
10612         (cortex_a15_neon_vshl_ddd): Likewise.
10613         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10614         (cortex_a15_neon_vsra_vrsra): Likewise.
10615         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
10616         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
10617         (cortex_a15_neon_fp_vmul_ddd): Likewise.
10618         (cortex_a15_neon_fp_vmul_qqd): Likewise.
10619         (cortex_a15_neon_fp_vmla_ddd): Likewise.
10620         (cortex_a15_neon_fp_vmla_qqq): Likewise.
10621         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
10622         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
10623         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10624         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10625         (cortex_a15_neon_bp_simple): Likewise.
10626         (cortex_a15_neon_bp_2cycle): Likewise.
10627         (cortex_a15_neon_bp_3cycle): Likewise.
10628         (cortex_a15_neon_vld1_1_2_regs): Likewise.
10629         (cortex_a15_neon_vld1_3_4_regs): Likewise.
10630         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10631         (cortex_a15_neon_vld2_4_regs): Likewise.
10632         (cortex_a15_neon_vld3_vld4): Likewise.
10633         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10634         (cortex_a15_neon_vst1_3_4_regs): Likewise.
10635         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
10636         (cortex_a15_neon_vst3_vst4): Likewise.
10637         (cortex_a15_neon_vld1_vld2_lane): Likewise.
10638         (cortex_a15_neon_vld3_vld4_lane" 10
10639         (cortex_a15_neon_vst1_vst2_lane): Likewise.
10640         (cortex_a15_neon_vst3_vst4_lane): Likewise.
10641         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
10642         (cortex_a15_neon_ldm_2): Likewise.0
10643         (cortex_a15_neon_stm_2): Likewise.
10644         (cortex_a15_neon_mcr): Likewise.
10645         (cortex_a15_neon_mcr_2_mcrr): Likewise.
10646         (cortex_a15_neon_mrc): Likewise.
10647         (cortex_a15_neon_mrrc): Likewise.
10648         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
10649         change.
10650         (cortex_a15_alu_shift): Likewise.
10651         (cortex_a15_alu_shift_reg): Likewise.
10652         (cortex_a15_mult32): Likewise.
10653         (cortex_a15_mult64): Likewise.
10654         (cortex_a15_block): Likewise.
10655         (cortex_a15_branch): Likewise.
10656         (cortex_a15_load1): Likewise.
10657         (cortex_a15_load3): Likewise.
10658         (cortex_a15_store1): Likewise.
10659         (cortex_a15_store3): Likewise.
10660         (cortex_a15_call): Likewise.
10661         * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
10662         (cortex_a5_f2r): Likewise.
10663         * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
10664         change.
10665         (cortex_a53_f2r): Likewise.
10666         * config/arm/cortex-a7.md
10667         (cortex_a7_branch): Update for attribute change.
10668         (cortex_a7_call): Likewise.
10669         (cortex_a7_alu_imm): Likewise.
10670         (cortex_a7_alu_reg): Likewise.
10671         (cortex_a7_alu_shift): Likewise.
10672         (cortex_a7_mul): Likewise.
10673         (cortex_a7_load1): Likewise.
10674         (cortex_a7_store1): Likewise.
10675         (cortex_a7_load2): Likewise.
10676         (cortex_a7_store2): Likewise.
10677         (cortex_a7_load3): Likewise.
10678         (cortex_a7_store3): Likewise.
10679         (cortex_a7_load4): Likewise.
10680         (cortex_a7_store4): Likewise.
10681         (cortex_a7_fpalu): Likewise.
10682         (cortex_a7_fconst): Likewise.
10683         (cortex_a7_fpmuls): Likewise.
10684         (cortex_a7_neon_mul): Likewise.
10685         (cortex_a7_fpmacs): Likewise.
10686         (cortex_a7_neon_mla: Likewise.
10687         (cortex_a7_fpmuld: Likewise.
10688         (cortex_a7_fpmacd: Likewise.
10689         (cortex_a7_fpfmad: Likewise.
10690         (cortex_a7_fdivs: Likewise.
10691         (cortex_a7_fdivd: Likewise.
10692         (cortex_a7_r2f: Likewise.
10693         (cortex_a7_f2r: Likewise.
10694         (cortex_a7_f_flags: Likewise.
10695         (cortex_a7_f_loads: Likewise.
10696         (cortex_a7_f_loadd: Likewise.
10697         (cortex_a7_f_stores: Likewise.
10698         (cortex_a7_f_stored: Likewise.
10699         (cortex_a7_neon): Likewise.
10700         * config/arm/cortex-a8-neon.md
10701         (cortex_a8_neon_mrc): Update for attribute change.
10702         (cortex_a8_neon_mrrc): Likewise.
10703         (cortex_a8_neon_int_1): Likewise.
10704         (cortex_a8_neon_int_2): Likewise.
10705         (cortex_a8_neon_int_3): Likewise.
10706         (cortex_a8_neon_int_4): Likewise.
10707         (cortex_a8_neon_int_5): Likewise.
10708         (cortex_a8_neon_vqneg_vqabs): Likewise.
10709         (cortex_a8_neon_vmov): Likewise.
10710         (cortex_a8_neon_vaba): Likewise.
10711         (cortex_a8_neon_vaba_qqq): Likewise.
10712         (cortex_a8_neon_vsma): Likewise.
10713         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10714         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10715         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
10716         long_scalar): Likewise.
10717         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10718         (cortex_a8_neon_mla_qqq_8_16): Likewise.
10719         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
10720         long_scalar_qdd_64_32_long): Likewise.
10721         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10722         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10723         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
10724         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10725         (cortex_a8_neon_shift_1): Likewise.
10726         (cortex_a8_neon_shift_2): Likewise.
10727         (cortex_a8_neon_shift_3): Likewise.
10728         (cortex_a8_neon_vshl_ddd): Likewise.
10729         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10730         (cortex_a8_neon_vsra_vrsra): Likewise.
10731         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
10732         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
10733         (cortex_a8_neon_fp_vsum): Likewise.
10734         (cortex_a8_neon_fp_vmul_ddd): Likewise.
10735         (cortex_a8_neon_fp_vmul_qqd): Likewise.
10736         (cortex_a8_neon_fp_vmla_ddd): Likewise.
10737         (cortex_a8_neon_fp_vmla_qqq): Likewise.
10738         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
10739         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
10740         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10741         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10742         (cortex_a8_neon_bp_simple): Likewise.
10743         (cortex_a8_neon_bp_2cycle): Likewise.
10744         (cortex_a8_neon_bp_3cycle): Likewise.
10745         (cortex_a8_neon_ldr): Likewise.
10746         (cortex_a8_neon_str): Likewise.
10747         (cortex_a8_neon_vld1_1_2_regs): Likewise.
10748         (cortex_a8_neon_vld1_3_4_regs): Likewise.
10749         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10750         (cortex_a8_neon_vld2_4_regs): Likewise.
10751         (cortex_a8_neon_vld3_vld4): Likewise.
10752         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10753         (cortex_a8_neon_vst1_3_4_regs): Likewise.
10754         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
10755         (cortex_a8_neon_vst3_vst4): Likewise.
10756         (cortex_a8_neon_vld1_vld2_lane): Likewise.
10757         (cortex_a8_neon_vld3_vld4_lane): Likewise.
10758         (cortex_a8_neon_vst1_vst2_lane): Likewise.
10759         (cortex_a8_neon_vst3_vst4_lane): Likewise.
10760         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
10761         (cortex_a8_neon_mcr): Likewise.
10762         (cortex_a8_neon_mcr_2_mcrr): Likewise.
10763         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
10764         * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
10765         change.
10766         (ca9_neon_mrrc): Likewise.
10767         (cortex_a9_neon_int_1): Likewise.
10768         (cortex_a9_neon_int_2): Likewise.
10769         (cortex_a9_neon_int_3): Likewise.
10770         (cortex_a9_neon_int_4): Likewise.
10771         (cortex_a9_neon_int_5): Likewise.
10772         (cortex_a9_neon_vqneg_vqabs): Likewise.
10773         (cortex_a9_neon_vmov): Likewise.
10774         (cortex_a9_neon_vaba): Likewise.
10775         (cortex_a9_neon_vaba_qqq): Likewise.
10776         (cortex_a9_neon_vsma): Likewise.
10777         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10778         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10779         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
10780         long_scalar): Likewise.
10781         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10782         (cortex_a9_neon_mla_qqq_8_16): Likewise.
10783         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
10784         long_scalar_qdd_64_32_long): Likewise.
10785         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10786         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10787         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
10788         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10789         (cortex_a9_neon_shift_1): Likewise.
10790         (cortex_a9_neon_shift_2): Likewise.
10791         (cortex_a9_neon_shift_3): Likewise.
10792         (cortex_a9_neon_vshl_ddd): Likewise.
10793         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10794         (cortex_a9_neon_vsra_vrsra): Likewise.
10795         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
10796         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
10797         (cortex_a9_neon_fp_vsum): Likewise.
10798         (cortex_a9_neon_fp_vmul_ddd): Likewise.
10799         (cortex_a9_neon_fp_vmul_qqd): Likewise.
10800         (cortex_a9_neon_fp_vmla_ddd): Likewise.
10801         (cortex_a9_neon_fp_vmla_qqq): Likewise.
10802         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
10803         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
10804         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10805         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10806         (cortex_a9_neon_bp_simple): Likewise.
10807         (cortex_a9_neon_bp_2cycle): Likewise.
10808         (cortex_a9_neon_bp_3cycle): Likewise.
10809         (cortex_a9_neon_ldr): Likewise.
10810         (cortex_a9_neon_str): Likewise.
10811         (cortex_a9_neon_vld1_1_2_regs): Likewise.
10812         (cortex_a9_neon_vld1_3_4_regs): Likewise.
10813         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10814         (cortex_a9_neon_vld2_4_regs): Likewise.
10815         (cortex_a9_neon_vld3_vld4): Likewise.
10816         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10817         (cortex_a9_neon_vst1_3_4_regs): Likewise.
10818         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
10819         (cortex_a9_neon_vst3_vst4): Likewise.
10820         (cortex_a9_neon_vld1_vld2_lane): Likewise.
10821         (cortex_a9_neon_vld3_vld4_lane): Likewise.
10822         (cortex_a9_neon_vst1_vst2_lane): Likewise.
10823         (cortex_a9_neon_vst3_vst4_lane): Likewise.
10824         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
10825         (cortex_a9_neon_mcr): Likewise.
10826         (cortex_a9_neon_mcr_2_mcrr): Likewise.
10827         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
10828         (cortex_a9_fps): Likewise.
10829         * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
10830         change.
10831         (cortex_m4_fmuls): Likewise.
10832         * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
10833         change.
10834         (cortex_r4_mrc): Likewise.
10835         * config/arm/iterators.md: Update comment referring to neon_type.
10836         * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
10837         (iwmmxt_movsi_insn): Likewise.
10838         * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
10839         attribute change.
10840         (pj4_core_to_vfp): Likewise.
10841         * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
10842         attribute change.
10843         * config/arm/vfp11.md (vfp_fload): Update for attribute change.
10844         (vfp_fstore): Likewise.
10845         * doc/md.texi: Change references to neon_type to refer to type.
10847 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
10849         * tree.h (DECL_BUILT_IN): Fix typo in comment.
10851 2013-09-04  David Edelsohn  <dje.gcc@gmail.com>
10853         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
10854         lglobl if not weak.
10856 2013-09-04  Easwaran Raman  <eraman@google.com>
10858         PR middle-end/57370
10859         * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
10860         (build_and_add_sum): Use it.
10861         (appears_later_in_bb): Simplify code.
10863 2013-09-04  Teresa Johnson  <tejohnson@google.com>
10865         * dumpfile.c (dump_finish): Don't close stderr/stdout.
10867 2013-09-04  James Greenhalgh  <james.greenhalgh@arm.com>
10869         * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
10871 2013-09-04  Jan Hubicka  <jh@suse.cz>
10873         * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
10874         * ipa-devirt.c: Include diganostic.h
10875         (odr_type_d): Add types and types_set.
10876         (hash_type_name): Work for types with vtables during LTO.
10877         (odr_hasher::remove): Fix comment; destroy types_set.
10878         (add_type_duplicate): New function,
10879         (get_odr_type): Use it.
10880         (dump_type_inheritance_graph): Dump type duplicates.
10881         * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
10882         graph.
10883         * tree.c (types_same_for_odr): Give exact answers on types with
10884         virtual tables.
10886 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
10888         * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
10889         explaining their differences.
10891 2013-09-04  Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
10893         * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
10895 2013-09-03  Jeff Law  <law@redhat.com>
10897         * tree-ssa-threadedge.c (thread_across_edge): Record entire path
10898         when not threading through a joiner block.  Pass joiner/no joiner
10899         state to register_jump_thread.
10900         * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
10901         state from argument rather than implying on path length.
10902         Dump the entire jump thread path into debugging dump.
10903         * tree-flow.h (register_jump_thread): Update prototype.
10905 2013-08-29  Xinliang David Li  <davidxl@google.com>
10907         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
10908         Remove a trivial gcc_assert.
10910 2013-08-29  Xinliang David Li  <davidxl@google.com>
10912         * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
10913         * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
10914         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
10915         Delay base decl alignment adjustment.
10916         * tree-vectorizer.c (vect_destroy_datarefs): New function.
10917         * tree-vectorizer.h: New data structure.
10918         (set_dr_misalignment): New function.
10919         (dr_misalignment): Ditto.
10920         * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
10921         (vectorizable_load): Ditto.
10922         (ensure_base_align): New function.
10923         (vectorize_loops): Add dbg_cnt support.
10924         (execute_vect_slp): Ditto.
10925         * dbgcnt.def: New debug counter.
10926         * Makefile: New dependency.
10928 2013-09-03  Meador Inge  <meadori@codesourcery.com>
10930         Revert:
10932         2013-08-30  Meador Inge  <meadori@codesourcery.com>
10934         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
10936 2013-09-03  David Edelsohn  <dje.gcc@gmail.com>
10938         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
10939         function descriptor.
10941 2013-09-03  Richard Biener  <rguenther@suse.de>
10943         * tree-affine.c (add_elt_to_tree): Fix association issue,
10944         avoid useless converts and make sure to always return a
10945         properly typed result.
10947 2013-09-03  Richard Biener  <rguenther@suse.de>
10949         PR middle-end/57656
10950         * fold-const.c (negate_expr_p): Fix division case.
10951         (negate_expr): Likewise.
10953 2013-09-03  Richard Biener  <rguenther@suse.de>
10955         PR lto/58285
10956         * tree-streamer-out.c: Include tm.h.
10957         * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
10959 2013-09-03  Jan Hubicka  <jh@suse.cz>
10961         * tree-profile.c (tree_profiling): Cleanup CFG when done.
10963 2013-09-03  Alan Modra  <amodra@gmail.com>
10965         * config.gcc (powerpc*-*-linux*): Add support for little-endian
10966         multilibs to big-endian target and vice versa.
10967         * config/rs6000/t-linux64: Use := assignment on all vars.
10968         (MULTILIB_EXTRA_OPTS): Remove fPIC.
10969         (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
10970         * config/rs6000/t-linux64le: New file.
10971         * config/rs6000/t-linux64bele: New file.
10972         * config/rs6000/t-linux64lebe: New file.
10974 2013-09-02  Jan Hubicka  <jh@suse.cz>
10976         * ipa-inline-transform.c (inline_transform): Do not
10977         optimize_inline_calls when not optimizing.
10979 2013-09-02  Jan Hubicka  <jh@suse.cz>
10981         * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
10982         duplicated nodes for assembler names.
10983         * symtab.c (symtab_unregister_node): Do not attempt to unlink
10984         hard registers from assembler name hash.
10986 2013-09-02  Jan Hubicka  <jh@suse.cz>
10988         * ipa-split.c (execute_split_functions): Split externally visible
10989         functions called once.
10991 2013-09-02  Martin Jambor  <mjambor@suse.cz>
10993         PR ipa/58106
10994         * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
10995         linked list.  When finding the correct duplicate, also consider also
10996         the caller in additon to its inlined_to node.
10998 2013-09-02  James Greenhalgh  <james.greenhalgh@arm.com>
11000         * config/aarch64/aarch64-simd-builtins.def
11001         (dup_lane_scalar): Remove.
11002         * config/aarch64/aarch64-simd.md
11003         (aarch64_simd_dup): Add 'w->w' alternative.
11004         (aarch64_dup_lane<mode>): Allow for VALL.
11005         (aarch64_dup_lane_scalar<mode>): Remove.
11006         (aarch64_dup_lane_<vswap_width_name><mode>): New.
11007         (aarch64_get_lane_signed<mode>): Add w->w altenative.
11008         (aarch64_get_lane_unsigned<mode>): Likewise.
11009         (aarch64_get_lane<mode>): Likewise.
11010         * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
11011         (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
11012         * config/aarch64/iterators.md (VSWAP_WIDTH): New.
11013         (VCON): Change container of V2SF.
11014         (vswap_width_name): Likewise.
11015         * config/aarch64/arm_neon.h
11016         (__aarch64_vdup_lane_any): New.
11017         (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
11018         (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
11019         (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
11021 2013-09-02  Eric Botcazou  <ebotcazou@adacore.com>
11023         PR middle-end/56382
11024         * expr.c (emit_move_complex): Do not move complex FP values as parts if
11025         the source or the destination is a single hard register.
11027 2013-09-02  Richard Biener  <rguenther@suse.de>
11029         PR middle-end/57511
11030         * tree-scalar-evolution.c (instantiate_scev_name): Allow
11031         non-linear SCEVs.
11033 2013-09-02  Richard Biener  <rguenther@suse.de>
11035         * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
11036         arithmetic to sizetype.
11038 2013-09-02  Bin Cheng  <bin.cheng@arm.com>
11040         * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
11041         Find auto-increment use both before and after candidate.
11043 2013-09-02  Marek Polacek  <polacek@redhat.com>
11045         * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
11047 2013-09-01  Jan Hubicka  <jh@suse.cz>
11049         * Makefile.in: Add ipa-profile.o
11050         (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
11051         * cgraph.c (struct cgraph_propagate_frequency_data,
11052         cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
11053         ipa-profile.c; replace cgraph_ by ipa_ prefix.
11054         * cgraph.h (cgraph_propagate_frequency): Remove.
11055         * ipa-inline-analysis.c: Include ipa-utils.h;
11056         drop duplicated cfgloop.h.
11057         (inline_update_callee_summaries): Update.
11058         * ipa-profile.c: New file.
11059         * ipa-utils.h (ipa_propagate_frequency): Declare.
11060         * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
11061         data-streamer.h, value-prof.h.
11062         (symtab_remove_unreachable_nodes): Update profile.
11063         (struct histogram_entry, histogram, histogram_pool, histogram_hash,
11064         account_time_size, cmp_counts, dump_histogram,
11065         ipa_profile_generate_summary, ipa_profile_write_summary,
11066         ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
11067         pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
11068         Move to ipa-profile.c.
11070 2013-09-01  John David Anglin  <danglin@gcc.gnu.org>
11072         * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
11074 2013-09-01  Jan Hubicka  <jh@suse.cz>
11076         * common.opt (fdevirtualize-speculatively): New function.
11077         * invoke.texi (fdevirtualize-speculatively): Document.
11078         * ipa-devirt.c: Include ipa-inline.h
11079         (likely_target_p): New function.
11080         (ipa_devirt): New function.
11081         (gate_ipa_devirt): New function.
11082         (pass_data_ipa_devirt): New static var.
11083         (pass_ipa_devirt): Likewise.
11084         (make_pass_ipa_devirt): New function.
11085         * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
11086         (common_handle_option): Disable devirtualization when
11087         value range profiling is available.
11088         * passes.def (pass_ipa_devirt): Add.
11089         * timever.def (TV_IPA_DEVIRT): New timevar.
11090         * tree-pass.h (make_pass_ipa_devirt):
11092 2013-09-01  Iain Sandoe  <iain@codesourcery.com>
11094         * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
11095         include sanitize(undefined).
11097 2013-08-31  Diego Novillo  <dnovillo@google.com>
11099         * Makefile.in (TREE_CORE_H): Define.
11100         (TREE_H): Use.
11101         (GTFILES): Add tree-core.h.
11102         * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
11103         size the array.
11104         * tree-core.h: New file.
11105         Move all data structures, enum, typedefs, global
11106         declarations and constants from ...
11107         * tree.h: ... here.
11109 2013-08-31  Jan Hubicka  <jh@suse.cz>
11111         * bulitins.c (expand_builtin): Do not early exit for gcov
11112         instrumented functions.
11114 2013-08-31  Marek Polacek  <polacek@redhat.com>
11116         * ubsan.c: Include tm_p.h.
11118 2013-08-31  Jan Hubicka  <jh@suse.cz>
11120         * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
11121         warning.
11123         * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
11124         * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
11125         * tree-cfg.c (verify_gimple_label): ... here.
11126         * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
11127         (ipa_merge_profiles): New function.
11128         * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
11129         (lto_input_function_body): Likewise.
11130         * ipa-utils.h (ipa_merge_profiles): Declare.
11131         * lto-streamer.h (lto_input_function_body): Update prototype.
11132         (emit_label_in_global_context_p): Remove.
11133         * lto-symtab.c: Include ipa-utils.h
11134         (lto_cgraph_replace_node): Use ipa_merge_profiles.
11136 2013-08-31  Jan Hubicka  <jh@suse.cz>
11138         * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
11140 2013-08-31  Jan Hubicka  <jh@suse.cz>
11142         * basic-block.h (apply_scale): Make scale parmeter gcov_type.
11144 2013-08-31  Uros Bizjak  <ubizjak@gmail.com>
11146         * config/alpha/alpha.c (alpha_emit_conditional_move): Update
11147         "cmp" RTX before signed_comparison_operator check to account
11148         for "code" changes.
11150 2013-08-30  Jan Hubicka  <jh@suse.cz>
11152         * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
11153         (detect_type_change_1): Rename to ...
11154         (detect_type_change): ... this one; early return on non-polymorphic
11155         types.
11156         (detect_type_change_ssa): Add comp_type parameter; update
11157         use of detect_type_change.
11158         (compute_complex_assign_jump_func): Add param_type parameter;
11159         update use of detect_type_change_ssa.
11160         (compute_complex_ancestor_jump_func): Likewise.
11161         (ipa_get_callee_param_type): New function.
11162         (ipa_compute_jump_functions_for_edge): Compute parameter type;
11163         update calls to the jump function computation functions.
11165 2013-08-30  Teresa Johnson  <tejohnson@google.com>
11166             Steven Bosscher  <steven@gcc.gnu.org>
11168         * cfgrtl.c (fixup_new_cold_bb): New routine.
11169         (commit_edge_insertions): Invoke fixup_partitions.
11170         (find_partition_fixes): New routine.
11171         (fixup_partitions): Ditto.
11172         (verify_hot_cold_block_grouping): Update comments.
11173         (rtl_verify_edges): Invoke find_partition_fixes.
11174         (rtl_verify_bb_pointers): Update comments.
11175         (rtl_verify_bb_layout): Ditto.
11176         * basic-block.h (probably_never_executed_edge_p): Declare.
11177         (fixup_partitions): Ditto.
11178         * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
11179         * bb-reorder.c (sanitize_hot_paths): New function.
11180         (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
11181         sanitize_hot_paths.
11182         * predict.c (probably_never_executed_edge_p): New routine.
11183         * cfg.c (check_bb_profile): Add partition insanity warnings.
11185 2013-08-30  Meador Inge  <meadori@codesourcery.com>
11187         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
11189 2013-08-30  Marek Polacek  <polacek@redhat.com>
11191         * Makefile.in (ubsan.o): Add.
11192         (c-family/c-ubsan.o): Add.
11193         (builtins.o): Add ubsan.h dependency.
11194         * ubsan.h: New file.
11195         * ubsan.c: New file.
11196         * common.opt: Add -fsanitize=undefined option.
11197         (flag_sanitize): Add variable.
11198         (fsanitize=): Add option.  Add Driver.
11199         (fsanitize=thread): Remove option.
11200         (fsanitize=address): Likewise.
11201         (static-libubsan): New option.
11202         * doc/invoke.texi: Document the new flag and -static-libubsan.
11203         * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
11204         (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
11205         * builtin-attrs.def (ATTR_COLD): Define.
11206         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
11207         * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
11208         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
11209         * flag-types.h (sanitize_code): New enum.
11210         * opts.c (common_handle_option): Parse command line arguments
11211         of -fsanitize=.  Add -fsanitize=unreachable option.
11212         * varasm.c (get_variable_section): Adjust.
11213         (assemble_noswitch_variable): Likewise.
11214         (assemble_variable): Likewise.
11215         (output_constant_def_contents): Likewise.
11216         (categorize_decl_for_section): Likewise.
11217         (place_block_symbol): Likewise.
11218         (output_object_block): Likewise.
11219         * builtins.def: Likewise.
11220         * toplev.c (compile_file): Likewise.
11221         (process_options): Likewise.
11222         * cppbuiltin.c: Likewise.
11223         * tsan.c (tsan_pass): Likewise.
11224         (tsan_gate): Likewise.
11225         (tsan_gate_O0): Likewise.
11226         * cfgexpand.c (partition_stack_vars): Likewise.
11227         (expand_stack_vars): Likewise.
11228         (defer_stack_allocation): Likewise.
11229         (expand_used_vars): Likewise.
11230         * cfgcleanup.c (old_insns_match_p): Likewise.
11231         * asan.c (asan_finish_file): Likewise.
11232         (asan_instrument): Likewise.
11233         (gate_asan): Likewise.
11234         (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
11235         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
11236         (asan_global_struct): Use pointer_sized_int_node instead
11237         calling build_nonstandard_integer_type.
11238         (initialize_sanitizer_builtins): Likewise.
11239         (asan_finish_file): Likewise.
11240         * gcc.c: Document %{%:function(args):X}.
11241         (static_spec_functions): Add sanitize.
11242         (handle_spec_function): Add retval_nonnull argument and if non-NULL,
11243         store funcval != NULL there.
11244         (do_spec_1): Adjust handle_spec_function caller.
11245         (handle_braces): Allow %:function(args) as condition.
11246         (sanitize_spec_function): New function.
11247         (ADD_STATIC_LIBUBSAN_LIBS): Define.
11248         (LIBUBSAN_SPEC): Likewise.
11249         (LIBUBSAN_EARLY_SPEC): Likewise.
11250         (SANITIZER_SPEC): Handle libubsan.
11251         (SANITIZER_EARLY_SPEC): Likewise.
11252         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
11253         instead of fsanitize=address.
11254         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
11255         instead of fsanitize=address*.
11256         * builtins.c: Include ubsan.h.
11257         (fold_builtin_0): Instrument __builtin_unreachable.
11258         * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
11259         instead of flag_asan.
11260         * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
11261         (pointer_sized_int_node): Define.
11262         * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
11264 2013-08-30  Mike Stump  <mikestump@comcast.net>
11266         * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
11267         with RE patterns.
11269 2013-08-29  Jan Hubicka  <jh@suse.cz>
11271         * cgraph.c (cgraph_function_body_availability): Handle weakref
11272         correctly.
11273         * passes.def: Remove pass_fixup_cfg.
11274         * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
11275         track when we need to remove functions.
11276         (gate_ipa_inline): Execute inlining always; add comment why.
11277         (pass_data_ipa_inline): Remove TODO_remove_functions.
11278         * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
11279         do not produce summaries.
11280         * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
11281         (symtab_nonoverwritable_alias): Assert we are not called on weakref.
11282         * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
11283         constant pool and vtable.
11285 2013-08-30  Tejas Belagod  <tejas.belagod@arm.com>
11287         * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
11288         New arm_neon.h's internal macros to specify 64-bit constants.
11289         Avoid using stdint.h's macros.
11291 2013-08-30  Joern Rennecke  <joern.rennecke@embecosm.com>
11293         * recog.c (verify_changes): Verify that changes[i].old is non-zero
11294         before applying REG_P.
11296 2013-08-30  Jakub Jelinek  <jakub@redhat.com>
11298         PR tree-optimization/58277
11299         * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
11300         after seeing too many stmts with vdef in between dombb and current
11301         bb, invalidate everything.
11303 2013-08-30  Richard Biener  <rguenther@suse.de>
11305         * fold-const.c (fold_single_bit_test): Fix overflow test.
11307 2013-08-30  Eric Botcazou  <ebotcazou@adacore.com>
11309         * function.c (assign_parm_setup_reg): For a parameter passed by pointer
11310         and which can live in a register, always retrieve the value on entry.
11311         * var-tracking.c (add_stores): Treat the copy on entry for a parameter
11312         passed by invisible reference specially.
11313         (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
11314         (vt_add_function_parameter): Correctly deal with a parameter passed by
11315         invisible reference.
11317 2013-08-30  Jan Hubicka  <jh@suse.cz>
11319         * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
11321 2013-08-30  Richard Biener  <rguenther@suse.de>
11323         PR tree-optimization/58228
11324         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
11325         allow invariant loads in nested loop vectorization.
11327 2013-08-30  Richard Biener  <rguenther@suse.de>
11329         PR tree-optimization/58223
11330         * tree-loop-distribution.c (has_anti_dependence): Rename to ...
11331         (has_anti_or_output_dependence): ... this and adjust to also
11332         look for output dependences.
11333         (mark_nodes_having_upstream_mem_writes): Adjust.
11334         (rdg_flag_uses): Likewise.
11336 2013-08-30  Richard Biener  <rguenther@suse.de>
11338         PR tree-optimization/58010
11339         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
11340         assert that we have a loop-closed PHI.
11342 2013-08-29  Jan Hubicka  <jh@suse.cz>
11344         * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
11345         * cgraph.c (cgraph_release_function_body): Free decl_in_state.
11346         * lto-section-in.c (lto_free_function_in_decl_state): New function.
11347         (lto_free_function_in_decl_state_for_node): New function.
11349 2013-08-29  Xinliang David Li  <davidxl@google.com>
11351         * loop-unroll.c (report_unroll_peel): Minor message change.
11352         * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
11353         Emit alignment peeling message with default -fopt-info.
11354         (vect_loop_versioning): Emit loop version info message.
11355         * tree-vectorizer.c (vectorize_loops): Minor message change.
11356         (execute_vect_slp): Ditto.
11358 2013-08-29  Eric Botcazou  <ebotcazou@adacore.com>
11360         * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
11361         of the clone from the DECL_NAME of the original function.
11363 2013-08-29  Oleg Endo  <olegendo@gcc.gnu.org>
11365         * passes.c (register_pass): Add overload.
11366         * tree-pass.h (register_pass): Forward declare it.  Add comment.
11368 2013-08-29  Jan Hubicka  <jh@suse.cz>
11370         * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
11371         DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
11372         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
11373         DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
11374         (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
11375         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
11376         Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
11377         (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
11379 2013-08-29  Teresa Johnson  <tejohnson@google.com>
11381         * dumpfile.c (dump_loc): Output column number.
11382         * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
11383         * doc/invoke.texi: Document optall -fopt-info flag.
11384         * profile.c (read_profile_edge_counts): Use new dump framework.
11385         (compute_branch_probabilities): Ditto.
11386         * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
11387         when pass not in any opt group.
11388         * pass_manager.h (pass_manager::get_pass_profile): New method.
11389         * value-prof.c (check_counter): Use new dump framework.
11390         (check_ic_target): Ditto.
11391         * coverage.c (get_coverage_counts): Ditto.
11392         (coverage_init): Setup new dump framework.
11394 2013-08-29  Richard Biener  <rguenther@suse.de>
11396         PR tree-optimization/58246
11397         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
11398         handle the dominance check inside a basic-block.
11400 2013-08-29  Richard Biener  <rguenther@suse.de>
11402         PR middle-end/57287
11403         * tree-ssa-copy.c (may_propagate_copy): Allow propagating
11404         of default defs that appear in abnormal PHI nodes.
11406 2013-08-29  Richard Biener  <rguenther@suse.de>
11408         PR tree-optimization/57685
11409         * tree-vrp.c (register_edge_assert_for_1): Recurse only for
11410         single-use operands to avoid exponential complexity.
11412 2013-08-28  Dehao Chen  <dehao@google.com>
11414         * ipa-inline.c (edge_badness): Fix integer underflow.
11416 2013-08-28  Uros Bizjak  <ubizjak@gmail.com>
11418         * gtm-builtins.def (_ITM_free): Declare leaf.
11420 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
11422         PR target/58067
11423         * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
11424         (*tls_local_dynamic_base_64_largepic): Likewise.
11425         (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
11426         Remove predicate from call operand.
11427         * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
11428         return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
11430 2013-08-28  Jeff Law  <law@redhat.com>
11432         * tree-ssa-threadedge.c (thread_around_empty_block): Remove
11433         checks for the number of predecessors and successors allowed.
11434         * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
11435         which require copying a joiner block if there is a request which
11436         is a subpath that requires no joiner block copying.
11438 2013-08-28  Jan Hubicka  <jh@suse.cz>
11440         * lto-streamer-out.c (DFS_write_tree_body): Drop
11441         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
11442         (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
11443         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
11444         * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
11445         Do not read DECL_ERROR_ISSUED.
11446         (unpack_ts_decl_with_vis_value_fields): Do not read
11447         DECL_DEFER_OUTPUT.
11448         (lto_input_ts_binfo_tree_pointers): Do not read
11449         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
11450         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
11451         write DECL_ERROR_ISSUED..
11452         (pack_ts_decl_with_vis_value_fields): Do not write
11453         DECL_DEFER_OUTPUT.
11454         (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
11455         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
11456         * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
11457         * tree.h (tree_decl_common): Update comment.
11458         (DECL_ERROR_ISSUED): Remove.
11460 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
11462         PR middle-end/58257
11463         * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
11465 2013-08-28  Jan Hubicka  <jh@suse.cz>
11467         * builtins.def (free): Declare leaf.
11469 2013-08-27  David Malcolm  <dmalcolm@redhat.com>
11471         * gdbhooks.py: New.
11472         * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
11473         * configure: Regenerate.
11475 2013-08-27  Martin Jambor  <mjambor@suse.cz>
11477         * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
11478         (ipa_ancestor_jf_data): Likewise.
11479         (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
11480         (ipa_get_jf_pass_through_type_preserved): New function.
11481         (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
11482         (ipa_get_jf_ancestor_type_preserved): New function.
11483         * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
11484         (ipa_get_jf_ancestor_result): Likewise.
11485         (propagate_vals_accross_pass_through): Use
11486         ipa_get_jf_pass_through_result to do all the value mappings.
11487         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
11488         type_preserved flag.
11489         (ipa_set_jf_cst_copy): New function.
11490         (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
11491         (ipa_set_jf_arith_pass_through): Likewise.
11492         (ipa_set_ancestor_jf): Likewise.
11493         (compute_complex_assign_jump_func): Set type_preserved instead of
11494         punting.
11495         (ipa_compute_jump_functions_for_edge): Likewise.
11496         (combine_known_type_and_ancestor_jfs): Honor type_preserved.
11497         (update_jump_functions_after_inlining): Update type_preserved.
11498         Explicitely create jump functions when combining one with pass_through.
11499         (ipa_write_jump_function): Stream the type_preserved flags.
11500         (ipa_read_jump_function): Likewise.
11502 2013-08-27  Jakub Jelinek  <jakub@redhat.com>
11503             Aldy Hernandez  <aldyh@redhat.com>
11505         * Makefile.in (omp-low.o): Depend on $(TARGET_H).
11506         * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
11507         * function.h (struct function): Add has_force_vect_loops and
11508         has_simduid_loops.
11509         * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
11510         * gimple.c (gimple_build_omp_critical): Add KIND argument and
11511         handle it.
11512         * gimple.def: Update CLAUSES comments.
11513         * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
11514         (gimple_build_omp_for): Add argument to prototype.
11515         (gimple_omp_for_kind): New.
11516         (gimple_omp_for_set_kind): New.
11517         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
11518         GOVD_DATA_SHARE_CLASS.
11519         (enum omp_region_type): Add ORT_SIMD.
11520         (gimple_add_tmp_var): Handle ORT_SIMD.
11521         (gimplify_var_or_parm_decl): Same.
11522         (is_gimple_stmt): Same.
11523         (omp_firstprivatize_variable): Same.
11524         (omp_add_variable): Only use splay_tree_insert if lookup failed.
11525         (omp_notice_variable): Handle ORT_SIMD.
11526         (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
11527         (omp_check_private): Handle ORT_SIMD.
11528         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
11529         OMP_CLAUSE_SAFELEN.
11530         (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
11531         Handle OMP_CLAUSE_LASTPRIVATE.
11532         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
11533         OMP_CLAUSE_SAFELEN.
11534         (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
11535         (gimplify_expr): Handle OMP_SIMD.
11536         * internal-fn.c (expand_GOMP_SIMD_LANE): New.
11537         (expand_GOMP_SIMD_VF): New.
11538         (expand_GOMP_SIMD_LAST_LANE): New.
11539         * internal-fn.def (GOMP_SIMD_LANE): New.
11540         (GOMP_SIMD_VF): New.
11541         (GOMP_SIMD_LAST_LANE): New.
11542         * omp-low.c: Include target.h.
11543         (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
11544         OMP_CLAUSE_SAFELEN.
11545         (check_omp_nesting_restrictions): Same.
11546         (omp_max_vf): New.
11547         (lower_rec_simd_input_clauses): New.
11548         (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
11549         OMP_CLAUSE_LINEAR.
11550         (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
11551         GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
11552         (expand_omp_build_assign): New.
11553         (expand_omp_for_init_counts): New.
11554         (expand_omp_for_init_vars): New.
11555         (extract_omp_for_update_vars): New.
11556         (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
11557         and rewrite accordingly.
11558         (expand_omp_simd): New.
11559         (expand_omp_for): Use expand_omp_simd.
11560         (lower_omp_for_lastprivate): Unshare vinit when appropriate.
11561         (lower_omp_for): Do not lower the body.
11562         * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
11563         in their own loops.
11564         * tree-flow.h (find_omp_clause): Remove prototype.
11565         * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
11566         forcing vectorization of the loop, or if flag_tree_vectorize.
11567         (gate_tree_if_conversion): Similarly.
11568         * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
11569         gimple_build_omp_for.
11570         (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
11571         * tree-parloops (create_parallel_loop): Pass kind argument to
11572         gimple_build_omp_for.
11573         * tree-pretty-print.c (dump_omp_clause): Add cases for
11574         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
11575         OMP_CLAUSE__SIMDUID_.
11576         (dump_generic_node): Handle OMP_SIMD.
11577         * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
11578         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
11579         unroll OMP_SIMD loops here.
11580         * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
11581         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
11582         loop->safelen.
11583         (vect_analyze_data_refs): Handle simd loops.
11584         * tree-vect-loop.c (vectorizable_live_operation): Handle
11585         IFN_GOMP_SIMD*.
11586         * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
11587         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
11588         (vectorizable_load): Same.
11589         * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
11590         (struct simduid_to_vf): New.
11591         (simduid_to_vf::hash): New.
11592         (simduid_to-vf::equal): New.
11593         (struct simd_array_to_simduid): New.
11594         (simd_array_to_simduid::hash): New.
11595         (simd_array_to_simduid::equal): New.
11596         (adjust_simduid_builtins): New.
11597         (struct note_simd_array_uses_struct): New.
11598         (note_simd_array_uses_cb): New.
11599         (note_simd_array_uses): New.
11600         (vectorize_loops): Handle simd hints and adjust simd builtins
11601         accordingly.
11602         * tree-vectorizer.h (struct _stmt_vec_info): Add
11603         simd_lane_access_p field.
11604         (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
11605         * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
11606         OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
11607         (omp_clause_code_name): Same.
11608         (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
11609         OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
11610         * tree.def (OMP_SIMD): New entry.
11611         * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
11612         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
11613         (OMP_CLAUSE_DECL): Adjust range for new clauses.
11614         (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
11615         (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
11616         (OMP_CLAUSE_LINEAR_STEP): New.
11617         (OMP_CLAUSE_SAFELEN_EXPR): New.
11618         (OMP_CLAUSE__SIMDUID__DECL): New.
11619         (find_omp_clause): New prototype.
11621 2013-08-27  H.J. Lu  <hongjiu.lu@intel.com>
11623         * config/i386/driver-i386.c (host_detect_local_cpu): Update
11624         Haswell processor detection.
11626 2013-08-27  Christian Widmer  <shadow@umbrox.de>
11628         PR target/57927
11629         * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
11630         of Ivy Bridge and Haswell processors.  Assume core-avx2 for unknown
11631         AVX2 capable processors.
11633 2013-08-27  Tejas Belagod  <tejas.belagod@arm.com>
11635         * config/aarch64/arm_neon.h: Replace all inline asm implementations
11636         of vget_low_* with implementations in terms of other intrinsics.
11638 2013-08-27  Marc Glisse  <marc.glisse@inria.fr>
11640         PR middle-end/57219
11641         * doc/extend.texi (__builtin_isinf_sign): Restrict the return
11642         values to -1, 0 and 1.
11644 2013-08-27  Vidya Praveen  <vidyapraveen@arm.com>
11646         * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
11647         UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
11648         (<optab><mode>3_insn): Remove.
11649         (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
11650         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
11651         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
11652         (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
11653         (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
11654         (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
11655         (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
11656         (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
11657         (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
11658         (ror<mode>3_insn): Likewise.
11659         * config/aarch64/predicates.md (aarch64_simd_register): New.
11661 2013-08-27  Richard Biener  <rguenther@suse.de>
11663         PR tree-optimization/57521
11664         * tree-if-conv.c (if_convertible_bb_p): Verify that at least
11665         one edge is non-critical.
11666         (find_phi_replacement_condition): Make sure to use a non-critical
11667         edge.  Cleanup and remove old bug workarounds.
11668         (bb_postdominates_preds): Remove.
11669         (if_convertible_loop_p_1): Do not compute post-dominators.
11670         (combine_blocks): Do not free post-dominators.
11671         (main_tree_if_conversion): Likewise.
11672         (pass_data_if_conversion): Add TODO_verify_ssa.
11674 2013-08-27  DJ Delorie  <dj@redhat.com>
11676         * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
11678 2013-08-27  Yufeng Zhang  <yufeng.zhang@arm.com>
11680         * function.c (assign_parm_find_data_types): Set passed_mode and
11681         nominal_mode to the TYPE_MODE of nominal_type for the built
11682         pointer type in case of the struct-pass-by-reference.
11684 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
11686         * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
11687         (UINT16_TYPE): Change default to "unsigned int".
11689         * config/avr/avr.opt (mfract-convert-truncate): New option.
11690         * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
11691         is set, round negative fractional integers according to n1169
11692         when converting to integer types.
11694 2013-08-26  Jan Hubicka  <jh@suse.cz>
11696         * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
11697         methods can not be called indirectly when their address is not taken.
11699 2013-08-26  Jan Hubicka  <jh@suse.cz>
11701         * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
11702         ctor_for_folding.
11704 2013-08-26  Jan Hubicka  <jh@suse.cz>
11706         * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
11707         can be unshared.
11709 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
11711         * reload.c (find_valid_class): Allow classes that do not include
11712         FIRST_PSEUDO_REGISTER - 1.
11714 2013-08-26  Jan Hubicka  <jh@suse.cz>
11716         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
11717         fix edge count/frequency when speculation failed; fix type check
11718         for the direct call.
11720 2013-08-26  Jan Hubicka  <jh@suse.cz>
11722         * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
11724 2013-08-26  Jan Hubicka  <jh@suse.cz>
11726         * ipa-inline-transform.c (inline_transform): Be ready for basic block
11727         to be changed by edge redirection.
11729 2013-08-26  Jan Hubicka  <jh@suse.cz>
11731         * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
11732         formating; add sanity check.
11733         (cgraph_resolve_speculation): Add FIXME about scaling profiles.
11734         (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
11735         * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
11736         (resolve_noninline_speculation): Update callee keys, too.
11738 2013-08-26  Jan Hubicka  <jh@suse.cz>
11740         * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
11741         (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
11743 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
11745         * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
11746         into proper place.
11748 2013-08-26  Uros Bizjak  <ubizjak@gmail.com>
11750         * config/i386/i386.c (ix86_debug_options): Remove prototype.
11751         (x86_64_elf_select_section): Ditto.
11752         (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
11753         arguments.
11754         (ix86_pass_by_reference): Ditto.
11755         (output_set_got): Ditto.
11756         (ix86_unary_operator_ok): Ditto.
11757         (ix86_expand_builtin): Ditto.
11759 2013-08-23  Jan Hubicka  <jh@suse.cz>
11761         * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
11763 2013-08-23  Jan Hubicka  <jh@suse.cz>
11765         * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
11766         (tree_decl_with_vis): Add FINAL field.
11768 2013-08-23  Jeff Law  <law@redhat.com>
11770         * tree-ssa-pre.c (do_regular_insertion): Include the expression in
11771         the debugging dump when the expression is fully redundant.
11773 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11775         * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
11776         * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
11777         * pretty-print.c (pp_formatted_text_data): Likewise.
11778         (pp_write_text_to_stream): Likewise.
11779         (pp_write_text_as_dot_label_to_stream): Likewise.
11780         (pp_append_r): Likewise.
11781         (pp_format): Likewise.
11782         (pp_flush): Likewise.
11783         (pp_clear_output_area): Likewise.
11784         (pp_append_text): Likewise.
11785         (pp_formatted_text): Likewise.
11786         (pp_remaining_character_count_for_line): Likewise.
11787         (pp_newline): Likewise.
11788         (pp_character): Likewise.
11789         (output_buffer::~output_buffer): Define.
11790         (pretty_printer::~pretty_printer): Destruct output buffer.
11791         * pretty-print.h (output_buffer::~output_buffer): Declare.
11792         (pretty_printer::~pretty_printer): Declare virtual.
11794 2013-08-24  Marc Glisse  <marc.glisse@inria.fr>
11796         PR other/57324
11797         * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
11798         HOST_WIDE_INT_M1U): New macros.
11799         * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
11800         fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
11801         unsigned -1 for lshift.
11802         * cse.c (cse_insn): Likewise.
11803         * double-int.c (rshift_double, lshift_double): Likewise.
11804         * builtins.c (fold_builtin_bitop): Likewise.
11805         * combine.c (force_to_mode): Likewise.
11806         * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
11807         * simplify-rtx.c (simplify_const_unary_operation,
11808         simplify_const_binary_operation): Likewise.
11809         * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
11810         check_va_list_escapes): Likewise.
11811         * rtlanal.c (nonzero_bits1): Likewise.
11812         * expmed.c (expand_smod_pow2): Likewise.
11813         * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
11815 2013-08-23  Jan Hubicka  <jh@suse.cz>
11817         * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
11818         as having address taken.
11820 2013-08-23  Jan Hubicka  <jh@suse.cz>
11822         * ipa-utils.h (method_class_type): Declare.
11823         * ipa-devirt.c (method_class_type): Export.
11825         * cgraphunit.c (analyze_functions): Do basic devirtualization;
11826         do not walk base classes of anonymous types.
11828 2013-08-23  Kaz Kojima  <kkojima@gcc.gnu.org>
11830         PR rtl-optimization/58220
11831         PR regression/58221
11832         * final.c (reemit_insn_block_notes): Use NEXT_INSN to
11833         handle SEQUENCE insns properly.
11835 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11837         * pretty-print.h (pp_newline_and_flush): Declare.  Remove macro
11838         definition.
11839         (pp_newline_and_indent): Likewise.
11840         (pp_separate_with): Likewise.
11841         * pretty-print.c (pp_newline_and_flush): Define.
11842         (pp_newline_and_indent): Likewise.
11843         (pp_separate_with): Likewise.
11845 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
11847         PR target/58218
11848         * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
11849         * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
11851 2013-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
11853         * config/i386/predicates.md (ext_sse_reg_operand): New.
11854         * config/i386/i386.md (*movti_internal): Use
11855         predicate to determine if EVEX is needed.
11856         (*movsi_internal): Ditto.
11857         (*movdf_internal): Ditto.
11858         (*movsf_internal): Ditto.
11859         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
11861 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
11863         PR tree-optimization/58209
11864         * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
11865         (find_tail_calls): Give up for pointer result types if m is non-NULL.
11866         (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
11867         emit POINTER_PLUS_EXPR.
11868         (create_tailcall_accumulator): For pointer result type accumulate in
11869         sizetype type.
11871 2013-08-22  Paolo Carlini  <paolo.carlini@oracle.com>
11873         * configure.ac: Add backslashes missing from the last change.
11874         * configure: Regenerate.
11876 2013-08-22  Jan Hubicka  <jh@susue.cz>
11878         * ipa.c (function_and_variable_visibility): First remember function
11879         was global and then make it local.
11881 2013-08-22  Julian Brown  <julian@codesourcery.com>
11883         * configure.ac: Add aarch64 to list of arches which use "nop" in
11884         debug_line test.
11885         * configure: Regenerate.
11887 2013-08-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11889         * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
11890         gnu_libc_has_function.
11891         * config/s390/tpf.h: Likewise.
11893 2013-08-22  Jan Hubicka  <jh@susue.cz>
11895         * timevar.c (validate_phases): Add cast.
11897 2013-08-22  Jan Hubicka  <jh@susue.cz>
11899         * timevar.c (validate_phases): Use size_t for memory.
11900         * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
11902 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11904         * pretty-print.h (output_buffer::output_buffer): Declare.
11905         (pretty_printer::pretty_printer): Likewise.
11906         (pp_construct): Remove.
11907         * pretty-print.c (output_buffer::output_buffer): Define.
11908         (pretty_printer::pretty_printer): Rename from pp_construct.  Simplify.
11909         * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
11910         (print_gimple_expr): Likewise.
11911         (print_gimple_seq): Likewise.
11912         (gimple_dump_bb): Likewise.
11913         * sched-vis.c (dump_value_slim): Likewise.
11914         (dump_insn_slim): Likewise.
11915         (dump_rtl_slim): Likewise.
11916         (str_pattern_slim): Likewise.
11917         * tree-mudflap.c (mf_varname_tree): Likewise.
11918         * graph.c (print_graph_cfg): Likewise.
11919         (start_graph_dump): Likewise.
11920         * tree-pretty-print.c (maybe_init_pretty_print): Likewise.  Use
11921         placement-new.
11922         * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
11923         pretty printer initialization.
11924         * coretypes.h (diagnostic_context): Remove superflous type alias
11925         declaration.
11926         (pretty_printer): Likewise.  Declare directly as a class.
11927         (pretty_print_info): Remove declaration as class.
11928         * asan.c (asan_emit_stack_protection): Remove call to pp_construct
11929         and pp_clear_output_area.
11930         (asan_add_global): Likewise.
11932 2013-08-22  Jan Hubicka  <jh@suse.cz>
11934         * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
11935         * ipa-utils.h (update_type_inheritance_graph): Declare.
11936         (possible_polymorphic_call_target_p): Declare.
11937         (possible_polymorphic_call_target_p): New.
11938         * ipa-devirt.c: Update toplevel comments.
11939         (cached_polymorphic_call_targets): Move up.
11940         (odr_type_d): Move ID down.
11941         (polymorphic_type_binfo_p): Update comment.
11942         (odr_hasher::remove): Likewise;
11943         (get_odr_type): Set anonymous_namespace.
11944         (dump_odr_type): Dump it.
11945         (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
11946         (maybe_record_node): Record node in cached_polymorphic_call_targets.
11947         (record_binfo): Add comment.
11948         (free_polymorphic_call_targets_hash): Do not ICE when cache is not
11949         built.
11950         (devirt_node_removal_hook): Do not iCE when cache is freed.
11951         (possible_polymorphic_call_target_p): New predicate.
11952         (update_type_inheritance_graph): New function.
11954 2013-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11955             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11956             Sergey Lega  <sergey.s.lega@intel.com>
11957             Anna Tikhonova  <anna.tikhonova@intel.com>
11958             Ilya Tocar  <ilya.tocar@intel.com>
11959             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11960             Ilya Verbin  <ilya.verbin@intel.com>
11961             Kirill Yukhin  <kirill.yukhin@intel.com>
11962             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11964         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
11965         (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
11966         (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
11967         (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
11968         (OPTION_MASK_ISA_AVX2_UNSET): Update.
11969         (OPTION_MASK_ISA_AVX512F_UNSET): New.
11970         (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
11971         (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
11972         (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
11973         (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
11974         OPT_mavx512pf, OPT_mavx512er cases.
11975         * config/i386/constraints.md (v): New constraint.
11976         (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
11977         * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
11978         (bit_AVX512CD): New.
11979         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
11980         AVX512F, AVX512ER, AVX512PF, AVX512CD features.
11981         * config/i386/i386-c.c (ix86_target_macros_internal):
11982         Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
11983         __AVX512PF__.
11984         * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
11985         (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
11986         * config/i386/i386.c (regclass_map, dbx_register_map)
11987         (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
11988         (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
11989         (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
11990         -mavx512pf options.
11991         (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
11992         PTA_AVX512PF, PTA_AVX512CD.  Handle -mavx512f, -mavx512er, -mavx512cd,
11993         -mavx512pf options.  Fix formatting.
11994         (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
11995         targets.  Squash EVEX_SSE_REGS if AVX512F is disabled.
11996         (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
11997         -mavx512cd, -mavx512pf options.
11998         (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
11999         (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
12000         (ix86_preferred_output_reload_class): Replace SSE_REGS with
12001         ALL_SSE_REGS.
12002         (ix86_hard_regno_mode_ok): Support 512-bit registers.
12003         (ix86_set_reg_reg_cost): Ditto.
12004         (x86_order_regs_for_local_alloc): Ditto.
12005         (MAX_VECT_LEN): Extend to 64-byte.
12006         (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
12007         * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
12008         (TARGET_AVX512ER, TARGET_AVX512CD): New.
12009         (BIGGEST_ALIGNMENT): Extend to 512-bits.
12010         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
12011         (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
12012         (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
12013         (SSE_REG_MODE_P): Support new modes.
12014         (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
12015         (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
12016         (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
12017         (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
12018         (REG_CLASS_CONTENTS): Add new registers.
12019         (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
12020         (EXT_REX_SSE_REGNO_P): New.
12021         (HI_REGISTER_NAMES): Add new registers.
12022         * config/i386/i386.md: Define constants for new registers.
12023         (mode): Add new 512-bit modes.
12024         (prefix): Support evex prefix.
12025         (isa): Support avx512f, noavx512f, fma_avx512f.
12026         (ssemodesuffix): Add new 512-bit modes.
12027         (movxi): New.
12028         (*movxi_internal_avx512f): Ditto.
12029         (*movdi_internal): Replace constraint "x" with the new constraint "v".
12030         Support MODE_XI.
12031         (*movsi_internal): Likewise.
12032         (*movdf_internal): Likewise.
12033         (*movsf_internal): Likewise.
12034         (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
12035         (<code><mode>3): Likewise.
12036         * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
12037         New.
12038         * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
12039         with the new constraint "v".
12040         * config/i386/sse.md (*mov<mode>_internal): Support new registers and
12041         modes.
12042         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
12043         with the new constraint "v".
12044         (<sse2>_loaddqu<avxsizesuffix>): Likewise.
12045         (<sse2>_storedqu<avxsizesuffix>): Likewise.
12046         (*<plusminus_insn><mode>3): Likewise.
12047         (<sse>_vm<plusminus_insn><mode>3): Likewise.
12048         (*mul<mode>3): Likewise.
12049         (<sse>_vmmul<mode>3): Likewise.
12050         (<sse>_div<mode>3): Likewise.
12051         (<sse>_vmdiv<mode>3): Likewise.
12052         (<sse>_sqrt<mode>2): Likewise.
12053         (<sse>_vmsqrt<mode>2): Likewise.
12054         (*<code><mode>3_finite): Likewise.
12055         (*<code><mode>3) <smaxmin>: Likewise.
12056         (<sse>_vm<code><mode>3): Likewise.
12057         (*<code><mode>3) <any_logic>: Likewise.
12058         (*fma_fmadd_<mode>): Likewise.
12059         (*fma_fmsub_<mode>): Likewise.
12060         (*fma_fnmadd_<mode>): Likewise.
12061         (*fma_fnmsub_<mode>): Likewise.
12062         (*fma_fmaddsub_<mode>): Likewise.
12063         (*fma_fmsubadd_<mode>): Likewise.
12064         (*fmai_fmadd_<mode>): Likewise.
12065         (*fmai_fmsub_<mode>): Likewise.
12066         (*fmai_fnmadd_<mode>): Likewise.
12067         (*fmai_fnmsub_<mode>): Likewise.
12068         (sse_cvtsi2ss): Likewise.
12069         (sse_cvtsi2ssq): Likewise.
12070         (sse_cvtss2si): Likewise.
12071         (sse_cvtss2si_2): Likewise.
12072         (sse_cvtss2siq): Likewise.
12073         (sse_cvtss2siq_2): Likewise.
12074         (sse_cvttss2si): Likewise.
12075         (sse_cvtss2siq_2): Likewise.
12076         (float<sseintvecmodelower><mode>2): Likewise.
12077         (sse2_cvtsd2si_2): Likewise.
12078         (sse2_cvtsd2siq_2): Likewise.
12079         (*<plusminus_insn><mode>3): Likewise.
12080         (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
12081         (*<sse4_1_avx2>_mul<mode>3): Likewise.
12082         (ashr<mode>3): Likewise.
12083         (<shift_insn><mode>3): Likewise.
12084         (avx2_<code><mode>3): Likewise.
12085         (*avx2_<code><mode>3): Likewise.
12086         (*andnot<mode>3): Likewise.
12087         (*<code><mode>3) <any_logic>: Likewise.
12088         (abs<mode>2): Likewise.
12089         (avx2_permvar<mode>): Likewise.
12090         (avx2_perm<mode>_1): Likewise.
12091         (*avx_vpermilp<mode>): Likewise.
12092         (avx_vpermilvar<mode>3): Likewise.
12093         (avx2_ashrv<mode>): Likewise.
12094         (avx2_<shift_insn>v<mode>): Likewise.
12095         * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
12096         -mavx512cd.
12097         * doc/rtl.texi: Document XImode.
12099 2013-08-21  Jeff Law  <law@redhat.com>
12101         * tree-flow.h (register_jump_thread): Pass vector of edges
12102         instead of each important edge.
12103         * tree-ssa-threadedge.c (thread_across_edge): Build the jump
12104         thread path into a vector and pass that to register_jump_thread.
12105         * tree-ssa-threadupdate.c (register_jump_thread): Conver the
12106         passed in edge vector to the current 3-edge form.
12108         Revert:
12109         2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
12111         * dce.c (fini_dce): Call df_analyze again just in case
12112         delete_unmarked_insns removed anything.
12114 2013-08-21  Joern Rennecke  <joern.rennecke@embecosm.com>
12116         * reload.h (struct reg_equivs): Rename to ..
12117         (struct reg_equivs_s): .. this.
12119 2013-08-20  Martin Liska  <marxin.liska@gmail.com>
12121         * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
12123 2013-08-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12125         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
12127 2013-08-21  Jeff Law  <law@redhat.com>
12129         * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
12130         simplify assignments too.  If the RHS collapses to a singleton
12131         range, then return the value for the range.
12133 2013-08-21  Kirill Yukhin  <kirill.yukhin@intel.com>
12135         * config/i386/sse.md (V16): Rename to...
12136         (VMOVE): this.
12137         (mov<mode>): Update iterator name.
12138         (*mov<mode>_internal): Ditto.
12139         (push<mode>1): Ditto.
12140         (movmisalign<mode>): Ditto.
12142 2013-08-20  Jan Hubicka  <jh@suse.cz>
12144         PR bootstrap/58186
12145         * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
12146         entry for direct edges.
12147         (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
12149 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
12151         Revert my last two changes, r201865 and r201864:
12153         Revert r201865:
12154         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
12156         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
12157         instances can own GC refs.
12159         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
12160         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
12161         (gcc::context::gt_pch_nx): Likewise.
12162         (gcc::context::gt_pch_nx):  Likewise.
12163         * ggc.h (gt_ggc_mx <T>): New.
12164         (gt_pch_nx_with_op <T>): New.
12165         (gt_pch_nx <T>): New.
12166         * passes.c (opt_pass::gt_ggc_mx): New.
12167         (opt_pass::gt_pch_nx): New.
12168         (opt_pass::gt_pch_nx_with_op): New.
12169         (pass_manager::gt_ggc_mx): New.
12170         (pass_manager::gt_pch_nx): New.
12171         (pass_manager::gt_pch_nx_with_op): New.
12172         (pass_manager::operator new): Use
12173         ggc_internal_cleared_alloc_stat rather than xcalloc.
12174         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
12175         (pass_manager::gt_ggc_mx): New.
12176         (pass_manager::gt_pch_nx): New.
12177         (pass_manager::gt_pch_nx_with_op): New.
12178         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
12179         (opt_pass::operator new): New.
12180         (opt_pass::gt_ggc_mx): New.
12181         (opt_pass::gt_pch_nx): New.
12182         (opt_pass::gt_pch_nx_with_op): New.
12184         Revert r201864:
12185         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
12187         * Makefile.in (GTFILES): Add context.h.
12188         * context.c (gcc::context::operator new): New.
12189         (gcc::context::gt_ggc_mx): New.
12190         (gcc::context::gt_pch_nx): New.
12191         (gcc::context::gt_pch_nx): New.
12192         * context.h (gcc::context): Add GTY((user)) marking.
12193         (gcc::context::operator new): New.
12194         (gcc::context::gt_ggc_mx): New.
12195         (gcc::context::gt_pch_nx): New.
12196         (gcc::context::gt_pch_nx): New.
12197         (g): Add GTY marking.
12198         (gt_ggc_mx (gcc::context *)): New.
12199         (gt_pch_nx (gcc::context *)): New.
12200         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
12201         void *cookie)): New.
12202         * gengtype.c (open_base_files) <ifiles>: Add context.h.
12204 2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
12206         * dce.c (fini_dce): Call df_analyze again just in case
12207         delete_unmarked_insns removed anything.
12209 2013-08-20  Teresa Johnson  <tejohnson@google.com>
12211         PR rtl-optimizations/57451
12212         * final.c (reemit_insn_block_notes): Prevent lexical blocks
12213         from crossing split section boundaries.
12215 2013-08-20  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
12217         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
12218         * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
12219         with MULTLIB_DEFAULTS.
12221 2013-08-20  Nick Clifton  <nickc@redhat.com>
12223         * target.def (narrow_volatile_bitfield): Note that the default
12224         value is false, not !TARGET_STRICT_ALIGN.
12225         * doc/tm.texi: Regenerate.
12227 2013-08-20  Pavel Chupin  <pavel.v.chupin@intel.com>
12229         Fix LIB_SPEC for systems without libpthread.
12231         * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
12232         * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
12233         for Android.
12234         * config/i386/linux-common.h: Likewise.
12235         * config/mips/linux-common.h: Likewise.
12237 2013-08-20  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
12239         * tree-ssa-ccp.c (get_default_value): Remove redundant condition
12240         checks.
12242 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
12244         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
12245         instances can own GC refs.
12247         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
12248         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
12249         (gcc::context::gt_pch_nx): Likewise.
12250         (gcc::context::gt_pch_nx):  Likewise.
12251         * ggc.h (gt_ggc_mx <T>): New.
12252         (gt_pch_nx_with_op <T>): New.
12253         (gt_pch_nx <T>): New.
12254         * passes.c (opt_pass::gt_ggc_mx): New.
12255         (opt_pass::gt_pch_nx): New.
12256         (opt_pass::gt_pch_nx_with_op): New.
12257         (pass_manager::gt_ggc_mx): New.
12258         (pass_manager::gt_pch_nx): New.
12259         (pass_manager::gt_pch_nx_with_op): New.
12260         (pass_manager::operator new): Use
12261         ggc_internal_cleared_alloc_stat rather than xcalloc.
12262         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
12263         (pass_manager::gt_ggc_mx): New.
12264         (pass_manager::gt_pch_nx): New.
12265         (pass_manager::gt_pch_nx_with_op): New.
12266         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
12267         (opt_pass::operator new): New.
12268         (opt_pass::gt_ggc_mx): New.
12269         (opt_pass::gt_pch_nx): New.
12270         (opt_pass::gt_pch_nx_with_op): New.
12272 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
12274         * Makefile.in (GTFILES): Add context.h.
12275         * context.c (gcc::context::operator new): New.
12276         (gcc::context::gt_ggc_mx): New.
12277         (gcc::context::gt_pch_nx): New.
12278         (gcc::context::gt_pch_nx): New.
12279         * context.h (gcc::context): Add GTY((user)) marking.
12280         (gcc::context::operator new): New.
12281         (gcc::context::gt_ggc_mx): New.
12282         (gcc::context::gt_pch_nx): New.
12283         (gcc::context::gt_pch_nx): New.
12284         (g): Add GTY marking.
12285         (gt_ggc_mx (gcc::context *)): New.
12286         (gt_pch_nx (gcc::context *)): New.
12287         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
12288         void *cookie)): New.
12289         * gengtype.c (open_base_files) <ifiles>: Add context.h.
12291 2013-08-20  Alan Modra  <amodra@gmail.com>
12293         PR target/57865
12294         * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
12295         (rs6000_emit_epilogue): Likewise.
12297 2013-08-19  Dehao Chen  <dehao@google.com>
12299         * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
12301 2013-08-19  Peter Bergner  <bergner@vnet.ibm.com>
12302             Jakub Jelinek  <jakub@redhat.com>
12304         * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
12305         (BUILT_IN_FABSD64): Likewise.
12306         (BUILT_IN_FABSD128): Likewise.
12307         * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
12308         (fold_builtin_1): Likewise.
12309         * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
12310         destination and source operands.
12311         (*abstd2_fpr): Likewise.
12312         (*nabstd2_fpr): Likewise.
12314 2013-08-19  Richard Sandiford  <rdsandiford@googlemail.com>
12316         * config/mips/mips.c (mips_adjust_insn_length): Add checks for
12317         JUMP_P and INSN_P.
12319 2013-08-19  Aldy Hernandez  <aldyh@redhat.com>
12321         * doc/invoke.texi (-fcilkplus): Clarify that implementation is
12322         incomplete.
12324 2013-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12326         * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
12327         * builtins.c (default_libc_has_function): New.
12328         (gnu_libc_has_function): Ditto.
12329         (no_c99_libc_has_function): Ditto.
12330         (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
12331         instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
12332         (fold_builtin_sincos): Likewise.
12333         (fold_builtin_cexp): Likewise.
12334         * builtins.def (DEF_C94_BUILTIN): Likewise.
12335         (DEF_C99_BUILTIN): Likewise.
12336         (DEF_C99_C90RES_BUILTIN): Likewise.
12337         (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
12338         definitions to using this define.
12339         * config/darwin-protos.h (darwin_libc_has_function): New.
12340         * config/darwin.c (darwin_libc_has_function): Ditto.
12341         * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
12342         TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
12343         * config/darwin.h: Ditto.
12344         * config/elfos.h: Ditto.
12345         * config/freebsd.h: Ditto.
12346         * config/i386/cygming.h: Ditto.
12347         * config/i386/djgpp.h: Ditto.
12348         * config/i386/i386-interix.h: Ditto.
12349         * config/microblaze/microblaze.h: Ditto.
12350         * config/mmix/mmix.h: Ditto.
12351         * config/gnu-user.h: Ditto.
12352         * config/ia64/hpux.h: Ditto.
12353         * config/pa/pa-hpux.h: Ditto.
12354         * config/pdp11/pdp11.h: Ditto.
12355         * config/picochip/picochip.h: Ditto.
12356         * config/linux.h: Ditto.
12357         * config/netbsd.h: Ditto.
12358         * config/openbsd.h: Ditto.
12359         * config/rs6000/aix43.h: Ditto.
12360         * config/rs6000/aix51.h: Ditto.
12361         * config/rs6000/aix52.h: Ditto.
12362         * config/rs6000/aix53.h: Ditto.
12363         * config/rs6000/aix61.h: Ditto.
12364         * config/rs6000/darwin.h: Ditto.
12365         * config/rs6000/linux.h: Ditto.
12366         * config/rs6000/linux64.h: Ditto.
12367         * config/s390/tpf.h: Ditto.
12368         * config/sol2-10.h: Ditto.
12369         * config/sol2.h: Ditto.
12370         * config/vms/vms.h: Ditto.
12371         * config/vxworks.h: Ditto.
12372         * config/linux-android.c (linux_android_libc_has_function):
12373         New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
12374         * config/linux-protos.h (linux_android_libc_has_function):
12375         New declaration.
12376         * config/i386/i386.c (ix86_libc_has_function): New.
12377         * config/i386/i386-protos.h
12378         (ix86_libc_has_function): New declaration.
12379         * config/i386/i386.md
12380         ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
12381         ("isinf<mode>2): Likewise.
12382         * convert.c (convert_to_integer): Using new target hook
12383         TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
12384         TARGET_C99_FUNCTIONS.
12385         * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
12386         * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
12387         * coretypes.h (function_class): New enum for different
12388         classes of functions.
12389         * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
12390         * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
12391         (TARGET_HAS_SINCOS): Likewise.
12392         (TARGET_LIBC_HAS_FUNCTION): New.
12393         * doc/tm.texi: Regenerated.
12394         * targhooks.h (default_libc_has_function): New declaration.
12395         (no_c99_libc_has_function): Ditto.
12396         (gnu_libc_has_function): Ditto.
12397         * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
12398         and TARGET_HAS_SINCOS.
12400 2013-08-18  Jan Hubicka  <jh@suse.cz>
12402         * Makeifle-in (ipa-devirt.o): New.
12403         (GTFILES): Add ipa-utils.h and ipa-devirt.c
12404         * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
12405         (analyze_functions): Look into possible targets of polymorphic call.
12406         * dumpfile.c (dump_files): Add type-inheritance dump.
12407         * dumpfile.h (TDI_inheritance): New.
12408         * ipa-devirt.c: New file.
12409         * ipa-utils.h (odr_type_d): Forward declare.
12410         (odr_type): New type.
12411         (build_type_inheritance_graph): Declare.
12412         (possible_polymorphic_call_targets): Declare and introduce inline
12413         variant when only edge is pased.
12414         (dump_possible_polymorphic_call_targets): Likewise.
12415         * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
12416         * tree.c (type_in_anonymous_namespace_p): Break out from ...
12417         (types_same_for_odr): ... here.
12418         * tree.h (type_in_anonymous_namespace_p): Declare.
12420 2013-08-18  Jakub Jelinek  <jakub@redhat.com>
12422         PR tree-optimization/58006
12423         * tree-parloops.c (take_address_of): Don't ICE if get_name
12424         returns NULL.
12425         (eliminate_local_variables_stmt): Remove clobber stmts.
12427 2013-08-18  Eric Botcazou  <ebotcazou@adacore.com>
12429         * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
12430         error message is issued for an alias to undefined symbol.
12432 2013-08-18  Jan Hubicka  <jh@suse.cz>
12434         * cgraph.c (cgraph_create_indirect_edge): Discover
12435         polymorphic calls and record basic info into indirect_info.
12436         * gimple-fold.c (gimple_fold_call): When doing BINFO based
12437         devirtualization, ignore objc function calls.
12438         * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
12439         call with no parm index info.
12440         * ipa-prop.c (ipa_analyze_call_uses): Likewise.
12441         * tree.c (virtual_method_call_p): New function.
12442         * tree.h (virtual_method_call_p): Declare.
12444 2013-08-16  Jan Hubicka  <jh@suse.cz>
12446         PR middle-end/58179
12447         * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
12449 2013-08-16  David Edelsohn  <dje.gcc@gmail.com>
12451         * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
12452         attribute.
12454 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
12456         * gengtype.c (type_for_name): Add special-case support for
12457         locating types within the "gcc::" namespace.
12458         (open_base_files): Emit a "using namespace gcc" directive.
12460 2013-08-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
12462         PR target/58160
12463         * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
12464         memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
12466         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
12467         array instead of each individual operand as a separate argument.
12468         (emit_fusion_gpr_load): Likewise.
12469         (expand_fusion_gpr_load): Add new function declaration.
12471         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
12472         signature to have the operands passed as an array, instead of as
12473         separate arguments.  Allow ZERO_EXTEND to be in the memory
12474         address, and also SIGN_EXTEND if -mpower8-fusion-sign.  Do not
12475         depend on the register live/dead flags when peepholes are run.
12476         (expand_fusion_gpr_load): New function to be called from the
12477         peephole2 pass, to change the register that addis sets to be the
12478         target register.
12479         (emit_fusion_gpr_load): Change the calling signature to have the
12480         operands passed as an array, instead of as separate arguments.
12481         Allow ZERO_EXTEND to be in the memory address, and also
12482         SIGN_EXTEND if -mpower8-fusion-sign.
12484         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
12485         unspec enumeration.
12486         (power8 fusion peephole/peephole2): Rework the fusion peepholes to
12487         adjust the register addis loads up in the peephole2 pass.  Do not
12488         depend on the register live/dead state when the peephole pass is done.
12490 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
12492         * gengtype.c (create_user_defined_type): Ensure that the kind
12493         is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
12494         declaration is seen before the GTY((user)) marking.
12496 2013-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12498         PR target/58105
12499         * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
12501 2013-08-16  Jan Hubicka  <jh@suse.cz>
12503         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
12504         arugment expected_type.
12505         (gimple_fold_call): Use it.
12506         * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
12507         * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
12508         * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
12509         (try_make_edge_direct_virtual_call): Likewise.
12510         * tree.c (obj_type_ref_class): New.
12511         * tree.h (obj_type_ref_class): Use it.
12513 2013-08-16  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12515         * sched-vis.c (rtl_slim_pp_initialized): Remove.
12516         (rtl_slim_pp): Likewise.
12517         (init_rtl_slim_pretty_print): Likewise.
12518         (dump_value_slim):  Don't call it.  Use local pretty printer.
12519         (dump_insn_slim): Likewise.
12520         (dump_rtl_slim): Likewise.
12521         (str_pattern_slim): Likewise.
12522         * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
12523         Simplify.
12525 2013-08-16  Jakub Jelinek  <jakub@redhat.com>
12527         PR tree-optimization/58164
12528         * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
12529         walk gimple_goto_dest of GIMPLE_GOTO.
12531         PR tree-optimization/58165
12532         * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
12533         bi_call must be the last stmt in a bb, don't split_block, instead
12534         use fallthru edge from it and give up if there is none.
12535         Release conds vector when returning early.
12537 2013-08-14  Xinliang David Li  <davidxl@google.com>
12539         * config/i386/i386.c (ix86_option_override_internal):
12540         Remove unused variable and field.
12542 2013-08-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12544         PR target/57949
12545         * doc/invoke.texi: Add documentation of mcompat-align-parm option.
12546         * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
12547         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
12548         and Linux, correct BLKmode alignment when 128-bit alignment is
12549         required and compatibility flag is not set.
12550         (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
12551         for zero-size arguments when compatibility flag is not set.
12553 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
12555         PR tree-optimization/58145
12556         * tree-sra.c (build_ref_for_offset): If prev_base has
12557         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
12559 2013-08-14  Xinliang David Li  <davidxl@google.com>
12561         * config/i386/i386.c (ix86_option_override_internal):
12562         Fix uninitialized variable error.
12564 2013-08-14  Xinliang David Li  <davidxl@google.com>
12566         * config/i386/i386.opt: Define two new options.
12567         * config/i386/x86-tune.def: Add arch selector field in macros.
12568         * config/i386/i386.h: Adjust macro definition.
12569         * config/i386/i386.c (ix86_option_override_internal):
12570         Refactor the code.
12571         (parse_mtune_ctrl_str): New function.
12572         (set_ix86_tune_features): New function.
12573         (ix86_function_specific_restore): Call the new helper function.
12575 2013-08-14  Andrey Belevantsev  <abel@ispras.ru>
12577         PR rtl-optimization/57662
12578         * sel-sched.c (code_motion_process_successors): When the current insn
12579         is removed after the recursive traversal, break from the loop.
12580         Add comments and debug printouts.
12582 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
12583             Alexandre Oliva  <aoliva@redhat.com>
12585         PR target/58067
12586         * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
12587         and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
12588         there also UNSPEC_PLTOFF.
12590 2013-08-14  Marek Polacek  <polacek@redhat.com>
12592         * ipa-inline-analysis.c (add_clause): Avoid shifting integer
12593         NUM_CONDITIONS bit positions.
12595 2013-08-13  Cary Coutant  <ccoutant@google.com>
12597         * dwarf2out.c (CHECKSUM_BLOCK): New macro.
12598         (attr_checksum): Hash vector contents instead of pointer.
12599         (attr_checksum_ordered): Likewise.
12601 2013-08-13  Uros Bizjak  <ubizjak@gmail.com>
12603         * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
12604         when Pmode != word_mode.  Add length_address attribute.
12605         (sse3_monitor_<mode>): Merge from sse3_monitor and
12606         sse3_monitor64_<mode> insn patterns.  Emit addr32 prefix when
12607         Pmode != word_mode.  Update insn length attribute.
12608         * config/i386/i386.c (ix86_option_override_internal): Update
12609         ix86_gen_monitor selection for merged sse3_monitor insn.
12611 2013-08-13  Julian Brown  <julian@codesourcery.com>
12613         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
12614         perform invalid legitimization on greater-than-word-size modes for
12615         TARGET_E500_DOUBLE.
12617 2013-08-13  Vladimir Makarov  <vmakarov@redhat.com>
12619         * ira.c (setup_class_translate_array): Use aclass instead of cl
12620         for classes not fully covered by allocno classes.
12622 2013-08-13  Jakub Jelinek  <jakub@redhat.com>
12624         PR tree-optimization/57661
12625         * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
12626         * tree-inline.c (tree_function_versioning): Initialize it.
12627         (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
12628         if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
12629         that is not being copied.
12631         PR sanitizer/56417
12632         * asan.c (instrument_strlen_call): Fix typo in comment.
12633         Use char * type even for the lhs of POINTER_PLUS_EXPR.
12635 2013-08-13  Steve Ellcey  <sellcey@mips.com>
12637         * config/mips/mips.md (prefetch): Use lw instead of ld on
12638         loongson in 32bit mode.
12640 2013-08-13  Nick Clifton  <nickc@redhat.com>
12642         * config.gcc: (avr-linux): Allow for tmake_file not being empty.
12644 2013-08-13  Jan Hubicka  <jh@suse.cz>
12646         * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
12647         introduced edge; fix typo in sanity check.
12648         (cgraph_resolve_speculation): Export; improve diagnostic.
12649         (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
12650         speculation at type mismatch.
12651         * cgraph.h (cgraph_turn_edge_to_speculative): Update.
12652         (cgraph_resolve_speculation): Declare.
12653         (symtab_can_be_discarded): New function.
12654         * value-prof.c (gimple_ic_transform): Remove actual transform code.
12655         * ipa-inline-transform.c (speculation_removed): New global var.
12656         (clone_inlined_nodes): See if speculation can be removed.
12657         (inline_call): If speculations was removed, we growths may not match.
12658         * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
12659         (speculation_useful_p): New function.
12660         (resolve_noninline_speculation): New function.
12661         (inline_small_functions): Resolve useless speculations.
12662         * ipa-inline.h (speculation_useful_p): Declare
12663         * ipa.c (can_replace_by_local_alias): Simplify.
12664         (ipa_profile): Produce speculative calls in non-lto, too;
12665         add simple cost model; produce local aliases.
12667 2013-08-13  David Malcolm  <dmalcolm@redhat.com>
12669         * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
12670         PASS_MANAGER_H.
12672 2013-08-12  Paolo Carlini  <paolo.carlini@oracle.com>
12674         * config/i386/i386.c (ix86_function_versions): Use error + inform.
12676 2013-08-12  Uros Bizjak  <ubizjak@gmail.com>
12678         * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
12679         iterator instead of X87MODEF.
12681 2013-08-12  Perez Read  <netfirewall@gmail.com>
12683         PR target/58132
12684         * config/i386/i386.md (*movabs<mode>_1):  Add <ptrsize> PTR before
12685         operand 0 for intel asm alternative.
12686         (*movabs<mode>_2): Ditto for operand 1.
12688 2013-08-12  James Greenhalgh  <james.greenhalgh@arm.com>
12690         * config/aarch64/arm_none.h
12691         (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
12693 2013-08-12  Nick Clifton  <nickc@redhat.com>
12695         * config.gcc (m32r-linux): Allow for tmake_file not being empty.
12697 2013-08-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
12699         * config/i386/i386.md (floatunssi<mode>2 expand): Add new
12700         expand for QI/HImode operand to produce more effictive code for
12701         unsigned char(short) --> float(double) conversion.
12703 2013-08-12  Alexander Monakov  <amonakov@ispras.ru>
12705         * doc/invoke.texi: Mention that -ftls-model does not force the final
12706         model.
12708 2013-08-12  Marek Polacek  <polacek@redhat.com>
12709             Marc Glisse  <marc.glisse@inria.fr>
12711         PR tree-optimization/57980
12712         * tree-tailcall.c (process_assignment): Call build_minus_one_cst
12713         when creating -1 constant.
12715 2013-08-10  Jan Hubicka  <jh@suse.cz>
12717         Workaround binutils PR14342.
12718         * tree-profile.c (init_ic_make_global_vars): Add LTO path.
12719         (gimple_init_edge_profiler): Likewise.
12720         (gimple_gen_ic_func_profiler): Likewise.
12722 2013-08-09  Jan Hubicka  <jh@suse.cz>
12724         * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
12726 2013-08-09  Xinliang David Li  <davidxl@google.com>
12728         * config/i386/stringop.def: New file.
12729         * config/i386/stringop.opt: New file.
12730         * config/i386/i386-opts.h: Include stringopt.def.
12731         * config/i386/i386.opt: Include stringopt.opt.
12732         * config/i386/i386.c (ix86_option_override_internal):
12733         Override default size based stringop inline strategies with options.
12734         * config/i386/i386.c (ix86_parse_stringop_strategy_string):
12735         New function.
12737 2013-08-09  Jan Hubicka  <jh@suse.cz>
12739         * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
12741 2013-08-09  Jan Hubicka  <jh@suse.cz>
12743         * cgraph.c (cgraph_resolve_speculation): Cut frequency to
12744         CGRAPH_FREQ_MAX.
12745         (dump_cgraph_node): Dump profile-id.
12746         * cgraph.h (cgraph_indirect_call_info): Add common_target_id
12747         and common_target_probability.
12748         * lto-cgraph.c (lto_output_edge): Stream common targets.
12749         (lto_output_node): Stream profile ids.
12750         (input_node): Stream profile ids.
12751         (input_edge): Stream common targets.
12752         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
12753         * ipa.c: Include value-prof.h
12754         (ipa_profile_generate_summary): Turn indirect call statement histograms
12755         into common targets.
12756         (ipa_profile): Turn common targets into speculative edges.
12758 2013-08-09  Jan Hubicka  <jh@suse.cz>
12760         * cgraph.h (cgraph_node): Add profile_id.
12761         * value-prof.c (cgraph_node_map): Turn into pointer_map.
12762         (init_node_map): Rewrite to handle hashes increas of incremental IDs.
12763         (del_node_map): Update.
12764         (find_func_by_funcdef_no): Replace by ...
12765         (find_func_by_profile_id): ... this one.
12766         (gimple_ic_transform): Do not remove useful histograms when
12767         speculation is not done; dump info when indirect call removal
12768         can happen at LTO.
12769         * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
12770         * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
12771         (__gcov_indirect_call_profiler_v2): .. this one.
12772         * profile.h (init_node_map): Update.
12773         * coverage.c (coverage_compute_profile_id): New function.
12774         * coverage.h (coverage_compute_profile_id): Declare.
12775         * tree-profile.c (init_ic_make_global_vars): Make
12776         __gcov_indirect_call_callee and  __gcov_indirect_call_counters global.
12777         (gimple_init_edge_profiler): Update prototype of
12778         __gcov_indirect_call_profiler.
12779         (gimple_gen_ic_func_profiler): Simplify.
12780         (tree_profiling): Use init_node_map
12782 2013-08-09  Jan Hubicka  <jh@suse.cz>
12784         * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
12785         non-speculative refs.
12786         * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
12787         (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
12788         (cgraph_set_call_stmt): Likewise.
12789         (cgraph_create_edge_1): Fix release checking compilatoin;
12790         clear lto_stmt_uid.
12791         (cgraph_free_edge): Free indirect info.
12792         (cgraph_turn_edge_to_speculative): New function.
12793         (cgraph_speculative_call_info): New function.
12794         (cgraph_make_edge_direct): Return direct edge; handle speculation.
12795         (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
12796         (dump_cgraph_node): Dump speculation.
12797         (verify_edge_count_and_frequency): Accept speculative edges.
12798         (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
12799         (verify_cgraph_node): Handle speculation.
12800         * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
12801         (cgraph_set_call_stmt): Update prototype.
12802         (cgraph_make_edge_direct): Update prototype.
12803         (cgraph_speculative_call_info): Declare.
12804         * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
12805         to change; update call of ipa_find_references.
12806         * ipa-ref.c (ipa_record_reference): Fix return value; clear
12807         lto_stmt_uid and speculative flags.
12808         (ipa_dump_references): Dump speculation.
12809         (ipa_clone_references): Clone speculative flag.
12810         (ipa_clone_referring): Likewise.
12811         (ipa_clone_ref): New function.
12812         (ipa_find_reference): Look into lto_stmt_uids
12813         (ipa_clear_stmts_in_references): Do not clear speculative calls.
12814         * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
12815         (ipa_find_reference): Update declaration.
12816         (ipa_clone_ref): Declare.
12817         * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
12818         stream speculative flag.
12819         (lto_output_ref): Stream statements uids and speculation.
12820         (input_ref): Likewise.
12821         (input_edge): Stream speuclation.
12822         * cgraphclones.c (cgraph_clone_edge): Clone speculation.
12823         (cgraph_set_call_stmt_including_clones): Handle speculation.
12824         * ipa-inline.c (heap_edge_removal_hook): New function.
12825         (inline_small_functions): Register it.
12826         * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
12827         also initialize refs.
12828         * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
12829         edge to change.
12830         (try_make_edge_direct_simple_call): Likewise.
12831         (try_make_edge_direct_simple_call): Likewise.
12832         (update_indirect_edges_after_inlining): Likewise.
12833         (remove_described_reference): Look proper lto_stmt_uid.
12834         (propagate_controlled_uses): Likewise.
12835         (propagate_controlled_uses): Liekwise.
12836         * tree-inline.c (copy_bb): Copy speculative edges.
12837         (redirect_all_calls): New function.
12838         (copy_cfg_body): Do redirection after loop info is updated.
12839         (delete_unreachable_blocks_update_callgraph): Updadte speculation.
12841 2013-08-09  Jan Hubicka  <jh@suse.cz>
12843         * lto-streamer-out.c (output_function): Renumber PHIs.
12844         * lto-streamer-in.c (input_function): Likewise.
12846 2013-08-09  James Greenhalgh  <james.greenhalgh@arm.com>
12848         * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
12849         (get_lane_unsigned): Likewise.
12850         (dup_lane_scalar): Likewise.
12851         (get_lane): enable for VALL.
12852         * config/aarch64/aarch64-simd.md
12853         (aarch64_dup_lane_scalar<mode>): Remove.
12854         (aarch64_get_lane_signed<mode>): Likewise.
12855         (aarch64_get_lane_unsigned<mode>): Likewise.
12856         (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
12857         (aarch64_get_lane_zero_extendsi<mode>): Likewise.
12858         (aarch64_get_lane<mode>): Enable for all vector modes.
12859         (aarch64_get_lanedi): Remove misleading constraints.
12860         * config/aarch64/arm_neon.h
12861         (__aarch64_vget_lane_any): Define.
12862         (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
12863         (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
12864         (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
12865         * config/aarch64/iterators.md (VDQQH): New.
12866         (VDQQHS): Likewise.
12867         (vwcore): Likewise.
12869 2013-08-09  Eric Botcazou  <ebotcazou@adacore.com>
12871         * configure.ac: Add GAS check for LEON instructions on SPARC.
12872         * configure: Regenerate.
12873         * config.in: Likewise.
12874         * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
12875         sparc*-*-* block.
12876         * config/sparc/sparc.opt (LEON, LEON3): New masks.
12877         * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
12878         for LEON or LEON3.
12879         (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
12880         (AS_LEON_FLAG): New macro.
12881         * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
12882         and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
12883         Deal with LEON and LEON3 for the memory model.
12884         * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
12885         (atomic_compare_and_swap<mode>_1): Likewise.
12886         (*atomic_compare_and_swap<mode>_1): Likewise.
12888 2013-08-09  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
12890         * config/arm/neon.md (vcond): Fix floating-point vector
12891         comparisons against 0.
12893 2013-08-08  Vladimir Makarov  <vmakarov@redhat.com>
12895         * lra-constraints.c (emit_spill_move): Remove assert.
12896         (process_alt_operands): Add more debugging
12897         output.  Increase reject for spilling into memory.  Decrease
12898         reject for reloading scratch.
12899         (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
12901 2013-08-08  Steve Ellcey  <sellcey@mips.com>
12903         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
12904         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
12905         micromips incompatible.  Add nan2008.
12906         (MULTILIB_DIRNAMES): Add nan2008.
12907         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
12908         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
12909         and micromips incompatible.  Add nan2008.
12910         (MULTILIB_DIRNAMES): Add nan2008.
12911         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
12913 2013-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
12915         PR rtl-optimization/58079
12916         * combine.c (combine_simplify_rtx): Avoid using SUBST if
12917         simplify_comparison has widened a comparison with an integer.
12919 2013-08-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12921         * config/arm/neon.md (movmisalign<mode>): Disable when we
12922         don't allow unaligned accesses.
12923         (*movmisalign<mode>_neon_store): Likewise.
12924         (*movmisalign<mode>_neon_load): Likewise.
12925         (*movmisalign<mode>_neon_store): Likewise.
12926         (*movmisalign<mode>_neon_load): Likewise.
12928 2013-08-08  Jan Hubicka  <jh@suse.cz>
12930         * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
12931         (make_pass_rebuild_cgraph_edges): Also clear references.
12932         * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
12933         * ipa-inline-transform.c (inline_transform): Remove all references
12934         after inlining.
12935         * cgraphunit.c (expand_function): Remove all references after
12936         expansion.
12937         * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
12938         (ipa_find_reference): Rewrite to iterator.
12939         (remove_stmt_references): Likewise.
12940         (ipa_clear_stmts_in_references): New function.
12941         * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
12942         * cgraphclones.c (cgraph_materialize_all_clones): Remove or
12943         clear references.
12944         * ipa-split.c (split_function): Remove references in split function.
12946 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
12948         PR target/57431
12949         * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
12950         (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
12952 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
12954         PR target/56979
12955         * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
12956         suggested mode for the assignment isn't compatible with the
12957         registers required.
12959 2013-08-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12961         PR target/58065
12962         * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
12964 2013-08-07  Xinliang David Li  <davidxl@google.com>
12966         * config/i386/i386.opt: New option -mtune-ctrl=.
12967         * config/i386/x86-tune.def: New file.
12968         * config/i386/i386.h: include x86-tune.def.
12969         * config/i386/i386.c (ix86_option_override_internal):
12970         Parsing -mtune-ctrl= option and set tune features.
12972 2013-08-07  Oleg Endo  <olegendo@gcc.gnu.org>
12974         PR other/12081
12975         * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
12976         (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
12977         to gen_2arg_fn_t.
12979 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
12981         * rtl.h (update_alignments): Declare.
12982         * final.c (grow_label_align): New function extracted from...
12983         (shorten_branches): ...here.  Call it.
12984         (update_alignments): New function.
12985         * reorg.c (sibling_labels): New variable.
12986         (get_label_before): Add SIBLING parameter.  If it is non-zero, push
12987         the new label along with it onto the sibling_labels vector.
12988         (fill_simple_delay_slots): Adjust call to get_label_before.
12989         (fill_slots_from_thread): Likewise.
12990         (relax_delay_slots): Likewise.
12991         (make_return_insns): Likewise.
12992         (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
12994 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
12996         * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
12997         document its semantics.
12998         (diagnostic_report_diagnostic): Adjust accordingly.
13000 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
13002         * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
13003         (sparc_option_override): ...and port to new C++ pass API.
13004         * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
13006 2013-08-07  Peter Bergner  <bergner@vnet.ibm.com>
13008         * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
13010 2013-08-06  Caroline Tice  <cmtice@google.com>
13012         * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
13013         (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
13014         * tree-pass.h: Add pass_vtable_verify.
13015         * varasm.c (assemble_variable): Add code to properly set the comdat
13016         section and name for the .vtable_map_vars section.
13017         (assemble_vtyv_preinit_initializer): New function.
13018         (default_sectin_type_flags):  Make sure .vtable_map_vars section has
13019         LINK_ONCE flag.
13020         * output.h: Add function decl for assemble_vtv_preinit_initializer.
13021         * vtable-verify.c: New file.
13022         * vtable-verify.h: New file.
13023         * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
13024         initialiation levels.
13025         * timevar.def (TV_VTABLE_VERIFICATION): New definition.
13026         * passes.def: Insert pass_vtable_verify.
13027         * aclocal.m4: Reorder includes.
13028         * doc/invoke.texi:  Document the -fvtable-verify=, -fvtv-debug, and
13029         -fvtv-counts options.
13030         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
13031         as appropriate, if -fvtable-verify=... is used.
13032         (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
13033         -fvtable-verify=... is used.
13034         * Makefile.in (OBJS):  Add vtable-verify.o to list.
13035         (vtable-verify.o): Add new build rule.
13036         (GTFILES): Add vtable-verify.c to list.
13037         * common.opt (fvtable-verify=): New flag.
13038         (vtv_priority): Values for fvtable-verify= flag.
13039         (fvtv-counts): New flag.
13040         (fvtv-debug): New flag.
13041         * tree.h (save_vtable_map_decl): New extern function decl.
13043 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
13045         * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
13046         (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
13047         (pass_data_rl78_devirt): ...new pass_data instance and...
13048         (make_pass_rl78_devirt): ...new function.
13049         (rl78_asm_file_start): Port pass registration to new C++ API.
13051 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
13053         * coretypes.h (rtl_opt_pass): Add.
13054         (gcc::context): Add.
13055         * config/epiphany/epiphany.c (pass_mode_switch_use): New.
13056         (epiphany_init): Port to new C++ pass API.
13057         (epiphany_optimize_mode_switching): Likewise.
13058         * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
13059         (pass_manager::get_pass_mode_switching): New.
13060         (pass_manager::get_pass_peephole2): New.
13061         * mode-switching.c (pass_mode_switching): Add clone method.
13062         * recog.c (pass_peephole2): Add clone method.
13063         (pass_split_all_insns): Add clone method.
13065 2013-08-06  David Malcolm  <dmalcolm@redhat.com>
13067         * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
13068         (mips_option_override): ...here, porting to new C++ API for passes.
13070 2013-08-06  Jan Hubicka  <jh@suse.cz>
13072         * cgraph.c (cgraph_get_body): New function based on lto.c
13073         implementation.
13074         * cgraph.h (cgraph_get_body): Declare.
13075         * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
13076         LTO paths.
13077         * cgraphunit.c (expand_function): Get body prior expanding.
13078         * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
13079         * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
13080         really need.
13081         * passes.c (do_per_function_toporder): Get body.
13082         * tree-inline.c (expand_call_inline): Get body prior inlining it.
13083         * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
13085 2013-08-06  Martin Jambor  <mjambor@suse.cz>
13087         PR fortran/57987
13088         * cgraphunit.c (cgraph_finalize_function): Assert that nested function
13089         is not re-finalized.  Rename second parameter to no_collect.
13091 2013-08-06  Martin Jambor  <mjambor@suse.cz>
13093         PR middle-end/58041
13094         * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
13095         MEM_REF has proper alignment information.
13097 2013-08-05  Oleg Endo  <olegendo@gcc.gnu.org>
13099         PR other/12081
13100         * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
13101         class insn_gen_fn.
13102         * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
13103         rtx (*) (rtx, ...) with insn_gen_fn.
13104         * genoutput.c (output_insn_data): Cast gen_? function pointers to
13105         insn_gen_fn::stored_funcptr.  Add initializer braces.
13107 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
13109         Rewrite how instances of passes are cloned to remove assumptions
13110         about their sizes (thus allowing pass subclasses to have
13111         additional data fields, albeit non-GC-managed ones at this point).
13113         * passes.c (make_pass_instance): Now that passes have clone
13114         methods, rewrite this function to eliminate XNEW and memcpy
13115         calls that used hardcoded sizes.  Since this function no longer
13116         creates pass instances, rename it to...
13117         (add_pass_instance): ...this.  Document the old way that passes were
13118         numbered and flagged, and rework this function to continue using it.
13119         (next_pass_1): Add an initial_pass argument for use by
13120         add_pass_instance.
13121         (position_pass): When adding multiple instances of a pass, use
13122         the pass's clone method, rather than relying on the XNEW/memcpy
13123         within the former make_pass_instance (now add_pass_instance).
13124         (pass_manager::pass_manager): When invoking next_pass_1, also supply
13125         the initial instance of the current pass within the pass manager.
13127 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
13129         This is the automated part of the conversion of passes from C
13130         structs to C++ classes.
13132         Patch autogenerated by refactor_passes.py from
13133         https://github.com/davidmalcolm/gcc-refactoring-scripts
13134         revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
13136         * asan.c (pass_asan): Convert from a global struct to a subclass of
13137         gimple_opt_pass along with...
13138         (pass_data_asan): ...new pass_data instance and...
13139         (make_pass_asan): ...new function.
13140         (pass_asan_O0): Convert from a global struct to a subclass of
13141         gimple_opt_pass along with...
13142         (pass_data_asan_O0): ...new pass_data instance and...
13143         (make_pass_asan_O0): ...new function.
13144         * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
13145         subclass of rtl_opt_pass along with...
13146         (pass_data_inc_dec): ...new pass_data instance and...
13147         (make_pass_inc_dec): ...new function.
13148         * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
13149         a subclass of rtl_opt_pass along with...
13150         (pass_data_reorder_blocks): ...new pass_data instance and...
13151         (make_pass_reorder_blocks): ...new function.
13152         (pass_duplicate_computed_gotos): Convert from a global struct to a
13153         subclass of rtl_opt_pass along with...
13154         (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
13155         (make_pass_duplicate_computed_gotos): ...new function.
13156         (pass_partition_blocks): Convert from a global struct to a subclass of
13157         rtl_opt_pass along with...
13158         (pass_data_partition_blocks): ...new pass_data instance and...
13159         (make_pass_partition_blocks): ...new function.
13160         * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
13161         struct to a subclass of rtl_opt_pass along with...
13162         (pass_data_branch_target_load_optimize1): ...new pass_data instance
13163         and...
13164         (make_pass_branch_target_load_optimize1): ...new function.
13165         (pass_branch_target_load_optimize2): Convert from a global struct to a
13166         subclass of rtl_opt_pass along with...
13167         (pass_data_branch_target_load_optimize2): ...new pass_data instance
13168         and...
13169         (make_pass_branch_target_load_optimize2): ...new function.
13170         * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
13171         of rtl_opt_pass along with...
13172         (pass_data_jump): ...new pass_data instance and...
13173         (make_pass_jump): ...new function.
13174         (pass_jump2): Convert from a global struct to a subclass of
13175         rtl_opt_pass along with...
13176         (pass_data_jump2): ...new pass_data instance and...
13177         (make_pass_jump2): ...new function.
13178         * cfgexpand.c (pass_expand): Convert from a global struct to a
13179         subclass of rtl_opt_pass along with...
13180         (pass_data_expand): ...new pass_data instance and...
13181         (make_pass_expand): ...new function.
13182         * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
13183         of rtl_opt_pass along with...
13184         (pass_data_free_cfg): ...new pass_data instance and...
13185         (make_pass_free_cfg): ...new function.
13186         (pass_into_cfg_layout_mode): Convert from a global struct to a
13187         subclass of rtl_opt_pass along with...
13188         (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
13189         (make_pass_into_cfg_layout_mode): ...new function.
13190         (pass_outof_cfg_layout_mode): Convert from a global struct to a
13191         subclass of rtl_opt_pass along with...
13192         (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
13193         (make_pass_outof_cfg_layout_mode): ...new function.
13194         * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
13195         struct to a subclass of gimple_opt_pass along with...
13196         (pass_data_build_cgraph_edges): ...new pass_data instance and...
13197         (make_pass_build_cgraph_edges): ...new function.
13198         (pass_rebuild_cgraph_edges): Convert from a global struct to a
13199         subclass of gimple_opt_pass along with...
13200         (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
13201         (make_pass_rebuild_cgraph_edges): ...new function.
13202         (pass_remove_cgraph_callee_edges): Convert from a global struct to a
13203         subclass of gimple_opt_pass along with...
13204         (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
13205         and...
13206         (make_pass_remove_cgraph_callee_edges): ...new function.
13207         * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
13208         struct to a subclass of rtl_opt_pass along with...
13209         (pass_data_stack_adjustments): ...new pass_data instance and...
13210         (make_pass_stack_adjustments): ...new function.
13211         * combine.c (pass_combine): Convert from a global struct to a subclass
13212         of rtl_opt_pass along with...
13213         (pass_data_combine): ...new pass_data instance and...
13214         (make_pass_combine): ...new function.
13215         * compare-elim.c (pass_compare_elim_after_reload): Convert from a
13216         global struct to a subclass of rtl_opt_pass along with...
13217         (pass_data_compare_elim_after_reload): ...new pass_data instance
13218         and...
13219         (make_pass_compare_elim_after_reload): ...new function.
13220         * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
13221         of rtl_opt_pass along with...
13222         (pass_data_rtl_cprop): ...new pass_data instance and...
13223         (make_pass_rtl_cprop): ...new function.
13224         * cse.c (pass_cse): Convert from a global struct to a subclass of
13225         rtl_opt_pass along with...
13226         (pass_data_cse): ...new pass_data instance and...
13227         (make_pass_cse): ...new function.
13228         (pass_cse2): Convert from a global struct to a subclass of
13229         rtl_opt_pass along with...
13230         (pass_data_cse2): ...new pass_data instance and...
13231         (make_pass_cse2): ...new function.
13232         (pass_cse_after_global_opts): Convert from a global struct to a
13233         subclass of rtl_opt_pass along with...
13234         (pass_data_cse_after_global_opts): ...new pass_data instance and...
13235         (make_pass_cse_after_global_opts): ...new function.
13236         * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
13237         of rtl_opt_pass along with...
13238         (pass_data_ud_rtl_dce): ...new pass_data instance and...
13239         (make_pass_ud_rtl_dce): ...new function.
13240         (pass_fast_rtl_dce): Convert from a global struct to a subclass of
13241         rtl_opt_pass along with...
13242         (pass_data_fast_rtl_dce): ...new pass_data instance and...
13243         (make_pass_fast_rtl_dce): ...new function.
13244         * df-core.c (pass_df_initialize_opt): Convert from a global struct to
13245         a subclass of rtl_opt_pass along with...
13246         (pass_data_df_initialize_opt): ...new pass_data instance and...
13247         (make_pass_df_initialize_opt): ...new function.
13248         (pass_df_initialize_no_opt): Convert from a global struct to a
13249         subclass of rtl_opt_pass along with...
13250         (pass_data_df_initialize_no_opt): ...new pass_data instance and...
13251         (make_pass_df_initialize_no_opt): ...new function.
13252         (pass_df_finish): Convert from a global struct to a subclass of
13253         rtl_opt_pass along with...
13254         (pass_data_df_finish): ...new pass_data instance and...
13255         (make_pass_df_finish): ...new function.
13256         * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
13257         rtl_opt_pass along with...
13258         (pass_data_rtl_dse1): ...new pass_data instance and...
13259         (make_pass_rtl_dse1): ...new function.
13260         (pass_rtl_dse2): Convert from a global struct to a subclass of
13261         rtl_opt_pass along with...
13262         (pass_data_rtl_dse2): ...new pass_data instance and...
13263         (make_pass_rtl_dse2): ...new function.
13264         * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
13265         subclass of rtl_opt_pass along with...
13266         (pass_data_dwarf2_frame): ...new pass_data instance and...
13267         (make_pass_dwarf2_frame): ...new function.
13268         * except.c (pass_set_nothrow_function_flags): Convert from a global
13269         struct to a subclass of rtl_opt_pass along with...
13270         (pass_data_set_nothrow_function_flags): ...new pass_data instance
13271         and...
13272         (make_pass_set_nothrow_function_flags): ...new function.
13273         (pass_convert_to_eh_region_ranges): Convert from a global struct to a
13274         subclass of rtl_opt_pass along with...
13275         (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
13276         and...
13277         (make_pass_convert_to_eh_region_ranges): ...new function.
13278         * final.c (pass_compute_alignments): Convert from a global struct to a
13279         subclass of rtl_opt_pass along with...
13280         (pass_data_compute_alignments): ...new pass_data instance and...
13281         (make_pass_compute_alignments): ...new function.
13282         (pass_final): Convert from a global struct to a subclass of
13283         rtl_opt_pass along with...
13284         (pass_data_final): ...new pass_data instance and...
13285         (make_pass_final): ...new function.
13286         (pass_shorten_branches): Convert from a global struct to a subclass of
13287         rtl_opt_pass along with...
13288         (pass_data_shorten_branches): ...new pass_data instance and...
13289         (make_pass_shorten_branches): ...new function.
13290         (pass_clean_state): Convert from a global struct to a subclass of
13291         rtl_opt_pass along with...
13292         (pass_data_clean_state): ...new pass_data instance and...
13293         (make_pass_clean_state): ...new function.
13294         * function.c (pass_instantiate_virtual_regs): Convert from a global
13295         struct to a subclass of rtl_opt_pass along with...
13296         (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
13297         (make_pass_instantiate_virtual_regs): ...new function.
13298         (pass_leaf_regs): Convert from a global struct to a subclass of
13299         rtl_opt_pass along with...
13300         (pass_data_leaf_regs): ...new pass_data instance and...
13301         (make_pass_leaf_regs): ...new function.
13302         (pass_thread_prologue_and_epilogue): Convert from a global struct to a
13303         subclass of rtl_opt_pass along with...
13304         (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
13305         and...
13306         (make_pass_thread_prologue_and_epilogue): ...new function.
13307         (pass_match_asm_constraints): Convert from a global struct to a
13308         subclass of rtl_opt_pass along with...
13309         (pass_data_match_asm_constraints): ...new pass_data instance and...
13310         (make_pass_match_asm_constraints): ...new function.
13311         * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
13312         subclass of rtl_opt_pass along with...
13313         (pass_data_rtl_fwprop): ...new pass_data instance and...
13314         (make_pass_rtl_fwprop): ...new function.
13315         (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
13316         rtl_opt_pass along with...
13317         (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
13318         (make_pass_rtl_fwprop_addr): ...new function.
13319         * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
13320         rtl_opt_pass along with...
13321         (pass_data_rtl_pre): ...new pass_data instance and...
13322         (make_pass_rtl_pre): ...new function.
13323         (pass_rtl_hoist): Convert from a global struct to a subclass of
13324         rtl_opt_pass along with...
13325         (pass_data_rtl_hoist): ...new pass_data instance and...
13326         (make_pass_rtl_hoist): ...new function.
13327         * gimple-low.c (pass_lower_cf): Convert from a global struct to a
13328         subclass of gimple_opt_pass along with...
13329         (pass_data_lower_cf): ...new pass_data instance and...
13330         (make_pass_lower_cf): ...new function.
13331         * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
13332         from a global struct to a subclass of gimple_opt_pass along with...
13333         (pass_data_strength_reduction): ...new pass_data instance and...
13334         (make_pass_strength_reduction): ...new function.
13335         * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
13336         of rtl_opt_pass along with...
13337         (pass_data_rtl_ifcvt): ...new pass_data instance and...
13338         (make_pass_rtl_ifcvt): ...new function.
13339         (pass_if_after_combine): Convert from a global struct to a subclass of
13340         rtl_opt_pass along with...
13341         (pass_data_if_after_combine): ...new pass_data instance and...
13342         (make_pass_if_after_combine): ...new function.
13343         (pass_if_after_reload): Convert from a global struct to a subclass of
13344         rtl_opt_pass along with...
13345         (pass_data_if_after_reload): ...new pass_data instance and...
13346         (make_pass_if_after_reload): ...new function.
13347         * init-regs.c (pass_initialize_regs): Convert from a global struct to
13348         a subclass of rtl_opt_pass along with...
13349         (pass_data_initialize_regs): ...new pass_data instance and...
13350         (make_pass_initialize_regs): ...new function.
13351         * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
13352         of ipa_opt_pass_d along with...
13353         (pass_data_ipa_cp): ...new pass_data instance and...
13354         (make_pass_ipa_cp): ...new function.
13355         * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
13356         global struct to a subclass of gimple_opt_pass along with...
13357         (pass_data_inline_parameters): ...new pass_data instance and...
13358         (make_pass_inline_parameters): ...new function.
13359         * ipa-inline.c (pass_early_inline): Convert from a global struct to a
13360         subclass of gimple_opt_pass along with...
13361         (pass_data_early_inline): ...new pass_data instance and...
13362         (make_pass_early_inline): ...new function.
13363         (pass_ipa_inline): Convert from a global struct to a subclass of
13364         ipa_opt_pass_d along with...
13365         (pass_data_ipa_inline): ...new pass_data instance and...
13366         (make_pass_ipa_inline): ...new function.
13367         * ipa-pure-const.c (pass_local_pure_const): Convert from a global
13368         struct to a subclass of gimple_opt_pass along with...
13369         (pass_data_local_pure_const): ...new pass_data instance and...
13370         (make_pass_local_pure_const): ...new function.
13371         (pass_ipa_pure_const): Convert from a global struct to a subclass of
13372         ipa_opt_pass_d along with...
13373         (pass_data_ipa_pure_const): ...new pass_data instance and...
13374         (make_pass_ipa_pure_const): ...new function.
13375         * ipa-reference.c (pass_ipa_reference): Convert from a global struct
13376         to a subclass of ipa_opt_pass_d along with...
13377         (pass_data_ipa_reference): ...new pass_data instance and...
13378         (make_pass_ipa_reference): ...new function.
13379         * ipa-split.c (pass_split_functions): Convert from a global struct to
13380         a subclass of gimple_opt_pass along with...
13381         (pass_data_split_functions): ...new pass_data instance and...
13382         (make_pass_split_functions): ...new function.
13383         (pass_feedback_split_functions): Convert from a global struct to a
13384         subclass of gimple_opt_pass along with...
13385         (pass_data_feedback_split_functions): ...new pass_data instance and...
13386         (make_pass_feedback_split_functions): ...new function.
13387         * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
13388         global struct to a subclass of simple_ipa_opt_pass along with...
13389         (pass_data_ipa_function_and_variable_visibility): ...new pass_data
13390         instance and...
13391         (make_pass_ipa_function_and_variable_visibility): ...new function.
13392         (pass_ipa_free_inline_summary): Convert from a global struct to a
13393         subclass of simple_ipa_opt_pass along with...
13394         (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
13395         (make_pass_ipa_free_inline_summary): ...new function.
13396         (pass_ipa_whole_program_visibility): Convert from a global struct to a
13397         subclass of ipa_opt_pass_d along with...
13398         (pass_data_ipa_whole_program_visibility): ...new pass_data instance
13399         and...
13400         (make_pass_ipa_whole_program_visibility): ...new function.
13401         (pass_ipa_profile): Convert from a global struct to a subclass of
13402         ipa_opt_pass_d along with...
13403         (pass_data_ipa_profile): ...new pass_data instance and...
13404         (make_pass_ipa_profile): ...new function.
13405         (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
13406         ipa_opt_pass_d along with...
13407         (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
13408         (make_pass_ipa_cdtor_merge): ...new function.
13409         * ira.c (pass_ira): Convert from a global struct to a subclass of
13410         rtl_opt_pass along with...
13411         (pass_data_ira): ...new pass_data instance and...
13412         (make_pass_ira): ...new function.
13413         (pass_reload): Convert from a global struct to a subclass of
13414         rtl_opt_pass along with...
13415         (pass_data_reload): ...new pass_data instance and...
13416         (make_pass_reload): ...new function.
13417         * jump.c (pass_cleanup_barriers): Convert from a global struct to a
13418         subclass of rtl_opt_pass along with...
13419         (pass_data_cleanup_barriers): ...new pass_data instance and...
13420         (make_pass_cleanup_barriers): ...new function.
13421         * loop-init.c (pass_loop2): Convert from a global struct to a subclass
13422         of rtl_opt_pass along with...
13423         (pass_data_loop2): ...new pass_data instance and...
13424         (make_pass_loop2): ...new function.
13425         (pass_rtl_loop_init): Convert from a global struct to a subclass of
13426         rtl_opt_pass along with...
13427         (pass_data_rtl_loop_init): ...new pass_data instance and...
13428         (make_pass_rtl_loop_init): ...new function.
13429         (pass_rtl_loop_done): Convert from a global struct to a subclass of
13430         rtl_opt_pass along with...
13431         (pass_data_rtl_loop_done): ...new pass_data instance and...
13432         (make_pass_rtl_loop_done): ...new function.
13433         (pass_rtl_move_loop_invariants): Convert from a global struct to a
13434         subclass of rtl_opt_pass along with...
13435         (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
13436         (make_pass_rtl_move_loop_invariants): ...new function.
13437         (pass_rtl_unswitch): Convert from a global struct to a subclass of
13438         rtl_opt_pass along with...
13439         (pass_data_rtl_unswitch): ...new pass_data instance and...
13440         (make_pass_rtl_unswitch): ...new function.
13441         (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
13442         subclass of rtl_opt_pass along with...
13443         (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
13444         and...
13445         (make_pass_rtl_unroll_and_peel_loops): ...new function.
13446         (pass_rtl_doloop): Convert from a global struct to a subclass of
13447         rtl_opt_pass along with...
13448         (pass_data_rtl_doloop): ...new pass_data instance and...
13449         (make_pass_rtl_doloop): ...new function.
13450         * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
13451         a subclass of rtl_opt_pass along with...
13452         (pass_data_lower_subreg): ...new pass_data instance and...
13453         (make_pass_lower_subreg): ...new function.
13454         (pass_lower_subreg2): Convert from a global struct to a subclass of
13455         rtl_opt_pass along with...
13456         (pass_data_lower_subreg2): ...new pass_data instance and...
13457         (make_pass_lower_subreg2): ...new function.
13458         * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
13459         struct to a subclass of ipa_opt_pass_d along with...
13460         (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
13461         (make_pass_ipa_lto_gimple_out): ...new function.
13462         (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
13463         of ipa_opt_pass_d along with...
13464         (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
13465         (make_pass_ipa_lto_finish_out): ...new function.
13466         * mode-switching.c (pass_mode_switching): Convert from a global struct
13467         to a subclass of rtl_opt_pass along with...
13468         (pass_data_mode_switching): ...new pass_data instance and...
13469         (make_pass_mode_switching): ...new function.
13470         * modulo-sched.c (pass_sms): Convert from a global struct to a
13471         subclass of rtl_opt_pass along with...
13472         (pass_data_sms): ...new pass_data instance and...
13473         (make_pass_sms): ...new function.
13474         * omp-low.c (pass_expand_omp): Convert from a global struct to a
13475         subclass of gimple_opt_pass along with...
13476         (pass_data_expand_omp): ...new pass_data instance and...
13477         (make_pass_expand_omp): ...new function.
13478         (pass_lower_omp): Convert from a global struct to a subclass of
13479         gimple_opt_pass along with...
13480         (pass_data_lower_omp): ...new pass_data instance and...
13481         (make_pass_lower_omp): ...new function.
13482         (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
13483         of gimple_opt_pass along with...
13484         (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
13485         (make_pass_diagnose_omp_blocks): ...new function.
13486         * passes.c (pass_early_local_passes): Convert from a global struct to
13487         a subclass of simple_ipa_opt_pass along with...
13488         (pass_data_early_local_passes): ...new pass_data instance and...
13489         (make_pass_early_local_passes): ...new function.
13490         (pass_all_early_optimizations): Convert from a global struct to a
13491         subclass of gimple_opt_pass along with...
13492         (pass_data_all_early_optimizations): ...new pass_data instance and...
13493         (make_pass_all_early_optimizations): ...new function.
13494         (pass_all_optimizations): Convert from a global struct to a subclass
13495         of gimple_opt_pass along with...
13496         (pass_data_all_optimizations): ...new pass_data instance and...
13497         (make_pass_all_optimizations): ...new function.
13498         (pass_all_optimizations_g): Convert from a global struct to a subclass
13499         of gimple_opt_pass along with...
13500         (pass_data_all_optimizations_g): ...new pass_data instance and...
13501         (make_pass_all_optimizations_g): ...new function.
13502         (pass_rest_of_compilation): Convert from a global struct to a subclass
13503         of rtl_opt_pass along with...
13504         (pass_data_rest_of_compilation): ...new pass_data instance and...
13505         (make_pass_rest_of_compilation): ...new function.
13506         (pass_postreload): Convert from a global struct to a subclass of
13507         rtl_opt_pass along with...
13508         (pass_data_postreload): ...new pass_data instance and...
13509         (make_pass_postreload): ...new function.
13510         * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
13511         subclass of rtl_opt_pass along with...
13512         (pass_data_gcse2): ...new pass_data instance and...
13513         (make_pass_gcse2): ...new function.
13514         * postreload.c (pass_postreload_cse): Convert from a global struct to
13515         a subclass of rtl_opt_pass along with...
13516         (pass_data_postreload_cse): ...new pass_data instance and...
13517         (make_pass_postreload_cse): ...new function.
13518         * predict.c (pass_profile): Convert from a global struct to a subclass
13519         of gimple_opt_pass along with...
13520         (pass_data_profile): ...new pass_data instance and...
13521         (make_pass_profile): ...new function.
13522         (pass_strip_predict_hints): Convert from a global struct to a subclass
13523         of gimple_opt_pass along with...
13524         (pass_data_strip_predict_hints): ...new pass_data instance and...
13525         (make_pass_strip_predict_hints): ...new function.
13526         * recog.c (pass_peephole2): Convert from a global struct to a subclass
13527         of rtl_opt_pass along with...
13528         (pass_data_peephole2): ...new pass_data instance and...
13529         (make_pass_peephole2): ...new function.
13530         (pass_split_all_insns): Convert from a global struct to a subclass of
13531         rtl_opt_pass along with...
13532         (pass_data_split_all_insns): ...new pass_data instance and...
13533         (make_pass_split_all_insns): ...new function.
13534         (pass_split_after_reload): Convert from a global struct to a subclass
13535         of rtl_opt_pass along with...
13536         (pass_data_split_after_reload): ...new pass_data instance and...
13537         (make_pass_split_after_reload): ...new function.
13538         (pass_split_before_regstack): Convert from a global struct to a
13539         subclass of rtl_opt_pass along with...
13540         (pass_data_split_before_regstack): ...new pass_data instance and...
13541         (make_pass_split_before_regstack): ...new function.
13542         (pass_split_before_sched2): Convert from a global struct to a subclass
13543         of rtl_opt_pass along with...
13544         (pass_data_split_before_sched2): ...new pass_data instance and...
13545         (make_pass_split_before_sched2): ...new function.
13546         (pass_split_for_shorten_branches): Convert from a global struct to a
13547         subclass of rtl_opt_pass along with...
13548         (pass_data_split_for_shorten_branches): ...new pass_data instance
13549         and...
13550         (make_pass_split_for_shorten_branches): ...new function.
13551         * ree.c (pass_ree): Convert from a global struct to a subclass of
13552         rtl_opt_pass along with...
13553         (pass_data_ree): ...new pass_data instance and...
13554         (make_pass_ree): ...new function.
13555         * reg-stack.c (pass_stack_regs): Convert from a global struct to a
13556         subclass of rtl_opt_pass along with...
13557         (pass_data_stack_regs): ...new pass_data instance and...
13558         (make_pass_stack_regs): ...new function.
13559         (pass_stack_regs_run): Convert from a global struct to a subclass of
13560         rtl_opt_pass along with...
13561         (pass_data_stack_regs_run): ...new pass_data instance and...
13562         (make_pass_stack_regs_run): ...new function.
13563         * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
13564         subclass of rtl_opt_pass along with...
13565         (pass_data_cprop_hardreg): ...new pass_data instance and...
13566         (make_pass_cprop_hardreg): ...new function.
13567         * reginfo.c (pass_reginfo_init): Convert from a global struct to a
13568         subclass of rtl_opt_pass along with...
13569         (pass_data_reginfo_init): ...new pass_data instance and...
13570         (make_pass_reginfo_init): ...new function.
13571         * regmove.c (pass_regmove): Convert from a global struct to a subclass
13572         of rtl_opt_pass along with...
13573         (pass_data_regmove): ...new pass_data instance and...
13574         (make_pass_regmove): ...new function.
13575         * regrename.c (pass_regrename): Convert from a global struct to a
13576         subclass of rtl_opt_pass along with...
13577         (pass_data_regrename): ...new pass_data instance and...
13578         (make_pass_regrename): ...new function.
13579         * reorg.c (pass_delay_slots): Convert from a global struct to a
13580         subclass of rtl_opt_pass along with...
13581         (pass_data_delay_slots): ...new pass_data instance and...
13582         (make_pass_delay_slots): ...new function.
13583         (pass_machine_reorg): Convert from a global struct to a subclass of
13584         rtl_opt_pass along with...
13585         (pass_data_machine_reorg): ...new pass_data instance and...
13586         (make_pass_machine_reorg): ...new function.
13587         * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
13588         of rtl_opt_pass along with...
13589         (pass_data_sched): ...new pass_data instance and...
13590         (make_pass_sched): ...new function.
13591         (pass_sched2): Convert from a global struct to a subclass of
13592         rtl_opt_pass along with...
13593         (pass_data_sched2): ...new pass_data instance and...
13594         (make_pass_sched2): ...new function.
13595         * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
13596         to a subclass of rtl_opt_pass along with...
13597         (pass_data_stack_ptr_mod): ...new pass_data instance and...
13598         (make_pass_stack_ptr_mod): ...new function.
13599         * store-motion.c (pass_rtl_store_motion): Convert from a global struct
13600         to a subclass of rtl_opt_pass along with...
13601         (pass_data_rtl_store_motion): ...new pass_data instance and...
13602         (make_pass_rtl_store_motion): ...new function.
13603         * tracer.c (pass_tracer): Convert from a global struct to a subclass
13604         of gimple_opt_pass along with...
13605         (pass_data_tracer): ...new pass_data instance and...
13606         (make_pass_tracer): ...new function.
13607         * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
13608         to a subclass of gimple_opt_pass along with...
13609         (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
13610         (make_pass_diagnose_tm_blocks): ...new function.
13611         (pass_lower_tm): Convert from a global struct to a subclass of
13612         gimple_opt_pass along with...
13613         (pass_data_lower_tm): ...new pass_data instance and...
13614         (make_pass_lower_tm): ...new function.
13615         (pass_tm_init): Convert from a global struct to a subclass of
13616         gimple_opt_pass along with...
13617         (pass_data_tm_init): ...new pass_data instance and...
13618         (make_pass_tm_init): ...new function.
13619         (pass_tm_mark): Convert from a global struct to a subclass of
13620         gimple_opt_pass along with...
13621         (pass_data_tm_mark): ...new pass_data instance and...
13622         (make_pass_tm_mark): ...new function.
13623         (pass_tm_edges): Convert from a global struct to a subclass of
13624         gimple_opt_pass along with...
13625         (pass_data_tm_edges): ...new pass_data instance and...
13626         (make_pass_tm_edges): ...new function.
13627         (pass_tm_memopt): Convert from a global struct to a subclass of
13628         gimple_opt_pass along with...
13629         (pass_data_tm_memopt): ...new pass_data instance and...
13630         (make_pass_tm_memopt): ...new function.
13631         (pass_ipa_tm): Convert from a global struct to a subclass of
13632         simple_ipa_opt_pass along with...
13633         (pass_data_ipa_tm): ...new pass_data instance and...
13634         (make_pass_ipa_tm): ...new function.
13635         * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
13636         subclass of gimple_opt_pass along with...
13637         (pass_data_call_cdce): ...new pass_data instance and...
13638         (make_pass_call_cdce): ...new function.
13639         * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
13640         subclass of gimple_opt_pass along with...
13641         (pass_data_build_cfg): ...new pass_data instance and...
13642         (make_pass_build_cfg): ...new function.
13643         (pass_split_crit_edges): Convert from a global struct to a subclass of
13644         gimple_opt_pass along with...
13645         (pass_data_split_crit_edges): ...new pass_data instance and...
13646         (make_pass_split_crit_edges): ...new function.
13647         (pass_warn_function_return): Convert from a global struct to a
13648         subclass of gimple_opt_pass along with...
13649         (pass_data_warn_function_return): ...new pass_data instance and...
13650         (make_pass_warn_function_return): ...new function.
13651         (pass_warn_function_noreturn): Convert from a global struct to a
13652         subclass of gimple_opt_pass along with...
13653         (pass_data_warn_function_noreturn): ...new pass_data instance and...
13654         (make_pass_warn_function_noreturn): ...new function.
13655         (pass_warn_unused_result): Convert from a global struct to a subclass
13656         of gimple_opt_pass along with...
13657         (pass_data_warn_unused_result): ...new pass_data instance and...
13658         (make_pass_warn_unused_result): ...new function.
13659         * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
13660         a subclass of gimple_opt_pass along with...
13661         (pass_data_merge_phi): ...new pass_data instance and...
13662         (make_pass_merge_phi): ...new function.
13663         * tree-complex.c (pass_lower_complex): Convert from a global struct to
13664         a subclass of gimple_opt_pass along with...
13665         (pass_data_lower_complex): ...new pass_data instance and...
13666         (make_pass_lower_complex): ...new function.
13667         (pass_lower_complex_O0): Convert from a global struct to a subclass of
13668         gimple_opt_pass along with...
13669         (pass_data_lower_complex_O0): ...new pass_data instance and...
13670         (make_pass_lower_complex_O0): ...new function.
13671         * tree-eh.c (pass_lower_eh): Convert from a global struct to a
13672         subclass of gimple_opt_pass along with...
13673         (pass_data_lower_eh): ...new pass_data instance and...
13674         (make_pass_lower_eh): ...new function.
13675         (pass_refactor_eh): Convert from a global struct to a subclass of
13676         gimple_opt_pass along with...
13677         (pass_data_refactor_eh): ...new pass_data instance and...
13678         (make_pass_refactor_eh): ...new function.
13679         (pass_lower_resx): Convert from a global struct to a subclass of
13680         gimple_opt_pass along with...
13681         (pass_data_lower_resx): ...new pass_data instance and...
13682         (make_pass_lower_resx): ...new function.
13683         (pass_lower_eh_dispatch): Convert from a global struct to a subclass
13684         of gimple_opt_pass along with...
13685         (pass_data_lower_eh_dispatch): ...new pass_data instance and...
13686         (make_pass_lower_eh_dispatch): ...new function.
13687         (pass_cleanup_eh): Convert from a global struct to a subclass of
13688         gimple_opt_pass along with...
13689         (pass_data_cleanup_eh): ...new pass_data instance and...
13690         (make_pass_cleanup_eh): ...new function.
13691         * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
13692         to a subclass of simple_ipa_opt_pass along with...
13693         (pass_data_ipa_lower_emutls): ...new pass_data instance and...
13694         (make_pass_ipa_lower_emutls): ...new function.
13695         * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
13696         a subclass of gimple_opt_pass along with...
13697         (pass_data_if_conversion): ...new pass_data instance and...
13698         (make_pass_if_conversion): ...new function.
13699         * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
13700         subclass of gimple_opt_pass along with...
13701         (pass_data_build_ssa): ...new pass_data instance and...
13702         (make_pass_build_ssa): ...new function.
13703         * tree-loop-distribution.c (pass_loop_distribution): Convert from a
13704         global struct to a subclass of gimple_opt_pass along with...
13705         (pass_data_loop_distribution): ...new pass_data instance and...
13706         (make_pass_loop_distribution): ...new function.
13707         * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
13708         subclass of gimple_opt_pass along with...
13709         (pass_data_mudflap_1): ...new pass_data instance and...
13710         (make_pass_mudflap_1): ...new function.
13711         (pass_mudflap_2): Convert from a global struct to a subclass of
13712         gimple_opt_pass along with...
13713         (pass_data_mudflap_2): ...new pass_data instance and...
13714         (make_pass_mudflap_2): ...new function.
13715         * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
13716         subclass of gimple_opt_pass along with...
13717         (pass_data_mudflap_1): ...new pass_data instance and...
13718         (make_pass_mudflap_1): ...new function.
13719         (pass_mudflap_2): Convert from a global struct to a subclass of
13720         gimple_opt_pass along with...
13721         (pass_data_mudflap_2): ...new pass_data instance and...
13722         (make_pass_mudflap_2): ...new function.
13723         * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
13724         gimple_opt_pass along with...
13725         (pass_data_nrv): ...new pass_data instance and...
13726         (make_pass_nrv): ...new function.
13727         (pass_return_slot): Convert from a global struct to a subclass of
13728         gimple_opt_pass along with...
13729         (pass_data_return_slot): ...new pass_data instance and...
13730         (make_pass_return_slot): ...new function.
13731         * tree-object-size.c (pass_object_sizes): Convert from a global struct
13732         to a subclass of gimple_opt_pass along with...
13733         (pass_data_object_sizes): ...new pass_data instance and...
13734         (make_pass_object_sizes): ...new function.
13735         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
13736         global struct to a subclass of gimple_opt_pass along with...
13737         (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
13738         and...
13739         (make_pass_cleanup_cfg_post_optimizing): ...new function.
13740         (pass_fixup_cfg): Convert from a global struct to a subclass of
13741         gimple_opt_pass along with...
13742         (pass_data_fixup_cfg): ...new pass_data instance and...
13743         (make_pass_fixup_cfg): ...new function.
13744         * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
13745         (make_pass_mudflap_1): ...new function.
13746         (pass_mudflap_2): Replace declaration with that of...
13747         (make_pass_mudflap_2): ...new function.
13748         (pass_asan): Replace declaration with that of...
13749         (make_pass_asan): ...new function.
13750         (pass_asan_O0): Replace declaration with that of...
13751         (make_pass_asan_O0): ...new function.
13752         (pass_tsan): Replace declaration with that of...
13753         (make_pass_tsan): ...new function.
13754         (pass_tsan_O0): Replace declaration with that of...
13755         (make_pass_tsan_O0): ...new function.
13756         (pass_lower_cf): Replace declaration with that of...
13757         (make_pass_lower_cf): ...new function.
13758         (pass_refactor_eh): Replace declaration with that of...
13759         (make_pass_refactor_eh): ...new function.
13760         (pass_lower_eh): Replace declaration with that of...
13761         (make_pass_lower_eh): ...new function.
13762         (pass_lower_eh_dispatch): Replace declaration with that of...
13763         (make_pass_lower_eh_dispatch): ...new function.
13764         (pass_lower_resx): Replace declaration with that of...
13765         (make_pass_lower_resx): ...new function.
13766         (pass_build_cfg): Replace declaration with that of...
13767         (make_pass_build_cfg): ...new function.
13768         (pass_early_tree_profile): Replace declaration with that of...
13769         (make_pass_early_tree_profile): ...new function.
13770         (pass_cleanup_eh): Replace declaration with that of...
13771         (make_pass_cleanup_eh): ...new function.
13772         (pass_sra): Replace declaration with that of...
13773         (make_pass_sra): ...new function.
13774         (pass_sra_early): Replace declaration with that of...
13775         (make_pass_sra_early): ...new function.
13776         (pass_early_ipa_sra): Replace declaration with that of...
13777         (make_pass_early_ipa_sra): ...new function.
13778         (pass_tail_recursion): Replace declaration with that of...
13779         (make_pass_tail_recursion): ...new function.
13780         (pass_tail_calls): Replace declaration with that of...
13781         (make_pass_tail_calls): ...new function.
13782         (pass_tree_loop): Replace declaration with that of...
13783         (make_pass_tree_loop): ...new function.
13784         (pass_tree_loop_init): Replace declaration with that of...
13785         (make_pass_tree_loop_init): ...new function.
13786         (pass_lim): Replace declaration with that of...
13787         (make_pass_lim): ...new function.
13788         (pass_tree_unswitch): Replace declaration with that of...
13789         (make_pass_tree_unswitch): ...new function.
13790         (pass_predcom): Replace declaration with that of...
13791         (make_pass_predcom): ...new function.
13792         (pass_iv_canon): Replace declaration with that of...
13793         (make_pass_iv_canon): ...new function.
13794         (pass_scev_cprop): Replace declaration with that of...
13795         (make_pass_scev_cprop): ...new function.
13796         (pass_empty_loop): Replace declaration with that of...
13797         (make_pass_empty_loop): ...new function.
13798         (pass_record_bounds): Replace declaration with that of...
13799         (make_pass_record_bounds): ...new function.
13800         (pass_graphite): Replace declaration with that of...
13801         (make_pass_graphite): ...new function.
13802         (pass_graphite_transforms): Replace declaration with that of...
13803         (make_pass_graphite_transforms): ...new function.
13804         (pass_if_conversion): Replace declaration with that of...
13805         (make_pass_if_conversion): ...new function.
13806         (pass_loop_distribution): Replace declaration with that of...
13807         (make_pass_loop_distribution): ...new function.
13808         (pass_vectorize): Replace declaration with that of...
13809         (make_pass_vectorize): ...new function.
13810         (pass_slp_vectorize): Replace declaration with that of...
13811         (make_pass_slp_vectorize): ...new function.
13812         (pass_complete_unroll): Replace declaration with that of...
13813         (make_pass_complete_unroll): ...new function.
13814         (pass_complete_unrolli): Replace declaration with that of...
13815         (make_pass_complete_unrolli): ...new function.
13816         (pass_parallelize_loops): Replace declaration with that of...
13817         (make_pass_parallelize_loops): ...new function.
13818         (pass_loop_prefetch): Replace declaration with that of...
13819         (make_pass_loop_prefetch): ...new function.
13820         (pass_iv_optimize): Replace declaration with that of...
13821         (make_pass_iv_optimize): ...new function.
13822         (pass_tree_loop_done): Replace declaration with that of...
13823         (make_pass_tree_loop_done): ...new function.
13824         (pass_ch): Replace declaration with that of...
13825         (make_pass_ch): ...new function.
13826         (pass_ccp): Replace declaration with that of...
13827         (make_pass_ccp): ...new function.
13828         (pass_phi_only_cprop): Replace declaration with that of...
13829         (make_pass_phi_only_cprop): ...new function.
13830         (pass_build_ssa): Replace declaration with that of...
13831         (make_pass_build_ssa): ...new function.
13832         (pass_build_alias): Replace declaration with that of...
13833         (make_pass_build_alias): ...new function.
13834         (pass_build_ealias): Replace declaration with that of...
13835         (make_pass_build_ealias): ...new function.
13836         (pass_dominator): Replace declaration with that of...
13837         (make_pass_dominator): ...new function.
13838         (pass_dce): Replace declaration with that of...
13839         (make_pass_dce): ...new function.
13840         (pass_dce_loop): Replace declaration with that of...
13841         (make_pass_dce_loop): ...new function.
13842         (pass_cd_dce): Replace declaration with that of...
13843         (make_pass_cd_dce): ...new function.
13844         (pass_call_cdce): Replace declaration with that of...
13845         (make_pass_call_cdce): ...new function.
13846         (pass_merge_phi): Replace declaration with that of...
13847         (make_pass_merge_phi): ...new function.
13848         (pass_split_crit_edges): Replace declaration with that of...
13849         (make_pass_split_crit_edges): ...new function.
13850         (pass_pre): Replace declaration with that of...
13851         (make_pass_pre): ...new function.
13852         (pass_profile): Replace declaration with that of...
13853         (make_pass_profile): ...new function.
13854         (pass_strip_predict_hints): Replace declaration with that of...
13855         (make_pass_strip_predict_hints): ...new function.
13856         (pass_lower_complex_O0): Replace declaration with that of...
13857         (make_pass_lower_complex_O0): ...new function.
13858         (pass_lower_complex): Replace declaration with that of...
13859         (make_pass_lower_complex): ...new function.
13860         (pass_lower_vector): Replace declaration with that of...
13861         (make_pass_lower_vector): ...new function.
13862         (pass_lower_vector_ssa): Replace declaration with that of...
13863         (make_pass_lower_vector_ssa): ...new function.
13864         (pass_lower_omp): Replace declaration with that of...
13865         (make_pass_lower_omp): ...new function.
13866         (pass_diagnose_omp_blocks): Replace declaration with that of...
13867         (make_pass_diagnose_omp_blocks): ...new function.
13868         (pass_expand_omp): Replace declaration with that of...
13869         (make_pass_expand_omp): ...new function.
13870         (pass_expand_omp_ssa): Replace declaration with that of...
13871         (make_pass_expand_omp_ssa): ...new function.
13872         (pass_object_sizes): Replace declaration with that of...
13873         (make_pass_object_sizes): ...new function.
13874         (pass_strlen): Replace declaration with that of...
13875         (make_pass_strlen): ...new function.
13876         (pass_fold_builtins): Replace declaration with that of...
13877         (make_pass_fold_builtins): ...new function.
13878         (pass_stdarg): Replace declaration with that of...
13879         (make_pass_stdarg): ...new function.
13880         (pass_early_warn_uninitialized): Replace declaration with that of...
13881         (make_pass_early_warn_uninitialized): ...new function.
13882         (pass_late_warn_uninitialized): Replace declaration with that of...
13883         (make_pass_late_warn_uninitialized): ...new function.
13884         (pass_cse_reciprocals): Replace declaration with that of...
13885         (make_pass_cse_reciprocals): ...new function.
13886         (pass_cse_sincos): Replace declaration with that of...
13887         (make_pass_cse_sincos): ...new function.
13888         (pass_optimize_bswap): Replace declaration with that of...
13889         (make_pass_optimize_bswap): ...new function.
13890         (pass_optimize_widening_mul): Replace declaration with that of...
13891         (make_pass_optimize_widening_mul): ...new function.
13892         (pass_warn_function_return): Replace declaration with that of...
13893         (make_pass_warn_function_return): ...new function.
13894         (pass_warn_function_noreturn): Replace declaration with that of...
13895         (make_pass_warn_function_noreturn): ...new function.
13896         (pass_cselim): Replace declaration with that of...
13897         (make_pass_cselim): ...new function.
13898         (pass_phiopt): Replace declaration with that of...
13899         (make_pass_phiopt): ...new function.
13900         (pass_forwprop): Replace declaration with that of...
13901         (make_pass_forwprop): ...new function.
13902         (pass_phiprop): Replace declaration with that of...
13903         (make_pass_phiprop): ...new function.
13904         (pass_tree_ifcombine): Replace declaration with that of...
13905         (make_pass_tree_ifcombine): ...new function.
13906         (pass_dse): Replace declaration with that of...
13907         (make_pass_dse): ...new function.
13908         (pass_nrv): Replace declaration with that of...
13909         (make_pass_nrv): ...new function.
13910         (pass_rename_ssa_copies): Replace declaration with that of...
13911         (make_pass_rename_ssa_copies): ...new function.
13912         (pass_sink_code): Replace declaration with that of...
13913         (make_pass_sink_code): ...new function.
13914         (pass_fre): Replace declaration with that of...
13915         (make_pass_fre): ...new function.
13916         (pass_check_data_deps): Replace declaration with that of...
13917         (make_pass_check_data_deps): ...new function.
13918         (pass_copy_prop): Replace declaration with that of...
13919         (make_pass_copy_prop): ...new function.
13920         (pass_vrp): Replace declaration with that of...
13921         (make_pass_vrp): ...new function.
13922         (pass_uncprop): Replace declaration with that of...
13923         (make_pass_uncprop): ...new function.
13924         (pass_return_slot): Replace declaration with that of...
13925         (make_pass_return_slot): ...new function.
13926         (pass_reassoc): Replace declaration with that of...
13927         (make_pass_reassoc): ...new function.
13928         (pass_rebuild_cgraph_edges): Replace declaration with that of...
13929         (make_pass_rebuild_cgraph_edges): ...new function.
13930         (pass_remove_cgraph_callee_edges): Replace declaration with that of...
13931         (make_pass_remove_cgraph_callee_edges): ...new function.
13932         (pass_build_cgraph_edges): Replace declaration with that of...
13933         (make_pass_build_cgraph_edges): ...new function.
13934         (pass_local_pure_const): Replace declaration with that of...
13935         (make_pass_local_pure_const): ...new function.
13936         (pass_tracer): Replace declaration with that of...
13937         (make_pass_tracer): ...new function.
13938         (pass_warn_unused_result): Replace declaration with that of...
13939         (make_pass_warn_unused_result): ...new function.
13940         (pass_diagnose_tm_blocks): Replace declaration with that of...
13941         (make_pass_diagnose_tm_blocks): ...new function.
13942         (pass_lower_tm): Replace declaration with that of...
13943         (make_pass_lower_tm): ...new function.
13944         (pass_tm_init): Replace declaration with that of...
13945         (make_pass_tm_init): ...new function.
13946         (pass_tm_mark): Replace declaration with that of...
13947         (make_pass_tm_mark): ...new function.
13948         (pass_tm_memopt): Replace declaration with that of...
13949         (make_pass_tm_memopt): ...new function.
13950         (pass_tm_edges): Replace declaration with that of...
13951         (make_pass_tm_edges): ...new function.
13952         (pass_split_functions): Replace declaration with that of...
13953         (make_pass_split_functions): ...new function.
13954         (pass_feedback_split_functions): Replace declaration with that of...
13955         (make_pass_feedback_split_functions): ...new function.
13956         (pass_strength_reduction): Replace declaration with that of...
13957         (make_pass_strength_reduction): ...new function.
13958         (pass_ipa_lower_emutls): Replace declaration with that of...
13959         (make_pass_ipa_lower_emutls): ...new function.
13960         (pass_ipa_function_and_variable_visibility): Replace declaration with
13961         that of...
13962         (make_pass_ipa_function_and_variable_visibility): ...new function.
13963         (pass_ipa_tree_profile): Replace declaration with that of...
13964         (make_pass_ipa_tree_profile): ...new function.
13965         (pass_early_local_passes): Replace declaration with that of...
13966         (make_pass_early_local_passes): ...new function.
13967         (pass_ipa_whole_program_visibility): Replace declaration with that
13968         of...
13969         (make_pass_ipa_whole_program_visibility): ...new function.
13970         (pass_ipa_lto_gimple_out): Replace declaration with that of...
13971         (make_pass_ipa_lto_gimple_out): ...new function.
13972         (pass_ipa_increase_alignment): Replace declaration with that of...
13973         (make_pass_ipa_increase_alignment): ...new function.
13974         (pass_ipa_inline): Replace declaration with that of...
13975         (make_pass_ipa_inline): ...new function.
13976         (pass_ipa_free_lang_data): Replace declaration with that of...
13977         (make_pass_ipa_free_lang_data): ...new function.
13978         (pass_ipa_free_inline_summary): Replace declaration with that of...
13979         (make_pass_ipa_free_inline_summary): ...new function.
13980         (pass_ipa_cp): Replace declaration with that of...
13981         (make_pass_ipa_cp): ...new function.
13982         (pass_ipa_reference): Replace declaration with that of...
13983         (make_pass_ipa_reference): ...new function.
13984         (pass_ipa_pure_const): Replace declaration with that of...
13985         (make_pass_ipa_pure_const): ...new function.
13986         (pass_ipa_pta): Replace declaration with that of...
13987         (make_pass_ipa_pta): ...new function.
13988         (pass_ipa_lto_finish_out): Replace declaration with that of...
13989         (make_pass_ipa_lto_finish_out): ...new function.
13990         (pass_ipa_tm): Replace declaration with that of...
13991         (make_pass_ipa_tm): ...new function.
13992         (pass_ipa_profile): Replace declaration with that of...
13993         (make_pass_ipa_profile): ...new function.
13994         (pass_ipa_cdtor_merge): Replace declaration with that of...
13995         (make_pass_ipa_cdtor_merge): ...new function.
13996         (pass_cleanup_cfg_post_optimizing): Replace declaration with that
13997         of...
13998         (make_pass_cleanup_cfg_post_optimizing): ...new function.
13999         (pass_init_datastructures): Replace declaration with that of...
14000         (make_pass_init_datastructures): ...new function.
14001         (pass_fixup_cfg): Replace declaration with that of...
14002         (make_pass_fixup_cfg): ...new function.
14003         (pass_expand): Replace declaration with that of...
14004         (make_pass_expand): ...new function.
14005         (pass_instantiate_virtual_regs): Replace declaration with that of...
14006         (make_pass_instantiate_virtual_regs): ...new function.
14007         (pass_rtl_fwprop): Replace declaration with that of...
14008         (make_pass_rtl_fwprop): ...new function.
14009         (pass_rtl_fwprop_addr): Replace declaration with that of...
14010         (make_pass_rtl_fwprop_addr): ...new function.
14011         (pass_jump): Replace declaration with that of...
14012         (make_pass_jump): ...new function.
14013         (pass_jump2): Replace declaration with that of...
14014         (make_pass_jump2): ...new function.
14015         (pass_lower_subreg): Replace declaration with that of...
14016         (make_pass_lower_subreg): ...new function.
14017         (pass_cse): Replace declaration with that of...
14018         (make_pass_cse): ...new function.
14019         (pass_fast_rtl_dce): Replace declaration with that of...
14020         (make_pass_fast_rtl_dce): ...new function.
14021         (pass_ud_rtl_dce): Replace declaration with that of...
14022         (make_pass_ud_rtl_dce): ...new function.
14023         (pass_rtl_dce): Replace declaration with that of...
14024         (make_pass_rtl_dce): ...new function.
14025         (pass_rtl_dse1): Replace declaration with that of...
14026         (make_pass_rtl_dse1): ...new function.
14027         (pass_rtl_dse2): Replace declaration with that of...
14028         (make_pass_rtl_dse2): ...new function.
14029         (pass_rtl_dse3): Replace declaration with that of...
14030         (make_pass_rtl_dse3): ...new function.
14031         (pass_rtl_cprop): Replace declaration with that of...
14032         (make_pass_rtl_cprop): ...new function.
14033         (pass_rtl_pre): Replace declaration with that of...
14034         (make_pass_rtl_pre): ...new function.
14035         (pass_rtl_hoist): Replace declaration with that of...
14036         (make_pass_rtl_hoist): ...new function.
14037         (pass_rtl_store_motion): Replace declaration with that of...
14038         (make_pass_rtl_store_motion): ...new function.
14039         (pass_cse_after_global_opts): Replace declaration with that of...
14040         (make_pass_cse_after_global_opts): ...new function.
14041         (pass_rtl_ifcvt): Replace declaration with that of...
14042         (make_pass_rtl_ifcvt): ...new function.
14043         (pass_into_cfg_layout_mode): Replace declaration with that of...
14044         (make_pass_into_cfg_layout_mode): ...new function.
14045         (pass_outof_cfg_layout_mode): Replace declaration with that of...
14046         (make_pass_outof_cfg_layout_mode): ...new function.
14047         (pass_loop2): Replace declaration with that of...
14048         (make_pass_loop2): ...new function.
14049         (pass_rtl_loop_init): Replace declaration with that of...
14050         (make_pass_rtl_loop_init): ...new function.
14051         (pass_rtl_move_loop_invariants): Replace declaration with that of...
14052         (make_pass_rtl_move_loop_invariants): ...new function.
14053         (pass_rtl_unswitch): Replace declaration with that of...
14054         (make_pass_rtl_unswitch): ...new function.
14055         (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
14056         (make_pass_rtl_unroll_and_peel_loops): ...new function.
14057         (pass_rtl_doloop): Replace declaration with that of...
14058         (make_pass_rtl_doloop): ...new function.
14059         (pass_rtl_loop_done): Replace declaration with that of...
14060         (make_pass_rtl_loop_done): ...new function.
14061         (pass_web): Replace declaration with that of...
14062         (make_pass_web): ...new function.
14063         (pass_cse2): Replace declaration with that of...
14064         (make_pass_cse2): ...new function.
14065         (pass_df_initialize_opt): Replace declaration with that of...
14066         (make_pass_df_initialize_opt): ...new function.
14067         (pass_df_initialize_no_opt): Replace declaration with that of...
14068         (make_pass_df_initialize_no_opt): ...new function.
14069         (pass_reginfo_init): Replace declaration with that of...
14070         (make_pass_reginfo_init): ...new function.
14071         (pass_inc_dec): Replace declaration with that of...
14072         (make_pass_inc_dec): ...new function.
14073         (pass_stack_ptr_mod): Replace declaration with that of...
14074         (make_pass_stack_ptr_mod): ...new function.
14075         (pass_initialize_regs): Replace declaration with that of...
14076         (make_pass_initialize_regs): ...new function.
14077         (pass_combine): Replace declaration with that of...
14078         (make_pass_combine): ...new function.
14079         (pass_if_after_combine): Replace declaration with that of...
14080         (make_pass_if_after_combine): ...new function.
14081         (pass_ree): Replace declaration with that of...
14082         (make_pass_ree): ...new function.
14083         (pass_partition_blocks): Replace declaration with that of...
14084         (make_pass_partition_blocks): ...new function.
14085         (pass_match_asm_constraints): Replace declaration with that of...
14086         (make_pass_match_asm_constraints): ...new function.
14087         (pass_regmove): Replace declaration with that of...
14088         (make_pass_regmove): ...new function.
14089         (pass_split_all_insns): Replace declaration with that of...
14090         (make_pass_split_all_insns): ...new function.
14091         (pass_fast_rtl_byte_dce): Replace declaration with that of...
14092         (make_pass_fast_rtl_byte_dce): ...new function.
14093         (pass_lower_subreg2): Replace declaration with that of...
14094         (make_pass_lower_subreg2): ...new function.
14095         (pass_mode_switching): Replace declaration with that of...
14096         (make_pass_mode_switching): ...new function.
14097         (pass_sms): Replace declaration with that of...
14098         (make_pass_sms): ...new function.
14099         (pass_sched): Replace declaration with that of...
14100         (make_pass_sched): ...new function.
14101         (pass_ira): Replace declaration with that of...
14102         (make_pass_ira): ...new function.
14103         (pass_reload): Replace declaration with that of...
14104         (make_pass_reload): ...new function.
14105         (pass_clean_state): Replace declaration with that of...
14106         (make_pass_clean_state): ...new function.
14107         (pass_branch_prob): Replace declaration with that of...
14108         (make_pass_branch_prob): ...new function.
14109         (pass_value_profile_transformations): Replace declaration with that
14110         of...
14111         (make_pass_value_profile_transformations): ...new function.
14112         (pass_postreload_cse): Replace declaration with that of...
14113         (make_pass_postreload_cse): ...new function.
14114         (pass_gcse2): Replace declaration with that of...
14115         (make_pass_gcse2): ...new function.
14116         (pass_split_after_reload): Replace declaration with that of...
14117         (make_pass_split_after_reload): ...new function.
14118         (pass_branch_target_load_optimize1): Replace declaration with that
14119         of...
14120         (make_pass_branch_target_load_optimize1): ...new function.
14121         (pass_thread_prologue_and_epilogue): Replace declaration with that
14122         of...
14123         (make_pass_thread_prologue_and_epilogue): ...new function.
14124         (pass_stack_adjustments): Replace declaration with that of...
14125         (make_pass_stack_adjustments): ...new function.
14126         (pass_peephole2): Replace declaration with that of...
14127         (make_pass_peephole2): ...new function.
14128         (pass_if_after_reload): Replace declaration with that of...
14129         (make_pass_if_after_reload): ...new function.
14130         (pass_regrename): Replace declaration with that of...
14131         (make_pass_regrename): ...new function.
14132         (pass_cprop_hardreg): Replace declaration with that of...
14133         (make_pass_cprop_hardreg): ...new function.
14134         (pass_reorder_blocks): Replace declaration with that of...
14135         (make_pass_reorder_blocks): ...new function.
14136         (pass_branch_target_load_optimize2): Replace declaration with that
14137         of...
14138         (make_pass_branch_target_load_optimize2): ...new function.
14139         (pass_leaf_regs): Replace declaration with that of...
14140         (make_pass_leaf_regs): ...new function.
14141         (pass_split_before_sched2): Replace declaration with that of...
14142         (make_pass_split_before_sched2): ...new function.
14143         (pass_compare_elim_after_reload): Replace declaration with that of...
14144         (make_pass_compare_elim_after_reload): ...new function.
14145         (pass_sched2): Replace declaration with that of...
14146         (make_pass_sched2): ...new function.
14147         (pass_stack_regs): Replace declaration with that of...
14148         (make_pass_stack_regs): ...new function.
14149         (pass_stack_regs_run): Replace declaration with that of...
14150         (make_pass_stack_regs_run): ...new function.
14151         (pass_df_finish): Replace declaration with that of...
14152         (make_pass_df_finish): ...new function.
14153         (pass_compute_alignments): Replace declaration with that of...
14154         (make_pass_compute_alignments): ...new function.
14155         (pass_duplicate_computed_gotos): Replace declaration with that of...
14156         (make_pass_duplicate_computed_gotos): ...new function.
14157         (pass_variable_tracking): Replace declaration with that of...
14158         (make_pass_variable_tracking): ...new function.
14159         (pass_free_cfg): Replace declaration with that of...
14160         (make_pass_free_cfg): ...new function.
14161         (pass_machine_reorg): Replace declaration with that of...
14162         (make_pass_machine_reorg): ...new function.
14163         (pass_cleanup_barriers): Replace declaration with that of...
14164         (make_pass_cleanup_barriers): ...new function.
14165         (pass_delay_slots): Replace declaration with that of...
14166         (make_pass_delay_slots): ...new function.
14167         (pass_split_for_shorten_branches): Replace declaration with that of...
14168         (make_pass_split_for_shorten_branches): ...new function.
14169         (pass_split_before_regstack): Replace declaration with that of...
14170         (make_pass_split_before_regstack): ...new function.
14171         (pass_convert_to_eh_region_ranges): Replace declaration with that
14172         of...
14173         (make_pass_convert_to_eh_region_ranges): ...new function.
14174         (pass_shorten_branches): Replace declaration with that of...
14175         (make_pass_shorten_branches): ...new function.
14176         (pass_set_nothrow_function_flags): Replace declaration with that of...
14177         (make_pass_set_nothrow_function_flags): ...new function.
14178         (pass_dwarf2_frame): Replace declaration with that of...
14179         (make_pass_dwarf2_frame): ...new function.
14180         (pass_final): Replace declaration with that of...
14181         (make_pass_final): ...new function.
14182         (pass_rtl_seqabstr): Replace declaration with that of...
14183         (make_pass_rtl_seqabstr): ...new function.
14184         (pass_release_ssa_names): Replace declaration with that of...
14185         (make_pass_release_ssa_names): ...new function.
14186         (pass_early_inline): Replace declaration with that of...
14187         (make_pass_early_inline): ...new function.
14188         (pass_inline_parameters): Replace declaration with that of...
14189         (make_pass_inline_parameters): ...new function.
14190         (pass_update_address_taken): Replace declaration with that of...
14191         (make_pass_update_address_taken): ...new function.
14192         (pass_convert_switch): Replace declaration with that of...
14193         (make_pass_convert_switch): ...new function.
14194         * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
14195         to a subclass of simple_ipa_opt_pass along with...
14196         (pass_data_ipa_tree_profile): ...new pass_data instance and...
14197         (make_pass_ipa_tree_profile): ...new function.
14198         * tree-sra.c (pass_sra_early): Convert from a global struct to a
14199         subclass of gimple_opt_pass along with...
14200         (pass_data_sra_early): ...new pass_data instance and...
14201         (make_pass_sra_early): ...new function.
14202         (pass_sra): Convert from a global struct to a subclass of
14203         gimple_opt_pass along with...
14204         (pass_data_sra): ...new pass_data instance and...
14205         (make_pass_sra): ...new function.
14206         (pass_early_ipa_sra): Convert from a global struct to a subclass of
14207         gimple_opt_pass along with...
14208         (pass_data_early_ipa_sra): ...new pass_data instance and...
14209         (make_pass_early_ipa_sra): ...new function.
14210         * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
14211         subclass of gimple_opt_pass along with...
14212         (pass_data_ccp): ...new pass_data instance and...
14213         (make_pass_ccp): ...new function.
14214         (pass_fold_builtins): Convert from a global struct to a subclass of
14215         gimple_opt_pass along with...
14216         (pass_data_fold_builtins): ...new pass_data instance and...
14217         (make_pass_fold_builtins): ...new function.
14218         * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
14219         subclass of gimple_opt_pass along with...
14220         (pass_data_copy_prop): ...new pass_data instance and...
14221         (make_pass_copy_prop): ...new function.
14222         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
14223         global struct to a subclass of gimple_opt_pass along with...
14224         (pass_data_rename_ssa_copies): ...new pass_data instance and...
14225         (make_pass_rename_ssa_copies): ...new function.
14226         * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
14227         subclass of gimple_opt_pass along with...
14228         (pass_data_dce): ...new pass_data instance and...
14229         (make_pass_dce): ...new function.
14230         (pass_dce_loop): Convert from a global struct to a subclass of
14231         gimple_opt_pass along with...
14232         (pass_data_dce_loop): ...new pass_data instance and...
14233         (make_pass_dce_loop): ...new function.
14234         (pass_cd_dce): Convert from a global struct to a subclass of
14235         gimple_opt_pass along with...
14236         (pass_data_cd_dce): ...new pass_data instance and...
14237         (make_pass_cd_dce): ...new function.
14238         * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
14239         subclass of gimple_opt_pass along with...
14240         (pass_data_dominator): ...new pass_data instance and...
14241         (make_pass_dominator): ...new function.
14242         (pass_phi_only_cprop): Convert from a global struct to a subclass of
14243         gimple_opt_pass along with...
14244         (pass_data_phi_only_cprop): ...new pass_data instance and...
14245         (make_pass_phi_only_cprop): ...new function.
14246         * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
14247         subclass of gimple_opt_pass along with...
14248         (pass_data_dse): ...new pass_data instance and...
14249         (make_pass_dse): ...new function.
14250         * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
14251         a subclass of gimple_opt_pass along with...
14252         (pass_data_forwprop): ...new pass_data instance and...
14253         (make_pass_forwprop): ...new function.
14254         * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
14255         struct to a subclass of gimple_opt_pass along with...
14256         (pass_data_tree_ifcombine): ...new pass_data instance and...
14257         (make_pass_tree_ifcombine): ...new function.
14258         * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
14259         subclass of gimple_opt_pass along with...
14260         (pass_data_ch): ...new pass_data instance and...
14261         (make_pass_ch): ...new function.
14262         * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
14263         subclass of gimple_opt_pass along with...
14264         (pass_data_tree_loop): ...new pass_data instance and...
14265         (make_pass_tree_loop): ...new function.
14266         (pass_tree_loop_init): Convert from a global struct to a subclass of
14267         gimple_opt_pass along with...
14268         (pass_data_tree_loop_init): ...new pass_data instance and...
14269         (make_pass_tree_loop_init): ...new function.
14270         (pass_lim): Convert from a global struct to a subclass of
14271         gimple_opt_pass along with...
14272         (pass_data_lim): ...new pass_data instance and...
14273         (make_pass_lim): ...new function.
14274         (pass_tree_unswitch): Convert from a global struct to a subclass of
14275         gimple_opt_pass along with...
14276         (pass_data_tree_unswitch): ...new pass_data instance and...
14277         (make_pass_tree_unswitch): ...new function.
14278         (pass_predcom): Convert from a global struct to a subclass of
14279         gimple_opt_pass along with...
14280         (pass_data_predcom): ...new pass_data instance and...
14281         (make_pass_predcom): ...new function.
14282         (pass_vectorize): Convert from a global struct to a subclass of
14283         gimple_opt_pass along with...
14284         (pass_data_vectorize): ...new pass_data instance and...
14285         (make_pass_vectorize): ...new function.
14286         (pass_graphite): Convert from a global struct to a subclass of
14287         gimple_opt_pass along with...
14288         (pass_data_graphite): ...new pass_data instance and...
14289         (make_pass_graphite): ...new function.
14290         (pass_graphite_transforms): Convert from a global struct to a subclass
14291         of gimple_opt_pass along with...
14292         (pass_data_graphite_transforms): ...new pass_data instance and...
14293         (make_pass_graphite_transforms): ...new function.
14294         (pass_check_data_deps): Convert from a global struct to a subclass of
14295         gimple_opt_pass along with...
14296         (pass_data_check_data_deps): ...new pass_data instance and...
14297         (make_pass_check_data_deps): ...new function.
14298         (pass_iv_canon): Convert from a global struct to a subclass of
14299         gimple_opt_pass along with...
14300         (pass_data_iv_canon): ...new pass_data instance and...
14301         (make_pass_iv_canon): ...new function.
14302         (pass_scev_cprop): Convert from a global struct to a subclass of
14303         gimple_opt_pass along with...
14304         (pass_data_scev_cprop): ...new pass_data instance and...
14305         (make_pass_scev_cprop): ...new function.
14306         (pass_record_bounds): Convert from a global struct to a subclass of
14307         gimple_opt_pass along with...
14308         (pass_data_record_bounds): ...new pass_data instance and...
14309         (make_pass_record_bounds): ...new function.
14310         (pass_complete_unroll): Convert from a global struct to a subclass of
14311         gimple_opt_pass along with...
14312         (pass_data_complete_unroll): ...new pass_data instance and...
14313         (make_pass_complete_unroll): ...new function.
14314         (pass_complete_unrolli): Convert from a global struct to a subclass of
14315         gimple_opt_pass along with...
14316         (pass_data_complete_unrolli): ...new pass_data instance and...
14317         (make_pass_complete_unrolli): ...new function.
14318         (pass_parallelize_loops): Convert from a global struct to a subclass
14319         of gimple_opt_pass along with...
14320         (pass_data_parallelize_loops): ...new pass_data instance and...
14321         (make_pass_parallelize_loops): ...new function.
14322         (pass_loop_prefetch): Convert from a global struct to a subclass of
14323         gimple_opt_pass along with...
14324         (pass_data_loop_prefetch): ...new pass_data instance and...
14325         (make_pass_loop_prefetch): ...new function.
14326         (pass_iv_optimize): Convert from a global struct to a subclass of
14327         gimple_opt_pass along with...
14328         (pass_data_iv_optimize): ...new pass_data instance and...
14329         (make_pass_iv_optimize): ...new function.
14330         (pass_tree_loop_done): Convert from a global struct to a subclass of
14331         gimple_opt_pass along with...
14332         (pass_data_tree_loop_done): ...new pass_data instance and...
14333         (make_pass_tree_loop_done): ...new function.
14334         * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
14335         struct to a subclass of gimple_opt_pass along with...
14336         (pass_data_cse_reciprocals): ...new pass_data instance and...
14337         (make_pass_cse_reciprocals): ...new function.
14338         (pass_cse_sincos): Convert from a global struct to a subclass of
14339         gimple_opt_pass along with...
14340         (pass_data_cse_sincos): ...new pass_data instance and...
14341         (make_pass_cse_sincos): ...new function.
14342         (pass_optimize_bswap): Convert from a global struct to a subclass of
14343         gimple_opt_pass along with...
14344         (pass_data_optimize_bswap): ...new pass_data instance and...
14345         (make_pass_optimize_bswap): ...new function.
14346         (pass_optimize_widening_mul): Convert from a global struct to a
14347         subclass of gimple_opt_pass along with...
14348         (pass_data_optimize_widening_mul): ...new pass_data instance and...
14349         (make_pass_optimize_widening_mul): ...new function.
14350         * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
14351         subclass of gimple_opt_pass along with...
14352         (pass_data_phiopt): ...new pass_data instance and...
14353         (make_pass_phiopt): ...new function.
14354         (pass_cselim): Convert from a global struct to a subclass of
14355         gimple_opt_pass along with...
14356         (pass_data_cselim): ...new pass_data instance and...
14357         (make_pass_cselim): ...new function.
14358         * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
14359         subclass of gimple_opt_pass along with...
14360         (pass_data_phiprop): ...new pass_data instance and...
14361         (make_pass_phiprop): ...new function.
14362         * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
14363         subclass of gimple_opt_pass along with...
14364         (pass_data_pre): ...new pass_data instance and...
14365         (make_pass_pre): ...new function.
14366         (pass_fre): Convert from a global struct to a subclass of
14367         gimple_opt_pass along with...
14368         (pass_data_fre): ...new pass_data instance and...
14369         (make_pass_fre): ...new function.
14370         * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
14371         subclass of gimple_opt_pass along with...
14372         (pass_data_reassoc): ...new pass_data instance and...
14373         (make_pass_reassoc): ...new function.
14374         * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
14375         subclass of gimple_opt_pass along with...
14376         (pass_data_sink_code): ...new pass_data instance and...
14377         (make_pass_sink_code): ...new function.
14378         * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
14379         subclass of gimple_opt_pass along with...
14380         (pass_data_strlen): ...new pass_data instance and...
14381         (make_pass_strlen): ...new function.
14382         * tree-ssa-structalias.c (pass_build_alias): Convert from a global
14383         struct to a subclass of gimple_opt_pass along with...
14384         (pass_data_build_alias): ...new pass_data instance and...
14385         (make_pass_build_alias): ...new function.
14386         (pass_build_ealias): Convert from a global struct to a subclass of
14387         gimple_opt_pass along with...
14388         (pass_data_build_ealias): ...new pass_data instance and...
14389         (make_pass_build_ealias): ...new function.
14390         (pass_ipa_pta): Convert from a global struct to a subclass of
14391         simple_ipa_opt_pass along with...
14392         (pass_data_ipa_pta): ...new pass_data instance and...
14393         (make_pass_ipa_pta): ...new function.
14394         * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
14395         subclass of gimple_opt_pass along with...
14396         (pass_data_uncprop): ...new pass_data instance and...
14397         (make_pass_uncprop): ...new function.
14398         * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
14399         global struct to a subclass of gimple_opt_pass along with...
14400         (pass_data_late_warn_uninitialized): ...new pass_data instance and...
14401         (make_pass_late_warn_uninitialized): ...new function.
14402         * tree-ssa.c (pass_init_datastructures): Convert from a global struct
14403         to a subclass of gimple_opt_pass along with...
14404         (pass_data_init_datastructures): ...new pass_data instance and...
14405         (make_pass_init_datastructures): ...new function.
14406         (pass_early_warn_uninitialized): Convert from a global struct to a
14407         subclass of gimple_opt_pass along with...
14408         (pass_data_early_warn_uninitialized): ...new pass_data instance and...
14409         (make_pass_early_warn_uninitialized): ...new function.
14410         (pass_update_address_taken): Convert from a global struct to a
14411         subclass of gimple_opt_pass along with...
14412         (pass_data_update_address_taken): ...new pass_data instance and...
14413         (make_pass_update_address_taken): ...new function.
14414         * tree-ssanames.c (pass_release_ssa_names): Convert from a global
14415         struct to a subclass of gimple_opt_pass along with...
14416         (pass_data_release_ssa_names): ...new pass_data instance and...
14417         (make_pass_release_ssa_names): ...new function.
14418         * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
14419         subclass of gimple_opt_pass along with...
14420         (pass_data_stdarg): ...new pass_data instance and...
14421         (make_pass_stdarg): ...new function.
14422         * tree-switch-conversion.c (pass_convert_switch): Convert from a
14423         global struct to a subclass of gimple_opt_pass along with...
14424         (pass_data_convert_switch): ...new pass_data instance and...
14425         (make_pass_convert_switch): ...new function.
14426         * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
14427         to a subclass of gimple_opt_pass along with...
14428         (pass_data_tail_recursion): ...new pass_data instance and...
14429         (make_pass_tail_recursion): ...new function.
14430         (pass_tail_calls): Convert from a global struct to a subclass of
14431         gimple_opt_pass along with...
14432         (pass_data_tail_calls): ...new pass_data instance and...
14433         (make_pass_tail_calls): ...new function.
14434         * tree-vect-generic.c (pass_lower_vector): Convert from a global
14435         struct to a subclass of gimple_opt_pass along with...
14436         (pass_data_lower_vector): ...new pass_data instance and...
14437         (make_pass_lower_vector): ...new function.
14438         (pass_lower_vector_ssa): Convert from a global struct to a subclass of
14439         gimple_opt_pass along with...
14440         (pass_data_lower_vector_ssa): ...new pass_data instance and...
14441         (make_pass_lower_vector_ssa): ...new function.
14442         * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
14443         to a subclass of gimple_opt_pass along with...
14444         (pass_data_slp_vectorize): ...new pass_data instance and...
14445         (make_pass_slp_vectorize): ...new function.
14446         (pass_ipa_increase_alignment): Convert from a global struct to a
14447         subclass of simple_ipa_opt_pass along with...
14448         (pass_data_ipa_increase_alignment): ...new pass_data instance and...
14449         (make_pass_ipa_increase_alignment): ...new function.
14450         * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
14451         gimple_opt_pass along with...
14452         (pass_data_vrp): ...new pass_data instance and...
14453         (make_pass_vrp): ...new function.
14454         * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
14455         subclass of simple_ipa_opt_pass along with...
14456         (pass_data_ipa_free_lang_data): ...new pass_data instance and...
14457         (make_pass_ipa_free_lang_data): ...new function.
14458         * tsan.c (pass_tsan): Convert from a global struct to a subclass of
14459         gimple_opt_pass along with...
14460         (pass_data_tsan): ...new pass_data instance and...
14461         (make_pass_tsan): ...new function.
14462         (pass_tsan_O0): Convert from a global struct to a subclass of
14463         gimple_opt_pass along with...
14464         (pass_data_tsan_O0): ...new pass_data instance and...
14465         (make_pass_tsan_O0): ...new function.
14466         * var-tracking.c (pass_variable_tracking): Convert from a global
14467         struct to a subclass of rtl_opt_pass along with...
14468         (pass_data_variable_tracking): ...new pass_data instance and...
14469         (make_pass_variable_tracking): ...new function.
14470         * web.c (pass_web): Convert from a global struct to a subclass of
14471         rtl_opt_pass along with...
14472         (pass_data_web): ...new pass_data instance and...
14473         (make_pass_web): ...new function.
14474         * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
14475         declaration with that of...
14476         (make_pass_mode_switch_use): ...new function.
14477         (pass_resolve_sw_modes): Replace declaration with that of...
14478         (make_pass_resolve_sw_modes): ...new function.
14479         * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
14480         from a global struct to a subclass of rtl_opt_pass along with...
14481         (pass_data_mode_switch_use): ...new pass_data instance and...
14482         (make_pass_mode_switch_use): ...new function.
14483         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
14484         from a global struct to a subclass of rtl_opt_pass along with...
14485         (pass_data_resolve_sw_modes): ...new pass_data instance and...
14486         (make_pass_resolve_sw_modes): ...new function.
14487         * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
14488         struct to a subclass of rtl_opt_pass along with...
14489         (pass_data_insert_vzeroupper): ...new pass_data instance and...
14490         (make_pass_insert_vzeroupper): ...new function.
14491         * config/sparc/sparc.c (pass_work_around_errata): Convert from a
14492         global struct to a subclass of rtl_opt_pass along with...
14493         (pass_data_work_around_errata): ...new pass_data instance and...
14494         (make_pass_work_around_errata): ...new function.
14495         * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
14496         struct to a subclass of rtl_opt_pass along with...
14497         (pass_data_mips_machine_reorg2): ...new pass_data instance and...
14498         (make_pass_mips_machine_reorg2): ...new function.
14500 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
14502         * passes.c (pass_manager::operator new): New.
14504 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
14506         Handwritten part of conversion of passes to C++ classes.
14508         * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
14509         (toplev.o): Add dep on PASS_MANAGER_H.
14510         * cgraphunit.c (cgraph_process_new_functions): Rework invocation
14511         of early local pases to reflect this moving from a global to a
14512         member of gcc::pass_manager.
14513         (cgraph_add_new_function): Likewise.
14514         * lto-cgraph.c (lto_output_node): Update for conversion of
14515         struct ipa_opt_pass_d to a C++ subclass of opt_pass.
14516         * passes.c (opt_pass::clone): New.
14517         (opt_pass::gate): New.
14518         (opt_pass::execute): New.
14519         (opt_pass::opt_pass): New.
14520         (pass_manager::execute_early_local_passes): New.
14521         (pass_manager::execute_pass_mode_switching): new.
14522         (finish_optimization_passes): Convert to...
14523         (pass_manager::finish_optimization_passes): ...this.
14524         (finish_optimization_passes): Update for conversion of passes to
14525         C++ classes.
14526         (register_dump_files_1): Use has_gate since we cannot portably
14527         check a vtable entry against NULL.
14528         (dump_one_pass): Likewise.
14529         (ipa_write_summaries_2): Likewise.
14530         (ipa_write_optimization_summaries_1): Likewise.
14531         (ipa_read_summaries_1): Likewise.
14532         (ipa_read_optimization_summaries_1): Likewise.
14533         (execute_ipa_stmt_fixups): Likewise.
14534         (pass_manager::pass_manager): Rewrite pass-creation, invoking
14535         pass-creation functions rather than wiring up globals, and
14536         storing the results in fields of pass_manager generated using
14537         pass-instances.def.
14538         (pass_manager::dump_profile_report): Update for conversion of
14539         passes to C++ classes.
14540         (pass_manager::execute_ipa_summary_passes): Likewise.
14541         (execute_one_ipa_transform_pass): Likewise.
14542         (execute_one_pass): Use has_gate and has_execute since we cannot
14543         portably check a vtable entry against NULL.
14544         * pass_manager.h (pass_manager::finish_optimization_passes): New.
14545         (pass_manager): Use pass-instances.def to add fields for the
14546         various pass instances.
14547         * toplev.c (finalize): Update for move of
14548         finish_optimization_passes to a method of gcc::pass_manager.
14549         * toplev.h (finish_optimization_passes): Move to method of class
14550         pass_manager.
14551         * tree-pass.h (struct pass_data): New.
14552         (opt_pass): Convert to C++ class, make it a subclass of pass_data.
14553         (opt_pass::gate): Convert to virtual function.
14554         (opt_pass::~opt_pass): New.
14555         (opt_pass::clone): New.
14556         (opt_pass::execute): Convert to virtual function.
14557         (opt_pass::opt_pass): New.
14558         (opt_pass::ctxt_): new.
14559         (gimple_opt_pass): Convert to subclass of opt_pass.
14560         (gimple_opt_pass::gimple_opt_pass): New.
14561         (rtl_opt_pass): Convert to subclass of opt_pass.
14562         (rtl_opt_pass::rtl_opt_pass): New.
14563         (ipa_opt_pass_d): Convert to subclass of opt_pass.
14564         (ipa_opt_pass_d::ipa_opt_pass_d): New.
14565         (simple_ipa_opt_pass): Convert to subclass of opt_pass.
14566         (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
14567         * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
14568         invocation of pass_mode_switching to reflect this moving from a
14569         global to a member of gcc::pass_manager.
14570         (ix86_option_override): Rework how pass_insert_vzeroupper is
14571         added to the pass_manager to reflect autogenerated changes.
14572         * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
14574 2013-08-05  Richard Earnshaw  <rearnsha@arm.com>
14576         PR rtl-optimization/57708
14577         * recog.c (peep2_find_free_register): Validate all regs in a
14578         multi-reg mode.
14580 2013-08-05  Jan Hubicka  <jh@suse.cz>
14582         PR lto/57602
14583         * cgraph.c (verify_cgraph_node): Accept local flags from other
14584         partitions.
14585         * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
14586         (function_and_variable_visibility): Likewise.
14587         * trans-mem.c (ipa_tm_create_version): TM versions are not local.
14589 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
14591         * graph.c (init_graph_slim_pretty_print): Remove.
14592         (print_graph_cfg): Do not call it.  Use local pretty printer.
14593         (start_graph_dump): Likewise.
14595 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
14597         * gimple-pretty-print.c (buffer): Remove.
14598         (initialized): Likewise.
14599         (maybe_init_pretty_print): Likewise.
14600         (print_gimple_stmt): Do not call it.  Use non-static local
14601         pretty_printer variable.
14602         (print_gimple_expr): Likewise.
14603         (print_gimple_seq): Likewise.
14604         (gimple_dump_bb): Likewise.
14606 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
14608         * asan.c (asan_pp): Remove.
14609         (asan_pp_initialized): Likewise.
14610         (asan_pp_initialize): Likewise.
14611         (asan_pp_string): Take a pretty_printer parameter.  Adjust callers.
14612         (asan_emit_stack_protection): Tidy.  Use local pretty printer.
14613         (asan_add_global): Likewise.
14615 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
14617         * pretty-print.h (pp_base): Remove.  Adjust dependent macros.
14618         * diagnostic.h (diagnostic_flush_buffer): Adjust.
14619         * pretty-print.c (pp_formatted_text_data): Likewise.
14620         (pp_indent): Rename from pp_base_indent.
14621         (pp_format): Rename from pp_base_format.
14622         (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
14623         (pp_format_verbatim): Rename from pp_base_format_verbatim.
14624         (pp_flush): Rename from pp_base_flush.
14625         (pp_set_line_maximum_length): Rename from
14626         pp_base_set_line_maximum_length.
14627         (pp_clear_output_area): Rename from pp_base_clear_output_area.
14628         (pp_set_prefix): Rename from pp_base_set_prefix.
14629         (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
14630         (pp_emit_prefix): Rename from pp_base_emit_prefix.
14631         (pp_append_text): Rename from pp_base_append_text.
14632         (pp_formatted_text): Rename from pp_base_formatted_text.
14633         (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
14634         (pp_remaining_character_count_for_line): Rename from
14635         pp_base_remaining_character_count_for_line.
14636         (pp_newline): Rename from pp_base_newline.
14637         (pp_character): Rename from pp_base_character.
14638         (pp_string): Rename from pp_base_string.
14639         (pp_maybe_space): Rename from pp_base_maybe_space.
14640         * asan.c (asan_pp_string): Adjust.
14641         (asan_emit_stack_protection): Likewise.
14642         (asan_add_global): Likewise.
14643         * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
14644         * tree-mudflap.c (mf_varname_tree): Likewise.
14645         * tree-pretty-print.c (pp_tree_identifier): Rename from
14646         pp_base_tree_identifier.
14647         * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
14648         Declare as function.
14650 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
14652         * pretty-print.h (pp_bar_bar): New.
14653         (pp_ampersand_ampersand): Likewise.
14654         (pp_less_equal): Likewise.
14655         (pp_greater_equal): Likewise.
14656         * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
14657         printer functions instead of pp_string or operators and punctuators.
14658         (dump_gimple_call): Likewise.
14659         (dump_gimple_omp_for): Likewise.
14660         (dump_gimple_transaction): Likewise.
14661         (dump_gimple_phi): Likewise.
14662         (pp_gimple_stmt_1): Likewise.
14663         * sched-vis.c (print_insn): Likewise.
14664         * tree-mudflap.c (mf_varname_tree): Likewise.
14665         * tree-pretty-print.c (dump_block_node): Likewise.
14666         (dump_generic_node): Likewise.
14668 2013-08-02  Jan Hubicka  <jh@suse.cz>
14670         * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
14671         boundaries.
14672         * lto-streamer-out.c (tree_is_indexable): Results decls and
14673         parm decls are not indexable.
14674         (DFS_write_tree_body): Do not follow args and results.
14675         (hash_tree): Likewise.
14676         (output_functions): Rearrange so struct function is needed
14677         only when real body is output; be able to also ouptut abstract
14678         functions; output DECL_ARGUMENTS and DECL_RESULT.
14679         (lto_output): When not in WPA, ale store abstract functions.
14680         (write_symbol): Do not care about RESULT_DECL.
14681         (output_symbol_p): Handle correctly sbtract decls.
14682         * lto-streamer-in.c (input_function): Rearrange so struct
14683         function can be NULL at entry; allow streaming of
14684         functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
14685         * ipa.c (symtab_remove_unreachable_nodes): Silence confused
14686         sanity check during LTO.
14687         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
14688         RESULT_DECl and DECL_ARGUMENTS.
14689         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
14690         Likewise.
14692 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
14694         * pretty-print.h (pp_underscore): New.
14695         (pp_comma): Tidy.
14696         * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
14697         printer functions instead of pp_character.
14698         (dump_binary_rhs): Likewise.
14699         (dump_ternary_rhs): Likewise.
14700         (dump_gimple_call_args): Likewise.
14701         (pp_points_to_solution): Likewise.
14702         (dump_gimple_call): Likewise.
14703         (dump_gimple_switch): Likewise.
14704         (dump_gimple_cond): Likewise.
14705         (dump_gimple_bind): Likewise.
14706         (dump_gimple_try): Likewise.
14707         (dump_gimple_omp_for): Likewise.
14708         (dump_gimple_omp_continue): Likewise.
14709         (dump_gimple_omp_single): Likewise.
14710         (dump_gimple_omp_sections): Likewise.
14711         (dump_gimple_omp_block): Likewise.
14712         (dump_gimple_omp_critical): Likewise.
14713         (dump_gimple_transaction): Likewise.
14714         (dump_gimple_asm): Likewise.
14715         (dump_gimple_phi): Likewise.
14716         (dump_gimple_omp_parallel): Likewise.
14717         (dump_gimple_omp_task): Likewise.
14718         (dump_gimple_omp_atomic_load): Likewise.
14719         (dump_gimple_omp_atomic_store): Likewise.
14720         (dump_gimple_mem_ops): Likewise.
14721         (pp_gimple_stmt_1): Likewise.
14722         (pp_cfg_jump): Likewise.
14723         (dump_implicit_edges): Likewise.
14724         (gimple_dump_bb_for_graph): Likewise.
14725         * graph.c (draw_cfg_node): Likewise.
14726         * langhooks.c (lhd_print_error_function): Likewise.
14727         * sched-vis.c (print_exp): Likewise.
14728         (print_value): Likewise.
14729         (print_pattern): Likewise.
14730         (print_insn): Likewise.
14731         (rtl_dump_bb_for_graph): Likewise.
14732         * tree-pretty-print.c (dump_function_declaration): Likewise.
14733         (dump_array_domain): Likewise.
14734         (dump_omp_clause): Likewise.
14735         (dump_location): Likewise.
14736         (dump_generic_node): Likewise.
14737         (print_struct_decl): Likewise.
14738         * diagnostic.c (diagnostic_show_locus): Use pp_space.
14740 2013-08-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
14742         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
14743         candidate table when replacing a candidate statement.
14744         (replace_rhs_if_not_dup): Likewise.
14745         (replace_one_candidate): Likewise.
14747 2013-08-02  Jan Hubicka  <jh@suse.cz>
14748             Martin Liska  <marxin.liska@gmail.com>
14750         * cgraphunit.c (add_new_function): Fix logic when adding from
14751         late IPA pass.
14752         (assemble_thunk): Rename to ...
14753         (expand_thunk); .. this one; export; get it working with
14754         general functions; make produced gimple valid.
14755         * cgraph.h (expand_thunk): Declare.
14757 2013-08-02  Jan Hubicka  <jh@suse.cz>
14759         * ipa-cp.c (gather_context_independent_values): Use
14760         ipa_get_param_move_cost.
14761         (get_replacement_map): Remove PARAM; move parameter folding
14762         into tree-inline.c
14763         (create_specialized_node): Update.
14764         * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
14765         assert that we have gimple body; update move_cost.
14766         (count_formal_params): Assert that we have gimple body.
14767         (ipa_dump_param): New function.
14768         (ipa_alloc_node_params): Break out from ...
14769         (ipa_initialize_node_params): ... here.
14770         (ipa_get_vector_of_formal_parms): ICE when used in WPA.
14771         (ipa_write_node_info): Stream move costs.
14772         (ipa_read_node_info): Read move costs.
14773         (ipa_update_after_lto_read): Do not recompute node params.
14774         * ipa-prop.h (ipa_param_descriptor): Add move_cost.
14775         (ipa_get_param): Check we are not in WPA.
14776         (ipa_get_param_move_cost): New.
14777         * tree-inline.c (tree_function_versioning): Fold replacement as needed.
14778         * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
14779         parm numbers to be present.
14781 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
14783         PR rtl-optimization/58048
14784         * lra-constraints.c (process_alt_operands): Don't check asm
14785         operand on register.
14787 2013-08-02  Eric Botcazou  <ebotcazou@adacore.com>
14789         * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
14790         the implied StoreLoad barrier for atomic operations if before.
14792 2013-08-02  Jan Hubicka  <jh@suse.cz>
14793             Martin Liska  <marxin.liska@gmail.com>
14795         * cgraph.c (cgraph_function_body_availability): Do not check
14796         cgraph flags.
14797         * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
14798         symtab_node_availability): Declare.
14799         * ipa.c (can_replace_by_local_alias): New.
14800         (function_and_variable_visibility): Use it.
14801         * symtab.c (symtab_for_node_and_aliases,
14802         symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
14804 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
14806         PR rtl-optimization/57963
14807         * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
14808         (lra_constraints): Use them.
14810 2013-08-02  Sofiane Naci  <sofiane.naci@arm.com>
14812         * config/arm/types.md (define_attr "type"): Add "load_acq"
14813         and "store_rel".
14814         * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
14815         changes.
14816         (cortex_a53_store1): Likewise.
14818 2013-08-01  Jan Hubicka  <jh@suse.cz>
14820         * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
14821         partitions are not needed.
14823 2013-08-01  Uros Bizjak  <ubizjak@gmail.com>
14825         * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
14826         * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
14827         MAYBE_NON_Q_CLASS_P where appropriate.
14829 2013-08-01  Jan Hubicka  <jh@suse.cz>
14831         * cgraph.h (release_function_body): Declare.
14832         * tree.c (free_lang_data_in_decl): Free, parameters and return values
14833         of unused delcarations.
14835 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14837         * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
14838         RTL form when subtracting a constant.
14840 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14842         * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
14843         Generate canonical plus rtx with negated immediate instead of minus
14844         where appropriate.
14845         * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
14847 2013-08-01  Jan Hubicka  <jh@suse.cz>
14849         * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
14850         (cgraph_release_function_body): Likewise.
14851         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
14852         * cgraph.h (cgrpah_node): Rename abstract_and_needed
14853         to used_as_abstract_origin.
14854         * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
14855         symbols used as abstract origins.
14856         * cgraphunit.c (analyze_functions): Update.
14857         * ipa.c (symtab_remove_unreachable_nodes): Recompute
14858         used_as_abstract_origin.
14859         * tree-inline.c (tree_function_versioning): Update
14860         used_as_abstract_origin; be ready for DECL_RESULT and
14861         DECL_ARGUMENTS to be NULL.
14863         * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
14864         for abstract functions.
14865         * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
14866         real symbols.
14868 2013-08-01  Jan Hubicka  <jh@suse.cz>
14870         * profile.c (compute_value_histograms): Fix thinko.
14872 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
14874         * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs.  Add
14875         aarch-common-protos.h to extra_headers.
14876         (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
14877         * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
14878         * config/aarch64/t-aarch64 (aarch-common.o): Define.
14880 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
14882         * config/aarch64/aarch64.md (define_attr "type"): Delete.
14883         Include "../arm/types.md".  Define "type" attribute for all patterns.
14884         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
14885         attribute changes.
14887 2013-07-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
14889         * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
14890         to support power8 load fusion.
14891         (fusion_gpr_mem_load): Likewise.
14893         * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
14895         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
14896         declarations for power8 load fusion.
14897         (emit_fusion_gpr_load): Likewise.
14899         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
14900         tuning for power8, turn on fusion mode by default.  Turn on sign
14901         extending fusion mode if normal fusion mode is on, and we are at
14902         -O2 or -O3.
14903         (fusion_gpr_load_p): New function, return true if we can fuse an
14904         addis instruction with a dependent load to a GPR.
14905         (emit_fusion_gpr_load): Emit the instructions for power8 load
14906         fusion to GPRs.
14908         * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
14909         (VSX load fusion peepholes): New peepholes to fuse together an
14910         addi instruction with a VSX load instruction.
14912         * config/rs6000/rs6000.md (GPR load fusion peepholes): New
14913         peepholes to fuse an addis instruction with a load to a GPR base
14914         register.  If we are supporting sign extending fusions, convert
14915         sign extending loads to zero extending loads and add an explicit
14916         sign extension.
14918 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
14920         * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs.  Add
14921         aarch-common-protos.h to extra_headers.
14922         (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
14923         * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
14924         (arm_early_store_addr_dep): Likewise.
14925         (arm_no_early_alu_shift_dep): Likewise.
14926         (arm_no_early_alu_shift_value_dep): Likewise.
14927         (arm_no_early_mul_dep): Likewise.
14928         (arm_no_early_store_addr_dep): Likewise.
14929         (arm_mac_accumulator_is_mul_result): Likewise.
14930         (arm_mac_accumulator_is_result): Likewise.
14931         * config/arm/aarch-common.c: ... here.  New file.
14932         * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
14933         here to ...
14934         (arm_early_store_addr_dep): Likewise.
14935         (arm_no_early_alu_shift_dep): Likewise.
14936         (arm_no_early_alu_shift_value_dep): Likewise.
14937         (arm_no_early_mul_dep): Likewise.
14938         (arm_no_early_store_addr_dep): Likewise.
14939         (arm_mac_accumulator_is_mul_result): Likewise.
14940         (arm_mac_accumulator_is_result): Likewise.
14941         * config/arm/aarch-common-protos.h: ... here.  New file.
14942         * config/arm/t-arm (aarch-common.o): Define.
14944 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
14946         * config/arm/arm.md: Include new file "types.md".
14947         (define_attr "type"): Move from here to ...
14948         (define_attr "mul32"): Likewise.
14949         (define_attr "mul64"): Likewise.
14950         * config/arm/types.md: ... here.  New file.
14952 2013-07-31  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14954         * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
14955         * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
14957 2013-07-31  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
14959         * gen-pass-instances.awk: Fix offset of substr().
14961 2013-07-31  David Malcolm  <dmalcolm@redhat.com>
14963         * Makefile.in (pass-instances.def): New.
14964         (passes.o): Replace dependency on passes.def with one on
14965         pass-instances.def
14967         * gen-pass-instances.awk: New.
14969         * passes.c (pass_manager::pass_manager): Use pass-instances.def
14970         rather than passes.def, updating local definition of NEXT_PASS
14971         macro to add an extra NUM parameter (currently unused).
14973 2013-07-30  David Malcolm  <dmalcolm@redhat.com>
14975         * Makefile.in (PASS_MANAGER_H): New.
14976         (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
14977         (passes.o): Likewise.
14978         (statistics.o): Likewise.
14979         (cgraphunit.o): Likewise.
14980         (context.o): Depend on PASS_MANAGER_H.
14982         * pass_manager.h: New.
14984         * cgraphunit.c (cgraph_add_new_function): Update for moves
14985         of globals to fields of pass_manager.
14986         (analyze_function): Likewise.
14987         (expand_function): Likewise.
14988         (ipa_passes): Likewise.
14989         (compile): Likewise.
14991         * context.c (context::context): New.
14992         * context.h  (context::context): New.
14993         (context::get_passes): New.
14994         (context::passes_): New.
14996         * lto-cgraph.c (input_node): Update for moves of globals to
14997         fields of pass_manager.
14999         * passes.c (all_passes): Remove, in favor of a field of the
15000         same name within the new class pass_manager.
15001         (all_small_ipa_passes): Likewise.
15002         (all_lowering_passes): Likewise.
15003         (all_regular_ipa_passes): Likewise.
15004         (all_late_ipa_passes): Likewise.
15005         (all_lto_gen_passes): Likewise.
15006         (passes_by_id): Likewise.
15007         (passes_by_id_size): Likewise.
15008         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
15009         the new class pass_manager.
15010         (set_pass_for_id): Convert to...
15011         (pass_manager::set_pass_for_id): ...method.
15012         (get_pass_for_id): Convert to...
15013         (pass_manager::get_pass_for_id): ...method.
15014         (register_one_dump_file): Move body of implementation into...
15015         (pass_manager::register_one_dump_file): ...here.
15016         (register_dump_files_1): Convert to...
15017         (pass_manager::register_dump_files_1): ...method.
15018         (register_dump_files): Convert to...
15019         (pass_manager::register_dump_files): ...method.
15020         (create_pass_tab): Update for moves of globals to fields of
15021         pass_manager.
15022         (dump_passes): Move body of implementation into...
15023         (pass_manager::dump_passes): ...here.
15024         (register_pass): Move body of implementation into...
15025         (pass_manager::register_pass): ...here.
15026         (init_optimization_passes): Convert into...
15027         (pass_manager::pass_manager): ...constructor for new
15028         pass_manager class, and initialize the pass_lists array.
15029         (check_profile_consistency): Update for moves of globals to
15030         fields of pass_manager.
15031         (dump_profile_report): Move body of implementation into...
15032         (pass_manager::dump_profile_report): ...here.
15033         (ipa_write_summaries_1): Update for moves of pass lists from
15034         being globals to fields of pass_manager.
15035         (ipa_write_optimization_summaries): Likewise.
15036         (ipa_read_summaries):  Likewise.
15037         (ipa_read_optimization_summaries): Likewise.
15038         (execute_all_ipa_stmt_fixups): Likewise.
15040         * statistics.c (statistics_fini): Update for moves of globals to
15041         fields of pass_manager.
15043         * toplev.c (general_init): Replace call to
15044         init_optimization_passes with construction of the pass_manager
15045         instance.
15047         * tree-pass.h (all_passes): Remove, in favor of a field of the
15048         same name within the new class pass_manager.
15049         (all_small_ipa_passes): Likewise.
15050         (all_lowering_passes): Likewise.
15051         (all_regular_ipa_passes): Likewise.
15052         (all_lto_gen_passes): Likewise.
15053         (all_late_ipa_passes): Likewise.
15054         (passes_by_id): Likewise.
15055         (passes_by_id_size): Likewise.
15056         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
15057         the new class pass_manager.
15058         (get_pass_for_id): Remove.
15060 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
15062         * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
15063         configs.
15065 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
15067         * arm.md (mulhi3): New expand pattern.
15069 2013-07-30  Jan Hubicka  <jh@suse.cz>
15070             Martin Liska  <marxin.liska@gmail.com>
15072         * profile.c (compute_value_histograms): Do not ICE when
15073         there is mismatch only on some counters.
15075 2013-07-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
15077         PR rtl-optimization/57637
15078         * function.c (move_insn_for_shrink_wrap): Also check the
15079         GEN set of the LIVE problem for the liveness analysis
15080         if it exists, otherwise give up.
15082 2013-07-29  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
15084         PR tree-optimization/57993
15085         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
15086         replaced statement in the candidate table.
15087         (phi_add_costs): Return infinite cost when the hidden basis does
15088         not dominate all phis on which the candidate is dependent.
15089         (replace_one_candidate): Record replaced statement in the
15090         candidate table.
15092 2013-07-29  Joern Rennecke  <joern.rennecke@embecosm.com>
15094         * config/epiphany/epiphany.md (*isub_i+2): New peephole.
15095         (ashlv2si3): New expander.
15096         (*ashlv2si3_i): New define_insn_and_split.
15097         * predicates.md (float_operation): Allow patterns with three
15098         basic sub-patterns.
15100         PR rtl-optimization/58021
15101         * mode-switching.c (create_pre_exit): Always split off preceding
15102         insns if we are not at the basic block head.
15104 2013-07-29  Maciej W. Rozycki  <macro@codesourcery.com>
15106         * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
15107         (UCLIBC_DYNAMIC_LINKER): New macro.
15108         * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
15109         `-mnan=2008'.
15110         (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
15111         (UCLIBC_DYNAMIC_LINKER32): Undefine macro first.  Handle
15112         `-mnan=2008'.
15113         (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
15114         (UCLIBC_DYNAMIC_LINKERN32): Likewise.
15115         * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
15116         for SF and DF modes.  Use ieee_quad_format for TF mode.
15117         * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
15118         * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
15119         (mips_option_override): Handle `-mnan=legacy'.
15120         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
15121         `-mabs=2008' and `-mnan=2008'.
15122         (OPTION_DEFAULT_SPECS): Add "nan" default.
15123         (ASM_SPEC): Handle `-mnan='.
15124         [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
15125         * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
15126         comment accordingly.
15127         (neg<mode>2): Likewise.
15128         * config/mips/mips.opt (mabs, mnan): New options.
15129         * doc/install.texi (Configuration): Document `--with-nan=' option.
15130         * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
15131         `-mnan=' options.
15132         (MIPS Options): Document them.
15133         * config.gcc <mips*-*-*>: Handle `--with-nan='.
15134         * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
15135         * configure: Regenerate.
15136         * config.in: Regenerate.
15138 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
15140         * config/i386/i386.md (float post-reload splitters): Do not check
15141         for subregs of SSE registers.
15143 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
15144             H.J. Lu  <hongjiu.lu@intel.com>
15146         PR target/57954
15147         PR target/57988
15148         * config/i386/i386.md (post-reload splitter
15149         to avoid partial SSE reg dependency stalls): New pattern.
15151 2013-07-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15153         * config/s390/s390.md ("movcc"): Swap load and store instructions.
15155 2013-07-27  Joern Rennecke  <joern.rennecke@embecosm.com>
15157         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
15158         Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
15160 2013-07-26  Cary Coutant  <ccoutant@google.com>
15162         * dwarf2out.c (die_checksum_ordered): Don't include template
15163         instantiations in signature.
15164         (is_template_parameter): New function.
15165         (is_template_instantiation): New function.
15166         (generate_skeleton_bottom_up): Don't include template instantiations
15167         in type unit DIE.
15168         (generate_skeleton): Likewise.
15169         (break_out_comdat_types): Move recursive call to break out nested
15170         types earlier.
15171         (prune_unused_types_mark_generic_parms_dies): Call
15172         is_template_parameter.
15174 2013-07-26  Ian Bolton  <ian.bolton@arm.com>
15176         * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
15177         uses vector registers.
15178         * config/aarch64/iterators.md: Add attributes rtn and vas.
15180 2013-07-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15181             Richard Earnshaw  <richard.earnshaw@arm.com>
15183         * combine.c (simplify_comparison): Re-canonicalize operands
15184         where appropriate.
15185         * config/arm/arm.md (movcond_addsi): New splitter.
15187 2013-07-25  Sterling Augustine  <saugustine@google.com>
15189         * dwarf2out.c (size_of_pubnames): Move code to...
15190         (include_pubname_in_output): ...here.  New.
15191         (want_pubnames): Rearrange.
15192         (output_pubnames): Call include_pubname_in_output.  Move assertion.
15194 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
15196         * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
15198 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
15200         PR target/38836
15201         * doc/extend.texi: Remove obsolete builtins. Fix
15202         typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
15204 2013-07-25  Jan Hubicka  <jh@suse.cz>
15206         * cgraph.c (release_function_body): Break out from ...
15207         (cgraph_release_function_body): ... this one; also release DECL_RESULT
15208         and DECL_ARGUMENTS.
15209         * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
15210         old_tree in the map.
15211         (create_specialized_node): Update.
15212         * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
15213         into index.
15214         * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
15215         DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
15216         * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
15217         * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
15218         DECL_RESULT.
15220 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15222         * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
15223         addsi3_carryin_alt2_<optab>): Correct output template.
15225 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15227         * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
15228         Adjust for arm_restrict_it.
15229         Remove trailing whitespace.
15231 2013-07-25 Â Mark Kettenis Â <kettenis@openbsd.org>
15233         * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
15234         libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
15236         * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
15238 2013-07-25  Vladimir Makarov  <vmakarov@redhat.com>
15240         PR rtl-optimization/57960
15241         * lra-constraints.c (process_alt_operands): Use the right mode
15242         when checking strict_low.
15244 2013-07-25  Jan Hubicka  <jh@suse.cz>
15246         * lto-symtab.c (lto_cgraph_replace_node): Release function body.
15247         * cgraph.c (cgraph_remove_node): Do not release function body
15248         when in cgraph streaming.
15249         * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
15250         in other partitions are not considered reachable; fix handling of
15251         clones.
15253 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15255         * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
15257 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15259         PR target/19599
15260         PR target/57731
15261         PR target/57837
15262         * config/arm/arm.md ("*sibcall_insn): Replace use of
15263         Ss with US. Adjust output for v5 and v4t.
15264         (*sibcall_value_insn): Likewise and loosen predicate on operand0.
15266         * config/arm/constraints.md ("Ss"): Rename to US.
15268 2013-07-25  Terry Guo  <terry.guo@arm.com>
15270         * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
15271         shift_add/shift_sub0/shift_sub1 RTXs.
15273 2013-07-24  Bill Schmidt  <wschmidt@linux.ibm.com>
15274             Anton Blanchard  <anton@au1.ibm.com>
15276         * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
15277         (altivec_vpks<VI_char>ss): Likewise.
15278         (altivec_vpks<VI_char>us): Likewise.
15279         (altivec_vpku<VI_char>us): Likewise.
15280         (altivec_vpku<VI_char>um): Likewise.
15282 2013-07-24  David Malcolm  <dmalcolm@redhat.com>
15284         Introduce context class.
15286         * Makefile.in (CONTEXT_H): New.
15287         (OBJS): Add context.o.
15288         (toplev.o): Add CONTEXT_H to dependencies.
15289         (context.o): New.
15291         * toplev.c (general_init): Create the singleton gcc::context instance.
15293         * context.c: New.
15295         * context.h: New.
15297 2013-07-24  Joern Rennecke  <joern.rennecke@embecosm.com>
15299         PR rtl-optimization/57968
15300         * mode-switching.c (create_pre_exit): Allow instructions that
15301         don't set a return register to need a non-exit mode.
15303 2013-07-24  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
15304             Anton Blanchard  <anton@au1.ibm.com>
15306         * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
15307         operands to vperm for little endian.
15308         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
15309         of lvsl to create the control mask for a vperm for little endian.
15311 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15312             Anton Blanchard  <anton@au1.ibm.com>
15314         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
15315         two operands for little-endian.
15317 2013-07-23  Steve Ellcey  <sellcey@mips.com>
15319         * config/mips/mips.c (mips_case_values_threshold): New.
15320         (TARGET_CASE_VALUES_THRESHOLD): Define.
15322 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15323             Anton Blanchard  <anton@au1.ibm.com>
15325         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
15326         selection of field for vector splat in little endian mode.
15328 2013-07-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
15330         * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
15331         expanders to rs6000.md.
15332         (ior<mode>3): Likewise.
15333         (and<mode>3): Likewise.
15334         (one_cmpl<mode>2): Likewise.
15335         (nor<mode>3): Likewise.
15336         (andc<mode>3): Likewise.
15337         (eqv<mode>3): Likewise.
15338         (nand<mode>3): Likewise.
15339         (orc<mode>3): Likewise.
15341         * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
15342         declaration.
15344         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
15345         to split multi-word logical operations.
15346         (rs6000_split_logical_di): Likewise.
15347         (rs6000_split_logical): Likewise.
15349         * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
15350         (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
15351         and allow TImode operations in 32-bit.
15352         (vsx_and<mode>3_64bit): Likewise.
15353         (vsx_ior<mode>3_32bit): Likewise.
15354         (vsx_ior<mode>3_64bit): Likewise.
15355         (vsx_xor<mode>3_32bit): Likewise.
15356         (vsx_xor<mode>3_64bit): Likewise.
15357         (vsx_one_cmpl<mode>2_32bit): Likewise.
15358         (vsx_one_cmpl<mode>2_64bit): Likewise.
15359         (vsx_nor<mode>3_32bit): Likewise.
15360         (vsx_nor<mode>3_64bit): Likewise.
15361         (vsx_andc<mode>3_32bit): Likewise.
15362         (vsx_andc<mode>3_64bit): Likewise.
15363         (vsx_eqv<mode>3_32bit): Likewise.
15364         (vsx_eqv<mode>3_64bit): Likewise.
15365         (vsx_nand<mode>3_32bit): Likewise.
15366         (vsx_nand<mode>3_64bit): Likewise.
15367         (vsx_orc<mode>3_32bit): Likewise.
15368         (vsx_orc<mode>3_64bit): Likewise.
15370         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
15371         logical types in GPRs.
15373         * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
15374         logical insns to rs6000.md, and allow TImode operations in
15375         32-bit.
15376         (altivec_ior<mode>3): Likewise.
15377         (altivec_xor<mode>3): Likewise.
15378         (altivec_one_cmpl<mode>2): Likewise.
15379         (altivec_nor<mode>3): Likewise.
15380         (altivec_andc<mode>3): Likewise.
15382         * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
15383         attributes for moving the 128-bit logical operations into
15384         rs6000.md.
15385         (BOOL_REGS_OUTPUT): Likewise.
15386         (BOOL_REGS_OP1): Likewise.
15387         (BOOL_REGS_OP2): Likewise.
15388         (BOOL_REGS_UNARY): Likewise.
15389         (BOOL_REGS_AND_CR0): Likewise.
15390         (one_cmpl<mode>2): Add support for DI logical operations on
15391         32-bit, splitting the operations to 32-bit.
15392         (anddi3): Likewise.
15393         (iordi3): Likewise.
15394         (xordi3): Likewise.
15395         (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
15396         changes to combine the 32/64-bit code, allow logical operations on
15397         TI mode in 32-bit, and to use similar match_operator patterns like
15398         scalar mode uses.  Combine the Altivec and VSX code for logical
15399         operations, and move it here.
15400         (ior<mode>3, 128-bit types): Likewise.
15401         (xor<mode>3, 128-bit types): Likewise.
15402         (one_cmpl<mode>3, 128-bit types): Likewise.
15403         (nor<mode>3, 128-bit types): Likewise.
15404         (andc<mode>3, 128-bit types): Likewise.
15405         (eqv<mode>3, 128-bit types): Likewise.
15406         (nand<mode>3, 128-bit types): Likewise.
15407         (orc<mode>3, 128-bit types): Likewise.
15408         (and<mode>3_internal): Likewise.
15409         (bool<mode>3_internal): Likewise.
15410         (boolc<mode>3_internal1): Likewise.
15411         (boolc<mode>3_internal2): Likewise.
15412         (boolcc<mode>3_internal1): Likewise.
15413         (boolcc<mode>3_internal2): Likewise.
15414         (eqv<mode>3_internal1): Likewise.
15415         (eqv<mode>3_internal2): Likewise.
15416         (one_cmpl1<mode>3_internal): Likewise.
15418 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
15420         * config/microblaze/microblaze.c (microblaze_expand_prologue):
15421         Rename flag_stack_usage to flag_stack_usage_info.
15423 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
15425         * config/microblaze/sync.md: New file.
15426         * config/microblaze/microblaze.md: Include sync.md
15427         * config/microblaze/microblaze.c: Add print_operand 'y'.
15428         * config/microblaze/constraints.md: Add memory_contraint
15429         'Q' which is a single register.
15431 2013-07-23  Eric Botcazou  <ebotcazou@adacore.com>
15433         * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
15435 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
15437         * reload.c (find_reloads): Exit loop once we find this operand
15438         cannot be reloaded somehow for this alternative.
15440         * reload.c (find_reloads): Exit loop once we find a hard register.
15442         * rtlanal.c (computed_jump_p): Exit loop once we find label
15443         reference is used.
15445         * i386.c (ix86_pad_returns): Exit loop after setting replace.
15447         * cfgloopmanip.c (remove_path): Exit loop after setting
15448         irred_invalidated.
15450         * gensupport.c (subst_dup): Avoid loop if code is not
15451         MATCH_DUP nor MATCH_OP_DUP.
15453 2013-07-23  Nicklas Bo Jensen  <nbjensen@gmail.com>
15455         * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
15457 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
15459         * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
15460         true for SP_REGNUM if mode == ptr_mode.
15461         * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
15462         with value R0_REGNUM + 31.
15464 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
15466         * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
15467         pad pointer-typed argument downward.
15469 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
15471         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
15472         and __ILP32__ when the ILP32 model is in use.
15474 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
15476         * config/aarch64/aarch64.c (POINTER_BYTES): New define.
15477         (aarch64_load_symref_appropriately): In the case of
15478         SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
15479         to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
15480         (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
15481         change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
15482         if 'mode' doesn't equal to 'ptr_mode'.
15483         (aarch64_output_mi_thunk): Add an assertion on the alignment of
15484         'vcall_offset'; change to call aarch64_emit_move differently depending
15485         on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
15486         to calculate the upper bound of 'vcall_offset'.
15487         (aarch64_cannot_force_const_mem): Change to also return true if
15488         mode != ptr_mode.
15489         (aarch64_legitimize_reload_address): In the case of large
15490         displacements, add new local variable 'xmode' and an assertion
15491         based on it; change to use 'xmode' to generate the new rtx and
15492         reload.
15493         (aarch64_asm_trampoline_template): Change to generate the template
15494         differently depending on TARGET_ILP32 or not; change to use
15495         'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
15496         (aarch64_trampoline_size): Removed.
15497         (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
15498         and replace immediate literals with it.  Change to use 'ptr_mode'
15499         instead of 'DImode' and call convert_memory_address if the mode
15500         of 'fnaddr' doesn't equal to 'ptr_mode'.
15501         (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
15502         to output symbol.
15503         (aarch64_elf_asm_destructor): Likewise.
15504         * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
15505         on TARGET_ILP32 instead of aarch64_trampoline_size.
15506         * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
15507         of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
15508         (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
15509         (loadwb_pair<GPI:mode>_<P:mode>): ... this.  Replace PTR with P.
15510         (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
15511         (storewb_pair<GPI:mode>_<P:mode>): ... this.
15512         (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
15513         depending on the value of 'mode'.
15514         (add_losym_<mode>): New.
15515         (ldr_got_small_<mode>): New, based on ldr_got_small.
15516         (ldr_got_small): Remove.
15517         (ldr_got_small_sidi): New.
15518         * config/aarch64/iterators.md (P): New.
15519         (PTR): Change to 'ptr_mode' in the condition.
15521 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
15523         * config.gcc (aarch64*-*-*): Support --with-abi.
15524         (aarch64*-*-elf): Support --with-multilib-list.
15525         (aarch64*-*-linux*): Likewise.
15526         (supported_defaults): Add abi to aarch64*-*-*.
15527         * configure.ac: Mention AArch64 for --with-multilib-list.
15528         * configure: Re-generated.
15529         * config/aarch64/biarchilp32.h: New file.
15530         * config/aarch64/biarchlp64.h: New file.
15531         * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
15532         (ABI_SPEC): Ditto.
15533         (MULTILIB_DEFAULTS): Ditto.
15534         (DRIVER_SELF_SPECS): Ditto.
15535         (ASM_SPEC): Update to also substitute -mabi.
15536         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
15537         file whose name depends on -mabi= and -mbig-endian.
15538         * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
15539         TARGET_ILP32.
15540         (POINTER_SIZE): New define.
15541         (POINTERS_EXTEND_UNSIGNED): Ditto.
15542         (enum aarch64_abi_type): New enumeration tag.
15543         (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
15544         (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
15545         (TARGET_ILP32): New define.
15546         * config/aarch64/aarch64.opt (mabi): New.
15547         (aarch64_abi): New.
15548         (ilp32, lp64): New values for -mabi.
15549         * config/aarch64/t-aarch64 (comma): New define.
15550         (MULTILIB_OPTIONS): Ditto.
15551         (MULTILIB_DIRNAMES): Ditto.
15552         * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
15553         * doc/invoke.texi: Document -mabi for AArch64.
15555 2013-07-23  Georg-Johann Lay  <avr@gjlay.de>
15557         * config/avr/avr.md: Explain asm print modifier 'r' for REG.
15559 2013-07-22  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
15560             Anton Blanchard  <anton@au1.ibm.com>
15562         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
15563         endianness when selecting field to splat.
15565 2013-07-22  Eric Christopher  <echristo@gmail.com>
15567         * dwarf2out.c (die_odr_checksum): New function to use
15568         CHECKSUM_ macros and ULEB128 for DIE tag.
15569         (generate_type_signature): Use.
15571 2013-07-22  Eric Botcazou  <ebotcazou@adacore.com>
15573         * config.gcc (sparc*-*-*): Accept leon3 processor.
15574         (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
15575         * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
15576         * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
15577         * config/sparc/sparc.opt (enum processor_type): Add leon3.
15578         (mfix-ut699): Adjust comment.
15579         * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
15580         (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
15581         (CPP_CPU_SPEC): Likewise.
15582         (ASM_CPU_SPEC): Likewise.
15583         * config/sparc/sparc.c (leon3_cost): New constant.
15584         (sparc_option_override): Add leon3 support.
15585         (mem_ref): New function.
15586         (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
15587         (sparc_do_work_around_errata): Look into the instruction in the delay
15588         slot and adjust accordingly.  Add fix for the data cache nullify issues
15589         of the UT699.  Change insertion position for the NOP.
15590         * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
15591         (leon3_load): New reservation.
15592         (leon_store): Bump latency to 2.
15593         (grfpu): New automaton.
15594         (grfpu_alu): New unit.
15595         (grfpu_ds): Likewise.
15596         (leon_fp_alu): Adjust.
15597         (leon_fp_mult): Delete.
15598         (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
15599         (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
15600         * config/sparc/sparc.md (cpu): Add leon3.
15601         * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
15602         (swapsi): Likewise.
15603         (atomic_test_and_set): Likewise.
15604         (ldstub): Likewise.
15606 2013-07-22  Jürgen Urban  <JuergenUrban@gmx.de>
15608         * config.gcc (mips*-*-*): Add --with-fpu support.  Make single the
15609         default for R5900 targets.
15610         * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
15611         (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
15612         * config/mips/mips.c (mips_option_override): Report an error for
15613         -march=r5900 -mhard-float -mdouble-float.  Use spu_single_format
15614         for -march=r5900 -mhard-float.
15616 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
15618         * df-problems.c (can_move_insns_across): Exit loop once we
15619         find a non-fixed, non-global register.
15621         * ipa-pure-const.c (propagate_nothrow): Exit loop after
15622         setting can_throw.
15624         * omega.c (omega_eliminate_red): Break after setting red_found.
15625         (omega_problem_has_red_equations): Similarly after setting found.
15626         (omega_query_variable): Similarly after setting coupled.
15628 2013-07-22  Marek Polacek  <polacek@redhat.com>
15630         * gimplify.c: Don't include gimple.h twice.
15632 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15634         * config/arm/constraints.md (Pd): Allow TARGET_THUMB
15635         instead of TARGET_THUMB1.
15636         (Pz): New constraint.
15637         * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
15638         encodings.
15639         (compare_negsi_si): Likewise.
15640         (compare_addsi2_op0): Likewise.
15641         (compare_addsi2_op1): Likewise.
15642         (addsi3_carryin_<optab>): Likewise.
15643         (addsi3_carryin_alt2_<optab>): Likewise.
15644         (addsi3_carryin_shift_<optab>): Disable cond_exec variant
15645         for arm_restrict_it.
15646         (subsi3_carryin): Likewise.
15647         (arm_subsi3_insn): Add alternatives for 16-bit encoding.
15648         (minmax_arithsi): Disable for arm_restrict_it.
15649         (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
15650         (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
15651         (satsi_<SAT:code>_shift): Likewise.
15652         (arm_shiftsi3): Add alternative for 16-bit encoding.
15653         (arm32_movhf): Disable for arm_restrict_it.
15654         (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
15655         (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
15657 2013-07-22  Sofiane Naci  <sofiane.naci@arm.com>
15659         * config/arm/arm.md (attribute "insn"): Delete.
15660         (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
15661         "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
15662         (not_shiftsi): Update for attribute change.
15663         (not_shiftsi_compare0): Likewise.
15664         (not_shiftsi_compare0_scratch): Likewise.
15665         (arm_one_cmplsi2): Likewise.
15666         (thumb1_one_cmplsi2): Likewise.
15667         (notsi_compare0): Likewise.
15668         (notsi_compare0_scratch): Likewise.
15669         (thumb1_movdi_insn): Likewise.
15670         (arm_movsi_insn): Likewise.
15671         (movhi_insn_arch4): Likewise.
15672         (movhi_bytes): Likewise.
15673         (arm_movqi_insn): Likewise.
15674         (thumb1_movqi_insn): Likewise.
15675         (arm32_movhf): Likewise.
15676         (thumb1_movhf): Likewise.
15677         (arm_movsf_soft_insn): Likewise.
15678         (thumb1_movsf_insn): Likewise.
15679         (thumb_movdf_insn): Likewise.
15680         (movsicc_insn): Likewise.
15681         (movsfcc_soft_insn): Likewise.
15682         (and_scc): Likewise.
15683         (cond_move): Likewise.
15684         (if_move_not): Likewise.
15685         (if_not_move): Likewise.
15686         (if_shift_move): Likewise.
15687         (if_move_shift): Likewise.
15688         (if_shift_shift): Likewise.
15689         (if_not_arith): Likewise.
15690         (if_arith_not): Likewise.
15691         (cond_move_not): Likewise.
15692         * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
15693         (neon_mov<mode>): Likewise.
15694         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
15695         (thumb2_movsi_vfp): Likewise.
15696         (movsf_vfp): Likewise.
15697         (thumb2_movsf_vfp): Likewise.
15698         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
15699         change.
15700         (cortexa7_older_only): Likewise.
15701         (cortexa7_younger): Likewise.
15702         * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
15703         (1020alu_shift_op): Likewise.
15704         (1020alu_shift_reg_op): Likewise.
15705         * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
15706         (alu_shift_op): Likewise.
15707         (alu_shift_reg_op): Likewise.
15708         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
15709         (11_alu_shift_op): Likewise.
15710         (11_alu_shift_reg_op): Likewise.
15711         * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
15712         (9_alu_shift_reg_op): Likewise.
15713         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
15714         change.
15715         (cortex_a15_alu_shift): Likewise.
15716         (cortex_a15_alu_shift_reg): Likewise.
15717         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
15718         (cortex_a5_alu_shift): Likewise.
15719         * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
15720         change.
15721         (cortex_a53_alu_shift): Likewise.
15722         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
15723         change.
15724         (cortex_a7_alu_reg): Likewise.
15725         (cortex_a7_alu_shift): Likewise.
15726         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
15727         (cortex_a8_alu_shift): Likewise.
15728         (cortex_a8_alu_shift_reg): Likewise.
15729         (cortex_a8_mov): Likewise.
15730         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
15731         (cortex_a9_dp_shift): Likewise.
15732         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
15733         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
15734         (cortex_r4_mov): Likewise.
15735         (cortex_r4_alu_shift): Likewise.
15736         (cortex_r4_alu_shift_reg): Likewise.
15737         * config/arm/fa526.md (526_alu_op): Update for attribute change.
15738         (526_alu_shift_op): Likewise.
15739         * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
15740         * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
15741         (626te_alu_shift_op): Likewise.
15742         * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
15743         (726te_alu_op): Likewise.
15744         (726te_alu_shift_op): Likewise.
15745         (726te_alu_shift_reg_op): Likewise.
15746         * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
15747         (mp626_alu_shift_op): Likewise.
15748         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
15749         (pj4_alu_e1_conds): Likewise.
15750         (pj4_alu): Likewise.
15751         (pj4_alu_conds): Likewise.
15752         (pj4_shift): Likewise.
15753         (pj4_shift_conds): Likewise.
15754         (pj4_alu_shift): Likewise.
15755         (pj4_alu_shift_conds): Likewise.
15757 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15759         * config/arm/predicates.md (shiftable_operator_strict_it):
15760         New predicate.
15761         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
15762         Disable cond_exec version for arm_restrict_it.
15763         (thumb2_smaxsi3): Convert to generate cond_exec.
15764         (thumb2_sminsi3): Likewise.
15765         (thumb32_umaxsi3): Likewise.
15766         (thumb2_uminsi3): Likewise.
15767         (thumb2_abssi2): Adjust constraints for arm_restrict_it.
15768         (thumb2_neg_abssi2): Likewise.
15769         (thumb2_mov_scc): Add alternative for 16-bit encoding.
15770         (thumb2_movsicc_insn): Adjust alternatives.
15771         (thumb2_mov_negscc): Disable for arm_restrict_it.
15772         (thumb2_mov_negscc_strict_it): New pattern.
15773         (thumb2_mov_notscc_strict_it): New pattern.
15774         (thumb2_mov_notscc): Disable for arm_restrict_it.
15775         (thumb2_ior_scc): Likewise.
15776         (thumb2_ior_scc_strict_it): New pattern.
15777         (thumb2_cond_move): Adjust for arm_restrict_it.
15778         (thumb2_cond_arith): Disable for arm_restrict_it.
15779         (thumb2_cond_arith_strict_it): New pattern.
15780         (thumb2_cond_sub): Adjust for arm_restrict_it.
15781         (thumb2_movcond): Likewise.
15782         (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
15783         (thumb2_zero_extendhisi2_v6): Likewise.
15784         (thumb2_zero_extendqisi2_v6): Likewise.
15785         (orsi_notsi_si): Likewise.
15786         (orsi_not_shiftsi_si): Likewise.
15788 2013-07-22  Georg-Johann Lay  <avr@gjlay.de>
15790         * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
15791         instruction sequence is 1 byte shorter.
15793 2013-07-22  Uros Bizjak  <ubizjak@gmail.com>
15795         * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
15796         it is not needed after split.
15798 2013-07-20  Iain Sandoe  <iain@codesourcery.com>
15800         PR target/51784
15801         * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
15802         second label for nonlocal goto receivers. Don't output pic base labels
15803         unless we're producing PIC; mark that action unreachable().
15804         (ix86_save_reg): If the function contains a nonlocal label, save the
15805         PIC base reg.
15806         * config/darwin-protos.h (machopic_should_output_picbase_label): New.
15807         * config/darwin.c (emitted_pic_label_num): New GTY.
15808         (update_pic_label_number_if_needed): New.
15809         (machopic_output_function_base_name): Adjust for nonlocal receiver
15810         case.
15811         (machopic_should_output_picbase_label): New.
15812         * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
15813         (nonlocal_goto_receiver): New insn and split.
15815 2013-07-20  James Greenhalgh  <james.greenhalgh@arm.com>
15817         * config/aarch64/aarch64-builtins.c
15818         (aarch64_fold_builtin): Fold abs in all modes.
15819         * config/aarch64/aarch64-simd-builtins.def
15820         (abs): Enable for all modes.
15821         * config/aarch64/arm_neon.h
15822         (vabs<q>_s<8,16,32,64): Rewrite using builtins.
15823         (vabs_f64): Add missing intrinsic.
15825 2013-07-19  Ian Bolton  <ian.bolton@arm.com>
15827         * config/aarch64/arm_neon.h (vabs_s64): New function
15829 2013-07-19  Georg-Johann Lay  <avr@gjlay.de>
15831         PR target/57516
15832         * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
15833         * config/avr/avr.md (adjust_len): Add `round'.
15834         * config/avr/avr-protos.h (avr_out_round): New prototype.
15835         (avr_out_plus): Add `out_label' argument.
15836         * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
15837         (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
15838         Handle the case where `insn' is just a pattern.
15839         (avr_out_bitop): Handle the case where `insn' is just a pattern.
15840         (avr_out_round): New function.
15841         (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
15843 2013-07-18  David Holsgrove  <david.holsgrove@xilinx.com>
15845         * config/microblaze/microblaze.c (microblaze_expand_prologue):
15846         Add check for flag_stack_usage to handle -fstack-usage support
15848 2013-07-18  Pat Haugen  <pthaugen@us.ibm.com>
15850         * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
15851         interaction for new Power8 flags and VSX.
15853 2013-07-18  Sriraman Tallam  <tmsriram@google.com>
15855         PR middle-end/57698
15856         * tree-inline.c (expand_call_inline): Emit errors during
15857         early_inlining only if optimization is not turned on.
15859 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
15861         * passes.def: New.
15863         * passes.c (init_optimization_passes): Move the construction of
15864         the pass hierarchy into a new passes.def file.
15866         * Makefile.in (passes.o): Add dependency on passes.def.
15868 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
15870         * passes.c (init_optimization_passes): Introduce macros for
15871         constructing the tree of passes (INSERT_PASSES_AFTER,
15872         PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
15873         TERMINATE_PASS_LIST).
15875 2013-07-18  Vladimir Makarov  <vmakarov@redhat.com>
15876             Wei Mi  <wmi@google.com>
15878         PR rtl-optimization/57878
15879         * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
15880         top.
15881         (reload_pseudo_compare_func): Check nregs first for reload
15882         pseudos.
15884 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
15886         * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
15888 2013-07-18  Po-Chun Chang  <pchang9@cs.wisc.edu>
15890         * read-rtl.c (validate_const_int): Once an invalid character is
15891         seen, quit the loop.
15893         * gengtype.c (write_roots): Similarly once we find the "deletable"
15894         or "if_marked" option.
15896 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
15898         * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
15899         "xtab" and "sat".  Move value "clz" from here to ...
15900         (attriubte "type"): ... here.
15901         (satsi_<SAT:code>): Delete "insn" attribute.
15902         (satsi_<SAT:code>_shift): Likewise.
15903         (arm_zero_extendqisi2addsi): Likewise.
15904         (arm_extendqisi2addsi): Likewise.
15905         (clzsi2): Update for attribute changes.
15906         (rbitsi2): Likewise.
15907         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
15908         attribute.
15909         (arm_usatsihi): Likewise.
15910         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
15912 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
15914         * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
15915         "arlo_imm".  Rename "alu_reg" to "arlo_reg".  Rename "simple_alu_shift"
15916         to "extend".  Split "alu_shift" into "shift" and "arlo_shift".  Split
15917         "alu_shift_reg" into "shift_reg" and "arlo_shift_reg".  List types
15918         in alphabetical order.
15919         (attribute "core_cycles"): Update for attribute changes.
15920         (arm_addsi3): Likewise.
15921         (addsi3_compare0): Likewise.
15922         (addsi3_compare0_scratch): Likewise.
15923         (addsi3_compare_op1): Likewise.
15924         (addsi3_compare_op2): Likewise.
15925         (compare_addsi2_op0): Likewise.
15926         (compare_addsi2_op1): Likewise.
15927         (addsi3_carryin_shift_<optab>): Likewise.
15928         (subsi3_carryin_shift): Likewise.
15929         (rsbsi3_carryin_shift): Likewise.
15930         (arm_subsi3_insn): Likewise.
15931         (subsi3_compare0): Likewise.
15932         (subsi3_compare): Likewise.
15933         (arm_andsi3_insn): Likewise.
15934         (thumb1_andsi3_insn): Likewise.
15935         (andsi3_compare0): Likewise.
15936         (andsi3_compare0_scratch): Likewise.
15937         (zeroextractsi_compare0_scratch
15938         (andsi_not_shiftsi_si): Likewise.
15939         (iorsi3_insn): Likewise.
15940         (iorsi3_compare0): Likewise.
15941         (iorsi3_compare0_scratch): Likewise.
15942         (arm_xorsi3): Likewise.
15943         (thumb1_xorsi3_insn): Likewise.
15944         (xorsi3_compare0): Likewise.
15945         (xorsi3_compare0_scratch): Likewise.
15946         (satsi_<SAT:code>_shift): Likewise.
15947         (rrx): Likewise.
15948         (arm_shiftsi3): Likewise.
15949         (shiftsi3_compare0): Likewise.
15950         (not_shiftsi): Likewise.
15951         (not_shiftsi_compare0): Likewise.
15952         (not_shiftsi_compare0_scratch): Likewise.
15953         (arm_one_cmplsi2): Likewise.
15954         (thumb_one_complsi2): Likewise.
15955         (notsi_compare0): Likewise.
15956         (notsi_compare0_scratch): Likewise.
15957         (thumb1_zero_extendhisi2): Likewise.
15958         (arm_zero_extendhisi2): Likewise.
15959         (arm_zero_extendhisi2_v6): Likewise.
15960         (arm_zero_extendhisi2addsi): Likewise.
15961         (thumb1_zero_extendqisi2): Likewise.
15962         (thumb1_zero_extendqisi2_v6): Likewise.
15963         (arm_zero_extendqisi2): Likewise.
15964         (arm_zero_extendqisi2_v6): Likewise.
15965         (arm_zero_extendqisi2addsi): Likewise.
15966         (thumb1_extendhisi2): Likewise.
15967         (arm_extendhisi2): Likewise.
15968         (arm_extendhisi2_v6): Likewise.
15969         (arm_extendqisi): Likewise.
15970         (arm_extendqisi_v6): Likewise.
15971         (arm_extendqisi2addsi): Likewise.
15972         (thumb1_extendqisi2): Likewise.
15973         (thumb1_movdi_insn): Likewise.
15974         (arm_movsi_insn): Likewise.
15975         (movsi_compare0): Likewise.
15976         (movhi_insn_arch4): Likewise.
15977         (movhi_bytes): Likewise.
15978         (arm_movqi_insn): Likewise.
15979         (thumb1_movqi_insn): Likewise.
15980         (arm32_movhf): Likewise.
15981         (thumb1_movhf): Likewise.
15982         (arm_movsf_soft_insn): Likewise.
15983         (thumb1_movsf_insn): Likewise.
15984         (movdf_soft_insn): Likewise.
15985         (thumb_movdf_insn): Likewise.
15986         (arm_cmpsi_insn): Likewise.
15987         (cmpsi_shiftsi): Likewise.
15988         (cmpsi_shiftsi_swp): Likewise.
15989         (arm_cmpsi_negshiftsi_si): Likewise.
15990         (movsicc_insn): Likewise.
15991         (movsfcc_soft_insn): Likewise.
15992         (arith_shiftsi): Likewise.
15993         (arith_shiftsi_compare0
15994         (arith_shiftsi_compare0_scratch
15995         (sub_shiftsi): Likewise.
15996         (sub_shiftsi_compare0
15997         (sub_shiftsi_compare0_scratch
15998         (and_scc): Likewise.
15999         (cond_move): Likewise.
16000         (if_plus_move): Likewise.
16001         (if_move_plus): Likewise.
16002         (if_move_not): Likewise.
16003         (if_not_move): Likewise.
16004         (if_shift_move): Likewise.
16005         (if_move_shift): Likewise.
16006         (if_shift_shift): Likewise.
16007         (if_not_arith): Likewise.
16008         (if_arith_not): Likewise.
16009         (cond_move_not): Likewise.
16010         (thumb1_ashlsi3): Set type attribute.
16011         (thumb1_ashrsi3): Likewise.
16012         (thumb1_lshrsi3): Likewise.
16013         (thumb1_rotrsi3): Likewise.
16014         (shiftsi3_compare0_scratch): Likewise.
16015         * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
16016         (neon_mov<mode>): Likewise.
16017         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
16018         attribute changes.
16019         (thumb2_movsi_insn): Likewise.
16020         (thumb2_cmpsi_neg_shiftsi): Likewise.
16021         (thumb2_extendqisi_v6): Likewise.
16022         (thumb2_zero_extendhisi2_v6): Likewise.
16023         (thumb2_zero_extendqisi2_v6): Likewise.
16024         (thumb2_shiftsi3_short): Likewise.
16025         (thumb2_addsi3_compare0_scratch): Likewise.
16026         (orsi_not_shiftsi_si): Likewise.
16027         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
16028         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
16029         changes.
16030         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
16031         (1020alu_shift_op): Likewise.
16032         (1020alu_shift_reg_op): Likewise.
16033         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
16034         (alu_shift_op): Likewise.
16035         (alu_shift_reg_op): Likewise.
16036         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
16037         (11_alu_shift_op): Likewise.
16038         (11_alu_shift_reg_op): Likewise.
16039         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
16040         (9_alu_shift_reg_op): Likewise.
16041         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
16042         changes.
16043         (cortex_a15_alu_shift): Likewise.
16044         (cortex_a15_alu_shift_reg): Likewise.
16045         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
16046         changes.
16047         (cortex_a5_alu_shift): Likewise.
16048         * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
16049         changes.
16050         (cortex_a53_alu_shift): Likewise.
16051         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
16052         changes.
16053         (cortex_a7_alu_reg): Likewise.
16054         (cortex_a7_alu_shift): Likewise.
16055         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
16056         changes.
16057         (cortex_a8_alu_shift): Likewise.
16058         (cortex_a8_alu_shift_reg): Likewise.
16059         (cortex_a8_mov): Likewise.
16060         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
16061         (cortex_a9_dp_shift): Likewise.
16062         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
16063         changes.
16064         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
16065         changes.
16066         (cortex_r4_mov): Likewise.
16067         (cortex_r4_alu_shift): Likewise.
16068         (cortex_r4_alu_shift_reg): Likewise.
16069         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
16070         (526_alu_shift_op): Likewise.
16071         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
16072         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
16073         (626te_alu_shift_op): Likewise.
16074         * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
16075         (726te_alu_op): Likewise.
16076         (726te_alu_shift_op): Likewise.
16077         (726te_alu_shift_reg_op): Likewise.
16078         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
16079         (mp626_alu_shift_op): Likewise.
16080         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
16081         (pj4_alu_e1_conds): Likewise.
16082         (pj4_alu): Likewise.
16083         (pj4_alu_conds): Likewise.
16084         (pj4_shift): Likewise.
16085         (pj4_shift_conds): Likewise.
16086         (pj4_alu_shift): Likewise.
16087         (pj4_alu_shift_conds): Likewise.
16088         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
16089         changes.
16090         (cortexa7_older_only): Likewise.
16091         (cortexa7_younger): Likewise.
16093 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
16095         * ipa-pure-const.c (generate_summary): Rename to...
16096         (pure_const_generate_summary): ... this.
16098 2013-07-17  Iain Sandoe  <iain@codesourcery.com>
16100         * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
16102 2013-07-17  Yvan Roux  <yvan.roux@linaro.org>
16104         PR target/57909
16105         * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
16106         usage in HI mode.
16108 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16110         * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
16111         enabled without -march=zEC12.
16112         * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
16113         flags to be set.
16115 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
16117         * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
16118         (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
16119         (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
16120         terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
16121         (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
16122         * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
16123         ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
16124         ISA_HAS_FP4.
16125         <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
16126         and ISA_HAS_NMADD3_NMSUB3.
16127         * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
16128         (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
16129         (nmsub4<mode>, nmsub3<mode>): Likewise.
16130         (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
16132 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
16134         * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
16135         TARGET_MIPS5400 checking.
16137 2013-07-16  Jakub Jelinek  <jakub@redhat.com>
16138             Peter Bergner  <bergner@vnet.ibm.com>
16140         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
16141         registers in the comment.
16142         (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
16143         (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
16144         rather than FIRST_PSEUDO_REGISTERS.
16146 2013-07-16  Peter Bergner  <bergner@vnet.ibm.com>
16148         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
16149         enable extra ISA flags with TARGET_HTM.
16151 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
16153         * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
16154         Fix comment typos.
16156 2013-07-15  Cong Hou  <congh@google.com>
16158         * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
16159         in compare function for sorting.
16161 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
16163         * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
16164         * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
16165         * config/rs6000/rs6000.opt: Add -mhtm option.
16166         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
16167         (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
16168         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
16169         __HTM__ if the HTM instructions are available.
16170         * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
16171         htm_spr_reg_operand): New define_predicates.
16172         * config/rs6000/rs6000.md (define_attr "type"): Add htm.
16173         (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
16174         Include htm.md.
16175         * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
16176         BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
16177         HTM builtin functions.
16178         * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
16179         (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
16180         (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
16181         (rs6000_builtin_mask_calculate): Likewise.
16182         (rs6000_option_override_internal): Likewise.
16183         (bdesc_htm): Add new HTM builtin support.
16184         (htm_spr_num): New function.
16185         (htm_spr_regno): Likewise.
16186         (rs6000_htm_spr_icode): Likewise.
16187         (htm_expand_builtin): Likewise.
16188         (htm_init_builtins): Likewise.
16189         (rs6000_expand_builtin): Add support for HTM builtin functions.
16190         (rs6000_init_builtins): Likewise.
16191         (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
16192         option.
16193         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
16194         (TARGET_HTM, MASK_HTM): Define macros.
16195         (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
16196         (FIXED_REGISTERS): Likewise.
16197         (CALL_USED_REGISTERS): Likewise.
16198         (CALL_REALLY_USED_REGISTERS): Likewise.
16199         (REG_ALLOC_ORDER): Likewise.
16200         (enum reg_class): Likewise.
16201         (REG_CLASS_NAMES): Likewise.
16202         (REG_CLASS_CONTENTS): Likewise.
16203         (REGISTER_NAMES): Likewise.
16204         (ADDITIONAL_REGISTER_NAMES): Likewise.
16205         (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
16206         RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
16207         (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
16208         * config/rs6000/htm.md: New file.
16209         * config/rs6000/htmintrin.h: New file.
16210         * config/rs6000/htmxlintrin.h: New file.
16212 2013-07-15  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16214         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
16215         Define SYMBOL_TINY_GOT, update comment.
16216         * config/aarch64/aarch64.c
16217         (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
16218         (aarch64_expand_mov_immediate): Likewise.
16219         (aarch64_print_operand): Likewise.
16220         (aarch64_classify_symbol): Likewise.
16221         * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
16222         (ldr_got_tiny): Define.
16224 2013-07-13  Tobias Grosser  <tobias@grosser.es>
16226         PR tree-optimization/54094
16227         * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
16228           scheduling dimension for the parallelism check from the polyhedral
16229           information in the AST.
16230         * graphite-dependences.c (carries_deps): Do not assume the schedule is
16231           in 2D + 1 form.
16233 2013-07-13  Jason Merrill  <jason@redhat.com>
16235         * print-tree.c (debug_vec_tree): Use debug_raw.
16236         (debug_raw (vec<tree, va_gc> &)): New.
16237         (debug_raw (vec<tree, va_gc> *)): New.
16238         * tree.h: Declare them.
16240 2013-07-13  Bin Cheng  <bin.cheng@arm.com>
16242         * ifcvt.c (ifcvt_after_combine): New static variable.
16243         (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
16244         for size.
16245         (if_convert): New parameter after_combine.  Set ifcvt_after_combine.
16246         (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
16247         rest_of_handle_if_after_reload): Pass new argument for if_convert.
16249 2013-07-12  Maciej W. Rozycki  <macro@codesourcery.com>
16251         * config/mips/mips.c (mips_expand_call): Remove empty statement.
16253 2013-07-12  Michael Matz  <matz@suse.de>
16255         PR middle-end/55771
16256         * convert.c (convert_to_real): Reject non-float inner types.
16258 2013-07-12  Tejas Belagod  <tejas.belagod@arm.com>
16260         * config/aarch64/aarch64-protos.h
16261         (aarch64_simd_immediate_valid_for_move): Remove.
16262         * config/aarch64/aarch64.c (simd_immediate_info): New member.
16263         (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
16264         cases.
16265         (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
16267 2013-07-11  Steve Ellcey  <sellcey@mips.com>
16269         * config/mips/mips.c (mips_conditional_register_usage): Do not
16270         use t[0-7] registers in MIPS16 mode when optimizing for size.
16272 2013-07-11  Sriraman Tallam  <tmsriram@google.com>
16274         * config/i386/i386.c (dispatch_function_versions): Fix array
16275         indexing of function_version_info to match actual_versions.
16277 2013-07-11  Teresa Johnson  <tejohnson@google.com>
16279         * vec.h (struct va_gc): Move release out-of-line.
16280         (va_gc::release): Call ggc_free on released vec.
16282 2013-07-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16284         * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
16285         Require GOT register as additional operand in UNSPEC.
16286         ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
16287         ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
16288         ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
16289         ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
16290         ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
16291         ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
16292         ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
16294 2013-07-11  Georg-Johann Lay  <avr@gjlay.de>
16296         PR target/57631
16297         * config/avr/avr.c (avr_set_current_function): Sanity-check signal
16298         name seen by assembler/linker rather if available.
16300 2013-07-11  Andreas Schwab  <schwab@suse.de>
16302         * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
16304 2013-07-10  Vladimir Makarov  <vmakarov@redhat.com>
16306         * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
16308 2013-07-10  Joseph Myers  <joseph@codesourcery.com>
16310         * doc/tm.texi.in: Move hook documentation to ....
16311         * target.def: ... here.
16313         * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
16314         text on @hook line.
16315         * doc/tm.texi: Regenerate.
16317 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
16319         PR c++/57869
16320         * doc/invoke.texi: Document -Wconditionally-supported.
16322 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
16324         PR target/57844
16325         * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
16326         of my_fp.
16328 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
16330         PR target/57506
16331         * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
16332         (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
16333         (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
16334         Remove duplicate devices.
16335         * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
16336         * config/avr/t-multilib: Regenerate.
16337         * config/avr/avr-tables.opt: Regenerate.
16338         * doc/avr-mmcu.texi: Regenerate.
16340 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
16342         PR target/56987
16343         * config/avr/avr.opt (Waddr-space-convert): Fix typo.
16345 2013-07-10  Graham Stott  <graham.stott@btinternet.com>
16347         * config/mips/mips.c (mips_rtx_costs): Very slightly increase
16348         the cost of MULT when optimizing for size.
16350 2013-07-10  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
16352         * config/cr16/cr16-protos.h: Don't include target.h.
16354 2013-07-09  Joseph Myers  <joseph@codesourcery.com>
16356         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
16357         adjust register size for TDmode and TFmode for VSX registers.
16359 2013-07-08  Kai Tietz  <ktietz@redhat.com>
16361         PR target/56892
16362         * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
16363         hook_bool_const_tree_true.
16365 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16367         * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
16368         * config/s390/s390.h: Remove F*_REGNUM macro definitions.
16369         * config/s390/s390.md: Define FPR*_REGNUM constants.
16370         Fix FPR2_REGNUM constant (18 -> 17).
16371         ("*trunc<BFP:mode><DFP_ALL:mode>2")
16372         ("*trunc<DFP_ALL:mode><BFP:mode>2")
16373         ("trunc<BFP:mode><DFP_ALL:mode>2")
16374         ("trunc<DFP_ALL:mode><BFP:mode>2")
16375         ("*extend<BFP:mode><DFP_ALL:mode>2")
16376         ("*extend<DFP_ALL:mode><BFP:mode>2")
16377         ("extend<BFP:mode><DFP_ALL:mode>2")
16378         ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
16379         FPR4_REGNUM.
16381 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
16383         * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
16385 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16387         * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
16388         and cfun_fpr_bit_p to cfun_fpr_save_p.
16389         (s390_frame_area, s390_register_info, s390_frame_info)
16390         (s390_emit_prologue, s390_emit_epilogue)
16391         (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
16392         register numbers.
16393         * config/s390/s390.h: Define *_REGNUM macros for floating point
16394         register numbers.
16396 2013-07-08  Eric Botcazou  <ebotcazou@adacore.com>
16398         * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
16400 2013-07-08  Po-Chun Chang  <pchang9@cs.wisc.edu>
16402         PR rtl-optimization/57786
16403         * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
16404         and break out of the loop when it is set to false.
16406 2013-07-08  Jakub Jelinek  <jakub@redhat.com>
16408         PR target/57819
16409         * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
16410         Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
16411         (const_int 63)) 0)).
16412         * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
16413         using simplify_gen_unary instead of gen_rtx_*_EXTEND.
16414         * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
16416         PR rtl-optimization/57829
16417         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
16418         mask bits outside of mode are just sign-extension from mode to HWI.
16420 2013-07-08  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
16422         * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
16423         * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
16424         adjust_address instead of change_address to keep info about alignment.
16425         (emit_strmov): Remove.
16426         (emit_memmov): New function.
16427         (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
16428         (expand_movmem_epilogue): Likewise and return updated rtx for
16429         destination.
16430         (expand_constant_movmem_prologue): Likewise and return updated rtx for
16431         destination and source.
16432         (decide_alignment): Refactor, handle vector_loop.
16433         (ix86_expand_movmem): Likewise.
16434         (ix86_expand_setmem): Likewise.
16435         * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
16437 2013-07-07  Uros Bizjak  <ubizjak@gmail.com>
16439         * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
16440         signature_TM2_ebx, it interferes with signature_INTEL_ebx.
16442 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
16444         * config/i386/sse.md (sse_movlhps): Change alternative 3
16445         of operand 2 to "m".
16447 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
16449         PR target/57807
16450         * config/i386/sse.md (iptr): New mode attribute.
16451         (sse2_movq128): Add pointer size overrides for Intel asm dialect.
16452         (<sse>_vm<plusminus_insn><mode>3): Ditto.
16453         (<sse>_vmmul<mode>3): Ditto.
16454         (<sse>_vmdiv<mode>3): Ditto.
16455         (sse_vmrcpv4sf2): Ditto.
16456         (<sse>_vmsqrt<mode>2): Ditto.
16457         (sse_vmrsqrtv4sf2): Ditto.
16458         (<sse>_vm<code><mode>3): Ditto.
16459         (avx_vmcmp<mode>3): Ditto.
16460         (<sse>_vmmaskcmp<mode>3): Ditto.
16461         (<sse>_comi): Ditto.
16462         (<sse>_ucomi): Ditto.
16463         (*xop_vmfrcz_<mode>): Ditto.
16464         (*fmai_fmadd_<mode>): Ditto.
16465         (*fmai_fmsub_<mode>): Ditto.
16466         (*fmai_fnmadd_<mode>): Ditto.
16467         (*fmai_fnmsub_<mode>): Ditto.
16468         (*fma4i_vmfmadd_<mode>): Ditto.
16469         (*fma4i_vmfmsub_<mode>): Ditto.
16470         (*fma4i_vmfnmadd_<mode>): Ditto.
16471         (*fma4i_vmfnmsub_<mode>): Ditto.
16472         (*xop_vmfrcz_<mode>): Ditto.
16473         (sse_cvtps2pi): Ditto.
16474         (sse_cvttps2pi): Ditto.
16475         (sse_cvtss2si): Ditto.
16476         (sse_cvtss2si_2): Ditto.
16477         (sse_cvtss2siq_2): Ditto.
16478         (sse_cvttss2si): Ditto.
16479         (sse_cvttss2siq): Ditto.
16480         (sse_cvtsd2si): Ditto.
16481         (sse_cvtsd2si_2): Ditto.
16482         (sse_cvtsd2siq_2): Ditto.
16483         (sse_cvttsd2si): Ditto.
16484         (sse_cvttsd2siq): Ditto.
16485         (sse_cvtsd2ss): Ditto.
16486         (sse_cvtss2sd): Ditto.
16487         (avx2_pbroadcast<mode>): Ditto.
16488         (avx2_pbroadcast<mode>_1): Ditto.
16489         (*avx_vperm_broadcast_v4sf): Ditto.
16491         (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
16492         (sse_movlhps): Ditto.
16493         (sse_storehps): Ditto.
16494         (sse_loadhps): Ditto.
16495         (sse_storelps): Ditto.
16496         (sse_loadlps): Ditto.
16497         (*vec_concatv4sf): Ditto.
16498         (*vec_interleave_highv2df): Ditto.
16499         (*vec_interleave_lowv2df): Ditto.
16500         (*vec_extractv2df_1_sse): Ditto.
16501         (*vec_extractv2df_0_sse): Ditto.
16502         (sse2_storelpd): Ditto.
16503         (sse2_loadlpd): Ditto.
16504         (sse2_movsd): Ditto.
16505         (*vec_concatv4si): Ditto.
16506         (vec_concatv2di): Ditto.
16508         * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
16509         for Intel asm dialect.
16510         (mmx_punpcklwd): Ditto.
16511         (mmx_punpckldq): Ditto.
16513         * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
16514         for intel assembler dialect.
16516 2013-07-06  Jakub Jelinek  <jakub@redhat.com>
16518         PR target/29776
16519         * fold-const.c (tree_call_nonnegative_warnv_p): Return true
16520         for BUILT_IN_C{LZ,LRSB}*.
16521         * tree.h (CASE_INT_FN): Add FN##IMAX case.
16522         * tree-vrp.c (extract_range_basic): Handle
16523         BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*.  For
16524         BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
16525         fall thru to code calling set_value*.
16526         * builtins.c (expand_builtin): Remove *IMAX cases.
16527         (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
16528         if width is bigger than 2*HWI.
16530 2013-07-05  Vladimir Makarov  <vmakarov@redhat.com>
16532         PR rtl-optimization/55342
16533         * lra-int.h (lra_subreg_reload_pseudos): New.
16534         * lra.c: Add undoing optional reloads to the block diagram.
16535         (lra_subreg_reload_pseudos): New.
16536         (lra_optional_reload_pseudos): Change comments.
16537         (lra): Init and clear lra_subreg_reload_pseudos.  Clear
16538         lra_optional_reload_pseudos after undo transformations.
16539         * lra-assigns.c (pseudo_prefix_title): New.
16540         (lra_setup_reg_renumber): Use it.
16541         (spill_for): Ditto.  Check subreg reload pseudos too.
16542         (assign_by_spills): Consider subreg reload pseudos too.
16543         * lra-constraints.c (simplify_operand_subreg): Use
16544         lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
16545         (curr_insn_transform): Recognize and do optional reloads.
16546         (undo_optional_reloads): New.
16547         (lra_undo_inheritance): Call undo_optional_reloads.
16549 2013-07-05  Thomas Quinot  <quinot@adacore.com>
16551         * tree-complex.c (expand_complex_operations_1): Fix typo.
16553 2013-07-04  Tejas Belagod  <tejas.belagod@arm.com>
16555         * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
16556         (tune_params): New member 'const vec_costs'.
16557         * config/aarch64/aarch64.c (generic_vector_cost): New.
16558         (generic_tunings): New member 'generic_vector_cost'.
16559         (aarch64_builtin_vectorization_cost): New.
16560         (aarch64_add_stmt_cost): New.
16561         (TARGET_VECTORIZE_ADD_STMT_COST): New.
16562         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
16564 2013-07-03  Jakub Jelinek  <jakub@redhat.com>
16566         PR target/57777
16567         * config/i386/predicates.md (vsib_address_operand): Disallow
16568         SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
16570 2013-07-03  Hans-Peter Nilsson  <hp@bitrange.com>
16572         PR middle-end/55030
16573         * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
16574         expand_builtin_setjmp_receiver.
16575         (expand_label): Adjust, call expand_builtin_setjmp_receiver
16576         with NULL for the label parameter.
16577         * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
16578         the frame-pointer.  Adjust comments.
16579         [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
16580         only if LABEL is non-NULL.
16582 2013-07-03  Yufeng Zhang  <yufeng.zhang@arm.com>
16584         * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
16585         (ARM_ABI_AAPCS64): Ditto.
16586         (arm_abi): Ditto.
16587         (ARM_DEFAULT_ABI): Ditto.
16589 2013-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
16591         * config/aarch64/aarch64-builtins.c
16592         (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
16593         * config/aarch64/aarch64-simd-builtins.def (ld1): New.
16594         (st1): Likewise.
16595         * config/aarch64/aarch64-simd.md
16596         (aarch64_ld1<VALL:mode>): New.
16597         (aarch64_st1<VALL:mode>): Likewise.
16598         * config/aarch64/arm_neon.h
16599         (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
16601 2013-07-02  Sriraman Tallam  <tmsriram@google.com>
16603         * config/i386/i386.c (gate_insert_vzeroupper): Check if
16604         target ISA is AVX.
16605         (ix86_option_override_internal):Turn on all -mavx target flags by
16606         default as they are dependent on AVX anyway.
16608 2013-07-02  Cary Coutant  <ccoutant@google.com>
16610         * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
16611         deterministic hash.
16612         (loc_checksum_ordered): Likewise.
16613         (hash_loc_operands): Remove inline keyword.
16615 2013-07-02  Jakub Jelinek  <jakub@redhat.com>
16617         PR tree-optimization/57741
16618         * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
16619         non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
16620         or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
16621         Allow REAL_CST step_exprs if flag_associative_math.
16622         (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
16624 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
16626         * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
16628 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
16630         * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
16632 2013-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16634         * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
16635         encoding.
16636         (iorsi3_insn): Likewise.
16637         (arm_xorsi3): Likewise.
16639 2013-07-01  Sofiane Naci  <sofiane.naci@arm.com>
16641         * arm.md (attribute "wtype"): Delete.  Move attribute values from here
16642         to ...
16643         (attribute "type"): ... here, and prefix with "wmmx_".
16644         (attribute "core_cycles"): Update for attribute changes.
16645         * iwmmxt.md (tbcstv8qi): Update for attribute changes.
16646         (tbcstv4hi): Likewise.
16647         (tbcstv2si): Likewise.
16648         (iwmmxt_iordi3): Likewise.
16649         (iwmmxt_xordi3): Likewise.
16650         (iwmmxt_anddi3): Likewise.
16651         (iwmmxt_nanddi3): Likewise.
16652         (iwmmxt_arm_movdi): Likewise.
16653         (iwmmxt_movsi_insn): Likewise.
16654         (mov<mode>_internal): Likewise.
16655         (and<mode>3_iwmmxt): Likewise.
16656         (ior<mode>3_iwmmxt): Likewise.
16657         (xor<mode>3_iwmmxt): Likewise.
16658         (add<mode>3_iwmmxt): Likewise.
16659         (ssaddv8qi3): Likewise.
16660         (ssaddv4hi3): Likewise.
16661         (ssaddv2si3): Likewise.
16662         (usaddv8qi3): Likewise.
16663         (usaddv4hi3): Likewise.
16664         (usaddv2si3): Likewise.
16665         (sub<mode>3_iwmmxt): Likewise.
16666         (sssubv8qi3): Likewise.
16667         (sssubv4hi3): Likewise.
16668         (sssubv2si3): Likewise.
16669         (ussubv8qi3): Likewise.
16670         (ussubv4hi3): Likewise.
16671         (ussubv2si3): Likewise.
16672         (mulv4hi3_iwmmxt): Likewise.
16673         (smulv4hi3_highpart): Likewise.
16674         (umulv4hi3_highpart): Likewise.
16675         (iwmmxt_wmacs): Likewise.
16676         (iwmmxt_wmacsz): Likewise.
16677         (iwmmxt_wmacu): Likewise.
16678         (iwmmxt_wmacuz): Likewise.
16679         (iwmmxt_clrdi): Likewise.
16680         (iwmmxt_clrv8qi): Likewise.
16681         (iwmmxt_clr4hi): Likewise.
16682         (iwmmxt_clr2si): Likewise.
16683         (iwmmxt_uavgrndv8qi3): Likewise.
16684         (iwmmxt_uavgrndv4hi3): Likewise.
16685         (iwmmxt_uavgv8qi3): Likewise.
16686         (iwmmxt_uavgv4hi3): Likewise.
16687         (iwmmxt_tinsrb): Likewise.
16688         (iwmmxt_tinsrh): Likewise.
16689         (iwmmxt_tinsrw): Likewise.
16690         (iwmmxt_textrmub): Likewise.
16691         (iwmmxt_textrmsb): Likewise.
16692         (iwmmxt_textrmuh): Likewise.
16693         (iwmmxt_textrmsh): Likewise.
16694         (iwmmxt_textrmw): Likewise.
16695         (iwmxxt_wshufh): Likewise.
16696         (eqv8qi3): Likewise.
16697         (eqv4hi3): Likewise.
16698         (eqv2si3): Likewise.
16699         (gtuv8qi3): Likewise.
16700         (gtuv4hi3): Likewise.
16701         (gtuv2si3): Likewise.
16702         (gtv8qi3): Likewise.
16703         (gtv4hi3): Likewise.
16704         (gtv2si3): Likewise.
16705         (smax<mode>3_iwmmxt): Likewise.
16706         (umax<mode>3_iwmmxt): Likewise.
16707         (smin<mode>3_iwmmxt): Likewise.
16708         (umin<mode>3_iwmmxt): Likewise.
16709         (iwmmxt_wpackhss): Likewise.
16710         (iwmmxt_wpackwss): Likewise.
16711         (iwmmxt_wpackdss): Likewise.
16712         (iwmmxt_wpackhus): Likewise.
16713         (iwmmxt_wpackwus): Likewise.
16714         (iwmmxt_wpackdus): Likewise.
16715         (iwmmxt_wunpckihb): Likewise.
16716         (iwmmxt_wunpckihh): Likewise.
16717         (iwmmxt_wunpckihw): Likewise.
16718         (iwmmxt_wunpckilb): Likewise.
16719         (iwmmxt_wunpckilh): Likewise.
16720         (iwmmxt_wunpckilw): Likewise.
16721         (iwmmxt_wunpckehub): Likewise.
16722         (iwmmxt_wunpckehuh): Likewise.
16723         (iwmmxt_wunpckehuw): Likewise.
16724         (iwmmxt_wunpckehsb): Likewise.
16725         (iwmmxt_wunpckehsh): Likewise.
16726         (iwmmxt_wunpckehsw): Likewise.
16727         (iwmmxt_wunpckelub): Likewise.
16728         (iwmmxt_wunpckeluh): Likewise.
16729         (iwmmxt_wunpckeluw): Likewise.
16730         (iwmmxt_wunpckelsb): Likewise.
16731         (iwmmxt_wunpckelsh): Likewise.
16732         (iwmmxt_wunpckelsw): Likewise.
16733         (ror<mode>3): Likewise.
16734         (ashr<mode>3_iwmmxt): Likewise.
16735         (lshr<mode>3_iwmmxt): Likewise.
16736         (ashl<mode>3_iwmmxt): Likewise.
16737         (ror<mode>3_di): Likewise.
16738         (ashr<mode>3_di): Likewise.
16739         (lshr<mode>3_di): Likewise.
16740         (ashl<mode>3_di): Likewise.
16741         (iwmmxt_wmadds): Likewise.
16742         (iwmmxt_wmaddu): Likewise.
16743         (iwmmxt_tmia): Likewise.
16744         (iwmmxt_tmiaph): Likewise.
16745         (iwmmxt_tmiabb): Likewise.
16746         (iwmmxt_tmiatb): Likewise.
16747         (iwmmxt_tmiabt): Likewise.
16748         (iwmmxt_tmiatt): Likewise.
16749         (iwmmxt_tmovmskb): Likewise.
16750         (iwmmxt_tmovmskh): Likewise.
16751         (iwmmxt_tmovmskw): Likewise.
16752         (iwmmxt_waccb): Likewise.
16753         (iwmmxt_wacch): Likewise.
16754         (iwmmxt_waccw): Likewise.
16755         (iwmmxt_waligni): Likewise.
16756         (iwmmxt_walignr): Likewise.
16757         (iwmmxt_walignr0): Likewise.
16758         (iwmmxt_walignr1): Likewise.
16759         (iwmmxt_walignr2): Likewise.
16760         (iwmmxt_walignr3): Likewise.
16761         (iwmmxt_wsadb): Likewise.
16762         (iwmmxt_wsadh): Likewise.
16763         (iwmmxt_wsadbz): Likewise.
16764         (iwmmxt_wsadhz): Likewise.
16765         * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
16766         (iwmmxt_wabsdiffb): Likewise.
16767         (iwmmxt_wabsdiffh): Likewise.
16768         (iwmmxt_wabsdiffw): Likewise.
16769         (iwmmxt_waddsubhx): Likewise
16770         (iwmmxt_wsubaddhx): Likewise.
16771         (addc<mode>3): Likewise.
16772         (iwmmxt_avg4): Likewise.
16773         (iwmmxt_avg4r): Likewise.
16774         (iwmmxt_wmaddsx): Likewise.
16775         (iwmmxt_wmaddux): Likewise.
16776         (iwmmxt_wmaddsn): Likewise.
16777         (iwmmxt_wmaddun): Likewise.
16778         (iwmmxt_wmulwsm): Likewise.
16779         (iwmmxt_wmulwum): Likewise.
16780         (iwmmxt_wmulsmr): Likewise.
16781         (iwmmxt_wmulumr): Likewise.
16782         (iwmmxt_wmulwsmr): Likewise.
16783         (iwmmxt_wmulwumr): Likewise.
16784         (iwmmxt_wmulwl): Likewise.
16785         (iwmmxt_wqmulm): Likewise.
16786         (iwmmxt_wqmulwm): Likewise.
16787         (iwmmxt_wqmulmr): Likewise.
16788         (iwmmxt_wqmulwmr): Likewise.
16789         (iwmmxt_waddbhusm): Likewise.
16790         (iwmmxt_waddbhusl): Likewise.
16791         (iwmmxt_wqmiabb): Likewise.
16792         (iwmmxt_wqmiabt): Likewise.
16793         (iwmmxt_wqmiatb): Likewise.
16794         (iwmmxt_wqmiatt): Likewise.
16795         (iwmmxt_wqmiabbn): Likewise.
16796         (iwmmxt_wqmiabtn): Likewise.
16797         (iwmmxt_wqmiatbn): Likewise.
16798         (iwmmxt_wqmiattn): Likewise.
16799         (iwmmxt_wmiabb): Likewise.
16800         (iwmmxt_wmiabt): Likewise.
16801         (iwmmxt_wmiatb): Likewise.
16802         (iwmmxt_wmiatt): Likewise.
16803         (iwmmxt_wmiabbn): Likewise.
16804         (iwmmxt_wmiabtn): Likewise.
16805         (iwmmxt_wmiatbn): Likewise.
16806         (iwmmxt_wmiattn): Likewise.
16807         (iwmmxt_wmiawbb): Likewise.
16808         (iwmmxt_wmiawbt): Likewise.
16809         (iwmmxt_wmiawtb): Likewise.
16810         (iwmmxt_wmiawtt): Likewise.
16811         (iwmmxt_wmiawbbn): Likewise.
16812         (iwmmxt_wmiawbtn): Likewise.
16813         (iwmmxt_wmiawtbn): Likewise.
16814         (iwmmxt_wmiawttn): Likewise.
16815         (iwmmxt_wmerge): Likewise.
16816         (iwmmxt_tandc<mode>3): Likewise.
16817         (iwmmxt_torc<mode>3): Likewise.
16818         (iwmmxt_torvsc<mode>3): Likewise.
16819         (iwmmxt_textrc<mode>3): Likewise.
16820         * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
16821         (wmmxt_pack): Likewise.
16822         (wmmxt_mult_c1): Likewise.
16823         (wmmxt_mult_c2): Likewise.
16824         (wmmxt_alu_c1): Likewise.
16825         (wmmxt_alu_c2): Likewise.
16826         (wmmxt_alu_c3): Likewise.
16827         (wmmxt_transfer_c1): Likewise.
16828         (wmmxt_transfer_c2): Likewise.
16829         (wmmxt_transfer_c3): Likewise.
16830         (marvell_f_iwmmxt_wstr): Likewise.
16831         (marvell_f_iwmmxt_wldr): Likewise.
16833 2013-06-29  Yufeng Zhang  <yufeng.zhang@arm.com>
16835         * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
16837 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
16839         Revert:
16840         2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
16841         * lra-constraints.c (need_for_split_p): Check call used hard regs
16842         living through calls.
16844         * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
16845         call used regs for call insn.
16847 2013-06-28  Jakub Jelinek  <jakub@redhat.com>
16849         PR target/57736
16850         * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
16851         mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
16853 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
16855         * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
16857 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
16859         * lra-constraints.c (need_for_split_p): Check call used hard regs
16860         living through calls.
16862 2013-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
16864         PR target/57744
16865         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
16866         to tie with any other modes.  Eliminate Altivec vector mode tests,
16867         since these are a subset of ALTIVEC or VSX vector modes.  Simplify
16868         code, to return 0 if testing MODE2 for a condition, if we've
16869         already tested MODE1 for the same condition.
16871 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16873         * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
16874         layout.
16876 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16878         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
16879         Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
16881 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16883         * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
16884         Define.
16885         (aarch64_symbolic_constant_p): Remove.
16886         * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
16887         static.  Fix line length and white space.
16888         (aarch64_symbolic_constant_p): Remove.
16889         * config/aarch64/predicates.md (aarch64_valid_symref):
16890         Use aarch64_classify_symbol_expression.
16892 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16894         * config/arm/constraints.md (Ts): New constraint.
16895         * config/arm/arm.md (arm_movqi_insn): Add alternatives for
16896         16-bit encodings.
16897         (compare_scc): Use "Ts" constraint for operand 0.
16898         (ior_scc_scc): Likewise.
16899         (and_scc_scc): Likewise.
16900         (and_scc_scc_nodom): Likewise.
16901         (ior_scc_scc_cmp): Likewise for operand 7.
16902         (and_scc_scc_cmp): Likewise.
16903         * config/arm/thumb2.md (thumb2_movsi_insn):
16904         Add alternatives for 16-bit encodings.
16905         (thumb2_movhi_insn): Likewise.
16906         (thumb2_movsicc_insn): Likewise.
16907         (thumb2_and_scc): Take 'and' outside cond_exec.  Use "Ts" constraint.
16908         (thumb2_negscc): Use "Ts" constraint.
16909         Move mvn instruction outside cond_exec block.
16910         * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
16911         for 16-bit encodings.
16913 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16915         * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
16916         encoding.
16917         (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
16918         (mulsi3subsi): Likewise.
16919         (mulsidi3adddi): Likewise.
16920         (mulsidi3_v6): Likewise.
16921         (umulsidi3_v6): Likewise.
16922         (umulsidi3adddi_v6): Likewise.
16923         (smulsi3_highpart_v6): Likewise.
16924         (umulsi3_highpart_v6): Likewise.
16925         (mulhisi3tb): Likewise.
16926         (mulhisi3bt): Likewise.
16927         (mulhisi3tt): Likewise.
16928         (maddhisi4): Likewise.
16929         (maddhisi4tb): Likewise.
16930         (maddhisi4tt): Likewise.
16931         (maddhidi4): Likewise.
16932         (maddhidi4tb): Likewise.
16933         (maddhidi4tt): Likewise.
16934         (zeroextractsi_compare0_scratch): Likewise.
16935         (insv_zero): Likewise.
16936         (insv_t2): Likewise.
16937         (anddi_notzesidi_di): Likewise.
16938         (anddi_notsesidi_di): Likewise.
16939         (andsi_notsi_si): Likewise.
16940         (iordi_zesidi_di): Likewise.
16941         (xordi_zesidi_di): Likewise.
16942         (andsi_iorsi3_notsi): Likewise.
16943         (smax_0): Likewise.
16944         (smax_m1): Likewise.
16945         (smin_0): Likewise.
16946         (not_shiftsi): Likewise.
16947         (unaligned_loadsi): Likewise.
16948         (unaligned_loadhis): Likewise.
16949         (unaligned_loadhiu): Likewise.
16950         (unaligned_storesi): Likewise.
16951         (unaligned_storehi): Likewise.
16952         (extv_reg): Likewise.
16953         (extzv_t2): Likewise.
16954         (divsi3): Likewise.
16955         (udivsi3): Likewise.
16956         (arm_zero_extendhisi2addsi): Likewise.
16957         (arm_zero_extendqisi2addsi): Likewise.
16958         (compareqi_eq0): Likewise.
16959         (arm_extendhisi2_v6): Likewise.
16960         (arm_extendqisi2addsi): Likewise.
16961         (arm_movt): Likewise.
16962         (thumb2_ldrd): Likewise.
16963         (thumb2_ldrd_base): Likewise.
16964         (thumb2_ldrd_base_neg): Likewise.
16965         (thumb2_strd): Likewise.
16966         (thumb2_strd_base): Likewise.
16967         (thumb2_strd_base_neg): Likewise.
16968         (arm_negsi2): Add alternative for 16-bit encoding.
16969         (arm_one_cmplsi2): Likewise.
16971 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16973         * config/arm/predicates.md (arm_cond_move_operator): New predicate.
16974         * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
16975         (movdfcc): Likewise.
16976         * config/arm/vfp.md (*thumb2_movsf_vfp):
16977         Disable predication for arm_restrict_it.
16978         (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
16979         (*thumb2_movdfcc_vfp): Likewise.
16980         (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
16981         *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
16982         *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
16983         *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
16984         *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
16985         *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
16986         *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
16987         *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
16988         *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
16989         *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
16990         *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
16991         *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
16992         Disable predication for arm_restrict_it.
16994 2013-06-28  Kirill Yukhin  <kirill.yukhin@intel.com>
16996         * config/i386/bmiintrin.h (_bextr_u32): New.
16997         (_bextr_u64): Ditto.
16999 2013-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
17001         * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
17002         (mips64r5900el-*-elf*): Include mips/n32-elf.h.
17003         * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
17004         (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
17005         * config/mips/n32-elf.h: ...this new file.
17007 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
17009         PR target/57224
17010         * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
17011         IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
17013 2013-06-27  Catherine Moore  <clm@codesourcery.com>
17015         * config/mips/mips-tables.opt: Regenerate.
17016         * config/mips/mips-cpus.def: Add m14ke and m14kec.
17017         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
17018         * doc/invoke.texi: Add -m14kc.
17020 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
17022         PR target/57623
17023         * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
17024         constraints of operand 1 and 2.
17026         PR target/57623
17027         * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
17028         to match RTL canonicalization.  Swap predicates and
17029         constraints of operand 1 and 2.
17031 2013-06-27  Vladimir Makarov  <vmakarov@redhat.com>
17033         * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
17034         Process OP_INOUT regs for splitting too.
17036 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
17038         * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
17039         decl before the loop, initialize to NULL.
17040         (vectorizable_load): Initialize ptr_incr to NULL.
17042 2013-06-27  Martin Jambor  <mjambor@suse.cz>
17044         PR lto/57208
17045         * ipa-ref.h (ipa_maybe_record_reference): Declare.
17046         * ipa-ref.c (ipa_maybe_record_reference): New function.
17047         * cgraphclones.c (cgraph_create_virtual_clone): Use it.
17048         * ipa-cp.c (create_specialized_node): Record potential references from
17049         aggvals.
17050         * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
17052 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
17054         * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
17055         parameter 'mode' of type 'enum machine_mode mode'; change to pass
17056         'mode' to force_reg.
17057         (aarch64_add_offset): Update calls to aarch64_force_temporary.
17058         (aarch64_expand_mov_immediate): Likewise.
17060 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
17062         * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
17063         'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
17065 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17067         * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
17068         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
17069         (struct machine_function): Add tbegin_p.
17070         (s390_canonicalize_comparison): Fold CC mode compares to
17071         conditional jump if possible.
17072         (s390_emit_jump): Return the emitted jump.
17073         (s390_branch_condition_mask, s390_branch_condition_mnemonic):
17074         Handle CCRAWmode compares.
17075         (s390_option_override): Default to -mhtm if available.
17076         (s390_reg_clobbered_rtx): Handle floating point regs as well.
17077         (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
17078         FPRs instead of df_regs_ever_live_p.
17079         (s390_optimize_nonescaping_tx): New function.
17080         (s390_init_frame_layout): Extend clobbered_regs array to cover
17081         FPRs as well.
17082         (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
17083         (s390_expand_tbegin): New function.
17084         (enum s390_builtin): New enum definition.
17085         (code_for_builtin): New array definition.
17086         (s390_init_builtins): New function.
17087         (s390_expand_builtin): New function.
17088         (TARGET_INIT_BUILTINS): Define.
17089         (TARGET_EXPAND_BUILTIN): Define.
17090         * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
17091         * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
17092         (s390_alc_comparison): Likewise.
17093         * config/s390/s390-modes.def: Add CCRAWmode.
17094         * config/s390/s390.h (processor_flags): Add PF_TX.
17095         (TARGET_CPU_HTM): Define macro.
17096         (TARGET_HTM): Define macro.
17097         (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
17098         * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
17099         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
17100         (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
17101         (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
17102         (TBEGIN_MASK, TBEGINC_MASK): New constants.
17103         ("*cc_to_int"): Move up.
17104         ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
17105         constants other than 0.
17106         ("*ccraw_to_int"): New insn and splitter definition.
17107         ("tbegin", "tbegin_nofloat", "tbegin_retry")
17108         ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
17109         ("tx_assist"): New expander.
17110         ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
17111         ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
17112         * config/s390/s390.opt: Add -mhtm option.
17113         * config/s390/s390-protos.h (s390_emit_jump): Add return type.
17114         * config/s390/htmxlintrin.h: New file.
17115         * config/s390/htmintrin.h: New file.
17116         * config/s390/s390intrin.h: New file.
17117         * doc/extend.texi: Document htm builtins.
17118         * config.gcc: Add the new header files to extra_headers.
17120 2013-06-26  Thomas Schwinge  <thomas@codesourcery.com>
17122         * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
17123         (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
17125 2013-06-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
17126             Pat Haugen  <pthaugen@us.ibm.com>
17127             Peter Bergner  <bergner@vnet.ibm.com>
17129         * config/rs6000/power8.md: New.
17130         * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
17131         setting for power8 entry.
17132         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
17133         * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
17134         test for Power4/Power5 only.
17135         (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
17136         support.
17137         (force_new_group): Adjust comment.
17138         * config/rs6000/rs6000.md: Include power8.md.
17140 2013-06-26  Greta Yorsh  <Greta.Yorsh@arm.com>
17142         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
17143         * config/arm/arm-protos.h (arm_max_conditional_execute): New
17144         declaration.
17145         (tune_params): Update comment.
17146         * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
17147         (arm_max_conditional_execute): New function.
17148         (thumb2_final_prescan_insn): Use max_insn_skipped and
17149         MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
17151 2013-06-25  Jakub Jelinek  <jakub@redhat.com>
17153         PR tree-optimization/57705
17154         * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
17155         SSA_NAME step, provided that it is not defined inside the loop.
17156         (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
17157         (get_initial_def_for_induction): Handle SSA_NAME IV step.
17159 2013-06-25  Martin Jambor  <mjambor@suse.cz>
17161         PR middle-end/57670
17162         * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
17163         * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
17164         calls in the dump.
17165         (ipa_note_param_call): Initialize member_ptr flag.
17166         (ipa_analyze_indirect_call_uses): Set member_ptr flag.
17167         (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
17168         (ipa_write_indirect_edge_info): Stream member_ptr flag.
17169         (ipa_read_indirect_edge_info): Likewise.
17171 2013-06-25  Richard Biener  <rguenther@suse.de>
17173         PR middle-end/56977
17174         * passes.c (init_optimization_passes): Move pass_fold_builtins
17175         and pass_dce earlier with -Og.
17177 2013-06-25  Eric Botcazou  <ebotcazou@adacore.com>
17179         * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
17180         <BIT_FIELD_REF>: Remove trailing TAB.
17181         * varasm.c (output_constructor_bitfield): Fix formatting glitch and
17182         remove blank line.
17184 2013-06-24  Martin Jambor  <mjambor@suse.cz>
17186         PR tree-optimization/57358
17187         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
17188         (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
17189         (ipa_analyze_params_uses): Generate pessimistic info when true.
17191 2013-06-24  Martin Jambor  <mjambor@suse.cz>
17193         PR tree-optimization/57539
17194         * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
17195         global.inlined_to of the new node to it.  All callers changed.
17196         * ipa-inline-transform.c (clone_inlined_nodes): New variable
17197         inlining_into, pass it to cgraph_clone_node.
17198         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
17199         ipa_free_edge_args_substructures.
17200         (ipa_edge_duplication_hook): Only add edges from inlined nodes to
17201         rdesc linked list.  Do not assert rdesc edges have inlined caller.
17202         Assert we have found an rdesc in the rdesc list.
17204 2013-06-24  Richard Biener  <rguenther@suse.de>
17206         * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
17207         (pointer_set_lookup): Declare.
17208         (class pointer_map): New template class implementing a
17209         generic pointer to T map.
17210         (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
17211         pointer_map<T>::contains, pointer_map<T>::insert,
17212         pointer_map<T>::traverse): New functions.
17213         * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
17214         (pointer_set_lookup): New function.
17215         (pointer_set_contains): Use pointer_set_lookup.
17216         (pointer_set_insert): Likewise.
17217         (insert_aux): Remove.
17218         (struct pointer_map_t): Embed a pointer_set_t.
17219         (pointer_map_create): Adjust.
17220         (pointer_map_destroy): Likewise.
17221         (pointer_map_contains): Likewise.
17222         (pointer_map_insert): Likewise.
17223         (pointer_map_traverse): Likewise.
17224         * tree-streamer.h (struct streamer_tree_cache_d): Use a
17225         pointer_map<unsigned> instead of a pointer_map_t.
17226         * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
17227         (streamer_tree_cache_lookup): Likewise.
17228         (streamer_tree_cache_create): Likewise.
17229         (streamer_tree_cache_delete): Likewise.
17230         * lto-streamer.h (struct lto_tree_ref_encoder): Use a
17231         pointer_map<unsigned> instead of a pointer_map_t.
17232         (lto_init_tree_ref_encoder): Adjust.
17233         (lto_destroy_tree_ref_encoder): Likewise.
17234         * lto-section-out.c (lto_output_decl_index): Likewise.
17235         (lto_record_function_out_decl_state): Likewise.
17236         * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
17238 2013-06-24  Richard Biener  <rguenther@suse.de>
17240         PR tree-optimization/57488
17241         * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
17243 2013-06-24  Alan Modra  <amodra@gmail.com>
17245         * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
17246         (gen_easy_altivec_constant): Likewise.
17247         * config/rs6000/predicates.md (easy_vector_constant_add_self,
17248         easy_vector_constant_msb): Likewise.
17250 2013-06-23  Jakub Jelinek  <jakub@redhat.com>
17252         PR target/57688
17253         * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
17254         add missing return true.
17256 2013-06-23  Oleg Endo  <olegendo@gcc.gnu.org>
17258         PR target/52483
17259         * config/sh/predicates.md (general_extend_operand): Invoke
17260         general_movsrc_operand for memory operands.
17261         (general_movsrc_operand): Allow reg+reg addressing, do not use
17262         general_operand for memory operands.
17264 2013-06-23  Sriraman Tallam  <tmsriram@google.com>
17266         * config/i386/i386.c (ix86_pragma_target_parse):  Restore target
17267         when current target options does not apply.
17268         * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
17269         * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
17270         * config/i386/bmiintrin.h: Pass appropriate target
17271         attributes to header.
17272         * config/i386/mmintrin.h: Ditto.
17273         * config/i386/nmmintrin.h: Ditto.
17274         * config/i386/avx2intrin.h: Ditto.
17275         * config/i386/fxsrintrin.h: Ditto.
17276         * config/i386/tbmintrin.h: Ditto.
17277         * config/i386/xsaveintrin.h: Ditto.
17278         * config/i386/f16cintrin.h: Ditto.
17279         * config/i386/xtestintrin.h: Ditto.
17280         * config/i386/xsaveoptintrin.h: Ditto.
17281         * config/i386/bmi2intrin.h: Ditto.
17282         * config/i386/lzcntintrin.h: Ditto.
17283         * config/i386/smmintrin.h: Ditto.
17284         * config/i386/wmmintrin.h: Ditto.
17285         * config/i386/x86intrin.h: Remove all header include guards.
17286         * config/i386/prfchwintrin.h: Ditto.
17287         * config/i386/pmmintrin.h: Ditto.
17288         * config/i386/tmmintrin.h: Ditto.
17289         * config/i386/xmmintrin.h: Ditto.
17290         * config/i386/popcntintrin.h: Ditto.
17291         * config/i386/rdseedintrin.h: Ditto.
17292         * config/i386/ammintrin.h: Ditto.
17293         * config/i386/emmintrin.h: Ditto.
17294         * config/i386/immintrin.h: Remove all header include guards.
17295         * config/i386/fma4intrin.h: Ditto.
17296         * config/i386/lwpintrin.h: Ditto.
17297         * config/i386/xopintrin.h: Ditto.
17298         * config/i386/ia32intrin.h: Ditto.
17299         * config/i386/avxintrin.h: Ditto.
17300         * config/i386/rtmintrin.h: Ditto.
17301         * config/i386/fmaintrin.h: Ditto.
17302         * config/i386/mm3dnow.h: Ditto.
17304 2013-06-22  Sriraman Tallam  <tmsriram@google.com>
17306         * common/config/i386/i386-common.c: Handle LZCNT.
17308 2013-06-22  Andi Kleen  <ak@linux.intel.com>
17310         * doc/extend.texi: Use __atomic_store_n instead of
17311         __atomic_store in HLE example.
17313 2013-06-22  Oleg Endo  <olegendo@gcc.gnu.org>
17315         * config/sh/sh.c: Remove <cstdlib> workaround.
17317 2013-06-21  Andi Kleen  <ak@linux.intel.com>
17319         * doc/extend.texi: Dont use __atomic_clear in HLE example.  Fix typo.
17321 2013-06-21  Andi Kleen  <ak@linux.intel.com>
17323         * doc/extend.texi: Document that __atomic_clear and
17324           __atomic_test_and_set should only be used with bool.
17326 2013-06-20  Jan Hubicka  <jh@suse.cz>
17328         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
17329         types_same_for_odr.
17330         * tree.c (decls_same_for_odr): New function.
17331         (same_for_edr): New function.
17332         (types_same_for_odr): New function.
17333         (get_binfo_at_offset): Use it.
17334         * tree.h (types_same_for_odr): Declare.
17336 2013-06-20  Oleg Endo  <olegendo@gcc.gnu.org>
17337             Jason Merrill  <jason@redhat.com>
17339         * system.h: Include <cstdlib> as well as <stdlib.h>.
17341 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
17343         PR target/57655
17344         * config/i386/i386.c (construct_container): Report error if
17345         long double is used with disabled x87 float returns.
17347 2013-06-20  Jan Hubicka  <jh@suse.cz>
17349         * lto-cgraph.c (input_symtab): Do not set cgraph state.
17351 2013-06-20  Joern Rennecke  <joern.rennecke@embecosm.com>
17353         PR rtl-optimization/57425
17354         PR rtl-optimization/57569
17355         * alias.c (write_dependence_p): Remove parameters mem_mode and
17356         canon_mem_addr.  Add parameters x_mode, x_addr and x_canonicalized.
17357         Changed all callers.
17358         (canon_anti_dependence): Get comments and semantics in sync.
17359         Add parameter mem_canonicalized.  Changed all callers.
17360         * rtl.h (canon_anti_dependence): Update prototype.
17362 2013-06-20  Richard Biener  <rguenther@suse.de>
17364         * data-streamer-in.c (streamer_read_uhwi): Optimize single
17365         byte case, inline streamer_read_uchar and defer section
17366         overrun check.
17368 2013-06-20  Richard Biener  <rguenther@suse.de>
17370         PR tree-optimization/57584
17371         * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
17372         SSA names into the expanded expression that take part in
17373         abnormal coalescing.
17375 2013-06-19  Sharad Singhai  <singhai@google.com>
17377         * gcov.c (print_usage): Handle new option.
17378         (process_args): Ditto.
17379         (get_gcov_intermediate_filename): New function.
17380         (output_intermediate_file): New function.
17381         (output_gcov_file): New function
17382         (generate_results): Handle new option.
17383         (release_function): Relase demangled name.
17384         (read_graph_file): Handle demangled name.
17385         (output_lines): Ditto.
17386         * doc/gcov.texi: Document gcov intermediate format.
17388 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
17390         PR bootstrap/57604
17391         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
17392         (lra_emit_add): Use the functions.  Add comment about Y as an
17393         address segment.
17395 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
17397         PR driver/57652
17398         * collect2.c (collect_atexit): New.
17399         (collect_exit): Delete.
17400         (main): Register collect_atexit with atexit.
17401         (collect_wait): Change collect_exit to exit.
17402         (do_wait): Same.
17403         * collect2.h (collect_exit): Delete.
17404         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
17406 2013-06-19  Wei Mi  <wmi@google.com>
17408         PR rtl-optimization/57518
17409         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
17410         if regno is used in paradoxical subreg.
17411         (update_equiv_regs): Check pdx_subregs[regno] before
17412         set a reg to be equivalent with a mem.
17414 2013-06-19  Matthias Klose  <doko@ubuntu.com>
17416         PR driver/57651
17417         * file-find.h (find_a_file): Add a mode parameter.
17418         * file-find.c (find_a_file): Likewise.
17419         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
17420         with X_OK for the executables.
17421         * collect2.c (main): Call find_a_file with X_OK.
17423 2013-06-19  Steve Ellcey  <sellcey@mips.com>
17425         PR target/56942
17426         * config/mips/mips.md (casesi_internal_mips16_<mode>):
17427         Use NEXT_INSN instead of next_real_insn.
17429 2013-06-19  Jan Hubicka  <jh@suse.cz>
17431         * cgraph.h (const_value_known_p): Replace by ...
17432         (ctor_for_folding): .. this one.
17433         * cgraphunit.c (process_function_and_variable_attributes): Use it.
17434         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
17435         * expr.c (expand_expr_real_1): Likewise.
17436         (string_constant): Likewise.
17437         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
17438         * ipa.c (process_references): Likewise.
17439         (symtab_remove_unreachable_nodes): Likewise.
17440         * ipa-inline-analysis.c (param_change_prob): Likewise.
17441         * gimple-fold.c (canonicalize_constructor_val): Likewise.
17442         (get_base_constructor): Likwise.
17443         * varpool.c (varpool_remove_node): Likewise.
17444         (varpool_remove_initializer): LIkewise.
17445         (dump_varpool_node): LIkwise.
17446         (const_value_known_p): Rewrite to ...
17447         (ctor_for_folding): ... this one.
17449 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
17451         PR driver/57651
17452         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
17453         PERSONALITY in $PATH derived prefixes.
17455 2013-06-19  Jeff Law  <law@redhat.com>
17457         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
17458         in comment.
17460         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
17461         (simplify_bitwise_binary): Use it to simpify certain binary ops on
17462         booleans.
17464 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
17466         * config/arm/vfp.md: Move VFP instruction classification documentation
17467         to ...
17468         * config/arm/arm.md: ... here.  Update instruction classification
17469         documentation.
17471 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
17473         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
17474         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
17475         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
17477 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
17479         PR target/57609
17480         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
17481         with NEXT_INSN.  Use tablejump_p to check for jump table data
17482         insns.
17484 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
17486         PR c++/56544
17487         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
17488         that now in C++ the value is correct per the C++ standards.
17490 2013-06-19  Richard Biener  <rguenther@suse.de>
17492         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
17493         for global context.
17495 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17497         Revert:
17498         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17500         PR target/57609
17501         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
17502         with next_active_insn.
17504 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
17506         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
17507         functions are inlined during failures to flag an error.
17508         * tree-inline.c (expand_call_inline): Allow the error to be flagged
17509         in early inline pass.
17511 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
17513         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
17514         in comments.
17516 2013-06-18  Julian Brown  <julian@codesourcery.com>
17518         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
17519         Permit virtual register pre-reload if !strict.
17520         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
17521         change.
17522         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
17523         prototype.
17524         * config/arm/neon.md (movmisalign<mode>): Use
17525         neon_perm_struct_or_reg_operand instead of
17526         neon_struct_or_register_operand.
17527         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
17528         neon_permissive_struct_operand instead of neon_struct_operand.
17529         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
17530         neon_vector_mem_operand.
17531         * config/arm/predicates.md (neon_struct_operand): Adjust call to
17532         neon_vector_mem_operand.
17533         (neon_permissive_struct_operand): New.
17534         (neon_struct_or_register_operand): Rename to...
17535         (neon_perm_struct_or_reg_operand): This. Adjust call to
17536         neon_vector_mem_operand.
17538 2013-06-18  Richard Biener  <rguenther@suse.de>
17540         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
17541         * lto-streamer.h: Include pointer-set.h.
17542         (struct lto_decl_slot): Remove.
17543         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
17544         Remove next_index entry.
17545         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
17546         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
17547         (lto_init_tree_ref_encoder): Adjust.
17548         (lto_destroy_tree_ref_encoder): Likewise.
17549         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
17550         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
17551         (lto_output_decl_index): Adjust.
17552         (lto_new_out_decl_state): Likewise.
17553         (lto_record_function_out_decl_state): Likewise.
17554         * lto-streamer-out.c (copy_function): Likewise.
17556 2013-06-18  Richard Biener  <rguenther@suse.de>
17558         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
17559         * cgraphunit.c: Include cfgloop.h.
17560         (init_lowered_empty_function): Initialize the loop tree.
17561         (assemble_thunk): Insert new BBs into loops.
17563 2013-06-18  Richard Biener  <rguenther@suse.de>
17565         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
17566         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
17567         the map from cache entry to cache index optional.
17568         (streamer_tree_cache_replace_tree): Adjust accordingly.
17569         (streamer_tree_cache_append): Likewise.
17570         (streamer_tree_cache_delete): Likewise.
17571         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
17572         streamer cache map from cache entry to cache index.
17573         * lto-streamer-out.c (create_output_block): Adjust.
17575 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
17577         * config/arm/arm.md (attribute "insn"): Move multiplication and
17578         division attributes to...
17579         (attribute "type"): ... here.  Remove mult.
17580         (attribute "mul32"): New attribute.
17581         (attribute "mul64"): Add umaal.
17582         (*arm_mulsi3): Update attributes.
17583         (*arm_mulsi3_v6): Likewise.
17584         (*thumb_mulsi3): Likewise.
17585         (*thumb_mulsi3_v6): Likewise.
17586         (*mulsi3_compare0): Likewise.
17587         (*mulsi3_compare0_v6): Likewise.
17588         (*mulsi_compare0_scratch): Likewise.
17589         (*mulsi_compare0_scratch_v6): Likewise.
17590         (*mulsi3addsi): Likewise.
17591         (*mulsi3addsi_v6): Likewise.
17592         (*mulsi3addsi_compare0): Likewise.
17593         (*mulsi3addsi_compare0_v6): Likewise.
17594         (*mulsi3addsi_compare0_scratch): Likewise.
17595         (*mulsi3addsi_compare0_scratch_v6): Likewise.
17596         (*mulsi3subsi): Likewise.
17597         (*mulsidi3adddi): Likewise.
17598         (*mulsi3addsi_v6): Likewise.
17599         (*mulsidi3adddi_v6): Likewise.
17600         (*mulsidi3_nov6): Likewise.
17601         (*mulsidi3_v6): Likewise.
17602         (*umulsidi3_nov6): Likewise.
17603         (*umulsidi3_v6): Likewise.
17604         (*umulsidi3adddi): Likewise.
17605         (*umulsidi3adddi_v6): Likewise.
17606         (*smulsi3_highpart_nov6): Likewise.
17607         (*smulsi3_highpart_v6): Likewise.
17608         (*umulsi3_highpart_nov6): Likewise.
17609         (*umulsi3_highpart_v6): Likewise.
17610         (mulhisi3): Likewise.
17611         (*mulhisi3tb): Likewise.
17612         (*mulhisi3bt): Likewise.
17613         (*mulhisi3tt): Likewise.
17614         (maddhisi4): Likewise.
17615         (*maddhisi4tb): Likewise.
17616         (*maddhisi4tt): Likewise.
17617         (maddhidi4): Likewise.
17618         (*maddhidi4tb): Likewise.
17619         (*maddhidi4tt): Likewise.
17620         (divsi3): Likewise.
17621         (udivsi3): Likewise.
17622         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
17623         (thumb2_mulsi_short_compare0): Likewise.
17624         (thumb2_mulsi_short_compare0_scratch): Likewise.
17625         * config/arm/arm1020e.md (1020mult1): Update attribute change.
17626         (1020mult2): Likewise.
17627         (1020mult3): Likewise.
17628         (1020mult4): Likewise.
17629         (1020mult5): Likewise.
17630         (1020mult6): Likewise.
17631         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
17632         change.
17633         (cortex_a15_mult64): Likewise.
17634         (cortex_a15_sdiv): Likewise.
17635         (cortex_a15_udiv): Likewise.
17636         * config/arm/arm1026ejs.md (mult1): Update attribute change.
17637         (mult2): Likewise.
17638         (mult3): Likewise.
17639         (mult4): Likewise.
17640         (mult5): Likewise.
17641         (mult6): Likewise.
17642         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
17643         (pj4_ir_div): Likewise.
17644         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
17645         (11_mult2): Likewise.
17646         (11_mult3): Likewise.
17647         (11_mult4): Likewise.
17648         (11_mult5): Likewise.
17649         (11_mult6): Likewise.
17650         (11_mult7): Likewise.
17651         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
17652         (cortex_a8_mla): Likewise.
17653         (cortex_a8_mull): Likewise.
17654         (cortex_a8_smulwy): Likewise.
17655         (cortex_a8_smlald): Likewise.
17656         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
17657         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
17658         (cortex_r4_mul_3): Likewise.
17659         (cortex_r4_mla_4): Likewise.
17660         (cortex_r4_mla_3): Likewise.
17661         (cortex_r4_smlald): Likewise.
17662         (cortex_r4_mull): Likewise.
17663         (cortex_r4_sdiv): Likewise.
17664         (cortex_r4_udiv): Likewise.
17665         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
17666         (cortex_a7_idiv): Likewise.
17667         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
17668         (9_mult2): Likewise.
17669         (9_mult3): Likewise.
17670         (9_mult4): Likewise.
17671         (9_mult5): Likewise.
17672         (9_mult6): Likewise.
17673         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
17674         (cortex_a53_sdiv): Likewise.
17675         (cortex_a53_udiv): Likewise.
17676         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
17677         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
17678         (mp626_mult2): Likewise.
17679         (mp626_mult3): Likewise.
17680         (mp626_mult4): Likewise.
17681         * config/arm/fa526.md (526_mult1): Update attribute change.
17682         (526_mult2): Likewise.
17683         * config/arm/arm-generic.md (mult): Update attribute change.
17684         (mult_ldsched_strongarm): Likewise.
17685         (mult_ldsched): Likewise.
17686         (multi_cycle): Likewise.
17687         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
17688         * config/arm/fa606te.md (606te_mult1): Update attribute change.
17689         (606te_mult2): Likewise.
17690         (606te_mult3): Likewise.
17691         (606te_mult4): Likewise.
17692         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
17693         (cortex_a9_mac16): Likewise.
17694         (cortex_a9_multiply): Likewise.
17695         (cortex_a9_mac): Likewise.
17696         (cortex_a9_multiply_long): Likewise.
17697         * config/arm/fa626te.md (626te_mult1): Update attribute change.
17698         (626te_mult2): Likewise.
17699         (626te_mult3): Likewise.
17700         (626te_mult4): Likewise.
17702 2013-06-18  Richard Biener  <rguenther@suse.de>
17704         PR lto/57334
17705         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
17707 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17709         PR target/57609
17710         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
17711         with next_active_insn.
17713 2013-06-18  Alan Modra  <amodra@gmail.com>
17715         * config/rs6000/rs6000.h (enum data_align): New.
17716         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
17717         (DATA_ABI_ALIGNMENT): Define.
17718         (CONSTANT_ALIGNMENT): Correct comment.
17719         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
17720         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
17722 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
17724         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
17725         ATTRIBUTE_UNUSED marking.
17727 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
17729         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
17730         alternative and update.
17731         (aarch64_dup_lanedi): Delete.
17732         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
17733         * config/aarch64/aarch64-simd-builtins.def: Update.
17735 2013-06-17  Richard Biener  <rguenther@suse.de>
17737         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
17738         (lto_input_scc): Declare.
17739         (lto_input_tree_1): Likewise.
17740         (struct lto_stats_d): Add num_tree_bodies_output and
17741         num_pickle_refs_output.
17742         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
17743         (lto_read_tree_1): Split out from ...
17744         (lto_read_tree): ... this.
17745         (lto_input_scc): New function.
17746         (lto_input_tree_1): Split out from ...
17747         (lto_input_tree): ... this.  Handle LTO_tree_scc.
17748         (lto_data_in_create): Create the streamer cache without hashes.
17749         * lto-streamer-out.c (create_output_block): Create the streamer
17750         cache with hashes when not doing WPA.
17751         (lto_write_tree_1): Split out from ...
17752         (lto_write_tree): ... this.
17753         (get_symbol_initial_value): New function.
17754         (lto_output_tree_1): Split out from ...
17755         (lto_output_tree): ... this.  Write trees as series of SCCs
17756         using a DFS walk via DFS_write_tree.
17757         (struct sccs, struct scc_entry): New types.
17758         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
17759         (DFS_write_tree_body): New function.
17760         (DFS_write_tree): Likewise.
17761         (hash_tree): Likewise.
17762         (scc_entry_compare): Likewise.
17763         (hash_scc): Likewise.
17764         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
17765         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
17766         TREE_CHAIN as regular reference.
17767         (streamer_read_integer_cst): Remove.
17768         (streamer_get_pickled_tree): Adjust.
17769         * tree-streamer-out.c (streamer_write_chain): Disable streaming
17770         of DECL_EXTERNALs in BLOCK_VARS for now.
17771         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
17772         reference.
17773         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
17774         Add hash value argument and record that if hashes are recorded
17775         in the cache.
17776         (streamer_tree_cache_insert_1): Adjust.
17777         (streamer_tree_cache_insert): Likewise.
17778         (streamer_tree_cache_insert_at): Rename to ...
17779         (streamer_tree_cache_replace_tree): ... this and adjust.
17780         (streamer_tree_cache_append): Adjust.
17781         (record_common_node): Likewise.
17782         (streamer_tree_cache_create): Add argument whether to
17783         record hash values together with trees.
17784         (streamer_tree_cache_delete): Adjust.
17785         * tree-streamer.h (struct streamer_tree_cache_d): Add
17786         vector of hashes.
17787         (streamer_read_integer_cst): Remove.
17788         (streamer_tree_cache_insert): Adjust.
17789         (streamer_tree_cache_append): Likewise.
17790         (streamer_tree_cache_insert_at): Rename to ...
17791         (streamer_tree_cache_replace_tree): ... this and adjust.
17792         (streamer_tree_cache_create): Add argument whether to record hashes.
17793         (streamer_tree_cache_get): Rename to ...
17794         (streamer_tree_cache_get_tree): ... this.
17795         (streamer_tree_cache_get_hash): New function.
17796         * tree.c (cache_integer_cst): New function.
17797         * tree.h (cache_integer_cst): Declare.
17798         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
17799         * lto-symtab.c (lto_varpool_replace_node): Only release
17800         DECL_INITIAL of non-prevailing decls.
17801         * varpool.c (varpool_remove_initializer): Do not release
17802         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
17804 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
17806         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
17807         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
17808         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
17809         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
17810         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
17811         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
17812         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
17813         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
17814         instead of TARGET_64BIT.
17815         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
17816         Require ISA_HAS_<D>DIV.
17818 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
17820         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
17821         (mips*-*-linux*): Move default with_llsc setting to where other
17822         defaults are set.
17823         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
17824         with_arch block.
17825         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
17826         Likewise.  Remove default with_tune setting.  Move default float
17827         setting to its own block.  Handle with_llsc in the same block as above.
17829 2013-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
17831         PR rtl-optimization/57425
17832         PR rtl-optimization/57569
17833         * alias.c (write_dependence_p): Add new parameters mem_mode,
17834         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
17835         Changed all callers.
17836         (canon_anti_dependence): New function.
17837         * cse.c (check_dependence): Use canon_anti_dependence.
17838         * cselib.c (cselib_invalidate_mem): Likewise.
17839         * rtl.h (canon_anti_dependence): Declare.
17841 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
17843         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
17844         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
17845         ".set mips3" for 64-bit targets.
17847 2013-06-15  Dehao Chen  <dehao@google.com>
17849         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
17850         * gimple-low.c (gimple_check_call_matching_types): Likewise.
17851         (gimple_check_call_args): Likewise.
17852         * value-prof.c (check_ic_target): Likewise.
17853         * ipa-inline.c (early_inliner): Likewise.
17854         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
17855         * cgraph.c (cgraph_create_edge_1): Likewise.
17856         (cgraph_make_edge_direct): Likewise.
17858 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
17860         PR target/57615
17861         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
17862         rs6000_output_move_128bit to handle emitting quad memory
17863         operations.  Set attribute length to 8 bytes.
17865 2013-06-14  Vidya Praveen  <vidyapraveen@arm.com>
17867         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
17868         New pattern.
17869         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
17870         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
17871         (aarch64_<su>mlsl<mode>): Likewise.
17873 2013-06-14  Mike Stump  <mikestump@comcast.net>
17875         * Makefile.in (TARGET_H): Add insn-codes.h.
17877 2013-06-14  Alan Modra  <amodra@gmail.com>
17879         PR middle-end/57134
17880         PR middle-end/57586
17881         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
17882         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
17883         bitfield expansion when EXPAND_MEMORY.
17884         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
17886 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
17888         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
17889         test for clearing quad memory on 32-bit later.
17891 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
17893         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
17894         (fold_negate_expr): Likewise.
17895         (fold_real_zero_addition_p): Handle vectors.
17896         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
17898 2013-06-14  Alan Modra  <amodra@gmail.com>
17900         * varasm.c (force_const_mem): Revert 2013-06-07 change.
17902 2013-06-13  Jan Hubicka  <jh@suse.cz>
17904         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
17905         Local comdats are not externally visible.
17906         * symtab.c (dump_symtab_base): Dump externally visible.
17907         (verify_symtab_base): Verify back links in the symtab hash.
17909 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
17911         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
17912         CONVERT_EXPR as equal nodes.
17914 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
17916         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
17918 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
17920         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
17921         Generalize to complex and vector.
17922         * tree.c (build_all_ones_cst): New function.
17923         * tree.h (build_all_ones_cst): Declare it.
17925 2013-06-13  Alan Modra  <amodra@gmail.com>
17927         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
17928         * config/rs6000/rs6000.md (signbittf2): New insn.
17929         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
17930         (abstf2_internal, cmptf_internal2): Likewise.
17931         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
17933 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
17934             Pat Haugen  <pthaugen@us.ibm.com>
17935             Peter Bergner  <bergner@vnet.ibm.com>
17937         * config/rs6000/rs6000.c (emit_load_locked): Add support for
17938         power8 byte, half-word, and quad-word atomic instructions.
17939         (emit_store_conditional): Likewise.
17940         (rs6000_expand_atomic_compare_and_swap): Likewise.
17941         (rs6000_expand_atomic_op): Likewise.
17943         * config/rs6000/sync.md (larx): Add new modes for power8.
17944         (stcx): Likewise.
17945         (AINT): New mode iterator to include TImode as well as normal
17946         integer modes on power8.
17947         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
17948         that VSX registers are not considered.  Use AINT mode iterator
17949         instead of INT1 to allow inclusion of quad word atomic operations
17950         on power8.
17951         (load_locked<mode>): Likewise.
17952         (store_conditional<mode>): Likewise.
17953         (atomic_compare_and_swap<mode>): Likewise.
17954         (atomic_exchange<mode>): Likewise.
17955         (atomic_nand<mode>): Likewise.
17956         (atomic_fetch_<fetchop_name><mode>): Likewise.
17957         (atomic_nand_fetch<mode>): Likewise.
17958         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
17959         each type.
17960         (ATOMIC): On power8, add QImode, HImode modes.
17961         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
17962         modes that promote to SImode.
17963         (load_lockedti): Convert TImode arguments to PTImode, so that we
17964         get a guaranteed even/odd register pair.
17965         (load_lockedpti): Likewise.
17966         (store_conditionalti): Likewise.
17967         (store_conditionalpti): Likewise.
17969         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
17970         atomic load/store instructions.
17971         (HSI): Likewise.
17973 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
17975         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
17976         loads.
17977         (insn_count): New attribute, with most cases extracted from...
17978         (length): ...here.  Redefine most cases in terms of insn_count.
17979         (single_insn): Delete.
17980         (can_delay): Use insn_count to check for single instructions.
17981         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
17982         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
17983         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
17984         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
17985         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
17986         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
17987         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
17988         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
17989         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
17990         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
17991         rather than "length".
17992         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
17993         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
17994         Use "insn_count" rather than "length".
17995         * config/mips/mips-dsp.md
17996         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
17997         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
17998         length attributes.
18000 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
18002         PR tree-optimization/57361
18003         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
18005 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
18007         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
18008         to split.
18009         (aarch64_simd_combine<mode>): New instruction expansion.
18010         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
18011         function prototype.
18012         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
18013         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
18015 2013-06-12  Jan Hubicka  <jh@suse.cz>
18017         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
18018         decl has when in streaming stage.
18019         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
18020         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
18022 2013-06-12  Roland Stigge  <stigge@antcom.de>
18024         PR target/57578
18025         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
18027 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
18029         PR tree-optimization/57537
18030         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
18031         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
18033 2013-06-12  Richard Biener  <rguenther@suse.de>
18035         * data-streamer.h (streamer_write_char_stream): CSE
18036         obs->current_pointer.
18037         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
18038         streamer_write_char_stream manually and optimize the resulting loop.
18039         (streamer_write_hwi_stream): Likewise.
18041 2013-06-12  Jan Hubicka  <jh@suse.cz>
18043         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
18044         * cgraph.h (varpool_create_empty_node): Declare.
18045         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
18046         duplicated nodes.
18047         * symtab.c (symtab_unregister_node): Be lax about missin entries
18048         in node hash.
18049         (symtab_get_node): Update comment.
18050         * varpool.c (varpool_create_empty_node): Break out from ...
18051         (varpool_node_for_decl): ... here.
18052         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
18054 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
18056         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
18057         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
18058         part.  Use straight-line flow at the end.
18059         <COMPONENT_REF>: Remove superfluous else.
18060         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
18062 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
18064         PR target/56564
18065         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
18066         target hook even for !TREE_PUBLIC decls.  If no resolution info
18067         is available, return false for common and external decls.
18069 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
18071         * config/rl78/constraints.md (U): New constraint.
18072         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
18073         valloc attribute.
18075 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
18077         PR target/57589
18078         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
18079         to allow returning address to AT_PLATFORM name.
18081 2013-06-11  Jan Hubicka  <jh@suse.cz>
18083         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
18084         * cgraph.h (symtab_node_base): Add weakref flag.
18085         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
18086         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
18087         (output_weakrefs): Use weakref flag.
18088         * fold-const.c (simple_operand_p): Handle WEAK.
18089         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
18090         * ipa.c (varpool_externally_visible_p): Drop weakref.
18091         (function_and_variable_visibility): Update comment; fix weakref
18092         sanity checks; do not clear DECL_WEAK on them.
18093         * lto-cgraph.c (lto_output_node): update.
18094         (lto_output_varpool_node): Update.
18095         (input_overwrite_node): Update.
18096         (input_node): Update.
18097         (input_varpool_node): Update.
18098         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
18099         (lto_symtab_merge_symbols): Add sanity check.
18100         (lto_symtab_prevailing_decl): Do not special case weakrefs.
18101         * passes.c (rest_of_decl_compilation): Set static flag, too.
18102         * symtab.c (dump_symtab_base): Dump weakref.
18103         (verify_symtab_base): Sanity check weakrefs.
18104         (symtab_make_decl_local): Remove duplicated code.
18105         (symtab_alias_ultimate_target): Simplify.
18106         * varpool.c (varpool_create_variable_alias): Set weakref flag.
18108 2013-06-11  Tom de Vries  <tom@codesourcery.com>
18110         * genautomata.c (gen_regexp_sequence): Handle els_num == -1.  Handle
18111         sequence_vect == NULL.
18113 2013-06-11  DJ Delorie  <dj@redhat.com>
18115         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
18116         (rl78_unwind_word_mode): New.
18118 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
18120         * final.c (debug_prefix_maps): Make static.
18122 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
18124         * function.c (initial_trampoline): Remove stray copy.
18126 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
18128         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
18130 2013-06-11  Martin Jambor  <mjambor@suse.cz>
18132         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
18133         within bounds at the beginning of the function.
18135 2013-06-11  Alan Modra  <amodra@gmail.com>
18137         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
18138         reporting.
18139         (get_named_section): Don't NULL !DECL_P decl.
18141 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
18143         * doc/invoke.texi (core-avx2): Document.
18144         (slm): Likewise.
18145         (atom): Updated with MOVBE.
18147 2013-06-11  Richard Biener  <rguenther@suse.de>
18149         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
18151 2013-06-11  Anton Blanchard  <anton@samba.org>
18153         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
18154         correct shift value in little-endian mode.
18156 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
18158         PR target/56564
18159         * varasm.c (get_variable_align): Move #endif to the right place.
18161 2013-06-10  Cary Coutant  <ccoutant@google.com>
18163         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
18164         for hash so that hash table traversal order is deterministic.
18166 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
18167             Pat Haugen  <pthaugen@us.ibm.com>
18168             Peter Bergner  <bergner@vnet.ibm.com>
18170         * config/rs6000/vector.md (GPR move splitter): Do not split moves
18171         of vectors in GPRS if they are direct moves or quad word load or
18172         store moves.
18174         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
18175         declaration.
18176         (direct_move_p): Likewise.
18177         (quad_load_store_p): Likewise.
18179         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
18180         classes into bins based on the physical register type.
18181         (reg_class_to_reg_type): Likewise.
18182         (IS_STD_REG_TYPE): Likewise.
18183         (IS_FP_VECT_REG_TYPE): Likewise.
18184         (reload_fpr_gpr): Arrays to determine what insn to use if we can
18185         use direct move instructions.
18186         (reload_gpr_vsx): Likewise.
18187         (reload_vsx_gpr): Likewise.
18188         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
18189         information that is a simplification of register classes.  Also
18190         precalculate direct move reload helpers.
18191         (direct_move_p): New function to return true if the operation can
18192         be done as a direct move instruciton.
18193         (quad_load_store_p): New function to return true if the operation
18194         is a quad memory operation.
18195         (rs6000_legitimize_address): If quad memory, only allow register
18196         indirect for TImode addresses.
18197         (rs6000_legitimate_address_p): Likewise.
18198         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
18199         (rs6000_reload_register_type): Likewise.
18200         (register_to_reg_type): Return register type.
18201         (rs6000_secondary_reload_simple_move): New helper function for
18202         secondary reload and secondary memory needed to identify anything
18203         that is a simple move, and does not need reloading.
18204         (rs6000_secondary_reload_direct_move): New helper function for
18205         secondary reload to identify cases that can be done with several
18206         instructions via the direct move instructions.
18207         (rs6000_secondary_reload_move): New helper function for secondary
18208         reload to identify moves between register types that can be done.
18209         (rs6000_secondary_reload): Add support for quad memory operations
18210         and for direct move.
18211         (rs6000_secondary_memory_needed): Likewise.
18212         (rs6000_debug_secondary_memory_needed): Change argument names.
18213         (rs6000_output_move_128bit): New function to return the move to
18214         use for 128-bit moves, including knowing about the various
18215         limitations of quad memory operations.
18217         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
18218         memory operations.  call rs6000_output_move_128bit for the actual
18219         instruciton(s) to generate.
18220         (vsx_movti_64bit): Likewise.
18222         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
18223         (UNSPEC_P8V_MTVSRWZ): Likewise.
18224         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
18225         (UNSPEC_P8V_MTVSRD): Likewise.
18226         (UNSPEC_P8V_XXPERMDI): Likewise.
18227         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
18228         (UNSPEC_FUSION_GPR): Likewise.
18229         (FMOVE128_GPR): New iterator for direct move.
18230         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
18231         (f32_sv): Likewise.
18232         (f32_dm): Likewise.
18233         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
18234         loads and direct move instructions.
18235         (zero_extendsidi2_lfiwzx): Likewise.
18236         (extendsidi2_lfiwax): Likewise.
18237         (extendsidi2_nocell): Likewise.
18238         (floatsi<mode>2_lfiwax): Likewise.
18239         (lfiwax): Likewise.
18240         (floatunssi<mode>2_lfiwzx): Likewise.
18241         (lfiwzx): Likewise.
18242         (fix_trunc<mode>_stfiwx): Likewise.
18243         (fixuns_trunc<mode>_stfiwx): Likewise.
18244         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
18245         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
18246         (parity<mode>2_cmpb): Set length/type attr.
18247         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
18248         for 'mr.' to fast_compare.
18249         (bpermd_<mode>): Change type attr to popcnt.
18250         (p8_fmrgow_<mode>): New insns for power8 direct move support.
18251         (p8_mtvsrwz_1): Likewise.
18252         (p8_mtvsrwz_2): Likewise.
18253         (reload_fpr_from_gpr<mode>): Likewise.
18254         (p8_mtvsrd_1): Likewise.
18255         (p8_mtvsrd_2): Likewise.
18256         (p8_xxpermdi_<mode>): Likewise.
18257         (reload_vsx_from_gpr<mode>): Likewise.
18258         (reload_vsx_from_gprsf): Likewise.
18259         (p8_mfvsrd_3_<mode>): LIkewise.
18260         (reload_gpr_from_vsx<mode>): Likewise.
18261         (reload_gpr_from_vsxsf): Likewise.
18262         (p8_mfvsrd_4_disf): Likewise.
18263         (multi-word GPR splits): Do not split direct moves or quad memory
18264         operations.
18266 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
18268         * tree-into-ssa.c (interesting_blocks): Make static.
18270 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
18272         PR target/56564
18273         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
18274         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
18275         Use DATA_ABI_ALIGNMENT for that case instead if defined.
18276         (get_variable_align): New function.
18277         (get_variable_section, emit_bss, emit_common,
18278         assemble_variable_contents, place_block_symbol): Use
18279         get_variable_align instead of DECL_ALIGN.
18280         (assemble_noswitch_variable): Add align argument, use it
18281         instead of DECL_ALIGN.
18282         (assemble_variable): Adjust caller.  Use get_variable_align
18283         instead of DECL_ALIGN.
18284         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
18285         caller.
18286         (DATA_ABI_ALIGNMENT): Define.
18287         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
18288         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
18289         opt is false, only return the psABI mandated alignment increase.
18290         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
18291         (DATA_ABI_ALIGNMENT): ... this.
18292         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
18293         (DATA_ABI_ALIGNMENT): ... this.
18294         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
18295         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
18296         (DATA_ABI_ALIGNMENT): ... this.
18297         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
18298         * doc/tm.texi: Regenerated.
18300 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
18302         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
18303         cmp_code to construct REG_EQUAL note.
18305 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
18307         PR target/57568
18308         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
18309         that operands[2] doesn't overlap with operands[0].
18311 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
18312             Jan Hubicka  <jh@suse.cz>
18314         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
18315         hack to mark symbols as used.
18317 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
18319         PR rtl-optimization/57559
18320         * lra-constraints.c (process_alt_operands): Don't discourage
18321         memory with known offset for offsetable memory constraint.
18322         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
18324 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
18326         * varasm.c (struct oc_local_state): Reorder fields.
18327         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
18328         and adjust accordingly.
18329         (output_constructor): Reorder initialization code and adjust call to
18330         output_constructor_bitfield.
18332 2013-06-07  Jan Hubicka  <jh@suse.cz>
18334         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
18336 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
18338         * tree-object-size.c (unknown): Make const.
18340 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18342         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
18343         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
18344         for last alternative in the cpu_facility attribute.
18346 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18348         PR target/56315
18349         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
18350         (xordi3): Change operand 2 constraint to arm_xordi_operand.
18351         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
18352         * config/arm/constraints.md (Dg): New constraint.
18353         * config/arm/neon.md (xordi3_neon): Remove.
18354         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
18355         * config/arm/predicates.md (arm_xordi_operand): New predicate.
18357 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18359         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
18360         Clean up alternatives.
18362 2013-06-07  Alan Modra  <amodra@gmail.com>
18364         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
18365         va_list_gpr_size.
18367 2013-06-07  Alan Modra  <amodra@gmail.com>
18369         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
18371 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18373         * config/arm/constraints.md (Df): New constraint.
18374         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
18375         Correct length attribute for last two alternatives.
18377 2013-06-07  Alan Modra  <amodra@gmail.com>
18379         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
18380         override user -mfp-in-toc.
18381         (offsettable_ok_by_alignment): Consider just the current access
18382         rather than the whole object, unless BLKmode.  Handle
18383         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
18384         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
18385         for -mcmodel=medium.
18386         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
18387         override user -mfp-in-toc or -msum-in-toc.  Default to
18388         -mno-fp-in-toc for -mcmodel=medium.
18390 2013-06-06  DJ Delorie  <dj@redhat.com>
18392         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
18393         TARGET_VALID_POINTER_MODE.
18395 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
18396             Pat Haugen  <pthaugen@us.ibm.com>
18397             Peter Bergner  <bergner@vnet.ibm.com>
18399         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
18400         Document new power8 builtins.
18402         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
18403         condition code register, to allow 128-bit logical operations to be
18404         done in the VSX or GPR registers.
18405         (nor<mode>3): Use the canonical form for nor.
18406         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
18407         vclz*, and vpopcnt* vector instructions.
18408         (nand<mode>3): Likewise.
18409         (orc<mode>3): Likewise.
18410         (clz<mode>2): LIkewise.
18411         (popcount<mode>2): Likewise.
18413         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
18414         that only the GPRs are recognized.
18416         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18417         support for new power8 builtins.
18419         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
18420         builtin functions.
18421         (xscvdpspn): Likewise.
18422         (vclz): Likewise.
18423         (vclzb): Likewise.
18424         (vclzh): Likewise.
18425         (vclzw): Likewise.
18426         (vclzd): Likewise.
18427         (vpopcnt): Likewise.
18428         (vpopcntb): Likewise.
18429         (vpopcnth): Likewise.
18430         (vpopcntw): Likewise.
18431         (vpopcntd): Likewise.
18432         (vgbbd): Likewise.
18433         (vmrgew): Likewise.
18434         (vmrgow): Likewise.
18435         (eqv): Likewise.
18436         (eqv_v16qi3): Likewise.
18437         (eqv_v8hi3): Likewise.
18438         (eqv_v4si3): Likewise.
18439         (eqv_v2di3): Likewise.
18440         (eqv_v4sf3): Likewise.
18441         (eqv_v2df3): Likewise.
18442         (nand): Likewise.
18443         (nand_v16qi3): Likewise.
18444         (nand_v8hi3): Likewise.
18445         (nand_v4si3): Likewise.
18446         (nand_v2di3): Likewise.
18447         (nand_v4sf3): Likewise.
18448         (nand_v2df3): Likewise.
18449         (orc): Likewise.
18450         (orc_v16qi3): Likewise.
18451         (orc_v8hi3): Likewise.
18452         (orc_v4si3): Likewise.
18453         (orc_v2di3): Likewise.
18454         (orc_v4sf3): Likewise.
18455         (orc_v2df3): Likewise.
18457         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
18458         allow power8 quad mode in 64-bit.
18459         (rs6000_builtin_vectorized_function): Add support to vectorize
18460         ISA 2.07 count leading zeros, population count builtins.
18461         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
18462         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
18463         (builtin_function_type): Add vgbbd builtin function which takes an
18464         unsigned argument.
18465         (altivec_expand_vec_perm_const): Add support for new power8 merge
18466         instructions.
18468         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
18469         that does not include TImdoe for use with 32-bit.
18470         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
18471         instructions.
18472         (UNSPEC_VSX_CVDPSPN): Likewise.
18473         (vsx_xscvdpspn): Likewise.
18474         (vsx_xscvspdpn): Likewise.
18475         (vsx_xscvdpspn_scalar): Likewise.
18476         (vsx_xscvspdpn_directmove): Likewise.
18477         (vsx_and<mode>3): Split logical operations into 32-bit and
18478         64-bit. Add support to do logical operations on TImode as well as
18479         VSX vector types.  Allow logical operations to be done in either
18480         VSX registers or in general purpose registers in 64-bit mode.  Add
18481         splitters if GPRs were used. For AND, add clobber of CCmode to
18482         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
18483         encoding.
18484         (vsx_and<mode>3_32bit): Likewise.
18485         (vsx_and<mode>3_64bit): Likewise.
18486         (vsx_ior<mode>3): Likewise.
18487         (vsx_ior<mode>3_32bit): Likewise.
18488         (vsx_ior<mode>3_64bit): Likewise.
18489         (vsx_xor<mode>3): Likewise.
18490         (vsx_xor<mode>3_32bit): Likewise.
18491         (vsx_xor<mode>3_64bit): Likewise.
18492         (vsx_one_cmpl<mode>2): Likewise.
18493         (vsx_one_cmpl<mode>2_32bit): Likewise.
18494         (vsx_one_cmpl<mode>2_64bit): Likewise.
18495         (vsx_nor<mode>3): Likewise.
18496         (vsx_nor<mode>3_32bit): Likewise.
18497         (vsx_nor<mode>3_64bit): Likewise.
18498         (vsx_andc<mode>3): Likewise.
18499         (vsx_andc<mode>3_32bit): Likewise.
18500         (vsx_andc<mode>3_64bit): Likewise.
18501         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
18502         and xxlorc instructions.
18503         (vsx_eqv<mode>3_64bit): Likewise.
18504         (vsx_nand<mode>3_32bit): Likewise.
18505         (vsx_nand<mode>3_64bit): Likewise.
18506         (vsx_orc<mode>3_32bit): Likewise.
18507         (vsx_orc<mode>3_64bit): Likewise.
18509         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
18511         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
18512         instruction.
18513         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
18514         (p8_vmrgow): Likewise.
18515         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
18516         GPRs to be split under VSX.
18517         (p8v_clz<mode>2): Add power8 count leading zero support.
18518         (p8v_popcount<mode>2): Add power8 population count support.
18519         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
18520         support.
18522         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
18523         instruction.
18525         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
18526         builtin functions.
18527         (vec_nand): Likewise.
18528         (vec_vclz): Likewise.
18529         (vec_vclzb): Likewise.
18530         (vec_vclzd): Likewise.
18531         (vec_vclzh): Likewise.
18532         (vec_vclzw): Likewise.
18533         (vec_vgbbd): Likewise.
18534         (vec_vmrgew): Likewise.
18535         (vec_vmrgow): Likewise.
18536         (vec_vpopcnt): Likewise.
18537         (vec_vpopcntb): Likewise.
18538         (vec_vpopcntd): Likewise.
18539         (vec_vpopcnth): Likewise.
18540         (vec_vpopcntw): Likewise.
18542 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
18544         PR rtl-optimization/57468
18545         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
18546         spilled pseudos.
18548 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
18550         PR rtl-optimization/57459
18551         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
18552         type when setting live regs.
18554 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
18556         * config/s390/s390.opt (mlra): New option.
18557         * config/s390/s390.c (s390_decompose_address): Check displacement
18558         for all registers for LRA.
18559         (s390_secondary_reload): Don't used secondary reloads for LRA.
18560         (s390_lra_p): New function.
18561         (TARGET_LRA_P): Define.
18562         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
18563         of attribute cpu_facility to zarch for the last alternative.
18564         (*cmpmem_short): Ditto.
18566 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
18568         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
18569         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
18570         (arm_expand_prologue): Likewise.
18572 2013-06-06  Teresa Johnson  <tejohnson@google.com>
18574         PR c++/53743
18575         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
18576         as this is now done by redirect_edge_and_branch_force.
18577         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
18578         barriers, and fix interaction with splitting.
18579         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
18580         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
18581         reflect changes made in the routine.
18582         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
18583         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
18584         since this is called in cfglayout mode, and replace partition fixup
18585         with assert as that is now done by force_nonfallthru_and_redirect.
18586         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
18587         already be marked with region crossing note.
18588         (insert_section_boundary_note): Make non-static, gate on flag
18589         has_bb_partition, rewrite to also check for multiple partitions.
18590         (rest_of_handle_reorder_blocks): Remove call to
18591         insert_section_boundary_note, now done later during free_cfg.
18592         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
18593         * bb-reorder.h (insert_section_boundary_note): Declare.
18594         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
18595         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
18596         invoke insert_section_boundary_note.
18597         (try_redirect_by_replacing_jump): Remove unnecessary
18598         check for region crossing note.
18599         (fixup_partition_crossing): New function.
18600         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
18601         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
18602         in non-cfglayout mode.
18603         (force_nonfallthru_and_redirect): Fixup partition boundaries,
18604         remove old code that tried to do this. Emit barrier correctly
18605         when we are in cfglayout mode.
18606         (last_bb_in_partition): New function.
18607         (rtl_split_edge): Correctly fixup partition boundaries.
18608         (commit_one_edge_insertion): Remove old code that tried to
18609         fixup region crossing edge since this is now handled in
18610         split_block, and set up insertion point correctly since
18611         block may now end in a jump.
18612         (verify_hot_cold_block_grouping): Guard against checking when not in
18613         linearized RTL mode.
18614         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
18615         notes.
18616         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
18617         rtl_verify_flow_info, so not called in cfglayout mode.
18618         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
18619         (fixup_reorder_chain): Remove old code that attempted to fixup region
18620         crossing note as this is now handled in force_nonfallthru_and_redirect.
18621         (duplicate_insn_chain): Don't duplicate switch section notes.
18622         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
18623         note.
18624         * basic-block.h (emit_barrier_after_bb): Declare.
18626 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18628         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
18629         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
18630         arm_usatsihi): Adjust alternatives for arm_restrict_it.
18632 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18634         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
18635         where appropriate.
18636         * config/arm/ldmstm.md: Regenerate.
18638 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18640         * config/arm/sync.md (atomic_loaddi_1):
18641         Disable predication for arm_restrict_it.
18642         (arm_load_exclusive<mode>): Likewise.
18643         (arm_load_exclusivesi): Likewise.
18644         (arm_load_exclusivedi): Likewise.
18645         (arm_load_acquire_exclusive<mode>): Likewise.
18646         (arm_load_acquire_exclusivesi): Likewise.
18647         (arm_load_acquire_exclusivedi): Likewise.
18648         (arm_store_exclusive<mode>): Likewise.
18649         (arm_store_exclusive<mode>): Likewise.
18650         (arm_store_release_exclusivedi): Likewise.
18651         (arm_store_release_exclusive<mode>): Likewise.
18653 2013-06-06  Richard Biener  <rguenther@suse.de>
18655         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
18656         after LTO_null.
18657         (lto_tag_is_tree_code_p): Adjust.
18658         (lto_tag_is_gimple_code_p): Likewise.
18659         (lto_gimple_code_to_tag): Likewise.
18660         (lto_tag_to_gimple_code): Likewise.
18661         (lto_tree_code_to_tag): Likewise.
18662         (lto_tag_to_tree_code): Likewise.
18663         * data-streamer.h (streamer_write_hwi_in_range): Use
18664         uhwi streaming to stream the normalized range.
18665         (streamer_read_hwi_in_range): Likewise.
18667 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18669         * config/arm/arm.md (enabled_for_depr_it): New attribute.
18670         (predicable_short_it): Likewise.
18671         (predicated): Likewise.
18672         (enabled): Handle above.
18673         (define_cond_exec): Set predicated attribute to yes.
18675 2013-06-05  Mike Stump  <mikestump@comcast.net>
18677         * gdbinit.in (__FUNCTION__): Add.
18679 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
18681         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
18682         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
18684 2013-06-05  Jan Hubicka  <jh@suse.cz>
18686         * varasm.c (mark_decl_referenced): Revert the removal until targets
18687         are fixed.
18689 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
18691         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
18692         instead of mark_decl_referenced.
18694 2013-06-05  Jan Hubicka  <jh@suse.cz>
18696         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
18697         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
18698         and symtab_used_from_object_file_p.
18699         (cgraph_make_node_local_1): Clear forced_by_abi.
18700         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
18701         * cgraph.h (symtab_node_base): Add forced_by_abi.
18702         (decide_is_variable_needed): Remove.
18703         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
18704         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
18705         (decide_is_symbol_needed): ... this one; handle symbols in general;
18706         always analyze virtuals; honnor forced_by_abi.
18707         (cgraph_finalize_function): Update.
18708         (varpool_finalize_decl): Update.
18709         (symbol_defined_and_needed): Remove.
18710         (analyze_functions): Update.
18711         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
18712         output_refs, input_overwrite_node): Handle forced_by_abi.
18713         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
18714         (address_taken_from_non_vtable_p): ... this one.
18715         (comdat_can_be_unshared_p_1): New function.
18716         (cgraph_comdat_can_be_unshared_p): Rename to ...
18717         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
18718         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
18719         (function_and_variable_visibility): Clear forced_by_abi as needed.
18720         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
18721         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
18722         * symtab.c (dump_symtab_base): Dump forced_by_abi.
18723         * varpool.c (decide_is_variable_needed): Remove.
18725 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18727         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
18728         (arm_option_override): Override arm_restrict_it where appropriate.
18729         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
18730         * config/arm/arm.opt (mrestrict-it): New command-line option.
18731         * doc/invoke.texi: Document -mrestrict-it.
18733 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
18735         * tsan.c (tsan_atomic_table): Make const.
18737 2013-06-05  Richard Biener  <rguenther@suse.de>
18739         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
18740         index associated with the tree we are supposed to replace.
18741         * tree-streamer-out.c (pack_ts_base_value_fields): Output
18742         TREE_ASM_WRITTEN as zero for everything but SSA names.
18744 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
18746         * tree-ssa-structalias.c (call_stmt_vars): Make static.
18748 2013-06-04  Jan Hubicka  <jh@suse.cz>
18750         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
18751         (input_node, input_varpool_node): Handle correctly external same
18752         body aliases.
18753         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
18754         nodes at ltrans stage.
18756 2013-06-04  Jan Hubicka  <jh@suse.cz>
18758         * ipa-inline.c (update_caller_keys): Fix availability test.
18759         (update_callee_keys): Likewise.
18760         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
18761         to follow ELF standard.
18763 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
18765         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
18766         (mips64r5900el-*-elf*): New configurations.
18767         * config/mips/mips-cpus.def (r5900): New processor.
18768         * config/mips/mips-tables.opt: Regenerate.
18769         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
18770         (mips_issue_rate): Handle PROCESSOR_R5900.
18771         (mips_reorg_process_insns): Force reorder mode for the R5900.
18772         * config/mips/mips.h (TARGET_MIPS5900): Define.
18773         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
18774         TARGET_MIPS5900.
18775         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
18776         TARGET_MIPS5900.
18777         * config/mips/mips.md (processor): Add r5900.
18778         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
18780 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
18782         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
18783         into function to generate MOVI instruction.
18784         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
18785         (aarch64_preferred_simd_mode): Turn into wrapper.
18786         (aarch64_output_scalar_simd_mov_immediate): New function.
18787         * config/aarch64/aarch64-protos.h: Add prototype for above.
18789 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
18791         * config/aarch64/aarch64.c (simd_immediate_info): Remove
18792         element_char member.
18793         (sizetochar): Return signed char.
18794         (aarch64_simd_valid_immediate): Remove elchar and other
18795         unnecessary variables.
18796         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
18797         Calculate element_char as required.
18798         * config/aarch64/aarch64-protos.h: Update and move prototype
18799         for aarch64_output_simd_mov_immediate.
18800         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
18801         Update arguments.
18803 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
18805         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
18806         information completed by aarch64_simd_valid_immediate.
18807         (aarch64_legitimate_constant_p): Update arguments.
18808         (aarch64_simd_valid_immediate): Work with struct rather than many
18809         pointers.
18810         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
18811         (aarch64_simd_make_constant): Update arguments.
18812         (aarch64_output_simd_mov_immediate): Work with struct rather than
18813         many pointers.  Output immediate directly rather than as operand.
18814         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
18815         Update prototype.
18816         * config/aarch64/constraints.md (Dn): Update arguments.
18818 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
18820         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
18821         longer static.
18822         (aarch64_simd_immediate_valid_for_move): Remove.
18823         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
18824         (aarch64_simd_make_constant): Update call.
18825         (aarch64_output_simd_mov_immediate): Update call.
18826         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
18827         Add prototype.
18828         * config/aarch64/constraints.md (Dn): Update call.
18830 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
18832         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
18833         return type to bool for prototype.
18834         (aarch64_legitimate_constant_p): Check for true instead of not -1.
18835         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
18836         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
18838 2013-06-04  Catherine Moore  <clm@codesourcery.com>
18840         * config/mips/mips.opt (meva): New.
18841         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
18842         (ASM_SPEC): Handle -meva.
18843         * doc/invoke.texi (meva):  Document.
18845 2013-06-04  Alan Modra  <amodra@gmail.com>
18847         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
18848         constant output.
18850 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18852         * rtl.def: Add extra fourth optional field to define_cond_exec.
18853         * gensupport.c (process_one_cond_exec): Process attributes from
18854         define_cond_exec.
18855         * doc/md.texi: Document fourth field in define_cond_exec.
18857 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
18859         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
18860         out the processing order as in store_bit_field_1.
18862 2013-06-04  Jan Hubicka  <jh@suse.cz>
18864         PR middle-end/57500
18865         * cgraphunit.c (cgraph_process_same_body_aliases): Create
18866         non-VAR_DECL node if it does not exist yet.
18868 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
18870         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
18871         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
18872         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
18873         target_cpu_default setting.
18875 2013-06-03  Teresa Johnson  <tejohnson@google.com>
18877         * dumpfile.c (opt_info_switch_p): Change -fopt-info
18878         default to -fopt-info=optimized instead of all.
18879         * doc/invoke.texi: Ditto.
18880         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
18881         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
18882         (execute_vect_slp): Emit BB vectorization success under
18883         MSG_OPTIMIZED_LOCATIONS.
18884         * tree-vect-slp.c (vect_slp_transform_bb): Change
18885         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
18886         * tree-vect-loop.c (vect_transform_loop): Ditto.
18888 2013-06-03  Jason Merrill  <jason@redhat.com>
18890         PR c++/57415
18891         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18892         Use TARGET_EXPR for C++.
18894 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
18896         PR rtl-optimization/57268
18897         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
18898         if DEBUG_INSN_P (insn).
18900         Reapply
18901         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
18903         PR rtl-optimization/57268
18904         * sched-deps.c (sched_analyze_2): Flush dependence lists if
18905         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
18907 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
18909         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
18910         (ix86_avoid_lea_for_addr): Likewise.
18911         (exact_dependency_1): Likewise.
18912         (ix86_adjust_cost): Likewise.
18913         (swap_top_of_ready_list): Fix formatting and !reload_completed check
18914         removed.
18915         (do_reorder_for_imul): Fix typo, formatting and
18916         !reload_completed check removed.
18917         (ix86_sched_reorder): Fix typo and formatting.
18918         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
18919         list.
18921 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
18923         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
18925 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
18927         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
18928         <STRING_CST>: Likewise.
18929         <VECTOR_CST>: Likewise.
18931 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
18932             Mikael Morin  <mikael@gcc.gnu.org>
18934         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
18935         * config.in: Regenerated.
18936         * configure: Regenerated.
18938 2013-06-01  Jan Hubicka  <jh@suse.cz>
18940         PR middle-end/57366
18941         * cgraphunit.c (compile): When weakref is not supported,
18942         set up transparent aliases before final output pass.
18943         * varasm.c (assemble_alias): Do not try to do it here.
18945 2013-06-01  Jan Hubicka  <jh@suse.cz>
18947         PR middle-end/57467
18948         * passes.c (for_per_function): Skip unanalyzed functions.
18950 2013-06-01  Jan Hubicka  <jh@suse.cz>
18952         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
18953         (lto_symtab_merge_symbols_1): ... this one.
18954         (lto_symtab_merge_cgraph_nodes): Rename to ...
18955         (lto_symtab_merge_symbols): ... this one; simplify.
18956         * cgraph.c (same_body_aliases_done): Rename to ...
18957         (cpp_implicit_aliases_done): ... this one.
18958         (cgraph_create_function_alias): Update.
18959         (cgraph_same_body_alias): Update.
18960         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
18961         (verify_edge_corresponds_to_fndecl): Simplify.
18962         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
18963         (cgraph_node): Remove same_body_alias.
18964         (varpool_node): Remove alias_of and extra_name_alias.
18965         (same_body_aliases_done): Rename to ..
18966         (cpp_implicit_aliases_done): ... this one.
18967         (symtab_alias_ultimate_target): Add default parameter.
18968         (symtab_resolve_alias): New function.
18969         (fixup_same_cpp_alias_visibility): Declare.
18970         (cgraph_function_node): Add default parameter.
18971         (cgraph_node_asm_name): Likewise.
18972         (cgraph_function_or_thunk_node): Add default parameter; do
18973         not ICE when it is NULL.
18974         (varpool_variable_node): Likewise.
18975         * tree-emutls.c (create_emultls_var): Update.
18976         (ipa_lower_emutls): Update.
18977         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
18978         (cgraph_reset_node): Reset alias info.
18979         (cgraph_finalize_function): Update.
18980         (fixup_same_cpp_alias_visibility): Move to symtab.c.
18981         (analyze_function): Simplify.
18982         (cgraph_process_same_body_aliases): Simplify.
18983         (analyze_functions): Fixup same body aliases.
18984         (handle_alias_pairs): Simplify.
18985         (assemble_thunk): Update.
18986         (assemble_thunks_and_aliases): Update.
18987         (output_weakrefs): Rewrite.
18988         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
18989         (lto_output_varpool_node): Likewise.
18990         (compute_ltrans_boundary): Remve assert.
18991         (get_alias_symbol): New functoin.
18992         (input_node): Rewrite alias handling.
18993         (input_varpool_node): Likewise.
18994         * ipa-pure-const.c (propagate_pure_const): Fix formating.
18995         * ipa.c (process_references): Handle weakrefs correctly.
18996         (symtab_remove_unreachable_nodes): Likewise.
18997         * trans-mem.c (get_cg_data): Update.
18998         (ipa_tm_create_version_alias): Update.
18999         (ipa_tm_execute): Update.
19000         * symtab.c (dump_symtab_base): Dump aliases.
19001         (verify_symtab_base): Verify aliases.
19002         (symtab_node_availability): New function.
19003         (symtab_alias_ultimate_target): Simplify.
19004         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
19005         handle all the fixup cases.
19006         (symtab_resolve_alias): New function.
19007         * passes.c (ipa_write_summaries): Handle weakrefs.
19008         * varpool.c (varpool_analyze_node): Simplify.
19009         (assemble_aliases): Update.
19010         (varpool_create_variable_alias): Simplify.
19011         (varpool_extra_name_alias): Simplify.
19012         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
19013         (lto_symtab_merge_symbols): ... this one.
19015 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
19017         Revert
19018         PR rtl-optimization/57268
19019         * sched-deps.c (sched_analyze_2): Flush dependence lists if
19020         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
19022 2013-06-01  Tobias Burnus  <burnus@net-b.de>
19024         Partially reverted:
19025         2013-05-31  Tobias Burnus  <burnus@net-b.de>
19027         PR middle-end/57073
19028         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
19029         further up.
19031 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
19033         PR rtl-optimization/57268
19034         * sched-deps.c (sched_analyze_2): Flush dependence lists if
19035         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
19037 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
19039         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
19040         unordered comparison operators when -fno-trapping-math is in effect
19041         on the e500.
19042         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
19043         and implement unordered comparison operators properly on the e500.
19045 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
19047         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
19048         for constant scalar integers.
19049         (simplify_relational_operation_1): Likewise.
19051 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
19053         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
19054         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
19055         Fix comment.
19057 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
19058             Igor Zamyatin  <igor.zamyatin@intel.com>
19060         Silvermont (SLM) architecture performance tuning.
19061         * config/i386/i386.h (enum ix86_tune_indices): Add
19062         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
19063         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
19065         * config/i386/i386.c (initial_ix86_tune_features)
19066         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
19067         (ix86_lea_outperforms): Handle Silvermont tuning.
19068         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
19069         call.
19070         (ix86_use_lea_for_mov): Likewise.
19071         (ix86_avoid_lea_for_addr): Likewise.
19072         (ix86_lea_for_add_ok): Likewise.
19073         (exact_dependency_1): New function.
19074         (exact_store_load_dependency): Likewise.
19075         (ix86_adjust_cost): Handle Silvermont tuning.
19076         (do_reoder_for_imul): Likewise.
19077         (swap_top_of_ready_list): New function.
19078         (ix86_sched_reorder): Changed to handle Silvermont tuning.
19080         * config/i386/i386.md (peepholes that split memory operand in fp
19081         converts): New.
19083 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19085         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19086         Remove un-necessary braces.
19088 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19090         * config/aarch64/aarch64.c (aarch64_classify_symbol):
19091         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
19093 2013-05-31  Tobias Burnus  <burnus@net-b.de>
19095         PR middle-end/57073
19096         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
19098 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19100         PR target/56315
19101         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
19102         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
19103         * config/arm/neon.md (iordi3_neon): Remove.
19104         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
19105         * config/arm/predicates.md (imm_for_neon_logic_operand):
19106         Move to earlier in the file.
19107         (neon_logic_op2): Likewise.
19108         (arm_iordi_operand_neon): New predicate.
19110 2013-05-31  Richard Biener  <rguenther@suse.de>
19112         PR tree-optimization/57478
19113         PR tree-optimization/57453
19114         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
19115         are life as well.
19117 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
19119         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
19120         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
19122 2013-05-30  Tobias Burnus  <burnus@net-b.de>
19123             Thomas Koenig  <tkoenig@gcc.gnu.org>
19125         PR middle-end/57073
19126         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
19127         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
19129 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
19131         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
19133 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
19135         * target.def (register_usage_leveling_p): New hook.
19136         * targhooks.c (default_register_usage_leveling_p): New.
19137         * targhooks.h (default_register_usage_leveling_p): New prototype.
19138         * lra-assigns.c (register_usage_leveling_p): Use the hook.
19139         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
19140         * doc/tm.texi: Update.
19141         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
19143 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
19145         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
19146         (*insv_reg<mode>): New define_insn.
19148 2013-05-30  Joern Rennecke  <joern.rennecke@embecosm.com>
19150         PR rtl-optimization/57439
19151         * postreload.c (move2add_valid_value_p): Check that we have
19152         a zero subreg_regno_offset when accessing the register in
19153         the requested mode.
19155 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
19156             Igor Zamyatin  <igor.zamyatin@intel.com>
19158         Silvermont (SLM) architecture pipeline model, tuning and
19159         insn selection.
19160         * config.gcc: Add slm config options and target.
19162         * config/i386/slm.md: New.
19164         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
19166         * config/i386/i386-c.c (ix86_target_macros_internal):  New case
19167         PROCESSOR_SLM.
19168         (ix86_target_macros_internal): Likewise.
19170         * config/i386/i386.c (slm_cost): New cost.
19171         (m_SLM): New macro flag.
19172         (initial_ix86_tune_features): Set m_SLM.
19173         (x86_accumulate_outgoing_args): Likewise.
19174         (x86_arch_always_fancy_math_387): Likewise.
19175         (processor_target_table): Add slm cost.
19176         (cpu_names): Add slm cpu name.
19177         (x86_option_override_internal): Set SLM ISA.
19178         (ix86_issue_rate): New case PROCESSOR_SLM.
19179         (ia32_multipass_dfa_lookahead): Likewise.
19180         (fold_builtin_cpu): Add slm.
19182         * config/i386/i386.h (TARGET_SLM): New target macro.
19183         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
19184         (processor_type): Add PROCESSOR_SLM.
19186         * config/i386/i386.md (cpu): Add new value "slm".
19187         (slm.md): Include slm.md.
19189 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
19190             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19192         * config/arm/arm-protos.h: Add and update function protos.
19193         * config/arm/arm.c (use_simple_return_p): New added.
19194         (thumb2_expand_return): Check simple_return flag.
19195         * config/arm/arm.md: Add simple_return and conditional simple_return.
19196         * config/arm/iterators.md: Add iterator for return and simple_return.
19198 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19200         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
19201         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
19202         (arm_emit_vfp_multi_reg_pop): Likewise.
19203         (thumb2_emit_ldrd_pop): Likewise.
19204         (arm_expand_epilogue): Add misc REG_CFA notes.
19205         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
19207 2013-05-29  Lawrence Crowl  <crowl@google.com>
19209         * config/arm/t-arm: Update for below.
19211         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
19212         Change type to hash_table.  Update dependent calls and types.
19214         * config/i386/t-cygming: Update for below.
19216         * config/i386/t-interix: Update for below.
19218         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
19219         Change type to hash_table.  Update dependent calls and types.
19220         (i386_find_on_wrapper_list::wrappers): Likewise.
19222         * config/ia64/t-ia64: Update for below.
19224         * config/ia64/ia64.c (bundle_state_table):
19225         Change type to hash_table.  Update dependent calls and types.
19227         * config/mips/mips.c (mips_reorg_process_insns::htab):
19228         Change type to hash_table.  Update dependent calls and types.
19230         * config/sol2.c (solaris_comdat_htab):
19231         Change type to hash_table.  Update dependent calls and types.
19233         * config/t-sol2: Update for above.
19235 2013-05-29  Teresa Johnson  <tejohnson@google.com>
19237         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
19238         functions are not yet marked as defined.
19240 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
19241             Pat Haugen  <pthaugen@us.ibm.com>
19242             Peter Bergner  <bergner@vnet.ibm.com>
19244         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
19245         instructions.
19246         (VEC_A): Likewise.
19247         (VEC_C): Likewise.
19248         (vrotl<mode>3): Likewise.
19249         (vashl<mode>3): Likewise.
19250         (vlshr<mode>3): Likewise.
19251         (vashr<mode>3): Likewise.
19253         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19254         support for power8 V2DI builtins.
19256         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
19257         power8 V2DI builtins.
19258         (vupkhsw): Likewise.
19259         (vupklsw): Likewise.
19260         (vaddudm): Likewise.
19261         (vminsd): Likewise.
19262         (vmaxsd): Likewise.
19263         (vminud): Likewise.
19264         (vmaxud): Likewise.
19265         (vpkudum): Likewise.
19266         (vpksdss): Likewise.
19267         (vpkudus): Likewise.
19268         (vpksdus): Likewise.
19269         (vrld): Likewise.
19270         (vsld): Likewise.
19271         (vsrd): Likewise.
19272         (vsrad): Likewise.
19273         (vsubudm): Likewise.
19274         (vcmpequd): Likewise.
19275         (vcmpgtsd): Likewise.
19276         (vcmpgtud): Likewise.
19277         (vcmpequd_p): Likewise.
19278         (vcmpgtsd_p): Likewise.
19279         (vcmpgtud_p): Likewise.
19280         (vupkhsw): Likewise.
19281         (vupklsw): Likewise.
19282         (vaddudm): Likewise.
19283         (vmaxsd): Likewise.
19284         (vmaxud): Likewise.
19285         (vminsd): Likewise.
19286         (vminud): Likewise.
19287         (vpksdss): Likewise.
19288         (vpksdus): Likewise.
19289         (vpkudum): Likewise.
19290         (vpkudus): Likewise.
19291         (vrld): Likewise.
19292         (vsld): Likewise.
19293         (vsrad): Likewise.
19294         (vsrd): Likewise.
19295         (vsubudm): Likewise.
19297         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
19298         support for power8 V2DI instructions.
19300         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
19301         power8 V2DI instructions.  Combine pack and unpack insns to use an
19302         iterator for each mode.  Check whether a particular mode supports
19303         Altivec instructions instead of just checking TARGET_ALTIVEC.
19304         (UNSPEC_VPKUWUM): Likewise.
19305         (UNSPEC_VPKSHSS): Likewise.
19306         (UNSPEC_VPKSWSS): Likewise.
19307         (UNSPEC_VPKUHUS): Likewise.
19308         (UNSPEC_VPKSHUS): Likewise.
19309         (UNSPEC_VPKUWUS): Likewise.
19310         (UNSPEC_VPKSWUS): Likewise.
19311         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
19312         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
19313         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
19314         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
19315         (UNSPEC_VUPKHSB): Likewise.
19316         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
19317         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
19318         (UNSPEC_VUPKHSH): Likewise.
19319         (UNSPEC_VUPKLSB): Likewise.
19320         (UNSPEC_VUPKLSH): Likewise.
19321         (VI2): Likewise.
19322         (VI_char): Likewise.
19323         (VI_scalar): Likewise.
19324         (VI_unit): Likewise.
19325         (VP): Likewise.
19326         (VP_small): Likewise.
19327         (VP_small_lc): Likewise.
19328         (VU_char): Likewise.
19329         (add<mode>3): Likewise.
19330         (altivec_vaddcuw): Likewise.
19331         (altivec_vaddu<VI_char>s): Likewise.
19332         (altivec_vadds<VI_char>s): Likewise.
19333         (sub<mode>3): Likewise.
19334         (altivec_vsubcuw): Likewise.
19335         (altivec_vsubu<VI_char>s): Likewise.
19336         (altivec_vsubs<VI_char>s): Likewise.
19337         (altivec_vavgs<VI_char>): Likewise.
19338         (altivec_vcmpbfp): Likewise.
19339         (altivec_eq<mode>): Likewise.
19340         (altivec_gt<mode>): Likewise.
19341         (altivec_gtu<mode>): Likewise.
19342         (umax<mode>3): Likewise.
19343         (smax<mode>3): Likewise.
19344         (umin<mode>3): Likewise.
19345         (smin<mode>3): Likewise.
19346         (altivec_vpkuhum): Likewise.
19347         (altivec_vpkuwum): Likewise.
19348         (altivec_vpkshss): Likewise.
19349         (altivec_vpkswss): Likewise.
19350         (altivec_vpkuhus): Likewise.
19351         (altivec_vpkshus): Likewise.
19352         (altivec_vpkuwus): Likewise.
19353         (altivec_vpkswus): Likewise.
19354         (altivec_vpks<VI_char>ss): Likewise.
19355         (altivec_vpks<VI_char>us): Likewise.
19356         (altivec_vpku<VI_char>us): Likewise.
19357         (altivec_vpku<VI_char>um): Likewise.
19358         (altivec_vrl<VI_char>): Likewise.
19359         (altivec_vsl<VI_char>): Likewise.
19360         (altivec_vsr<VI_char>): Likewise.
19361         (altivec_vsra<VI_char>): Likewise.
19362         (altivec_vsldoi_<mode>): Likewise.
19363         (altivec_vupkhsb): Likewise.
19364         (altivec_vupkhs<VU_char>): Likewise.
19365         (altivec_vupkls<VU_char>): Likewise.
19366         (altivec_vupkhsh): Likewise.
19367         (altivec_vupklsb): Likewise.
19368         (altivec_vupklsh): Likewise.
19369         (altivec_vcmpequ<VI_char>_p): Likewise.
19370         (altivec_vcmpgts<VI_char>_p): Likewise.
19371         (altivec_vcmpgtu<VI_char>_p): Likewise.
19372         (abs<mode>2): Likewise.
19373         (vec_unpacks_hi_v16qi): Likewise.
19374         (vec_unpacks_hi_v8hi): Likewise.
19375         (vec_unpacks_lo_v16qi): Likewise.
19376         (vec_unpacks_hi_<VP_small_lc>): Likewise.
19377         (vec_unpacks_lo_v8hi): Likewise.
19378         (vec_unpacks_lo_<VP_small_lc>): Likewise.
19379         (vec_pack_trunc_v8h): Likewise.
19380         (vec_pack_trunc_v4si): Likewise.
19381         (vec_pack_trunc_<mode>): Likewise.
19383         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
19384         V2DI builtins.
19385         (vec_vmaxsd): Likewise.
19386         (vec_vmaxud): Likewise.
19387         (vec_vminsd): Likewise.
19388         (vec_vminud): Likewise.
19389         (vec_vpksdss): Likewise.
19390         (vec_vpksdus): Likewise.
19391         (vec_vpkudum): Likewise.
19392         (vec_vpkudus): Likewise.
19393         (vec_vrld): Likewise.
19394         (vec_vsld): Likewise.
19395         (vec_vsrad): Likewise.
19396         (vec_vsrd): Likewise.
19397         (vec_vsubudm): Likewise.
19398         (vec_vupkhsw): Likewise.
19399         (vec_vupklsw): Likewise.
19401 2013-05-29  Jan Hubicka  <jh@suse.cz>
19403         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
19404         flags; reorder rest of fields in more consistent way.
19405         (varpool_node): Remove analyzed, finalized and alias.
19406         (cgraph_ndoe): Likewise.
19407         (symtab_alias_ultimate_target): New function.
19408         (cgraph_function_node): Move offline.
19409         (cgraph_reset_node): Declare.
19410         (cgraph_comdat_can_be_unshared_p): Remove.
19411         (varpool_remove_initializer): Declare.
19412         (varpool_first_defined_variable, varpool_next_defined_variable
19413         cgraph_first_defined_function, cgraph_next_defined_function): Update.
19414         (cgraph_function_with_gimple_body_p): Update.
19415         (varpool_all_refs_explicit_p): Update.
19416         (symtab_alias_target): New function.
19417         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
19418         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
19419         (cgraph_function_or_thunk_node): Simplify using
19420         symtab_alias_ultimate_target.
19421         (varpool_variable_node): Likewise.
19422         * cgraph.c (cgraph_create_function_alias): Update.
19423         (cgraph_add_thunk): Update.
19424         (cgraph_remove_node): Update.
19425         (dump_cgraph_node): Do not dump removed flags.
19426         (cgraph_function_body_availability): Update.
19427         (cgraph_propagate_frequency): Update.
19428         (verify_cgraph_node): Check sanity of local flag.
19429         (cgraph_function_node): Move here from cgraph.h; revamp for
19430         cgraph_function_or_thunk_node.
19431         * lto-symtab.c (lto_varpool_replace_node): Update.
19432         (lto_symtab_resolve_can_prevail_p): Update.
19433         (lto_symtab_merge_cgraph_nodes): Update.
19434         * ipa-cp.c (determine_versionability, initialize_node_lattices,
19435         propagate_constants_accross_call, devirtualization_time_bonus,
19436         ipcp_propagate_stage): Update.
19437         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
19438         * ipa-inline-transform.c (clone_inlined_nodes,
19439         preserve_function_body_p): Update.
19440         * ipa-reference.c (propagate): Update.
19441         (write_node_summary_p): Update.
19442         * toplev.c (wrapup_global_declaration_2): Update.
19443         * cgraphunit.c (cgraph_analyze_function): Rename to ...
19444         (analyze_function) ... this one.
19445         (cgraph_process_new_functions): Update.
19446         (cgraph_reset_node): Export.
19447         (cgraph_finalize_function): Update.
19448         (cgraph_add_new_function): Update.
19449         (process_function_and_variable_attributes): Update.
19450         (varpool_finalize_decl): Update.
19451         (symbol_finalized): Remove.
19452         (symbol_finalized_and_needed): Rename to ...
19453         (symbol_defined_and_needed): ... update.
19454         (cgraph_analyze_functions): Update.
19455         (handle_alias_pairs): Update.
19456         (mark_functions_to_output): Update.
19457         (assemble_thunk): Update.
19458         (output_in_order): Update.
19459         (output_weakrefs): Update.
19460         (finalize_compilation_unit): Update.
19461         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
19462         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
19463         input_node, input_varpool_node): Update.
19464         * dbxout.c (dbxout_expand_expr): Update.
19465         * cgraphclones.c (cgraph_clone_node): Update.
19466         (cgraph_copy_node_for_versioning): Update.
19467         (cgraph_materialize_clone): Update.
19468         (cgraph_materialize_all_clones): Update.
19469         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
19470         propagate_pure_const, propagate_nothrow): Update.
19471         * lto-streamer-out.c (lto_output, write_symbol): Update.
19472         * ipa-utils.c (ipa_reverse_postorder): Update.
19473         * ipa-inline.c (can_inline_edge_p): Update.
19474         (update_caller_keys, ipa_inline): Update.
19475         * dwarf2out.c (reference_to_unused,
19476         premark_types_used_by_global_vars_helper): Update.
19477         * tree-eh.c (tree_could_trap_p): Update.
19478         * ipa-split.c (consider_split, execute_split_functions): Update.
19479         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
19480         has_addr_references_p): Update; move ahead in file for better
19481         readability.
19482         (process_references): Simplify.
19483         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
19484         bodies are removed.
19485         (cgraph_comdat_can_be_unshared_p): Make static.
19486         (cgraph_externally_visible_p): Update.
19487         (varpool_externally_visible_p): Update.
19488         (function_and_variable_visibility): Update.
19489         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
19490         ipa_tm_mark_force_output_node): Update.
19491         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
19492         estimate_edge_devirt_benefit, inline_generate_summary,
19493         inline_write_summary): Update.
19494         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
19495         * ipa-prop.c (ipa_compute_jump_functions): Update.
19496         (ipa_print_node_params, ipa_prop_read_section,
19497         ipa_update_after_lto_read, read_replacements_section): Update.
19498         * varasm.c (mark_decl_referenced): Update.
19499         (assemble_alias, dump_tm_clone_pairs): Update.
19500         * tree-inline.c (copy_bb): Update.
19501         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
19502         Update.
19503         * symtab.c (dump_symtab_base): Print new flags.
19504         (verify_symtab_base): Verify new flags.
19505         (symtab_alias_ultimate_target): New function.
19506         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
19507         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
19508         Update.
19509         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
19510         Update.
19511         * i386.c (ix86_get_function_versions_dispatcher,
19512         ix86_generate_version_dispatcher_body): Update.
19513         (fold_builtin_cpu): Use varpool_add_new_variable.
19514         * varpool.c (varpool_remove_initializer): Break out from ...
19515         (varpool_remove_node): ... this one.
19516         (dump_varpool_node, varpool_node_for_asm,
19517         cgraph_variable_initializer_availability, varpool_analyze_node,
19518         varpool_assemble_decl, varpool_remove_unreferenced_decls,
19519         varpool_finalize_named_section_flags, varpool_create_variable_alias):
19520         Update.
19522 2013-05-29  Jan Hubicka  <jh@suse.cz>
19524         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
19526 2013-05-29  Easwaran Raman  <eraman@google.com>
19528         PR tree-optimization/57442
19529         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
19530         when control exits the main loop.
19532 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
19534         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
19535         and RX600.
19536         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
19537         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
19538         * rx/t-rx: Add rx100 under multi library matches option for nofpu
19539         option.
19541 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19543         PR tree-optimization/57441
19544         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
19545         Don't limit size of incr_vec to number of candidates.
19547 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
19549         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
19550         and mips16 directories.
19551         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
19552         (MULTILIB_DIRNAMES): Ditto.
19553         (MULTILIB_EXCEPTIONS): Add new exceptions.
19554         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
19555         (MULTILIB_DIRNAMES): Ditto.
19556         (MULTILIB_EXCEPTIONS): Add new exceptions.
19558 2012-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
19559             Marcus Shawcroft  <marcus.shawcroft@arm.com>
19561         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
19562         SYMBOL_TINY_ABSOLUTE.
19563         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
19564         SYMBOL_TINY_ABSOLUTE.
19565         (aarch64_expand_mov_immediate): Likewise.
19566         (aarch64_classify_symbol): Likewise.
19567         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
19568         Permit SYMBOL_TINY_ABSOLUTE.
19569         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
19571 2013-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
19572             Marcus Shawcroft  <marcus.shawcroft@arm.com>
19574         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
19575         Refactor if/switch.  Replace gcc_assert with if.
19577 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
19579         * config/i386/i386.c (initial_ix86_tune_features): Enable
19580         FP Reassociation for AMD bdver1 and bdver2.
19582 2013-05-29  Martin Jambor  <mjambor@suse.cz>
19584         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
19585         and IMAGPART_EXPR do not occur within other handled_components.
19587 2013-05-29  Richard Biener  <rguenther@suse.de>
19589         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
19590         access on whether the use is in the BB we currently try to
19591         vectorize.
19592         (vect_bb_vectorization_profitable_p): Pass the BB we currently
19593         vectorize to vect_bb_slp_scalar_cost.
19595 2013-05-29  Richard Biener  <rguenther@suse.de>
19597         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
19598         computing scalar cost offsetted by stmts that are kept live
19599         by scalar uses.
19600         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
19601         for computation of scalar cost.
19603 2013-05-28  Steve Ellcey  <sellcey@mips.com>
19605         * config/mips/mips-cpus.def (mips32r2): Change processor type.
19607 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
19609         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
19610         array notation built-in reduction functions.
19611         * doc/passes.texi (Passes): Added documentation about changes done
19612         for Cilk Plus.
19613         * doc/invoke.texi (C Dialect Options): Added documentation about
19614         the -fcilkplus flag.
19615         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
19616         (BUILTINS_DEF): Depend on cilkplus.def.
19617         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
19618         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
19619         * cilkplus.def: New file.
19621 2013-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
19623         PR rtl-optimization/57439
19624         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
19626 2013-05-28  Easwaran Raman  <eraman@google.com>
19628         PR tree-optimization/57337
19629         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
19630         (find_insert_point): Correctly identify the insertion point
19631         when two statements with the same UID is compared.
19633 2013-05-28  Richard Biener  <rguenther@suse.de>
19635         PR tree-optimization/56787
19636         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
19637         from the list of data references.
19638         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
19639         clobbers.
19640         (vect_analyze_loop_operations): Likewise.
19641         (vect_transform_loop): Remove clobbers.
19643 2013-05-28  Martin Jambor  <mjambor@suse.cz>
19645         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
19646         and REALPART_EXPRs have scalar type.
19648 2013-05-28  Richard Biener  <rguenther@suse.de>
19650         PR tree-optimization/57411
19651         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
19652         virtual operands.
19653         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
19654         virtual operand propagation.
19656 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
19658         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
19659         destination register for bmasksi_vis.
19660         (vector_init_bshuffle): Likewise.
19661         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
19663 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
19665         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
19666         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
19667         mode if the instruction isn't available in the original mode.
19668         * config/sparc/sparc.opt (mfix-ut699): New option.
19669         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
19670         (divdf3): Turn into expander.
19671         (divdf3_nofix): New insn.
19672         (divdf3_fix): Likewise.
19673         (divsf3): Disable if -mfix-ut699.
19674         (sqrtdf2): Turn into expander.
19675         (sqrtdf2_nofix): New insn.
19676         (sqrtdf2_fix): Likewise.
19677         (sqrtsf2): Disable if -mfix-ut699.
19679 2013-05-27  Richard Biener  <rguenther@suse.de>
19681         PR middle-end/57412
19682         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
19683         block for the new loop.
19685 2013-05-27  Richard Biener  <rguenther@suse.de>
19687         PR tree-optimization/57343
19688         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
19689         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
19690         (number_of_iterations_cond): Do not build the folded tree.
19692 2013-05-27  Richard Biener  <rguenther@suse.de>
19694         Revert
19695         PR middle-end/57381
19696         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
19697         OEP_CONSTANT_ADDRESS_OF retained.
19699         PR tree-optimization/57417
19700         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
19701         for unchanged base.
19702         (set_ssa_val_to): Compare addresses using
19703         get_addr_base_and_unit_offset.
19705 2013-05-27  Joern Rennecke  <joern.rennecke@embecosm.com>
19707         PR rtl-optimization/56833
19708         * postreload.c (move2add_record_mode): New function.
19709         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
19710         (move2add_use_add2_insn): Use move2add_record_sym_value.
19711         (move2add_use_add3_insn): Likewise.
19712         (reload_cse_move2add): Use move2add_valid_value_p and
19713         move2add_record_mode.  Invalidate call-clobbered and REG_INC
19714         affected regs by setting reg_mode to VOIDmode.
19715         (move2add_note_store): Don't pretend the inside of a SUBREG is
19716         the actual destination.  Invalidate single/leading registers by
19717         setting reg_mode to VOIDmode.
19718         Use move2add_record_sym_value, move2add_valid_value_p and
19719         move2add_record_mode.
19721 2013-05-27  Richard Biener  <rguenther@suse.de>
19723         PR tree-optimization/57396
19724         * tree-affine.c (double_int_constant_multiple_p): Properly
19725         return false for val == 0 and div != 0.
19727 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
19729         * config/mips/mips.h: Use #elif in preprocessor conditions.
19731 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
19733         PR target/53916
19734         * config/mips/constraints.md (kl): New constraint.
19735         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
19736         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
19737         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
19738         from LO for MIPS16.
19739         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
19741 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
19743         PR target/55777
19744         * config/mips/mips.c (mips_can_inline_p): New function.
19745         (TARGET_CAN_INLINE_P): Define.
19747 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
19749         * sched-int.h (ds_t, dw_t): Make unsigned int.
19750         Fix documentation that describes how all the ds_t bits are used.
19751         Reserve the last bit for delayed-branch scheduling.
19752         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
19753         (BITS_PER_DEP_WEAK): Fix definition and documentation.
19754         (gen_dep_weak_1): Remove prototype.
19755         * sched-deps.c (get_dep_weak_1): Make static.
19756         * target.def (speculate_insn, needs_block_p, gen_spec_check,
19757         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
19758         * doc/tm.texi: Regenerate.
19759         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
19761 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
19763         PR debug/56950
19764         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
19766 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
19767             Sandra Loosemore  <sandra@codesourcery.com>
19769         * config.gcc (powerpc-*): Allow native for with-cpu.
19771 2013-05-24  Jeff Law  <law@redhat.com>
19773         PR tree-optimization/57124
19774         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
19775         conversion feeding a condition if the range has an overflow
19776         if -fstrict-overflow.  Add warnings for when we do make the
19777         transformation.
19779 2013-05-24  Dehao Chen  <dehao@google.com>
19781         * tree-cfg.c (locus_discrim_map): Fix the typo.
19782         (locus_discrim_hasher): Likewise.
19783         (locus_discrim_hasher::hash): Likewise.
19784         (locus_discrim_hasher::equal): Likewise.
19786 2013-05-24  Martin Jambor  <mjambor@suse.cz>
19788         PR tree-optimization/57294
19789         * cgraph.h (ipa_record_stmt_references): Declare.
19790         * cgraphbuild.c (ipa_record_stmt_references): New function.
19791         (build_cgraph_edges): Use ipa_record_stmt_references.
19792         (rebuild_cgraph_edges): Likewise.
19793         (cgraph_rebuild_references): Likewise.
19794         * ipa-prop.c (ipa_modify_call_arguments): Discard references
19795         associated with the old statement and build references from the
19796         newly built statements.
19797         * ipa-ref.c (ipa_remove_stmt_references): New function.
19798         * ipa-ref.h (ipa_remove_stmt_references): Declare.
19800 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
19802         * lra-constraints.c (emit_spill_move): Use smaller mode for
19803         mem-mem moves.
19804         (check_and_process_move): Consider mem-reg moves for secondary
19805         too.
19806         (curr_insn_transform): Don't lose insns emitted before for
19807         secondary memory moves.
19808         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
19809         reg set up in the current insn.
19811 2013-05-24  Dehao Chen  <dehao@google.com>
19813         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
19814         hash function.
19815         (locus_descrim_hasher::equal): Likewise.
19816         (build_gimple_cfg): New discriminator assignment algorithm.
19817         (make_edges): Likewise.
19818         (next_discriminator_for_locus): Likewise.
19819         (same_line_p): Likewise.
19820         (assign_discriminators): Likewise.
19821         (make_cond_expr_edges): Likewise.
19822         (make_gimple_switch_edges): Likewise.
19823         (make_goto_expr_edges): Likewise.
19824         (make_gimple_asm_edges): Likewise.
19826 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
19828         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
19829         X format specifier to only display bottom 16 bits.
19830         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
19831         immediate to match for operand 2, since it will be masked.
19833 2013-05-24  Richard Biener  <rguenther@suse.de>
19835         PR tree-optimization/57287
19836         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
19837         all SSA names that occur in abnormal PHIs.
19839 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
19841         PR tree-ssa/57385
19842         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
19843         that index is not negative.
19845 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
19847         PR rtl-optimization/55177
19848         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
19849         (simplify_byte_swapping_operation): New.
19850         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
19851         (simplify_relational_operation_1): Deal with BSWAP.
19853 2013-05-23  Richard Henderson  <rth@redhat.com>
19855         PR target/56742
19856         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
19857         (ix86_reorg): Call it.
19859 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
19861         PR target/57379
19862         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
19863         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
19864         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
19866 2013-05-23  Christian Bruel  <christian.bruel@st.com>
19868         PR debug/57351
19869         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
19871 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
19872             Marcus Shawcroft  <marcus.shawcroft@arm.com>
19874         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
19875         * config/aarch64/constraints.md (Usa): Remove.
19876         * doc/md.texi (AArch64 Usa): Remove.
19878 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
19879             Marcus Shawcroft  <marcus.shawcroft@arm.com>
19881         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
19882         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
19883         * config/aarch64/predicates.md (aarch64_const_address): Remove.
19884         (aarch64_mov_operand): Use aarch64_mov_operand_p.
19886 2013-05-23  Vidya Praveen  <vidyapraveen@arm.com>
19888         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
19889         instruction (AdvSIMD).
19890         * config/aarch64/aarch64-builtins.c
19891         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
19892         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
19894 2013-05-23  Martin Jambor  <mjambor@suse.cz>
19896         PR middle-end/57347
19897         * tree.h (contains_bitfld_component_ref_p): Declare.
19898         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
19899         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
19900         caller.
19901         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
19902         not access a bit-field.  Assert all final offsets are byte-aligned.
19904 2013-05-23  Richard Biener  <rguenther@suse.de>
19906         PR tree-optimization/57380
19907         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
19908         least one invariant or re-used load.
19909         * passes.c (init_optimization_passes): Move pass_phiprop before
19910         pass_forwprop.
19912 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
19914         * config/aarch64/aarch64-simd.md
19915         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
19917 2013-05-23  Richard Biener  <rguenther@suse.de>
19919         PR middle-end/57381
19920         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
19921         OEP_CONSTANT_ADDRESS_OF retained.
19923 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
19925         PR middle-end/57344
19926         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
19927         don't lower unit.  Handle unit not being always BITS_PER_WORD.
19929 2013-05-23  Richard Biener  <rguenther@suse.de>
19931         PR rtl-optimization/57341
19932         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
19933         instead of true_dependence.
19935 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
19937         * bb-reorder.c (branch_threshold): Make const.
19938         (exec_threshold): Ditto.
19940 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
19941             Pat Haugen  <pthaugen@us.ibm.com>
19942             Peter Bergner  <bergner@vnet.ibm.com>
19944         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
19945         documentation for the power8 crypto builtins.
19947         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
19949         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
19950         macros for defining power8 builtin functions.
19951         (BU_P8V_AV_2): Likewise.
19952         (BU_P8V_AV_P): Likewise.
19953         (BU_P8V_VSX_1): Likewise.
19954         (BU_P8V_OVERLOAD_1): Likewise.
19955         (BU_P8V_OVERLOAD_2): Likewise.
19956         (BU_CRYPTO_1): Likewise.
19957         (BU_CRYPTO_2): Likewise.
19958         (BU_CRYPTO_3): Likewise.
19959         (BU_CRYPTO_OVERLOAD_1): Likewise.
19960         (BU_CRYPTO_OVERLOAD_2): Likewise.
19961         (XSCVSPDP): Fix typo, point to the correct instruction.
19962         (VCIPHER): Add power8 crypto builtins.
19963         (VCIPHERLAST): Likewise.
19964         (VNCIPHER): Likewise.
19965         (VNCIPHERLAST): Likewise.
19966         (VPMSUMB): Likewise.
19967         (VPMSUMH): Likewise.
19968         (VPMSUMW): Likewise.
19969         (VPERMXOR_V2DI): Likewise.
19970         (VPERMXOR_V4SI: Likewise.
19971         (VPERMXOR_V8HI: Likewise.
19972         (VPERMXOR_V16QI: Likewise.
19973         (VSHASIGMAW): Likewise.
19974         (VSHASIGMAD): Likewise.
19975         (VPMSUM): Likewise.
19976         (VPERMXOR): Likewise.
19977         (VSHASIGMA): Likewise.
19979         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
19980         __CRYPTO__ if the crypto instructions are available.
19981         (altivec_overloaded_builtins): Add support for overloaded power8
19982         builtins.
19984         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
19985         support for power8 crypto builtins.
19986         (builtin_function_type): Likewise.
19987         (altivec_init_builtins): Add support for builtins that take vector
19988         long long (V2DI) arguments.
19990         * config/rs6000/crypto.md: New file, define power8 crypto
19991         instructions.
19993 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
19994             Pat Haugen  <pthaugen@us.ibm.com>
19995             Peter Bergner  <bergner@vnet.ibm.com>
19997         * doc/invoke.texi (Option Summary): Add power8 options.
19998         (RS/6000 and PowerPC Options): Likewise.
20000         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
20001         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
20002         wm, wn, wr documentation.
20004         * config/rs6000/constraints.md (wm): New constraint for VSX
20005         registers if direct move instructions are enabled.
20006         (wn): New constraint for no registers.
20007         (wq): New constraint for quad word even GPR registers.
20008         (wr): New constraint if 64-bit instructions are enabled.
20009         (wv): New constraint if power8 vector instructions are enabled.
20010         (wQ): New constraint for quad word memory locations.
20012         * config/rs6000/predicates.md (const_0_to_15_operand): New
20013         constraint for 0..15 for crypto instructions.
20014         (gpc_reg_operand): If VSX allow registers in VSX registers as well
20015         as GPR and floating point registers.
20016         (int_reg_operand): New predicate to match only GPR registers.
20017         (base_reg_operand): New predicate to match base registers.
20018         (quad_int_reg_operand): New predicate to match even GPR registers
20019         for quad memory operations.
20020         (vsx_reg_or_cint_operand): New predicate to allow vector logical
20021         operations in both GPR and VSX registers.
20022         (quad_memory_operand): New predicate for quad memory operations.
20023         (reg_or_indexed_operand): New predicate for direct move support.
20025         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
20026         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
20027         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
20028         (POWERPC_MASKS): Add power8 options.
20029         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
20030         various options.
20032         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
20033         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
20035         * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
20036         (-mpower8-fusion): New power8 options.
20037         (-mpower8-fusion-sign): Likewise.
20038         (-mpower8-vector): Likewise.
20039         (-mcrypto): Likewise.
20040         (-mdirect-move): Likewise.
20041         (-mquad-memory): Likewise.
20043         * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
20044         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
20045         registers.
20046         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
20047         (rs6000_debug_vector_unit): Add p8_vector.
20048         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
20049         definitions.  Also print fusion state.
20050         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
20051         (rs6000_builtin_mask_calculate): Add power8 builtin support.
20052         (rs6000_option_override_internal): Add support for power8.
20053         (rs6000_common_init_builtins): Add debugging for skipped builtins
20054         if -mdebug=builtin.
20055         (rs6000_adjust_cost): Add power8 support.
20056         (rs6000_issue_rate): Likewise.
20057         (insn_must_be_first_in_group): Likewise.
20058         (insn_must_be_last_in_group): Likewise.
20059         (force_new_group): Likewise.
20060         (rs6000_register_move_cost): Likewise.
20061         (rs6000_opt_masks): Likewise.
20063         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
20064         power8 capable assembler, default to power7 options.
20065         (TARGET_DIRECT_MOVE): Likewise.
20066         (TARGET_CRYPTO): Likewise.
20067         (TARGET_P8_VECTOR): Likewise.
20068         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
20069         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
20070         (VECTOR_MEM_P8_VECTOR_P): Likewise.
20071         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
20072         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
20073         (TARGET_XSCVDPSPN): Likewise.
20074         (TARGET_XSCVSPDPN): Likewsie.
20075         (TARGET_SYNC_HI_QI): Likewise.
20076         (TARGET_SYNC_TI): Likewise.
20077         (MASK_CRYPTO): Likewise.
20078         (MASK_DIRECT_MOVE): Likewise.
20079         (MASK_P8_FUSION): Likewise.
20080         (MASK_P8_VECTOR): Likewise.
20081         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
20082         temporary used by some of the direct move instructions to get two FP
20083         temporary registers does not force creation of a stack frame.
20084         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
20085         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
20086         that any VSX registers are tieable, even if they are also an
20087         Altivec vector mode.
20088         (r6000_reg_class_enum): Add wm, wr, wv constraints.
20089         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
20090         (RS6000_BTM_CRYPTO): Likewise.
20091         (RS6000_BTM_COMMON): Likewise.
20093         * config/rs6000/rs6000.md (cpu attribute): Add power8.
20094         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
20095         (enum rs6000_vector): Add power8 vector support.
20097 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20099         PR target/19599
20100         PR target/57340
20101         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
20102         (any_sibcall_could_use_r3): this and handle indirect calls.
20103         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
20105 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20107         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
20109 2013-05-22  Richard Biener  <rguenther@suse.de>
20111         PR middle-end/57349
20112         * profile.c (branch_prob): Do not split blocks that are
20113         abnormally receiving from ECF_RETURNS_TWICE functions.
20115 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
20117         * recog.c (offsettable_address_addr_space_p): Fix calculation of
20118         address mode.  Move pointer mode initialization to the same place.
20120 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
20122         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
20123         while it has any effect.
20125 2013-05-21  Easwaran Raman  <eraman@google.com>
20127         PR tree-optimization/57322
20128         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
20129         UID of the statement added to the BB to be 1.
20131 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
20133         PR tree-optimization/57331
20134         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
20135         of conversion from pointer type to integral type with integer.
20137 2013-05-21  Martin Jambor  <mjambor@suse.cz>
20139         PR lto/57289
20140         * ipa-prop.c (ipa_read_node_info): Process param_used and
20141         controlled_uses in the same order as when writing.
20143 2013-05-21  Magnus Granberg  <baldrick@free.fr>
20145         PR plugins/56754
20146         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
20148 2013-05-21  Richard Biener  <rguenther@suse.de>
20150         PR tree-optimization/57318
20151         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
20152         estimate stmts with side-effects as likely eliminated.
20154 2013-05-21  Richard Biener  <rguenther@suse.de>
20156         PR tree-optimization/57330
20157         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
20158         preserve the call stmts fntype.
20160 2013-05-21  Richard Biener  <rguenther@suse.de>
20162         PR tree-optimization/57303
20163         * tree-ssa-sink.c (statement_sink_location): Improve killing
20164         stmt detection and properly handle self-assignments.
20166 2013-05-21  Christian Bruel  <christian.bruel@st.com>
20168         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
20169         spanning registers. LEAF_REG_REMAP is supported only for contiguous
20170         registers. Set register size out of the PARALLEL loop.
20172 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
20174         PR target/56547
20175         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
20176         (*fmasf4, *fmasf4_media): New insns.
20178 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
20180         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
20181         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
20182         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
20183         (mips_idiv_insns): Update the comments to say that the returned
20184         instruction counts are in units of BASE_INSN_LENGTH.
20185         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
20186         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
20187         using 2 rather than 4 as the length of indirect MIPS16 and
20188         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
20189         length of a NOP.  Don't divide MIPS16 lengths by 2.
20190         (mips16_split_long_branches): Assume a branch is long if the
20191         length is greater than 4 rather than 8.
20192         * config/mips/mips.md (length): Give MIPS16 lengths directly,
20193         rather than multiplying them by 2.  Multiply instruction counts
20194         by BASE_INSN_LENGTH rather than 4.
20195         (*jump_mips16, tls_get_tp_mips16_<mode>)
20196         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
20198 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
20200         * config/mips/mips.md (extended_mips16): Remove branch case.
20201         (length): Remove duplicated extended_mips16 test.
20203 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
20205         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
20207 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
20209         * recog.h (Recog_data): Rename to...
20210         (recog_data_d): ...this.
20211         (recog_data): Update accordingly.
20212         * recog.c (recog_data): Likewise.
20213         * reload.c (save_recog_data): Likewise.
20214         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
20215         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
20217 2013-05-17  Julian Brown  <julian@codesourcery.com>
20219         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
20220         found in a REG_EQUAL note, invalidate it.
20222 2013-05-17  Easwaran Raman  <eraman@google.com>
20224         * tree-ssa-reassoc.c (find_insert_point): New function.
20225         (insert_stmt_after): Likewise.
20226         (get_def_stmt): Likewise.
20227         (ensure_ops_are_available): Likewise.
20228         (not_dominated_by): Likewise.
20229         (rewrite_expr_tree): Do not move statements beyond what is
20230         necessary. Remove call to swap_ops_for_binary_stmt...
20231         (reassociate_bb): ... and move it here.
20232         (build_and_add_sum): Assign UIDs for new statements.
20233         (linearize_expr): Likewise.
20234         (do_reassoc): Renumber gimple statement UIDs.
20236 2013-05-17  Jan Hubicka  <jh@suse.cz>
20238         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
20239         weakrefs.
20240         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
20241         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
20242         weakrefs.
20243         (output_weakrefs): Update.
20245 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
20246             Martin Jambor  <mjambor@suse.cz>
20248         PR middle-end/57276
20249         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
20250         value that corresponds to the given aggval is found in values vector.
20252 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
20254         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
20255         sse, sse2, sse3, ssse3 and sse4a flags to options.
20257 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
20259         * gengtype-state.c: (s_expr_writer): New class, to handle
20260         prettifying of output layout of s-expressions.
20261         (state_writer): New class, to write out gtype.state.
20262         (state_written_type_count): Move this variable into member data of
20263         state_writer.
20264         (s_expr_writer::s_expr_writer): New code: constructor for new class
20265         (state_writer::state_writer(): ditto
20266         (s_expr_writer::write_new_line): New function
20267         (s_expr_writer::write_any_indent): ditto
20268         (s_expr_writer::begin_s_expr): ditto
20269         (s_expr_writer::end_s_expr): ditto
20270         (write_state_fileloc): convert to method of state_writer...
20271         (state_writer:: write_state_fileloc): ...and use methods of
20272         s_expr_writer to write indentation into the gtype.state output file
20273         to visually represent the hierarchical structure of the list
20274         structures
20275         (write_state_fields): ditto, renaming to...
20276         (state_writer::write_state_fields)
20277         (write_state_a_string): ditto, renaming to...
20278         (state_writer::write_state_a_string)
20279         (write_state_string_option): ditto, renaming to...
20280         (state_writer::write_state_string_option)
20281         (write_state_type_option): ditto, renaming to...
20282         (state_writer::write_state_type_option)
20283         (write_state_nested_option): ditto, renaming to...
20284         (state_writer::write_state_nested_option)
20285         (write_state_option): ditto, renaming to...
20286         (state_writer::write_state_option)
20287         (write_state_options): ditto, renaming to...
20288         (state_writer::write_state_options)
20289         (write_state_lang_bitmap): ditto, renaming to...
20290         (state_writer::write_state_lang_bitmap)
20291         (write_state_version): ditto, renaming to...
20292         (state_writer::write_state_version)
20293         (write_state_scalar_type): ditto, renaming to...
20294         (state_writer::write_state_scalar_type)
20295         (write_state_string_type): ditto, renaming to...
20296         (state_writer::write_state_string_type)
20297         (write_state_undefined_type): ditto, renaming to...
20298         (state_writer::write_state_undefined_type)
20299         (write_state_struct_union_type): ditto, renaming to...
20300         (state_writer::write_state_struct_union_type)
20301         (write_state_struct_type): ditto, renaming to...
20302         (state_writer::write_state_struct_type)
20303         (write_state_user_struct_type): ditto, renaming to...
20304         (state_writer::write_state_user_struct_type)
20305         (write_state_lang_struct_type): ditto, renaming to...
20306         (state_writer::write_state_lang_struct_type)
20307         (write_state_param_struct_type): ditto, renaming to...
20308         (state_writer::write_state_param_struct_type)
20309         (write_state_pointer_type): ditto, renaming to...
20310         (state_writer::write_state_pointer_type)
20311         (write_state_array_type): ditto, renaming to...
20312         (state_writer::write_state_array_type)
20313         (write_state_gc_used): ditto, renaming to...
20314         (state_writer::write_state_gc_used)
20315         (write_state_common_type_content): ditto, renaming to...
20316         (state_writer::write_state_common_type_content)
20317         (write_state_type): ditto, renaming to...
20318         (state_writer::write_state_type)
20319         (write_state_pair_list): ditto, renaming to...
20320         (state_writer::write_state_pair_list)
20321         (write_state_pair): ditto, renaming to...
20322         (state_writer::write_state_pair)
20323         (write_state_typedefs): ditto, renaming to...
20324         (state_writer::write_state_typedefs)
20325         (write_state_structures): ditto, renaming to...
20326         (state_writer::write_state_structures)
20327         (write_state_param_structs): ditto, renaming to...
20328         (state_writer::write_state_param_structs)
20329         (write_state_variables): ditto, renaming to...
20330         (state_writer::write_state_variables)
20331         (write_state_srcdir): ditto, renaming to...
20332         (state_writer::write_state_srcdir)
20333         (write_state_files_list): ditto, renaming to...
20334         (state_writer::write_state_files_list)
20335         (write_state_languages): ditto, renaming to...
20336         (state_writer::write_state_languages)
20337         (write_state): create a state_writer instance and use it when
20338         writing out the state file
20340 2013-05-17  Mike Stump  <mikestump@comcast.net>
20342         PR rtl-optimization/57304
20343         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
20344         accessing DF_REF_REAL_LOC.
20346 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
20348         PR rtl-optimization/57281
20349         PR rtl-optimization/57300
20350         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
20351         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
20352         what the other splitter did if the registers are dead.
20354 2013-05-17  Richard Biener  <rguenther@suse.de>
20356         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
20357         MEM_REF offsets.
20359 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
20361         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
20362         linking.
20364 2013-05-17  Marek Polacek  <polacek@redhat.com>
20366         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
20367         length when doing non-zero store of storing '\0' to '\0'.
20369 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
20371         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
20372         vect_external_def oprnd1 with loop_vinfo, try to emit
20373         optional cast, negation and and stmts on the loop preheader
20374         edge instead of into the pattern def seq.
20376         PR tree-optimization/57051
20377         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
20378         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
20380 2013-05-16  Nick Clifton  <nickc@redhat.com>
20382         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
20383         (rl78_is_naked_func): New function.
20384         (rl78_expand_prologue): Skip prologue generation for naked functions.
20385         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
20386         * doc/extend.texi (naked): Add RL78 to the list of processors
20387         that supports this attribute.
20389 2013-05-16  Jeff Law  <law@redhat.com>
20391         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
20393 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
20395         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
20396         cache parameters using detect_caches_amd also for CYRIX,
20397         NSC and TM2 signatures.
20399 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
20400             Dzianis Kahanovich  <mahatma@eu.by>
20402         PR target/45359
20403         PR target/46396
20404         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
20405         VIA/Centaur processors and determine their cache parameters
20406         using detect_caches_amd.
20408 2013-05-16  Teresa Johnson  <tejohnson@google.com>
20410         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
20411         (rtl_verify_edges): New function.
20412         (rtl_verify_bb_insns): Ditto.
20413         (rtl_verify_bb_pointers): Ditto.
20414         (rtl_verify_bb_insn_chain): Ditto.
20415         (rtl_verify_fallthru): Ditto.
20416         (rtl_verify_bb_layout): Ditto.
20417         (rtl_verify_flow_info_1): Outline checks into new functions.
20418         (rtl_verify_flow_info): Ditto.
20420 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
20422         * cfghooks.c (copy_bbs): Add update_dominance argument.
20423         * cfghooks.h (copy_bbs): Update prototype.
20424         * tree-cfg.c (gimple_duplicate_sese_region):
20425         Add update_dominance argument.
20426         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
20427         * tree-ssa-loop-ch.c (copy_loop_headers): Update
20428         gimple_duplicate_sese_region call.
20429         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
20430         Update copy_bbs call.
20431         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
20432         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
20434 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
20436         * tree-vectorizer.h (NUM_PATTERNS): Increment.
20437         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
20438         vect_recog_rotate_pattern.
20439         (vect_recog_rotate_pattern): New function.
20441 2013-05-16  Jason Merrill  <jason@redhat.com>
20443         * Makefile.in (LLINKER): New variable.
20444         (mostlyclean): Remove link mutex.
20445         * configure.ac: Handle --enable-link-mutex.
20446         * lock-and-run.sh: New script.
20448 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20450         PR target/19599
20451         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
20452         for NULL decl.
20454 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20456         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
20458 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
20460         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
20461         * config/arm/arm.c (next_consecutive_mem): New function.
20462         (gen_movmem_ldrd_strd): Likewise.
20463         * config/arm/arm.md (movmemqi): Update condition and code.
20464         (unaligned_loaddi, unaligned_storedi): New patterns.
20466 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20468         * config.gcc: Obsolete *-*-solaris2.9*.
20469         * doc/install.texi (Specific, *-*-solaris2*): Document it.
20471 2013-05-16  Richard Biener  <rguenther@suse.de>
20473         * passes.c (init_optimization_passes): Move pass_parallelize_loops
20474         earlier, after GRAPHITE transforms and IV canonicalization.
20476 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
20478         * omp-low.c (extract_omp_for_data): For collapsed loops,
20479         if at least one of the loops is known at compile time to
20480         iterate zero times, set count to 0.
20481         (expand_omp_regimplify_p): New function.
20482         (expand_omp_for_generic): For collapsed loops, if at least
20483         one of the loops isn't known to iterate at least once,
20484         add runtime check with setting count to 0.
20485         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
20486         For unsigned types if it isn't known at compile time that
20487         the loop will iterate at least once, add runtime check to bypass
20488         the whole loop if initial condition isn't true.
20490 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
20492         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
20494 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
20496         PR middle-end/57286
20497         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
20498         transformations to avoid an infinite loop.
20500 2013-05-16  Marek Polacek  <polacek@redhat.com>
20502         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
20504 2013-05-15  Leif Ekblad  <leif@rdos.net>
20506         * config/i386/i386.c (ix86_decompose_address): Use
20507         DEFAULT_TLS_SEG_REG to access TLS segment register.
20508         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
20509         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
20510         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
20512 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
20514         PR target/57260
20515         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
20516         sibling calls to functions that would normally be lazily bound,
20517         unless $gp is call-clobbered.
20519 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
20521         * config/i386/i386.c (ix86_option_override_internal): Update
20522         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
20523         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
20524         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
20525         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
20526         of TARGET_3DNOW.
20527         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
20529 2013-05-15  Andreas Schwab  <schwab@suse.de>
20531         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
20532         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
20533         third operand.
20535 2013-05-15  Teresa Johnson  <tejohnson@google.com>
20537         * loop-unroll.c (report_unroll_peel): Check decision before
20538         emitting unroll/peel message.
20540 2013-05-15  Teresa Johnson  <tejohnson@google.com>
20542         * function.h (has_bb_partition): New rtl_data flag.
20543         (bb_reorder_complete): Ditto.
20544         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
20545         instead of flag_reorder_blocks_and_partition.
20546         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
20547         with some enhancements.
20548         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
20549         * bb-reorder.c (connect_traces): Check for has_bb_partition
20550         instead of flag_reorder_blocks_and_partition.
20551         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
20552         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
20553         verify_hot_cold_block_grouping.
20554         (partition_hot_cold_basic_blocks): Set has_bb_partition.
20556 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20558         PR target/19599
20559         * config/arm/predicates.md (call_insn_operand): New predicate.
20560         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
20561         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
20562         if insn is not a tail call.
20563         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
20564         registers.
20565         * config/arm/arm.h (enum reg_class): New caller save register class.
20566         (REG_CLASS_NAMES): Likewise.
20567         (REG_CLASS_CONTENTS): Likewise.
20568         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
20569         without decls.
20571 2013-05-15  Richard Biener  <rguenther@suse.de>
20573         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
20574         of MSG_OPTIMIZED_LOCATIONS.
20575         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
20576         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
20577         message.
20578         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
20579         of MSG_OPTIMIZED_LOCATIONS.
20580         (execute_vect_slp): Likewise.
20581         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
20582         (vect_create_cond_for_alias_checks): Likewise.
20583         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
20584         (vect_recog_widen_mult_pattern): Likewise.
20585         (vect_recog_widen_sum_pattern): Likewise.
20586         (vect_recog_over_widening_pattern): Likewise.
20587         (vect_recog_widen_shift_pattern): Likewise.
20588         (vect_recog_vector_vector_shift_pattern): Likewise.
20589         (vect_recog_divmod_pattern): Likewise.
20590         (vect_recog_mixed_size_cond_pattern): Likewise.
20591         (vect_recog_bool_pattern): Likewise.
20592         (vect_pattern_recog_1): Likewise.
20594 2013-05-15  Martin Jambor  <mjambor@suse.cz>
20596         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
20597         non-functions to builtin_unreachable.
20598         * ipa-inline-transform.c (inline_call): Do not assert estimates were
20599         correct when new direct edges were discovered.
20601 2013-05-15  Martin Jambor  <mjambor@suse.cz>
20603         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
20604         header, print symbol order instead of node uid, print more information
20605         about indirect edge targets.
20606         (ipa_make_edge_direct_to_target): Print symbol order instead of node
20607         uids.
20608         (ipa_make_edge_direct_to_target): Likewise.
20609         (remove_described_reference): Likewise.
20610         (propagate_controlled_uses): Likewise.
20611         (ipa_print_node_params): Also print symbol order.
20612         (ipcp_transform_function): Print symbol order instead of node uids.
20613         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
20614         (cgraph_get_create_real_symbol_node): Likewise.
20615         * ipa-cp.c (print_lattice): Likewise.
20616         (print_all_lattices): Likewise.
20617         (determine_versionability): Likewise.
20618         (initialize_node_lattices): Likewise.
20619         (estimate_local_effects): Likewise.
20620         (update_profiling_info): Likewise.
20621         (create_specialized_node): Likewise.
20622         (perhaps_add_new_callers): Likewise.
20623         (decide_about_value): Likewise.
20624         (decide_whether_version_node): Likewise.
20625         (identify_dead_nodes): Likewise.
20626         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
20627         (dump_inline_summary): Likewise.
20628         (estimate_node_size_and_time): Likewise.
20629         (inline_analyze_function): Likewise.
20630         * ipa-inline.c (report_inline_failed_reason): Likewise.
20631         (want_early_inline_function_p): Likewise.
20632         (edge_badness): Likewise.
20633         (update_edge_key): Likewise.
20634         (inline_small_functions): Likewise.  Add dumping of order to two other
20635         dumps.
20636         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
20637         instead of node uids.
20638         (propagate_pure_const): Likewise.
20639         (propagate_pure_const): Likewise.
20640         * ipa-utils.c (dump_cgraph_node_set): Likewise.
20641         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
20642         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
20643         of node uids.
20644         * tree-pretty-print.c (dump_function_header): Likewise.
20645         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
20646         Print symbol order instead of node uids.
20648 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20650         * config/s390/s390.c (s390_register_move_cost): Don't impose the
20651         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
20653 2013-05-15  Richard Biener  <rguenther@suse.de>
20655         PR tree-optimization/57275
20656         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
20657         return value for fail to do runtime alias checks for gather loads.
20659 2013-05-15  Jan Hubicka  <jh@suse.cz>
20661         PR lto/57038
20662         PR lto/47375
20663         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
20664         weakrefs are not external.
20665         (lto_symtab_merge_decls): Fix thinko when dealing with
20666         non-lto_symtab decls.
20667         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
20668         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
20669         * varpool.c (dump_varpool_node): Dump more flags.
20671 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
20673         * config/i386/i386.c (processor_alias_table): Add instruction
20674         FSGSBASE for AMD bdver3 architecture.
20676 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
20678         * tree.c (warn_deprecated_use): Print file:line using locus color.
20679         * diagnostic.c (diagnostic_report_current_module): Print file:line
20680         and file:line:column using locus color.
20682 2013-05-14  Mike Stump  <mikestump@comcast.net>
20684         * gdbinit.in: Add __null.
20686 2013-05-14  Mike Stump  <mikestump@comcast.net>
20688         * recog.h: Rename struct recog_data to Recog_data.
20689         * recog.c: Likewise.
20690         * reload.c (can_reload_into): Likewise.
20691         * config/picochip/picochip.c: Likewise.
20693 2013-05-14  Mike Stump  <mikestump@comcast.net>
20695         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
20697 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
20699         * resource.h (struct resources): Remove unch_memory member.
20700         (CLEAR_RESOURCE): Don't clear unch_memory.
20701         * resource.c (mark_referenced_resources): Don't set it.
20702         (mark_set_resources): Likewise.
20703         (mark_target_live_regs): Don't clear it.
20704         (init_resource_info): Likewise.
20705         * reorg.c (resource_conflicts_p): Don't compare it.
20706         (redundant_insn): Don't set it.
20708         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
20709         Remove prototypes.
20710         * emit-rtl.c (next_label): Remove unused function.
20711         (skip_consecutive_labels, link_cc0_insns): Move to ...
20712         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
20713         only place where these functions are used, and make them static.
20715 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
20717         * fold-const.c (fold_negate_expr): Handle vectors.
20718         (fold_truth_not_expr): Make it static.
20719         (fold_invert_truthvalue): New static function.
20720         (invert_truthvalue_loc): Handle vectors. Do not call
20721         fold_truth_not_expr directly.
20722         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
20723         <TRUTH_NOT_EXPR>: Do not cast to boolean.
20724         (fold_comparison): Handle vector constants.
20725         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
20726         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
20727         * tree.h (fold_truth_not_expr): Remove declaration.
20729 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
20731         * config/aarch64/aarch64-simd.md
20732         (aarch64_vcond_internal<mode>): Rename to...
20733         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
20734         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
20735         float modes. Clarify all iterator modes.
20736         (vcond<mode><mode>): Use new name for vcond expanders.
20737         (vcond<v_cmp_result><mode>): Likewise.
20738         (vcondu<mode><mode>: Likewise.
20739         * config/aarch64/iterators.md (VDQF_COND): New.
20741 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
20743         PR bootstrap/57266
20744         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
20745         variable for the shift amount. Check that we shift by non-negative
20746         amounts.
20748 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
20750         PR target/42017
20751         * config/arm/arm.h (EPILOGUE_USES): Only return true
20752         for LR_REGNUM after epilogue_completed.
20754 2013-05-14  Joern Rennecke  <joern.rennecke@embecosm.com>
20756         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
20757         is error_mark_node.
20759 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20761         PR target/57261
20762         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
20763         and Solaris 11+/x86 with gld.
20764         * configure: Regenerate.
20766 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
20768         * expmed.c (expand_shift_1): Canonicalize rotates by
20769         constant bitsize / 2 to bitsize - 1.
20770         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
20771         case ROTATERT>: Likewise.
20773         Revert:
20774         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
20776         * config/i386/i386.md (rotateinv): New code attr.
20777         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
20778         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
20779         roll $31, %eax, etc.
20781 2013-05-14  Richard Biener  <rguenther@suse.de>
20783         PR middle-end/57235
20784         * tree-eh.c (sink_clobbers): Give up for successors with
20785         multiple predecessors and no virtual uses.
20787 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
20789         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
20790         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
20792 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
20794         PR middle-end/57251
20795         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
20796         the case when both op0 and op1 have VOIDmode.
20798 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
20800         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
20801         in multiply-accumulate mode.
20803 2013-05-13  Guozhi Wei  <carrot@google.com>
20805         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
20807 2013-05-13  Kai Tietz  <ktietz@redhat.com>
20809         PR target/56975
20810         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
20811         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
20812         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
20813         * config/i386/i386.c (ix86_option_override_internal): Likewise.
20814         (ix86_expand_prologue): Likewise.
20815         (ix86_expand_split_stack_prologue): Likewise.
20816         (legitimate_pic_address_disp_p): Likewise.
20817         (legitimize_pic_address): Likewise.
20818         (legitimize_tls_address): Likewise.
20819         (legitimize_pe_coff_symbol): Likewise.
20820         (output_pic_addr_const): Likewise.
20821         (construct_plt_address): Likewise.
20822         (ix86_expand_call): Likewise.
20823         (x86_output_mi_thunk): Likewise.
20824         (x86_function_profiler): Likewise.
20826 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
20828         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
20829         similar switch cases.
20830         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
20831         (aarch64_simd_mov_to_<mode>low): Delete.
20832         (aarch64_simd_mov_to_<mode>high): Delete.
20833         (move_lo_quad_<mode>): Add w<-r alternative.
20834         (aarch64_simd_move_hi_quad_<mode>): Likewise.
20835         (aarch64_simd_mov_from_*): Update type attribute.
20836         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
20837         statement.
20839 2013-05-13  Jan Hubicka  <jh@suse.cz>
20841         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
20842         * config/i386/i386.c (ix86_compute_frame_layout,
20843         ix86_expand_epilogue, emit_i387_cw_initialization,
20844         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
20845         ix86_local_alignment): Fix use of size/speed predicates.
20847 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
20849         PR tree-optimization/45216
20850         PR tree-optimization/57157
20851         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
20852         the (-Y) & (B - 1) variant if OP is |.
20853         * expmed.c (expand_shift_1): For rotations by const0_rtx just
20854         return shifted.  Use (-op1) & (prec - 1) as other_amount
20855         instead of prec - op1.
20857 2013-05-13  Martin Jambor  <mjambor@suse.cz>
20859         PR middle-end/42371
20860         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
20861         (ipa_constant_data): New type.
20862         (ipa_jump_func): Use ipa_constant_data to hold information about
20863         constant jump functions.
20864         (ipa_get_jf_constant): Adjust to jump function type changes.
20865         (ipa_get_jf_constant_rdesc): New function.
20866         (ipa_param_descriptor): New field controlled_uses.
20867         (ipa_get_controlled_uses): New function.
20868         (ipa_set_controlled_uses): Likewise.
20869         * ipa-ref.h (ipa_find_reference): Declare.
20870         * ipa-prop.c (ipa_cst_ref_desc): New type.
20871         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
20872         changes.
20873         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
20874         New parameter cs.  Adjust all callers.
20875         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
20876         (remove_described_reference): New function.
20877         (jfunc_rdesc_usable): Likewise.
20878         (try_make_edge_direct_simple_call): Decrement controlled use count,
20879         attempt to remove reference if it hits zero.
20880         (combine_controlled_uses_counters): New function.
20881         (propagate_controlled_uses): Likewise.
20882         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
20883         (ipa_edge_duplication_hook): Duplicate reference descriptions.
20884         (ipa_print_node_params): Print described use counter.
20885         (ipa_write_jump_function): Adjust to jump function type changes.
20886         (ipa_read_jump_function): New parameter CS, pass it to
20887         ipa_set_jf_constant.  Adjust caller.
20888         (ipa_write_node_info): Stream controlled use count
20889         (ipa_read_node_info): Likewise.
20890         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
20891         asserting.
20892         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
20893         count.  Remove cloning-added reference if it reaches zero.
20894         * ipa-ref.c (ipa_find_reference): New function.
20896 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
20898         * config/i386/i386.c (processor_target_table): Modified default
20899         alignment values for AMD BD and BT architectures.
20901 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
20903         * tree-vect-generic.c (uniform_vector_p): Move ...
20904         * tree.c (uniform_vector_p): ... here.
20905         * tree.h (uniform_vector_p): Declare it.
20906         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
20907         into a scalar.
20909 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
20911         PR tree-optimization/57230
20912         * tree-ssa-strlen.c (handle_char_store): Record length for
20913         array store from STRING_CST.
20915         PR tree-optimization/57230
20916         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
20917         check.
20919 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
20921         * config/epiphany/epiphany.c (epiphany_init): Check size of
20922         NUM_MODES_FOR_MODE_SWITCHING.
20923         (epiphany_expand_prologue):
20924         Remove CONFIG_REGNUM initial value handling code.
20925         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
20926         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
20927         (emit_set_fp_mode, epiphany_mode_after): Likewise.
20928         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
20929         Don't return 1 for FP_MODE_NONE.
20930         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
20931         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
20932         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
20933         * config/epiphany/epiphany.md (save_config): New pattern.
20935 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
20937         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
20939 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
20941         * config/i386/i386.md (memory): Handle sseishft1.
20942         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
20943         (*vec_extractv2di_1): Ditto.
20945 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
20947         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
20948         saved registers.
20950 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
20952         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
20953         Add mthumb/march=armv7-a multilib.
20954         Add mthumb/march=armv7-r multilib.
20955         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
20957 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
20959         * config/v850/t-rtems: Add more multilibs.
20961 2013-05-10  Richard Biener  <rguenther@suse.de>
20963         PR tree-optimization/57214
20964         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
20965         not propagate from SSA names that occur in abnormal PHI nodes.
20967 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
20969         * stor-layout.c (element_precision): New function.
20970         * machmode.h (element_precision): Declare it.
20971         * tree.c (build_minus_one_cst): New function.
20972         (element_precision): Likewise.
20973         * tree.h (build_minus_one_cst): Declare new function.
20974         (element_precision): Likewise.
20975         * fold-const.c (operand_equal_p): Use element_precision.
20976         (fold_binary_loc): Handle vector types.
20977         * convert.c (convert_to_integer): Use element_precision.
20978         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
20979         separately.
20981 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
20983         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
20984         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
20985         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
20986         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
20987         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
20988         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
20989         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
20990         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
20991         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
20992         (Uuw8): New constraints.
20993         (Usb4): Move into alphabetical order.
20994         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
20995         (sd8_operand, ub8_operand, uw8_operand): New predicates.
20996         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
20997         previously unnamed patterns.
20998         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
20999         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
21000         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
21001         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
21002         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
21003         of specific lengths.
21005 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
21007         * config/i386/i386.md (rotateinv): New code attr.
21008         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
21009         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
21010         roll $31, %eax, etc.
21012         PR tree-optimization/45216
21013         PR tree-optimization/57157
21014         * tree-ssa-forwprop.c (simplify_rotate): New function.
21015         (ssa_forward_propagate_and_combine): Call it.
21017 2013-05-10  Richard Biener  <rguenther@suse.de>
21019         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
21020         disable peeling when we version for aliasing.
21021         (vector_alignment_reachable_p): Honor explicit user alignment.
21022         (vect_supportable_dr_alignment): Likewise.
21023         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
21024         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
21025         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
21026         then peeling to arrange for the cost-model check to come first.
21028 2013-05-10  Alan Modra  <amodra@gmail.com>
21030         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
21031         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
21032         * configure: Regenerate.
21034 2013-05-10  Alan Modra  <amodra@gmail.com>
21036         PR target/55033
21037         * varasm.c (default_elf_select_section): Move !DECL_P check..
21038         (get_named_section): ..to here before calling get_section_name.
21039         Adjust assertion.
21040         (default_section_type_flags): Add DECL_P check.
21041         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
21042         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
21044 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
21046         * config/epiphany/epiphany.c (epiphany_expand_prologue):
21047         When using gen_stack_adjust_str with a register offset, add a
21048         REG_FRAME_RELATED_EXPR note.
21050 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
21052         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
21053         (*vec_extractv4si_zext_mem): Ditto.
21054         (*vec_extractv2di): Add 0->x and x->x alternatives.
21055         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
21056         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
21058 2013-05-09  Jason Merrill  <jason@redhat.com>
21060         N3639 C++1y VLA support
21061         * gimplify.c (gimplify_vla_decl): Don't touch an existing
21062         DECL_VALUE_EXPR.
21064         * tree.c (build_constructor_va): New.
21065         * tree.h: Declare it.
21067 2013-05-09  Martin Jambor  <mjambor@suse.cz>
21069         PR lto/57084
21070         * gimple-fold.c (canonicalize_constructor_val): Call
21071         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
21073 2013-05-09  Jan Hubicka  <jh@suse.cz>
21074             Richard Biener  <rguenther@suse.de>
21076         PR lto/54095
21077         * symtab.c (symtab_make_decl_local): Do not add private names.
21079 2013-05-09  Jan Hubicka  <jh@suse.cz>
21081         PR lto/54095
21082         * symtab.c (insert_to_assembler_name_hash): Handle clones.
21083         (unlink_from_assembler_name_hash): Likewise.
21084         (symtab_prevail_in_asm_name_hash, symtab_register_node,
21085         symtab_unregister_node, symtab_initialize_asm_name_hash,
21086         change_decl_assembler_name): Update.
21088 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
21090         * config/aarch64/aarch64.md: New movtf split.
21091         (*movtf_aarch64): Update.
21092         (aarch64_movdi_tilow): Handle TF modes and rename to
21093         aarch64_movdi_<mode>low.
21094         (aarch64_movdi_tihigh): Handle TF modes and rename to
21095         aarch64_movdi_<mode>high
21096         (aarch64_movtihigh_di): Handle TF modes and rename to
21097         aarch64_mov<mode>high_di
21098         (aarch64_movtilow_di): Handle TF modes and rename to
21099         aarch64_mov<mode>low_di
21100         (aarch64_movtilow_tilow): Remove spurious whitespace.
21101         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
21102         splits.
21103         (aarch64_print_operand): Update.
21105 2013-05-09  Alan Modra  <amodra@gmail.com>
21107         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
21108         powerpc64le.
21109         * configure: Regenerate.
21111 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
21113         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
21114         splitter preparation statements.
21115         * config/i386/sse.md (*vec_extract* splitters): Ditto.
21116         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
21117         adjust_address_nv.
21119 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21121         * gimple-ssa-strength-reduction.c (count_candidates): Change
21122         return value to int.
21123         (analyze_candidates_and_replace): Change type of length to int.
21125 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
21127         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
21128         (*vec_extract<mode>): Use VI12_128 mode iterator.
21129         (*vec_extract<mode>_mem): Ditto.
21130         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
21131         attribute.
21133 2013-05-08  Diego Novillo  <dnovillo@google.com>
21135         PR bootstrap/54659
21137         Revert:
21138         2012-08-17  Diego Novillo  <dnovillo@google.com>
21140         PR bootstrap/54281
21141         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
21142         * config.in: Regenerate.
21143         * configure: Regenerate.
21144         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
21146 2013-05-08  Jan Hubicka  <jh@suse.cz>
21148         PR lto/54095
21149         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
21150         * cgraph.h (symtab_node_base): Add unique_name.
21151         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
21152         input_overwrite_node, input_varpool_node): Stream unique_name.
21153         * cgraphclones.c (cgraph_create_virtual_clone,
21154         cgraph_function_versioning): Set unique_name.
21155         * ipa.c (function_and_variable_visibility): Set unique_name.
21157 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21159         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
21160         (alloc_cand_and_find_basis): Restrict conditional candidate
21161         processing to CAND_MULTs.
21163 2013-05-08  Jan Hubicka  <jh@suse.cz>
21165         PR lto/54095
21166         lto-symtab.c (lto_symtab_symbol_p): New function.
21167         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
21168         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
21169         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
21170         Skip static symbols.
21172 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
21174         PR tree-optimization/57200
21175         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
21176         Only call inform if the preceding warning_at returns true.
21178 2013-05-07  Han Shen  <shenhan@google.com>
21180         * cfgexpand.c (record_or_union_type_has_array_p): New function.
21181         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
21182         * common.opt (fstack-protector-strong): New option.
21183         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
21184         * doc/invoke.texi (Optimization Options): Document
21185         "-fstack-protector-strong".
21186         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
21188 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
21190         * config/mips/mips.c (mips_machine_reorg2): Return 0.
21192 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
21194         * ira.c (update_equiv_regs): Add insn having equiv memory even if
21195         it is not lhs of the insn.
21196         (setup_reg_equiv): Remove insn having equiv memory which it is not
21197         lhs of the insn.
21198         * lra-constraints.c (process_address): Try to improve generation
21199         code for address base + disp.
21200         (lra_constraints): Make correct the code for checking insn setting
21201         up backward equivalence.  Remove insn only if it is in the init
21202         insn list.
21203         * lra-eliminations.c (update_reg_eliminate): Change return value.
21204         (lra_eliminate): Use the result.
21206 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
21208         * config/i386/sse.md (ssescalarnummask): New mode attribute.
21209         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
21210         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
21211         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
21212         register target operands.
21213         (*vec_extractv8hi_sse2): New pattern.
21214         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
21215         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
21216         (*vec_extract<mode>_mem): New insn and split pattern.
21218 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
21220         * config/arm/arm.c (arm_asan_shadow_offset): New function.
21221         (TARGET_ASAN_SHADOW_OFFSET): Define.
21222         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
21223         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
21225 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21227         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
21228         (incr_vec_index): Return -1 if increment not found.
21229         (create_add_on_incoming_edge): Assert if increment not found.
21230         (record_increment): Limit number of increments recorded.
21231         (all_phi_incrs_profitable): Return false if an increment not found.
21232         (replace_profitable_candidates): Don't process increments that were
21233         not recorded.
21234         (analyze_candidates_and_replace): Limit size of incr_vec.
21236 2013-05-07  Richard Biener  <rguenther@suse.de>
21238         * calls.c (special_function_p): setjmp-like functions are leaf.
21239         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
21240         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
21242 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
21244         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
21245         (aarch64_simd_mov<mode>): New expander.
21246         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
21247         (aarch64_simd_mov_to_<mode>high): Likewise.
21248         (aarch64_simd_mov_from_<mode>low): Likewise.
21249         (aarch64_simd_mov_from_<mode>high): Likewise.
21250         (aarch64_dup_lane<mode>): Update.
21251         (aarch64_dup_lanedi): New instruction pattern.
21252         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
21253         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
21255 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21257         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
21258         (replace_mult_candidate): Remove unnecessary argument; remove
21259         unnecessary parameter from call to introduce_cast_before_cand.
21260         (replace_unconditional_candidate): Remove unnecessary parameter
21261         from call to replace_mult_candidate.
21262         (replace_conditional_candidate): Likewise.
21263         (insert_initializers): Use make_temp_ssa_name.
21264         (introduce_cast_before_cand): Remove unnecessary argument; use
21265         make_temp_ssa_name.
21266         (replace_one_candidate): Remove unnecessary argument; remove
21267         unnecessary parameter from calls to introduce_cast_before_cand.
21268         (replace_profitable_candidates): Remove unnecessary parameters
21269         from calls to replace_one_candidate.
21271 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21273         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
21274         phi def as possibly hiding a basis for a CAND_ADD whose operands
21275         have been commuted in the analysis.
21276         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
21278 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
21280         * config/aarch64/aarch64.md
21281         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
21282         shift value between 0-4.
21284 2013-05-07  Richard Biener  <rguenther@suse.de>
21286         * double-int.h (rshift): New overload.
21287         * double-int.c (rshift): New function.
21288         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
21289         (create_reference_ops_from_ref): Remove.
21290         (vn_reference_insert): Use shared ops for constructing the
21291         reference and copy it.
21293 2013-05-07  Richard Biener  <rguenther@suse.de>
21295         PR middle-end/57190
21296         * tree-eh.c (sink_clobbers): Properly propagate
21297         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
21299 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
21301         PR tree-optimization/57149
21302         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
21303         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
21304         collect_phi_def_edges, execute_late_warn_uninitialized): Use
21305         uninit_undefined_value_p instead of ssa_undefined_value_p.
21307         PR debug/57184
21308         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
21309         for modifier == EXPAND_INITIALIZER.
21311 2013-05-07  Anton Blanchard  <anton@samba.org>
21313         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
21314         for powerpc64 little endian.
21315         * configure: Regenerate.
21317 2013-05-06  Graham Stott  <grahams@btinternet.com>
21319         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
21320         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
21321         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
21322         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
21324 2013-05-06  Graham Stott  <grahams@btinternet.com>
21326         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
21327         codes which allow non-lvalues.
21329 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
21331         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
21332         components are all 1s.
21333         (integer_minus_onep): New function.
21334         * tree.h (integer_minus_onep): Declare it.
21335         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
21336         integer_minus_onep instead of integer_all_onesp.
21338 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
21340         PR target/52933
21341         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
21342         variations of these patterns.
21344 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
21346         * config/i386/i386.md (isa): Add x64_sse4 member.
21347         (enabled): Handle x64_sse4.
21348         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
21349         instruction for 64bit SSE4_1 targets.  Update insn attributes.
21350         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
21351         instruction for SSE4_1 targets.  Update insn attributes.
21352         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
21353         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
21354         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
21355         const_1 selector.
21356         (*vec_extractv4si): Rename from *sse4_1_pextrd.
21357         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
21358         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
21360 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
21362         PR target/57108
21363         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
21365 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
21367         * final.c (do_assembler_dialects): Don't handle curly braces and
21368         vertical bar escaped by % as dialect delimiters.
21369         (output_asm_insn): Print curly braces and vertical bar if escaped
21370         by % and ASSEMBLER_DIALECT defined.
21371         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
21372         * doc/tm.texi: Regenerated.
21374 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
21376         * config/mips/mips.c: Include tree-pass.h.
21377         (mips_reorg): Split in pre- and post-dbr_schedule parts.
21378         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
21379         (pass_mips_machine_reorg2): New machine specific pass.
21380         (insert_pass_mips_machine_reorg2): New pass plugin definition.
21381         (mips_option_override): Register the new pass.
21382         * rtl.h (cleanup_barriers): Remove prototype.
21383         (dbr_schedule): Likewise.
21384         * jump.c (cleanup_barriers): Make static.
21385         * reorg.c (dbr_schedule): Likewise.
21387 2013-05-06  Richard Biener  <rguenther@suse.de>
21389         PR tree-optimization/57185
21390         * tree-parloops.c (add_field_for_reduction): Handle anonymous
21391         SSA names properly.
21393 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
21395         PR target/57106
21396         * config/i386/i386.c (add_parameter_dependencies): Add dependence
21397         between "first_arg" and "insn", not "last" and "insn".
21399 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21401         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
21402         (find_candidates_in_block): Re-enable slsr_process_phi.
21403         (create_phi_basis): Fix double counting of candidate adjustment.
21405 2013-05-06  Richard Biener  <rguenther@suse.de>
21407         PR middle-end/57147
21408         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
21409         the edge is also fallthru, preserve it and just clear the
21410         abnormal flag.
21411         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
21412         also complex, preserve that and just clear the fallthru flag.
21413         * tree-inline.c (update_ssa_across_abnormal_edges): Also
21414         update virtual operands.
21416 2013-05-06  Alan Modra  <amodra@gmail.com>
21418         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
21419         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
21420         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
21421         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
21422         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
21423         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
21425 2013-05-06  Alan Modra  <amodra@gmail.com>
21427         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
21428         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
21429         (DEFAULT_ASM_ENDIAN): Define.
21430         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
21431         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
21432         Update -K PIC clause from sysv4.h.
21433         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
21434         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
21436 2013-05-06  Alan Modra  <amodra@gmail.com>
21438         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
21439         twice for little-endian.
21440         (ashrdi3_no_power, ashrdi3): Support little-endian.
21442 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
21444         PR target/55303
21445         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
21446         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
21447         related expanders.
21448         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
21449         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
21450         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
21451         New predicates.
21453 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
21454             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21456         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
21457         * config/pa/pa.opt: Make mbig-switch a no-op.
21458         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
21459         (CASE_VECTOR_MODE): Always return SImode.
21460         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
21461         for the !TARGET_BIG_SWITCH case.
21462         * config/pa/pa-linux.h: Likewise.
21463         * config/pa/pa-openbsd.h: Likewise.
21464         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
21465         * config/pa/pa.md (short_jump): Remove define_insn.
21466         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
21467         (casesi0): Remove define_insn.
21468         (type): Remove btable_branch.
21469         (pa_combine_type): Likewise.
21470         (in_nullified_branch_delay): Likewise.
21471         (in_call_delay): Likewise.
21472         (define_delay): Likewise.
21473         (define_insn_reservation "Z3"): Likewise.
21474         (define_insn_reservation "Z4"): Likewise.
21475         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
21476         (pa_adjust_insn_length): Remove adjustment for btable branches.
21477         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
21478         and mno-big-switch
21480 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
21482         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
21483         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
21484         Add m->r,x alternatives.
21485         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
21486         splitters using SWI48x mode iterator.
21487         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
21488         TARGET_64BIT.  Add m->x alternative.
21489         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
21490         Add o->x alternative.  Enable for TARGET_SSE.
21491         (sse_storeq): Remove expander.
21492         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
21493         with memory input operand.
21494         (*vec_extractv2di_1 splitter): New.
21495         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
21496         * config/i386/i386.md (ssevecmodelower): New mode attribute.
21498 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
21500         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
21501         (INT_LOWPART): Delete.
21502         (extract_MB): Adjust.
21503         (extract_ME): Adjust.
21504         (print_operand): Adjust.
21506 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
21508         * config/rs6000/predicates.md (reg_or_add_cint_operand,
21509         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
21510         (reg_or_logical_cint_operand, easy_fp_constant,
21511         logical_const_operand): Delete "CONST_DOUBLE" case.
21512         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
21513         "HOST_BITS_PER_WIDE_INT == 64" test.
21514         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
21515         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
21516         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
21517         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
21518         test.
21519         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
21520         CONST_DOUBLE DImode/VOIDmode case.
21521         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
21522         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
21523         CONST_DOUBLE VOIDmode case.
21524         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
21525         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
21526         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
21527         Delete CONST_DOUBLE case.
21528         (splitters for mov FMOVE64 const_double): Delete
21529         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
21530         "HOST_BITS_PER_WIDE_INT >= 64" test.
21531         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
21532         case.
21533         (mov DI const_double): Delete.
21535 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
21537         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
21538         on op shows all bits zero in mode of a lowpart subreg, return zero.
21540 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
21542         PR target/57150
21543         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
21544         to save TFmode registers and DImode to save TImode registers for
21545         caller save operations.
21546         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
21547         mark being partially clobbered since they only use the first
21548         double word.
21550         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
21551         and TDmode only use the upper 64-bits of each VSX register.
21553 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21555         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
21556         (find_candidates_in_block): Disable slsr_process_phi.
21558 2013-05-03  Guozhi Wei  <carrot@google.com>
21560         * coverage.c (coverage_obj_init): Move the construction of gcov
21561         constructor to ...
21562         (build_init_ctor): ... here.
21564 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21566         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
21567         (slsr_cand_d): Redefine def_phi.
21568         (stride_status, phi_adjust_status, count_phis_status): New enums.
21569         (find_phi_def): New.
21570         (find_basis_for_base_expr): New.
21571         (find_basis_for_candidate): Handle hidden bases.
21572         (alloc_cand_and_find_basis): Handle phi candidates.
21573         (slsr_process_phi): New.
21574         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
21575         (create_mul_imm_cand): Likewise.
21576         (create_add_ssa_cand): Exclude phi base candidates.
21577         (create_add_imm_cand): Likewise.
21578         (slsr_process_cast): Likewise.
21579         (slsr_process_copy): Likewise.
21580         (find_candidates_in_block): Handle phi candidates.
21581         (dump_candidate): Likewise.
21582         (unconditional_cands): Delete.
21583         (unconditional_cands_with_known_stride_p): Delete.
21584         (phi_dependent_cand_p): New.
21585         (cand_increment): Handle phi-dependent candidates.
21586         (replace_dependent): Delete.
21587         (replace_mult_candidate): New.
21588         (replace_unconditional_candidate): New.
21589         (incr_vec_index): Move to avoid forward reference.
21590         (create_add_on_incoming_edge): New.
21591         (create_phi_basis): New.
21592         (replace_dependents): Delete.
21593         (replace_conditional_candidate): New.
21594         (phi_add_costs): New.
21595         (replace_uncond_cands_and_profitable_phis): New.
21596         (record_increment): Handle phi adjustments.
21597         (record_phi_increments): New.
21598         (record_increments): Handle phi adjustments.
21599         (phi_incr_cost): New.
21600         (lowest_cost_path): Handle phis.
21601         (total_savings): Likewise.
21602         (analyze_increments): Likewise.
21603         (ncd_with_phi): New.
21604         (ncd_of_cand_and_phis): New.
21605         (nearest_common_dominator_for_cands): Handle phi increments.
21606         (all_phi_incrs_profitable): New.
21607         (replace_profitable_candidates): Handle phi-dependent candidates.
21608         (analyze_candidates_and_replace): Likewise.
21610 2013-05-03  Teresa Johnson  <tejohnson@google.com>
21612         PR bootstrap/57154
21613         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
21614         do not exceed REG_BR_PROB_BASE.
21616 2013-05-03  Jeff Law  <law@redhat.com>
21618         PR tree-optimization/57144
21619         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
21620         operand of the condition will bit into the new type when eliminating
21621         a cast feeding a condition.
21623 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
21625         PR rtl-optimization/57130
21626         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
21627         of COMPARE as in_code to the recursive call if needed.
21629 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
21631         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
21632         (enabled): Handle new members.
21633         * config/i386/sse.md (*vec_concatv2si): Merge from
21634         *vec_concatv2si_sse2 and vec_concatv2si_sse.
21635         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
21637 2013-05-03  Joern Rennecke  <joern.rennecke@embecosm.com>
21639         PR tree-optimization/57027
21640         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
21641         for fnms opportunity, check we got the prerequisite kind
21642         of tree / gimple before using accessor functions.
21644 2013-05-03  Richard Biener  <rguenther@suse.de>
21646         * double-int.h (lshift): New overload without precision
21647         and arith argument.
21648         (operator *=, operator +=, operator -=): Move ...
21649         * double-int.c (operator *=, operator +=, operator -=): ... here
21650         and implement more efficiently.
21651         (mul_double_with_sign): Remove.
21652         (lshift_double): Adjust to take unsinged shift argument, push
21653         dispatching code to callers.
21654         (mul_double_wide_with_sign): Add early out for callers that
21655         are not interested in high parts or overflow.
21656         (lshift): New function.
21657         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
21658         dispatch code here.
21659         (lrotate, rrotate): Use logical shifts.
21660         * expr.c (get_inner_reference): Use lshift.
21661         * fixed-value.c (do_fixed_divide): Likewise.
21662         * tree-dfa.c (get_ref_base_and_extent): Likewise.
21663         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
21664         (indirect_refs_may_alias_p): Likewise.
21665         (stmt_kills_ref_p_1): Likewise.
21667 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
21669         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
21671 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
21673         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
21674         scalar form of FABD instruction.
21676 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
21678         * lra-constraints.c (process_alt_operands): Add checking alt
21679         number to choose the best alternative.
21681 2013-05-02  Richard Biener  <rguenther@suse.de>
21683         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
21684         bitmap and its handling.
21685         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
21687 2013-05-02  Richard Biener  <rguenther@suse.de>
21689         PR middle-end/57140
21690         * tree-inline.c (copy_loops): Properly handle removed loops.
21691         (copy_cfg_body): Mark destination loops for fixup if source
21692         loops needed fixup.
21694 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
21696         PR target/56732
21697         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
21698         generating simple_return for naked functions.
21700 2013-05-02  Martin Jambor  <mjambor@suse.cz>
21702         PR middle-end/56988
21703         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
21704         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
21705         flags match.
21706         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
21707         ipa_agg_replacement_value structures.
21708         (known_aggs_to_agg_replacement_list): Likewise.
21709         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
21710         (read_agg_replacement_chain): Likewise.
21711         (ipcp_transform_function): Also check that by_ref flags match.
21713 2013-05-02  Richard Biener  <rguenther@suse.de>
21715         * graphds.h (struct graph): Add obstack member.
21716         * graphds.c (new_graph): Initialize obstack and allocate
21717         vertices from it.
21718         (add_edge): Allocate edge from the obstack.
21719         (free_graph): Free the obstack instead of all edges and vertices.
21721 2013-05-02  Teresa Johnson  <tejohnson@google.com>
21723         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
21724         divides.
21725         * cfg.c (update_bb_profile_for_threading): Ditto.
21726         * tree-inline.c (copy_bb): Ditto.
21727         (copy_edges_for_bb): Ditto.
21728         (initialize_cfun): Ditto.
21729         (copy_cfg_body): Ditto.
21730         (expand_call_inline): Ditto.
21731         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
21732         (estimate_node_size_and_time): Ditto.
21733         (inline_merge_summary): Ditto.
21734         * cgraphclones.c (cgraph_clone_edge): Ditto.
21735         (cgraph_clone_node): Ditto.
21736         * sched-rgn.c (compute_dom_prob_ps): Ditto.
21737         (compute_trg_info): Ditto.
21739 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
21741         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
21742         S reg when fp attribute set.
21743         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
21745 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
21747         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
21748         New pattern.
21749         (*and_one_cmplsi3_compare0_uxtw): Likewise.
21750         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
21751         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
21753 2013-05-02  Richard Biener  <rguenther@suse.de>
21755         * tree-scalar-evolution.c (scev_info_hasher): Remove.
21756         (struct instantiate_cache_entry): New type.
21757         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
21758         (struct instantiate_cache_type): New type.
21759         (set_instantiated_value, get_instantiated_value): Remove.
21760         (get_instantiated_value_entry): New function.
21761         (instantiate_scev_name): Use the new cache and adjust.
21762         (instantiate_scev_poly): Adjust.
21763         (instantiate_scev_binary): Likewise.
21764         (instantiate_array_ref): Likewise.
21765         (instantiate_scev_convert): Likewise.
21766         (instantiate_scev_not): Likewise.
21767         (instantiate_scev_3): Likewise.
21768         (instantiate_scev_2): Likewise.
21769         (instantiate_scev_r): Likewise.
21770         (instantiate_scev): Likewise.
21771         (resolve_mixers): Likewise.
21773 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
21775         PR target/57091
21776         * lra-constraints.c (best_small_class_operands_num): Remove.
21777         (process_alt_operands): Remove small_class_operands_num.  Take
21778         small classes operands into losers and only if the operand is not
21779         matched.  Modify debugging output.
21780         (curr_insn_transform): Remove best_small_class_operands_num.
21781         Print insn name.
21783 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
21785         * config/aarch64/aarch64-builtins.c
21786         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
21787         * config/aarch64/aarch64-simd-builtins.def
21788         (reduc_splus_): Add new modes.
21789         (reduc_uplus_): New.
21790         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
21791         (reduc_uplus_v4sf): Likewise.
21792         (reduc_splus_v4sf): Likewise.
21793         (aarch64_addv<mode>): Likewise.
21794         (reduc_uplus_<mode>): Likewise.
21795         (reduc_splus_<mode>): Likewise.
21796         (aarch64_addvv2di): Likewise.
21797         (reduc_uplus_v2di): Likewise.
21798         (reduc_splus_v2di): Likewise.
21799         (aarch64_addvv2si): Likewise.
21800         (reduc_uplus_v2si): Likewise.
21801         (reduc_splus_v2si): Likewise.
21802         (reduc_<sur>plus_<mode>): New.
21803         (reduc_<sur>plus_v2di): Likewise.
21804         (reduc_<sur>plus_v2si): Likewise.
21805         (reduc_<sur>plus_v4sf): Likewise.
21806         (aarch64_addpv4sf): Likewise.
21807         * config/aarch64/arm_neon.h
21808         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
21809         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
21810         add UNSPEC_SADDV, UNSPEC_UADDV.
21811         (SUADDV): New.
21812         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
21814 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
21816         * config/aarch64/arm_neon.h
21817         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
21819 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
21821         * config/aarch64/aarch64-builtins
21822         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
21824 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
21826         * config/aarch64/aarch64-simd-builtins.def
21827         (reduc_smax_): New.
21828         (reduc_smin_): Likewise.
21829         (reduc_umax_): Likewise.
21830         (reduc_umin_): Likewise.
21831         (reduc_smax_nan_): Likewise.
21832         (reduc_smin_nan_): Likewise.
21833         (fmax): Remove.
21834         (fmin): Likewise.
21835         (smax): Update for V2SF, V4SF and V2DF modes.
21836         (smin): Likewise.
21837         (smax_nan): New.
21838         (smin_nan): Likewise.
21839         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
21840         (<su><maxmin><mode>3): ...This, refactor.
21841         (s<maxmin><mode>3): New.
21842         (<maxmin_uns><mode>3): Likewise.
21843         (reduc_<maxmin_uns>_<mode>): Refactor.
21844         (reduc_<maxmin_uns>_v4sf): Likewise.
21845         (reduc_<maxmin_uns>_v2si): Likewise.
21846         (aarch64_<fmaxmin><mode>: Remove.
21847         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
21848         new builtin names.
21849         (vmin<q>_f<32,64>): Likewise.
21850         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
21851         (FMAXMIN): New.
21852         (su): Add mappings for smax, smin, umax, umin.
21853         (maxmin): New.
21854         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
21855         (FMAXMIN): Rename as...
21856         (FMAXMIN_UNS): ...This.
21857         (maxminv): Remove.
21858         (fmaxminv): Likewise.
21859         (fmaxmin): Likewise.
21860         (maxmin_uns): New.
21861         (maxmin_uns_op): Likewise.
21863 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
21865         * config/aarch64/arm_neon.h
21866         (vac<ge, gt><sd>_f<32, 64>): Rename to...
21867         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
21868         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
21870 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
21872         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
21873         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
21875 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
21877         * config/aarch64/aarch64-simd.md
21878         (vcond<mode>_internal): Handle special cases for constant masks.
21879         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
21880         (vcondu<mode><mode>): Likewise.
21881         (vcond<v_cmp_result><mode>): New.
21883 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
21885         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
21886         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
21887         * config/aarch64/aarch64-simd-builtins.def
21888         (cmeq): Update to BUILTIN_VALLDI.
21889         (cmgt): Likewise.
21890         (cmge): Likewise.
21891         (cmle): Likewise.
21892         (cmlt): Likewise.
21893         * config/aarch64/arm_neon.h
21894         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
21895         to builtins or C as appropriate.
21897 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
21899         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
21900         (cmgeu): ...This.
21901         (cmhi): Rename to...
21902         (cmgtu): ...This.
21903         * config/aarch64/aarch64-simd.md
21904         (simd_mode): Add SF.
21905         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
21906         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
21907         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
21908         (cstore<mode>_neg): ...This.
21909         * config/aarch64/iterators.md
21910         (VALLF): new.
21911         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
21912         (COMPARISONS): New.
21913         (UCOMPARISONS): Likewise.
21914         (optab): Add missing comparisons.
21915         (n_optab): New.
21916         (cmp_1): Likewise.
21917         (cmp_2): Likewise.
21918         (CMP): Likewise.
21919         (cmp): Remove.
21920         (VCMP_S): Likewise.
21921         (VCMP_U): Likewise.
21922         (V_cmp_result): Add DF, SF modes.
21923         (v_cmp_result): Likewise.
21924         (v): Likewise.
21925         (vmtype): Likewise.
21926         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
21928 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
21930         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
21931         define_insn to define_insn_and_split.
21932         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
21933         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
21934         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
21935         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
21936         (thumb2_negscc): Likewise.
21938 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
21940         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
21942 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
21944         * config/arm/thumb2.md: Remove trailing whitespaces.
21946 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
21948         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
21949         Use gen_int_mode rather than GEN_INT.
21951 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
21953         * value-prof.c (stream_in_histogram_value): Remove the strayed
21954         debug_gimple_stmt.
21956 2013-04-30  Richard Biener  <rguenther@suse.de>
21958         PR middle-end/57122
21959         * cfghooks.c (split_edge): Properly check for the loop latch edge.
21961 2013-04-30  Richard Biener  <rguenther@suse.de>
21963         PR middle-end/57107
21964         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
21966 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
21968         PR rtl-optimization/56957
21969         PR rtl-optimization/57105
21970         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
21971         variable.  Use just INSN_UID for determining whether an insn
21972         should be only disconnected from the insn stream.
21973         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
21975 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
21977         PR tree-optimization/57104
21978         * tsan.c (instrument_expr): Don't instrument accesses to
21979         DECL_HARD_REGISTER VAR_DECLs.
21981 2013-04-30  Richard Biener  <rguenther@suse.de>
21983         * function.h (loops_for_fn): New inline function.
21984         (set_loops_for_fn): Likewise.
21985         * cfgloop.h (place_new_loop): Add struct function parameter.
21986         (get_loop): Likewise.
21987         (get_loops): Likewise.
21988         (number_of_loops): Likewise.
21989         (fel_next): Adjust.
21990         (fel_init): Likewise.
21991         * cfg.c (get_loop_copy): Adjust.
21992         * cfgloop.c (flow_loops_dump): Likewise.
21993         (record_loop_exits): Likewise.
21994         (verify_loop_structure): Likewise.
21995         * cfgloopanal.c (mark_irreducible_loops): Likewise.
21996         (estimate_reg_pressure_cost): Likewise.
21997         (mark_loop_exit_edges): Likewise.
21998         * cfgloopmanip.c (place_new_loop): Likewise.
21999         (add_loop): Likewise.
22000         (duplicate_loop): Likewise.
22001         * graph.c (draw_cfg_nodes): Likewise.
22002         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
22003         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
22004         (extract_affine_chrec): Likewise.
22005         (build_scop_iteration_domain): Likewise.
22006         * graphite.c (graphite_initialize): Likewise.
22007         * ira-build.c (create_loop_tree_nodes): Likewise.
22008         (more_one_region_p): Likewise.
22009         (rebuild_regno_allocno_maps): Likewise.
22010         (mark_loops_for_removal): Likewise.
22011         (mark_all_loops_for_removal): Likewise.
22012         (remove_unnecessary_regions): Likewise.
22013         (ira_build): Likewise.
22014         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
22015         * loop-init.c (fix_loop_structure): Likewise.
22016         (gate_rtl_move_loop_invariants): Likewise.
22017         (gate_rtl_unswitch): Likewise.
22018         (gate_rtl_unroll_and_peel_loops): Likewise.
22019         (rtl_doloop): Likewise.
22020         * lto-streamer-in.c (input_cfg): Likewise.
22021         * lto-streamer-out.c (output_cfg): Likewise.
22022         * modulo-sched.c (sms_schedule): Likewise.
22023         * predict.c (tree_estimate_probability): Likewise.
22024         (tree_estimate_probability_driver): Likewise.
22025         (estimate_loops): Likewise.
22026         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
22027         (move_sese_region_to_fn): Likewise.
22028         (debug_loop_num): Likewise.
22029         * tree-chrec.c (chrec_evaluate): Likewise.
22030         (hide_evolution_in_other_loops_than_loop): Likewise.
22031         (chrec_component_in_loop_num): Likewise.
22032         (reset_evolution_in_loop): Likewise.
22033         (evolution_function_is_invariant_rec_p): Likewise.
22034         * tree-if-conv.c (main_tree_if_conversion): Likewise.
22035         * tree-inline.c (copy_loops): Likewise.
22036         (copy_cfg_body): Likewise.
22037         (tree_function_versioning): Likewise.
22038         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
22039         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
22040         Likewise.
22041         (add_to_evolution_1): Likewise.
22042         (scev_const_prop): Likewise.
22043         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
22044         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
22045         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
22046         (tree_ssa_lim_initialize): Likewise.
22047         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
22048         (verify_loop_closed_ssa): Likewise.
22049         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
22050         (tree_ssa_loop_im): Likewise.
22051         (tree_ssa_loop_unswitch): Likewise.
22052         (tree_vectorize): Likewise.
22053         (check_data_deps): Likewise.
22054         (tree_ssa_loop_ivcanon): Likewise.
22055         (tree_ssa_loop_bounds): Likewise.
22056         (tree_complete_unroll): Likewise.
22057         (tree_complete_unroll_inner): Likewise.
22058         (tree_parallelize_loops): Likewise.
22059         (tree_ssa_loop_prefetch): Likewise.
22060         (tree_ssa_loop_ivopts): Likewise.
22061         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
22062         * tree-vectorizer.c (vectorize_loops): Likewise.
22064 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
22066         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
22067         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
22068         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
22069         with EABI_LINK_SPEC.
22071 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
22073         PR target/44578
22074         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
22075         alternative.
22077 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
22079         PR target/57097
22080         * lra-constraints.c (process_alt_operands): Discourage a bit more
22081         using memory for pseudos.  Print cost dump for alternatives.
22082         Modify cost values for conflicts with early clobbers.
22083         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
22085 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
22087         PR target/57098
22088         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
22090 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
22092         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
22093         from/to S register.
22094         (movdi_aarch64): Support LDR/STR from/to D register.
22096 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
22098         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
22099         or higher by default.
22101 2013-04-29  Richard Biener  <rguenther@suse.de>
22103         PR middle-end/57075
22104         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
22105         even if not adding abnormal edges for calls that can make
22106         abnormal gotos.
22108 2013-04-29  Richard Biener  <rguenther@suse.de>
22110         PR middle-end/57103
22111         * tree-cfg.c (move_stmt_op): Fix condition under which to update
22112         TREE_BLOCK.
22113         (move_stmt_r): Remove redundant checking.
22115 2013-04-29  Teresa Johnson  <tejohnson@google.com>
22117         PR bootstrap/57077
22118         * basic-block.h (apply_scale): New function.
22119         (apply_probability): Use apply_scale.
22120         * gimple-streamer-in.c (input_bb): Ditto.
22121         * lto-streamer-in.c (input_cfg): Ditto.
22122         * lto-cgraph.c (merge_profile_summaries): Ditto.
22123         * tree-optimize.c (execute_fixup_cfg): Ditto.
22124         * tree-inline.c (copy_bb): Update comment to use apply_scale.
22125         (copy_edges_for_bb): Ditto.
22126         (copy_cfg_body): Ditto.
22128 2013-04-29  Tom de Vries  <tom@codesourcery.com>
22130         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
22131         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
22132         (tail_merge_optimize): Handle current_loops == NULL.
22134 2013-04-26  Jeff Law  <law@redhat.com>
22136         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
22137         (simplify_cond_using_ranges): Generalize code to simplify
22138         COND_EXPRs where one argument is a constant and the other
22139         is an SSA_NAME created by an integral type conversion.
22141 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22143         * config/arm/arm.md (store_minmaxsi): Use only when
22144         optimize_insn_for_size_p.
22146 2013-04-29  Christian Bruel  <christian.bruel@st.com>
22148         PR target/57108
22149         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
22151 2013-04-29  Richard Biener  <rguenther@suse.de>
22153         PR middle-end/57089
22154         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
22155         loop tree make sure to schedule a fixup for the child as well.
22156         (expand_omp_for_generic): Properly add loops.
22157         (expand_omp_for_static_nochunk): Likewise.
22158         (expand_omp_for_static_chunk): Likewise.
22159         (expand_omp_for): For the degenerate case fixup loops.
22160         (expand_omp_sections): Fix default bb placement in loops.
22161         (expand_omp_atomic_pipeline): Properly add loops.
22163 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22165         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
22167 2013-04-29  Tom de Vries  <tom@codesourcery.com>
22169         * tree-ssa-tail-merge.c: Update header comment.
22171 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
22173         * config/aarch64/arm_neon.h
22174         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
22175         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
22176         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
22177         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
22178         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
22179         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
22180         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
22181         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
22183 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
22185         * config/aarch64/aarch64-simd.md
22186         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
22187         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
22188         fix_trunc, fixuns_trunc.
22189         (ftrunc<VDQF:mode>2): New.
22190         * config/aarch64/iterators.md (optab): Add fix, fixuns.
22191         (fix_trunc_optab): New.
22193 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
22195         * config/aarch64/aarch64-builtins.c
22196         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
22197         iceilf, lround, iroundf.
22199 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
22201         PR target/54349
22202         * config/i386/i386.h (enum ix86_tune_indices)
22203         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
22204         New, split from X86_TUNE_INTER_UNIT_MOVES.
22205         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
22206         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
22207         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
22208         (TARGET_INTER_UNIT_MOVES): Remove.
22209         * config/i386/i386.c (initial_ix86_tune_features): Update.
22210         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
22211         (ix86_expand_convert_uns_didf_sse): Use
22212         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
22213         (ix86_expand_vector_init_one_nonzero): Ditto.
22214         (ix86_expand_vector_init_interleave): Ditto.
22215         (inline_secondary_memory_needed): Return true for moves from SSE class
22216         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
22217         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
22218         * config/i386/constraints.md (Yi, Ym): Depend on
22219         TARGET_INTER_UNIT_MOVES_TO_VEC.
22220         (Yj, Yn): New constraints.
22221         * config/i386/i386.md (*movdi_internal): Change constraints of
22222         operand 1 from Yi to Yj and from Ym to Yn.
22223         (*movsi_internal): Ditto.
22224         (*movdf_internal): Ditto.
22225         (*movsf_internal): Ditto.
22226         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
22227         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
22228         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
22229         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
22230         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
22231         * config/i386/sse.md (movdi_to_sse): Ditto.
22232         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
22233         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
22234         TARGET_INTER_UNIT_MOVES.
22235         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
22236         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
22237         instead of TARGET_INTER_UNIT_MOVES.
22238         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
22239         operand 1 from Yi to Yj and from Ym to Yn.
22241 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
22243         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
22244         (float_truncate_hi_): Likewise.
22245         (float_extend_lo_): Likewise.
22246         (float_truncate_lo_): Likewise.
22247         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
22248         (aarch64_float_extend_lo_v2df): Likewise.
22249         (vec_unpacks_hi_v4sf): Likewise.
22250         (aarch64_float_truncate_lo_v2sf): Likewise.
22251         (aarch64_float_truncate_hi_v4sf): Likewise.
22252         (vec_pack_trunc_v2df): Likewise.
22253         (vec_pack_trunc_df): Likewise.
22255 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
22257         * config/aarch64/aarch64-builtins.c
22258         (aarch64_fold_builtin): Fold float conversions.
22259         * config/aarch64/aarch64-simd-builtins.def
22260         (floatv2si, floatv4si, floatv2di): New.
22261         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
22262         * config/aarch64/aarch64-simd.md
22263         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
22264         * config/aarch64/iterators.md (FLOATUORS): New.
22265         (optab): Add float, floatuns.
22266         (su_optab): Likewise.
22268 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
22270         * config/aarch64/aarch64-builtins.c
22271         (aarch64_builtin_vectorized_function): Use new names for
22272         fcvt builtins.
22273         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
22274         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
22275         (fcvtzu): Split as...
22276         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
22277         (fcvtas): Split as...
22278         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
22279         (fcvtau): Split as...
22280         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
22281         (fcvtps): Split as...
22282         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
22283         (fcvtpu): Split as...
22284         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
22285         (fcvtms): Split as...
22286         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
22287         (fcvtmu): Split as...
22288         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
22289         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
22290         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
22291         (lfrintnusf, lfrintnudf): Likewise.
22292         * config/aarch64/aarch64-simd.md
22293         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
22294         define_insn.
22295         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
22296         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
22297         (fcvt_pattern): Likewise.
22299 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
22301         * config/aarch64/aarch64-simd.md
22302         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
22303         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
22305 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
22307         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
22308         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
22309         (vrnd<a,m,n,p>_f32): Implement using builtins.
22310         (vrnd<i,x><q>_f<32, 64>): New.
22312 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
22314         * config/aarch64/aarch64-builtins.c
22315         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
22316         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
22317         (frintz): Rename to...
22318         (btrunc): ...this.
22319         (frintp): Rename to...
22320         (ceil): ...this.
22321         (frintm): Rename to...
22322         (floor): ...this.
22323         (frinti): Rename to...
22324         (nearbyint): ...this.
22325         (frintx): Rename to...
22326         (rint): ...this.
22327         (frinta): Rename to...
22328         (round): ...this.
22329         * config/aarch64/aarch64-simd.md
22330         (aarch64_frint<frint_suffix><mode>): Delete.
22331         (<frint_pattern><mode>2): Convert to insn.
22332         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
22333         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
22334         (frint_pattern): Likewise.
22335         (frint_suffix): Likewise.
22337 2013-04-29  Richard Biener  <rguenther@suse.de>
22339         PR tree-optimization/57081
22340         * loop-init.c: Include tree-flow.h.
22341         (loop_optimizer_finalize): Free number of iteration estimates.
22342         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
22344 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
22346         PR tree-optimization/57083
22347         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
22348         non-singleton shift count range, zero extend low_bound for uns case.
22350         * config/i386/predicates.md (general_vector_operand): New predicate.
22351         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
22352         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
22353         if they aren't nonimmediate operands.  If their original values
22354         satisfy const_vector_equal_evenodd_p, don't shift them.
22355         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
22356         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
22357         if not nonimmediate_operand.
22358         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
22359         instead of register_operand.
22360         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
22362 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
22364         * stor-layout.c (finalize_size_functions): Allocate a structure and
22365         reset cfun before dumping the functions.
22367 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
22369         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
22371         PR target/56866
22372         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
22373         use xop_pmacsdqh if uns_p.
22374         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
22375         the immediate rotate count.
22377 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
22379         * rtl.h (struct rtx_def): Add comment for field jump.
22380         (LRA_SUBREG_P): New macro.
22381         * recog.c (register_operand): Check LRA_SUBREG_P.
22382         * lra.c (lra): Add note at the end of RTL code. Align non-empty
22383         stack frame.
22384         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
22385         (lra_final_code_change): Skip subreg change for operators.
22386         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
22387         if there are no operand changes.
22388         * lra-constraints.c (curr_insn_set): New.
22389         (match_reload): Set LRA_SUBREG_P.
22390         (emit_spill_move): Ditto.
22391         (check_and_process_move): Use curr_insn_set. Process only single
22392         set insns.  Don't initialize sec_mem_p and change_p.
22393         (simplify_operand_subreg): Use LRA_SUBREG_P.
22394         (reg_in_class_p): New function.
22395         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
22396         of #ifdef.  Add code to remove cycling.
22397         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
22398         non-null disp.  Reload inner instead of disp when base and index
22399         are null.  Try to put lo_sum into register.
22400         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
22401         (check_and_process_move): Move code for move cost check to
22402         simple_move_p.  Remove equiv_substitution.
22403         (simple_move_p): New function.
22404         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
22405         curr_insn_set.  Call check_and_process_move only for single set
22406         insns.  Use the new function.  Move call of check_and_process_move
22407         after operand equiv substitution and address process.
22409 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
22411         PR go/57045
22412         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
22413         with nonlocal goto receivers or returns twice calls, ignore
22414         unininitialized values from abnormal edges to nl goto receiver
22415         or returns twice call.
22417 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
22419         PR tree-optimization/57051
22420         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
22421         and VEC_RSHIFT_EXPR if shift count is a multiple of element
22422         bitsize.
22424 2013-04-26  Richard Biener  <rguenther@suse.de>
22426         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
22427         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
22428         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
22429         (fixup_loop_arrays_after_move): New function.
22430         (move_sese_region_to_fn): Properly outline the loop tree parts
22431         of the SESE region.
22433 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
22435         * config/i386/i386.md (type, unit): Fix long lines.
22437 2013-04-26  Richard Biener  <rguenther@suse.de>
22439         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
22440         (lto-streamer-out.o): Likewise.
22441         * cfgloop.c (init_loops_structure): Export, add struct function
22442         argument and adjust.
22443         (flow_loops_find): Adjust.
22444         * cfgloop.h (enum loop_estimation): Add EST_LAST.
22445         (init_loops_structure): Declare.
22446         * lto-streamer-in.c: Include cfgloop.h.
22447         (input_cfg): Input the loop tree.
22448         * lto-streamer-out.c: Include cfgloop.h.
22449         (output_cfg): Output the loop tree.
22450         (output_struct_function_base): Do not drop PROP_loops.
22452 2013-03-26  Richard Biener  <rguenther@suse.de>
22454         * tree-cfg.c (execute_build_cfg): Build the loop tree.
22455         (pass_build_cfg): Provide PROP_loops.
22456         (move_sese_region_to_fn): Remove loops that are outlined into fn
22457         for now.
22458         * tree-inline.c: Include cfgloop.h.
22459         (initialize_cfun): Do not drop PROP_loops.
22460         (copy_loops): New function.
22461         (copy_cfg_body): Copy loop structure.
22462         (tree_function_versioning): Initialize destination loop tree.
22463         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
22464         (pass_parallelize_loops): Do IL verification.
22465         * loop-init.c (loop_optimizer_init): Fixup loops if required.
22466         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
22467         the CFG make sure we fixup loops as well.
22468         * tree-ssa-tail-merge.c: Include cfgloop.h.
22469         (replace_block_by): When merging loop latches mark loops for fixup.
22470         * lto-streamer-out.c (output_struct_function_base): Drop
22471         PROP_loops for now.
22472         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
22473         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
22474         * ipa-split.c: Include cfgloop.h.
22475         (split_function): Add the new return block to the loop tree root.
22476         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
22477         whether we have removed the forwarder block.
22478         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
22479         * cfgloop.h (place_new_loop): Declare.
22480         * cfgloopmanip.c (place_new_loop): Export.
22481         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
22482         (tree-switch-conversion.o): Likewise.
22483         (tree-complex.o): Likewise.
22484         (tree-inline.o): Likewise.
22485         (tree-ssa-tailmerge.o): Likewise.
22486         (ipa-split.o): Likewise.
22487         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
22488         (tree-ssa-copy.o): Likewise.
22489         * tree-switch-conversion.c: Include cfgloop.h
22490         (process_switch): If we emit a bit-test cascade, schedule loops
22491         for fixup.
22492         * tree-complex.c: Include cfgloop.h.
22493         (expand_complex_div_wide): Properly add new basic-blocks to loops.
22494         * asan.c: Include cfgloop.h.
22495         (create_cond_insert_point): Properly add new basic-blocks to
22496         loops, schedule loop fixup.
22497         * cfgloop.c (verify_loop_structure): Check that looks are not
22498         marked for fixup.
22499         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
22500         to loops.
22501         (expand_omp_for_generic): Likewise.
22502         (expand_omp_sections): Likewise.
22503         (expand_omp_atomic_pipeline): Schedule loops for fixup.
22504         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
22505         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
22506         is initialized, not when loops are present.
22507         * tree-parloops.c (parallelize_loops): Remove checking here.
22508         * passes.c (init_optimization_passes): Schedule a copy-propagation
22509         pass before complete unrolling of inner loops.
22511 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
22513         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
22514         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
22515         (colorize_init): Add argument to _WIN32 version.
22516         * toplev.c: Include diagnostic-color.h.
22517         (process_options): Default to -fdiagnostics-color=auto if
22518         GCC_COLORS env var is in the environment.
22519         * common.opt (fdiagnostics-color=): Add Var and Init.
22520         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
22521         env var is in the environment, the default is auto rather than never.
22523         * diagnostic.h (file_name_as_prefix): Add context argument.
22524         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
22525         the string as locus.
22526         * langhooks.c (lhd_print_error_function): Adjust caller.
22528 2013-04-25  Lawrence Crowl  <crowl@google.com>
22530         * var-tracking.c (shared_hash_def::htab):
22531         Change type to hash_table.  Update dependent calls and types.
22533 2013-04-25  Lawrence Crowl  <crowl@google.com>
22535         * Makefile.in: Update as needed below.
22537         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
22538         Move declaration to after the type's method definitons.
22540         * attribs.c (htab_t scoped_attributes::attribute_hash):
22541         Change type to hash_table.  Update dependent calls and types.
22543         * bitmap.c (htab_t bitmap_desc_hash):
22544         Change type to hash_table.  Update dependent calls and types.
22546         * cselib.c (htab_t cselib_hash_table):
22547         Change type to hash_table.  Update dependent calls and types.
22549         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
22550         (hash_string_slot_node): Move implementation into lto-streamer.h
22551         struct string_slot_hasher.
22552         (eq_string_slot_node): Likewise.
22554         * data-streamer-out.c: Update output_block::string_hash_table
22555         dependent calls and types.
22557         * dwarf2cfi.c (htab_t trace_index):
22558         Change type to hash_table.  Update dependent calls and types.
22560         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
22561         Change type to hash_table.  Update dependent calls and types.
22562         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
22563         (htab_t optimize_external_refs::map): Likewise.
22564         (htab_t output_comp_unit::extern_map): Likewise.
22565         (htab_t output_comdat_type_unit::extern_map): Likewise.
22566         (htab_t output_macinfo::macinfo_htab): Likewise.
22567         (htab_t optimize_location_lists::htab): Likewise.
22568         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
22570         * except.c (htab_t ehspec_hash_type):
22571         Change type to hash_table.  Update dependent calls and types.
22572         (assign_filter_values::ttypes): Likewise.
22573         (assign_filter_values::ehspec): Likewise.
22574         (sjlj_assign_call_site_values::ar_hash): Likewise.
22575         (convert_to_eh_region_ranges::ar_hash): Likewise.
22577         * gcse.c (htab_t pre_ldst_table):
22578         Change type to hash_table.  Update dependent calls and types.
22580         * ggc-common.c (htab_t saving_htab):
22581         Change type to hash_table.  Update dependent calls and types.
22582         (htab_t loc_hash): Likewise.
22583         (htab_t ptr_hash): Likewise.
22584         (call_count): Rename ggc_call_count.
22585         (call_alloc): Rename ggc_call_alloc.
22586         (loc_descriptor): Rename make_loc_descriptor.
22587         (add_statistics): Rename ggc_add_statistics.
22589         * ggc-common.c (saving_htab):
22590         Change type to hash_table.  Update dependent calls and types.
22592         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
22593         (push_gimplify_context): Likewise.
22594         (pop_gimplify_context): Likewise.
22595         (struct gimple_temp_hash_elt): Added.
22596         (struct gimplify_hasher): Likewise.
22597         (struct gimplify_ctx.temp_htab):
22598         Change type to hash_table.  Update dependent calls and types.
22600         * gimple-fold.c: Include gimplify-ctx.h.
22602         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
22603         Change type to hash_table.  Update dependent calls and types.
22604         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
22605         avoid potential global name collision.
22607         * gimplify.c: Include gimplify-ctx.h.
22608         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
22609         (htab_t gimplify_ctx::temp_htab):
22610         Update dependent calls and types for new type hash_table.
22611         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
22612         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
22614         * gimplify-ctx.h: New.
22615         (struct gimple_temp_hash_elt): Move from gimplify.c.
22616         (class gimplify_hasher): New.
22617         (struct gimplify_ctx): Move from gimple.h.
22618         (htab_t gimplify_ctx::temp_htab):
22619         Change type to hash_table.  Update dependent calls and types.
22621         * graphite-clast-to-gimple.c: Include graphite-htab.h.
22622         (htab_t ivs_params::newivs_index):
22623         Change type to hash_table.  Update dependent calls and types.
22624         (htab_t ivs_params::params_index): Likewise.
22625         (htab_t print_generated_program::params_index): Likewise.
22626         (htab_t gloog::newivs_index): Likewise.
22627         (htab_t gloog::params_index): Likewise.
22629         * graphite.c: Include graphite-htab.h.
22630         4htab_t graphite_transform_loops::bb_pbb_mapping):
22631         Change type to hash_table.  Update dependent calls and types.
22633         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
22634         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
22635         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
22637         * graphite-dependences.c: Include graphite-htab.h.
22638         (loop_is_parallel_p): Change hash table type of parameter.
22640         * graphite-htab.h: New.
22641         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
22642         (extern find_pbb_via_hash): Move from graphite-poly.h.
22643         (extern loop_is_parallel_p): Move from graphite-poly.h.
22644         (extern get_loop_body_pbbs): Move from graphite-poly.h.
22646         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
22647         (extern loop_is_parallel_p): Move to graphite-htab.h.
22648         (extern get_loop_body_pbbs): Move to graphite-htab.h.
22650         * haifa-sched.c (htab_t delay_htab):
22651         Change type to hash_table.  Update dependent calls and types.
22652         (htab_t delay_htab_i2): Likewise.
22654         * ira-color.c (htab_t allocno_hard_regs_htab):
22655         Change type to hash_table.  Update dependent calls and types.
22657         * ira-costs.c (htab_t cost_classes_htab):
22658         Change type to hash_table.  Update dependent calls and types.
22660         * loop-invariant.c (htab_t merge_identical_invariants::eq):
22661         Change type to hash_table.  Update dependent calls and types.
22663         * loop-iv.c (htab_t bivs):
22664         Change type to hash_table.  Update dependent calls and types.
22666         * loop-unroll.c (htab_t opt_info::insns_to_split):
22667         Change type to hash_table.  Update dependent calls and types.
22668         (htab_t opt_info::insns_with_var_to_expand): Likewise.
22670         * lto-streamer.h (struct string_slot): Move from data-streamer.h
22671         (struct string_slot_hasher): New.
22672         (htab_t output_block::string_hash_table):
22673         Change type to hash_table.  Update dependent calls and types.
22675         * lto-streamer-in.c (freeing_string_slot_hasher): New.
22676         (htab_t file_name_hash_table):
22677         Change type to hash_table.  Update dependent calls and types.
22679         * lto-streamer-out.c: Update output_block::string_hash_table dependent
22680         calls and types.
22682         * lto-streamer.c (htab_t tree_htab):
22683         Change type to hash_table.  Update dependent calls and types.
22685         * omp-low.c: Include gimplify-ctx.h.
22687         * passes.c (htab_t name_to_pass_map):
22688         Change type to hash_table.  Update dependent calls and types.
22689         (pass_traverse): Rename to passes_pass_traverse.
22691         * plugin.c (htab_t event_tab):
22692         Change type to hash_table.  Update dependent calls and types.
22694         * postreload-gcse.c (htab_t expr_table):
22695         Change type to hash_table.  Update dependent calls and types.
22696         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
22698         * sese.c (debug_rename_map_1): Make extern.
22699         (htab_t copy_bb_and_scalar_dependences::rename_map):
22700         Change type to hash_table.  Update dependent calls and types.
22702         * sese.h (extern debug_rename_map): Move to .c file.
22704         * store-motion.c (htab_t store_motion_mems_table):
22705         Change type to hash_table.  Update dependent calls and types.
22707         * trans-mem.c (htab_t tm_new_mem_hash):
22708         Change type to hash_table.  Update dependent calls and types.
22710         * tree-browser.c (htab_t TB_up_ht):
22711         Change type to hash_table.  Update dependent calls and types.
22713         * tree-cfg.c (htab_t discriminator_per_locus):
22714         Change type to hash_table.  Update dependent calls and types.
22716         * tree-complex.c: Include tree-hasher.h
22717         (htab_t complex_variable_components):
22718         Change type to hash_table.  Update dependent calls and types.
22720         * tree-eh.c (htab_t finally_tree):
22721         Change type to hash_table.  Update dependent calls and types.
22723         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
22724         struct int_tree_hasher.
22725         (extern int_tree_map_eq): Likewise.
22726         (uid_decl_map_hash): Removed.
22727         (extern decl_tree_map_eq): Likewise.
22729         * tree-hasher.h: New.
22730         (struct int_tree_hasher): New.
22731         (typedef int_tree_htab_type): New.
22733         * tree-inline.c: Include gimplify-ctx.h.
22735         * tree-mudflap.c: Include gimplify-ctx.h.
22737         * tree-parloops.c: Include tree-hasher.h.
22738         (htab_t eliminate_local_variables_stmt::decl_address):
22739         Change type to hash_table.  Update dependent calls and types.
22740         (htab_t separate_decls_in_region::decl_copies): Likewise.
22742         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
22743         Change type to hash_table.  Update dependent calls and types.
22745         * tree-sra.c (candidates):
22746         Change type to hash_table.  Update dependent calls and types.
22748         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
22749         in tree-flow.h.
22750         (int_tree_map_hash): Likewise.
22752         * tree-ssa-dom.c (htab_t avail_exprs):
22753         Change type to hash_table.  Update dependent calls and types.
22755         * tree-ssa-live.c (var_map_base_init::tree_to_index):
22756         Change type to hash_table.  Update dependent calls and types.
22758         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
22759         Change type to hash_table.  Update dependent calls and types.
22761         * tree-ssa-phiopt.c (seen_ssa_names):
22762         Change type to hash_table.  Update dependent calls and types.
22764         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
22765         Change type to hash_table.  Update dependent calls and types.
22767         * tree-ssa-uncprop.c (equiv):
22768         Change type to hash_table.  Update dependent calls and types.
22770 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
22772         PR rtl-optimization/57003
22773         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
22774         call note_stores with kill_clobbered_value callback again after
22775         killing regs_invalidated_by_call.
22777 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
22779         * config/aarch64/aarch64-simd.md
22780         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
22781         (aarch64_simd_bsl<mode>): Likewise.
22782         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
22784 2013-04-25  Marek Polacek  <polacek@redhat.com>
22786         PR tree-optimization/57066
22787         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
22789 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
22791         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
22793 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
22795         * config/aarch64/aarch64-builtins.c
22796         (aarch64_fold_builtin): New.
22797         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
22798         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
22799         * config/aarch64/aarch64-simd-builtins.def (abs): New.
22800         * config/aarch64/arm_neon.h
22801         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
22803 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
22804             Tejas Belagod  <tejas.belagod@arm.com>
22806         * config/aarch64/aarch64-builtins.c
22807         (aarch64_gimple_fold_builtin): New.
22808         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
22809         * config/aarch64/aarch64-simd-builtins.def (addv): New.
22810         * config/aarch64/aarch64-simd.md (addpv4sf): New.
22811         (addvv4sf): Update.
22812         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
22814 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
22816         * config/aarch64/aarch64.md
22817         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
22819 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
22821         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
22822         (*ngcsi_uxtw): New pattern.
22824 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22825             Julian Brown  <julian@codesourcery.com>
22827         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
22828         (TB_DREG): Add T_V4HF.
22829         (v4hf_UP): New macro.
22830         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
22831         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
22832         Handle initialisation of V4HF. Adjust initialisation of reinterpret
22833         built-ins.
22834         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
22835         (arm_vector_mode_supported_p): Handle V4HF.
22836         (arm_mangle_map): Handle V4HFmode.
22837         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
22838         * config/arm/arm_neon_builtins.def: Add entries for
22839         vcvtv4hfv4sf, vcvtv4sfv4hf.
22840         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
22841         (neon_vcvtv4hfv4sf): Likewise.
22842         * config/arm/neon-gen.ml: Handle half-precision floating point
22843         features.
22844         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
22845         * config/arm/arm_neon.h: Regenerate.
22846         * config/arm/neon.ml (type elts): Add F16.
22847         (type vectype): Add T_float16x4, T_floatHF.
22848         (type vecmode): Add V4HF.
22849         (type features): Add Requires_FP_bit feature.
22850         (elt_width): Handle F16.
22851         (elt_class): Likewise.
22852         (elt_of_class_width): Likewise.
22853         (mode_of_elt): Refactor.
22854         (type_for_elt): Handle F16, fix error messages.
22855         (vectype_size): Handle T_float16x4.
22856         (vcvt_sh): New function.
22857         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
22858         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
22859         (string_of_mode): Handle V4HF.
22860         * doc/arm-neon-intrinsics.texi: Regenerate.
22862 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
22864         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
22865         format specifier in 'X' case.
22867 2013-04-25  Alan Modra  <amodra@gmail.com>
22869         PR target/57052
22870         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
22871         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
22872         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
22873         Repeat for many other rotate/shift and mask patterns using subregs.
22874         Name lshiftrt insns.
22875         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
22876         on WORDS_BIG_ENDIAN.
22878 2013-04-25  Alan Modra  <amodra@gmail.com>
22880         * config.gcc: Support little-endian powerpc-linux targets.
22881         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
22882         (LINK_OS_LINUX_SPEC): Define.
22883         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
22884         Preserve MASK_LITTLE_ENDIAN.
22885         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
22886         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
22887         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
22888         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
22889         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
22890         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
22891         Correct fp word order for little-endian.  Don't shift toc entries
22892         smaller than a word for little-endian.
22893         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
22894         (bswapdi2 splits): Correct low-part subreg for little-endian.
22895         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
22896         low/high where such is correct only for be.
22897         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
22898         little-endian for -mcall-aixdesc.
22900 2013-04-25  Alan Modra  <amodra@gmail.com>
22902         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
22903         replace_equiv_address_nv.
22905 2013-04-25  Alan Modra  <amodra@gmail.com>
22907         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
22909 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
22911         Revert:
22912         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
22913         * rtl.h (struct rtx_def): ...
22915 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
22917         PR rtl-optimizations/57046
22918         * lra-constraints (split_reg): Set up lra_risky_transformations_p
22919         for multi-reg splits.
22921 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
22923         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
22925 2013-04-24  Sterling Augustine  <saugustine@google.com>
22927         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
22928         (comp_dir_string, debug_str_dwo_section): New.
22929         (DEBUG_STR_DWO_SECTION): Rename to ...
22930         (DEBUG_DWO_STR_SECTION): ... this.
22931         (DEBUG_NORM_STR_SECTION): Delete.
22932         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
22933         (DEBUG_STR_DWO_SECTION_FLAGS): New.
22934         (find_AT_string): Move most logic to ...
22935         (find_AT_string_in_table): ... here.  New.
22936         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
22937         add_skeleton_AT_string.  Delete logic.
22938         (output_skeleton_debug_sections): Remove call to
22939         add_top_level_skeleton_die_attrs.
22940         (add_comp_dir_attribute): Move logic to comp_dir_string.
22941         (dwarf2out_init): Initialize debug_str_dwo_section.
22942         (output_indirect_string): Call find_string_form.
22943         (output_indirect_strings): Rewrite.
22944         (prune_unused_types): Empty skeleton_debug_str_hash.
22945         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
22946         (dwarf2out_finish):  Call output_indirect_strings.
22948 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
22950         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
22952 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
22954         * rtl.h (struct rtx_def): Add comment for field jump.
22955         (LRA_SUBREG_P): New macro.
22956         * recog.c (register_operand): Check LRA_SUBREG_P.
22957         * lra.c (lra): Add note at the end of RTL code. Align non-empty
22958         stack frame.
22959         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
22960         (lra_final_code_change): Skip subreg change for operators.
22961         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
22962         if there are no operand changes.
22963         * lra-constraints.c (curr_insn_set): New.
22964         (match_reload): Set LRA_SUBREG_P.
22965         (emit_spill_move): Ditto.
22966         (check_and_process_move): Use curr_insn_set. Process only single
22967         set insns.  Don't initialize sec_mem_p and change_p.
22968         (simplify_operand_subreg): Use LRA_SUBREG_P.
22969         (reg_in_class_p): New function.
22970         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
22971         of #ifdef.  Add code to remove cycling.
22972         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
22973         non-null disp.  Reload inner instead of disp when base and index
22974         are null.  Try to put lo_sum into register.
22975         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
22976         (check_and_process_move): Move code for move cost check to
22977         simple_move_p.  Remove equiv_substitution.
22978         (simple_move_p): New function.
22979         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
22980         curr_insn_set.  Call check_and_process_move only for single set
22981         insns.  Use the new function.  Move call of check_and_process_move
22982         after operand equiv substitution and address process.
22984 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
22986         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
22987         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
22988         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
22990 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
22992         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
22994 2013-04-24  Marek Polacek  <polacek@redhat.com>
22996         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
22997         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
22998         (select_loops_exit_conditions): Likewise.
22999         (number_of_iterations_for_all_loops): Likewise.
23000         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
23001         (scev_analysis): Likewise.
23003 2013-04-02  Catherine Moore  <clm@codesourcery.com>
23004             Chao-ying Fu  <fu@mips.com>
23006         * config/mips/micromips.md (jraddiusp): New pattern.
23007         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
23008         instruction if possible.
23010 2013-04-24  Alan Modra  <amodra@gmail.com>
23012         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
23014 2013-04-24  Julian Brown  <julian@codesourcery.com>
23015             Chung-Lin Tang  <cltang@codesourcery.com>
23017         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
23018         dependency behavior in enumeration type DIE generation. Add TODO note
23019         to comments about future DW_FORM_sdata/udata re-work of related code.
23021 2013-04-23  Lawrence Crowl  <crowl@google.com>
23023         * Makefile.in: Update as needed below.
23025         * hash-table.h (class hash_table):
23026         Correct many methods with parameter types compare_type to the correct
23027         value_type.  (Correct code was unlikely to notice the change.)
23028         (hash_table::elements_with_deleted) New.
23029         (class hashtable::iterator): New.
23030         (hashtable::begin()): New.
23031         (hashtable::end()): New.
23032         (FOR_EACH_HASH_TABLE_ELEMENT): New.
23034         * statistics.c (statistics_hashes):
23035         Change type to hash_table.  Update dependent calls and types.
23037         * tree-into-ssa.c (var_infos):
23038         Change type to hash_table.  Update dependent calls and types.
23040         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
23041         Change type to hash_table.  Update dependent calls and types.
23043         * tree-ssa-loop-im.c (struct mem_ref.refs):
23044         Change type to hash_table.  Update dependent calls and types.
23046         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
23047         Change type to hash_table.  Update dependent calls and types.
23049         * tree-ssa-sccvn.c (vn_tables_s::nary):
23050         Change type to hash_table.  Update dependent calls and types.
23051         (vn_tables_s::phis): Likewise.
23052         (vn_tables_s::references): Likewise.
23054         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
23055         (vn_reference_eq): Update parameter and return types.
23057         * tree-ssa-structalias.c (pointer_equiv_class_table):
23058         Change type to hash_table.  Update dependent calls and types.
23059         (location_equiv_class_table): Likewise.
23061         * tree-vect-data-refs.c: Consequential changes for making
23062         peeling a hash_table.
23064         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
23065         (destroy_loop_vec_info): Dependent hash_table update.
23067         * tree-vectorizer.h (peeling_htab):
23068         Change type to hash_table.  Update dependent calls and types.
23070 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
23072         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
23073         to check the register content is equal or not.
23074         * lra-constraints.c (match_reload): Use lra_assign_reg_val
23075         to assign register content record.
23076         * lra-eliminations.c (update_reg_eliminate): Use
23077         lra_update_reg_val_offset to update register content offset.
23078         * lra-int.h (struct lra_reg): Add offset member.
23079         (lra_reg_val_equal_p): New static inline function.
23080         (lra_update_reg_val_offset): New static inline function.
23081         (lra_assign_reg_val): New static inline function.
23082         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
23083         to assign register content record.
23084         (initialize_lra_reg_info_element): Initial offset to zero.
23086 2013-04-23  Catherine Moore  <clm@codesourcery.com>
23088         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
23089         operands.  Record compression.
23091 2013-04-23  Xinliang David Li  <davidxl@google.com>
23093         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
23095 2013-04-23  Richard Biener  <rguenther@suse.de>
23097         PR middle-end/57036
23098         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
23099         parameter, only add abnormal goto edges from the copied body
23100         if the call could perform abnormal gotos.
23101         (copy_cfg_body): Adjust.
23103 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
23105         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
23107 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
23109         * coretypes.h (gimple_stmt_iterator): Add struct to make
23110         compatible with C.
23112 2013-04-23  Richard Biener  <rguenther@suse.de>
23114         PR tree-optimization/57026
23115         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
23116         from SSA names occuring in abnormal PHI nodes.
23118 2013-04-22  Andi Kleen  <ak@linux.intel.com>
23120         * lto/lto.c (print_lto_report_1): Fix LTO report names.
23122 2013-04-22  Andi Kleen  <ak@linux.intel.com>
23124         * lto/lto.c (print_lto_report_1): Declare early.
23125         (read_cgraph_and_symbols): Call print_lto_report_1 early.
23127 2013-04-22  Andi Kleen  <ak@linux.intel.com>
23129         * common.opt (-flto-report-wpa): Add.
23130         * doc/invoke.texi (-flto-report-wpa): Add.
23131         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
23132         (lto_main): dito.
23134 2013-04-22  Xinliang David Li  <davidxl@google.com>
23136         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
23137         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
23138         * Makefile.in: New dependency
23140             David Daney <ddaney.cavm@gmail.com>
23142         * configure.ac (gcc_cv_as_micromips_support):  Use the
23143         --fatal-warnings option.
23144         * configure: Regenerate.
23146 2013-04-22  Marek Polacek  <polacek@redhat.com>
23148         PR sanitizer/56990
23149         * tsan.c (instrument_expr): Don't instrument expression
23150         in case its size is zero.
23152 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
23154         PR target/57032
23155         Revert:
23156         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
23158         * config/alpha/alpha.c (TARGET_LRA_P): New define.
23160 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
23162         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
23163         (gimple_stmt_iterator): New typedef.
23164         * gimple.h (gimple_stmt_iterator): Rename to...
23165         (gimple_stmt_iterator_d): ... This.
23166         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
23167         trees be valid for GIMPLE and GENERIC.
23168         (TARGET_GIMPLE_FOLD_BUILTIN): New.
23169         * gimple-fold.c (gimple_fold_call): Call target hook
23170         gimple_fold_builtin.
23171         * hooks.c (hook_bool_gsiptr_false): New.
23172         * hooks.h (hook_bool_gsiptr_false): New.
23173         * target.def (fold_stmt): New.
23174         * doc/tm.texi: Regenerate.
23176 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
23178         PR target/57018
23179         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
23180         a set sp if no stack realignment.
23182 2013-04-22  Nick Clifton  <nickc@redhat.com>
23184         * config.gcc (tilegx-linux): Extend extra_objs rather than
23185         overwriting it.
23186         (tilepro-linux): Likewise.
23188 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
23190         * config/aarch64/aarch64-builtins.c
23191         (CF): Remove.
23192         (CF0, CF1, CF2, CF3, CF4, CF10): New.
23193         (VAR<1-12>): Add MAP parameter.
23194         (BUILTIN_*): Likewise.
23195         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
23196         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
23197         (aarch64_ushl_n<mode>): Likewise.
23198         (aarch64_sshr_n<mode>): Likewise.
23199         (aarch64_ushr_n<mode>): Likewise.
23200         (aarch64_<maxmin><mode>): Likewise.
23201         (aarch64_sqrt<mode>): Likewise.
23202         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
23203         (vshr<q>_n_*): Likewise.
23205 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
23207         * config/aarch64/aarch64-builtins.c
23208         (aarch64_simd_builtin_type_mode): Handle SF types.
23209         (sf_UP): Define.
23210         (BUILTIN_GPF): Define.
23211         (aarch64_init_simd_builtins): Handle SF types.
23212         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
23213         (frecps): Likewise.
23214         (frecpx): Likewise.
23215         * config/aarch64/aarch64-simd.md
23216         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
23217         (aarch64_frecpe<mode>): New.
23218         (aarch64_frecps<mode>): Likewise.
23219         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
23220         (v8type): Add frecp<esx>.
23221         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
23222         (aarch64_frecps<mode>): Likewise.
23223         * config/aarch64/iterators.md (FRECP): New.
23224         (frecp_suffix): Likewise.
23225         * config/aarch64/arm_neon.h
23226         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
23228 2013-04-22  Christian Bruel  <christian.bruel@st.com>
23230         PR target/56995
23231         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
23232         (REG_CLASS_NAMES): Idem.
23233         (REG_CLASS_CONTENTS): Idem.
23234         (REGCLASS_HAS_FP_REG): Idem.
23235         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
23236         (sh_conditional_register_usage): Idem.
23238 2013-04-21  Jeff Law  <law@redhat.com>
23240         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
23241         (ssa_forward_propagate_and_combine): Use it.
23243 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
23245         * lra.c: Update the flow chart diagram.
23247 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
23249         PR rtl-optimization/56847
23250         * lra-constraints.c (process_alt_operands): Discourage alternative
23251         with non-matche doffsettable memory constraint fro memory with
23252         known offset.
23254 2013-04-19  Richard Biener  <rguenther@suse.de>
23256         PR tree-optimization/56982
23257         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
23258         function.
23259         * gimplify.c (gimplify_call_expr): Notice special calls.
23260         (gimplify_modify_expr): Likewise.
23261         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
23262         abnormal control flow receivers.
23263         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
23264         in the same way as cfun->has_nonlocal_labels.
23265         (gimple_purge_dead_abnormal_call_edges): Likewise.
23266         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
23267         receivers start a basic-block.
23269 2013-04-19  Richard Biener  <rguenther@suse.de>
23271         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
23272         member ...
23273         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
23274         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
23275         (SLP_TREE_LOAD_PERMUTATION): Add.
23276         (vect_transform_slp_perm_load): Adjust prototype.
23277         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
23278         (vect_free_slp_instance): Likewise.
23279         (vect_create_new_slp_node): Likewise.
23280         (vect_supported_slp_permutation_p): Remove.
23281         (vect_slp_rearrange_stmts): Adjust.
23282         (vect_supported_load_permutation_p): Likewise.  Inline
23283         vect_supported_slp_permutation_p here.
23284         (vect_analyze_slp_instance): Compute load permutations per
23285         slp node instead of per instance.
23286         (vect_get_slp_defs): Adjust.
23287         (vect_transform_slp_perm_load): Likewise.
23288         (vect_schedule_slp_instance): Remove redundant code.
23289         (vect_schedule_slp): Remove hack for PR56270, add it ...
23290         * tree-vect-stmts.c (vectorizable_load): ... here, do not
23291         CSE loads for SLP.  Adjust.
23293 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
23295         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
23296         spelling in two comments.
23298 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
23300         PR target/56797
23301         * config/arm/arm.c (load_multiple_sequence): Require SP
23302         as base register for loads if SP is in the register list.
23304 2013-04-19  Martin Jambor  <mjambor@suse.cz>
23306         PR tree-optimization/56718
23307         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
23308         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
23309         and made public.  Adjusted all callers.
23310         (ipa_intraprocedural_devirtualization): New function.
23311         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
23312         (ipa_intraprocedural_devirtualization): Likewise.
23313         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
23315 2013-04-19  Richard Biener  <rguenther@suse.de>
23317         PR tree-optimization/57000
23318         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
23320 2013-04-19  Terry Guo  <terry.guo@arm.com>
23322         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
23323         Replace with ...
23324         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
23325         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
23326         (cortex_m4_fmacs): Use new reservations.
23327         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
23329 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
23331         PR rtl-optimization/56999
23332         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
23333         related code.
23334         (lra_coalesce): Remove split_origin_bitmap and related code.
23335         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
23336         ranges if necessary.
23338 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
23340         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
23341         New array.
23342         (ix86_expand_call): Remove clobbered_registers array and use
23343         x86_64_ms_sysv_extra_clobbered_registers instead.
23344         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
23345         Declare here.
23346         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
23347         predicate.
23348         * config/i386/i386.md (*call_rex64_ms_sysv): Use
23349         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
23350         (*call_value_rex64_ms_sysv): Ditto.
23352 2013-04-18  Cary Coutant  <ccoutant@google.com>
23354         * dwarf2out.c (output_pubnames): Check die_perennial_p of
23355         parent instead of die_mark.
23357 2013-04-18  Diego Novillo  <dnovillo@google.com>
23359         * gimple.c (create_gimple_tmp): New.
23360         (get_expr_type): New.
23361         (build_assign): New.
23362         (build_type_cast): New.
23363         * gimple.h (enum ssa_mode): Define.
23364         (gimple_seq_set_location): New.
23365         * asan.c (build_check_stmt): Change some gimple_build_* calls
23366         to use build_assign and build_type_cast.
23368 2013-04-18  Richard Biener  <rguenther@suse.de>
23370         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
23371         handle negative step.  Remove redundant checks.
23372         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
23373         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
23374         for negative step and grouped loads fail to vectorize.
23376 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
23378         * emit-rtl.c (reset_insn_used_flags): New function.
23379         (reset_all_used_flags): Use it.
23380         (verify_insn_sharing): New function.
23381         (verify_rtl_sharing): Fix verification for SEQUENCEs.
23383 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
23385         PR tree-optimization/56984
23386         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
23387         and (x >> M) >= N don't register any assertion if N << M is the
23388         minimum value.
23390 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
23392         * lower-subreg.c (resolve_simple_move): If called self-recursive,
23393         do not delete_insn insns that have not yet been emitted, only
23394         unlink them with remove_insn.
23395         * df-scan.c (df_insn_delete): Revert r197492.
23397 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
23399         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
23400         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
23402 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
23404         * config/arm/arm.md (movsicc_insn): Convert define_insn into
23405         define_insn_and_split.
23406         (and_scc,ior_scc,negscc): Likewise.
23407         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
23409 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
23411         * config/arm/arm.c (use_return_insn): Return 0 for targets that
23412         can benefit from using a sequence of LDRD instructions in epilogue
23413         instead of a single LDM instruction.
23415 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23417         PR 45688
23418         * doc/extend.texi: Fix typo.
23420 2013-04-17  Richard Biener  <rguenther@suse.de>
23422         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
23423         (vect_build_slp_tree): ... here.
23424         (vect_build_slp_tree_1): Compute which stmts of the SLP group
23425         match.  Remove special-casing of mismatched complex loads.
23426         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
23427         re-try the match with swapped commutative operands.
23428         (vect_supported_load_permutation_p): Remove special-casing of
23429         mismatched complex loads.
23430         (vect_analyze_slp_instance): Adjust.
23432 2013-04-17  Richard Biener  <rguenther@suse.de>
23434         PR rtl-optimization/56921
23435         * cfgloop.h (struct loop): Add simple_loop_desc member.
23436         (struct niter_desc): Mark with GTY(()).
23437         (simple_loop_desc): Do not use aux field but simple_loop_desc.
23438         * loop-iv.c (get_simple_loop_desc): Likewise.
23439         (free_simple_loop_desc): Likewise.
23441         Revert
23442         2013-04-16  Richard Biener  <rguenther@suse.de>
23444         PR rtl-optimization/56921
23445         * loop-init.c (pass_rtl_move_loop_invariants): Add
23446         TODO_do_not_ggc_collect to todo_flags_finish.
23447         (pass_rtl_unswitch): Same.
23448         (pass_rtl_unroll_and_peel_loops): Same.
23449         (pass_rtl_doloop): Same.
23451 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
23453         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
23454         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
23455         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
23456         references.
23457         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
23458         * tree-streamer.c (record_common_node): Adjust reference in comment.
23460 2013-04-17  Terry Guo  <terry.guo@arm.com>
23462         * config/arm/cortex-m4.md: Add a new bypass.
23464 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
23466         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
23467         New pattern.
23468         (*subs_<optab><mode>_multp2): New pattern.
23469         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
23470         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
23472 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
23474         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
23475         (*subs_mul_imm_<mode>): New pattern.
23477 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
23479         PR target/56948
23480         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
23481         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
23482         (vsx_movti_32bit): Change j->wa to O->wa.
23484 2013-04-16  Richard Biener  <rguenther@suse.de>
23486         PR rtl-optimization/56921
23487         * loop-init.c (pass_rtl_move_loop_invariants): Add
23488         TODO_do_not_ggc_collect to todo_flags_finish.
23489         (pass_rtl_unswitch): Same.
23490         (pass_rtl_unroll_and_peel_loops): Same.
23491         (pass_rtl_doloop): Same.
23493 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
23495         * config/arm/arm.c (emit_multi_reg_push): New declaration
23496         for an existing function.
23497         (arm_emit_strd_push): New function.
23498         (arm_expand_prologue): Used here.
23499         (arm_emit_ldrd_pop): New function.
23500         (arm_expand_epilogue): Used here.
23501         (arm_get_frame_offsets): Update condition.
23502         (arm_emit_multi_reg_pop): Add a special case for load of a single
23503         register with writeback.
23505 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
23507         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
23508         description.
23510 2013-04-16  Richard Biener  <rguenther@suse.de>
23512         PR tree-optimization/56756
23513         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
23514         (first_mem_ref_loc): New.
23515         (execute_sm): Place the load temporarily before a previous
23516         access instead of in the latch edge to ensure its SSA dependencies
23517         are defined at points dominating the load.
23519 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
23521         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
23522         correct fix by moving header and footer insn to the footer of
23523         the merged basic block.  Clear BB_END of the merged-away block.
23525         PR middle-end/43631
23526         * emit-rtl.c (make_note_raw): New function.
23527         (link_insn_into_chain): New static inline function.
23528         (add_insn): Use it.
23529         (add_insn_before, add_insn_after): Factor insn chain linking code...
23530         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
23531         using link_insn_into_chain.
23532         (note_outside_basic_block_p): New helper function for emit_note_after
23533         and emit_note_before.
23534         (emit_note_after): Use nobb variant of add_insn_after if the note
23535         should not be contained in a basic block.
23536         (emit_note_before): Use nobb variant of add_insn_before if the note
23537         should not be contained in a basic block.
23538         (emit_note_copy): Use make_note_raw.
23539         (emit_note): Likewise.
23540         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
23541         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
23542         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
23543         the moved barrier the tail of the basic block it follows.
23544         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
23546 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
23548         PR tree-optimization/56962
23549         * gimple-ssa-strength-reduction.c (record_increment): Only set
23550         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
23551         either rhs1 or rhs2 is equal to c->base_expr.
23553 2013-04-15  Richard Biener  <rguenther@suse.de>
23555         PR tree-optimization/56933
23556         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
23557         member.
23558         (GROUP_READ_WRITE_DEPENDENCE): Remove.
23559         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
23560         * tree-vect-data-refs.c (vect_analyze_group_access): Move
23561         dependence check ...
23562         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
23563         ... here.
23564         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
23565         GROUP_READ_WRITE_DEPENDENCE.
23567 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23569         * emit-rtl.c (reset_all_used_flags): New function.
23570         (verify_rtl_sharing): Call reset_all_used_flags before and after
23571         performing the checks.
23573 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23575         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
23576         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
23577         * config/arm/constraints.md (De): New constraint.
23578         * config/arm/neon.md (anddi3_neon): Delete.
23579         (neon_vand<mode>): Expand to standard anddi3 pattern.
23580         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
23581         Move earlier in the file.
23582         (neon_inv_logic_op2): Likewise.
23583         (arm_anddi_operand_neon): New predicate.
23585 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23587         * configure.ac (gcc_cv_ld_as_needed): Set
23588         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
23589         Use -z ignore, -z record on *-*-solaris2*.
23590         (HAVE_LD_AS_NEEDED): Update comment.
23591         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
23592         * configure: Regenerate.
23593         * config.in: Regenerate.
23594         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
23595         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
23596         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
23597         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
23598         equivalents.  Fix markup.
23599         * doc/tm.texi: Regenerate.
23601 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
23603         * config/i386/i386.opt: New option mstack-protector-guard=.
23604         * config/i386/i386-opts.h: Add enum stack_protector_guard.
23605         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
23606         TARGET_SSP_TLS_GUARD.
23607         * config/i386/i386.c (ix86_option_override_internal): Set
23608         ix86_stack_protector_guard.
23609         * config/i386/i386.md (stack_protect_set): Enable for
23610         TARGET_SSP_TLS_GUARD only.
23611         (stack_protect_set_<mode>): Ditto.
23612         (stack_protect_test): Ditto.
23613         (stack_protect_test_<mode>): Ditto.
23614         * doc/invoke.texi (i386 Option): Document.
23616 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
23618         PR target/56890
23619         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
23620         (S_MODES): Set H_MODE bit.
23621         (SF_MODES): Set only S_MODE and SF_MODE bits.
23622         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
23623         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
23624         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
23625         <MODE_FLOAT>: Likewise.
23627 2013-04-15  Joey Ye  <joey.ye@arm.com>
23629         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
23631 2013-04-15  Joey Ye  <joey.ye@arm.com>
23633         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
23634         for real far jump.
23635         (thumb_far_jump_used_p): Count instruction size and set
23636         far_jump_used.
23638 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
23640         * reorg.c (fill_simple_delay_slots): Reindent block of code.
23641         * resource.c (mark_target_live_regs): Reformat conditional block.
23643 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
23645         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
23646         notes, they are emitted only just before final.
23647         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
23649 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
23651         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
23652         * cfgrtl.c (delete_insn): Call it here instead.
23653         * lra-spills.c (lra_final_code_change): Use delete_insn.
23654         * haifa-sched.c (sched_remove_insn): Likewise.
23655         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
23656         returning to the nop pool.
23657         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
23658         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
23660 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
23662         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
23663         * doc/tm.texi: Regenerated.
23665 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
23667         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
23668         QImode checks.
23670 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
23672         * df-core.c (df_find_def): Compare register numbers.
23673         (df_find_use): Likewise.
23675 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
23677         PR target/56903
23678         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
23679         lra_in_progress for return.
23681 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
23683         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
23684         define_insn into define_insn_and_split and emit movsicc patterns.
23686 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
23688         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
23690 2013-04-12  Richard Biener  <rguenther@suse.de>
23692         * tree-pass.h (TODO_do_not_ggc_collect): New.
23693         * passes.c (execute_one_ipa_transform_pass): Honor
23694         TODO_do_not_ggc_collect.
23695         (execute_one_pass): Likewise.
23697         Revert
23698         2013-04-10  Richard Biener  <rguenther@suse.de>
23700         * passes.c (init_optimization_passes): Remove reload pass.
23701         * ira.c (do_reload): Merge into ...
23702         (ira): ... this.
23703         (rest_of_handle_reload): Remove.
23704         (pass_reload): Likewise.
23705         * config/i386/i386.c (ix86_option_override): Refer to ira instead
23706         of reload for vzeroupper pass placement.
23708 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
23710         PR tree-optimization/56918
23711         PR tree-optimization/56920
23712         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
23713         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
23714         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
23715         use wide_mul_with_sign method.
23717 2013-04-12  Richard Biener  <rguenther@suse.de>
23719         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
23720         not be considered a gimple constant.
23722 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
23724         * fold-const.c (const_binop): Handle vector shifts by a scalar.
23725         (fold_binary_loc): Call const_binop also for mixed vector-scalar
23726         operations.
23728 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23729             Jakub Jelinek  <jakub@redhat.com>
23731         * opts.c: Include diagnostic-color.h.
23732         (common_handle_option): Handle OPT_fdiagnostics_color_.
23733         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
23734         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
23735         (diagnostic-color.o): New.
23736         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
23737         (diagnostic_color_rule): New enum.
23738         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
23739         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
23740         the location string.
23741         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
23742         either NULL, or color kind.
23743         * diagnostic-color.c: New file.
23744         * diagnostic-color.h: New file.
23745         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
23746         arguments.
23747         * doc/invoke.texi (-fdiagnostics-color): Document.
23748         * pretty-print.h (pp_show_color): Define.
23749         (struct pretty_print_info): Add show_color field.
23750         * diagnostic.c: Include diagnostic-color.h.
23751         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
23752         macros.  Colorize error:, warning: etc. strings and also the location
23753         string.
23754         (diagnostic_show_locus): Colorize the caret line.
23755         * pretty-print.c: Include diagnostic-color.h.
23756         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
23757         inside of %< %> quotes or quoted through q format modifier.
23759 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23761         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
23763 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
23765         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
23766         code in CC_NZ mode.
23767         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
23768         pattern.
23770 2013-04-11  Marek Polacek  <polacek@redhat.com>
23772         PR tree-optimization/48184
23773         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
23775 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
23777         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
23778         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
23779         (skip_simple_arithmetic): Tidy up.
23780         * tree.h (skip_simple_constant_arithmetic): Declare.
23782 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
23784         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
23786 2013-04-11  Richard Biener  <rguenther@suse.de>
23788         * tree-vect-loop.c (get_initial_def_for_induction): Properly
23789         generate vector constants.
23791 2013-04-11  Richard Biener  <rguenther@suse.de>
23793         PR tree-optimization/56878
23794         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
23795         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
23796         New function.
23797         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
23798         Prefer to align the DR with the most invariant base address.
23800 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
23802         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
23803         comment.
23805 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
23807         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
23808         floating-point vector comparisons against 0.
23810 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
23812         PR tree-optimization/56899
23813         * fold-const.c (extract_muldiv_1): Apply distributive law
23814         only if TYPE_OVERFLOW_WRAPS (ctype).
23816 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
23818         PR target/56124
23819         * ira-costs.c (scan_one_insn): Check whether the source rtx of
23820         loading has side effect.
23822 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
23824         * config/sparc/sparc.c: Include tree-pass.h.
23825         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
23826         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
23827         head of file.  Change return type.  Split off gate function.
23828         (sparc_gate_work_around_errata): New function.
23829         (pass_work_around_errata): New pass definition.
23830         (insert_pass_work_around_errata) New pass insert definition to
23831         insert pass_work_around_errata just after delayed-branch scheduling.
23832         (sparc_option_override): Insert the pass.
23833         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
23835 2013-04-10  David S. Miller  <davem@davemloft.net>
23837         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
23838         or -mcpu=hypersparc.
23840         * target.def (cstore_mode): New hook.
23841         * target.h: Include insn-codes.h
23842         * targhooks.c: Likewise.
23843         (default_cstore_mode): New function.
23844         * targhooks.h: Declare it.
23845         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
23846         * doc/tm.texi: Rebuild.
23847         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
23848         target hook, rather than inspecting the insn_data.
23849         * config/sparc/sparc.c (sparc_cstore_mode): New function.
23850         (TARGET_CSTORE_MODE): Redefine.
23851         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
23852         result patterns.
23853         * config/sparc/predicates.md (cstore_result_operand): New special
23854         predicate.
23855         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
23856         Use it for operand 0.
23857         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
23858         (*snesi_special): Likewise.
23859         (*snesi_zero): Likewise.
23860         (*seqsi_zero): Likewise.
23861         (*sltu_insn): Likewise.
23862         (*sgeu_insn): Likewise.
23863         (*seqdi_special): Make operand 0 and comparison operation be of
23864         DImode.
23865         (*snedi_special): Likewise.
23866         (*snedi_special_vis3): Likewise.
23867         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
23868         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
23869         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
23870         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
23871         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
23872         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
23873         (*sltu_extend_sp64): Likewise.
23874         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
23875         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
23876         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
23877         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
23878         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
23880 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
23882         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
23883         (aarch64_start_file): Use the new function.
23885 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
23886             Jason Merrill  <jason@redhat.com>
23888         * common.opt: Add -gdwarf.
23889         * opts.c (common_handle_option): Handle it.
23890         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
23892 2013-04-10  Richard Biener  <rguenther@suse.de>
23894         * passes.c (execute_todo): Do not call ggc_collect conditional here.
23895         (execute_one_ipa_transform_pass): But unconditionally here.
23896         (execute_one_pass): And here.
23897         (init_optimization_passes): Remove reload pass.
23898         * tree-pass.h (TODO_ggc_collect): Remove.
23899         (pass_reload): Likewise.
23900         * ira.c (do_reload): Merge into ...
23901         (ira): ... this.
23902         (rest_of_handle_reload): Remove.
23903         (pass_reload): Likewise.
23904         * config/i386/i386.c (ix86_option_override): Refer to ira instead
23905         of reload for vzeroupper pass placement.
23906         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
23907         and todo_flags_finish of all passes.
23909 2013-04-10  Richard Biener  <rguenther@suse.de>
23911         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
23912         first_const_oprnd field, rename first_def_type to first_op_type.
23913         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
23914         (vect_get_and_check_slp_defs): Always use the type of the
23915         operand.  Allow mixed vect_external_def, vect_constant_def types.
23916         (vect_get_constant_vectors): Handle mixed vect_external_def,
23917         vect_constant_def types.
23919 2013-04-10  Joern Rennecke  <joern.rennecke@embecosm.com>
23921         PR tree-optimization/55524
23922         * tree-ssa-math-opts.c
23923         (convert_mult_to_fma): Don't use an fms construct
23924         when we don't have an fms operation, but fnma, and it looks
23925         likely that we'll be able to use the latter.
23927 2013-04-10  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
23929         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
23930         function.
23931         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
23932         inline fail caused by overwritable functions.
23934 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
23936         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
23937         unnecessary bits in the constant power of two case.
23939 2013-04-10  Richard Biener  <rguenther@suse.de>
23941         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
23942         broken code swapping operands.
23943         (vect_build_slp_tree): Do not compute load permutations here.
23944         (vect_analyze_slp_instance): Compute load permutations here,
23945         after building the SLP tree.
23947 2013-04-09  Christian Bruel  <christian.bruel@st.com>
23949         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
23950         of next/prev_real_insn.
23952 2013-04-09  Jan Hubicka  <jh@suse.cz>
23954         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
23955         Drop aliased parameter.
23956         (function_and_variable_visibility): Do not handle alias pairs.
23957         * cgraph.c (varpool_externally_visible_p): Update prototype.
23958         * varpool.c (varpool_add_new_variable): Update.
23960 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23962         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
23964 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
23966         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
23968         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
23970 2013-04-09  Marek Polacek  <polacek@redhat.com>
23972         PR tree-optimization/48762
23973         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
23975 2013-04-09  Richard Biener  <rguenther@suse.de>
23977         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
23978         dealing with cost.
23979         (vect_build_slp_tree): Likewise.
23980         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
23981         calculating the cost of a SLP instance.
23982         (vect_analyze_slp_instance): Use it from here, after building
23983         the SLP tree.
23985 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
23987         PR middle-end/56883
23988         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
23989         expand_omp_for_static_chunk): Use simple_p = true in
23990         force_gimple_operand_gsi calls when assigning to addressable decls.
23992 2013-04-09  Jeff Law  <law@redhat.com>
23994         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
23995         when the boolean was created by converting a wider object which
23996         had a boolean range.
23998 2013-04-09  Richard Biener  <rguenther@suse.de>
24000         * tree-vectorizer.h (slp_void_p): Remove.
24001         (slp_tree): Typedef before _slp_tree declaration.
24002         (struct _slp_tree): Use a vector of slp_tree as children.
24003         (vect_get_place_in_interleaving_chain): Remove.
24004         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
24005         Move ...
24006         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
24007         and make static.
24008         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
24009         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
24010         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
24011         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
24012         Use slp_node instead of slp_void_p and adjust.
24014 2013-04-09  Richard Biener  <rguenther@suse.de>
24016         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
24017         work that is not necessary.
24019 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
24021         PR tree-optimization/56854
24022         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
24023         forward into clobber stmts if it would change MEM_REF lhs into
24024         non-MEM_REF.
24026 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
24028         * tree.c (type_hash_lookup, type_hash_add): Make static.
24029         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
24031 2013-04-09  Richard Biener  <rguenther@suse.de>
24033         * tree.h (unsave_expr_now): Remove.
24034         * tree-inline.c (mark_local_for_remap_r): Remove.
24035         (unsave_expr_1): Likewise.
24036         (unsave_r): Likewise.
24037         (unsave_expr_now): Likewise.
24038         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
24039         (propagate_tree_value): Likewise.
24041 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
24043         * doc/rtl.texi (sequence): Rewrite documentation to match the
24044         current use of SEQUENCE rtl objects.
24045         * rtl.def (SEQUENCE): Likewise.
24047         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
24048         Update documentation.
24049         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
24050         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
24052         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
24054 2013-04-08  Teresa Johnson  <tejohnson@google.com>
24056         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
24057         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
24058         methods.
24059         (estimate_edge_size_and_time): Add comment to suggest using rounding
24060         methods.
24061         (estimate_node_size_and_time): Ditto.
24062         (remap_edge_change_prob): Use helper rounding divide methods.
24063         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
24064         (gimple_mod_pow2_value_transform): Ditto.
24065         (gimple_mod_subtract_transform): Ditto.
24066         (gimple_ic_transform): Ditto.
24067         (gimple_stringops_transform): Ditto.
24068         * stmt.c (conditional_probability): Ditto.
24069         (emit_case_dispatch_table): Ditto.
24070         * lto-cgraph.c (merge_profile_summaries): Ditto.
24071         * tree-optimize.c (execute_fixup_cfg): Ditto.
24072         * cfgcleanup.c (try_forward_edges): Ditto.
24073         * cfgloopmanip.c (scale_loop_profile): Ditto.
24074         (loopify): Ditto.
24075         (duplicate_loop_to_header_edge): Ditto.
24076         (lv_adjust_loop_entry_edge): Ditto.
24077         * tree-vect-loop.c (vect_transform_loop): Ditto.
24078         * profile.c (compute_branch_probabilities): Ditto.
24079         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
24080         * lto-streamer-in.c (input_cfg): Ditto.
24081         * gimple-streamer-in.c (input_bb): Ditto.
24082         * ipa-cp.c (update_profiling_info): Ditto.
24083         (update_specialized_profile): Ditto.
24084         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
24085         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
24086         rounding methods.
24087         * sched-rgn.c (compute_dom_prob_ps): Ditto.
24088         (compute_trg_info): Ditto.
24089         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
24090         (purge_dead_edges): Ditto.
24091         * loop-unswitch.c (unswitch_loop): Ditto.
24092         * cgraphclones.c (cgraph_clone_edge): Ditto.
24093         (cgraph_clone_node): Ditto.
24094         * tree-inline.c (copy_bb): Ditto.
24095         (copy_edges_for_bb): Ditto.
24096         (initialize_cfun): Ditto.
24097         (copy_cfg_body): Ditto.
24098         (expand_call_inline): Ditto.
24100 2013-04-08  Kai Tietz  <ktietz@redhat.com>
24102         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
24103         TARGET_CYGWIN64 by TARGET_64BIT.
24105 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
24107         * config/epiphany/epiphany.md (GPR_1): New constant.
24108         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
24109         * config/epiphany/epiphany.c (gen_compare_reg):
24110         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
24111         is already in place.
24112         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
24113         Don't require being called during rtl expansion; If y operlaps r0,
24114         return 0.
24115         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
24116         (epiphany_expand_epilogue): Likewise.
24118         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
24119         Don't use CC_FPmode for ORDERED / UNORDERED.
24120         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
24122         * config/epiphany/constraints.md (CnL): New constraint.
24123         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
24124         * config/epiphany/predicates.md (add_operand): Allow 1024.
24126         * config/epiphany/epiphany.md (logical_op): New code iterator.
24127         (op_mnc): New code attribute.
24128         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
24129         (mov_f+1, mov_f+2): New peephole2 patterns.
24131         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
24132         (cstoresi4): Also allow re-use of zero result when doing a NE
24133         comparison to a non-zero operand.
24134         Use (clobber (scratch)) for first insn if the gpr output is not needed.
24136         * config/epiphany/epiphany.md (<insn_opname>v2si3):
24137         Use gen_addsi3_i / gen_subsi3_i.
24139 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
24141         PR c++/34949
24142         PR c++/50243
24143         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
24144         contain anything but clobbers, at most one __builtin_stack_restore,
24145         optionally debug stmts and final resx, and if it has at least one
24146         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
24147         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
24148         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
24149         which isn't defaut definition, remove them.
24150         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
24151         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
24152         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
24153         with MEM_REF LHS with SSA_NAME address.
24155 2013-04-08  Jeff Law  <law@redhat.com>
24157         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
24159 2013-04-08  Richard Biener  <rguenther@suse.de>
24161         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
24162         extra newline.
24163         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
24164         determined vector type.
24165         (vect_analyze_data_refs): Likewise.
24166         (vect_get_new_vect_var): Adjust.
24167         (vect_create_destination_var): Preserve SSA name versions.
24168         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
24169         not dump anything here.
24171 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
24173         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
24174         Add member lr_slot_known.
24175         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
24176         if necessary.
24177         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
24178         Remove code that sets lr_slot_offset according to what a previous
24179         version of epiphany_emit_save_restore used to do.
24180         (epiphany_emit_save_restore): When doing an lr save or restore,
24181         set/verify lr_slot_known and lr_slot_offset.
24183 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
24185         PR target/54338
24186         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
24187         in ALL_REGS.
24189 2013-04-08  Richard Biener  <rguenther@suse.de>
24191         * alias.c (find_base_term): Fix thinko in previous change.
24193 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
24195         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
24196         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
24197         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
24198         if possible to compute val.
24199         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
24200         For QImode integers don't require anything about precision.  Use
24201         const_with_all_bytes_same to find out if the constant doesn't have
24202         repeated bytes in it.
24204 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24206         * config/s390/s390.c (s390_expand_insv): Only accept insertions
24207         within mode size.
24209 2013-04-08  Marek Polacek  <polacek@redhat.com>
24211         PR rtl-optimization/48182
24212         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
24213         value to 1.
24215 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24217         PR target/55487
24218         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
24219         nuses, make sure we have a label.
24221 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24223         PR target/56843
24224         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
24225         (rs6000_emit_swdiv_low_precision): Remove.
24226         (rs6000_emit_swdiv): Rewrite to handle between one and four
24227         iterations of Newton-Raphson generally; modify required number of
24228         iterations for some cases.
24229         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
24231 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
24233         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
24234         set-but-unused variable.
24236         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
24237         basic blocks of released function bodies garbage-collectable.
24239         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
24240         (struct rtl_opt_pass): Add TODO_df_finish.
24242         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
24244 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
24246         * config/arm/constraints.md (q): New constraint.
24247         * config/arm/ldrdstrd.md: New file.
24248         * config/arm/arm.md (ldrdstrd.md) New include.
24249         (arm_movdi): Use "q" instead of "r" constraint
24250         for double-word memory access.
24251         (movdf_soft_insn): Likewise.
24252         * config/arm/vfp.md (movdi_vfp): Likewise.
24253         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
24254         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
24255         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
24256         (mem_ok_for_ldrd_strd): Likewise.
24257         (output_move_double): Update assertion.
24259 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
24261         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
24263 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
24265         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
24266         define_insn_and_split.
24267         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
24269 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
24271         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
24272         define_insn_and_split.
24273         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
24274         (shiftsi3_compare): New pattern.
24275         (rrx): New pattern.
24276         * config/arm/unspecs.md (UNSPEC_RRX): New.
24278 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
24280         * config/arm/arm.md (negdi_extendsidi): New pattern.
24281         (negdi_zero_extendsidi): Likewise.
24283 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
24285         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
24286         define_insn_and_split.
24287         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
24288         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
24290 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
24292         * config/arm/arm.md (arm_subdi3): Convert define_insn into
24293         define_insn_and_split.
24294         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
24295         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
24297 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
24299         * config/arm/arm.md (subsi3_carryin): New pattern.
24300         (subsi3_carryin_const): Likewise.
24301         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
24302         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
24304 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
24306         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
24308 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
24310         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
24311         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
24313 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24315         * config/arm/arm.c (arm_expand_builtin): Change fcode
24316         type to unsigned int.
24318 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24320         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
24322 2013-04-04  Ian Lance Taylor  <iant@google.com>
24324         * doc/standards.texi (Standards): The Go frontend supports the Go 1
24325         language standard.
24327 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
24329         PR middle-end/56729
24330         * df-scan.c (df_insn_delete): Disable failing assert.
24332 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24334         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
24335         New function prototype.
24336         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
24337         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
24338         (arm_builtin_vectorized_function): New function.
24340 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24342         * config/arm/arm_neon_builtins.def: New file.
24343         * config/arm/arm.c (neon_builtin_data): Move contents to
24344         arm_neon_builtins.def.
24345         (enum arm_builtins): Include neon builtin definitions.
24346         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
24347         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
24349 2013-04-04  Marek Polacek  <polacek@redhat.com>
24351         PR tree-optimization/48186
24352         * predict.c (maybe_hot_frequency_p): Return false if
24353         HOT_BB_FREQUENCY_FRACTION is 0.
24354         (cgraph_maybe_hot_edge_p): Likewise.
24356 2013-04-04  Richard Biener  <rguenther@suse.de>
24358         PR tree-optimization/56826
24359         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
24360         more accurately.
24362 2013-04-04  Richard Biener  <rguenther@suse.de>
24364         PR tree-optimization/56213
24365         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
24366         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
24368 2013-04-04  Richard Biener  <rguenther@suse.de>
24370         PR tree-optimization/56837
24371         * tree-loop-distribution.c (classify_partition): For non-zero
24372         values require that the value has the same precision as its
24373         mode to be useful as memset value.
24375 2013-04-03  Nick Clifton  <nickc@redhat.com>
24377         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
24378         (fmssf4): Use fmsf.s on E3V5 architectures.
24379         (fnmasf4): Use fnmaf.s on E3V5 architectures.
24380         (fnmssf4): Use fnmsf.s on E3V5 architectures.
24382 2013-04-03  Jeff Law  <law@redhat.com>
24384         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
24385         (lra-eliminations.o): Likewise.
24387 2013-04-03  Teresa Johnson  <tejohnson@google.com>
24389         * gcov-io.c (compute_working_sets): Moved most of body of old
24390         compute_working_sets here from profile.c.
24391         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
24392         (gcov_working_set_t): Moved typedef here from basic-block.h
24393         (compute_working_set): Declare.
24394         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
24395         (get_working_sets): Renamed from compute_working_set,
24396         replace most of body with call to new compute_working_sets.
24397         (get_exec_counts): Replace call to compute_working_sets
24398         to get_working_sets.
24399         * profile.h (get_working_sets): Renamed from compute_working_set.
24400         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
24401         to get_working_sets.
24402         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
24403         * gcov-dump.c (dump_working_sets): New function.
24405 2013-04-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
24407         * hwint.c (sext_hwi, zext_hwi): New functions.
24408         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
24409         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
24410         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
24411         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
24412         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
24413         (sext_hwi, zext_hwi): New functions.
24415 2013-04-03  Jeff Law  <law@redhat.com>
24417         PR tree-optimization/56799
24418         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
24419         back test for widening conversion erroneously dropped in prior change.
24421 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24423         PR target/56809
24424         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
24425         instead of next_real_insn.
24427 2013-04-03  Marek Polacek  <polacek@redhat.com>
24429         PR sanitizer/55702
24430         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
24432 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24434         PR target/56809
24435         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
24436         next_real_insn.
24437         (thumb1_output_casesi): Likewise.
24438         (thumb2_output_casesi): Likewise.
24440 2013-04-03  Richard Biener  <rguenther@suse.de>
24442         PR tree-optimization/56817
24443         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
24444         Split out ...
24445         (tree_unroll_loops_completely_1): ... new function to manually
24446         walk the loop tree, properly defering outer loops of unrolled
24447         loops to later iterations.
24449 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
24451         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
24452         (vectorizable_load): Likewise.
24453         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
24454         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
24456 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
24458         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
24459         BIT_FIELD_REF.
24461 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24463         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
24465 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
24467         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
24469 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
24471         PR tree-optimization/56790
24472         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
24473         folding.
24475 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
24477         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
24478         Handle VEC_MERGE.
24479         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
24480         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
24481         equal arguments.
24483 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
24485         PR c/19449
24486         * tree.h (force_folding_builtin_constant_p): New decl.
24487         * builtins.c (force_folding_builtin_constant_p): New variable.
24488         (fold_builtin_constant_p): Fold immediately also if
24489         force_folding_builtin_constant_p.
24491 2013-04-03  Richard Biener  <rguenther@suse.de>
24493         PR tree-optimization/56812
24494         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
24495         DRs of the same interleaving chain are independent.
24497 2013-04-02  Jason Merrill  <jason@redhat.com>
24499         * gdbinit.in (pbb): Use debug fn.
24501 2013-04-02  Lawrence Crowl  <crowl@google.com>
24503         * sese.h (struct ivtype_map_elt_s): Remove unused.
24504         (extern debug_ivtype_map): Remove unused.
24505         (extern eq_ivtype_map_elts): Remove unused.
24506         * sese.c (debug_ivtype_map): Removed unused.
24507         (debug_ivtype_map_1): Removed unused.
24508         (debug_ivtype_elt): Remove unused.
24509         (eq_ivtype_map_elts): Remove unused.
24511 2013-04-02  Kai Tietz  <ktietz@redhat.com>
24513         PR target/52790
24514         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
24515         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
24516         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
24517         function.
24518         (legitimize_pe_coff_symbol): Likewise.
24519         (is_imported_p): New helper-function.
24520         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
24521         for Windows x64 targets.
24522         (ix86_expand_prologue): Optimize for pe-coff targets.
24523         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
24524         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
24525         medium/large code-model.
24526         (legitimize_pic_address): Likewise.
24527         (legitimize_tls_address): Likewise.
24528         (ix86_expand_call): Likewise.
24529         (x86_output_mi_thunk): Likewise.
24530         (get_dllimport_decl): Add new beimport argument.
24531         (construct_plt_address): Don't assert for x64 pe-coff targets.
24532         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
24533         targets.
24534         (SYMBOL_FLAG_STUBVAR): New macro.
24535         (SYMBOL_REF_STUBVAR_P): Likewise.
24536         * config/i386/winnt.c (stub_list): New structure.
24537         (stub_head): New local variable.
24538         (i386_pe_record_stub): New function.
24539         (i386_pe_file_end): Emit refptr-stubs.
24541 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
24543         PR rtl-optimization/56745
24544         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
24545         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
24547         PR c++/34949
24548         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
24549         and both of them are MEM_REFs, just compare first argument for
24550         equality and attempt to deal even with differing offsets.
24552         PR c++/34949
24553         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
24554         of gimple_clobber_p to be MEM_REF.
24555         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
24556         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
24557         after gimplification.
24558         * asan.c (get_mem_ref_of_assignment): Don't instrument
24559         gimple_clobber_p stmts.
24560         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
24561         gimple_clobber_p stmt if they have MEM_REF lhs and
24562         are dead because of another gimple_clobber_p stmt.
24563         * tree-ssa-live.c (clear_unused_block_pointer): Treat
24564         gimple_clobber_p stmts like debug stmts.
24565         (remove_unused_locals): Remove clobbers with MEM_REF lhs
24566         that refer to unused VAR_DECLs or uninitialized values.
24567         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
24568         gimple_clobber_p stmts if they refer to removed parameters.
24569         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
24570         formatting.
24572 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
24574         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
24575         using SWI48 mode attribute.
24577 2013-04-02  Wei Mi  <wmi@google.com>
24579         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
24580         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
24581         *<rotate_insn><mode>3_mask in i386.md.
24583 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
24585         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
24587 2013-04-02  Richard Biener  <rguenther@suse.de>
24589         PR tree-optimization/56778
24590         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
24591         Runtime alias tests are not supported for gather loads.
24592         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
24593         stmts referenced from SSA operands before updating SSA form.
24595 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
24596             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24598         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
24599         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
24600         * config/arm/cortex-a53.md: New file.
24601         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
24602         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
24603         * config/arm/arm.c (arm_issue_rate): Likewise.
24604         * config/arm/arm-tune.md: Regenerate
24605         * config/arm/arm-tables.opt: Regenerate.
24606         * config/arm/arm-cores.def: Add cortex-a53.
24608 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
24610         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
24611         non-static link.
24613 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
24615         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
24616         scalar load/store operations using B/H registers.
24617         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
24619 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
24621         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
24622         scalar move.
24623         * config/aarch64/aarch64.c
24624         (aarch64_simd_scalar_immediate_valid_for_move): New.
24625         * config/aarch64/aarch64-protos.h
24626         (aarch64_simd_scalar_immediate_valid_for_move): New.
24627         * config/aarch64/constraints.md (Dh, Dq): New.
24628         * config/aarch64/iterators.md (hq): New.
24630 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
24632         * reorg.c (get_branch_condition): Deal with conditional returns.
24633         (fill_simple_delay_slots): Remove dead code dealing with jumps.
24635 2013-04-01  Wei Mi  <wmi@google.com>
24637         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
24638         Truncate operand 2 using %b asm operand modifier.
24639         (*<shift_insn><mode>3_mask): Ditto.
24640         (*<rotate_insn><mode>3_mask): Ditto.
24642 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
24644         PR middle-end/56798
24645         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
24647 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
24649         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
24650         of next_real_insn.
24651         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
24653 2013-03-30  Lawrence Crowl  <crowl@google.com>
24655         * dse.c (clear_alias_sets): Remove never set.
24656         (disqualified_clear_alias_sets): Remove never set.
24657         (clear_alias_mode_pool): Remove never set.
24658         (dse_step0): Remove condition that is never true.
24659         (canon_address): Remove condition that is never true.
24660         (dse_step7): Remove condition that is never true.
24661         (rest_of_handle_dse): Remove condition that is never true.
24662         (rest_of_handle_dse::did_global): Remove never read from above.
24663         (dse_step2_spill): Remove never called from above.
24664         (dse_step5_spill): Remove never called from above.
24666 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
24668         * doc/md.texi (Standard Names) <casesi>: Update documentation for
24669         JUMP_TABLE_DATA changes.
24670         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
24671         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
24672         (Insns) <jump_table_data>: New entry.
24673         * doc/tm.texi: Regenerate.
24675         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
24677         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
24678         for table jump at the end of a basic block using tablejump_p.
24679         * targhooks.c (default_invalid_within_doloop): Likewise.
24680         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
24681         target hook implementation that is identical to the default hook.
24682         (rs6000_invalid_within_doloop): Remove.
24684         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
24685         unused variable from tablejump_p call.
24687         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
24688         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
24689         (INSN_DELETED_P): Likewise.
24690         (emit_jump_table_data): New prototype.
24691         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
24692         after 4th as unused.
24693         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
24694         * sched-vis.c (print_insn): Likewise.
24695         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
24696         insn for compatibility with back ends that use next_active_insn to
24697         identify jump table data.
24698         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
24699         (remove_insn): Likewise.
24700         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
24701         to be emitted.
24702         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
24703         (emit_jump_table_data): New function.
24705         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
24706         basic block, a JUMP_TABLE_DATA never is.
24707         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
24708         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
24709         off from code handling real insns.
24710         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
24711         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
24712         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
24713         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
24714         is not a NONDEBUG_INSN_P.
24715         * ira-costs.c (scan_one_insn): Likewise.
24716         * jump.c (mark_all_labels): Likewise.
24717         (mark_jump_label_1): Likewise.
24718         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
24719         * lra.c (get_insn_freq): Expect all insns reaching here to be in
24720         a basic block.
24721         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
24722         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
24723         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
24724         JUMP_TABLE_DATA_P insns.
24725         (calculate_elim_costs_all_insns): Likewise.
24726         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
24727         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
24728         (delete_output_reload): Code style fixups.
24729         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
24730         insn flags on this non-insn.
24731         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
24732         as scheduling barriers, for pre-change compatibility.
24733         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
24734         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
24736         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
24737         redundant JUMP_TABLE_DATA_P test.
24738         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
24739         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
24740         (frv_for_each_packet): Likewise.
24741         * config/i386/i386.c (min_insn_size): Likewise.
24742         (ix86_avoid_jump_mispredicts): Likewise.
24743         * config/m32r/m32r.c (m32r_is_insn): Likewise.
24744         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
24745         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
24746         (mips16_insn_length): Robustify.
24747         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
24748         (mips16_split_long_branches): Likewise.
24749         * config/pa/pa.c (pa_combine_instructions): Likewise.
24750         * config/rs6000/rs6000.c (get_next_active_insn): Treat
24751         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
24752         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
24753         as contributing to pool range lengths.
24754         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
24755         Remove redundant JUMP_TABLE_DATA_P test.
24756         (sh_loop_align): Likewise.
24757         (split_branches): Likewise.
24758         (sh_insn_length_adjustment): Likewise.
24759         * config/spu/spu.c (get_branch_target): Likewise.
24761 2013-03-29  Jan Hubicka  <jh@suse.cz>
24763         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
24764         gcov streaming; stream hot bb threshold to ltrans.
24765         * predict.c (get_hot_bb_threshold): Break out from ....
24766         (maybe_hot_count_p): ... here.
24767         (set_hot_bb_threshold): New function.
24768         * lto-section-in.c (lto_section_name): Add profile.
24769         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
24770         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
24771         and data-streamer.h
24772         (histogram_entry): New structure.
24773         (histogram, histogram_pool): New global vars.
24774         (histogram_hash): New structure.
24775         (histogram_hash::hash): New method.
24776         (histogram_hash::equal): Likewise.
24777         (account_time_size): New function.
24778         (cmp_counts): New function.
24779         (dump_histogram): New function.
24780         (ipa_profile_generate_summary): New function.
24781         (ipa_profile_write_summary): New function.
24782         (ipa_profile_read_summary): New function.
24783         (ipa_profile): Decide on threshold.
24784         (pass_ipa_profile): Add ipa_profile_write_summary and
24785         ipa_profile_read_summary.
24786         * Makefile.in (ipa.o): Update dependencies.
24787         * lto-streamer.h (LTO_section_ipa_profile): New section.
24789 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
24791         * tree.h (VAR_P): New.
24793 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
24795         PR lto/56777
24796         * doc/invoke.texi ([-fwhole-program]): Fix typo.
24798 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
24800         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
24801         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
24802         (control_flow_insn_p): Likewise.
24803         * cfgrtl.c (duplicate_insn_chain): Likewise.
24804         * final.c (get_attr_length_1): Likewise.
24805         (shorten_branches): Likewise.
24806         (final_scan_insn): Likewise.
24807         * function.c (instantiate_virtual_regs): Likewise.
24808         * gcse.c (insert_insn_end_basic_block): Likewise.
24809         * ira-costs.c (scan_one_insn): Likewise.
24810         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
24811         * lra.c (check_rtl): Likewise.
24812         * reload1.c (elimination_costs_in_insn): Likewise.
24813         * reorg.c (follow_jumps): Likewise.
24815         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
24816         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
24817         (thumb_far_jump_used_p): Likewise.
24818         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
24819         (workaround_speculation): Likewise.
24820         (add_sched_insns_for_speculation): Likewise.
24821         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
24822         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
24823         (frv_for_each_packet): Likewise.
24824         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
24825         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
24826         (final_emit_insn_group_barriers): Likewise.
24827         * config/m32r/m32r.c (m32r_is_insn): Likewise.
24828         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
24829         (mips16_insn_length): Likewise.
24830         * config/pa/pa.c (pa_reorg): Likewise.
24831         (pa_combine_instructions): Likewise.
24832         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
24833         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
24834         (sh_reorg): Likewise.
24835         (split_branches): Likewise.
24836         * config/spu/spu.c (get_branch_target): Likewise.
24838         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
24839         JUMP_TABLE_DATA_P.
24841 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
24843         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
24844         Fix declaration name.
24846 2013-03-28  Lawrence Crowl  <crowl@google.com>
24848         * graphds.h (struct graph.indicies): Remove unused.
24849         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
24850         (SCOP_ORIGINAL_PDDRS): Remove unused.
24851         * sese.h (extern insert_loop_close_phis): Removed unused.
24852         (extern insert_guard_phis): Removed unused.
24853         (extern ivtype_map_elt_info): Removed unused.
24854         (new_ivtype_map_elt): Removed unused.
24855         * sese.c (ivtype_map_elt_info): Removed unused.
24857 2013-03-28  Lawrence Crowl  <crowl@google.com>
24859         * Makefile.in: Add several missing include dependences.
24860         (DUMPFILE_H): New.
24861         (test-dump.o): New.  This object is not added to any executable,
24862         but is present for ad-hoc testing.
24863         * bitmap.c
24864         (debug (const bitmap_head_def &)): New.
24865         (debug (const bitmap_head_def *)): New.
24866         * bitmap.h
24867         (extern debug (const bitmap_head_def &)): New.
24868         (extern debug (const bitmap_head_def *)): New.
24869         * cfg.c
24870         (debug (edge_def &)): New.
24871         (debug (edge_def *)): New.
24872         * cfghooks.c
24873         (debug (basic_block_def &)): New.
24874         (debug (basic_block_def *)): New.
24875         * dumpfile.h
24876         (dump_node (const_tree, int, FILE *)): Correct source file.
24877         * dwarf2out.c
24878         (debug (die_struct &)): New.
24879         (debug (die_struct *)): New.
24880         * dwarf2out.h
24881         (extern debug (die_struct &)): New.
24882         (extern debug (die_struct *)): New.
24883         * gimple-pretty-print.c
24884         (debug (gimple_statement_d &)): New.
24885         (debug (gimple_statement_d *)): New.
24886         * gimple-pretty-print.h
24887         (extern debug (gimple_statement_d &)): New.
24888         (extern debug (gimple_statement_d *)): New.
24889         * ira-build.c
24890         (debug (ira_allocno_copy &)): New.
24891         (debug (ira_allocno_copy *)): New.
24892         (debug (ira_allocno &)): New.
24893         (debug (ira_allocno *)): New.
24894         * ira-int.h
24895         (extern debug (ira_allocno_copy &)): New.
24896         (extern debug (ira_allocno_copy *)): New.
24897         (extern debug (ira_allocno &)): New.
24898         (extern debug (ira_allocno *)): New.
24899         * ira-lives.c
24900         (debug (live_range &)): New.
24901         (debug (live_range *)): New.
24902         * lra-int.h
24903         (debug (lra_live_range &)): New.
24904         (debug (lra_live_range *)): New.
24905         * lra-lives.c
24906         (debug (lra_live_range &)): New.
24907         (debug (lra_live_range *)): New.
24908         * omega.c
24909         (debug (omega_pb_d &)): New.
24910         (debug (omega_pb_d *)): New.
24911         * omega.h
24912         (extern debug (omega_pb_d &)): New.
24913         (extern debug (omega_pb_d *)): New.
24914         * print-rtl.c
24915         (debug (const rtx_def &)): New.
24916         (debug (const rtx_def *)): New.
24917         * print-tree.c
24918         (debug_tree (tree): Move within file.
24919         (debug_raw (const tree_node &)): New.
24920         (debug_raw (const tree_node *)): New.
24921         (dump_tree_via_hooks (const tree_node *, int)): New.
24922         (debug (const tree_node &)): New.
24923         (debug (const tree_node *)): New.
24924         (debug_verbose (const tree_node &)): New.
24925         (debug_verbose (const tree_node *)): New.
24926         (debug_head (const tree_node &)): New.
24927         (debug_head (const tree_node *)): New.
24928         (debug_body (const tree_node &)): New.
24929         (debug_body (const tree_node *)): New.
24930         (debug_vec_tree (tree): Move and reimplement in terms of dump.
24931         (debug (vec<tree, va_gc> &)): New.
24932         (debug (vec<tree, va_gc> *)): New.
24933         * rtl.h
24934         (extern debug (const rtx_def &)): New.
24935         (extern debug (const rtx_def *)): New.
24936         * sbitmap.c
24937         (debug_raw (simple_bitmap_def &)): New.
24938         (debug_raw (simple_bitmap_def *)): New.
24939         (debug (simple_bitmap_def &)): New.
24940         (debug (simple_bitmap_def *)): New.
24941         * sbitmap.h
24942         (extern debug (simple_bitmap_def &)): New.
24943         (extern debug (simple_bitmap_def *)): New.
24944         (extern debug_raw (simple_bitmap_def &)): New.
24945         (extern debug_raw (simple_bitmap_def *)): New.
24946         * sel-sched-dump.c
24947         (debug (vinsn_def &)): New.
24948         (debug (vinsn_def *)): New.
24949         (debug_verbose (vinsn_def &)): New.
24950         (debug_verbose (vinsn_def *)): New.
24951         (debug (expr_def &)): New.
24952         (debug (expr_def *)): New.
24953         (debug_verbose (expr_def &)): New.
24954         (debug_verbose (expr_def *)): New.
24955         (debug (vec<rtx> &)): New.
24956         (debug (vec<rtx> *)): New.
24957         * sel-sched-dump.h
24958         (extern debug (vinsn_def &)): New.
24959         (extern debug (vinsn_def *)): New.
24960         (extern debug_verbose (vinsn_def &)): New.
24961         (extern debug_verbose (vinsn_def *)): New.
24962         (extern debug (expr_def &)): New.
24963         (extern debug (expr_def *)): New.
24964         (extern debug_verbose (expr_def &)): New.
24965         (extern debug_verbose (expr_def *)): New.
24966         (extern debug (vec<rtx> &)): New.
24967         (extern debug (vec<rtx> *)): New.
24968         * sel-sched-ir.h
24969         (_list_iter_cond_expr): Make inline instead of static.
24970         * sreal.c
24971         (debug (sreal &)): New.
24972         (debug (sreal *)): New.
24973         * sreal.h
24974         (extern debug (sreal &)): New.
24975         (extern debug (sreal *)): New.
24976         * tree.h
24977         (extern debug_raw (const tree_node &)): New.
24978         (extern debug_raw (const tree_node *)): New.
24979         (extern debug (const tree_node &)): New.
24980         (extern debug (const tree_node *)): New.
24981         (extern debug_verbose (const tree_node &)): New.
24982         (extern debug_verbose (const tree_node *)): New.
24983         (extern debug_head (const tree_node &)): New.
24984         (extern debug_head (const tree_node *)): New.
24985         (extern debug_body (const tree_node &)): New.
24986         (extern debug_body (const tree_node *)): New.
24987         (extern debug (vec<tree, va_gc> &)): New.
24988         (extern debug (vec<tree, va_gc> *)): New.
24989         * tree-cfg.c
24990         (debug (struct loop &)): New.
24991         (debug (struct loop *)): New.
24992         (debug_verbose (struct loop &)): New.
24993         (debug_verbose (struct loop *)): New.
24994         * tree-dump.c: Add header dependence.
24995         * tree-flow.h
24996         (extern debug (struct loop &)): New.
24997         (extern debug (struct loop *)): New.
24998         (extern debug_verbose (struct loop &)): New.
24999         (extern debug_verbose (struct loop *)): New.
25000         * tree-data-ref.c
25001         (debug (data_reference &)): New.
25002         (debug (data_reference *)): New.
25003         (debug (vec<data_reference_p> &)): New.
25004         (debug (vec<data_reference_p> *)): New.
25005         (debug (vec<ddr_p> &)): New.
25006         (debug (vec<ddr_p> *)): New.
25007         * tree-data-ref.h
25008         (extern debug (data_reference &)): New.
25009         (extern debug (data_reference *)): New.
25010         (extern debug (vec<data_reference_p> &)): New.
25011         (extern debug (vec<data_reference_p> *)): New.
25012         (extern debug (vec<ddr_p> &)): New.
25013         (extern debug (vec<ddr_p> *)): New.
25014         * tree-ssa-alias.c
25015         (debug (pt_solution &)): New.
25016         (debug (pt_solution *)): New.
25017         * tree-ssa-alias.h
25018         (extern debug (pt_solution &)): New.
25019         (extern debug (pt_solution *)): New.
25020         * tree-ssa-alias.c
25021         (debug (_var_map &)): New.
25022         (debug (_var_map *)): New.
25023         (debug (tree_live_info_d &)): New.
25024         (debug (tree_live_info_d *)): New.
25025         * tree-ssa-alias.h
25026         (extern debug (_var_map &)): New.
25027         (extern debug (_var_map *)): New.
25028         (extern debug (tree_live_info_d &)): New.
25029         (extern debug (tree_live_info_d *)): New.
25031 2013-03-28  Jan Hubicka  <jh@suse.cz>
25033         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
25035 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
25037         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
25038         record only when desired or required.
25040 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
25042         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
25043         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
25045 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
25047         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
25048         (*andsi3_compare0_uxtw): New pattern.
25049         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
25050         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
25052 2013-03-28  Jan Hubicka  <jh@suse.cz>
25054         * data-streamer-in.c (streamer_read_gcov_count): New function.
25055         * gimple-streamer-out.c: Include value-prof.h.
25056         (output_gimple_stmt): Output histogram.
25057         (output_bb): Use streamer_write_gcov_count.
25058         * value-prof.c: Include data-streamer.h
25059         (dump_histogram_value): Add HIST_TYPE_MAX.
25060         (stream_out_histogram_value): New function.
25061         (stream_in_histogram_value): New function.
25062         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
25063         (stream_out_histogram_value, stream_in_histogram_value): Declare.
25064         * data-streamer-out.c (streamer_write_gcov_count): New function.
25065         (streamer_write_gcov_count_stream): New function.
25066         * lto-cgraph.c (lto_output_edge): Update counter streaming.
25067         (lto_output_node): Likewise.
25068         (input_node, input_edge): Likewise.
25069         * lto-streamer-out.c (output_cfg): Update streaming.
25070         * lto-streamer-in.c (input_cfg): Likewise.
25071         * data-streamer.h (streamer_write_gcov_count,
25072         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
25073         * gimple-streamer-in.c: Include value-prof.h
25074         (input_gimple_stmt): Input histograms.
25075         (input_bb): Update profile streaming.
25077 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
25079         * genmodes.c (emit_max_int): New function.
25080         (emit_insn_modes_h): Added call to emit_max_function.
25081         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
25082         Added doc.
25083         * machmode.def: Fixed comment.
25085 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
25087         * combine.c (try_combine): Removed useless assert.
25088         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
25090 2013-03-28  Marek Polacek  <polacek@redhat.com>
25091             Richard Biener  <rguenther@suse.de>
25093         PR tree-optimization/56695
25094         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
25095         build signed result of a vector comparison.
25096         * tree-cfg.c (verify_gimple_comparison): Check that a result
25097         of a vector comparison has signed type.
25099 2013-03-28  Richard Biener  <rguenther@suse.de>
25101         PR tree-optimization/37021
25102         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
25103         do not restrict gaps between groups.
25104         * tree-vect-stmts.c (vectorizable_load): Properly account for
25105         a gap between groups.
25107 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
25109         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
25110         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
25111         is not enabled.
25113 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
25115         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
25116         * doc/extend.texi (Named Address Spaces): Ditto.
25117         (Variable Attributes): Ditto.
25119 2013-03-27  Kai Tietz  <ktietz@redhat.com>
25121         * config.build: Add support for cygwin x64 target.
25122         * config.gcc: Likewise.
25123         * config.host: Likewise.
25124         * configure.ac: Likewise
25125         * configure: Regenerated.
25127 2013-03-27  Kai Tietz  <ktietz@redhat.com>
25129         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
25130         * config/i386/t-cygwin-w64: New file.
25131         * config/i386/cygwin-w64.h: New file.
25132         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
25133         and add support for x64-cygwin target.
25134         (CPP_SPEC): Likewise.
25135         (CXX_WRAP_SPEC_LIST): Undefine before define.
25136         (LIBGCJ_SONAME): Use 15 as version.
25138 2013-03-27  Richard Biener  <rguenther@suse.de>
25140         PR tree-optimization/56716
25141         * tree-ssa-structalias.c (perform_var_substitution): Adjust
25142         dumping for ref nodes.
25144 2013-03-27  Martin Jambor  <mjambor@suse.cz>
25146         PR tree-optimization/55334
25147         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
25148         restricted pointers to arrays.
25150 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
25152         * Makefile.in (.SUFFIXES): Add .cc.
25153         (.c.o): Apply same recipe for implicit rule .cc.o.
25155 2013-03-27  Richard Biener  <rguenther@suse.de>
25157         PR tree-optimization/37021
25158         * tree-vect-data-refs.c (vect_check_strided_load): Allow
25159         REALPART/IMAGPART_EXPRs around the supported refs.
25160         * tree-ssa-structalias.c (find_func_aliases): Assume that
25161         floating-point values are not used to transfer pointers.
25163 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
25165         * target.def (TARGET_HAS_IFUNC_P): New target hook.
25166         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
25167         * doc/tm.texi: Regenerate.
25168         * targhooks.h (default_has_ifunc_p): New.
25169         * targhooks.c (default_has_ifunc_p): Ditto.
25170         * config/linux-protos.h: New file.
25171         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
25172         hook for linux which disables support of indirect functions in android.
25173         * config/linux-android.c: New file.
25174         * config/t-linux-android.c: Ditto.
25175         * config.gcc: Added new object file linux-android.o.
25176         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
25177         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
25178         * varasm.c (do_assemble_alias): Likewise.
25179         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
25180         doesn't support indirect functions.
25181         * configure: Regenerate.
25183 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
25185         PR target/56102
25186         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
25187         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
25188         mult-word mode.
25190 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25192         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
25194 2013-03-27  Terry Guo  <terry.guo@arm.com>
25196         * config/arm/arm-cores.def: Added core cortex-r7.
25197         * config/arm/arm-tune.md: Regenerated.
25198         * config/arm/arm-tables.opt: Regenerated.
25199         * doc/invoke.texi: Added entry for core cortex-r7.
25201 2013-03-27  Walter Lee  <walt@tilera.com>
25203         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
25204         double-decrement of next_scratch_regno.
25206 2013-03-27  Walter Lee  <walt@tilera.com>
25208         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
25209         input operands.
25210         (insn_v1mulus): Ditto.
25211         (insn_v2muls): Ditto.
25213 2013-03-27  Walter Lee  <walt@tilera.com>
25215         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
25216         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
25218 2013-03-27  Walter Lee  <walt@tilera.com>
25220         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
25221         (*sibcall_value): Ditto.
25223 2013-03-27  Walter Lee  <walt@tilera.com>
25225         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
25226         (insn_mnz_v8qi): ... this ...
25227         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
25228         vector equivalent.
25229         (insn_v<n>mnz): Replaced by ...
25230         (insn_v1mnz): ... this ...
25231         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
25232         equivalent.
25233         (insn_mz_<mode>): Replaced by ...
25234         (insn_mz_v8qi): ... this ...
25235         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
25236         vector equivalent.
25237         (insn_v<n>mz): Replaced by ...
25238         (insn_v1mz): ... this ...
25239         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
25240         equivalent.
25242 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
25244         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
25246 2013-03-26  Roland McGrath  <mcgrathr@google.com>
25248         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
25249         than fprintf with a non-constant, non-format string.
25251 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
25253         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
25254         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
25255         operand 0 predicate.
25256         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
25257         attribute.  Use general_x64nomem_operand as operand 1 predicate.
25258         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
25259         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
25260         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
25261         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
25262         (mov<mode>_insv_1): Remove expander.  Merge insn with
25263         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
25264         Use general_x64nomem_operand as operand 1 predicate.
25265         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
25266         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
25267         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
25268         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
25269         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
25270         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
25271         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
25272         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
25273         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
25274         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
25275         (general_x64nomem_operand): Ditto.
25277 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
25279         * config/rtems.opt: Add -pthread option.
25281 2013-03-26  Richard Biener  <rguenther@suse.de>
25283         * alias.c (find_base_term): Avoid redundant and not used recursion.
25284         (base_alias_check): Get the initial base term from the caller.
25285         (true_dependence_1): Compute and pass base terms to base_alias_check.
25286         (write_dependence_p): Likewise.
25287         (may_alias_p): Likewise.
25289 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
25291         * config/aarch64/aarch64.c (aarch64_classify_address): Support
25292         PC-relative load in SI modes and above only.
25294 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
25296         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
25297         * config/arm/iwmmxt.md (WCGR0): Update.
25298         (WCGR1, WCGR2, WCGR3): Likewise.
25300 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
25302         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
25303         Use x64 and nox64 isa attributes.
25305 2013-03-26  Richard Biener  <rguenther@suse.de>
25307         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
25308         alignment computations and rely on get_object_alignment_1
25309         for the !TYPE_P case.
25310         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
25312 2013-03-26  Walter Lee  <walt@tilera.com>
25314         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
25315         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
25317 2013-03-25  Jeff Law  <law@redhat.com>
25319         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
25320         check for INTEGRAL_TYPE_P that was missing due to checking in
25321         wrong version of prior patch.
25323 2013-03-25  Walter Lee  <walt@tilera.com>
25325         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
25326         TILEGX_INSN_SHUFFLEBYTES1.
25327         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
25328         shufflebytes1.
25329         (tilegx_builtins): Ditto.
25330         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
25332 2013-03-25  Walter Lee  <walt@tilera.com>
25334         * config/tilegx/tilegx.md (floatsisf2): New pattern.
25335         (floatunssisf2): New pattern.
25336         (floatsidf2): New pattern.
25337         (floatunssidf2): New pattern.
25339 2013-03-25  Walter Lee  <walt@tilera.com>
25341         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
25342         tests for constraint J, K, N, P.
25344 2013-03-25  Walter Lee  <walt@tilera.com>
25346         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
25347         Use indirect/pcrel encoding.
25348         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
25349         Ditto.
25351 2013-03-25  Steve Ellcey  <sellcey@mips.com>
25353         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
25354         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
25355         * config/mips/mips.c (mips_option_override): Set IMADD default.
25356         * config/mips/mips.h (PTF_AVOID_IMADD): New.
25357         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
25358         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
25359         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
25360         * doc/invoke.texi (-mimadd/-mno-imadd): New.
25362 2013-03-25  Jeff Law  <law@redhat.com>
25364         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
25365         slightly to avoid creating and folding useless trees.  Simplify
25366         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
25368 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
25370         * config/i386/i386.md (*zero_extendsidi2): Merge with
25371         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
25372         * config/i386/predicates.md (x86_64_zext_operand): Rename from
25373         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
25374         targets.  Clarify comment.
25376 2013-03-25  Martin Jambor  <mjambor@suse.cz>
25378         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
25379         pass-through jump functions differently.
25380         (ipa_read_jump_function): Likewise.  Also use setter functions to set
25381         up jump functions.
25383 2013-03-25  Martin Jambor  <mjambor@suse.cz>
25385         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
25386         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
25387         process it.
25388         (ipa_get_indirect_edge_target): New function.
25389         (devirtualization_time_bonus): New parameter known_aggs, pass it to
25390         ipa_get_indirect_edge_target.  Update all callers.
25391         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
25392         ipa_get_indirect_edge_target_1 instead of calling
25393         ipa_get_indirect_edge_target.
25394         (create_specialized_node): Pass aggvlas to
25395         ipcp_discover_new_direct_edges.
25397 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25399         * config/arm/arm.md (f_sels, f_seld): New types.
25400         (*cmov<mode>): New pattern.
25401         * config/arm/predicates.md (arm_vsel_comparison_operator): New
25402         predicate.
25404 2013-03-25  Kai Tietz  <ktietz@redhat.com>
25406         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
25407         POSIX-printf for mingw-hosted  builds.
25409 2013-03-25  Richard Biener  <rguenther@suse.de>
25411         PR middle-end/56694
25412         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
25413         must-not-throw stmt location.
25415 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25417         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
25418         Emit load-acquire versions when acq is true.
25419         (arm_emit_store_exclusive): Add rel parameter.
25420         Emit store-release versions when rel is true.
25421         (arm_split_compare_and_swap): Use acquire-release instructions
25422         instead.
25423         of barriers when appropriate.
25424         (arm_split_atomic_op): Likewise.
25425         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
25426         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
25427         (VUNSPEC_SLX): Likewise.
25428         (VUNSPEC_LDA): Likewise.
25429         (VUNSPEC_STL): Likewise.
25430         * config/arm/sync.md (atomic_load<mode>): New pattern.
25431         (atomic_store<mode>): Likewise.
25432         (arm_load_acquire_exclusive<mode>): Likewise.
25433         (arm_load_acquire_exclusivesi): Likewise.
25434         (arm_load_acquire_exclusivedi): Likewise.
25435         (arm_store_release_exclusive<mode>): Likewise.
25437 2013-03-25  Catherine Moore  <clm@codesourcery.com>
25439         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
25440         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
25441         * config/mip/predicates.md (lwsp_swsp_operand,
25442         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
25443         sb16_operand, db4_operand, db7_operand, ib3_operand,
25444         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
25445         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
25446         andi16_operand): New predicates.
25447         * config/mips/mips.md (compression): New attribute.
25448         (enabled): New attribute.
25449         (length): Consider compression in computing length.
25450         (shift_compression): New code attribute.
25451         (*add<mode>3): New operands. Record compression.
25452         (sub<mode>3): Likewise.
25453         (one_cmpl<mode>2): Likewise.
25454         (*and<mode>3): Likewise.
25455         (*ior<mode>3): Likewise.
25456         (unnamed pattern for xor): Likewise.
25457         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
25458         (*<optab><mode>3): Likewise.
25459         (*mov<mode>_internal: Likewise.
25460         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
25461         (mips_unsigned_immediate_p): New.
25462         (umips_lwsp_swsp_address_p): New.
25463         (m16_based_address_p): New.
25464         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
25465         (mips_unsigned_immediate_p): New prototype.
25466         (lwsp_swsp_address_p): New prototype.
25467         (m16_based_address_p): New prototype.
25468         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
25469         (mips_signed_immediate_p): New function.
25470         (m16_based_address_p): New function.
25471         (lwsp_swsp_address_p): New function.
25472         (mips_print_operand_punctuation): Recognize short delay slot insns
25473         for microMIPS.add<mode>3"
25475 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25477         PR target/56720
25478         * config/arm/iterators.md (v_cmp_result): New mode attribute.
25479         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
25481 2013-03-25  Richard Biener  <rguenther@suse.de>
25483         PR tree-optimization/56689
25484         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
25485         any edge.
25487 2013-03-25  Richard Biener  <rguenther@suse.de>
25489         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
25490         of bitmap.
25491         (memory_references): Likewise.
25492         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
25493         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
25494         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
25495         (gather_mem_refs_in_loops): Fold into ...
25496         (analyze_memory_references): ... this.  Move initialization
25497         to tree_ssa_lim_initialize.
25498         (fill_always_executed_in): Rename to ...
25499         (fill_always_executed_in_1): ... this.
25500         (fill_always_executed_in): Move contains_call computation to
25501         this new function from ...
25502         (tree_ssa_lim_initialize): ... here.
25503         (tree_ssa_lim): Call fill_always_executed_in.
25505 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
25507         * postreload.c (reload_combine): Fix code detecting returns.
25509 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
25511         * function.c (emit_use_return_register_into_block): On cc0 targets,
25512         do not emit the sequence between cc0 setter and user.
25514 2013-03-25  Kai Tietz  <ktietz@redhat.com>
25516         * config/i386/predicates.md (local_symbolic_operand): Interpret
25517         dll-imported symbols as none-local.
25519 2013-03-25  Richard Biener  <rguenther@suse.de>
25521         * tree-ssa-loop-im.c (struct depend): Remove.
25522         (struct lim_aux_data): Make depends a vec of gimples.
25523         (free_lim_aux_data): Adjust.
25524         (add_dependency): Likewise.
25525         (set_level): Likewise.
25527 2013-03-25  Richard Biener  <rguenther@suse.de>
25529         PR middle-end/56434
25530         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
25531         the pointer returned by calls with ECF_MALLOC set.
25533 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
25535         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
25537 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
25539         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
25540         using MMXMODE mode iterator.
25541         (*move<mode>_internal): Merge with *movv2sf_internal and
25542         *movv2sf_internal_rex64 using MMXMODE mode iterator.
25544 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
25546         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
25547         (record_last_mem_set_info): Likewise.
25549         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
25550         of XNEWVEC followed by memset.
25551         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
25553 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
25555         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
25556         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
25557         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
25558         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
25559         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
25560         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
25561         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
25562         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
25563         BARRIER_P instead of GET_CODE.
25565 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
25567         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
25568         inaccuracy in the probing code.
25570         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
25571         (ctrapdi4): Likewise.
25573 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
25575         * calls.c (expand_call): Add missing guard to code handling return
25576         of non-BLKmode structures in MSB.
25577         * function.c (expand_function_end): Likewise.
25579 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
25581         * combine.c (try_combine): Adjust comment.  Do not add the set of
25582         insn #0 if the destination indirectly is set or dies in insn #2.
25583         Tidy up code to distribute a new note.
25585 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
25587         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
25588         also for alternatives 16 and 17.
25590 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
25592         * config/i386/sse.md (*mov<mode>_internal): Merge with
25593         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
25594         Emit insn template depending on type attribute.  Use
25595         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
25596         movd instead of movq mnemonic for interunit moves.  Rewrite mode
25597         attribute calculation.  Remove unit attribute calculation.
25598         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
25599         Set prefix_data16 attribute for DImode ssemov types.
25600         Use Ym instead of y for SSE-MMX conversion alternatives.
25601         Reorder operand constraints.
25603 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
25605         * df.h (df_insn_delete): Adjust prototype.
25606         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
25607         and let it decide whether mark the basic block dirty.
25608         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
25609         * df-scan.c (df_insn_info_delete): New helper function, split
25610         off from df_insn_delete.
25611         (df_scan_free_bb_info): Use it.
25612         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
25613         Likewise.
25614         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
25615         that the insn is actually an insn and it has a non-NULL basic block.
25616         Do not mark basic block dirty if only deleting a DEBUG_INSN.
25618 2013-03-22  Richard Biener  <rguenther@suse.de>
25620         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
25621         dep_ref members.
25622         (mem_ref_alloc): Do not allocate them.
25623         (refs_independent_p): Do not query or maintain a cache.
25625 2013-03-22  Richard Biener  <rguenther@suse.de>
25627         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
25628         (gather_mem_refs_in_loops): Do not compute it.
25629         (analyze_memory_references): Do not allocate it.
25630         (tree_ssa_lim_finalize): Do not free it.
25631         (for_all_locs_in_loop): Do not query all_refs_in_loop.
25633 2013-03-22  Richard Biener  <rguenther@suse.de>
25635         * is-a.h (as_a): Use gcc_checking_assert.
25637 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
25639         * config/aarch64/aarch64.c (aarch64_print_operand): New
25640         format specifier for printing a constant in hex.
25641         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
25642         format specifier for printing second operand.
25644 2013-03-22  Richard Biener  <rguenther@suse.de>
25646         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
25647         bitmaps.
25648         (gather_mem_refs_in_loops): Perform store accumulation here.
25649         (create_vop_ref_mapping_loop): Remove.
25650         (create_vop_ref_mapping): Likewise.
25651         (analyze_memory_references): Initialize refs_stored_in_loop.
25652         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
25653         (record_indep_loop): Remove.
25654         (record_dep_loop): New function.
25655         (ref_indep_loop_p_1): Adjust to only walk over references
25656         in the loop, not its subloops.
25657         (ref_indep_loop_p): Rename to ...
25658         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
25659         maintaining a more fine-grained cache.
25660         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
25661         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
25663 2013-03-22  Richard Biener  <rguenther@suse.de>
25665         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
25666         (struct mem_ref): Make accesses_in_loop a vec of a vec of
25667         aggregate mem_ref_loc.
25668         (free_mem_ref_locs): Inline into ...
25669         (memref_free): ... this and adjust.
25670         (mem_ref_alloc): Adjust.
25671         (mem_ref_locs_alloc): Remove.
25672         (record_mem_ref_loc): Adjust.
25673         (get_all_locs_in_loop): Rewrite into ...
25674         (for_all_locs_in_loop): ... this iterator.
25675         (rewrite_mem_ref_loc): New functor.
25676         (rewrite_mem_refs): Use for_all_locs_in_loop.
25677         (sm_set_flag_if_changed): New functor.
25678         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
25679         (ref_always_accessed): New functor.
25680         (ref_always_accessed_p): Use for_all_locs_in_loop.
25682 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
25684         * tree-pass.h (PROP_gimple_lvec): New.
25685         * passes.c (dump_properties): Handle PROP_gimple_lvec.
25686         (init_optimization_passes): Move pass_lower_vector.
25687         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
25688         PROP_gimple_lvec.
25689         (pass_lower_vector): Provide PROP_gimple_lvec.
25690         (pass_lower_vector_ssa): Likewise.
25691         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
25693 2013-03-21  Mark Wielaard  <mjw@redhat.com>
25695         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
25697 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
25699         * config/i386/i386.md (*movdi_internal): Disparage slightly
25700         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
25701         conversion alternatives.
25703 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
25705         PR middle-end/48087
25706         * diagnostic.def (DK_WERROR): New kind.
25707         * diagnostic.h (werrorcount): Define.
25708         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
25709         promoted to DK_ERROR, increment DK_WERROR counter instead of
25710         DK_ERROR counter.
25711         * toplev.c (toplev_main): Call print_ignored_options even if
25712         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
25713         even if just werrorcount is non-zero.
25715         PR debug/55608
25716         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
25717         on failure.
25718         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
25719         (string_cst_pool_decl): New function.
25720         (optimize_one_addr_into_implicit_ptr): New function.
25721         (resolve_addr_in_expr): Optimize DWARF location expression
25722         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
25723         which doesn't live in memory, but has DW_AT_location or
25724         DW_AT_const_value, or refers to a string literal, into
25725         DW_OP_GNU_implicit_pointer.
25726         (optimize_location_into_implicit_ptr): New function.
25727         (resolve_addr): If removing DW_AT_location of a variable because
25728         it was DW_OP_addr of address of the variable, but the variable doesn't
25729         live in memory, try to emit const value attribute for the initializer.
25731 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
25733         * tree.h (VECTOR_TYPE_P): New macro.
25734         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
25735         TYPE_MODE): Use it.
25736         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
25737         VEC_COND_EXPR cannot be lvalues.
25738         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
25740 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
25742         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
25743         Restrict the transformation to equal modes.
25745 2013-03-21  Richard Biener  <rguenther@suse.de>
25747         PR tree-optimization/39326
25748         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
25749         (MEM_ANALYZABLE): Adjust.
25750         (record_mem_ref_loc): Move bitmap ops ...
25751         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
25752         unanalyzable refs, do not record locations for it.
25753         (analyze_memory_references): Allocate ref zero as shared
25754         unanalyzable ref.
25755         (refs_independent_p): Do not test for unanalyzed mems here.
25756         (ref_indep_loop_p_1): Special-case disambiguation against
25757         the unanalyzed ref.
25758         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
25760 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
25762         * config/arm/arm-protos.h (tune_params): Add
25763         prefer_neon_for_64bits field.
25764         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
25765         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
25766         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
25767         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
25768         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
25769         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
25770         (arm_option_override): Handle -mneon-for-64bits new option.
25771         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
25772         (prefer_neon_for_64bits): Declare new variable.
25773         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
25774         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
25775         (arch_enabled): Handle new arch types. Remove support for onlya8
25776         and nota8.
25777         (one_cmpldi2): Use new arch names.
25778         (zero_extend<mode>di2, extend<mode>di2): Ditto.
25779         * config/arm/arm.opt (mneon-for-64bits): Add option.
25780         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
25781         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
25782         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
25783         of onlya8.
25784         * doc/invoke.texi (-mneon-for-64bits): Document.
25786 2013-03-21  Richard Biener  <rguenther@suse.de>
25788         PR tree-optimization/39326
25789         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
25790         (sort_bbs_in_loop_postorder_cmp): New function.
25791         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
25793 2013-03-21  Richard Biener  <rguenther@suse.de>
25795         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
25796         (vect_insert_into_interleaving_chain): Likewise.
25797         (vect_drs_dependent_in_basic_block): Inline ...
25798         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
25799         split out from ...
25800         (vect_analyze_data_ref_dependence): ... here.  Simplify.
25801         (vect_check_interleaving): Simplify.
25802         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
25803         (vect_slp_analyze_data_ref_dependences): ... this new function.
25804         (dr_group_sort_cmp): New function.
25805         (vect_analyze_data_ref_accesses): Compute data-reference groups
25806         here instead of in vect_analyze_data_ref_dependence.  Use
25807         a more efficient algorithm.
25808         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
25809         vect_slp_analyze_data_ref_dependences.  Call
25810         vect_analyze_data_ref_accesses earlier.
25811         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
25812         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
25813         (vect_slp_analyze_data_ref_dependences): New prototype.
25815 2013-03-21  Richard Biener  <rguenther@suse.de>
25817         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
25818         ref is stored in the loop.
25819         (find_refs_for_sm): Walk only over all stores.
25820         (store_motion_loop): Allocate from lim_bitmap_obstack.
25821         (store_motion): Likewise.
25823 2013-03-21  Richard Biener  <rguenther@suse.de>
25825         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
25826         Update virtual SSA form.
25828 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25830         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
25831         * configure: Regenerate.
25832         * config.in: Regenerate.
25833         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
25834         if !HAVE_LD_EH_FRAME_CIEV3.
25836 2013-03-21  Richard Biener  <rguenther@suse.de>
25838         * tree-cfg.c (verify_expr_no_block): New function.
25839         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
25840         nor DECL_VALUE_EXPR have locations with associated blocks.
25841         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
25842         (clear_unused_block_pointer): Remove code dealing with
25843         blocks in DECL_DEBUG_EXPR locations.
25845 2013-03-21  Richard Biener  <rguenther@suse.de>
25847         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
25848         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
25849         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
25850         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
25851         instead of DECL_DEBUG_EXPR_IS_FROM.
25852         * gimplify.c (gimplify_modify_expr): Likewise.
25853         * tree-cfg.c (verify_expr_location_1): Likewise.
25854         * tree-complex.c (create_one_component_var): Likewise.
25855         * tree-sra.c (create_access_replacement): Likewise.
25856         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
25857         (clear_unused_block_pointer): Likewise.
25858         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
25859         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
25860         * var-tracking.c (var_debug_decl): Likewise.
25861         (track_expr_p): Likewise.
25862         * tree-inline.c (add_local_variables): Likewise.  Set
25863         DECL_HAS_DEBUG_EXPR_P after copying it.
25864         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
25865         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
25867 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
25869         PR bootstrap/56656
25870         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
25871         * configure: Regenerate.
25872         * config.in: Regenerate.
25873         * config/i386/i386.md (*movdf_internal): Use
25874         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
25875         movd instead of movq mnemonic for interunit moves.
25876         (*movdi_internal): Ditto.
25878 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
25880         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
25881         (abd<mode>_3): New pattern.
25882         (aba<mode>_3): New pattern.
25883         (fabd<mode>_3): New pattern.
25885 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
25887         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
25888         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
25889         occurrence of REGISTER_PREFIX as its empty string.
25891 2013-03-20  Jeff Law  <law@redhat.com>
25893         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
25894         addititional equivalences for equality comparisons between an SSA_NAME
25895         and a constant where the SSA_NAME was set from a widening conversion.
25897 2013-03-20  Walter Lee  <walt@tilera.com>
25899         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
25901 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
25903         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
25904         depending on type attribute.
25905         (*movti_internal): Ditto.
25906         (*movtf_internal): Ditto.
25907         (*movxf_internal): Ditto.
25908         (*movdf_internal): Ditto.
25909         (*movsf_internal): Ditto.
25911 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
25913         * config/i386/i386.md (*movti_internal): Set prefix attribute to
25914         maybe_vex for sselog1 and ssemov types.
25915         (*movdi_internal): Reorder operand constraints.
25916         (*movsi_internal): Ditto.  Set prefix attribute to
25917         maybe_vex for sselog1 and ssemov types.
25918         (*movtf_internal): Set prefix attribute to maybe_vex
25919         for sselog1 and ssemov types.
25920         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
25921         DImode ssemov types.  Reorder operand constraints.
25922         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
25923         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
25924         attribute for SImode ssemov types.  Reorder operand constraints.
25926 2013-03-20  Martin Jambor  <mjambor@suse.cz>
25928         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
25929         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
25931 2013-03-20  Pat Haugen  <pthaugen@us.ibm.com>
25933         * config/rs6000/predicates.md (indexed_address, update_address_mem
25934         update_indexed_address_mem): New predicates.
25935         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
25936         attribute for load/store instructions.
25937         * config/rs6000/dfp.md (movsd_store): Likewise.
25938         (movsd_load): Likewise.
25939         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
25940         (unnamed HI->DI extend define_insn): Likewise.
25941         (unnamed SI->DI extend define_insn): Likewise.
25942         (unnamed QI->SI extend define_insn): Likewise.
25943         (unnamed QI->HI extend define_insn): Likewise.
25944         (unnamed HI->SI extend define_insn): Likewise.
25945         (unnamed HI->SI extend define_insn): Likewise.
25946         (extendsfdf2_fpr): Likewise.
25947         (movsi_internal1): Likewise.
25948         (movsi_internal1_single): Likewise.
25949         (movhi_internal): Likewise.
25950         (movqi_internal): Likewise.
25951         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
25952         attribute for load/store instructions.
25953         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
25954         instructions.
25955         (mov<mode>_softfloat): Likewise.
25956         (mov<mode>_hardfloat32): Likewise.
25957         (mov<mode>_hardfloat64): Likewise.
25958         (mov<mode>_softfloat64): Likewise.
25959         (movdi_internal32): Likewise.
25960         (movdi_internal64): Likewise.
25961         (probe_stack_<mode>): Likewise.
25963 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
25965         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
25966         floating point, and decimal floating point to reload iterator.
25968         * config/rs6000/constraints.md (wl constraint): New constraints to
25969         return FLOAT_REGS if certain options are used to reduce the number
25970         of separate patterns that exist in the file.
25971         (wx constraint): Likewise.
25972         (wz constraint): Likewise.
25974         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
25975         -mdebug=reg, print wg, wl, wx, and wz constraints.
25976         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
25977         Initialize the reload functions for 64-bit binary/decimal floating
25978         point types.
25979         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
25980         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
25981         create the buffer on the stack to overcome not having a 32-bit
25982         load and store.
25983         (rs6000_emit_move): Likewise.
25984         (rs6000_secondary_memory_needed_rtx): Likewise.
25985         (rs6000_alloc_sdmode_stack_slot): Likewise.
25986         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
25987         via xxlxor, just like DFmode 0.0.
25989         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
25990         define as 1 if we are running on a power7 or newer.
25991         (enum r6000_reg_class_enum): Add new constraints.
25993         * config/rs6000/dfp.md (movsd): Delete, combine with binary
25994         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
25995         with other moves by using conditional constraits (wg).  Use LFIWZX
25996         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
25997         (movsd splitter): Likewise.
25998         (movsd_hardfloat): Likewise.
25999         (movsd_softfloat): Likewise.
26001         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
26002         binary and decimal floating point moves.
26003         (fmove_ok): New attributes to combine binary and decimal floating
26004         point moves, and to combine power6x (mfpgpr) moves along normal
26005         floating moves.
26006         (real_value_to_target): Likewise.
26007         (f32_lr): Likewise.
26008         (f32_lm): Likewise.
26009         (f32_li): Likewise.
26010         (f32_sr): Likewise.
26011         (f32_sm): Likewise.
26012         (f32_si): Likewise.
26013         (movsf): Combine binary and decimal floating point moves.  Combine
26014         power6x (mfpgpr) moves with other moves by using conditional
26015         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
26016         (mov<mode> for SFmode/SDmode); Likewise.
26017         (SFmode/SDmode splitters): Likewise.
26018         (movsf_hardfloat): Likewise.
26019         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
26020         (movsf_softfloat): Likewise.
26021         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
26023         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
26024         wx and wz constraints.
26026         * config/rs6000/constraints.md (wg constraint): New constraint to
26027         return FLOAT_REGS if -mmfpgpr (power6x) was used.
26029         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
26030         constraint.
26032         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
26033         -mdebug=reg, print wg, wl, wx, and wz constraints.
26034         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
26035         Initialize the reload functions for 64-bit binary/decimal floating
26036         point types.
26037         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
26038         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
26039         create the buffer on the stack to overcome not having a 32-bit
26040         load and store.
26041         (rs6000_emit_move): Likewise.
26042         (rs6000_secondary_memory_needed_rtx): Likewise.
26043         (rs6000_alloc_sdmode_stack_slot): Likewise.
26044         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
26045         via xxlxor, just like DFmode 0.0.
26047         * config/rs6000/dfp.md (movdd): Delete, combine with binary
26048         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
26049         with other moves by using conditional constraits (wg).  Use LFIWZX
26050         and STFIWX for loading SDmode on power7.
26051         (movdd splitters): Likewise.
26052         (movdd_hardfloat32): Likewise.
26053         (movdd_softfloat32): Likewise.
26054         (movdd_hardfloat64_mfpgpr): Likewise.
26055         (movdd_hardfloat64): Likewise.
26056         (movdd_softfloat64): Likewise.
26058         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
26059         64-bit binary and decimal floating point moves.
26060         (FMOVE64X): Likewise.
26061         (movdf): Combine 64-bit binary and decimal floating point moves.
26062         Combine power6x (mfpgpr) moves with other moves by using
26063         conditional constraits (wg).
26064         (mov<mode> for DFmode/DDmode): Likewise.
26065         (DFmode/DDmode splitters): Likewise.
26066         (movdf_hardfloat32): Likewise.
26067         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
26068         (movdf_softfloat32): Likewise.
26069         (movdf_hardfloat64_mfpgpr): Likewise.
26070         (movdf_hardfloat64): Likewise.
26071         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
26072         (movdf_softfloat64): Likewise.
26073         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
26074         (reload_<mode>_load): Move to later in the file so they aren't in
26075         the middle of the floating point move insns.
26076         (reload_<mode>_store): Likewise.
26078         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
26079         constraint.
26081         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
26082         constraint if -mdebug=reg.
26083         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
26084         Enable using dd reload support if needed.
26086         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
26087         binary and decimal floating point moves in rs6000.md.
26088         (movtd_internal): Likewise.
26090         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
26091         decimal floating point moves.
26092         (movtf): Likewise.
26093         (movtf_internal): Likewise.
26094         (mov<mode>_internal, TDmode/TFmode): Likewise.
26095         (movtf_softfloat): Likewise.
26096         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
26098         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
26099         movdi_internal64, using wg constraint for move direct operations.
26100         (movdi_internal64): Likewise.
26102         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
26103         MODES_TIEABLE_P for selected modes.  Print the numerical value of
26104         the various virtual registers. Use GPR/FPR first/last values,
26105         instead of hard coding the register numbers.  Print which modes
26106         have reload functions registered.
26107         (rs6000_option_override_internal): If -mdebug=reg, trace the options
26108         settings before/after setting cpu, target and subtarget settings.
26109         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
26110         and for secondary reload failures in rs6000_secondary_reload_inner.
26111         (rs6000_secondary_reload_fail): Likewise.
26112         (rs6000_secondary_reload_inner): Likewise.
26114         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
26115         macros for first/last GPR and FPR registers.
26116         (LAST_GPR_REGNO): Likewise.
26117         (FIRST_FPR_REGNO): Likewise.
26118         (LAST_FPR_REGNO): Likewise.
26120         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
26121         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
26122         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
26123         (vcond<mode><mode>): Likewise.
26124         (vcondu<mode><mode>): Likewise.
26125         (vector_gtu<mode>): Likewise.
26126         (vector_gte<mode>): Likewise.
26127         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
26128         to prevent the compiler from converting DImode operations to TImode.
26129         (ior<mode>3): Likewise.
26130         (and<mode>3): Likewise.
26131         (one_cmpl<mode>2): Likewise.
26132         (nor<mode>3): Likewise.
26133         (andc<mode>3): Likewise.
26135         * config/rs6000/constraints.md (wt constraint): New constraint
26136         that returns VSX_REGS if TImode is allowed in VSX registers.
26138         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
26139         constant under VSX.
26141         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
26142         similar to TImode, but it is restricted to being in the GPRs.
26144         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
26145         TImode to occupy a single VSX register.
26147         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
26148         -mvsx-timode for power7/power8.
26149         (power7 cpu): Likewise.
26150         (power8 cpu): Likewise.
26152         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
26153         sure that TFmode/TDmode take up two registers if they are ever
26154         allowed in the upper VSX registers.
26155         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
26156         registers.
26157         (rs6000_init_hard_regno_mode_ok): Likewise.
26158         (rs6000_debug_reg_global): Add debugging for PTImode and wt
26159         constraint.  Print if LRA is turned on.
26160         (rs6000_option_override_internal): Give an error if -mvsx-timode
26161         and VSX is not enabled.
26162         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
26163         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
26164         to reg+offset addressing.  Use PTImode when checking offset
26165         addresses for validity.
26166         (reg_offset_addressing_ok_p): Likewise.
26167         (rs6000_legitimate_offset_address_p): Likewise.
26168         (rs6000_legitimize_address): Likewise.
26169         (rs6000_legitimize_reload_address): Likewise.
26170         (rs6000_legitimate_address_p): Likewise.
26171         (rs6000_eliminate_indexed_memrefs): Likewise.
26172         (rs6000_emit_move): Likewise.
26173         (rs6000_secondary_reload): Likewise.
26174         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
26175         reloads to fpr registers to continue to use reg+offset addressing,
26176         but 64-bit reloads to altivec registers need reg+reg addressing.
26177         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
26178         it.  Treat LO_SUM like a PLUS operation.
26179         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
26180         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
26181         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
26182         registers to share a register with a smaller sized type, since VSX
26183         puts scalars in the upper 64-bits.
26184         (print_operand): Add support for PTImode.
26185         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
26186         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
26187         registers, but don't have arithmetic support.
26188         (rs6000_memory_move_cost): Add test for VSX.
26189         (rs6000_opt_masks): Add -mvsx-timode.
26191         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
26192         for TImode.
26193         (VSs): Likewise.
26194         (VSr): Use wt constraint for TImode.
26195         (VSv): Drop TImode support.
26196         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
26197         (vsx_movti_64bit): Likewise.
26198         (vsx_movti_32bit): Likewise.
26199         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
26200         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
26201         one '?' on the appropriate output constraint.  Do not allow TImode
26202         logical operations on 32-bit systems.
26203         (vsx_ior<mode>3): Likewise.
26204         (vsx_xor<mode>3): Likewise.
26205         (vsx_one_cmpl<mode>2): Likewise.
26206         (vsx_nor<mode>3): Likewise.
26207         (vsx_andc<mode>3): Likewise.
26208         (vsx_concat_<mode>): Likewise.
26209         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
26211         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
26212         OPTION_MASK_VSX_TIMODE.
26213         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
26214         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
26216         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
26217         (TI2 iterator): New iterator for TImode, PTImode.
26218         (wd mode attribute): Add values for vector types.
26219         (movti_string): Replace TI move operations with operations for TImode
26220         and PTImode.  Add support for TImode being allowed in VSX registers.
26221         (mov<mode>_string, TImode/PTImode): Likewise.
26222         (movti_ppc64): Likewise.
26223         (mov<mode>_ppc64, TImode/PTImode): Likewise.
26224         (TI mode splitters): Likewise.
26226         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
26227         constraint.
26229 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
26231         PR tree-optimization/56355
26232         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
26233         Also handle integers with undefined overflow.
26235 2013-03-20  Catherine Moore  <clm@codesourcery.com>
26236             Maciej W. Rozycki  <macro@codesourcery.com>
26237             Tom de Vries  <tom@codesourcery.com>
26238             Nathan Sidwell  <nathan@codesourcery.com>
26239             Iain Sandoe  <iain@codesourcery.com>
26240             Nathan Froyd  <froydnj@codesourcery.com>
26241             Chao-ying Fu  <fu@mips.com>
26243         * doc/extend.texi: (micromips, nomicromips, nocompression):
26244         Document new function attributes.
26245         * doc/invoke.texi (minterlink-compressed, mmicromips,
26246         m14k, m14ke, m14kec): Document new options.
26247         (minterlink-mips16): Update documentation.
26248         * doc/md.texi (ZC, ZD): Document new constraints.
26249         * configure.ac (gcc_cv_as_micromips): Check if linker
26250         supports the .set micromips directive.
26251         * configure: Regenerate.
26252         * config.in: Regenerate.
26253         * config/mips/mips-tables.opt: Regenerate.
26254         * config/mips/micromips.md: New file.
26255         * constraints.md (ZC, ZD): New constraints.
26256         * config/mips/predicates.md (movep_src_register): New predicate.
26257         (movep_src_operand): New predicate.
26258         (non_volatile_mem_operand): New predicate.
26259         * config/mips/mips.md (multimem): New type.
26260         (length): Differentiate between 17-bit and 18-bit branch offsets.
26261         (MOVEP1, MOVEP2): New mode iterator.
26262         (mov_<load>l): Use ZC constraint.
26263         (mov_<load>r): Likewise.
26264         (mov_<store>l): Likewise.
26265         (mov_<store>r): Likewise.
26266         (*branch_equality<mode>_inverted): Add microMIPS support.
26267         (*branch_equality<mode>): Likewise.
26268         (*jump_absolute): Likewise.
26269         (indirect_jump_<mode>): Likewise.
26270         (tablejump_<mode>): Likewise.
26271         (<optab>_internal): Likewise.
26272         (sibcall_internal): Likewise.
26273         (sibcall_value_internal): Likewise.
26274         (prefetch): Use constraint ZD.
26275         * config/mips/mips.opt (minterlink-compressed): New option.
26276         (minterlink-mips16): Now an alias for minterlink-compressed.
26277         (mmicromips): New option.
26278         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
26279         (compare_and_swap_12): Likewise.
26280         (sync_add<mode>): Likewise.
26281         (sync_<optab>_12): Likewise.
26282         (sync_old_<optab>_12): Likewise.
26283         (sync_new_<optab>_12): Likewise.
26284         (sync_nand_12): Likewise.
26285         (sync_old_nand_12): Likewise.
26286         (sync_new_nand_12): Likewise.
26287         (sync_sub<mode>): Likewise.
26288         (sync_old_add<mode>): Likewise.
26289         (sync_old_sub<mode>): Likewise.
26290         (sync_new_add<mode>): Likewise.
26291         (sync_new_sub<mode>): Likewise.
26292         (sync_<optab><mode>): Likewise.
26293         (sync_old_<optab><mode>): Likewise.
26294         (sync_new_<optab><mode>): Likewise.
26295         (sync_nand<mode>): Likewise.
26296         (sync_old_nand<mode>): Likewise.
26297         (sync_new_nand<mode>): Likewise.
26298         (sync_lock_test_and_set<mode>): Likewise.
26299         (test_and_set_12): Likewise.
26300         (atomic_compare_and_swap<mode>): Likewise.
26301         (atomic_exchange<mode>_llsc): Likewise.
26302         (atomic_fetch_add<mode>_llsc): Likewise.
26303         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
26304         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
26305         (umips_save_restore_pattern_p): Likewise.
26306         (umips_load_store_pair_p): Likewise.
26307         (umips_output_load_store_pair): Likewise.
26308         (umips_movep_target_p): Likewise.
26309         (umips_12bit_offset_address_p): Likewise.
26310         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
26311         (mips_base_mips16): Rename this...
26312         (mips_base_compression_flags): ...to this. Update all uses.
26313         (mips_attribute_table): Add micromips, nomicromips and nocompression.
26314         (mips_mips16_decl_p): Delete.
26315         (mips_nomips16_decl_p): Delete.
26316         (mips_get_compress_on_flags): New function.
26317         (mips_get_compress_off_flags): New function.
26318         (mips_get_compress_mode): New function.
26319         (mips_get_compress_on_name): New function.
26320         (mips_get_compress_off_name): New function.
26321         (mips_insert_attributes): Support multiple compression types.
26322         (mips_merge_decl_attributes): Likewise.
26323         (umips_12bit_offset_address_p): New function.
26324         (mips_start_function_definition): Emit .set micromips directive.
26325         (mips_call_may_need_jalx_p): New function.
26326         (mips_function_ok_for_sibcall): Add microMIPS support.
26327         (mips_print_operand_punctuation): Support short delay slots and
26328         compact jumps.
26329         (umips_swm_mask, umips_swm_encoding): New.
26330         (umips_build_save_restore): New function.
26331         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
26332         (was_mips16_p): Remove.
26333         (old_compression_mode): New.
26334         (mips_set_compression_mode): New function.
26335         (mips_set_current_function): Add microMIPS support.
26336         (mips_option_override): Likewise.
26337         (umips_save_restore_pattern_p): New function.
26338         (umips_output_save_restore): New function.
26339         (umips_load_store_pair_p_1): New function.
26340         (umips_load_store_pair_p): New function.
26341         (umips_output_load_store_pair_1): New function.
26342         (umips_output_load_store_pair): New function.
26343         (umips_movep_target_p) New function.
26344         (mips_prepare_pch_save): Add microMIPS support.
26345         * config/mips/mips.h (TARGET_COMPRESSION): New.
26346         (TARGET_CPU_CPP_BUILTINS): Update macro
26347         to use new compression flags and to support microMIPS.
26348         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
26349         (MIPS_ARCH_FLOAT_SPEC): Likewise.
26350         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
26351         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
26352         (ASM_SPEC): Support mmicromips and mno-micromips.
26353         (M16STORE_REG_P): New macro.
26354         (MIPS_CALL): Support TARGET_MICROMIPS.
26355         (MICROMIPS_J): New macro.
26356         (mips_base_mips16): Rename this...
26357         (mips_base_compression_flags): ...to this.
26358         (UMIPS_12BIT_OFFSET_P): New macro.
26359         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
26360         (MULTILIB_DIRNAMES): Likewise.
26361 2013-03-20  Richard Biener  <rguenther@suse.de>
26363         PR tree-optimization/56661
26364         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
26365         the result does not have to be distinct.
26367 2013-03-20  Richard Biener  <rguenther@suse.de>
26369         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
26370         remap_gimple_op_r.
26372 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26373             Steven Bosscher  <steven@gcc.gnu.org>
26375         PR rtl-optimization/56605
26376         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
26378 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
26380         PR bootstrap/56656
26381         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
26382         that require movd instead of movq.
26384 2013-03-20  Richard Biener  <rguenther@suse.de>
26386         * tree-ssa-structalias.c (struct variable_info): Add pointer
26387         to the first field of an aggregate with sub-vars.  Make
26388         this and the pointer to the next subfield its ID.
26389         (vi_next): New function.
26390         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
26391         storedanything_id, integer_id): Increment by one.
26392         (new_var_info, get_call_vi, lookup_call_clobber_vi,
26393         get_call_clobber_vi): Adjust.
26394         (solution_set_expand): Simplify and speedup.
26395         (solution_set_add): Inline into ...
26396         (set_union_with_increment): ... this.  Adjust accordingly.
26397         (do_sd_constraint): Likewise.
26398         (do_ds_constraint): Likewise.
26399         (do_complex_constraint): Simplify.
26400         (build_pred_graph): Adjust.
26401         (solve_graph): Likewise.  Simplify and speedup.
26402         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
26403         get_constraint_for_component_ref, get_constraint_for_1,
26404         first_vi_for_offset, first_or_preceding_vi_for_offset,
26405         create_function_info_for, create_variable_info_for_1,
26406         create_variable_info_for, intra_create_variable_infos): Adjust.
26407         (init_base_vars): Push NULL for ID zero.
26408         (compute_points_to_sets): Adjust.
26410 2013-03-20  Richard Biener  <rguenther@suse.de>
26412         * cfgloop.c (verify_loop_structure): Streamline and avoid
26413         ICEing on corrupt loop tree.
26414         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
26415         loop tree.
26417 2013-03-20  Richard Biener  <rguenther@suse.de>
26419         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
26420         check whether an SSA update is needed.
26422 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
26424         * config/mips/constraints.md (T): Rename to...
26425         (Yf): ...this.
26426         (U): Rename to...
26427         (Yd): ...this.
26428         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
26429         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
26431 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
26433         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
26434         (*subsi3_carryin_uxtw): Likewise.
26436 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
26438         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
26439         (*rorsi3_insn_uxtw): Likewise.
26441 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
26443         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
26444         (*extrsi5_insn_uxtw): Likewise.
26446 2013-03-19  Richard Biener  <rguenther@suse.de>
26448         PR tree-optimization/56273
26449         * passes.c (init_optimization_passes): Move second VRP after DOM.
26451 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
26453         * config/i386/i386.md (*movti_internal): Merge from
26454         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
26455         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
26456         nox64 isa attributes.
26458 2013-03-18  Richard Biener  <rguenther@suse.de>
26460         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
26461         (unite): Likewise.
26462         (merge_node_constraints): Likewise.
26463         (build_succ_graph): Likewise.
26464         (valid_graph_edge): Inline into single caller.
26465         (unify_nodes): Likewise.  Use bitmap_set_bit return value
26466         and cache varinfo.
26467         (scc_visit): Fix formatting and variable use.
26468         (do_sd_constraint): Use gcc_checking_assert.
26469         (do_ds_constraint): Likewise.
26470         (do_complex_constraint): Likewise.
26471         (condense_visit): Likewise.  Cleanup.
26472         (dump_pred_graph): New function.
26473         (perform_var_substitution): Dump the pred-graph before
26474         variable substitution.
26475         (find_equivalent_node): Use gcc_checking_assert.
26476         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
26478 2013-03-18  Richard Biener  <rguenther@suse.de>
26480         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
26481         Remove cond_expr_stmt_list argument and do not gimplify the
26482         built expression.
26483         (vect_loop_versioning): Adjust.
26484         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
26485         Cleanup to use less temporaries.
26486         (vect_create_data_ref_ptr): Cleanup.
26488 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
26490         PR tree-optimization/56635
26491         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
26492         require types_compatible_p types.
26494 2013-03-18  Nick Clifton  <nickc@redhat.com>
26496         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
26497         spurious backslash.
26499         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
26500         Add missing line to comment describing function.
26502 2013-03-18  Richard Biener  <rguenther@suse.de>
26504         PR tree-optimization/56210
26505         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
26506         Handle string / character search functions.
26507         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
26509 2013-03-18  Richard Biener  <rguenther@suse.de>
26511         PR middle-end/56483
26512         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
26513         and implement properly.
26514         * gimple.h (gimple_cond_single_var_p): Remove.
26516 2013-03-18  Richard Biener  <rguenther@suse.de>
26518         * tree-data-ref.h (find_data_references_in_loop): Declare.
26519         * tree-data-ref.c (get_references_in_stmt): Use a stack
26520         vector pre-allocated in the callers.
26521         (find_data_references_in_stmt): Adjust.
26522         (graphite_find_data_references_in_stmt): Likewise.
26523         (create_rdg_vertices): Likewise.
26524         (find_data_references_in_loop): Export.
26525         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
26526         Compute dependences here...
26527         (vect_analyze_data_refs): ...not here.  When we encounter
26528         a non-vectorizable data reference in basic-block vectorization
26529         truncate the data reference vector.  Do not bother to
26530         fixup data-dependence information for gather loads.
26531         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
26532         of data references, as reported.
26534 2013-03-18  Richard Biener  <rguenther@suse.de>
26536         PR tree-optimization/3713
26537         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
26538         has_constants and expr.
26539         (stmt_has_constants): Properly valueize SSA names when deciding
26540         whether the stmt has constants.
26542 2013-03-18  Richard Biener  <rguenther@suse.de>
26544         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
26545         whole function when there is nothing to do.
26546         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
26547         * tree-vectorizer.c (vectorize_loops): Update virtual and
26548         loop-closed SSA once.
26549         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
26551 2013-03-18  Richard Biener  <rguenther@suse.de>
26553         PR middle-end/56113
26554         * domwalk.c (bb_postorder): New global static.
26555         (cmp_bb_postorder): New function.
26556         (walk_dominator_tree): Replace scheme imposing an order for
26557         visiting dominator sons by one sorting them at the time they
26558         are pushed on the stack.
26560 2013-03-18  Richard Biener  <rguenther@suse.de>
26562         PR tree-optimization/39326
26563         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
26564         (struct mem_ref): Replace mem member with ao_ref typed member.
26565         (MEM_ANALYZABLE): Adjust.
26566         (memref_eq): Likewise.
26567         (mem_ref_alloc): Likewise.
26568         (gather_mem_refs_stmt): Likewise.
26569         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
26570         (execute_sm_if_changed_flag_set): Adjust.
26571         (execute_sm): Likewise.
26572         (ref_always_accessed_p): Likewise.
26573         (refs_independent_p): Likewise.
26574         (can_sm_ref_p): Likewise.
26576 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
26578         PR c/56566
26579         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
26580         return 1 even for !unsignedp.
26582 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
26584         * config/i386/i386.md (isa): Add x64 and nox64.
26585         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
26586         (*pushtf): Enable *roF alternative for x64 isa only.
26587         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
26588         mode attribute of integer alternatives to DImode for TARGET_64BIT.
26589         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
26590         (*movtf_internal): Merge from *movtf_internal_rex64 and
26591         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
26592         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
26593         nox64 isa attributes.
26594         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
26595         nox64 isa attributes.
26596         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
26598 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
26600         * config/alpha/alpha.c (TARGET_LRA_P): New define.
26602 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
26604         PR target/56640
26605         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
26606         class names.  Remove trailing comma after "ALL_REGS".
26608 2013-03-16  Jan Hubicka  <jh@suse.cz>
26610         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
26611         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
26612         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
26613         of cgraph_get_create_node.
26614         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
26616 2013-03-16  Jason Merrill  <jason@redhat.com>
26618         PR debug/49090
26619         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
26620         with DW_AT_default_value.
26622 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
26624         * BASE-VER: Set to 4.9.0.
26626 2013-03-14  Andi Kleen  <ak@linux.intel.com>
26628         PR target/56619
26629         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
26630         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
26631         Document _x* TSX intrinsics.
26633 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
26634             David Holsgrove  <david.holsgrove@xilinx.com>
26636         * configure.ac: Add MicroBlaze TLS support detection.
26637         * configure: Regenerate.
26638         * config/microblaze/microblaze-protos.h
26639         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
26640         symbol_mentioned_p, label_mentioned_p): Add prototypes.
26641         * config/microblaze/microblaze.c (microblaze_address_type): Add
26642         ADDRESS_TLS and tls_reloc address types.
26643         (microblaze_address_info): Add tls_reloc.
26644         (TARGET_HAVE_TLS): Define.
26645         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
26646          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
26647          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
26648         load_tls_operand,  microblaze_call_tls_get_addr,
26649         microblaze_legitimize_tls_address): New functions.
26650         (microblaze_classify_unspec): Handle UNSPEC_TLS.
26651         (get_base_reg): Use microblaze_tls_symbol_p.
26652         (microblaze_classify_address): Handle TLS.
26653         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
26654         label_mentioned_p and microblaze_tls_referenced_p.
26655         (microblaze_legitimize_address): Handle TLS.
26656         (microblaze_address_insns): Handle ADDRESS_TLS.
26657         (pic_address_needs_scratch): Handle TLS.
26658         (print_operand_address): Handle TLS.
26659         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
26660         (microblaze_expand_move): Handle TLS.
26661         (microblaze_legitimate_constant_p): Check
26662         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
26663         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
26664         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
26665         (PIC_OFFSET_TABLE_REGNUM): Set.
26666         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
26667         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
26668         (addsi3, movsi_internal2, movdf_internal): Update constraints
26669         * config/microblaze/predicates.md (arith_plus_operand): Define
26670         (move_operand): Redefine as move_src_operand,
26671         check microblaze_tls_referenced_p.
26673 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
26675         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
26676         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
26678 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
26680         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
26681         CC mode for AND.
26683 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
26685         PR tree-optimization/53265
26686         * common.opt (Waggressive-loop-optimizations): New option.
26687         * tree-ssa-loop-niter.c: Include tree-pass.h.
26688         (do_warn_aggressive_loop_optimizations): New function.
26689         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
26690         if number_of_latch_executions returned constant.
26691         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
26692         early.  If number_of_latch_executions returned constant, set
26693         nb_iterations_upper_bound back to it.
26694         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
26695         field.
26696         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
26697         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
26699         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
26700         (MULTILIB_OSDIRNAMES): Set.
26701         * genmultilib: If defaultosdirname doesn't start with :: , set
26702         defaultosdirname2 instead, clear it and emit two . multilib_raw
26703         entries instead of just one.
26705 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
26707         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
26708         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
26709         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
26710         (SUBTARGET_OVERRIDE_OPTIONS): New.
26712 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
26714         PR target/49880
26715         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
26716         (musermode): Convert to Var(TARGET_USERMODE).
26717         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
26718         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
26719         * config/sh/sh.c (sh_option_override): Use
26720         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
26721         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
26722         condition.
26723         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
26724         TARGET_SH4.
26725         (udivsi3_i4_single, divsi3_i4_single): Use
26726         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
26728 2013-03-13  Dave Korn  <dave.korn.cygwin@gmail.com>
26730         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
26731         default setting.
26733 2013-03-13  Richard Biener  <rguenther@suse.de>
26735         PR tree-optimization/56608
26736         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
26737         calls when vectorizing basic-blocks.
26739 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
26741         PR plugins/45078
26742         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
26743         tm_file.
26745 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
26747         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
26749 2013-03-11  Jan Hubicka  <jh@suse.cz>
26751         PR lto/56557
26752         * lto-streamer-out.c (output_symbol_p): Skip references from
26753         constructors of external variables.
26755 2013-03-11  Jan Hubicka  <jh@suse.cz>
26757         PR middle-end/56571
26758         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
26759         from pseudos.
26760         * emit-rtl.c (verify_rtx_sharing): Likewise.
26761         (copy_insn_1): Likewise.
26762         * rtl.c (copy_rtx): Likewise.
26764 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
26766         PR target/56591
26767         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
26768         output_operand_lossage message.
26770 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
26772         PR target/56470
26773         * arm.c (shift_op): Validate RTL pattern on the fly.
26774         (arm_print_operand, case 'S'): Don't use shift_operator to validate
26775         the RTL.
26777 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26779         PR target/56347
26780         * config/pa/pa.md (call_value): Check for calls to powf and direct to
26781         new call patterns that clobber %fr12.
26782         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
26783         split and postreload patterns.
26784         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
26785         registers %fr12 and %fr12R as call used.
26787 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
26789         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
26790         (canon_address, record_store, replace_read, check_mem_read_rtx,
26791         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
26792         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
26793         rest_of_handle_dse): Likewise.
26795 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
26797         PR middle-end/56524
26798         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
26799         Add base_optabs.
26800         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
26801         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
26802         (save_optabs_if_changed): Replace with...
26803         (init_tree_optimization_optabs): ...this.
26804         * optabs.c (save_optabs_if_changed): Rename to...
26805         (init_tree_optimization_optabs): ...this.  Take the optimization node
26806         as argument.  Do nothing if the base optabs are already correct.
26807         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
26808         to recompute optabs.
26809         * function.h (function): Remove optabs field.
26810         * function.c (invoke_set_current_function_hook): Call
26811         init_tree_optimization_optabs.  Use the result to initialize
26812         this_fn_optabs.
26814 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
26816         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
26817         if GTMA_HAS_NO_INSTRUMENTATION.
26818         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
26819         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
26820         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
26821         * gimple-pretty-print.c (dump_gimple_transaction): Handle
26822         GTMA_HAS_NO_INSTRUMENTATION.
26824 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
26826         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
26827         libasan_preinit.o.
26829 2013-03-08  Marek Polacek  <polacek@redhat.com>
26830             Jakub Jelinek  <jakub@redhat.com>
26832         PR tree-optimization/56478
26833         * predict.c (is_comparison_with_loop_invariant_p): Change the
26834         type of loop_step to tree.
26835         (predict_loops): Adjust.
26836         (predict_iv_comparison): Perform the computations on double_ints.
26838 2013-03-08  Richard Biener  <rguenther@suse.de>
26840         PR tree-optimization/56570
26841         * tree-cfg.c (verify_expr_location_1): Verify locations for
26842         DECL_DEBUG_EXPR.
26843         * tree-sra.c (create_access_replacement): Strip locations
26844         from DECL_DEBUG_EXPRs.
26846 2013-03-08  Richard Biener  <rguenther@suse.de>
26848         * tree-inline.c (expand_call_inline): Do not associate
26849         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
26850         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
26852 2013-03-08  Richard Biener  <rguenther@suse.de>
26854         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
26855         or block changes with -Og.  Fix for location / block encoding
26856         changes and PHI arguments with locations.
26858 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
26860         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
26861         for all counters.
26862         (struct output_info): Likewise.
26863         (register_overhead): Remove bad gcc_assert.
26864         (bitmap_find_bit): If there is only a single bitmap element, do not
26865         count a miss as a search.
26866         (print_statistics): Update for counter type changes.
26867         (dump_bitmap_statistics): Likewise.  Print headers such that they
26868         are properly lined up with the printed counters.
26870 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
26872         PR tree-optimization/56559
26873         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
26874         check that it has only a single use.
26876 2013-03-07  Richard Biener  <rguenther@suse.de>
26878         * doc/invoke.texi (fwhole-program): Discourage use in combination
26879         with -flto.
26881 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
26883         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
26885         PR tree-optimization/56539
26886         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
26887         instead of GSI_CONTINUE_LINKING as last argument to
26888         force_gimple_operand_gsi.  Adjust function comment.
26890         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
26891         aarch64-cores.def.
26893         PR middle-end/56548
26894         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
26895         promoted mode, convert the result back to the original mode.
26897 2013-03-06  Richard Biener  <rguenther@suse.de>
26899         PR middle-end/56294
26900         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
26901         (insert_updated_phi_nodes_compare_uids): New function.
26902         (update_ssa): Sort symbols_to_rename after UID before
26903         traversing it to insert PHI nodes.
26905 2013-03-06  Richard Biener  <rguenther@suse.de>
26907         PR middle-end/50494
26908         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
26909         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
26911         Revert
26912         2013-02-13  Richard Biener  <rguenther@suse.de>
26914         PR lto/50494
26915         * varasm.c (output_constant_def_1): Get the decl representing
26916         the constant as argument.
26917         (output_constant_def): Wrap output_constant_def_1.
26918         (make_decl_rtl): Use output_constant_def_1 with the decl
26919         representing the constant.
26920         (build_constant_desc): Optionally re-use a decl already
26921         representing the constant.
26922         (tree_output_constant_def): Adjust.
26924 2013-03-06  Joey Ye  <joey.ye@arm.com>
26926         PR lto/50293
26927         * gcc.c (convert_white_space): New function.
26928         (main): Handles white space in function name.
26930 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
26932         PR target/56529
26933         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
26934         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
26935         to SH_DIV_CALL_TABLE for TARGET_SH2.
26936         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
26937         list.
26938         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
26939         call-table options.
26941 2013-03-05  Sterling Augustine  <saugustine@google.com>
26942             Cary Coutant  <ccoutant@google.com>
26944         PR debug/55364
26945         * dwarf2out.c (resolve_addr): Don't call
26946         remove_loc_list_addr_table_entries a second time for the same
26947         expression.
26949 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
26951         PR debug/56510
26952         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
26953         (avoid_complex_debug_insns): New function.
26954         (expand_debug_locations): Call it.
26956         PR rtl-optimization/56484
26957         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
26958         lifetimes of hard registers on small register class machines.
26960 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
26962         * config/microblaze/microblaze-protos.h: Rename
26963         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
26964         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
26965         fast_interrupt.
26966         (microblaze_fast_interrupt_function_p): New function.
26967         (microblaze_is_interrupt_handler): Rename to
26968         microblaze_is_interrupt_variant and add fast_interrupt check.
26969         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
26970         (save_restore_insns): Likewise.
26971         (compute_frame_size): Likewise.
26972         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
26973         (microblaze_globalize_label): Likewise.
26974         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
26975         * config/microblaze/microblaze.md: Use wrapper
26976         microblaze_is_interrupt_variant.
26978 2013-03-05  Kai Tietz  <ktietz@redhat.com>
26980         * sdbout.c (sdbout_one_type): Switch to current function's section
26981         supporting cold/hot.
26983 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
26985         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
26986         -mxl-reorder.
26988 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
26990         PR middle-end/56461
26991         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
26992         if VALGRIND_GET_VBITS is defined, temporarily make object
26993         memory all defined, and restore previous valgrind addressability
26994         and definability afterwards.  Free this_object at the end.
26996         PR middle-end/56461
26997         * lra.c (lra): Call lra_clear_live_ranges if live_p,
26998         right before calling lra_create_live_ranges, also call it
26999         when clearing live_p.  Only call lra_clear_live_ranges
27000         at the end if live_p.
27002         PR middle-end/56461
27003         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
27005 2013-03-05  Richard Biener  <rguenther@suse.de>
27007         PR tree-optimization/56521
27008         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
27009         value-id.
27011 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
27013         PR c++/55135
27014         * except.h (remove_unreachable_eh_regions): New prototype.
27015         * except.c (remove_eh_handler_splicer): New function, split out
27016         of remove_eh_handler.
27017         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
27018         warning about running it on many EH regions one at a time.
27019         (remove_unreachable_eh_regions_worker): New function, walk the
27020         EH tree in depth-first order and remove non-marked regions.
27021         (remove_unreachable_eh_regions): New function.
27022         * tree-eh.c (mark_reachable_handlers): New function, split out
27023         from remove_unreachable_handlers.
27024         (remove_unreachable_handlers): Use mark_reachable_handlers and
27025         remove_unreachable_eh_regions.
27026         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
27027         and remove_unreachable_eh_regions.
27029 2013-03-05  Richard Biener  <rguenther@suse.de>
27031         PR middle-end/56525
27032         * loop-init.c (fix_loop_structure): Remove loops in two stages,
27033         not freeing them until the end.
27035 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27037         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
27039 2013-03-05  Richard Biener  <rguenther@suse.de>
27041         PR tree-optimization/56270
27042         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
27043         of loads after scheduling an SLP instance.
27045 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
27047         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
27048         tic6x.exp.
27049         (check_gcc_parallelize): Run guality.exp as a separate job from
27050         vect.exp with unsorted.exp and $(dg_target_exps) separately from
27051         struct-layout-1.exp with stackalign.exp.
27053         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
27055         PR middle-end/56461
27056         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
27057         load_index sbitmap even if some bit in it isn't set.
27059         PR middle-end/56461
27060         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
27061         (discover_iteration_bound_by_body_walk): Change queues to
27062         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
27063         spelling in comment.  Call safe_push on queues[bound_index] directly.
27064         Release queues[queue_index] in every iteration unconditionally.
27065         Release bounds vector.
27067         PR middle-end/56461
27068         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
27069         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
27070         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
27071         inner_phis vector.
27073 2013-03-05  Richard Biener  <rguenther@suse.de>
27075         PR lto/56515
27076         * tree-inline.c (remap_blocks_to_null): New function.
27077         (expand_call_inline): When expanding a call stmt without
27078         an associated block inline remap all callee blocks to NULL.
27080 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
27082         PR rtl-optimization/56494
27083         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
27084         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
27085         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
27087         PR middle-end/56461
27088         * sel-sched-ir.c (free_sched_pools): Release
27089         succs_info_pool.stack[succs_info_pool.max_top] vectors too
27090         if succs_info_pool.max_top isn't -1.
27092         PR bootstrap/56509
27093         * opts.c (opts_obstack, opts_concat): Moved to...
27094         * opts-common.c (opts_obstack, opts_concat): ... here.
27096 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
27098         PR middle-end/56461
27099         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
27101 2013-03-04  Martin Jambor  <mjambor@suse.cz>
27103         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
27104         all appropriate places.
27106 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
27108         PR tree-optimization/56424
27109         * ipa-split.c (split_function): Do not set the RSO flag if result is
27110         not by reference and its type is a register type.
27112 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
27114         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
27115         (microblaze_legitimate_pic_operand): Likewise
27116         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
27117         new function microblaze_legitimate_pic_operand
27118         * config/microblaze/microblaze-protos.h
27119         (microblaze_legitimate_pic_operand): Declare.
27121 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
27123         * config/microblaze/predicates.md (call_insn_simple_operand):
27124         New predicate for supported rtx code types.
27125         * config/microblaze/microblaze.md (call_internal1): Use
27126         call_insn_simple_operand predicate.
27128 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
27130         PR middle-end/56461
27131         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
27132         partitions.ordered_remove.
27134         PR middle-end/56461
27135         * tree-vect-stmts.c (vectorizable_conversion): Don't call
27136         vec_oprnds0.create (1) for modifier == NONE.
27138         PR middle-end/56461
27139         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
27140         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
27141         vec_oprnds1 right before pushing anything to it for
27142         scalar_shift_arg.
27144         PR middle-end/56461
27145         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
27146         set nbbs to 0 instead of having separate code path.
27147         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
27148         instead of false as last argument if returning NULL.
27150 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
27152         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
27153         the attribute is now called "target" instead of "option".
27154         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
27155         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
27156         attribute/pragma name for TARGET_OPTION_VALID_P and
27157         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
27158         * doc/tm.texi: Regenerated.
27160 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
27162         * config/microblaze/microblaze.c:
27163         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
27164         * config/microblaze/microblaze.h: Add -mxl-reorder to
27165         DRIVER_SELF_SPECS.
27166         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
27167         instructions emitted if TARGET_REORDER.
27168         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
27169         or 0 for -m/-mno case, but initialises as 2 to detect default use case
27170         separately.
27172 2013-03-01  Xinliang David Li  <davidxl@google.com>
27174         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
27175         walk length.
27177 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
27179         PR middle-end/56461
27180         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
27181         vector even when returning true.  Fix up function comment formatting.
27183         PR middle-end/56461
27184         * ira-build.c (ira_loop_nodes_count): New variable.
27185         (create_loop_tree_nodes): Initialize it.
27186         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
27188         PR middle-end/56461
27189         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
27190         method on dr_chain and result_chain.
27191         * tree-vect-stmts.c (vectorizable_store): Only call
27192         result_chain.create if j == 0.
27194         PR middle-end/56461
27195         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
27196         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
27197         before overwriting it.
27199 2013-03-01  Tobias Burnus  <burnus@net-b.de>
27201         * doc/extended.texi (C Extensions): Change order in @menu
27202         to match @node.
27203         (Other MIPS Built-in Functions): Move last MIPS entry before
27204         "picoChip Built-in Functions".
27205         (SH Built-in Functions): Move after RX Built-in Functions.
27206         * doc/gcc.texi (Introduction): Change order in @menu
27207         to match @node.
27208         * doc/md.texi (Constraints): Ditto.
27209         * gty.texi (Type Information): Ditto.
27210         (User-provided marking routines for template types): Make
27211         subsection.
27212         * doc/invoke.texi (AArch64 Options): Move before
27213         "Adapteva Epiphany Options".
27215 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
27216             Jakub Jelinek  <jakub@redhat.com>
27218         PR sanitizer/56454
27219         * asan.c (gate_asan): Lookup no_sanitize_address instead of
27220         no_address_safety_analysis attribute.
27221         * doc/extend.texi (no_address_safety_attribute): Rename to
27222         no_sanitize_address attribute, mention no_address_safety_analysis
27223         attribute as deprecated alias.
27225 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
27227         PR middle-end/56461
27228         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
27229         type to vec<vec<tree> > *.
27230         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
27231         to be vec<tree> instead of vec<tree> *, set vec_defs
27232         to vNULL and call vec_defs.create (number_of_vects), adjust other
27233         uses of vec_defs.
27234         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
27235         vectorizable_condition): Adjust vect_get_slp_defs callers.
27237 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
27239         * config/aarch64/aarch64.c
27240         (aarch64_float_const_representable): Remove unused variable.
27242 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
27244         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
27246 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
27248         * config/aarch64/aarch64-builtins.c
27249         (aarch64_init_simd_builtins): Make static.
27251 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
27253         * config/aarch64/aarch64.c
27254         (aarch64_simd_make_constant): Make static.
27256 2013-02-28  Martin Jambor  <mjambor@suse.cz>
27258         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
27259         with no initialization to the RHS of debug statements.
27261 2013-02-28  Martin Jambor  <mjambor@suse.cz>
27263         PR tree-optimization/56294
27264         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
27265         Adjust dumping.
27266         (get_access_replacement): Do not call create_access_replacement.
27267         Assert a replacement exists.
27268         (get_repl_default_def_ssa_name): Create the replacement declaration
27269         itself.
27271 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27273         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
27274         final_end_function.
27276 2013-02-28  Marek Polacek  <polacek@redhat.com>
27278         PR rtl-optimization/56466
27279         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
27280         if we're changing a loop.
27281         (peel_loops_completely): Likewise.
27283 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
27285         PR c++/55813
27286         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
27288 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
27290         PR target/56445
27291         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
27292         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
27293         INTX_FTYPE_FX, FX_FTYPE_INTX.
27294         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
27296 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
27298         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
27299         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
27300         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
27301         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
27302         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
27303         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
27304         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
27305         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
27306         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
27307         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
27308         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
27309         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
27310         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
27311         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
27312         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
27313         (avrxmega6): Increase max flash segments from 5 to 6.
27314         * config/avr/t-multilib: Regenerate.
27315         * config/avr/avr-tables.opt: Regenerate.
27316         * doc/avr-mmcu.texi: Regenerate.
27318 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
27320         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
27321         (avr_device_to_arch): Rename to avr_device_to_ld.
27322         (avr_device_to_as): New prototype.
27323         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
27324         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
27325         * config/avr/driver-avr.c (avr_device_to_as): New.
27326         (avr_device_to_arch): Rename to avr_device_to_ld.
27328 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
27330         PR middle-end/56461
27331         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
27332         method on dr_chain and result_chain.
27334         PR middle-end/56461
27335         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
27336         pointer_set_destroy on not_executed_last_iteration.
27338         PR middle-end/56461
27339         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
27341         PR middle-end/56461
27342         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
27343         FOR_EACH_DEFINED_FUNCTION when freeing state.
27345         PR middle-end/56461
27346         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
27347         pool_free.
27348         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
27349         overwriting it.
27351         PR middle-end/56461
27352         * ipa-cp.c (decide_whether_version_node): Call vec_free on
27353         known_aggs[i].items and release known_aggs vector.
27355         PR middle-end/56461
27356         * ipa-reference.c (propagate): Free node_info even for alias nodes.
27358 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
27360         * config/microblaze/microblaze.c (microblaze_emit_compare):
27361         Use xor for EQ/NE comparisions.
27362         * config/microblaze/microblaze.md (cstoresf4): Add constraints
27363         (cbranchsf4): Adjust operator to comparison_operator.
27365 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
27367         PR middle-end/56461
27368         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
27369         vector.
27370         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
27371         vec_safe_push, always update *slot.
27372         (redirect_edge_var_map_clear): Use vec_free.
27373         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
27374         (free_var_map_entry): Use vec_free.
27375         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
27376         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
27378 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
27380         PR middle-end/45472
27381         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
27382         when the may_trap_p bit of the exprs being merged differs.
27383         Reorder tests for speculativeness in the logical and operator.
27385 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
27387         * incpath.c (add_standard_paths): Use reconcat instead of concat
27388         where appropriate and avoid leaking memory.
27390         * opts.h: Include obstack.h.
27391         (opts_concat): New prototype.
27392         (opts_obstack): New declaration.
27393         * opts.c (opts_concat): New function.
27394         (opts_obstack): New variable.
27395         (init_options_struct): Call gcc_init_obstack on opts_obstack.
27396         (finish_options): Use opts_concat instead of concat
27397         and XOBNEWVEC instead of XNEWVEC.
27398         * opts-common.c (generate_canonical_option, decode_cmdline_option,
27399         generate_option): Likewise.
27400         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
27401         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
27403         PR target/56455
27404         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
27405         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
27407 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
27409         PR middle-end/56461
27410         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
27412 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
27414         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
27415         (arm_block_move_unaligned_straight): Likewise.
27416         (arm_adjust_block_mem): Likewise.
27418 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
27420         PR target/48901
27421         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
27422         temp, cond and label.
27423         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
27425         PR target/52500
27426         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
27427         * config/c6x/c6x.h (dbx_register_map): Update declaration.
27429         PR target/52501
27430         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
27431         of prologue/epilogue functions.
27433         PR target/52550
27434         * config/tilegx/tilegx.c (tilegx_expand_prologue):
27435         Remove unused variable cfa_offset.
27436         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
27438         PR target/54639
27439         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
27440         type promotion to unsigned.
27442         PR target/54640
27443         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
27444         for HOST_WIDE_INT of 32 bit / same size as int.
27445         (arm_block_move_unaligned_straight): Likewise.
27446         (arm_adjust_block_mem): Likewise.
27448         PR target/54662
27449         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
27450         ALL_CFLAGS.
27452 2013-02-26  Marek Polacek  <polacek@redhat.com>
27454         PR tree-optimization/56426
27455         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
27457 2013-02-26  Richard Biener  <rguenther@suse.de>
27459         PR target/56444
27460         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
27461         unused variable loops.
27463 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
27465         PR tree-optimization/56448
27466         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
27467         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
27468         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
27469         later operands of the references, or even first operand for
27470         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
27472         PR tree-optimization/56443
27473         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
27474         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
27475         to type_for_mode langhook.
27477 2013-02-25  Matt Turner  <mattst88@gmail.com>
27479         * doc/invoke.texi: Document r4700.
27481 2013-02-25  Richard Biener  <rguenther@suse.de>
27483         PR tree-optimization/56175
27484         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
27485         split out from ...
27486         (simplify_bitwise_binary): ... here.  Also guard the conversion
27487         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
27489 2013-02-25  Catherine Moore  <clm@codesourcery.com>
27491         Revert:
27492         2013-02-24  Catherine Moore  <clm@codesourcery.com>
27493             Maciej W. Rozycki  <macro@codesourcery.com>
27494             Tom de Vries  <tom@codesourcery.com>
27495             Nathan Sidwell  <nathan@codesourcery.com>
27496             Iain Sandoe  <iain@codesourcery.com>
27497             Nathan Froyd  <froydnj@codesourcery.com>
27498             Chao-ying Fu  <fu@mips.com>
27500         * doc/extend.texi: (micromips, nomicromips, nocompression):
27501         Document new function attributes.
27502         * doc/invoke.texi (minterlink-compressed, mmicromips,
27503         m14k, m14ke, m14kec): Document new options.
27504         (minterlink-mips16): Update documentation.
27505         * doc/md.texi (ZC, ZD): Document new constraints.
27506         * configure.ac (gcc_cv_as_micromips): Check if linker
27507         supports the .set micromips directive.
27508         * configure: Regenerate.
27509         * config.in: Regenerate.
27510         * config/mips/mips-tables.opt: Regenerate.
27511         * config/mips/micromips.md: New file.
27512         * constraints.md (ZC, AD): New constraints.
27513         * config/mips/predicates.md (movep_src_register): New predicate.
27514         (movep_src_operand): New predicate.
27515         (non_volatile_mem_operand): New predicate.
27516         * config/mips/mips.md (multimem): New type.
27517         (length): Differentiate between 17-bit and 18-bit branch offsets.
27518         (MOVEP1, MOVEP2): New mode iterator.
27519         (mov_<load>l): Use ZC constraint.
27520         (mov_<load>r): Likewise.
27521         (mov_<store>l): Likewise.
27522         (mov_<store>r): Likewise.
27523         (*branch_equality<mode>_inverted): Add microMIPS support.
27524         (*branch_equality<mode>): Likewise.
27525         (*jump_absolute): Likewise.
27526         (indirect_jump_<mode>): Likewise.
27527         (tablejump_<mode>): Likewise.
27528         (<optab>_internal): Likewise.
27529         (sibcall_internal): Likewise.
27530         (sibcall_value_internal): Likewise.
27531         (prefetch): Use constraint ZD.
27532         * config/mips/mips.opt (minterlink-compressed): New option.
27533         (minterlink-mips16): Now an alias for minterlink-compressed.
27534         (mmicromips): New option.
27535         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
27536         (compare_and_swap_12): Likewise.
27537         (sync_add<mode>): Likewise.
27538         (sync_<optab>_12): Likewise.
27539         (sync_old_<optab>_12): Likewise.
27540         (sync_new_<optab>_12): Likewise.
27541         (sync_nand_12): Likewise.
27542         (sync_old_nand_12): Likewise.
27543         (sync_new_nand_12): Likewise.
27544         (sync_sub<mode>): Likewise.
27545         (sync_old_add<mode>): Likewise.
27546         (sync_old_sub<mode>): Likewise.
27547         (sync_new_add<mode>): Likewise.
27548         (sync_new_sub<mode>): Likewise.
27549         (sync_<optab><mode>): Likewise.
27550         (sync_old_<optab><mode>): Likewise.
27551         (sync_new_<optab><mode>): Likewise.
27552         (sync_nand<mode>): Likewise.
27553         (sync_old_nand<mode>): Likewise.
27554         (sync_new_nand<mode>): Likewise.
27555         (sync_lock_test_and_set<mode>): Likewise.
27556         (test_and_set_12): Likewise.
27557         (atomic_compare_and_swap<mode>): Likewise.
27558         (atomic_exchange<mode>_llsc): Likewise.
27559         (atomic_fetch_add<mode>_llsc): Likewise.
27560         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
27561         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
27562         (umips_save_restore_pattern_p): Likewise.
27563         (umips_load_store_pair_p): Likewise.
27564         (umips_output_load_store_pair): Likewise.
27565         (umips_movep_target_p): Likewise.
27566         (umips_12bit_offset_address_p): Likewise.
27567         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
27568         (mips_base_mips16): Rename this...
27569         (mips_base_compression_flags): ...to this. Update all uses.
27570         (mips_attribute_table): Add micromips, nomicromips and nocompression.
27571         (mips_mips16_decl_p): Delete.
27572         (mips_nomips16_decl_p): Delete.
27573         (mips_get_compress_on_flags): New function.
27574         (mips_get_compress_off_flags): New function.
27575         (mips_get_compress_mode): New function.
27576         (mips_get_compress_on_name): New function.
27577         (mips_get_compress_off_name): New function.
27578         (mips_insert_attributes): Support multiple compression types.
27579         (mips_merge_decl_attributes): Likewise.
27580         (umips_12bit_offset_address_p): New function.
27581         (mips_start_function_definition): Emit .set micromips directive.
27582         (mips_call_may_need_jalx_p): New function.
27583         (mips_function_ok_for_sibcall): Add microMIPS support.
27584         (mips_print_operand_punctuation): Support short delay slots and
27585         compact jumps.
27586         (umips_swm_mask, umips_swm_encoding): New.
27587         (umips_build_save_restore): New function.
27588         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
27589         (was_mips16_p): Remove.
27590         (old_compression_mode): New.
27591         (mips_set_compression_mode): New function.
27592         (mips_set_current_function): Add microMIPS support.
27593         (mips_option_override): Likewise.
27594         (umips_save_restore_pattern_p): New function.
27595         (umips_output_save_restore): New function.
27596         (umips_load_store_pair_p_1): New function.
27597         (umips_load_store_pair_p): New function.
27598         (umips_output_load_store_pair_1): New function.
27599         (umips_output_load_store_pair): New function.
27600         (umips_movep_target_p) New function.
27601         (mips_prepare_pch_save): Add microMIPS support.
27602         * config/mips/mips.h (TARGET_COMPRESSION): New.
27603         (TARGET_CPU_CPP_BUILTINS): Update macro
27604         to use new compression flags and to support microMIPS.
27605         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
27606         (MIPS_ARCH_FLOAT_SPEC): Likewise.
27607         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
27608         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
27609         (ASM_SPEC): Support mmicromips and mno-micromips.
27610         (M16STORE_REG_P): New macro.
27611         (MIPS_CALL): Support TARGET_MICROMIPS.
27612         (MICROMIPS_J): New macro.
27613         (mips_base_mips16): Rename this...
27614         (mips_base_compression_flags): ...to this.
27615         (UMIPS_12BIT_OFFSET_P): New macro.
27616         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
27617         (MULTILIB_DIRNAMES): Likewise.
27619 2013-02-25  Tom de Vries  <tom@codesourcery.com>
27621         PR rtl-optimization/56131
27622         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
27623         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
27624         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
27626 2013-02-25  Tobias Burnus  <burnus@net-b.de>
27628         * doc/invoke.texi (-fsanitize=): Move from optimization
27629         to debugging options.
27631 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
27633         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
27635 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
27636             Alexander Monakov  <amonakov@ispras.ru>
27638         PR middle-end/56077
27639         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
27640         flush pending lists also on non-jumps.  Adjust comment.
27642 2013-02-24  Catherine Moore  <clm@codesourcery.com>
27643             Maciej W. Rozycki  <macro@codesourcery.com>
27644             Tom de Vries  <tom@codesourcery.com>
27645             Nathan Sidwell  <nathan@codesourcery.com>
27646             Iain Sandoe  <iain@codesourcery.com>
27647             Nathan Froyd  <froydnj@codesourcery.com>
27648             Chao-ying Fu  <fu@mips.com>
27650         * doc/extend.texi: (micromips, nomicromips, nocompression):
27651         Document new function attributes.
27652         * doc/invoke.texi (minterlink-compressed, mmicromips,
27653         m14k, m14ke, m14kec): Document new options.
27654         (minterlink-mips16): Update documentation.
27655         * doc/md.texi (ZC, ZD): Document new constraints.
27656         * configure.ac (gcc_cv_as_micromips): Check if linker
27657         supports the .set micromips directive.
27658         * configure: Regenerate.
27659         * config.in: Regenerate.
27660         * config/mips/mips-tables.opt: Regenerate.
27661         * config/mips/micromips.md: New file.
27662         * constraints.md (ZC, AD): New constraints.
27663         * config/mips/predicates.md (movep_src_register): New predicate.
27664         (movep_src_operand): New predicate.
27665         (non_volatile_mem_operand): New predicate.
27666         * config/mips/mips.md (multimem): New type.
27667         (length): Differentiate between 17-bit and 18-bit branch offsets.
27668         (MOVEP1, MOVEP2): New mode iterator.
27669         (mov_<load>l): Use ZC constraint.
27670         (mov_<load>r): Likewise.
27671         (mov_<store>l): Likewise.
27672         (mov_<store>r): Likewise.
27673         (*branch_equality<mode>_inverted): Add microMIPS support.
27674         (*branch_equality<mode>): Likewise.
27675         (*jump_absolute): Likewise.
27676         (indirect_jump_<mode>): Likewise.
27677         (tablejump_<mode>): Likewise.
27678         (<optab>_internal): Likewise.
27679         (sibcall_internal): Likewise.
27680         (sibcall_value_internal): Likewise.
27681         (prefetch): Use constraint ZD.
27682         * config/mips/mips.opt (minterlink-compressed): New option.
27683         (minterlink-mips16): Now an alias for minterlink-compressed.
27684         (mmicromips): New option.
27685         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
27686         (compare_and_swap_12): Likewise.
27687         (sync_add<mode>): Likewise.
27688         (sync_<optab>_12): Likewise.
27689         (sync_old_<optab>_12): Likewise.
27690         (sync_new_<optab>_12): Likewise.
27691         (sync_nand_12): Likewise.
27692         (sync_old_nand_12): Likewise.
27693         (sync_new_nand_12): Likewise.
27694         (sync_sub<mode>): Likewise.
27695         (sync_old_add<mode>): Likewise.
27696         (sync_old_sub<mode>): Likewise.
27697         (sync_new_add<mode>): Likewise.
27698         (sync_new_sub<mode>): Likewise.
27699         (sync_<optab><mode>): Likewise.
27700         (sync_old_<optab><mode>): Likewise.
27701         (sync_new_<optab><mode>): Likewise.
27702         (sync_nand<mode>): Likewise.
27703         (sync_old_nand<mode>): Likewise.
27704         (sync_new_nand<mode>): Likewise.
27705         (sync_lock_test_and_set<mode>): Likewise.
27706         (test_and_set_12): Likewise.
27707         (atomic_compare_and_swap<mode>): Likewise.
27708         (atomic_exchange<mode>_llsc): Likewise.
27709         (atomic_fetch_add<mode>_llsc): Likewise.
27710         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
27711         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
27712         (umips_save_restore_pattern_p): Likewise.
27713         (umips_load_store_pair_p): Likewise.
27714         (umips_output_load_store_pair): Likewise.
27715         (umips_movep_target_p): Likewise.
27716         (umips_12bit_offset_address_p): Likewise.
27717         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
27718         (mips_base_mips16): Rename this...
27719         (mips_base_compression_flags): ...to this. Update all uses.
27720         (mips_attribute_table): Add micromips, nomicromips and nocompression.
27721         (mips_mips16_decl_p): Delete.
27722         (mips_nomips16_decl_p): Delete.
27723         (mips_get_compress_on_flags): New function.
27724         (mips_get_compress_off_flags): New function.
27725         (mips_get_compress_mode): New function.
27726         (mips_get_compress_on_name): New function.
27727         (mips_get_compress_off_name): New function.
27728         (mips_insert_attributes): Support multiple compression types.
27729         (mips_merge_decl_attributes): Likewise.
27730         (umips_12bit_offset_address_p): New function.
27731         (mips_start_function_definition): Emit .set micromips directive.
27732         (mips_call_may_need_jalx_p): New function.
27733         (mips_function_ok_for_sibcall): Add microMIPS support.
27734         (mips_print_operand_punctuation): Support short delay slots and
27735         compact jumps.
27736         (umips_swm_mask, umips_swm_encoding): New.
27737         (umips_build_save_restore): New function.
27738         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
27739         (was_mips16_p): Remove.
27740         (old_compression_mode): New.
27741         (mips_set_compression_mode): New function.
27742         (mips_set_current_function): Add microMIPS support.
27743         (mips_option_override): Likewise.
27744         (umips_save_restore_pattern_p): New function.
27745         (umips_output_save_restore): New function.
27746         (umips_load_store_pair_p_1): New function.
27747         (umips_load_store_pair_p): New function.
27748         (umips_output_load_store_pair_1): New function.
27749         (umips_output_load_store_pair): New function.
27750         (umips_movep_target_p) New function.
27751         (mips_prepare_pch_save): Add microMIPS support.
27752         * config/mips/mips.h (TARGET_COMPRESSION): New.
27753         (TARGET_CPU_CPP_BUILTINS): Update macro
27754         to use new compression flags and to support microMIPS.
27755         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
27756         (MIPS_ARCH_FLOAT_SPEC): Likewise.
27757         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
27758         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
27759         (ASM_SPEC): Support mmicromips and mno-micromips.
27760         (M16STORE_REG_P): New macro.
27761         (MIPS_CALL): Support TARGET_MICROMIPS.
27762         (MICROMIPS_J): New macro.
27763         (mips_base_mips16): Rename this...
27764         (mips_base_compression_flags): ...to this.
27765         (UMIPS_12BIT_OFFSET_P): New macro.
27766         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
27767         (MULTILIB_DIRNAMES): Likewise.
27769 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
27771         PR target/52555
27772         * target-globals.c (save_target_globals): For init_reg_sets and
27773         target_reinit remporarily set this_fn_optabs to this_target_optabs.
27775 2013-02-22  James Greenhalgh  <james.greenhalgh@arm.com>
27777         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
27778         * config/aarch64/t-aarch64
27779         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
27781 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
27783         PR inline-asm/56148
27784         * lra-constraints.c (process_alt_operands): Reload operand
27785         conflicting with earlier clobber only if no more other conflicting
27786         operands.
27788 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
27790         PR sanitizer/56393
27791         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
27792         if not linking a shared library.
27794 2013-02-22  Seth LaForge  <sethml@google.com>
27796         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
27798 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
27800         * config/arm/arm.md (split for extendsidi): Update condition.
27801         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
27802         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
27803         (qhs_zextenddi_cstr): Likewise.
27805 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
27807         PR middle-end/56420
27808         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
27809         avoid signed wrapping.
27810         (expand_mult): Handle properly multiplication by
27811         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
27812         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
27813         in the compiler if coeff is HOST_WIDE_INT_MIN.
27814         (expand_divmod): Don't make ext_op1 static, change it's type to
27815         uhwi.  Avoid undefined behavior in -INTVAL (op1).
27817         PR rtl-optimization/50339
27818         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
27819         field.
27820         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
27821         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
27822         into splitting_ashiftrt field.
27823         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
27824         ASHIFTRT.
27825         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
27826         choices.
27828 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
27830         PR middle-end/56108
27831         * trans-mem.c (execute_tm_mark): Do not expand transactions that
27832         are sure to go irrevocable.
27834 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
27836         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
27837         scalars are valid operands.
27839 2013-02-21  Martin Jambor  <mjambor@suse.cz>
27841         PR tree-optimization/56310
27842         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
27843         only matching indices and non-negative final offsets.
27844         (intersect_aggregates_with_edge): Pass src_idx to
27845         agg_replacements_to_vector.  Pass src_idx insstead of index to
27846         intersect_with_agg_replacements.
27848 2013-02-21  Martin Jambor  <mjambor@suse.cz>
27850         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
27851         instead of hard-wired defaults.
27853 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
27855         * doc/invoke.texi (MIPS Options): Update documentation of the
27856         floating-point multiply-accumulate instruction restrictions.
27858 2013-02-21  Kostya Serebryany  <kcc@google.com>
27860         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
27861         asan_shadow_offset on x86_64 linux.
27863 2013-02-21  Richard Biener  <rguenther@suse.de>
27865         PR tree-optimization/56415
27866         Revert
27867         2013-02-11  Richard Biener  <rguenther@suse.de>
27869         PR tree-optimization/56273
27870         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
27871         first VRP run.
27873 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
27875         PR bootstrap/56258
27876         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
27877         instead of @itemx.
27879         PR inline-asm/56405
27880         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
27881         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
27883 2013-02-20  Jan Hubicka  <jh@suse.cz>
27885         PR tree-optimization/56265
27886         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
27887         when target is referenced for first time.
27889 2013-02-20  Richard Biener  <rguenther@suse.de>
27891         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
27892         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
27893         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
27894         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
27895         not return anything.
27896         (rename_ssa_copies): Do not remove unused locals.
27897         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
27898         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
27899         * passes.c (execute_function_todo): Do not schedule unused locals
27900         removal if cleanup_tree_cfg did something.
27901         * tree-ssa-live.c (remove_unused_locals): Dump statistics
27902         about the number of removed locals.
27904 2013-02-20  Richard Biener  <rguenther@suse.de>
27906         PR tree-optimization/56398
27907         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
27909 2013-02-20  Martin Jambor  <mjambor@suse.cz>
27911         PR tree-optimization/55334
27912         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
27913         restricted pointers to arrays.
27915 2013-02-20  Richard Biener  <rguenther@suse.de>
27916             Jakub Jelinek  <jakub@redhat.com>
27918         PR tree-optimization/56396
27919         * tree-ssa-ccp.c (n_const_val): New static variable.
27920         (get_value): Return NULL for SSA names we don't have a lattice
27921         entry for.
27922         (ccp_initialize): Initialize n_const_val.
27923         * tree-ssa-copy.c (n_copy_of): New static variable.
27924         (init_copy_prop): Initialize n_copy_of.
27925         (get_value): Return NULL_TREE for SSA names we don't have a
27926         lattice entry for.
27928 2013-02-20  Martin Jambor  <mjambor@suse.cz>
27930         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
27932 2013-02-20  Richard Biener  <rguenther@suse.de>
27934         * genpreds.c (write_lookup_constraint): Do not compare first
27935         letter of the constraint again.
27937 2013-02-20  Richard Biener  <rguenther@suse.de>
27939         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
27940         and ceil_log2.
27941         (get_use_iv_cost): Terminate hashtable walk when coming across
27942         an empty entry.
27944 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
27946         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
27947         reassociation for avx2 targets.
27949 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
27951         * config/microblaze/microblaze.c: microblaze_has_clz = 0
27952         Add version check for v8.10.a to enable microblaze_has_clz
27953         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
27954         version and TARGET_PATTERN_COMPARE check
27955         * config/microblaze/microblaze.md: New clzsi2 instruction
27957 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
27959         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
27960         function before branching.
27962 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
27964         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
27965         DUMP_INSN_RTX_UID.
27966         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
27968 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
27970         PR middle-end/55889
27971         * sel-sched.c: Include ira.h.
27972         (implicit_clobber_conflict_p): New function.
27973         (moveup_expr): Use it.
27974         * Makefile.in (sel-sched.o): Depend on ira.h.
27976 2013-02-19  Richard Biener  <rguenther@suse.de>
27978         PR tree-optimization/56384
27979         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
27980         (vn_hash_type): Split out from ...
27981         (vn_hash_constant_with_type): ... here.
27982         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
27983         (vn_phi_eq): Compare types from vn_phi_s structure.
27984         (vn_phi_lookup): Populate vn_phi_s type.
27985         (vn_phi_insert): Likewise.
27987 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
27989         PR tree-optimization/56350
27990         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
27991         if haven't found reduction or nested cycle operand, rather than
27992         asserting we must find it.
27994         PR tree-optimization/56381
27995         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
27996         to fold_build3.
27998 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
27999             Jakub Jelinek  <jakub@redhat.com>
28001         PR target/52555
28002         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
28003         (swap_optab_enable): Same.
28004         (init_all_optabs): Use argument instead of global.
28005         * tree.h (struct tree_optimization_option): New field target_optabs.
28006         * expr.h (init_all_optabs): Add argument to prototype.
28007         (TREE_OPTIMIZATION_OPTABS): New.
28008         (save_optabs_if_changed): Protoize.
28009         * optabs.h: Declare this_fn_optabs.
28010         * optabs.c (save_optabs_if_changed): New.
28011         Declare this_fn_optabs.
28012         (init_optabs): Add argument to init_all_optabs() call.
28013         * function.c (invoke_set_current_function_hook): Handle per
28014         function optabs.
28015         * function.h (struct function): New field optabs.
28016         * config/mips/mips.c (mips_set_mips16_mode): Handle when
28017         optimization_current_node has changed.
28018         * target-globals.h (save_target_globals_default_opts): Protoize.
28019         * target-globals.c (save_target_globals_default_opts): New.
28021 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28023         PR target/56347
28024         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
28025         registers %fr12 and %fr12R as call used.
28027         PR target/56214
28028         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
28029         and HImode, require all displacements to be an integer multiple of
28030         their mode size.
28031         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
28032         only allow QImode and HImode when reload is in progress and strict is
28033         true.  Likewise for symbolic addresses.  Use base14_operand to check
28034         displacements in REG+BASE addresses.
28036 2013-02-18  Richard Biener  <rguenther@suse.de>
28038         PR tree-optimization/56366
28039         * tree-vect-loop.c (get_initial_def_for_induction): Properly
28040         handle sign-conversion of outer-loop initial induction value.
28042 2013-02-18  Richard Biener  <rguenther@suse.de>
28044         PR middle-end/56349
28045         * cfghooks.c (merge_blocks): If we merge a latch into another
28046         block adjust references to it.
28047         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
28048         (verify_loop_structure): Verify that a recorded latch is in fact
28049         a latch.
28051 2013-02-18  Richard Biener  <rguenther@suse.de>
28053         PR tree-optimization/56321
28054         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
28055         order SSA name release and virtual operand unlinking.
28057 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
28059         * config/microblaze/microblaze.md (save_stack_block): Define.
28060         (restore_stack_block): Likewise.
28062 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
28064         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
28065         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
28066         * config/microblaze/microblaze.c (microblaze_option_override):
28067         Bail out early for PIC modes when target does not support PIC.
28069 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
28071         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
28072         Replace with a microblaze version.
28073         (microblaze_trampoline_init): Adapt for microblaze.
28074         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
28075         microblaze.
28077 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
28078             Dodji Seketeli  <dodji@redhat.com>
28080         PR asan/56330
28081         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
28082         (instrument_mem_region_access): Do not forget to always put
28083         instrumentation of the of 'base' and 'base + len' in a "if (len !=
28084         0) statement, even for cases where either 'base' or 'base + len'
28085         are not instrumented -- because they have been previously
28086         instrumented.  Simplify the logic by putting all the statements
28087         instrument 'base + len' inside a sequence, and then insert that
28088         sequence right before the current insertion point.  Then, to
28089         instrument 'base + len', just get an iterator on that statement.
28090         And do not forget to update the pointer to iterator the function
28091         received as argument.
28093 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
28095         PR rtl-optimization/56348
28096         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
28098 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
28100         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
28101         (clean_graph_dump_file): Pass base to start_graph_dump.
28103 2013-02-14  Richard Henderson  <rth@redhat.com>
28105         PR target/55941
28106         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
28108 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
28110         * collect2-aix.h: Define F_LOADONLY.
28112 2013-02-14  Richard Biener  <rguenther@suse.de>
28114         PR lto/50494
28115         * varasm.c (output_constant_def_1): Get the decl representing
28116         the constant as argument.
28117         (output_constant_def): Wrap output_constant_def_1.
28118         (make_decl_rtl): Use output_constant_def_1 with the decl
28119         representing the constant.
28120         (build_constant_desc): Optionally re-use a decl already
28121         representing the constant.
28122         (tree_output_constant_def): Adjust.
28124 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
28126         Fix an asan crash
28127         * asan.c (instrument_builtin_call):  Really put the length of the
28128         second source argument into src1_len.
28130 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
28132         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
28133         argument.  If it is false, don't create edge from then_bb to
28134         fallthru_bb.
28135         (insert_if_then_before_iter): Pass true to it.
28136         (build_check_stmt): Pass false to it.
28137         (transform_statements): Flush hash table only on extended basic
28138         block boundaries, rather than at the beginning of every bb.
28139         Don't flush hash table on nonfreeing_call_p calls.
28140         * tree-flow.h (nonfreeing_call_p): New prototype.
28141         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
28143 2013-02-13  David S. Miller  <davem@davemloft.net>
28145         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
28147 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
28149         PR target/56184
28150         * ira.c (max_regno_before_ira): Move from ...
28151         (ira): ... here.
28152         (fix_reg_equiv_init): Use max_regno_before_ira instead of
28153         vec_safe_length.
28155 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
28157         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
28159 2013-02-13  Richard Biener  <rguenther@suse.de>
28161         PR lto/56295
28162         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
28163         globals in MEM_REFs.
28165 2013-02-13  Richard Biener  <rguenther@suse.de>
28167         * loop-init.c (loop_optimizer_init): Clear loop state when
28168         re-initializing preserved loops.
28169         * loop-unswitch.c (unswitch_single_loop): Return whether
28170         we unswitched the loop.  Do not verify loop state here.
28171         (unswitch_loops): When we unswitched a loop discover new loops.
28173 2013-02-13  Kostya Serebryany  <kcc@google.com>
28175         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
28176         on x86_64 linux.
28177         * sanitizer.def: Rename __asan_init to __asan_init_v1.
28179 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
28181         Avoid instrumenting duplicated memory access in the same basic block
28182         * Makefile.in (asan.o): Add new dependency on hash-table.h
28183         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
28184         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
28185         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
28186         (free_mem_ref_resources, has_mem_ref_been_instrumented)
28187         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
28188         (get_mem_ref_of_assignment): New functions.
28189         (get_mem_refs_of_builtin_call): Extract from
28190         instrument_builtin_call and tweak a little bit to make it fit with
28191         the new signature.
28192         (instrument_builtin_call): Use the new
28193         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
28194         of is_gimple_builtin_call.
28195         (instrument_derefs, instrument_mem_region_access): Insert the
28196         instrumented memory reference into the hash table.
28197         (maybe_instrument_assignment): Renamed instrument_assignment into
28198         this, and change it to advance the iterator when instrumentation
28199         actually happened and return true in that case.  This makes it
28200         homogeneous with maybe_instrument_assignment, and thus give a
28201         chance to callers to be more 'regular'.
28202         (transform_statements): Clear the memory reference hash table
28203         whenever we enter a new BB, when we cross a function call, or when
28204         we are done transforming statements.  Use
28205         maybe_instrument_assignment instead of instrumentation.  No more
28206         need to special case maybe_instrument_assignment and advance the
28207         iterator after calling it; it's now handled just like
28208         maybe_instrument_call.  Update comment.
28210 2013-02-13  Richard Biener  <rguenther@suse.de>
28212         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
28213         Fix loop discovery code.
28215 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
28217         PR inline-asm/56148
28218         * lra-constraints.c (process_alt_operands): Match early clobber
28219         operand with itself.  Check conflicts with earlyclobber only if
28220         the operand is not reloaded.  Prefer to reload conflicting operand
28221         if earlyclobber and matching operands are the same.
28223 2013-02-12  Richard Biener  <rguenther@suse.de>
28225         PR lto/56297
28226         * lto-streamer-out.c (write_symbol): Do not output symbols
28227         for hard register variables.
28229 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
28231         PR target/54222
28232         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
28233         (umulsidi3_insn, mulsidi3_insn): New insns.
28235 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
28237         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
28238         (struct tune_params): Add vec_costs field.
28239         * config/arm/arm.c (arm_builtin_vectorization_cost)
28240         (arm_add_stmt_cost): New functions.
28241         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
28242         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
28243         (arm_default_vec_cost): New struct of type cpu_vec_costs.
28244         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
28245         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
28246         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
28247         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
28249 2013-02-12  Richard Biener  <rguenther@suse.de>
28251         PR lto/56295
28252         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
28253         decls again if possible.
28255 2013-02-12  Richard Biener  <rguenther@suse.de>
28257         PR middle-end/56288
28258         * tree-ssa.c (verify_ssa_name): Fix check, move
28259         SSA_NAME_IN_FREE_LIST check up.
28261 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
28262             Steven Bosscher   <steven@gcc.gnu.org>
28264         PR rtl-optimization/56151
28265         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
28266         equal to op0 or op1, and last_insn pattern is CODE operation
28267         with MEM dest and one of the operands matches that MEM.
28269 2013-02-11  Sriraman Tallam  <tmsriram@google.com>
28271         * doc/extend.texi: Document Function Multiversioning and "default"
28272         parameter string to target attribute.
28273         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
28274         target attribute parameter is "default".
28275         (ix86_compare_version_priority): Remove checks for target attribute.
28276         (ix86_mangle_function_version_assembler_name): Change error to sorry.
28277         Remove check for target attribute equal to NULL. Add assert.
28278         (ix86_generate_version_dispatcher_body): Change error to sorry.
28280 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
28281             Jack Howarth  <howarth@bromo.med.uc.edu>
28282             Patrick Marlier  <patrick.marlier@gmail.com>
28284         PR libitm/55693
28285         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
28286         define ENDFILE_SPEC as TM_DESTRUCTOR.
28287         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
28289 2013-02-11  Alexander Potapenko  <glider@google.com>
28290             Jack Howarth  <howarth@bromo.med.uc.edu>
28291             Jakub Jelinek  <jakub@redhat.com>
28293         PR sanitizer/55617
28294         * config/darwin.c (cdtor_record): Rename ctor_record.
28295         (sort_cdtor_records): Rename sort_ctor_records.
28296         (finalize_dtors): New routine to sort destructors by
28297         priority before use in assemble_integer.
28298         (machopic_asm_out_destructor): Use finalize_dtors if needed.
28300 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
28302         PR rtl-optimization/56275
28303         * simplify-rtx.c (avoid_constant_pool_reference): Check that
28304         offset is non-negative and less than cmode size before
28305         calling simplify_subreg.
28307 2013-02-11  Richard Biener  <rguenther@suse.de>
28309         PR tree-optimization/56264
28310         * cfgloop.h (fix_loop_structure): Adjust prototype.
28311         * loop-init.c (fix_loop_structure): Return the number of
28312         newly discovered loops.
28313         * tree-cfgcleanup.c (repair_loop_structures): When new loops
28314         are discovered, do a full loop-closed SSA rewrite.
28316 2013-02-11  Richard Biener  <rguenther@suse.de>
28318         PR tree-optimization/56273
28319         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
28320         first VRP run.
28321         (check_array_ref): Fix missing newline in dumps.
28322         (search_for_addr_array): Likewise.
28324 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
28326         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
28328 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
28330         PR target/56256
28331         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
28333 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
28335         PR rtl-optimization/56246
28336         * lra-constraints.c (simplify_operand_subreg): Try to reuse
28337         reload pseudo.
28338         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
28339         constraints are satisfied.
28341 2013-02-08  Jeff Law  <law@redhat.com>
28343         PR debug/53948
28344         * emit-rtl.c (reg_is_parm_p): New function.
28345         * regs.h (reg_is_parm_p): New prototype.
28346         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
28347         callee-clobbered registers.
28349 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
28351         PR target/56043
28352         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
28353         If there is no implicit builtin declaration, just return NULL.
28355 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
28357         * config/i386/sse.md (FMAMODEM): New mode iterator.
28358         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
28359         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
28361 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
28363         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
28364         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
28365         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
28367 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
28369         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
28370         (microblaze*-*-elf): Likewise.
28371         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
28372         LINK_SPEC.
28373         * config/microblaze/microblaze-c.c: Add builtin defines for
28374         _LITTLE_ENDIAN and _BIG_ENDIAN.
28375         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
28376         add to TARGET_DEFAULT flags.
28377         Expand ASM_SPEC and LINK_SPEC.
28378         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
28379         * config/microblaze/microblaze.md: Update extendsidi2 and
28380         movdi_internal instructions to use low-order / high-order reg
28381         print_operands.
28382         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
28383         options and inversemask / mask of LITTLE_ENDIAN.
28384         * config/microblaze/t-microblaze: Expand multilib options to
28385         include mlittle-endian (le) and update exceptions patterns.
28387 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
28389         PR rtl-optimization/56195
28390         * lra-constraints.c (get_reload_reg): Don't reuse regs
28391         if they have smaller mode than requested, if they have
28392         wider mode than requested, try to return a SUBREG.
28394         PR tree-optimization/56250
28395         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
28396         if type is unsigned and code isn't MULT_EXPR.
28398 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
28400         PR tree-optimization/56064
28401         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
28402         bits according to mode.
28403         * fixed-value.h (fixed_from_double_int)
28404         (const_fixed_from_double_int): Adjust comments.
28406 2013-02-08  Richard Biener  <rguenther@suse.de>
28408         PR lto/56231
28409         * lto-streamer.h (struct data_in): Remove current_file, current_line
28410         and current_col members.
28411         * lto-streamer-out.c (lto_output_location): Stream changed bits
28412         en-block for efficiency.
28413         * lto-streamer-in.c (clear_line_info): Remove.
28414         (lto_input_location): Cache current file, line and column
28415         globally via local statics.  Read changed bits en-block.
28416         (input_function): Do not call clear_line_info.
28417         (lto_read_body): Likewise.
28418         (lto_input_toplevel_asms): Likewise.
28420 2013-02-08  Michael Matz  <matz@suse.de>
28422         PR tree-optimization/52448
28423         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
28424         (nt_call_phase): New static.
28425         (add_or_mark_expr): Only mark accesses with newer phase than any
28426         call seen.
28427         (nonfreeing_call_p): New.
28428         (nt_init_block): Update nt_call_phase, mark blocks as visited.
28429         (nt_fini_block): Keep blocks marked as visited.
28430         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
28432 2013-02-08  Richard Biener  <rguenther@suse.de>
28434         * ira.c (ira): Free broken dominator information.
28436 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
28438         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
28440 2013-02-08  Marek Polacek  <polacek@redhat.com>
28442         * cfgloop.c (verify_loop_structure): Add more checking of headers.
28444 2013-02-08  Richard Biener  <rguenther@suse.de>
28446         PR middle-end/56181
28447         * cfgloop.h (flow_loops_find): Adjust.
28448         (bb_loop_header_p): Declare.
28449         * cfgloop.c (bb_loop_header_p): New function split out from ...
28450         (flow_loops_find): ... here.  Adjust function signature,
28451         support incremental loop structure update.
28452         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
28453         * cfgloopmanip.c (fix_loop_structure): Move ...
28454         * loop-init.c (fix_loop_structure): ... here.
28455         (apply_loop_flags): Split out from ...
28456         (loop_optimizer_init): ... here.
28457         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
28458         in incremental mode, only remove dead loops here.
28460 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
28462         PR target/54222
28463         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
28464         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
28465         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
28466         (*round<mode>3.libgcc): New insns for fixed-modes.
28467         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
28468         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
28469         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
28470         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
28471         implementations.  Define to __builtin_avr_absFX,
28472         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
28473         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
28474         __builtin_avr_countlsFX, respectively.
28475         * config/avr/avr-c.c (target.h): Include it.
28476         (enum avr_builtin_id): New enum.
28477         (avr_resolve_overloaded_builtin): New static function.
28478         (avr_register_target_pragmas): Use it to set
28479         targetm.resolve_overloaded_builtin.
28480         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
28481         tree nodes used by DEF_BUILTIN.
28482         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
28483         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
28484         <AVR_BUILTIN_xxBITS>: Same.
28486 2013-02-08  Richard Biener  <rguenther@suse.de>
28488         * cfgloop.c (verify_loop_structure): Properly handle
28489         a loop exiting to another loop header.
28490         * ira-int.h (ira_loops): Remove.
28491         * ira.c (ira_loops): Remove.
28492         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
28493         (do_reload): Use loop_optimizer_finalize.
28494         * ira-build.c (create_loop_tree_nodes): Use get_loops and
28495         number_of_loops to access the loop tree.
28496         (more_one_region_p): Likewise.
28497         (finish_loop_tree_nodes): Likewise.
28498         (rebuild_regno_allocno_maps): Likewise.
28499         (mark_loops_for_removal): Likewise.
28500         (mark_all_loops_for_removal): Likewise.
28501         (remove_unnecessary_regions): Likewise.
28502         (ira_build): Likewise.
28503         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
28505 2013-02-08  Richard Biener  <rguenther@suse.de>
28507         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
28508         * ipa-pure-const.c (analyze_function): Avoid calling
28509         mark_irreducible_loops twice.
28510         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
28512 2013-02-07  David S. Miller  <davem@davemloft.net>
28514         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
28515         on 'reg'.
28516         * var-tracking.c (vt_add_function_parameter): Test the presence of
28517         HAVE_window_save properly and do not remap argument registers when
28518         we have a leaf function.
28520 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
28522         PR bootstrap/56227
28523         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
28524         instead of "ll".
28525         * config/i386/i386.c (ix86_print_operand): Ditto.
28527 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
28529         * lra-constraints.c (process_alt_operands): Fix recently added comment.
28531 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
28533         PR rtl-optimization/56225
28534         * lra-constraints.c (process_alt_operands): Check that reload hard
28535         reg can hold value for strict_low_part.
28537 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
28539         PR debug/56154
28540         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
28541         dwarf2out_end_function.
28542         (in_first_function_p, maybe_at_text_label_p,
28543         first_loclabel_num_not_at_text_label): New variables.
28544         (dwarf2out_var_location): In the first function find out
28545         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
28546         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
28547         functions.
28549 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
28551         PR rtl-optimization/56178
28552         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
28553         SUBREG of a register.  Tidy up related block of code.
28554         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
28555         note if the source is a register or a SUBREG of a register.
28557 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
28559         PR target/56228
28560         * config/rs6000/rs6000.md (ptrm): New mode attr.
28561         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
28562         call_value_indirect_aix<pttrsize>,
28563         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
28564         m in constraints.
28566 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
28568         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
28569         if -bnortl. Convert to strcmp and strncmp.
28571 2013-02-07  Alan Modra  <amodra@gmail.com>
28573         PR target/54009
28574         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
28575         addresses won't wrap when offsetting.
28576         (rs6000_secondary_reload): Provide secondary reloads needed for
28577         wrapping LO_SUM addresses.
28579 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
28581         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
28582         MACH, just __MACH__.
28584 2013-02-06  Richard Biener  <rguenther@suse.de>
28586         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
28587         instead of calling fix_loop_structure.
28589 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
28591         PR middle-end/56217
28592         * omp-low.c (use_pointer_for_field): Return false if
28593         lower_send_shared_vars doesn't generate any copy-out code.
28595 2013-02-06  Tom de Vries  <tom@codesourcery.com>
28597         PR rtl-optimization/56131
28598         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
28599         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
28600         of the label is NULL.  Add comment.
28602 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
28604         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
28606         PR sanitizer/55374
28607         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
28608         (STATIC_LIBTSAN_LIBS): Likewise.
28609         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
28610         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
28611         is defined, don't add anything else beyond that.
28612         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
28613         (LINK_COMMAND_SPEC): Use them.
28615         PR tree-optimization/56205
28616         * tree-stdarg.c (check_all_va_list_escapes): Return true if
28617         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
28618         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
28620 2013-02-05  Richard Biener  <rguenther@suse.de>
28622         PR tree-optimization/53342
28623         PR tree-optimization/53185
28624         * tree-vectorizer.h (vect_check_strided_load): Remove.
28625         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
28626         not disallow peeling for vectorized strided loads.
28627         (vect_check_strided_load): Make static and simplify.
28628         (vect_analyze_data_refs): Adjust.
28629         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
28630         correctly when vectorizing strided loads.
28632 2013-02-05  Richard Biener  <rguenther@suse.de>
28634         * doc/install.texi: Refer to ISL, not PPL.
28636 2013-02-05  Jan Hubicka  <jh@suse.cz>
28638         PR tree-optimization/55789
28639         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
28641 2013-02-05  Jan Hubicka  <jh@suse.cz>
28643         PR tree-optimization/55789
28644         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
28645         the dead call anyway.
28647 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
28649         PR sanitizer/55374
28650         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
28652 2013-02-04  Alexander Potapenko  <glider@google.com>
28653             Jack Howarth  <howarth@bromo.med.uc.edu>
28654             Jakub Jelinek  <jakub@redhat.com>
28656         PR sanitizer/55617
28657         * config/darwin.c (sort_ctor_records): Stabilized qsort
28658         on constructor priority by using original position.
28659         (finalize_ctors): New routine to sort constructors by
28660         priority before use in assemble_integer.
28661         (machopic_asm_out_constructor): Use finalize_ctors if needed.
28663 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
28665         PR libstdc++/54314
28666         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
28667         about visibility on artificial decls.
28668         * config/sol2.c (solaris_assemble_visibility): Likewise.
28670 2013-02-04  Kai Tietz  <ktietz@redhat.com>
28672         PR target/56186
28673         * config/i386/i386.c (function_value_ms_64): Add additional valtype
28674         argument and improve checking of return-argument types for 16-byte
28675         modes.
28676         (ix86_function_value_1): Add additional valtype argument on call
28677         of function_value_64.
28678         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
28679         handling infunction_value_64 function.
28681 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
28683         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
28685 2013-02-04  Richard Biener  <rguenther@suse.de>
28687         PR tree-optimization/56188
28688         * tree-ssa-structalias.c (label_visit): Consider case with
28689         initially non-empty points-to set.
28690         (perform_var_substitution): Dump node mapping and clean up.
28692 2013-02-04  Richard Guenther  <rguenther@suse.de>
28694         PR lto/56168
28695         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
28696         node prevail as last resort.
28697         (lto_symtab_merge_decls): Remove guard on LTRANS here.
28698         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
28700 2013-02-04  Richard Biener  <rguenther@suse.de>
28702         PR tree-optimization/56113
28703         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
28704         Merge into ...
28705         (equiv_class_lookup_or_add): ... this.
28706         (label_visit): Adjust and fix error in previous patch.
28707         (perform_var_substitution): Adjust.
28709 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
28711         * config/sh/divtab.c: Fix formatting and comments throughout the file.
28712         * config/sh/sh4-300.md: Likewise.
28713         * config/sh/sh4a.md: Likewise.
28714         * config/sh/constraints.md: Likewise.
28715         * config/sh/sh.md: Likewise.
28716         * config/sh/netbsd-elf.h: Likewise.
28717         * config/sh/predicates.md: Likewise.
28718         * config/sh/sh-protos.h: Likewise.
28719         * config/sh/ushmedia.h: Likewise.
28720         * config/sh/linux.h: Likewise.
28721         * config/sh/sh.c: Likewise.
28722         * config/sh/superh.h: Likewise.
28723         * config/sh/elf.h: Likewise.
28724         * config/sh/sh4.md: Likewise.
28725         * config/sh/sh.h: Likewise.
28727 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28729         * config/pa/constraints.md: Adjust unused letters.  Change "T"
28730         constraint to match_test floating_point_store_memory_operand().
28731         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
28732         (base14_operand): New.
28733         (floating_point_store_memory_operand): New.
28734         (integer_store_memory_operand): Revise to use base14_operand and
28735         reg_plus_base_memory_operand.
28736         (move_dest_operand): Allow symbolic_memory_operands.
28737         (symbolic_memory_operand): Check for LO_SOM.
28738         (symbolic_operand): Change default case to break.
28739         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
28740         CONST_DOUBLE values to be reloaded by putting them into memory when
28741         the destination is a floating point register.
28742         (movdf): Remove code to handle CONST_DOUBLE.
28743         (movsf): Likewise.
28744         (reload_indf_r1): New.
28745         (reload_insf_r1): New.
28746         Consistently use "Q" and "T" constraints with integer and floating
28747         point move instructions, respectively.
28748         (movdi): Remove FAIL.
28749         Change predicate for source operand unamed DImode move from
28750         general_operand to move_src_operand.
28751         (umulsidi3): Change predicate for destination operand to
28752         register_operand.
28753         Likewise for similar unamed patterns.
28754         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
28755         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
28756         (hppa_legitimize_address): Simplify mask calculation.
28757         (pa_emit_move_sequence): Revised handling of secondary reloads from
28758         REG+D addresses for floating point loads and stores.  Directly handle
28759         loading CONST0_RTX (mode) to a floating point register.
28760         (pa_secondary_reload): Handle reloading DF and SFmode constant values
28761         to floating point registers.  Don't restrict secondary reloads to
28762         floating point registers to integer modes.  Revise some comments and
28763         cleanup some code.
28764         (TARGET_LEGITIMATE_ADDRESS_P): Define.
28765         (pa_legitimate_address_p): New.
28766         (pa_legitimize_reload_address): New.
28767         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
28768         (STRICT_REG_OK_FOR_BASE_P): New.
28769         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
28770         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
28772 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
28773             Andrew Dixie  <andrewd@gentrack.com>
28775         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
28776         flag set.
28778 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
28780         * expmed.c (extract_bit_field_1): Pass the full width of the
28781         structure to get_best_reg_extraction_insn.
28783 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
28785         PR target/54601
28786         * configure.ac (use_cxa_atexit): Add AIX.
28787         * configure: Regenerate.
28789         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
28791 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
28793         PR debug/54793
28794         * final.c (need_profile_function): New variable.
28795         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
28796         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
28797         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
28798         notes, targetm.asm_out.function_prologue doesn't emit anything,
28799         HAVE_prologue and profiler should be emitted before prologue,
28800         set need_profile_function instead of emitting it.
28801         (final_scan_insn): If need_profile_function, emit
28802         profile_function on the first NOTE_INSN_BASIC_BLOCK or
28803         NOTE_INSN_FUNCTION_BEG note.
28805 2013-02-01  Richard Henderson  <rth@redhat.com>
28807         * config/rs6000/rs6000.md (smulditi3): New.
28808         (umulditi3): New.
28810         * config/alpha/alpha.md (umulditi3): New.
28812 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
28814         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
28815         (ASM_OUTPUT_ALIGNED_LOCAL): New.
28817 2013-02-01  Richard Biener  <rguenther@suse.de>
28819         PR tree-optimization/56113
28820         * tree-ssa-structalias.c (label_visit): Reduce work for
28821         single-predecessor nodes.
28823 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
28825         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
28826         range isn't testing for zero.
28828 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
28830         PR middle-end/56113
28831         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
28833 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
28834             Nick Clifton  <nickc@redhat.com>
28836         * config/v850/constraints.md (Q): Define as a memory constraint.
28837         * config/v850/predicates.md (label_ref_operand): New predicate.
28838         (e3v5_shift_operand): New predicate.
28839         (ior_operator): New predicate.
28840         * config/v850/t-v850: Add e3v5 multilib.
28841         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
28842         (v850_gen_movdi): Prototype.
28843         * config/v850/v850.c: Add support for e3v5 architecture.
28844         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
28845         TARGET_V850E_UP.
28846         (construct_save_jarl): Add e3v5 long JARL support.
28847         (v850_adjust_insn_length): New function.  Adjust length of call
28848         insns when using e3v5 instructions.
28849         (v850_gen_movdi): New function: Generate instructions to move a
28850         DImode value.
28851         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
28852         (CPP_SPEC): Define __v850e3v5__ as appropriate.
28853         (TARGET_USE_FPU): Enable for e3v5.
28854         (CONST_OK_FOR_W): New macro.
28855         (ADJUST_INSN_LENGTH): Define.
28856         * config/v850/v850.md (UNSPEC_LOOP): Define.
28857         (attr cpu): Add v850e3v5.
28858         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
28859         (movdi): New pattern.
28860         (movdi_internal): New pattern.
28861         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
28862         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
28863         (cstoresf4): Likewise.
28864         (cstoredf4): Likewise.
28865         (insv): New pattern.
28866         (rotlso3_a): New pattern.
28867         (rotlsi3_b): New pattern
28868         (rotlsi3_v850e3v5): New pattern.
28869         (doloop_begin): New pattern.
28870         (fix_loop_counter): New pattern.
28871         (doloop_end): New pattern.
28872         (branch_normal): Add e3v5 long branch support.
28873         (branch_invert): Likewise.
28874         (branch_z_normal): Likewise.
28875         (branch_z_invert): Likewise.
28876         (branch_nz_normal): Likewise.
28877         (branch_nz_invert): Likewise.
28878         (call_internal_short): Add e3v5 register-indirect JARL support.
28879         (call_internal_long): Likewise.
28880         (call_value_internal_short): Likewise.
28881         (call_value_internal_long): Likewise.
28882         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
28883         (mloop): New option.
28884         * config.gcc: Add support for configuring v840e3v5 target.
28885         * doc/invoke.texi: Document new v850 specific command line options.
28887 2013-01-31  Paul Koning  <ni1d@arrl.net>
28889         PR debug/55059
28890         PR debug/54508
28891         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
28892         children if parent is a class.
28893         (prune_unused_types_prune): Don't add DW_AT_declaration.
28895 2013-01-31  Richard Biener  <rguenther@suse.de>
28897         PR tree-optimization/56157
28898         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
28899         match up operand with SLP child.
28901 2013-01-31  Jason Merrill  <jason@redhat.com>
28903         PR debug/54410
28904         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
28905         parameters the first time.
28906         (gen_scheduled_generic_parms_dies): Check completeness here.
28908 2013-01-31  Richard Biener  <rguenther@suse.de>
28910         PR middle-end/53073
28911         * common.opt (faggressive-loop-optimizations): New flag,
28912         enabled by default.
28913         * doc/invoke.texi (faggressive-loop-optimizations): Document.
28914         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
28915         infer_loop_bounds_from_undefined by it.
28917 2013-01-31  Richard Biener  <rguenther@suse.de>
28919         PR tree-optimization/56150
28920         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
28921         visit virtual operands.
28922         (find_uses_to_rename_bb): Likewise.
28924 2013-01-31  Richard Biener  <rguenther@suse.de>
28926         PR tree-optimization/56150
28927         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
28928         mixed store non-store stmts.
28930 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
28932         PR sanitizer/55374
28933         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
28934         LIBASAN_EARLY_SPEC is defined.
28935         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
28936         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
28937         before %o.
28938         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
28940         PR c++/55742
28941         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
28942         invalid args instead of ICEing on it.
28943         (ix86_valid_target_attribute_tree): Return error_mark_node if
28944         ix86_valid_target_attribute_inner_p failed.
28945         (ix86_valid_target_attribute_p): Return false only if
28946         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
28947         target("default") attribute.
28948         (sorted_attr_string): Change argument from const char * to tree,
28949         merge in all target attribute arguments rather than just one.
28950         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
28951         instead of free.  Avoid using strcat.
28952         (ix86_mangle_function_version_assembler_name): Mangle
28953         target("default") as if no target attribute is present.  Adjust
28954         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
28955         instead of xmalloc and XDELETEVEC instead of free.
28956         (ix86_function_versions): Don't return true if one of the decls
28957         doesn't have target attribute.  If they don't and one of the decls
28958         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
28959         sorted_attr_string caller.  Use XDELETEVEC instead of free.
28960         (ix86_supports_function_versions): Remove.
28961         (make_name): Fix up formatting.
28962         (make_dispatcher_decl): Remove resolver_name and its initialization.
28963         Avoid leaking memory.
28964         (is_function_default_version): Return true if there is
28965         target("default") attribute rather than no target attribute at all.
28966         (make_resolver_func): Avoid leaking memory.
28967         (ix86_generate_version_dispatcher_body): Likewise.
28968         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
28969         * target.def (supports_function_versions): Remove.
28970         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
28971         * doc/tm.texi: Regenerated.
28973 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
28975         PR rtl-optimization/56144
28976         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
28977         for values with side effects.
28979 2013-01-30  Richard Biener  <rguenther@suse.de>
28981         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
28982         (sparseset_pop): Likewise.
28983         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
28984         to be able to use quick_push in the worker loop.
28986 2013-01-30  Marek Polacek  <polacek@redhat.com>
28988         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
28990 2013-01-30  Richard Biener  <rguenther@suse.de>
28992         PR lto/56147
28993         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
28995 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
28997         PR tree-optimization/56064
28998         * fixed-value.c (fixed_from_double_int): New function.
28999         * fixed-value.h (fixed_from_double_int): New prototype.
29000         (const_fixed_from_double_int): New static inline function.
29001         * fold-const.c (native_interpret_fixed): New static function.
29002         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
29003         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
29004         (native_encode_fixed): New static function.
29005         (native_encode_expr) <FIXED_CST>: Use it.
29006         (native_interpret_int): Move double_int worker code to...
29007         * double-int.c (double_int::from_buffer): ...this new static method.
29008         * double-int.h (double_int::from_buffer): Prototype it.
29010 2013-01-30  Richard Biener  <rguenther@suse.de>
29012         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
29013         New pointer-map and obstack.
29014         (init_alias_vars): Allocate pointer-map and obstack.
29015         (delete_points_to_sets): Free them.
29016         (find_what_var_points_to): Cache result.
29017         (find_what_p_points_to): Adjust for changed interface of
29018         find_what_var_points_to.
29019         (compute_points_to_sets): Likewise.
29020         (ipa_pta_execute): Likewise.
29022 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29024         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
29025         * configure: Regenerate.
29026         * config.in: Regenerate.
29027         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
29028         #nobits/#progbits if supported.
29030 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
29032         PR target/56121
29033         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
29034         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
29035         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
29037 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
29039         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
29040         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
29042 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
29044         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
29045         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
29047 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
29049         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
29050         declaration.
29051         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
29052         * config/arm/cortex-a7.md: New bypasses using
29053         arm_mac_accumulator_is_result.
29055 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
29057         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
29058         (cortex_a7_neon_mla): Likewise.
29059         (cortex_a7_fpfmad): New reservation.
29060         (cortex_a7_fpmacs): Use ffmas and update required units.
29061         (cortex_a7_fpmuld): Update required units and latency.
29062         (cortex_a7_fpmacd): Likewise.
29063         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
29064         (cortex_a7_neon). Likewise.
29065         (bypass) Update participating units.
29067 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
29069         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
29070         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
29071         from fmac to ffma.
29072         * config/arm/vfp11.md (vfp_farith): Use ffmas.
29073         (vfp_fmul): Use ffmad.
29074         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
29075         (cortex_r4_fmacd): Use ffmad.
29076         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
29077         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
29078         (cortex_a9_fmacd): Use ffmad.
29079         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
29080         (cortex_a8_vfp_macd): Use ffmad.
29081         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
29082         (cortex_a5_fpmacd): Use ffmad.
29083         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
29084         (cortex_a15_vfp_macd): Use ffmad.
29085         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29087 2013-01-29  Jason Merrill  <jason@redhat.com>
29089         PR libstdc++/54314
29090         * varasm.c (default_assemble_visibility): Don't warn about
29091         visibility on artificial decls.
29093 2013-01-29  Richard Biener  <rguenther@suse.de>
29095         PR tree-optimization/56113
29096         * tree-ssa-structalias.c (equiv_class_lookup): Also return
29097         the bitmap leader.
29098         (label_visit): Free duplicate bitmaps and record the leader instead.
29099         (perform_var_substitution): Adjust.
29101 2013-01-29  Richard Biener  <rguenther@suse.de>
29103         PR tree-optimization/55270
29104         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
29105         the CFG, schedule loops for fixup.
29107 2013-01-29  Nick Clifton  <nickc@redhat.com>
29109         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
29110         SP_REG.
29112 2013-01-28  Leif Ekblad  <leif@rdos.net>
29114         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
29115         * config/i386/i386.h (TARGET_RDOS): New macro.
29116         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
29117         * config/i386/i386.c (ix86_option_override_internal): For 64bit
29118         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
29119         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
29120         DEFAULT_LARGE_SECTION_THRESHOLD.
29121         * config/i386/i386.md (R14_REG, R15_REG): New constants.
29122         * config/i386/rdos.h: New file.
29123         * config/i386/rdos64.h: New file.
29125 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
29127         PR other/54814
29128         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
29129         TEST_HARD_REG_BIT.
29131 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
29133         PR rtl-optimization/56117
29134         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
29135         call cselib_lookup_from_insn on the MEM before calling
29136         add_insn_mem_dependence.
29138 2013-01-28  Richard Biener  <rguenther@suse.de>
29140         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
29141         to a stmt that didn't have one.
29142         (copy_phis_for_bb): Likewise for PHI arguments.
29143         (copy_debug_stmt): Likewise for debug stmts.
29145 2013-01-28  Richard Biener  <rguenther@suse.de>
29147         PR tree-optimization/56034
29148         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
29149         (partition_builtin_p): Adjust.
29150         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
29151         it is the last partition.
29152         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
29153         up the vertex for the definition.
29154         (classify_partition): Classify whether a partition is a
29155         PKIND_REDUCTION, thus has uses outside of the loop.
29156         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
29157         Merge all PKIND_REDUCTION partitions into the last partition.
29158         (tree_loop_distribution): Seed partitions from reductions as well.
29160 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
29162         PR tree-optimization/56125
29163         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
29164         pow(x,c) into sqrt(x) * powi(x, n/2) or
29165         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
29166         optimizing for size.
29167         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
29168         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
29169         integer.
29171         PR tree-optimization/56094
29172         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
29173         to UNKNOWN_LOCATION while gimplifying expr.
29175 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
29177         PR target/56114
29178         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
29179         operand 0 in movabs insn template for -masm=intel asm alternative.
29180         (*movabs<mode>_2): Ditto for operand 1.
29182 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
29184         PR target/54663
29185         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
29186         of microblaze-c.o
29188 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
29190         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
29191         tm_file.
29193 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29195         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
29196         Undef to avoid warning.
29198 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
29200         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
29201         * configure: Regenerate.
29203 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
29205         PR tree-optimization/56098
29206         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
29207         for stmts with volatile ops.
29208         (cond_store_replacement): Don't optimize if assign has volatile ops.
29209         (cond_if_else_store_replacement_1): Don't optimize if either
29210         then_assign or else_assign have volatile ops.
29211         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
29212         volatile ops.
29214 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
29216         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
29218 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
29220         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
29221         missing ':' in asm example.
29223 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
29225         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
29226         entries into lane and laneq entries.
29227         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
29228         Remove AdvSIMD scalar modes.
29229         (aarch64_sq<r>dmulh_laneq<mode>): New.
29230         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
29231         modes.
29232         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
29233         builtin implementations to relfect changes in RTL in aarch64-simd.md.
29234         * config/aarch64/iterators.md (VCOND): New.
29235         (VCONQ): New.
29237 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
29239         PR target/54222
29240         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
29241         Add NULL LIBNAME argument to existing definitions.
29242         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
29243         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
29244         * config/avr/avr.c (DEF_BUILTIN): Same.
29245         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
29246         (avr_expand_builtin): Expand to a vanilla call if a libgcc
29247         implementation is available (DECL_ASSEMBLER_NAME is set).
29248         (avr_fold_absfx): New static function.
29249         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
29250         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
29251         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
29252         AVR_BUILTIN_ABSLLK.
29253         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
29254         (abshk, absk, abslk, absllk): Provide as static inline functions.
29256 2013-01-25  Marek Polacek  <polacek@redhat.com>
29258         PR tree-optimization/56035
29259         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
29261 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
29263         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
29264         (*movtf_internal_rex64): Add (!o,C) alternative
29265         (*movxf_internal_rex64): Ditto.
29266         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
29268 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
29270         * doc/invoke.texi: fix typo.
29271         * doc/objc.texi: fix typo.
29273 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
29275         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
29276         for the first two alternatives.
29278 2013-01-24  Diego Novillo  <dnovillo@google.com>
29280         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
29281         (ggc-zone.o): Remove.
29282         * configure.ac: Remove option --with-gc.
29283         * configure: Re-generate.
29284         * doc/install.texi: Remove documentation for --with-gc.
29285         * gengtype.c (write_enum_defn): Remove.  Update all users.
29286         (write_Types_process_field): Remove generation of gt_e_* argument.
29287         (output_type_enum): Remove.  Update all users.
29288         (write_enum_defn): Remove.  Update all users.
29289         (enum alloc_zone): Remove.  Update all users.
29290         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
29291         * ggc-common.c (ggc_splay_alloc): Remove first argument.
29292         Update all callers.
29293         (struct ptr_data): Remove field TYPE.  Update all users.
29294         (gt_pch_note_object): Remove argument TYPE.  Update all users.
29295         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
29296         Update all users.
29297         * ggc-none.c (ggc_alloc_typed_stat): Remove.
29298         (struct alloc_zone): Remove.
29299         (ggc_internal_alloc_zone_stat): Remove.
29300         (ggc_internal_cleared_alloc_zone_stat): Remove.
29301         * ggc-page.c (ggc_alloc_typed_stat): Remove.
29302         (ggc_pch_count_object): Remove last argument.  Update all users.
29303         (ggc_pch_alloc_object): Remove last argument.  Update all users.
29304         (struct alloc_zone): Remove.
29305         * ggc-zone.c: Remove.
29306         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
29307         (struct alloc_zone): Remove.
29308         (ggc_alloc_typed_stat): Remove.
29309         (ggc_alloc_typed): Remove.
29310         (ggc_splay_alloc): Remove first argument.
29311         (rtl_zone): Remove.  Update all users.
29312         (tree_zone): Remove.  Update all users.
29313         (tree_id_zone): Remove.  Update all users.
29314         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
29315         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
29316         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
29317         * tree-ssanames.c: Remove references to zone allocator in comments.
29319 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
29321         * config/avr/avr.c (avr_out_fract): Make register numbers that
29322         might be outside of source operand signed.
29324 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
29326         * config/i386/constraints.md (Yf): New constraint.
29327         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
29328         of f constraint to conditionaly disable x87 register preferences.
29329         (*movdf_internal): Ditto.
29330         (*movsf_internal): Ditto.
29332 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
29334         PR inline-asm/55934
29335         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
29336         that have operands with impossible constraints.
29337         Add a FIXME for a speed-up opportunity.
29338         * lra-constraints.c (process_alt_operands): Verify that a class
29339         selected from constraints on asms is valid for the operand mode.
29340         (curr_insn_transform): Remove incorrect comment.
29342 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
29344         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
29345         TOC operand is a valid symbol ref in the constant pool.
29347 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
29349         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
29351 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
29353         PR target/54222
29354         * config/avr/stdfix.h: New file.
29355         * t-avr (stdfix-gcc.h): New rule to build it.
29356         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
29358 2013-01-23  Kostya Serebryany  <kcc@google.com>
29360         * config/darwin.h: remove dependency on
29361         CoreFoundation (asan on Mac OS).
29363 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
29365         PR target/49069
29366         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
29367         instead of cmpdi_operand for first comparison operand.
29368         Don't assert that comparison operands aren't both constants.
29370 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
29372         * doc/install.texi (Downloading the Source): Update references to
29373         downloading separate components.
29375 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
29377         * doc/extend.texi (__int128): Improve grammar.
29379 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
29381         PR target/56028
29382         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
29383         alternative to (o,r).
29384         (*movdi_internal_rex64): Remove (!o,n) alternative.
29385         (DImode immediate->memory splitter): Remove.
29386         (DImode immediate->memory peephole2): Remove.
29387         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
29388         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
29389         alternative to (!o,*r).
29390         (*movtf_internal_sse): New pattern.
29391         (*movxf_internal_rex64): New pattern.
29392         (*movxf_internal): Disable for TARGET_64BIT.
29393         (*movdf_internal_rex64): Remove (!o,F) alternative.
29395 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
29397         PR middle-end/56074
29398         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
29399         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
29400         * tree-vect-loop-manip.c (find_loop_location): Also ignore
29401         stmt locations where LOCATION_LOCUS of the stmt location is
29402         UNKNOWN_LOCATION or BUILTINS_LOCATION.
29404         PR target/55686
29405         * config/i386/i386.md (UNSPEC_STOS): New.
29406         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
29407         *strsetqi_1): Add UNSPEC_STOS.
29409 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
29411         PR c++/56067
29412         * doc/invoke.texi: Remove left over -Wsynth example.
29414 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
29416         PR tree-optimization/56051
29417         * fold-const.c (fold_binary_loc): Don't fold
29418         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
29419         a narrowing conversion, or widening conversion from signed
29420         to unsigned.
29422 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
29424         PR rtl-optimization/56023
29425         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
29426         dependent on debug instruction.
29428 2013-01-21  Martin Jambor  <mjambor@suse.cz>
29430         PR middle-end/56022
29431         * function.c (allocate_struct_function): Call
29432         invoke_set_current_function_hook earlier.
29434 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
29436         * reload1.c (init_reload): Only initialize reload_obstack
29437         during the first call.
29439 2013-01-21  Marek Polacek  <polacek@redhat.com>
29441         * cfgloop.c (verify_loop_structure): Fix up grammar.
29443 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
29445         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
29446         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
29448 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29450         PR target/56058
29451         * config/arm/marvell-pj4.md: Update copyright year.
29452         Fix up use of alu to alu_reg and simple_alu_imm.
29454 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
29456         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
29458 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
29460         PR target/55433
29461         * lra-constraints.c (curr_insn_transform): Don't reuse original
29462         insn for secondary memory move when memory mode should be different.
29464 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29466         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
29467         atomic_storedi_1): New patterns.
29469 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
29471         btver2 pipeline descriptions.
29472         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
29473         descriptions.
29474         * config/i386/i386.md (btver2_decode): New type attributes.
29475         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
29476         type attributes.
29477         * config/i386/btver2.md: New file describing btver2 pipelines.
29479 2013-01-19  Andrew Pinski  <apinski@cavium.com>
29481         PR tree-optimization/52631
29482         * tree-ssa-sccvn (visit_use): Before looking up the original
29483         statement, try looking up the simplified expression.
29485 2013-01-19  Anthony Green  <green@moxielogic.com>
29487         * config/moxie/moxie.c (moxie_expand_prologue): Set
29488         current_function_static_stack_size.
29490 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
29492         PR tree-optimization/56029
29493         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
29494         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
29496 2013-01-18  Sharad Singhai  <singhai@google.com>
29498         PR tree-optimization/55995
29499         * dumpfile.c (dump_loc): Print location only if available.
29500         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
29502 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
29504         PR target/55433
29505         * lra-constraints.c (curr_insn_transform): Reuse original insn for
29506         secondary memory move.
29507         (inherit_reload_reg): Use rclass instead of cl for
29508         check_secondary_memory_needed_p.
29510 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
29512         PR middle-end/56015
29513         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
29514         the case where writing real complex part of target modifies op1.
29516 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
29518         * config/aarch64/aarch64-simd.md
29519         (aarch64_vcond_internal<mode>): Handle unordered cases.
29520         * config/aarch64/iterators.md (v_cmp_result): New.
29522 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
29523             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29525         * config/arm/marvell-pj4.md: New file.
29526         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
29527         * config/arm/arm.md (generic_sched): Add marvell_pj4.
29528         (generic_vfp): Likewise.
29529         * config/arm/arm-cores.def: Add marvell-pj4.
29530         * config/arm/arm-tune.md: Regenerate.
29531         * config/arm/arm-tables.opt: Regenerate.
29532         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
29533         * doc/invoke.texi: Document marvell-pj4.
29535 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
29537         * config/aarch64/arm_neon.h: Map scalar types to standard types.
29539 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
29541         PR debug/54114
29542         PR debug/54402
29543         PR debug/49888
29544         * var-tracking.c (negative_power_of_two_p): New.
29545         (global_get_addr_cache, local_get_addr_cache): New.
29546         (get_addr_from_global_cache, get_addr_from_local_cache): New.
29547         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
29548         heading comment.
29549         (vt_stack_offset_p): Remove.
29550         (vt_canon_true_dep): Always canonicalize loc's address.
29551         (clobber_overlapping_mems): Make sure we have a MEM.
29552         (local_get_addr_clear_given_value): New.
29553         (val_reset): Clear local cached entries.
29554         (compute_bb_dataflow): Create and release the local cache.
29555         Disable duplicate MEMs clobbering.
29556         (emit_notes_in_bb): Clobber MEMs likewise.
29557         (vt_emit_notes): Create and release the local cache.
29558         (vt_initialize, vt_finalize): Create and release the global
29559         cache, respectively.
29560         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
29562 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
29564         PR libmudflap/53359
29565         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
29566         not found in the symtab.
29568 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
29570         PR debug/56006
29571         PR rtl-optimization/55547
29572         PR rtl-optimization/53827
29573         PR debug/53671
29574         PR debug/49888
29575         * alias.c (offset_overlap_p): New, factored out of...
29576         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
29577         the conservative special case for symbolic constants.  Don't
29578         adjust zero sizes on alignment.
29580 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
29582         PR rtl-optimization/52573
29583         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
29584         REG_UNUSED for the same register.
29586 2013-01-17  Richard Biener  <rguenther@suse.de>
29587             Marek Polacek  <polacek@redhat.com>
29589         PR rtl-optimization/55833
29590         * loop-unswitch.c (unswitch_loops): Move loop verification...
29591         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
29592         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
29593         Set it to true when we're removing a loop from hierarchy tree in
29594         an irreducible region.
29595         (fix_bb_placements): Adjust caller.
29596         (fix_loop_placements): Likewise.
29598 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
29600         * config/avr/builtins.def (DEF_BUILTIN): Factor out
29601         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
29602         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
29603         Remove ID.  Adjust comments.
29604         * config/avr/avr-c.c (avr_builtin_name): Remove.
29605         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
29606         * config/avr/avr.c (avr_tolower): New static function.
29607         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
29608         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
29609         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
29610         default expansion.
29612 2013-01-17  Jan Hubicka  <jh@suse.cz>
29614         PR tree-optimization/55273
29615         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
29617 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
29619         PR target/55981
29620         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
29621         store through atomic_store<mode>_1.
29622         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
29624 2013-01-17  Martin Jambor  <mjambor@suse.cz>
29626         PR tree-optimizations/55264
29627         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
29628         for virtual methods.
29629         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
29630         virtual methods before inlining is over.
29631         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
29632         virtual functions.
29633         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
29634         non-virtual.
29636 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
29638         PR rtl-optimization/56005
29639         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
29640         pending reads for prefetch.
29642 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
29644         * config/aarch64/aarch64.md
29645         (*cstoresi_neg_uxtw): New pattern.
29646         (*cmovsi_insn_uxtw): New pattern.
29647         (*<optab>si3_uxtw): New pattern.
29648         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
29649         (*<optab>si3_insn_uxtw): New pattern.
29650         (*bswapsi2_uxtw): New pattern.
29652 2013-01-16  Richard Biener  <rguenther@suse.de>
29654         * tree-inline.c (tree_function_versioning): Remove set but
29655         never used variable.
29657 2013-01-16  Richard Biener  <rguenther@suse.de>
29659         PR tree-optimization/55964
29660         * tree-flow.h (rename_variables_in_loop): Remove.
29661         (rename_variables_in_bb): Likewise.
29662         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
29663         (copy_loop_before): Adjust and delete update-ssa status.
29664         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
29665         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
29666         (rename_variables_in_loop): Remove.
29667         (slpeel_update_phis_for_duplicate_loop): Likewise.
29668         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
29669         use available cfg machinery instead of duplicating it.
29670         Update PHI nodes and perform poor-mans SSA update here.
29671         (slpeel_tree_peel_loop_to_edge): Adjust.
29673 2013-01-16  Richard Biener  <rguenther@suse.de>
29675         PR tree-optimization/54767
29676         PR tree-optimization/53465
29677         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
29678         (vrp_visit_phi_node): For PHI arguments coming via backedges
29679         drop all symbolical range information.
29680         (execute_vrp): Compute backedges.
29682 2013-01-16  Richard Biener  <rguenther@suse.de>
29684         * doc/install.texi: Update CLooG and ISL requirements to
29685         0.18.0 and 0.11.1.
29687 2013-01-16  Christian Bruel  <christian.bruel@st.com>
29689         PR target/55301
29690         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
29691         (broken_move): Handle UNSPECV_SP_SWITCH_B.
29692         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
29694 2013-01-16  DJ Delorie  <dj@redhat.com>
29696         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
29697         (UNSPECV_SP_SWITCH_E): New.
29698         (sp_switch_1): Change to an unspec.
29699         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
29700         replace $r15.
29702 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
29704         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
29705         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
29706         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
29707         (expand_mem_thread_fence): Ditto.
29708         (expand_mem_signal_fence): Ditto.
29709         (expand_atomic_load): Ditto.
29710         (expand_atomic_store): Ditto.
29712 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
29714         PR rtl-optimization/55547
29715         PR rtl-optimization/53827
29716         PR debug/53671
29717         PR debug/49888
29718         * alias.c (memrefs_conflict_p): Set sizes to negative after
29719         AND adjustments.
29721 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
29723         PR target/55940
29724         * function.c (thread_prologue_and_epilogue_insns): Always
29725         add crtl->drap_reg to set_up_by_prologue.set, even if
29726         stack_realign_drap is false.
29728 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
29730         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
29731         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
29732         *call): Fix indention.
29734 2013-01-15  Tom de Vries  <tom@codesourcery.com>
29736         PR target/55876
29737         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
29738         Update comment.
29740 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
29742         PR rtl-optimization/55153
29743         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
29745 2013-01-15  Martin Jambor  <mjambor@suse.cz>
29747         PR tree-optimization/55920
29748         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
29749         accesses as grp_to_be_debug_replaced.
29751 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
29753         PR tree-optimization/55920
29754         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
29755         there is non-useless type conversion needed from debug rhs to lhs,
29756         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
29758 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
29759             Mikael Pettersson  <mikpe@it.uu.se>
29761         PR target/43961
29762         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
29763         Thumb.
29764         (ASM_OUTPUT_CASE_LABEL): Remove.
29765         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
29766         * final.c (shorten_branches): Update alignment of labels before
29767         jump tables if CASE_VECTOR_SHORTEN_MODE.
29769 2013-01-15  Richard Biener  <rguenther@suse.de>
29771         PR bootstrap/55961
29772         * system.h: Do not include gmp.h for building host tools.
29774 2013-01-15  Richard Biener  <rguenther@suse.de>
29776         PR middle-end/55882
29777         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
29778         account for bitpos when computing alignment.
29780 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
29782         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
29783         (ix86_target_macros_internal): Likewise.
29785         * config/i386/i386.c (m_CORE2I7): Removed.
29786         (m_CORE_HASWELL): New macro.
29787         (m_CORE_ALL): Likewise.
29788         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
29789         (initial_ix86_arch_features): Likewise.
29790         (processor_target_table): Initializations for Core avx2.
29791         (cpu_names): New names "core-avx2".
29792         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
29793         PROCESSOR_CORE_HASWELL.
29794         (ix86_issue_rate): New case.
29795         (ia32_multipass_dfa_lookahead): Likewise.
29796         (ix86_sched_init_global): Likewise.
29798         * config/i386/i386.h (TARGET_HASWELL): New macro.
29799         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
29800         (processor_type): New PROCESSOR_HASWELL.
29802 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
29804         PR tree-optimization/55955
29805         * tree-vect-loop.c (vectorizable_reduction): Give up early on
29806         *SHIFT_EXPR and *ROTATE_EXPR codes.
29808         PR tree-optimization/48766
29809         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
29810         -ftrapv disable -fwrapv.
29812 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
29814         PR target/55974
29815         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
29816         etc. to 1 and not to __flash.
29817         Use LL suffix for __INT24_MAX__ with -mint8.
29818         Use ULL suffix for __UINT24_MAX__ with -mint8.
29820 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
29822         * config/avr/avr-arch.h
29823         (struct base_arch_s): Use typedef avr_arch_t instead.
29824         (struct arch_info_s): Use typedef avr_arch_info_t instead.
29825         (struct mcu_type_s): Use typedef avr_mcu_t instead.
29826         * config/avr/avr.c: Same.
29827         * config/avr/avr-devices.c: Same.
29828         * config/avr/driver-avr.c: Same.
29829         * config/avr/gen-avr-mmcu-texi.c: Same.
29830         * config/avr/avr-mcus.def: Adjust comment.
29832 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
29834         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
29835         * config/aarch64/iterators.md (VALLDI): New.
29837 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
29838             Andi Kleen  <ak@linux.intel.com>
29840         PR target/55948
29841         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
29842         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
29843         memmodel flag.
29845 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
29847         * config/avr/avr-stdint.h: Remove trailing blanks.
29848         * config/avr/avr-log.h: Same.
29849         * config/avr/avr-arch.h: Same.
29850         * config/avr/avr-devices.c: Same.
29851         * config/avr/avr-dimode.md: Same.
29852         * config/avr/predicates.md: Same.
29853         * config/avr/avr-c.c: Same.  And fix typo.
29855         * config/avr/avr-protos.h: Same.  And:
29856         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
29857         (init_cumulative_args): Rename to avr_init_cumulative_args.
29858         (expand_prologue): Rename to avr_expand_prologue.
29859         (expand_epilogue): Rename to avr_expand_epilogue.
29860         (adjust_insn_length): Rename to avr_adjust_insn_length.
29861         (notice_update_cc): Rename to avr_notice_update_cc.
29862         (final_prescan_insn): Rename to avr_final_prescan_insn.
29863         * config/avr/avr.c: Same.
29864         * config/avr/avr.h: Same.
29865         * config/avr/avr.md: Remove trailing blanks.
29866         (prologue): Use avr_expand_prologue.
29867         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
29869 2013-01-14  Richard Biener  <rguenther@suse.de>
29871         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
29872         verify_location, collect_subblocks): New functions.
29873         (verify_gimple_in_cfg): Verify that locations only reference
29874         BLOCKs in the functions BLOCK tree.
29876 2013-01-14  Richard Biener  <rguenther@suse.de>
29878         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
29879         PHI argument.
29880         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
29881         unshare reference.
29882         (insert_out_of_ssa_copy_on_edge): Likewise.
29883         (rewrite_close_phi_out_of_ssa): Likewise.
29884         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
29885         debug expressions.
29886         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
29887         propagated constants.
29888         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
29889         can not be shared.
29891 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
29893         * config/avr/avr-modes.def: Add GPL copyright notice.
29895 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
29897         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
29898         MEMMODEL_MASK to determine memory model.
29899         (atomic_store<mode>): Ditto from operands[2].
29900         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
29902 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
29904         PR fortran/55935
29905         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
29906         (fold_gimple_assign): Don't call unshare_expr here.
29907         (fold_ctor_reference): Call unshare_expr.
29909 2013-01-13  Terry Guo  <terry.guo@arm.com>
29911         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
29912         * doc/fragments.texi: Document MULTILIB_REUSE.
29913         * gcc.c (multilib_reuse): New internal spec.
29914         (set_multilib_dir): Also search multilib from multilib_reuse.
29915         * genmultilib (tmpmultilib3): Refactor code.
29916         (tmpmultilib4): Ditto.
29917         (multilib_reuse): New multilib argument.
29919 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
29921         * Makefile.in: Update copyright.
29923 2013-01-12  Tom de Vries  <tom@codesourcery.com>
29925         PR middle-end/55890
29926         * calls.c (expand_call): Check if arg_nr is valid.
29928 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
29930         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
29931         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
29932         documentation.  Add missing '__' in front of
29933         __builtin_ia32_packssdw256.
29935 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29937         PR target/55719
29938         * config/s390/s390.c (s390_preferred_reload_class): Do not return
29939         NO_REGS for larl operands.
29940         (s390_reload_larl_operand): Use s390_load_address instead of
29941         emit_move_insn.
29943 2013-01-11  Richard Biener  <rguenther@suse.de>
29945         * tree-cfg.c (verify_node_sharing_1): Split out from ...
29946         (verify_node_sharing): ... here.
29947         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
29949 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
29951         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
29952         Substitute TREECHECKING.
29953         * configure: Regenerate.
29954         * Makefile.in (TREECHECKING): New.
29956 2013-01-11  Richard Guenther  <rguenther@suse.de>
29958         PR tree-optimization/44061
29959         * tree-vrp.c (extract_range_basic): Compute zero as
29960         value-range for __builtin_constant_p of function parameters.
29962 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
29964         Update copyright years.
29966 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
29968         PR rtl-optimization/55672
29969         * lra-eliminations.c (mark_not_eliminable): Permit addition with
29970         const to be eliminable.
29972 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
29974         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
29975         * configure: Regenerate.
29977 2013-01-10  Richard Biener  <rguenther@suse.de>
29979         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
29981 2013-01-10  Richard Biener  <rguenther@suse.de>
29983         PR bootstrap/55792
29984         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
29985         locations for virtual PHI arguments.
29986         (rewrite_update_phi_arguments): Likewise.
29988 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
29990         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
29991         on to assembler.
29993 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
29995         PR tree-optimization/55921
29996         * tree-complex.c (expand_complex_asm): New function.
29997         (expand_complex_operations_1): Call it for GIMPLE_ASM.
29999 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30001         PR target/55718
30002         * config/s390/s390.c (s390_symref_operand_p)
30003         (s390_loadrelative_operand_p): Merge the two functions.
30004         (s390_check_qrst_address, print_operand_address): Add parameters
30005         to s390_loadrelative_operand_p invokation.
30006         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
30007         (s390_reload_larl_operand, s390_secondary_reload): Use
30008         s390_loadrelative_operand_p instead of s390_symref_operand_p.
30009         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
30011 2013-01-09  Mike Stump  <mikestump@comcast.net>
30013         * dse.c (record_store): Remove unnecessary assert.
30015 2013-01-09  Jan Hubicka  <jh@suse.cz>
30017         PR tree-optimization/55569
30018         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
30019         * cfgloop.h (scale_loop_profile): Likewise.
30021 2013-01-09  Jan Hubicka  <jh@suse.cz>
30023         PR lto/45375
30024         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
30025         functions.
30026         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
30028 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
30030         PR middle-end/55114
30031         * expr.h (maybe_emit_group_store): Declare.
30032         * expr.c (maybe_emit_group_store): New function.
30033         * builtins.c (expand_builtin_int_roundingfn): Call it.
30034         (expand_builtin_int_roundingfn_2): Likewise.
30036 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
30038         PR rtl-optimization/55829
30039         * lra-constraints.c (match_reload): Add code for absent output.
30040         (curr_insn_transform): Add code for reloads of matched inputs
30041         without output.
30043 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
30045         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
30046         attribute of movddup insn to DF.
30047         (*vec_interleave_lowv2df): Ditto.
30048         (vec_dupv2df): Ditto.
30050 2013-01-09  Jan Hubicka  <jh@suse.cz>
30052         PR tree-optimiation/55875
30053         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
30054         EVERY_ITERATION parameter.
30055         (number_of_iterations_exit): Check if exit is executed every iteration.
30056         (idx_infer_loop_bounds): Similarly here.
30057         (n_of_executions_at_most): Simplify
30058         to only test for cases where statement is dominated by the
30059         particular bound; handle correctly the "postdominance" test.
30060         (scev_probably_wraps_p): Use max loop iterations info
30061         as a global bound first.
30063 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
30064             Nick Clifton  <nickc@redhat.com>
30066         * config/v850/v850.md (cbranchsf4): New pattern.
30067         (cstoresf4): New pattern.
30068         (cbranchdf4): New pattern.
30069         (cstoredf4): New pattern.
30070         (movsicc): Disallow floating point comparisons.
30071         (cmpsf_le_insn): Fix order of operators.
30072         (cmpsf_lt_insn): Likewise.
30073         (cmpsf_eq_insn): Likewise.
30074         (cmpdf_le_insn): Likewise.
30075         (cmpdf_lt_insn): Likewise.
30076         (cmpdf_eq_insn): Likewise.
30077         (cmpsf_ge_insn): Use LE comparison.
30078         (cmpdf_ge_insn): Likewise.
30079         (cmpsf_gt_insn): Use LT comparison.
30080         (cmpdf_gt_insn): Likewise.
30081         (cmpsf_ne_insn): Delete pattern.
30082         (cmpdf_ne_insn): Delete pattern.
30083         * config/v850/v850.c (v850_gen_float_compare): Use
30084         gen_cmpdf_eq_insn for NE comparison.
30085         (v850_float_z_comparison_operator)
30086         (v850_float_nz_comparison_operator): Move from here ...
30087         * config/v850/predicates.md: ... to here.  Move GT and GE
30088         comparisons into v850_float_z_comparison_operator.
30089         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
30090         Delete prototype.
30091         (v850_float_nz_comparison_operator): Likewise.
30093 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30095         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
30096         with calls to gen_insvsi/gen_insvdi.
30098 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
30100         * config/i386/i386.c (initial_ix86_tune_features): Set up
30101         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
30103 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
30104             Jakub Jelinek  <jakub@redhat.com>
30106         PR tree-optimization/48189
30107         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
30108         If nitercst is 0, don't predict the exit edge.
30110 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
30112         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
30113         in asm_fprintf with reg_names.
30114         (aarch64_print_operand_address): Likewise.
30115         (aarch64_return_addr): Likewise.
30116         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
30118 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30120         * config/pa/pa.h (VAL_U6_BITS_P): Define.
30121         (INT_U6_BITS): Likewise.
30122         * config/pa/predicates.md (uint6_operand): New predicate.
30123         (shift5_operand, shift6_operand): Likewise.
30124         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
30125         arith32_operand.
30126         (lshrdi3): Use shift6_operand.
30127         (shrpsi4, shrpdi4): New insn patterns.
30128         (extzv): Delete expander.
30129         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
30130         predicates in unamed zero extract patterns.  Tighten common constraint.
30131         (extv): Delete expander.
30132         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
30133         predicates in unamed sign extract patterns.  Tighten common constraint.
30134         (insv): Delete expander.
30135         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
30136         predicates in unamed insert patterns.  Tighten common constraint.
30137         Change uint32_operand predicate to uint6_operand predicate in unamed
30138         DImode pattern to insert constant values of type 1...1xxxx.
30140 2013-01-04  Jan Hubicka  <jh@suse.cz>
30142         PR tree-optimization/55823
30143         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
30144         issue.
30146 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
30147             Uros Bizjak  <ubizjak@gmail.com>
30149         PR rtl-optimization/55845
30150         * df-problems.c (can_move_insns_across): Stop scanning at
30151         volatile_insn_p source instruction or give up if
30152         across_from .. across_to range contains any volatile_insn_p
30153         instructions.
30155 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
30157         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
30158         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
30159         Declare.
30160         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
30161         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
30163 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
30165         PR fortran/55341
30166         * asan.c (asan_clear_shadow): New function.
30167         (asan_emit_stack_protection): Use it.
30169 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
30171         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
30172         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
30173         with tab instead of space.
30175 2013-01-08  Nick Clifton  <nickc@redhat.com>
30177         * config/rl78/rl78.c (rl78_expand_prologue): Always select
30178         register bank 0 at the start of an interrupt handler.
30179         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
30180         MDBH registers.
30182 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
30184         * config/aarch64/aarch64-simd.md
30185         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
30186         (aarch64_simd_bsl): Likewise.
30187         (aarch64_vcond_internal<mode>): Likewise.
30188         (vcond<mode><mode>): Likewise.
30189         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
30190         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
30192 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
30194         * config/aarch64/aarch64-builtins.c
30195         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
30197 2013-01-08  Martin Jambor  <mjambor@suse.cz>
30199         PR debug/55579
30200         * tree-sra.c (analyze_access_subtree): Return true also after
30201         potentially creating a debug-only replacement.
30203 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
30205         PR middle-end/55890
30206         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
30208         PR tree-optimization/54120
30209         * tree-vrp.c (range_fits_type_p): Don't allow
30210         src_precision < precision from signed vr to unsigned_p
30211         if vr->min or vr->max is negative.
30212         (simplify_float_conversion_using_ranges): Test can_float_p
30213         against CODE_FOR_nothing.
30215 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
30216             Richard Biener  <rguenther@suse.de>
30218         PR middle-end/55851
30219         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
30220         types instead of just INTEGER_TYPE types.
30222 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
30224         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
30225         TF_SIZE): Define.
30227 2013-01-07  Steve Ellcey  <sellcey@mips.com>
30229         PR target/42661
30230         * config/mips/mips.opt: Change mad to mmad to match documentation.
30232 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
30234         PR target/55897
30235         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
30236         .progmemx.data now.
30238 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
30240         PR target/55897
30241         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
30242         (avr_addrspace_t): Add .section_name field.
30243         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
30244         array size.
30245         (avr_addrspace): Same.  Initialize .section_name.  Remove last
30246         NULL entry.  Put __memx into .progmemx.data.
30247         (progmem_section_prefix): Remove.
30248         (avr_asm_init_sections): No need to initialize progmem_section.
30249         (avr_asm_named_section): Use avr_addrspace[].section_name to get
30250         section name prefix.
30251         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
30252         retrieve the progmem section.
30253         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
30254         boundary to run over avr_addrspace[].
30255         (avr_register_target_pragmas): Ditto.
30257 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
30259         * varasm.c (output_constant_def_contents): For asan_protect_global
30260         protected strings, adjust DECL_ALIGN if needed, before testing for
30261         anchored symbols.
30262         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
30263         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
30264         normal decls.
30265         (output_object_block): For asan protected decls, emit asan padding
30266         after their contents.
30267         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
30268         (asan_finish_file): Test it here instead.
30270 2013-01-07  Nick Clifton  <nickc@redhat.com>
30271             Matthias Klose  <doko@debian.org>
30272             Doug Kwan  <dougkwan@google.com>
30273             H.J. Lu  <hongjiu.lu@intel.com>
30275         PR driver/55470
30276         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
30278         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
30280         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
30282         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
30284         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
30286 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
30288         PR target/54461
30289         * doc/install.texi (Cross-Compiler-Specific Options): Document
30290         --with-avrlibc.
30292 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
30294         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
30295         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
30296         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
30297         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
30298         vqmovun_high_s64): Fix source operand number and update copyright.
30300 2013-01-07  Richard Biener  <rguenther@suse.de>
30302         PR middle-end/55890
30303         * gimple.h (gimple_call_builtin_p): New overload.
30304         * gimple.c (validate_call): New function.
30305         (gimple_call_builtin_p): Likewise.
30306         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
30307         Use gimple_call_builtin_p.
30308         (find_func_clobbers): Likewise.
30309         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
30310         (strlen_optimize_stmt): Likewise.
30312 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
30314         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
30315         (vld1q_dup_*): Likewise.
30316         (vld1_*): Likewise.
30317         (vld1q_*): Likewise.
30318         (vld1_lane_*): Likewise.
30319         (vld1q_lane_*): Likewise.
30321 2013-01-07  Richard Biener  <rguenther@suse.de>
30323         * lto-streamer.h (LTO_minor_version): Bump to 2.
30325 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
30327         * config/aarch64/aarch64-protos.h
30328         (aarch64_const_double_zero_rtx_p): Rename to...
30329         (aarch64_float_const_zero_rtx_p): ...this.
30330         (aarch64_float_const_representable_p): New.
30331         (aarch64_output_simd_mov_immediate): Likewise.
30332         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
30333         move immediate case.
30334         * config/aarch64/aarch64.c
30335         (aarch64_const_double_zero_rtx_p): Rename to...
30336         (aarch64_float_const_zero_rtx_p): ...this.
30337         (aarch64_print_operand): Allow printing of new constants.
30338         (aarch64_valid_floating_const): New.
30339         (aarch64_legitimate_constant_p): Check for valid floating-point
30340         constants.
30341         (aarch64_simd_valid_immediate): Likewise.
30342         (aarch64_vect_float_const_representable_p): New.
30343         (aarch64_float_const_representable_p): Likewise.
30344         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
30345         (aarch64_output_simd_mov_immediate): New.
30346         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
30347         (*movdf_aarch64): Likewise.
30348         * config/aarch64/constraints.md (Ufc): New.
30349         (Y): call aarch64_float_const_zero_rtx.
30350         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
30352 2013-01-07  Richard Biener  <rguenther@suse.de>
30354         PR tree-optimization/55888
30355         PR tree-optimization/55862
30356         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
30357         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
30358         not if it is contained therein.
30360 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
30362         * config/avr/t-avr: Typo.
30364 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
30366         PR55243
30367         * config/avr/t-avr: Don't automatically rebuild
30368         $(srcdir)/config/avr/t-multilib
30369         $(srcdir)/config/avr/avr-tables.opt
30370         $(srcdir)/doc/avr-mmcu.texi
30371         (avr-mcus): New phony target to build them on request.
30372         (s-avr-mlib, s-avr-mmcu-texi): Remove.
30373         * avr/avr-mcus.def: Adjust comments.
30375 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
30377         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
30379 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
30381         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
30383 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
30385         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
30387 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
30389         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
30390         to generate profiling.
30391         * config/rs6000/aix64.h (LIB_SPEC): Same.
30393 2013-01-04  Andrew Pinski  <apinski@cavium.com>
30395         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
30396         New function.
30397         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
30399 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
30401         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
30402         unconditionally.
30403         (ix86_expand_move): Ditto.
30404         (ix86_zero_extend_to_Pmode): Ditto.
30405         (ix86_expand_call): Ditto.
30406         (ix86_expand_special_args_builtin): Ditto.
30407         (ix86_expand_builtin): Ditto.
30409 2013-01-04  Richard Biener  <rguenther@suse.de>
30411         PR tree-optimization/55862
30412         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
30413         translating them through PHI nodes.
30415 2013-01-04  Martin Jambor  <mjambor@suse.cz>
30417         PR tree-optimization/55755
30418         * tree-sra.c (sra_modify_assign): Do not check that an access has no
30419         children when trying to avoid producing a VIEW_CONVERT_EXPR.
30421 2013-01-04  Marek Polacek  <polacek@redhat.com>
30423         PR middle-end/55859
30424         * opts.c (default_options_optimization): Clarify error message.
30426 2013-01-04  Richard Biener  <rguenther@suse.de>
30428         PR middle-end/55863
30429         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
30430         reassociation.
30432 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30434         PR target/53789
30435         * config/pa/pa.md (movsi): Revert previous change.
30436         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
30437         references.
30439 2013-01-03  Richard Henderson  <rth@redhat.com>
30441         * config/i386/i386.c (ix86_expand_move): Always assign to op1
30442         after eliminating TLS symbols.
30444 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
30446         PR bootstrap/50167
30447         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
30448         * graphite-poly.c (debug_gmp_value): Likewise.
30450 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
30452         PR target/55712
30453         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
30454         selected code model, define __code_mode_small__, __code_model_medium__,
30455         __code_model_large__, __code_model_32__ or __code_model_kernel__.
30456         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
30457         xchg temporary register with %k.  Declare temporary register as
30458         early clobbered.
30459         [__x86_64__]: For medium and large code models, preserve %rbx register.
30461 2013-01-03  Richard Biener  <rguenther@suse.de>
30463         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
30464         (dump_subscript): Adjust.
30465         (finalize_ddr_dependent): Do not dump redundant info.
30466         (analyze_siv_subscript): Adjust.
30467         (subscript_dependence_tester): Likewise.
30468         (compute_affine_dependence): Likewise.
30470 2013-01-03  Richard Biener  <rguenther@suse.de>
30472         Revert
30473         2013-01-03  Richard Biener  <rguenther@suse.de>
30475         PR tree-optimization/55857
30476         * tree-vect-stmts.c (vectorizable_load): Do not setup
30477         re-alignment for invariant loads.
30479         2013-01-02  Richard Biener  <rguenther@suse.de>
30481         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
30482         invariant load do not generate a vector load from the scalar location.
30484 2013-01-03  Richard Biener  <rguenther@suse.de>
30486         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
30487         for not vectorizing.
30488         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
30489         not build INDIRECT_REFs, call get_name once only.
30490         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
30491         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
30493 2013-01-03  Richard Biener  <rguenther@suse.de>
30495         PR tree-optimization/55857
30496         * tree-vect-stmts.c (vectorizable_load): Do not setup
30497         re-alignment for invariant loads.
30499 2013-01-03  Richard Biener  <rguenther@suse.de>
30501         PR lto/55848
30502         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
30503         prefer a built-in decl.
30505 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
30507         * gcc.c (process_command): Update copyright notice dates.
30508         * gcov.c (print_version): Likewise.
30509         * gcov-dump.c (print_version): Likewise.
30511         PR rtl-optimization/55838
30512         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
30513         iv0.step, iv1.step and step.
30515 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
30516             Marc Glisse  <marc.glisse@inria.fr>
30518         PR tree-optimization/55832
30519         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
30520         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
30521         integer_{one,zero}_node.
30523 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
30525         PR debug/54402
30526         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
30527         * var-tracking.c (reverse_op): Don't add reverse ops to
30528         VALUEs that have already
30529         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
30531 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
30533         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
30535 2013-01-02  Teresa Johnson  <tejohnson@google.com>
30537         * dumpfile.c (dump_loc): Print filename with location.
30538         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
30539         new location_t parameter to emit complete unroll message with
30540         new dump framework.
30541         (canonicalize_loop_induction_variables): Compute loops location
30542         and pass to try_unroll_loop_completely.
30543         * loop-unroll.c (report_unroll_peel): New function.
30544         (peel_loops_completely): Use new dump format with location
30545         for main dumpfile message, and invoke report_unroll_peel on success.
30546         (decide_unrolling_and_peeling): Ditto.
30547         (decide_peel_once_rolling): Remove old dumpfile message subsumed
30548         by report_unroll_peel.
30549         (decide_peel_completely): Ditto.
30550         (decide_unroll_constant_iterations): Ditto.
30551         (decide_unroll_runtime_iterations): Ditto.
30552         (decide_peel_simple): Ditto.
30553         (decide_unroll_stupid): Ditto.
30554         * cfgloop.c (get_loop_location): New function.
30555         * cfgloop.h (get_loop_location): Declare.
30557 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
30559         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
30560         NULL.
30562 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30564         PR middle-end/55198
30565         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
30566         BLKmode objects when EXPAND_MEMORY is specified.
30568 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
30570         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
30571         in loop predicate.
30572         (fold_builtin_cpu): Do not share cpu model decls across statements.
30574 2013-01-02  Jason Merrill  <jason@redhat.com>
30576         PR c++/55804
30577         * tree.c (build_array_type_1): Revert earlier change.
30579 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
30581         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
30582         "cortex-a57".
30583         * config/aarch64/aarch64-tune.md: Re-generate.
30585 2013-01-02  Richard Biener  <rguenther@suse.de>
30587         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
30588         invariant load do not generate a vector load from the scalar location.
30590 2013-01-02  Richard Biener  <rguenther@suse.de>
30592         PR bootstrap/55784
30593         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
30594         * configure: Regenerate.
30596 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
30598         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
30599         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
30600         (expand_builtin_int_roundingfn_2): Keep the original target around
30601         for the fallback case.
30603 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
30605         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
30606         to be clear for sign changes.
30608 2013-01-01  Jan Hubicka  <jh@suse.cz>
30610         * ipa-inline-analysis.c: Fix formatting.
30612 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
30614         PR tree-optimization/55831
30615         * tree-vect-loop.c (get_initial_def_for_induction): Use
30616         gsi_after_labels instead of gsi_start_bb.
30618 Copyright (C) 2013 Free Software Foundation, Inc.
30620 Copying and distribution of this file, with or without modification,
30621 are permitted in any medium without royalty provided the copyright
30622 notice and this notice are preserved.