gcc/
[official-gcc.git] / gcc / ChangeLog
blob70f14f66ff91b281efb1ef172027b270e2824910
1 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3         * hash-map-traits.h (unbounded_hashmap_traits): New class.
4         (unbounded_int_hashmap_traits): Likewise.
5         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
7 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9         * ipa-icf.h (symbol_compare_hash): New class.
10         (symbol_compare_hashmap_traits): Use it.
11         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
12         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
13         (mem_alloc_description::reverse_mem_map_t): Remove redundant
14         default_hashmap_traits.
15         * sanopt.c (sanopt_tree_triplet_hash): New class.
16         (sanopt_tree_triplet_map_traits): Use it.
18 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20         * gengtype-parse.c (require_template_declaration): Allow '+' in
21         template parameters.  Consolidate cases.
22         * hash-traits.h (int_hash): New class.
23         * alias.c (alias_set_hash): New structure.
24         (alias_set_traits): Use it.
25         * symbol-summary.h (function_summary::map_hash): New class.
26         (function_summary::summary_hashmap_traits): Use it.
27         * tree-inline.h (dependence_hash): New class.
28         (dependence_hasher): Use it.
29         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
30         * value-prof.c (profile_id_hash): New class.
31         (profile_id_traits): Use it.
33 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
35         * config/mips/mips.c (mips16_flip_traits): Use it.
36         (local_alias_traits, mips16_local_aliases): Convert from a map of
37         rtxes to a map of symbol names.
38         (mips16_local_alias): Update accordingly.
40 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
42         * hash-traits.h (string_hash, nofree_string_hash): New classes.
43         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
44         * passes.c (pass_registry_hasher): Likewise.
45         * config/alpha/alpha.c (string_traits): Likewise.
46         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
47         * config/m32c/m32c.c (pragma_traits): Likewise.
48         * config/mep/mep.c (pragma_traits): Likewise.
50 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
52         * tree-hash-traits.h (tree_hash): New class.
53         * except.c: Include tree-hash-traits.h.
54         (tree_hash_traits): Use tree_hash.
56 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
58         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
59         * sese.c: Include tree-hash-traits.h.
60         (rename_map_hasher): Use tree_ssa_name_hasher.
62 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
64         * tree-hash-traits.h (tree_decl_hash): New class.
65         * tree-ssa-strlen.c: Include tree-hash-traits.h.
66         (stridxlist_hash_traits): Use tree_decl_hash.
68 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
70         * tree-hash-traits.h: New file.
71         (tree_operand_hash): New class.
72         * sanopt.c: Include tree-hash-traits.h.
73         (sanopt_tree_map_traits): Use tree_operand_hash.
74         * tree-if-conv.c: Include tree-hash-traits.h.
75         (phi_args_hash_traits): Use tree_operand_hash.
76         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
77         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
79 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
81         * hash-map-traits.h: Include hash-traits.h.
82         (simple_hashmap_traits): New class.
83         * mem-stats.h (hash_map): Change the default traits to
84         simple_hashmap_traits<default_hash_traits<Key> >.
86 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
88         * hash-table.h: Update comments.
90 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
92         * hash-traits.h (default_hash_traits): New structure.
93         * hash-set.h (default_hashset_traits): Delete.
94         (hash_set): Use default_hash_traits<Key> instead of
95         default_hashset_traits.  Delete hash_entry type and use Key directly.
96         * ipa-devirt.c (pair_traits): Delete.
97         (default_hash_traits <type_pair>): Override.
98         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
99         (odr_types_equivalent_p, add_type_duplicate): Likewise.
101 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
103         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
105 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
107         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
108         (has_is_empty, is_empty_helper): Delete.
109         (has_mark_deleted, mark_deleted_helper): Delete.
110         (has_mark_empty, mark_empty_helper): Delete.
111         (hash_table::is_deleted): Call the Descriptor unconditionally.
112         (hash_table::is_empty): Likewise.
113         (hash_table::mark_deleted): Likewise.
114         (hash_table::mark_empty): Likewise.
116 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
118         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
119         redundant typedefs and members.
120         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
121         redundant typedefs.
122         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
123         * ipa-devirt.c (odr_name_hasher): Likewise.
124         (polymorphic_call_target_hasher): Likewise.
125         * ira-costs.c (cost_classes_hasher): Likewise.
126         * statistics.c (stats_counter_hasher): Likewise.
127         * trans-mem.c (log_entry_hasher): Likewise.
128         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
129         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
130         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
131         * var-tracking.c (variable_hasher): Likewise.
132         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
133         Remove redundant typedefs and members.
135 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
137         * hash-traits.h (ggc_cache_hasher): Rename to...
138         (ggc_cache_remove): ...this and remove typedefs.
139         (ggc_cache_ptr_hash): New class.
140         * hash-table.h: Update commentary.
141         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
142         rather than ggc_cache_hasher.
143         (const_wide_int_hasher, reg_attr_hasher): Likewise.
144         (const_double_hasher, const_fixed_hasher): Likewise.
145         * function.c (insn_cache_hasher): Likewise.
146         * trans-mem.c (tm_wrapper_hasher): Likewise.
147         * tree.h (tree_decl_map_cache_hasher): Likewise.
148         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
149         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
150         * ubsan.c (tree_type_map_cache_hasher): Likewise.
151         * varasm.c (tm_clone_hasher): Likewise.
152         * config/i386/i386.c (dllimport_hasher): Likewise.
153         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
154         (tree_hasher): Likewise.
156 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
158         * hash-traits.h (ggc_hasher): Rename to...
159         (ggc_remover): ...this and remove typedefs.
160         (ggc_cache_hasher): Update accordingly.  Add typedefs.
161         (ggc_ptr_hash): New class.
162         * hash-table.h: Update comment.
163         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
164         ggc_hasher.
165         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
166         (tree_descriptor_hasher): Likewise.
167         * cgraph.c (function_version_hasher): Likewise.
168         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
169         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
170         (dw_loc_list_hasher, addr_hasher): Likewise.
171         * function.h (used_type_hasher): Likewise.
172         * function.c (temp_address_hasher): Likewise.
173         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
174         * libfuncs.h (libfunc_hasher): Likewise.
175         * lto-streamer.h (decl_state_hasher): Likewise.
176         * optabs.c (libfunc_decl_hasher): Likewise.
177         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
178         * varasm.c (section_hasher, object_block_hasher): Likewise.
179         (const_rtx_desc_hasher): Likewise.
180         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
181         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
183 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
185         * hash-traits.h (free_ptr_hash): New class.
186         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
187         rather than typed_free_remove.  Remove redudant typedefs.
188         (external_ref_hasher): Likewise.
189         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
190         (ehspec_hasher): Likewise.
191         * ggc-common.c (saving_hasher): Likewise.
192         * gimplify.c (gimplify_hasher): Likewise.
193         * haifa-sched.c (delay_i2_hasher): Likewise.
194         * loop-invariant.c (invariant_expr_hasher): Likewise.
195         * loop-iv.c (biv_entry_hasher): Likewise.
196         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
197         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
198         * tree-cfg.c (locus_discrim_hasher): Likewise.
199         * tree-eh.c (finally_tree_hasher): Likewise.
200         * tree-into-ssa.c (var_info_hasher): Likewise.
201         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
202         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
203         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
204         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
205         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
206         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
207         (shared_bitmap_hasher): Likewise.
208         * tree-ssa-threadupdate.c (redirection_data): Likewise.
209         * tree-vectorizer.h (peel_info_hasher): Likewise.
210         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
211         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
213 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
215         * hash-table.h: Update comments.
216         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
217         (nofree_ptr_hash): New class.
218         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
219         than typed_noop_remove.  Remove redudant typedefs.
220         * attribs.c (attribute_hasher): Likewise.
221         * cfg.c (bb_copy_hasher): Likewise.
222         * cselib.c (cselib_hasher): Likewise.
223         * dse.c (invariant_group_base_hasher): Likewise.
224         * dwarf2cfi.c (trace_info_hasher): Likewise.
225         * dwarf2out.c (macinfo_entry_hasher): Likewise.
226         (comdat_type_hasher, loc_list_hasher): Likewise.
227         * gcse.c (pre_ldst_expr_hasher): Likewise.
228         * genmatch.c (id_base): Likewise.
229         * genrecog.c (test_pattern_hasher): Likewise.
230         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
231         * haifa-sched.c (delay_i1_hasher): Likewise.
232         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
233         * ipa-icf.h (congruence_class_group_hash): Likewise.
234         * ipa-profile.c (histogram_hash): Likewise.
235         * ira-color.c (allocno_hard_regs_hasher): Likewise.
236         * lto-streamer.h (string_slot_hasher): Likewise.
237         * lto-streamer.c (tree_entry_hasher): Likewise.
238         * plugin.c (event_hasher): Likewise.
239         * postreload-gcse.c (expr_hasher): Likewise.
240         * store-motion.c (st_expr_hasher): Likewise.
241         * tree-sra.c (uid_decl_hasher): Likewise.
242         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
243         (ssa_name_var_hash): Likewise.
244         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
245         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
246         * tree-ssa-pre.c (pre_expr_d): Likewise.
247         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
248         * vtable-verify.h (registration_hasher): Likewise.
249         * vtable-verify.c (vtbl_map_hasher): Likewise.
250         * config/arm/arm.c (libcall_hasher): Likewise.
251         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
252         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
253         * config/sol2.c (comdat_entry_hasher): Likewise.
254         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
255         (print_fold_checksum, fold_checksum_tree): Likewise.
256         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
257         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
258         (fold_build_call_array_loc): Likewise.
259         * tree-ssa-ccp.c (gimple_htab): Likewise.
260         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
261         rather than pointer_type.
263 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
265         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
266         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
268 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
270         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
271         (ggc_hasher::ggc_mx): Likewise.
272         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
273         that duplicate ggc_hasher ones.
275 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
277         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
278         (gt_cleare_cache): Check here for deleted and empty entries.
279         Replace handle_cache_entry with a call to keep_cache_entry.
280         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
281         (ggc_cache_hasher::keep_cache_entry): New function.
282         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
283         (tm_wrapper_hasher::keep_cache_entry): New function.
284         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
285         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
286         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
287         (type_cache_hasher::keep_cache_entry): New function.
288         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
289         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
290         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
291         (tree_type_map_cache_hasher::keep_cache_entry): New function.
292         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
293         (tm_clone_hasher::keep_cache_entry): New function.
294         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
295         (dllimport_hasher::keep_cache_entry): New function.
297 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
299         * hash-table.h: Include hash-traits.h.
300         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
301         (ggc_cache_hasher): Move to...
302         * hash-traits.h: ...this new file.
304 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
306         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
307         struct cl_optimization.
308         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
309         * tree.c (make_node_stat): Allocate cl_optimization struct.
310         (copy_node_stat): Allocate and copy cl_optimization struct.
312 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
314         * function.h (struct incoming_args): Move struct.
315         (pass_by_reference, reference_callee_copied): Remove prototypes.
316         * emit-rtl.h (struct incoming_args): Relocate struct here.
317         * calls.h (pass_by_reference, reference_callee_copied): Relocate
318         prototypes here.
319         * function.c (pass_by_reference, reference_callee_copied): Move.
320         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
321         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
322         * ipa-chkp.c: Include calls.h.
324 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
326         * alias.h (alias_set_type): Move typedef.
327         * coretypes.h (alias_set_type): Relocate typedef here.
328         * rtl.h: Don't include alias.h.
330 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
332         * cgraph.h (cgraph_rtl_info): Move to rtl.h
333         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
334         and instance.
335         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
336         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
337         doesn't exist.
338         * calls.c: Include hard-reg-set.h before rtl.h.
339         * ira.c: Likewise.
341 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
342             Vladimir Makarov  <vmakarov@redhat.com>
344         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
345         Add assert.
347 2015-06-25  Richard Biener  <rguenther@suse.de>
349         * fold-const.c (fold_binary_loc): Move simplification of
350         (X <<>> C1) & C2 ...
351         * match.pd: ... here.
353 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
355         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
357 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
359         * match.pd: Add patterns for vec_conds between 1 and 0.
361 2015-06-25  Richard Biener  <rguenther@suse.de>
363         * tree-vect-stmts.c (vectorizable_conversion): Do not set
364         STMT_VINFO_VEC_STMT for SLP.
365         (vectorizable_store): Likewise.
366         (vectorizable_load): Likewise.
367         (vect_transform_stmt): Catch SLP vectorization clobbering
368         STMT_VINFO_VEC_STMT.
370 2015-06-25  Richard Biener  <rguenther@suse.de>
372         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
373         dumping.
374         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
375         cleanup resulting dead code and parameters.
376         (vect_transform_slp_perm_load): Adjust.
378 2015-06-25  Nick Clifton  <nickc@redhat.com>
380         * config/bfin/bfin.c (bfin_expand_prologue): Set
381         current_function_static_stack_size if flag_stack_usage_info is
382         set.
383         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
384         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
385         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
386         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
388 2015-06-25  Tom de Vries  <tom@codesourcery.com>
390         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
391         comment that the generated IV is unsigned.
393 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
395         PR target/29693
396         * config/arm/arm.c (arm_dbx_register_number): Return
397         DWARF_FRAME_REGISTERS by default.
399 2015-06-25  Tom de Vries  <tom@codesourcery.com>
401         * dominance.c (calculate_dominance_info): Fix verify_dominators call
402         argument.  Call verify_dominator when reusing dominator info.
404 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
406         PR target/66563
407         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
408         an additional element of the unspec vector.  Modify indices
409         of operands.
410         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
411         * config/sh/sh.c (prepare_move_operands): Pass incremented
412         const_int to gen_GOTaddr2picreg.
413         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
415 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
417         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
418         Condition on TARGET_FLOAT.
420 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
422         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
423         and (no)crypto.
425 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
427         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
429         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
430         aarch64_err_no_fpadvsimd.
432         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
433         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
434         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
435         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
436         Turn error into assert, test TARGET_FLOAT.
437         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
438         TARGET_FLOAT.
440 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
442         PR debug/66482
443         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
445 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
447         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
449 2015-06-24 Renlin Li <renlin.li@arm.com>
451         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
452         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
454 2015-06-24  Richard Biener  <rguenther@suse.de>
456         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
457         (main): Likewise.
458         (lower_opt_convert): Support lowering of conditional view_convert.
459         (parser::parse_operation): Likewise.
460         (parser::parse_for): Likewise.
462 2015-06-24  Renlin Li  <renlin.li@arm.com>
464         * varasm.c (emit_local): Use unsigned int for align variable.
466 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
468         PR target/63408
469         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
470         for negative numbers.
472 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
474         PR rtl-optimization/66306
475         * reload.c (find_reloads): Swap the match_dup info for
476         commutative operands.
478 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
480         * config/s390/vx-builtins.md
481         ("vec_scatter_element<mode>_<non_vec_int>")
482         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
483         attribute with bhfgq.
485 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
487         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
489 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
491         * config/s390/s390-builtin-types.def: Add flag to indicate the
492         options under which the function type is needed.
493         * config/s390/s390-builtins.def: Add flag to indicate the options
494         under which the builtin is enabled.
495         * config/s390/s390-builtins.h: Add flags parameter to macro
496         definitions.
497         (bflags_for_builtin): New function.
498         (flags_for_builtin): Renamed to ...
499         (opflags_for_builtin): ... this.
500         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
501         flags_for_builtin to bflags_for_builtin and
502         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
503         * config/s390/s390.c: Add initialization of bflags_builtin and
504         opflags_builtin arrays.
505         Remove code for flags_builtin.
506         (s390_init_builtins): Only create builtin function types if one of
507         their flags is active.
508         Only create builtins if all of their flags are active.
509         (s390_expand_builtin): Rename flags_for_builtin to
510         opflags_for_builtin.
512 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
514         * config/s390/vecintrin.h: Remove internal builtins.
516 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
518         * config/s390/s390.c (s390_secondary_reload): Fix check for
519         GENERAL_REGS register class.
521 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
523         * config/s390/s390.c (s390_support_vector_misalignment): Call
524         default implementation for !TARGET_VX.
526 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
528         * config/s390/s390.c (s390_legitimate_constant_p): Add
529         TARGET_VX check.
531 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
533         * config/s390/s390.c (s390_vector_abi): New variable definition.
534         (s390_check_type_for_vector_abi): New function.
535         (TARGET_ASM_FILE_END): New macro definition.
536         (s390_asm_file_end): New function.
537         (s390_function_arg): Call s390_check_type_for_vector_abi.
538         (s390_gimplify_va_arg): Likewise.
539         * configure: Regenerate.
540         * configure.ac: Check for .gnu_attribute Binutils feature.
542 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
544         PR target/65803
545         * config/bfin/bfin.c (hwloop_optimize): Initialize
546         JUMP_LABEL for newly created jump.
548 2015-06-23  Tristan Gingold  <gingold@adacore.com>
550         * collect-utils.c (collect_wait): Unlink the response file here
551         instead of...
552         (do_wait): ...here.
553         (utils_cleanup): ...and here.
555 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
557         * df-scan.c: Don't include target-def.h.
558         * targhooks.c: Likewise.
559         * config/arm/arm-c.c: Likewise.
560         * config/i386/i386-c.c: Likewise.
561         * config/nds32/nds32-cost.c: Likewise.
562         * config/nds32/nds32-fp-as-gp.c: Likewise.
563         * config/nds32/nds32-intrinsic.c: Likewise.
564         * config/nds32/nds32-isr.c: Likewise.
565         * config/nds32/nds32-md-auxiliary.c: Likewise.
566         * config/nds32/nds32-memory-manipulation.c: Likewise.
567         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
568         * config/nds32/nds32-predicates.c: Likewise.
570 2015-06-23  Richard Biener  <rguenther@suse.de>
572         PR tree-optimization/66636
573         * tree-vect-stmts.c (vectorizable_store): Properly compute the
574         def type for further defs for strided stores.
576 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
578         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
579         conditional selects.
580         (setcc_int<mode>, setcc_float<mode>): Reformat.
582 2015-06-23  Marek Polacek  <polacek@redhat.com>
584         * match.pd ((x + y) - (x | y) -> x & y,
585         (x + y) - (x & y) -> x | y): New patterns.
587 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
589         PR 65711
590         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
591         '-dynamic-linker' within %{!shared: ...}.
593 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
595         PR target/66560
596         * config/i386/predicates.md (addsub_vm_operator): New predicate.
597         (addsub_vs_operator): Ditto.
598         (addsub_vs_parallel): Ditto.
599         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
600         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
601         Put minus RTX before plus and adjust vec_merge selector.
602         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
603         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
604         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
605         (addsub vec_merge splitters): New combiner splitters.
606         (addsub vec_select/vec_concat splitters): Ditto.
608 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
610         PR tree-optimization/66449
611         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
612         POINTER_PLUS_EXPR for pointers.
614 2015-06-23  Alan Modra  <amodra@gmail.com>
616         * rtlanal.c (commutative_operand_precedence): Correct comments.
617         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
618         declaration.  Return an int.  Distinguish REG,REG return from
619         others.
620         (struct simplify_plus_minus_op_data): Make local to function.
621         (simplify_plus_minus): Don't set canonicalized if merely sorting
622         registers.  Avoid packing ops if nothing changes.  White space fixes.
624 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
626         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
627         -fdump-ada-spec is passed but not if -fsyntax-only is.
629 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
631         PR bootstrap/63740
632         * lra-lives.c (process_bb_lives): Check insn copying the same
633         reload pseudo and don't create a copy for it.
635 2015-06-22  Tom de Vries  <tom@codesourcery.com>
637         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
638         for cond_stmt.
640 2015-06-22  Tom de Vries  <tom@codesourcery.com>
642         * builtins.def (DEF_GOMP_BUILTIN): Test
643         'flag_tree_parallelize_loops > 1' instead of
644         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
646 2015-06-22  Tom de Vries  <tom@codesourcery.com>
648         * dominance.c (calculate_dominance_info): Verify dominators if
649         early-out.
651 2015-06-22  Marek Polacek  <polacek@redhat.com>
653         * match.pd ((x ^ y) ^ (x | y) -> x & y,
654         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
655         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
656         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
658 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
660         PR target/65871
661         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
662         cost of embedded comparison.
664 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
666         PR target/65914
667         * config/rs6000/predicates.md (altivec_register_operand): Permit
668         virtual stack registers.
669         (vsx_register_operand): Likewise.
670         (vfloat_operand): Likewise.
671         (vint_operand): Likewise.
672         (vlogical_operand): Likewise.
674 2015-06-22  Richard Biener  <rguenther@suse.de>
676         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
677         and single_scalar_iteration_cost members.
678         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
679         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
680         (vect_get_single_scalar_iteration_cost): Remove.
681         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
682         Use LOOP_VINFO_SCALAR_ITERATION_COST.
683         * tree-vect-loop.c (destroy_loop_vec_info): Free
684         scalar_cost_vec.
685         (vect_get_single_scalar_iteration_cost): Compute result into
686         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
687         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
688         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
689         (vect_estimate_min_profitable_iters): Use them.
691 2015-06-22  Christian Bruel  <christian.bruel@st.com>
693         PR target/52144
694         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
695         (TARGET_INSERT_ATTRIBUTES): Define.
696         (thumb_flipper): New var.
697         * config/arm/arm.opt (-mflip-thumb): New switch.
699 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
700             Martin Liska  <mliska@suse.cz>
702         PR ipa/65908
703         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
704         construction of arg_types.
705         (sem_function::sem_function): Likewise.
706         (sem_function::~sem_function): Remove destruction of arg_types.
707         (sem_function::compatible_parm_types_p): New function.
708         (sem_function::equals_wpa): Reorg matching of return values
709         and parameter types.
710         (sem_function::equals_private): Reorg mathcing of argument types.
711         (sem_function::parse_tree_args): Remove.
712         * ipa-icf.h (init_wpa): Do not call it.
713         (parse_tree_args): Remove.
714         (compatible_parm_types_p): Declare.
715         (result_type): Remove.
716         (arg_types): Remove.
718 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
720         PR ipa/66351
721         * ipa-polymorphic-call.c
722         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
723         initializing alias oracle; fix formating; set base_alias_set if it
724         is known.
726 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
728         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
729         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
730         (find_inc): Likewise.
731         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
732         swapping.
733         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
734         * df-scan.c (df_swap_refs): Remove.
735         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
736         * dominance.c (link_roots): Use std::swap instead of manually swapping.
737         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
738         * fold-const.c (fold_relational_const): Likewise.
739         * genattrtab.c (simplify_test_exp): Likewise.
740         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
741         gimple_simplify): Likewise.
742         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
743         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
744         * ipa-devirt.c (add_type_duplicate): Likewise.
745         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
746         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
747         * lra.c (lra_create_copy): Likewise.
748         * lto-streamer-out.c (DFS::DFS): Likewise.
749         * modulo-sched.c (get_sched_window): Likewise.
750         * omega.c (omega_pretty_print_problem): Likewise.
751         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
752         * reload1.c (reloads_unique_chain_p): Likewise.
753         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
754         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
755         use std::swap.
756         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
757         manually swapping.
758         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
759         predicate_mem_writes): Likewise.
760         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
761         * tree-predcom.c (combine_chains): Likewise.
762         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
763         refs_may_alias_p_1): Likewise.
764         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
765         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
766         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
767         number_of_iterations_cond): Likewise.
768         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
769         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
770         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
771         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
772         * tree-vrp.c (extract_range_from_binary_expr_1,
773         extract_range_from_unary_expr_1): Likewise.
775 2015-06-20  Marek Polacek  <polacek@redhat.com>
777         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
779 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
781         PR target/66591
782         * config/sh/sh.c (prepare_move_operands): Replace subreg
783         index term with R0 for base and index addressing.
785 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
787         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
788         op1 is an fp zero.
789         (movsf_aarch64): Change condition from register_operand to
790         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
791         load1.  Change type for alternative 7 to store1.
792         (movdf_aarch64): Likewise.
794 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
796         * config/vax/vax.md: Adjust sign/zero extend patterns to
797         handle SUBREGs in operands[1].
799 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
801         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
802         of manually swapping.
803         (expand_vec_perm_interleave2): Likewise.
805 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
807         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
808         reuse bounds created for abnormal ssa names.
810 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
812         * config/nvptx/nvptx.md (allocate_stack): Rename to...
813         (allocate_stack_<mode>): ... this, and add :P on both
814         match_operand and unspec.
815         (allocate_stack): New expander.
817 2015-06-19  Christian Bruel  <christian.bruel@st.com>
819         PR target/66541
820         PR target/52144
821         * config/arm/arm.c (arm_set_current_function): Handle
822         explicit default options.
824 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
826         * config/i386/i386.md (*movsicc_noc_zext): New insn.
827         (zero-extended cmove with mem peephole2): New pattern.
828         (cmove with mem peephole2): Merge patterns.
830 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
832         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
834 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
836         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
837         * config/mips/mips.md (*madd4<mode>): Ditto.
838         (*nmadd3<mode>) Ditto.
839         (*nmadd4<mode>_fastmath): Ditto.
840         (*nmadd3<mode>_fastmath): Ditto.
841         (*nmsub4<mode>): Ditto.
842         (*nmsub3<mode>): Ditto.
843         (*nmsub4<mode>_fastmath): Ditto.
844         (*nmsub3<mode>_fastmath): Ditto.
846 2015-06-18  Michael Matz  <matz@suse.de>
848         PR middle-end/66253
849         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
850         grouped strided stores.
851         (vectorizable_load): Don't use the DR from first_stmt in
852         the non-SLP grouped strided case.
854 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
856         PR target/66569
857         * function.c (assign_bounds): Add arguments assign_regs,
858         assign_special, assign_bt.
859         (assign_parms): For vararg functions handle bounds in BT
860         and special slots after incoming vararg bounds.
862 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
864         PR middle-end/66568
865         * cfgexpand.c (expand_return): Handle missing bounds.
866         (expand_gimple_stmt_1): Likewise.
867         * tree-chkp.c (chkp_expand_zero_bounds): New.
868         * tree-chkp.h (chkp_expand_zero_bounds): New.
870 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
872         PR middle-end/66567
873         * ipa-chkp.c (chkp_maybe_create_clone): Require
874         functions to be instrumentable.
875         * tree-chkp.c (chkp_replace_function_pointer): Use
876         chkp_instrumentable_p instead of attribute check.
878 2015-06-18  Richard Biener  <rguenther@suse.de>
880         PR tree-optimization/66510
881         * tree-vect-stmts.c (vectorizable_load): Properly compute the
882         number of vector loads for SLP permuted loads.
883         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
884         check the stride for loop vectorization.
885         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
886         vectorization factor.
887         (vect_analyze_group_access): If the group size is not a power
888         of two require a epilogue loop.
889         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
890         compute and optimizing and alias test pruning after final
891         vectorization factor computation.
892         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
893         vector alignment.
894         (vect_transform_slp_perm_load): Properly compute the original
895         number of vector load stmts.
897 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
899         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
900         "unlikely character , in @var" warning.
902 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
904         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
905         (ix86_function_arg_advance): Ditto.
906         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
908 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
910         * function.h (struct rtl_data): Remove struct and accessor macros.
911         * emit-rtl.h (struct rtl_data): Relocate to here.
912         * Makefile.in (GTFILES): Add emit-rtl.h.
913         * df-core.c: Include emit-rtl.h.
914         * genattrtab.c: Likewise.
915         * genconditions.c: Likewise.
916         * genpreds.c: Likewise.
917         * genrecog.c: Likewise.
918         * regcprop.c: Likewise.
919         * resource.c: Likewise.
920         * sched-rgn.c: Likewise.
921         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
922         * config/i386/winnt.c: Likewise.
924 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
926         PR middle-end/66429
927         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
928         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
929         and has_force_vectorize_loops flags from cfun into
930         child_cfun.
931         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
932         if simduid is non-NULL.
933         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
934         * passes.def (pass_simduid_cleanup): Add new pass after loop
935         passes.
936         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
937         indirection from htab argument's type.
938         (shrink_simd_arrays): New function.
939         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
940         Don't call adjust_simduid_builtins if there are no loops.
941         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
942         (pass_simduid_cleanup::execute): New method.
943         (make_pass_simduid_cleanup): New function.
945 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
947         * tree-core.h (tree_target_option): Make opts field a pointer to a
948         cl_target_option instead of an instance of the struct.
949         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
950         the structure.
951         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
952         TARGET_OPTION_NODE.
953         (copy_node_stat): Allocate and copy struct cl_target_option.
955 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
957         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
958         Remove conditional exposure of prototypes.
959         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
960         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
961         definitions in tree.h with functions.
962         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
963         anon_aggrname_p.
964         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
966 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
968         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
969         (*cmp<mode>_signed): ... this.
970         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
971         (*cmp<mode>_unsigned): ... this.  Remove %b.
973 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
975         * coretypes.h: Include input.h and as-a.h.
976         * rtl.h: Include input.h and as-a.h for generator files.
977         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
978         * vec.c: Don't include diagnostic-core.h.
979         * alias.c: Do not include input.h, line-map.h or is-a.h.
980         * asan.c: Likewise.
981         * attribs.c: Likewise.
982         * auto-inc-dec.c: Likewise.
983         * auto-profile.c: Likewise.
984         * bb-reorder.c: Likewise.
985         * bt-load.c: Likewise.
986         * builtins.c: Likewise.
987         * caller-save.c: Likewise.
988         * calls.c: Likewise.
989         * ccmp.c: Likewise.
990         * cfg.c: Likewise.
991         * cfganal.c: Likewise.
992         * cfgbuild.c: Likewise.
993         * cfgcleanup.c: Likewise.
994         * cfgexpand.c: Likewise.
995         * cfghooks.c: Likewise.
996         * cfgloop.c: Likewise.
997         * cfgloop.h: Likewise.
998         * cfgloopanal.c: Likewise.
999         * cfgloopmanip.c: Likewise.
1000         * cfgrtl.c: Likewise.
1001         * cgraph.c: Likewise.
1002         * cgraphbuild.c: Likewise.
1003         * cgraphclones.c: Likewise.
1004         * cgraphunit.c: Likewise.
1005         * cilk-common.c: Likewise.
1006         * combine-stack-adj.c: Likewise.
1007         * combine.c: Likewise.
1008         * compare-elim.c: Likewise.
1009         * convert.c: Likewise.
1010         * coverage.c: Likewise.
1011         * cppbuiltin.c: Likewise.
1012         * cprop.c: Likewise.
1013         * cse.c: Likewise.
1014         * cselib.c: Likewise.
1015         * data-streamer-in.c: Likewise.
1016         * data-streamer-out.c: Likewise.
1017         * data-streamer.c: Likewise.
1018         * dbxout.c: Likewise.
1019         * dce.c: Likewise.
1020         * ddg.c: Likewise.
1021         * debug.c: Likewise.
1022         * df-core.c: Likewise.
1023         * df-problems.c: Likewise.
1024         * df-scan.c: Likewise.
1025         * df.h: Likewise.
1026         * dfp.c: Likewise.
1027         * diagnostic-core.h: Likewise.
1028         * diagnostic.c: Likewise.
1029         * dojump.c: Likewise.
1030         * dominance.c: Likewise.
1031         * domwalk.c: Likewise.
1032         * double-int.c: Likewise.
1033         * dse.c: Likewise.
1034         * dumpfile.c: Likewise.
1035         * dumpfile.h: Likewise.
1036         * dwarf2asm.c: Likewise.
1037         * dwarf2cfi.c: Likewise.
1038         * dwarf2out.c: Likewise.
1039         * emit-rtl.c: Likewise.
1040         * et-forest.c: Likewise.
1041         * except.c: Likewise.
1042         * explow.c: Likewise.
1043         * expmed.c: Likewise.
1044         * expr.c: Likewise.
1045         * final.c: Likewise.
1046         * fixed-value.c: Likewise.
1047         * fold-const.c: Likewise.
1048         * function.c: Likewise.
1049         * fwprop.c: Likewise.
1050         * gcc-plugin.h: Likewise.
1051         * gcse.c: Likewise.
1052         * generic-match-head.c: Likewise.
1053         * ggc-page.c: Likewise.
1054         * gimple-builder.c: Likewise.
1055         * gimple-expr.c: Likewise.
1056         * gimple-fold.c: Likewise.
1057         * gimple-iterator.c: Likewise.
1058         * gimple-low.c: Likewise.
1059         * gimple-match-head.c: Likewise.
1060         * gimple-pretty-print.c: Likewise.
1061         * gimple-ssa-isolate-paths.c: Likewise.
1062         * gimple-ssa-strength-reduction.c: Likewise.
1063         * gimple-streamer-in.c: Likewise.
1064         * gimple-streamer-out.c: Likewise.
1065         * gimple-streamer.h: Likewise.
1066         * gimple-walk.c: Likewise.
1067         * gimple.c: Likewise.
1068         * gimplify-me.c: Likewise.
1069         * gimplify.c: Likewise.
1070         * godump.c: Likewise.
1071         * graph.c: Likewise.
1072         * graphite-blocking.c: Likewise.
1073         * graphite-dependences.c: Likewise.
1074         * graphite-interchange.c: Likewise.
1075         * graphite-isl-ast-to-gimple.c: Likewise.
1076         * graphite-optimize-isl.c: Likewise.
1077         * graphite-poly.c: Likewise.
1078         * graphite-scop-detection.c: Likewise.
1079         * graphite-sese-to-poly.c: Likewise.
1080         * graphite.c: Likewise.
1081         * haifa-sched.c: Likewise.
1082         * hw-doloop.c: Likewise.
1083         * ifcvt.c: Likewise.
1084         * init-regs.c: Likewise.
1085         * input.c: Likewise.
1086         * internal-fn.c: Likewise.
1087         * ipa-chkp.c: Likewise.
1088         * ipa-comdats.c: Likewise.
1089         * ipa-cp.c: Likewise.
1090         * ipa-devirt.c: Likewise.
1091         * ipa-icf-gimple.c: Likewise.
1092         * ipa-icf.c: Likewise.
1093         * ipa-inline-analysis.c: Likewise.
1094         * ipa-inline-transform.c: Likewise.
1095         * ipa-inline.c: Likewise.
1096         * ipa-polymorphic-call.c: Likewise.
1097         * ipa-profile.c: Likewise.
1098         * ipa-prop.c: Likewise.
1099         * ipa-pure-const.c: Likewise.
1100         * ipa-ref.c: Likewise.
1101         * ipa-reference.c: Likewise.
1102         * ipa-split.c: Likewise.
1103         * ipa-utils.c: Likewise.
1104         * ipa-visibility.c: Likewise.
1105         * ipa.c: Likewise.
1106         * ira-build.c: Likewise.
1107         * ira-color.c: Likewise.
1108         * ira-conflicts.c: Likewise.
1109         * ira-costs.c: Likewise.
1110         * ira-emit.c: Likewise.
1111         * ira-lives.c: Likewise.
1112         * ira.c: Likewise.
1113         * jump.c: Likewise.
1114         * langhooks.c: Likewise.
1115         * lcm.c: Likewise.
1116         * loop-doloop.c: Likewise.
1117         * loop-init.c: Likewise.
1118         * loop-invariant.c: Likewise.
1119         * loop-iv.c: Likewise.
1120         * loop-unroll.c: Likewise.
1121         * lower-subreg.c: Likewise.
1122         * lra-assigns.c: Likewise.
1123         * lra-coalesce.c: Likewise.
1124         * lra-constraints.c: Likewise.
1125         * lra-eliminations.c: Likewise.
1126         * lra-lives.c: Likewise.
1127         * lra-remat.c: Likewise.
1128         * lra-spills.c: Likewise.
1129         * lra.c: Likewise.
1130         * lto-cgraph.c: Likewise.
1131         * lto-compress.c: Likewise.
1132         * lto-opts.c: Likewise.
1133         * lto-section-in.c: Likewise.
1134         * lto-section-out.c: Likewise.
1135         * lto-streamer-in.c: Likewise.
1136         * lto-streamer-out.c: Likewise.
1137         * lto-streamer.c: Likewise.
1138         * mcf.c: Likewise.
1139         * mode-switching.c: Likewise.
1140         * modulo-sched.c: Likewise.
1141         * omega.c: Likewise.
1142         * omp-low.c: Likewise.
1143         * optabs.c: Likewise.
1144         * opts-global.c: Likewise.
1145         * opts.h: Likewise.
1146         * passes.c: Likewise.
1147         * plugin.c: Likewise.
1148         * postreload-gcse.c: Likewise.
1149         * postreload.c: Likewise.
1150         * predict.c: Likewise.
1151         * pretty-print.h: Likewise.
1152         * print-rtl.c: Likewise.
1153         * print-tree.c: Likewise.
1154         * profile.c: Likewise.
1155         * real.c: Likewise.
1156         * realmpfr.c: Likewise.
1157         * recog.c: Likewise.
1158         * ree.c: Likewise.
1159         * reg-stack.c: Likewise.
1160         * regcprop.c: Likewise.
1161         * reginfo.c: Likewise.
1162         * regrename.c: Likewise.
1163         * regstat.c: Likewise.
1164         * reload.c: Likewise.
1165         * reload1.c: Likewise.
1166         * reorg.c: Likewise.
1167         * resource.c: Likewise.
1168         * rtl-chkp.c: Likewise.
1169         * rtl-error.c: Likewise.
1170         * rtlanal.c: Likewise.
1171         * rtlhooks.c: Likewise.
1172         * sanopt.c: Likewise.
1173         * sched-deps.c: Likewise.
1174         * sched-ebb.c: Likewise.
1175         * sched-rgn.c: Likewise.
1176         * sched-vis.c: Likewise.
1177         * sdbout.c: Likewise.
1178         * sel-sched-dump.c: Likewise.
1179         * sel-sched-ir.c: Likewise.
1180         * sel-sched.c: Likewise.
1181         * sese.c: Likewise.
1182         * shrink-wrap.c: Likewise.
1183         * simplify-rtx.c: Likewise.
1184         * stack-ptr-mod.c: Likewise.
1185         * statistics.c: Likewise.
1186         * stmt.c: Likewise.
1187         * stor-layout.c: Likewise.
1188         * store-motion.c: Likewise.
1189         * streamer-hooks.c: Likewise.
1190         * stringpool.c: Likewise.
1191         * symtab.c: Likewise.
1192         * target-globals.c: Likewise.
1193         * targhooks.c: Likewise.
1194         * toplev.c: Likewise.
1195         * tracer.c: Likewise.
1196         * trans-mem.c: Likewise.
1197         * tree-affine.c: Likewise.
1198         * tree-browser.c: Likewise.
1199         * tree-call-cdce.c: Likewise.
1200         * tree-cfg.c: Likewise.
1201         * tree-cfgcleanup.c: Likewise.
1202         * tree-chkp-opt.c: Likewise.
1203         * tree-chkp.c: Likewise.
1204         * tree-chrec.c: Likewise.
1205         * tree-complex.c: Likewise.
1206         * tree-data-ref.c: Likewise.
1207         * tree-dfa.c: Likewise.
1208         * tree-diagnostic.c: Likewise.
1209         * tree-dump.c: Likewise.
1210         * tree-eh.c: Likewise.
1211         * tree-emutls.c: Likewise.
1212         * tree-if-conv.c: Likewise.
1213         * tree-inline.c: Likewise.
1214         * tree-into-ssa.c: Likewise.
1215         * tree-iterator.c: Likewise.
1216         * tree-loop-distribution.c: Likewise.
1217         * tree-nested.c: Likewise.
1218         * tree-nrv.c: Likewise.
1219         * tree-object-size.c: Likewise.
1220         * tree-outof-ssa.c: Likewise.
1221         * tree-parloops.c: Likewise.
1222         * tree-phinodes.c: Likewise.
1223         * tree-predcom.c: Likewise.
1224         * tree-pretty-print.c: Likewise.
1225         * tree-profile.c: Likewise.
1226         * tree-scalar-evolution.c: Likewise.
1227         * tree-sra.c: Likewise.
1228         * tree-ssa-address.c: Likewise.
1229         * tree-ssa-alias.c: Likewise.
1230         * tree-ssa-ccp.c: Likewise.
1231         * tree-ssa-coalesce.c: Likewise.
1232         * tree-ssa-copy.c: Likewise.
1233         * tree-ssa-copyrename.c: Likewise.
1234         * tree-ssa-dce.c: Likewise.
1235         * tree-ssa-dom.c: Likewise.
1236         * tree-ssa-dse.c: Likewise.
1237         * tree-ssa-forwprop.c: Likewise.
1238         * tree-ssa-ifcombine.c: Likewise.
1239         * tree-ssa-live.c: Likewise.
1240         * tree-ssa-loop-ch.c: Likewise.
1241         * tree-ssa-loop-im.c: Likewise.
1242         * tree-ssa-loop-ivcanon.c: Likewise.
1243         * tree-ssa-loop-ivopts.c: Likewise.
1244         * tree-ssa-loop-manip.c: Likewise.
1245         * tree-ssa-loop-niter.c: Likewise.
1246         * tree-ssa-loop-prefetch.c: Likewise.
1247         * tree-ssa-loop-unswitch.c: Likewise.
1248         * tree-ssa-loop.c: Likewise.
1249         * tree-ssa-math-opts.c: Likewise.
1250         * tree-ssa-operands.c: Likewise.
1251         * tree-ssa-phiopt.c: Likewise.
1252         * tree-ssa-phiprop.c: Likewise.
1253         * tree-ssa-pre.c: Likewise.
1254         * tree-ssa-propagate.c: Likewise.
1255         * tree-ssa-reassoc.c: Likewise.
1256         * tree-ssa-sccvn.c: Likewise.
1257         * tree-ssa-scopedtables.c: Likewise.
1258         * tree-ssa-sink.c: Likewise.
1259         * tree-ssa-strlen.c: Likewise.
1260         * tree-ssa-structalias.c: Likewise.
1261         * tree-ssa-tail-merge.c: Likewise.
1262         * tree-ssa-ter.c: Likewise.
1263         * tree-ssa-threadedge.c: Likewise.
1264         * tree-ssa-threadupdate.c: Likewise.
1265         * tree-ssa-uncprop.c: Likewise.
1266         * tree-ssa-uninit.c: Likewise.
1267         * tree-ssa.c: Likewise.
1268         * tree-ssanames.c: Likewise.
1269         * tree-stdarg.c: Likewise.
1270         * tree-streamer-in.c: Likewise.
1271         * tree-streamer-out.c: Likewise.
1272         * tree-streamer.c: Likewise.
1273         * tree-switch-conversion.c: Likewise.
1274         * tree-tailcall.c: Likewise.
1275         * tree-vect-data-refs.c: Likewise.
1276         * tree-vect-generic.c: Likewise.
1277         * tree-vect-loop-manip.c: Likewise.
1278         * tree-vect-loop.c: Likewise.
1279         * tree-vect-patterns.c: Likewise.
1280         * tree-vect-slp.c: Likewise.
1281         * tree-vect-stmts.c: Likewise.
1282         * tree-vectorizer.c: Likewise.
1283         * tree-vrp.c: Likewise.
1284         * tree.c: Likewise.
1285         * tsan.c: Likewise.
1286         * ubsan.c: Likewise.
1287         * valtrack.c: Likewise.
1288         * value-prof.c: Likewise.
1289         * var-tracking.c: Likewise.
1290         * varasm.c: Likewise.
1291         * varpool.c: Likewise.
1292         * vmsdbgout.c: Likewise.
1293         * vtable-verify.c: Likewise.
1294         * web.c: Likewise.
1295         * wide-int.cc: Likewise.
1296         * xcoffout.c: Likewise.
1297         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
1298         * common/common-targhooks.c: Likewise.
1299         * config/aarch64/aarch64-builtins.c: Likewise.
1300         * config/aarch64/aarch64.c: Likewise.
1301         * config/alpha/alpha.c: Likewise.
1302         * config/arc/arc.c: Likewise.
1303         * config/arm/aarch-common.c: Likewise.
1304         * config/arm/arm-builtins.c: Likewise.
1305         * config/arm/arm-c.c: Likewise.
1306         * config/arm/arm.c: Likewise.
1307         * config/avr/avr-c.c: Likewise.
1308         * config/avr/avr-log.c: Likewise.
1309         * config/avr/avr.c: Likewise.
1310         * config/bfin/bfin.c: Likewise.
1311         * config/c6x/c6x.c: Likewise.
1312         * config/cr16/cr16.c: Likewise.
1313         * config/cris/cris.c: Likewise.
1314         * config/darwin-c.c: Likewise.
1315         * config/darwin.c: Likewise.
1316         * config/default-c.c: Likewise.
1317         * config/epiphany/epiphany.c: Likewise.
1318         * config/epiphany/mode-switch-use.c: Likewise.
1319         * config/epiphany/resolve-sw-modes.c: Likewise.
1320         * config/fr30/fr30.c: Likewise.
1321         * config/frv/frv.c: Likewise.
1322         * config/ft32/ft32.c: Likewise.
1323         * config/glibc-c.c: Likewise.
1324         * config/h8300/h8300.c: Likewise.
1325         * config/i386/i386-c.c: Likewise.
1326         * config/i386/i386.c: Likewise.
1327         * config/i386/msformat-c.c: Likewise.
1328         * config/i386/winnt-cxx.c: Likewise.
1329         * config/i386/winnt-stubs.c: Likewise.
1330         * config/i386/winnt.c: Likewise.
1331         * config/ia64/ia64-c.c: Likewise.
1332         * config/ia64/ia64.c: Likewise.
1333         * config/iq2000/iq2000.c: Likewise.
1334         * config/lm32/lm32.c: Likewise.
1335         * config/m32c/m32c-pragma.c: Likewise.
1336         * config/m32c/m32c.c: Likewise.
1337         * config/m32r/m32r.c: Likewise.
1338         * config/m68k/m68k.c: Likewise.
1339         * config/mcore/mcore.c: Likewise.
1340         * config/mep/mep-pragma.c: Likewise.
1341         * config/mep/mep.c: Likewise.
1342         * config/microblaze/microblaze-c.c: Likewise.
1343         * config/microblaze/microblaze.c: Likewise.
1344         * config/mips/mips.c: Likewise.
1345         * config/mmix/mmix.c: Likewise.
1346         * config/mn10300/mn10300.c: Likewise.
1347         * config/moxie/moxie.c: Likewise.
1348         * config/msp430/msp430-c.c: Likewise.
1349         * config/msp430/msp430.c: Likewise.
1350         * config/nds32/nds32-cost.c: Likewise.
1351         * config/nds32/nds32-fp-as-gp.c: Likewise.
1352         * config/nds32/nds32-intrinsic.c: Likewise.
1353         * config/nds32/nds32-isr.c: Likewise.
1354         * config/nds32/nds32-md-auxiliary.c: Likewise.
1355         * config/nds32/nds32-memory-manipulation.c: Likewise.
1356         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1357         * config/nds32/nds32-predicates.c: Likewise.
1358         * config/nds32/nds32.c: Likewise.
1359         * config/nios2/nios2.c: Likewise.
1360         * config/nvptx/nvptx.c: Likewise.
1361         * config/pa/pa.c: Likewise.
1362         * config/pdp11/pdp11.c: Likewise.
1363         * config/rl78/rl78-c.c: Likewise.
1364         * config/rl78/rl78.c: Likewise.
1365         * config/rs6000/rs6000-c.c: Likewise.
1366         * config/rs6000/rs6000.c: Likewise.
1367         * config/rx/rx.c: Likewise.
1368         * config/s390/s390-c.c: Likewise.
1369         * config/s390/s390.c: Likewise.
1370         * config/sh/sh-c.c: Likewise.
1371         * config/sh/sh-mem.cc: Likewise.
1372         * config/sh/sh.c: Likewise.
1373         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
1374         * config/sh/sh_treg_combine.cc: Likewise.
1375         * config/sol2-c.c: Likewise.
1376         * config/sol2-cxx.c: Likewise.
1377         * config/sol2-stubs.c: Likewise.
1378         * config/sol2.c: Likewise.
1379         * config/sparc/sparc-c.c: Likewise.
1380         * config/sparc/sparc.c: Likewise.
1381         * config/spu/spu-c.c: Likewise.
1382         * config/spu/spu.c: Likewise.
1383         * config/stormy16/stormy16.c: Likewise.
1384         * config/tilegx/mul-tables.c: Likewise.
1385         * config/tilegx/tilegx-c.c: Likewise.
1386         * config/tilegx/tilegx.c: Likewise.
1387         * config/tilepro/mul-tables.c: Likewise.
1388         * config/tilepro/tilepro-c.c: Likewise.
1389         * config/tilepro/tilepro.c: Likewise.
1390         * config/v850/v850-c.c: Likewise.
1391         * config/v850/v850.c: Likewise.
1392         * config/vax/vax.c: Likewise.
1393         * config/visium/visium.c: Likewise.
1394         * config/vms/vms-c.c: Likewise.
1395         * config/vms/vms.c: Likewise.
1396         * config/vxworks.c: Likewise.
1397         * config/winnt-c.c: Likewise.
1398         * config/xtensa/xtensa.c: Likewise.
1400 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
1402         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
1403         function.
1404         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
1406 2015-06-17  Richard Biener  <rguenther@suse.de>
1408         PR tree-optimization/66251
1409         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
1410         stmts for SLP strided stores.
1412         Revert
1413         2015-05-22  Richard Biener  <rguenther@suse.de>
1415         PR tree-optimization/66251
1416         * tree-vect-stmts.c (vectorizable_conversion): Properly
1417         set STMT_VINFO_VEC_STMT even for the SLP case.
1419         2015-05-26  Michael Matz  <matz@suse.de>
1421         PR middle-end/66251
1422         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
1423         STMT_VINFO_VEC_STMT, also with SLP.
1425 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
1427         PR target/56766
1428         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
1429         (*avx_addsubv4df3_1s): Ditto.
1430         (*sse3_addsubv2df3_1): Ditto.
1431         (*sse3_addsubv2df3_1s): Ditto.
1432         (*avx_addsubv8sf3_1): Ditto.
1433         (*avx_addsubv8sf3_1s): Ditto.
1434         (*sse3_addsubv4sf3_1): Ditto.
1435         (*sse3_addsubv4sf3_1s): Ditto.
1437 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
1439         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
1440         (SYSROOT_SUFFIX_SPEC): Update.
1441         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
1442         (STARTFILE_PREFIX_SPEC): Update.
1443         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
1444         (MULTILIB_REQUIRED): New.
1445         (MULTILIB_OSDIRNAMES): New.
1446         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
1447         (MULTILIB_REQUIRED): New.
1448         (MULTILIB_OSDIRNAMES): New.
1450 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
1452         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
1453         * config/aarch64/aarch64-options-extensions.def: Update "fP",
1454         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
1455         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
1456         (AARCH64_FL_PAN): New.
1457         (AARCH64_FL_LOR): New.
1458         (AARCH64_FL_RDMA): New.
1459         (AARCH64_FL_FOR_ARCH8_1): New.
1460         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
1461         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
1463 2015-06-16  Martin Liska  <mliska@suse.cz>
1465         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
1466         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
1467         guard.
1469 2015-06-16  Richard Biener  <rguenther@suse.de>
1471         * tree-vect-stmts.c (vectorizable_store): Adjust.
1472         (vectorizable_load): Likewise.
1473         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1474         Simplify.
1475         (vect_create_data_ref_ptr): Likewise.
1476         (bump_vector_ptr): Adjust.
1478 2015-06-16  Richard Biener  <rguenther@suse.de>
1480         * tree-vect-stmts.c (vectorizable_load): Properly start loads
1481         with the first element if this is grouped loads.
1483 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
1485         * config/arm/arm-protos.h (struct tune_params): Rename
1486         log_op_non_sc to log_op_non_short_circuit, and rename enum
1487         values to expand SC to SHORT_CIRCUIT.
1488         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
1489         to LOG_OP_NON_SHORT_CIRCUIT.
1490         (arm_fastmul_tune):Likewise
1491         (arm_strongarm_tune): Likewise.
1492         (arm_xscale_tune): Likewise.
1493         (arm_9e_tune): Likewise.
1494         (arm_marvell_pj4_tune): Likewise.
1495         (arm_v6t2_tune): Likewise.
1496         (arm_cortex_tune): Likewise.
1497         (arm_cortex_a8_tune): Likewise.
1498         (arm_cortex_a7_tune): Likewise.
1499         (arm_cortex_a15_tune): Likewise.
1500         (arm_cortex_a53_tune): Likewise.
1501         (arm_cortex_a57_tune): Likewise.
1502         (arm_xgene1_tune): Likewise.
1503         (arm_cortex_a5_tune): Likewise.
1504         (arm_cortex_a9_tune): Likewise.
1505         (arm_cortex_a12_tune): Likewise.
1506         (arm_v7m_tune): Likewise.
1507         (arm_cortex_m7_tune): Likewise.
1508         (arm_v6m_tune): Likewise.
1509         (arm_fa726te_tune): Likewise.
1511 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
1513         * altivec.md: Delete UNSPEC_VMLADDUHM.
1514         (mulv4si3_p8): New pattern.
1515         (mulv4si3): Use it for POWER8.
1516         (mulv8hi3): Use vmladduhm with zero addend.
1517         (altivec_vmladduhm): Descriptive RTL.
1519 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
1521         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
1522         to use neon_move instead of mov_imm.
1523         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
1524         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
1526         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
1527         aarch64_float_const_zero_rtx_p check before TFmode check.
1528         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
1529         an fp zero.
1530         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
1531         code and attributes to match.  Change condition from register_operand
1532         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
1533         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
1534         to store2.
1536 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
1538         PR debug/66535
1539         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
1540         there is no parent.
1542 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
1544         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
1545         HOST_WIDE_INT parameter.
1547 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
1549         PR ipa/66181
1550         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
1551         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
1552         TYPE_NO_FORCE_BLK.
1553         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
1555 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
1557         * rtl.h (classify_insn): Declare.
1558         * emit-rtl.c (classify_insn): Move to...
1559         * rtl.c: ...here and add generator support.
1560         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
1561         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
1562         * genemit.c (gen_emit_seq): New function.
1563         (gen_expand, gen_split): Use it.
1565 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
1567         * tree.c (make_vector_stat): Fix comment to state that the
1568         function returns a VECTOR_CST.
1570 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
1572         * gensupport.h (add_implicit_parallel): Declare.
1573         * genrecog.c (add_implicit_parallel): Move to...
1574         * gensupport.c (add_implicit_parallel): ...here.
1575         (process_one_cond_exec): Use it.
1576         * genemit.c (gen_insn): Likewise.
1578 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
1580         PR bootstrap/66448
1581         * passes.c (rest_of_decl_compilation): Do not register globals for
1582         early debug if they are declared in built-ins.
1584 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
1586         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
1588 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1590         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
1591         manually swapping.
1592         (noce_try_cmove_arith): Likewise.
1593         (noce_get_alt_condition): Likewise.
1595 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
1597         * common/config/i386/i386-common.c
1598         (OPTION_MASK_ISA_MWAITX_SET): New.
1599         (ix86_handle_option): Handle mwaitx.
1600         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
1601         (x86_64-*-*): Likewise.
1602         * config/i386/mwaitxintrin.h: New header.
1603         * config/i386/cpuid.h (bit_MWAITX):  Define.
1604         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1605         MWAITX support.
1606         * config/i386/i386.opt (mwaitx): New.
1607         * config/i386/i386-builtin-types.def
1608         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
1609         * config/i386/i386-c.c: Define __MWAITX__ if needed.
1610         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
1611         (PTA_MWAITX): New.
1612         (ix86_option_override_internal): Handle new option.
1613         (processor_alias_table): Added PTA_MWAITX.
1614         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
1615         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
1616         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
1617         IX86_BUILTIN_MONITORX  built-ins.
1618         * config/i386/i386.h (TARGET_MWAITX): New.
1619         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
1620         UNSPEC_MONITORX.
1621         (mwaitx):  New pattern.
1622         (monitorx_<mode>): New pattern.
1623         * config/i386/x86intrin.h: Include mwaitxintrin.h.
1624         * doc/extend.texi: Document monitorx and mwaitx builtins.
1625         * doc/invoke.texi: Document -mmwaitx option.
1627 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
1629         * emit-rtl.c (need_atomic_barrier_p): Mask model with
1630         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
1632 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
1634         * dbxout.c (xcoff_debug_hooks): Provide a function for
1635         register_main_translation_unit hook.
1637 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
1639         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
1640         variants cases from switch.
1641         (rs6000_post_atomic_barrier): Same.
1642         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
1643         (rs6000_expand_atomic_exchange): Same.
1644         (rs6000_expand_atomic_op): Same.
1645         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
1646         SYNC variants cases from switch.
1647         (atomic_load): Same.
1648         (atomic_store): Same.
1650 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
1652         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
1653         CONST_INT for goto.
1655 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
1657         PR bootstrap/66448
1658         * dwarf2out.c (check_die): Check for common duplicate attributes.
1659         (add_location_or_const_value_attribute): Do not add duplicate
1660         attributes.
1661         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
1662         time around.
1663         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
1664         (gen_type_die_with_usage): Call check_die.
1665         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
1667 2015-06-11  Jason Merrill  <jason@redhat.com>
1669         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
1670         dies.
1672 2015-06-11  Marek Polacek  <polacek@redhat.com>
1674         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
1676 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
1678         PR bootstrap/66252
1679         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
1680         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
1681         (*addx_extend_sp32): Fix pasto.
1682         (*subx_extend): Rename into...
1683         (*subx_extend_sp32): ...this.
1684         (*adddi3_extend_sp32): Add earlyclobber.
1685         (*subdi3_insn_sp32): Likewise.
1686         (*subdi3_extend_sp32): Likewise.
1687         (*and_not_di_sp32): Likewise.
1688         (*or_not_di_sp32): Likewise.
1689         (*xor_not_di_sp32): Likewise.
1690         (*negdi2_sp32): Likewise.
1691         (*one_cmpldi2_sp32): Likewise.
1693 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
1695         * debug.h (struct gcc_debug_hooks): Add a
1696         register_main_translation_unit hook.
1697         * debug.c (do_nothing_debug_hooks): Provide a function for this
1698         new hook.
1699         * dbxout.c (dbx_debug_hooks): Likewise.
1700         * sdbout.c (sdb_debug_hooks): Likewise.
1701         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
1702         * dwarf2out.c (main_translation_unit): New global variable.
1703         (dwarf2out_register_main_translation_unit): New function
1704         implementing the new hook.
1705         (dwarf2_debug_hooks): Assign
1706         dwarf2out_register_main_translation_unit to this new hook.
1707         (dwarf2out_init): Associate any main translation unit to
1708         comp_unit_die ().
1710 2015-06-11  Marek Polacek  <polacek@redhat.com>
1712         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
1714 2015-06-11  Marek Polacek  <polacek@redhat.com>
1716         * match.pd: Use single_use throughout.
1718 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1720         * config/arm/arm.c (arm_option_params_internal): When optimising
1721         for speed set max_insns_skipped when arm_restrict_it.
1723 2015-06-11  Christian Bruel  <christian.bruel@st.com>
1725         PR target/52144
1726         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
1727          macros in ...
1728         (arm_cpu_builtins): New function.
1729         (arm_pragma_target_parse): Call arm_cpu_builtins.
1730         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
1731         (arm_register_target_pragmas): Likewise.
1732         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
1733          Call arm_register_target_pragmas.
1734         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
1735         (arm_pragma_target_parse): Likewise.
1737 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
1739         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
1740         of the second operand.
1742 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
1744         PR target/66473
1745         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
1746         to prepare mask operand for AVX512 modes.
1748 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1750         PR target/66474
1751         * doc/md.texi (Machine Constraints): Document that on the PowerPC
1752         if you use a constraint that targets a VSX register, you must use
1753         %x<n> in the template.
1755 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
1757         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
1758         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
1759         (define_insn "trap"): New definition.
1761 2015-06-10  Richard Biener  <rguenther@suse.de>
1763         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
1764         out from ...
1765         (vect_supported_load_permutation_p): ... here.  Handle
1766         supportable permutations in reductions.
1767         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
1768         for vectorizing strided group loads.
1770 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
1772         PR target/66470
1773         * config/i386/i386.c (ix86_split_long_move): For collisions
1774         involving direct tls segment refs, move the UNSPEC_TP possibly
1775         wrapped in ZERO_EXTEND out of the address for lea, to each of
1776         the memory loads.
1778 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1780         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
1781         dmb sy. Adjust tabs.
1783 2015-06-10  Tom de Vries  <tom@codesourcery.com>
1785         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
1787 2015-06-10  Martin Liska  <mliska@suse.cz>
1789         PR bootstrap/66471
1790         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
1791         all enum values in mem_alloc_origin.
1792         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
1793         name.
1794         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
1795         * bitmap.c (bitmap_register): Likewise.
1796         (dump_bitmap_statistics): Likewise.
1797         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
1798         (ggc_record_overhead): Likewise.
1799         * hash-map.h: Likewise.
1800         * hash-set.h: Likewise.
1801         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
1802         * hash-table.h: Likewise.
1803         * vec.c (vec_prefix::register_overhead): Likewise.
1804         (vec_prefix::release_overhead): Likewise.
1805         (dump_vec_loc_statistics): Likewise.
1807 2015-06-09  Christian Bruel  <christian.bruel@st.com>
1809         PR target/52144
1810         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
1811         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
1812         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
1813         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
1814         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
1815         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
1816         (arm_valid_target_attribute_p): Likewise.
1817         (arm_set_current_function, arm_can_inline_p): Likewise.
1818         (arm_valid_target_attribute_rec): Likewise.
1819         (arm_previous_fndecl): New variable.
1820         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
1821         (TARGET_CAN_INLINE_P): Define.
1822         (arm_asm_trampoline_template): Emit mode.
1823         (arm_file_start): Don't set unified syntax.
1824         (arm_declare_function_name): Set unified syntax and mode.
1825         (arm_option_override): Init target_option_default_node.
1826         and target_option_current_node.
1827         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
1828         (*call_symbol): Likewise.
1829         * doc/extend.texi: Document ARM/Thumb target attribute.
1830         * doc/invoke.texi: Likewise.
1832 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
1834         Revert:
1835         2015-06-09  Alexandre Oliva <aoliva@redhat.com>
1836         PR rtl-optimization/64164
1837         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
1838         * tree-ssa-copyrename.c: Removed.
1839         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
1840         -ftree-coalesce-vars.
1841         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
1842         * common.opt (ftree-copyrename): Ignore.
1843         (ftree-coalesce-inlined-vars): Likewise.
1844         * doc/invoke.texi: Remove the ignored options above.
1845         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
1846         * tree-ssa-coalesce.h: ... here.
1847         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
1848         headers required by it.
1849         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
1850         across variables when flag_tree_coalesce_vars.  Check register
1851         use and promoted modes to allow coalescing.  Moved to
1852         tree-ssa-coalesce.c.
1853         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
1854         with its member functions to tree-ssa-coalesce.c.
1855         (var_map_base_init): Likewise.  Renamed to
1856         compute_samebase_partition_bases.
1857         (partition_view_normal): Drop want_bases parameter.
1858         (partition_view_bitmap): Likewise.
1859         * tree-ssa-live.h: Adjust declarations.
1860         * tree-ssa-coalesce.c: Include explow.h.
1861         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
1862         default defs at the entry point.
1863         (dump_part_var_map): New.
1864         (compute_optimized_partition_bases): New, called by...
1865         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
1866         of compute_samebase_partition_bases.  Adjust.
1867         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
1868         * cfgexpand.c (leader_merge): New.
1869         (get_rtl_for_parm_ssa_default_def): New.
1870         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
1871         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
1872         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
1873         redundant MEM attr setting.
1874         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
1875         from...
1876         (expand_one_stack_var): ... this.  New wrapper to check and
1877         skip already expanded SSA partitions.
1878         (record_alignment_for_reg_var): New, factored out of...
1879         (expand_one_var): ... this.
1880         (expand_one_ssa_partition): New.
1881         (adjust_one_expanded_partition_var): New.
1882         (expand_one_register_var): Check and skip already expanded SSA
1883         partitions.
1884         (expand_used_vars): Don't create DECLs for anonymous SSA
1885         names.  Expand all SSA partitions, then adjust all SSA names.
1886         (pass::execute): Replace the loops that set
1887         SA.partition_to_pseudo from partition leaders and cleared
1888         DECL_RTL for multi-location variables, and that which used to
1889         rename vars and set attrs, with one that clears DECL_RTL and
1890         checks that PARMs and RESULTs default_defs match DECL_RTL.
1891         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
1892         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
1893         * explow.c (promote_ssa_mode): New.
1894         * explow.h (promote_ssa_mode): Declare.
1895         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
1896         * function.c: Include cfgexpand.h.
1897         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
1898         (use_register_for_parm_decl): Wrapper for the above to
1899         special-case the result_ptr.
1900         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
1901         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
1902         multiple locations.
1903         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
1904         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
1905         (assign_parm_setup_block): Prefer SSA-assigned location.
1906         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
1907         if stack_parm is NULL.
1908         (assign_parm_setup_stack): Prefer SSA-assigned location.
1909         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
1910         rtl before testing for pointer bounds.  Special-case result_ptr.
1911         (expand_function_start): Maybe reset DECL_RTL of result.
1912         Prefer SSA-assigned location for result and static chain.
1913         Factor out DECL_RESULT and SET_DECL_RTL.
1914         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
1915         anonymous SSA names.  Use promote_ssa_mode.
1916         (get_temp_reg): Likewise.
1917         (remove_ssa_form): Adjust.
1918         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
1919         and get its reg_usage for reg invalidation.
1920         (compute_bb_dataflow): Pass it insn.
1921         (emit_notes_in_bb): Likewise.
1922         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
1923         fail assert on conversion between unsigned types.
1925 2015-06-09  Tom de Vries  <tom@codesourcery.com>
1927         PR tree-optimization/65460
1928         * omp-low.c (expand_omp_target): Set parallelized_function on
1929         cgraph_node for child_fn.
1931 2015-06-09  Tom de Vries  <tom@codesourcery.com>
1933         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
1934         parallelized_function before add_new_function.
1936 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
1938         * gcc-plugin.h: Move decls to plugin.h and include it.
1939         * plugin.h: Relocate decls from gcc-plugin.h
1940         * ggc-page.c: Include required header files.
1941         * passes.c: Likewise.
1942         * cgraphunit.c: Likewise.
1944 2015-06-09  Tom de Vries  <tom@codesourcery.com>
1946         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
1948 2015-06-09  Jason Merrill  <jason@redhat.com>
1950         PR bootstrap/66448
1951         * toplev.c (check_global_declaration): Don't warn about a clone.
1953 2015-06-09  Marek Polacek  <polacek@redhat.com>
1955         PR tree-optimization/66299
1956         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
1957         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
1958         patterns.
1960 2015-06-09  Richard Biener  <rguenther@suse.de>
1962         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
1963         (vect_analyze_slp_instance): Instead do not falsely drop
1964         load permutations.
1966 2015-06-09  Richard Biener  <rguenther@suse.de>
1968         PR middle-end/66423
1969         * match.pd: Handle A % (unsigned)(1 << B).
1971 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
1973         * varasm.c (output_object_block_htab): Remove.
1974         (output_object_block_compare): New.
1975         (output_object_blocks): Sort named object_blocks before outputting
1976         them.
1978 2015-06-09  Richard Biener  <rguenther@suse.de>
1980         PR tree-optimization/66419
1981         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
1982         consider GROUP_GAP when detecting a perfect subchain.
1984 2015-06-09  Nick Clifton  <nickc@redhat.com>
1986         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
1987         place read only data in the .frodata section.
1989 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
1991         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
1992         (atomic_store<mode>): Likewise.
1994 2015-06-09  Richard Biener  <rguenther@suse.de>
1996         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
1998 2015-06-09  Richard Biener  <rguenther@suse.de>
2000         PR middle-end/66413
2001         * tree-inline.c (insert_init_debug_bind): Unshare value.
2003 2015-06-09  Richard Biener  <rguenther@suse.de>
2005         PR tree-optimization/66396
2006         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
2007         Rename virtual operands.
2009 2015-06-09  Tom de Vries  <tom@codesourcery.com>
2011         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
2012         always return false.
2014 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
2016         PR rtl-optimization/64164
2017         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
2018         * tree-ssa-copyrename.c: Removed.
2019         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
2020         -ftree-coalesce-vars.
2021         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
2022         * common.opt (ftree-copyrename): Ignore.
2023         (ftree-coalesce-inlined-vars): Likewise.
2024         * doc/invoke.texi: Remove the ignored options above.
2025         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
2026         * tree-ssa-coalesce.h: ... here.
2027         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
2028         headers required by it.
2029         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
2030         across variables when flag_tree_coalesce_vars.  Check register
2031         use and promoted modes to allow coalescing.  Moved to
2032         tree-ssa-coalesce.c.
2033         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
2034         with its member functions to tree-ssa-coalesce.c.
2035         (var_map_base_init): Likewise.  Renamed to
2036         compute_samebase_partition_bases.
2037         (partition_view_normal): Drop want_bases parameter.
2038         (partition_view_bitmap): Likewise.
2039         * tree-ssa-live.h: Adjust declarations.
2040         * tree-ssa-coalesce.c: Include explow.h.
2041         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
2042         default defs at the entry point.
2043         (dump_part_var_map): New.
2044         (compute_optimized_partition_bases): New, called by...
2045         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
2046         of compute_samebase_partition_bases.  Adjust.
2047         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
2048         * cfgexpand.c (leader_merge): New.
2049         (get_rtl_for_parm_ssa_default_def): New.
2050         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
2051         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
2052         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
2053         redundant MEM attr setting.
2054         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
2055         from...
2056         (expand_one_stack_var): ... this.  New wrapper to check and
2057         skip already expanded SSA partitions.
2058         (record_alignment_for_reg_var): New, factored out of...
2059         (expand_one_var): ... this.
2060         (expand_one_ssa_partition): New.
2061         (adjust_one_expanded_partition_var): New.
2062         (expand_one_register_var): Check and skip already expanded SSA
2063         partitions.
2064         (expand_used_vars): Don't create DECLs for anonymous SSA
2065         names.  Expand all SSA partitions, then adjust all SSA names.
2066         (pass::execute): Replace the loops that set
2067         SA.partition_to_pseudo from partition leaders and cleared
2068         DECL_RTL for multi-location variables, and that which used to
2069         rename vars and set attrs, with one that clears DECL_RTL and
2070         checks that PARMs and RESULTs default_defs match DECL_RTL.
2071         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
2072         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
2073         * explow.c (promote_ssa_mode): New.
2074         * explow.h (promote_ssa_mode): Declare.
2075         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
2076         * function.c: Include cfgexpand.h.
2077         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
2078         (use_register_for_parm_decl): Wrapper for the above to
2079         special-case the result_ptr.
2080         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
2081         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
2082         multiple locations.
2083         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
2084         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
2085         (assign_parm_setup_block): Prefer SSA-assigned location.
2086         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
2087         if stack_parm is NULL.
2088         (assign_parm_setup_stack): Prefer SSA-assigned location.
2089         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
2090         rtl before testing for pointer bounds.  Special-case result_ptr.
2091         (expand_function_start): Maybe reset DECL_RTL of result.
2092         Prefer SSA-assigned location for result and static chain.
2093         Factor out DECL_RESULT and SET_DECL_RTL.
2094         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
2095         anonymous SSA names.  Use promote_ssa_mode.
2096         (get_temp_reg): Likewise.
2097         (remove_ssa_form): Adjust.
2098         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
2099         and get its reg_usage for reg invalidation.
2100         (compute_bb_dataflow): Pass it insn.
2101         (emit_notes_in_bb): Likewise.
2102         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
2103         fail assert on conversion between unsigned types.
2105 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
2107         PR debug/58315
2108         * tree-inline.c (reset_debug_binding): New.
2109         (reset_debug_bindings): Likewise.
2110         (expand_call_inline): Call it.
2112 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
2114         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
2115         TYPE_STRING_FLAG.
2117 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
2119         * lto-streamer-out.c (lto_output_location): Stream
2120         reserved locations correctly.
2121         * lto-streamer-in.c (lto_output_location): Likewise.
2123 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
2125         * coretypes.h: Include hash-table.h and hash-set.h for host files.
2126         * ggc.h: Don't include statistics.h>
2127         * hash-map.h: Remove all includes.
2128         * hash-set.h: Likewise.
2129         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
2130         the include list. Remove <new>.
2131         * inchash.h: Remove all includes.
2132         * mem-stats.h: Likewise.
2133         * vec.h: No special processing for generators or ggc.  
2134         * alias.c : Adjust include files.
2135         * alloc-pool.c : Likewise.
2136         * alloc-pool.h : Likewise.
2137         * asan.c : Likewise.
2138         * attribs.c : Likewise.
2139         * auto-inc-dec.c : Likewise.
2140         * auto-profile.c : Likewise.
2141         * bb-reorder.c : Likewise.
2142         * bitmap.c : Likewise.
2143         * bitmap.h : Likewise.
2144         * bt-load.c : Likewise.
2145         * builtins.c : Likewise.
2146         * caller-save.c : Likewise.
2147         * calls.c : Likewise.
2148         * ccmp.c : Likewise.
2149         * cfg.c : Likewise.
2150         * cfganal.c : Likewise.
2151         * cfgbuild.c : Likewise.
2152         * cfgcleanup.c : Likewise.
2153         * cfgexpand.c : Likewise.
2154         * cfghooks.c : Likewise.
2155         * cfgloop.c : Likewise.
2156         * cfgloop.h : Likewise.
2157         * cfgloopanal.c : Likewise.
2158         * cfgloopmanip.c : Likewise.
2159         * cfgrtl.c : Likewise.
2160         * cgraph.c : Likewise.
2161         * cgraphbuild.c : Likewise.
2162         * cgraphclones.c : Likewise.
2163         * cgraphunit.c : Likewise.
2164         * cilk-common.c : Likewise.
2165         * combine-stack-adj.c : Likewise.
2166         * combine.c : Likewise.
2167         * compare-elim.c : Likewise.
2168         * context.c : Likewise.
2169         * convert.c : Likewise.
2170         * coverage.c : Likewise.
2171         * cppbuiltin.c : Likewise.
2172         * cprop.c : Likewise.
2173         * cse.c : Likewise.
2174         * cselib.c : Likewise.
2175         * data-streamer-in.c : Likewise.
2176         * data-streamer-out.c : Likewise.
2177         * data-streamer.c : Likewise.
2178         * data-streamer.h : Likewise.
2179         * dbxout.c : Likewise.
2180         * dce.c : Likewise.
2181         * ddg.c : Likewise.
2182         * debug.c : Likewise.
2183         * df-core.c : Likewise.
2184         * df-problems.c : Likewise.
2185         * df-scan.c : Likewise.
2186         * df.h : Likewise.
2187         * dfp.c : Likewise.
2188         * dojump.c : Likewise.
2189         * dominance.c : Likewise.
2190         * domwalk.c : Likewise.
2191         * double-int.c : Likewise.
2192         * dse.c : Likewise.
2193         * dumpfile.c : Likewise.
2194         * dwarf2asm.c : Likewise.
2195         * dwarf2cfi.c : Likewise.
2196         * dwarf2out.c : Likewise.
2197         * emit-rtl.c : Likewise.
2198         * et-forest.c : Likewise.
2199         * except.c : Likewise.
2200         * except.h : Likewise.
2201         * explow.c : Likewise.
2202         * expmed.c : Likewise.
2203         * expr.c : Likewise.
2204         * final.c : Likewise.
2205         * fixed-value.c : Likewise.
2206         * fold-const.c : Likewise.
2207         * function.c : Likewise.
2208         * fwprop.c : Likewise.
2209         * gcc-plugin.h : Likewise.
2210         * gcc.c : Likewise.
2211         * gcse-common.c : Likewise.
2212         * gcse.c : Likewise.
2213         * genattrtab.c : Likewise.
2214         * genautomata.c : Likewise.
2215         * genconditions.c : Likewise.
2216         * genemit.c : Likewise.
2217         * generic-match-head.c : Likewise.
2218         * genextract.c : Likewise.
2219         * gengtype-state.c : Likewise.
2220         * gengtype.c : Likewise.
2221         * genhooks.c : Likewise.
2222         * genmatch.c : Likewise.
2223         * genmodes.c : Likewise.
2224         * genrecog.c : Likewise.
2225         * gensupport.c : Likewise.
2226         * ggc-common.c : Likewise.
2227         * ggc-internal.h : Likewise.
2228         * ggc-none.c : Likewise.
2229         * ggc-page.c : Likewise.
2230         * gimple-builder.c : Likewise.
2231         * gimple-expr.c : Likewise.
2232         * gimple-fold.c : Likewise.
2233         * gimple-iterator.c : Likewise.
2234         * gimple-low.c : Likewise.
2235         * gimple-match-head.c : Likewise.
2236         * gimple-pretty-print.c : Likewise.
2237         * gimple-ssa-isolate-paths.c : Likewise.
2238         * gimple-ssa-strength-reduction.c : Likewise.
2239         * gimple-ssa.h : Likewise.
2240         * gimple-streamer-in.c : Likewise.
2241         * gimple-streamer-out.c : Likewise.
2242         * gimple-streamer.h : Likewise.
2243         * gimple-walk.c : Likewise.
2244         * gimple.c : Likewise.
2245         * gimplify-me.c : Likewise.
2246         * gimplify.c : Likewise.
2247         * godump.c : Likewise.
2248         * graph.c : Likewise.
2249         * graphds.c : Likewise.
2250         * graphite-blocking.c : Likewise.
2251         * graphite-dependences.c : Likewise.
2252         * graphite-interchange.c : Likewise.
2253         * graphite-isl-ast-to-gimple.c : Likewise.
2254         * graphite-optimize-isl.c : Likewise.
2255         * graphite-poly.c : Likewise.
2256         * graphite-scop-detection.c : Likewise.
2257         * graphite-sese-to-poly.c : Likewise.
2258         * graphite.c : Likewise.
2259         * haifa-sched.c : Likewise.
2260         * hard-reg-set.h : Likewise.
2261         * hw-doloop.c : Likewise.
2262         * ifcvt.c : Likewise.
2263         * inchash.c : Likewise.
2264         * incpath.c : Likewise.
2265         * init-regs.c : Likewise.
2266         * input.c : Likewise.
2267         * internal-fn.c : Likewise.
2268         * ipa-chkp.c : Likewise.
2269         * ipa-comdats.c : Likewise.
2270         * ipa-cp.c : Likewise.
2271         * ipa-devirt.c : Likewise.
2272         * ipa-icf-gimple.c : Likewise.
2273         * ipa-icf.c : Likewise.
2274         * ipa-inline-analysis.c : Likewise.
2275         * ipa-inline-transform.c : Likewise.
2276         * ipa-inline.c : Likewise.
2277         * ipa-polymorphic-call.c : Likewise.
2278         * ipa-profile.c : Likewise.
2279         * ipa-prop.c : Likewise.
2280         * ipa-pure-const.c : Likewise.
2281         * ipa-ref.c : Likewise.
2282         * ipa-reference.c : Likewise.
2283         * ipa-split.c : Likewise.
2284         * ipa-utils.c : Likewise.
2285         * ipa-visibility.c : Likewise.
2286         * ipa.c : Likewise.
2287         * ira-build.c : Likewise.
2288         * ira-color.c : Likewise.
2289         * ira-conflicts.c : Likewise.
2290         * ira-costs.c : Likewise.
2291         * ira-emit.c : Likewise.
2292         * ira-lives.c : Likewise.
2293         * ira.c : Likewise.
2294         * jump.c : Likewise.
2295         * langhooks.c : Likewise.
2296         * lcm.c : Likewise.
2297         * libfuncs.h : Likewise.
2298         * lists.c : Likewise.
2299         * loop-doloop.c : Likewise.
2300         * loop-init.c : Likewise.
2301         * loop-invariant.c : Likewise.
2302         * loop-iv.c : Likewise.
2303         * loop-unroll.c : Likewise.
2304         * lower-subreg.c : Likewise.
2305         * lra-assigns.c : Likewise.
2306         * lra-coalesce.c : Likewise.
2307         * lra-constraints.c : Likewise.
2308         * lra-eliminations.c : Likewise.
2309         * lra-lives.c : Likewise.
2310         * lra-remat.c : Likewise.
2311         * lra-spills.c : Likewise.
2312         * lra.c : Likewise.
2313         * lto-cgraph.c : Likewise.
2314         * lto-compress.c : Likewise.
2315         * lto-opts.c : Likewise.
2316         * lto-section-in.c : Likewise.
2317         * lto-section-out.c : Likewise.
2318         * lto-streamer-in.c : Likewise.
2319         * lto-streamer-out.c : Likewise.
2320         * lto-streamer.c : Likewise.
2321         * lto-streamer.h : Likewise.
2322         * mcf.c : Likewise.
2323         * mode-switching.c : Likewise.
2324         * modulo-sched.c : Likewise.
2325         * omega.c : Likewise.
2326         * omp-low.c : Likewise.
2327         * optabs.c : Likewise.
2328         * opts-global.c : Likewise.
2329         * opts.h : Likewise.
2330         * passes.c : Likewise.
2331         * plugin.c : Likewise.
2332         * postreload-gcse.c : Likewise.
2333         * postreload.c : Likewise.
2334         * predict.c : Likewise.
2335         * print-rtl.c : Likewise.
2336         * print-tree.c : Likewise.
2337         * profile.c : Likewise.
2338         * read-md.c : Likewise.
2339         * read-md.h : Likewise.
2340         * read-rtl.c : Likewise.
2341         * real.c : Likewise.
2342         * realmpfr.c : Likewise.
2343         * recog.c : Likewise.
2344         * ree.c : Likewise.
2345         * reg-stack.c : Likewise.
2346         * regcprop.c : Likewise.
2347         * reginfo.c : Likewise.
2348         * regrename.c : Likewise.
2349         * regstat.c : Likewise.
2350         * reload.c : Likewise.
2351         * reload1.c : Likewise.
2352         * reorg.c : Likewise.
2353         * resource.c : Likewise.
2354         * rtl-chkp.c : Likewise.
2355         * rtl.c : Likewise.
2356         * rtl.h : Likewise.
2357         * rtlanal.c : Likewise.
2358         * rtlhash.c : Likewise.
2359         * rtlhash.h : Likewise.
2360         * rtlhooks.c : Likewise.
2361         * sanopt.c : Likewise.
2362         * sched-deps.c : Likewise.
2363         * sched-ebb.c : Likewise.
2364         * sched-rgn.c : Likewise.
2365         * sched-vis.c : Likewise.
2366         * sdbout.c : Likewise.
2367         * sel-sched-dump.c : Likewise.
2368         * sel-sched-ir.c : Likewise.
2369         * sel-sched-ir.h : Likewise.
2370         * sel-sched.c : Likewise.
2371         * sese.c : Likewise.
2372         * shrink-wrap.c : Likewise.
2373         * shrink-wrap.h : Likewise.
2374         * simplify-rtx.c : Likewise.
2375         * stack-ptr-mod.c : Likewise.
2376         * statistics.c : Likewise.
2377         * stmt.c : Likewise.
2378         * stor-layout.c : Likewise.
2379         * store-motion.c : Likewise.
2380         * stringpool.c : Likewise.
2381         * symtab.c : Likewise.
2382         * target-globals.c : Likewise.
2383         * targhooks.c : Likewise.
2384         * tlink.c : Likewise.
2385         * toplev.c : Likewise.
2386         * tracer.c : Likewise.
2387         * trans-mem.c : Likewise.
2388         * tree-affine.c : Likewise.
2389         * tree-affine.h : Likewise.
2390         * tree-browser.c : Likewise.
2391         * tree-call-cdce.c : Likewise.
2392         * tree-cfg.c : Likewise.
2393         * tree-cfgcleanup.c : Likewise.
2394         * tree-chkp-opt.c : Likewise.
2395         * tree-chkp.c : Likewise.
2396         * tree-chrec.c : Likewise.
2397         * tree-complex.c : Likewise.
2398         * tree-data-ref.c : Likewise.
2399         * tree-dfa.c : Likewise.
2400         * tree-diagnostic.c : Likewise.
2401         * tree-dump.c : Likewise.
2402         * tree-eh.c : Likewise.
2403         * tree-eh.h : Likewise.
2404         * tree-emutls.c : Likewise.
2405         * tree-hasher.h : Likewise.
2406         * tree-if-conv.c : Likewise.
2407         * tree-inline.c : Likewise.
2408         * tree-inline.h : Likewise.
2409         * tree-into-ssa.c : Likewise.
2410         * tree-iterator.c : Likewise.
2411         * tree-loop-distribution.c : Likewise.
2412         * tree-nested.c : Likewise.
2413         * tree-nrv.c : Likewise.
2414         * tree-object-size.c : Likewise.
2415         * tree-outof-ssa.c : Likewise.
2416         * tree-parloops.c : Likewise.
2417         * tree-phinodes.c : Likewise.
2418         * tree-predcom.c : Likewise.
2419         * tree-pretty-print.c : Likewise.
2420         * tree-profile.c : Likewise.
2421         * tree-scalar-evolution.c : Likewise.
2422         * tree-sra.c : Likewise.
2423         * tree-ssa-address.c : Likewise.
2424         * tree-ssa-alias.c : Likewise.
2425         * tree-ssa-ccp.c : Likewise.
2426         * tree-ssa-coalesce.c : Likewise.
2427         * tree-ssa-copy.c : Likewise.
2428         * tree-ssa-copyrename.c : Likewise.
2429         * tree-ssa-dce.c : Likewise.
2430         * tree-ssa-dom.c : Likewise.
2431         * tree-ssa-dse.c : Likewise.
2432         * tree-ssa-forwprop.c : Likewise.
2433         * tree-ssa-ifcombine.c : Likewise.
2434         * tree-ssa-live.c : Likewise.
2435         * tree-ssa-loop-ch.c : Likewise.
2436         * tree-ssa-loop-im.c : Likewise.
2437         * tree-ssa-loop-ivcanon.c : Likewise.
2438         * tree-ssa-loop-ivopts.c : Likewise.
2439         * tree-ssa-loop-manip.c : Likewise.
2440         * tree-ssa-loop-niter.c : Likewise.
2441         * tree-ssa-loop-prefetch.c : Likewise.
2442         * tree-ssa-loop-unswitch.c : Likewise.
2443         * tree-ssa-loop.c : Likewise.
2444         * tree-ssa-math-opts.c : Likewise.
2445         * tree-ssa-operands.c : Likewise.
2446         * tree-ssa-phiopt.c : Likewise.
2447         * tree-ssa-phiprop.c : Likewise.
2448         * tree-ssa-pre.c : Likewise.
2449         * tree-ssa-propagate.c : Likewise.
2450         * tree-ssa-reassoc.c : Likewise.
2451         * tree-ssa-sccvn.c : Likewise.
2452         * tree-ssa-scopedtables.c : Likewise.
2453         * tree-ssa-sink.c : Likewise.
2454         * tree-ssa-strlen.c : Likewise.
2455         * tree-ssa-structalias.c : Likewise.
2456         * tree-ssa-tail-merge.c : Likewise.
2457         * tree-ssa-ter.c : Likewise.
2458         * tree-ssa-threadedge.c : Likewise.
2459         * tree-ssa-threadupdate.c : Likewise.
2460         * tree-ssa-uncprop.c : Likewise.
2461         * tree-ssa-uninit.c : Likewise.
2462         * tree-ssa.c : Likewise.
2463         * tree-ssanames.c : Likewise.
2464         * tree-stdarg.c : Likewise.
2465         * tree-streamer-in.c : Likewise.
2466         * tree-streamer-out.c : Likewise.
2467         * tree-streamer.c : Likewise.
2468         * tree-streamer.h : Likewise.
2469         * tree-switch-conversion.c : Likewise.
2470         * tree-tailcall.c : Likewise.
2471         * tree-vect-data-refs.c : Likewise.
2472         * tree-vect-generic.c : Likewise.
2473         * tree-vect-loop-manip.c : Likewise.
2474         * tree-vect-loop.c : Likewise.
2475         * tree-vect-patterns.c : Likewise.
2476         * tree-vect-slp.c : Likewise.
2477         * tree-vect-stmts.c : Likewise.
2478         * tree-vectorizer.c : Likewise.
2479         * tree-vectorizer.h : Likewise.
2480         * tree-vrp.c : Likewise.
2481         * tree.c : Likewise.
2482         * tsan.c : Likewise.
2483         * ubsan.c : Likewise.
2484         * valtrack.c : Likewise.
2485         * valtrack.h : Likewise.
2486         * value-prof.c : Likewise.
2487         * var-tracking.c : Likewise.
2488         * varasm.c : Likewise.
2489         * varpool.c : Likewise.
2490         * vec.c: Likewise.
2491         * vmsdbgout.c : Likewise.
2492         * vtable-verify.c : Likewise.
2493         * vtable-verify.h : Likewise.
2494         * web.c : Likewise.
2495         * wide-int.cc : Likewise.
2496         * xcoffout.c : Likewise.
2497         * config/aarch64/aarch64-builtins.c : Likewise.
2498         * config/aarch64/aarch64.c : Likewise.
2499         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
2500         * config/alpha/alpha.c : Likewise.
2501         * config/arc/arc.c : Likewise.
2502         * config/arm/aarch-common.c : Likewise.
2503         * config/arm/arm-builtins.c : Likewise.
2504         * config/arm/arm-c.c : Likewise.
2505         * config/arm/arm.c : Likewise.
2506         * config/avr/avr-c.c : Likewise.
2507         * config/avr/avr-log.c : Likewise.
2508         * config/avr/avr.c : Likewise.
2509         * config/bfin/bfin.c : Likewise.
2510         * config/c6x/c6x.c : Likewise.
2511         * config/cr16/cr16.c : Likewise.
2512         * config/cris/cris.c : Likewise.
2513         * config/darwin-c.c : Likewise.
2514         * config/darwin.c : Likewise.
2515         * config/default-c.c : Likewise.
2516         * config/epiphany/epiphany.c : Likewise.
2517         * config/epiphany/mode-switch-use.c : Likewise.
2518         * config/epiphany/resolve-sw-modes.c : Likewise.
2519         * config/fr30/fr30.c : Likewise.
2520         * config/frv/frv.c : Likewise.
2521         * config/ft32/ft32.c : Likewise.
2522         * config/glibc-c.c : Likewise.
2523         * config/h8300/h8300.c : Likewise.
2524         * config/i386/i386-c.c : Likewise.
2525         * config/i386/i386.c : Likewise.
2526         * config/i386/msformat-c.c : Likewise.
2527         * config/i386/winnt-cxx.c : Likewise.
2528         * config/i386/winnt-stubs.c : Likewise.
2529         * config/i386/winnt.c : Likewise.
2530         * config/ia64/ia64-c.c : Likewise.
2531         * config/ia64/ia64.c : Likewise.
2532         * config/iq2000/iq2000.c : Likewise.
2533         * config/lm32/lm32.c : Likewise.
2534         * config/m32c/m32c-pragma.c : Likewise.
2535         * config/m32c/m32c.c : Likewise.
2536         * config/m32r/m32r.c : Likewise.
2537         * config/m68k/m68k.c : Likewise.
2538         * config/mcore/mcore.c : Likewise.
2539         * config/mep/mep-pragma.c : Likewise.
2540         * config/mep/mep.c : Likewise.
2541         * config/microblaze/microblaze-c.c : Likewise.
2542         * config/microblaze/microblaze.c : Likewise.
2543         * config/mips/mips.c : Likewise.
2544         * config/mmix/mmix.c : Likewise.
2545         * config/mn10300/mn10300.c : Likewise.
2546         * config/moxie/moxie.c : Likewise.
2547         * config/msp430/msp430-c.c : Likewise.
2548         * config/msp430/msp430.c : Likewise.
2549         * config/nds32/nds32-cost.c : Likewise.
2550         * config/nds32/nds32-fp-as-gp.c : Likewise.
2551         * config/nds32/nds32-intrinsic.c : Likewise.
2552         * config/nds32/nds32-isr.c : Likewise.
2553         * config/nds32/nds32-md-auxiliary.c : Likewise.
2554         * config/nds32/nds32-memory-manipulation.c : Likewise.
2555         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
2556         * config/nds32/nds32-predicates.c : Likewise.
2557         * config/nds32/nds32.c : Likewise.
2558         * config/nios2/nios2.c : Likewise.
2559         * config/nvptx/nvptx.c : Likewise.
2560         * config/pa/pa.c : Likewise.
2561         * config/pdp11/pdp11.c : Likewise.
2562         * config/rl78/rl78-c.c : Likewise.
2563         * config/rl78/rl78.c : Likewise.
2564         * config/rs6000/rs6000-c.c : Likewise.
2565         * config/rs6000/rs6000.c : Likewise.
2566         * config/rx/rx.c : Likewise.
2567         * config/s390/s390-c.c : Likewise.
2568         * config/s390/s390.c : Likewise.
2569         * config/sh/sh-c.c : Likewise.
2570         * config/sh/sh-mem.cc : Likewise.
2571         * config/sh/sh.c : Likewise.
2572         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
2573         * config/sh/sh_treg_combine.cc : Likewise.
2574         * config/sol2-c.c : Likewise.
2575         * config/sol2-cxx.c : Likewise.
2576         * config/sol2-stubs.c : Likewise.
2577         * config/sol2.c : Likewise.
2578         * config/sparc/sparc-c.c : Likewise.
2579         * config/sparc/sparc.c : Likewise.
2580         * config/spu/spu-c.c : Likewise.
2581         * config/spu/spu.c : Likewise.
2582         * config/stormy16/stormy16.c : Likewise.
2583         * config/tilegx/mul-tables.c : Likewise.
2584         * config/tilegx/tilegx-c.c : Likewise.
2585         * config/tilegx/tilegx.c : Likewise.
2586         * config/tilepro/mul-tables.c : Likewise.
2587         * config/tilepro/tilepro-c.c : Likewise.
2588         * config/tilepro/tilepro.c : Likewise.
2589         * config/v850/v850-c.c : Likewise.
2590         * config/v850/v850.c : Likewise.
2591         * config/vax/vax.c : Likewise.
2592         * config/visium/visium.c : Likewise.
2593         * config/vms/vms-c.c : Likewise.
2594         * config/vms/vms.c : Likewise.
2595         * config/vxworks.c : Likewise.
2596         * config/winnt-c.c : Likewise.
2597         * config/xtensa/xtensa.c : Likewise.
2599 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
2601         PR lto/65378
2602         * ipa-utils.h (warn_types_mismatch): Update prototype.
2603         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
2604         parameters.
2605         (type_mismatch_p): New function.
2606         (warn_types_mismatch): Reorg to work better on non-C++ types.
2607         (odr_types_equivalent_p): Add loc1/loc2 parameters.
2608         (add_type_duplicate): Update.
2610 2015-06-08  Tom de Vries  <tom@codesourcery.com>
2612         PR rtl-optimization/66444
2613         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
2614         call_used_regs.
2616 2015-06-08  Richard Biener  <rguenther@suse.de>
2618         PR tree-optimization/66422
2619         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
2620         block after inserted gcc_unreachable.
2622 2015-06-08  Nick Clifton  <nickc@redhat.com>
2624         * config/rx/rx.c (rx_function_value): Do not promote vector types.
2625         (rx_promote_function_mode): Likewise.
2626         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
2628 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
2630         * genattrtab.c (insn_alternatives): Change type from int *
2631         to uint64_t *.
2632         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
2633         (get_attr_value): Change type of num_alt to uint64_t.
2634         (compute_alternative_mask): Change return type from
2635         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
2636         (make_alternative_compare, mk_attr_alt): Change argument type
2637         from int to uint64_t.
2638         (simplify_test_exp): Change type of i from int to uint64_t.
2639         Shift ((uint64_t) 1) instead of 1 up.
2640         (main): Adjust oballocvec first argument from int to uint64_t.
2641         Shift ((uint64_t) 1) instead of 1 up.
2643 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
2645         PR other/65366
2646         * gdbhooks.py: Import sys.
2647         (intptr): New function.  Replace int(...) by intptr(...).
2649 2015-06-08  Richard Biener  <rguenther@suse.de>
2651         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
2652         adjustment for gaps at the end of a SLP load group properly.
2653         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
2654         all permutations we can generate.
2655         (vect_transform_slp_perm_load): Use the correct group-size.
2657 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
2659         * genmatch.c (expr::gen_transform): For conditions, guess the type
2660         from the second operand.
2662 2015-06-08  Tom de Vries  <tom@codesourcery.com>
2664         PR tree-optimization/66442
2665         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
2666         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
2667         if the loop latch is not a singleton.  Use
2668         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
2670 2015-06-08  Marek Polacek  <polacek@redhat.com>
2672         PR sanitizer/66452
2673         * toplev.c (check_global_declaration): Don't warn about artificial
2674         decls.
2676 2015-06-08  Tom de Vries  <tom@codesourcery.com>
2678         PR tree-optimization/66436
2679         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
2680         dump file.
2681         * gimplify.c: Add tree-dump.h include.
2682         (gimplify_function_tree): Dump function to gimple dump file.
2683         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
2684         dump file.
2686 2015-06-08  Tom de Vries  <tom@codesourcery.com>
2688         PR tree-optimization/66435
2689         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
2690         function.
2692 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
2694         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
2695         of ptr_type_node to not be ptr_to_node.
2696         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
2697         TREE_TYPE of pointers.
2698         * gimple-expr.c (useless_type_conversion): Reorder the check for
2699         function pointers and TYPE_CANONICAL.
2701 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
2703         PR bootstrap/66319
2704         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
2705         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
2706         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
2707         later.
2708         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
2709         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
2710         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
2711         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
2712         and non iso if unix2003.
2714 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
2716         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
2718 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
2720         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
2721         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
2722         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
2723         except.c, final.c, function.c, gcse-common.c, genemit.c,
2724         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
2725         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
2726         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
2727         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
2728         more derived ones.
2730 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
2732         * combine.c (combine_split_insns): Remove cast.
2733         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
2734         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
2735         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
2736         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
2737         * genemit.c (gen_split): Change return type of generated functions to
2738         rtx_insn.
2739         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
2740         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
2741         gen_peephole2_* functions.
2742         (print_subroutine, main): Likewise.
2743         * recog.c (peephole2_optimize): Remove cast.
2744         (peep2_next_insn): Promote return type to rtx_insn.
2745         * recog.h (peep2_next_insn): Fix prototype.
2746         * rtl.h (try_split, split_insns): Likewise.
2748 2015-06-06  DJ Delorie  <dj@redhat.com>
2750         * config/msp430/msp430.c (msp430_asm_integer): Support addition
2751         and subtraction too.
2753 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
2755         PR target/66410
2756         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
2757         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
2758         instead of Snd.  Disparage Sid/z alternative with '^'.
2760 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
2762         * dwarf2out.c: Remove deferred_locations*.
2763         (dwarf2_debug_hooks): Add early_finish hook.
2764         Remove global_decl hook.
2765         Add early_global_decl and late_global_decl hook.
2766         New global early_dwarf.
2767         New structure set_early_dwarf.
2768         (output_die): Indicate whether a DIE was generated early
2769         when generating assembly with -dA.
2770         (struct limbo_die_struct): Document created_for field.
2771         Remove file_table_last_lookup.
2772         (remove_AT): Return TRUE if successful.
2773         (remove_child_TAG): Clear die_parent.
2774         (reparent_child): New function abstracted from...
2775         (splice_child_die): ...here.
2776         (new_die): ICE if a DIE ends up in limbo too late.
2777         (check_die): New.
2778         (defer_location): Remove.
2779         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
2780         (fill_variable_array_bounds): New.
2781         (decl_start_label): Call fill_variable_array_bounds.
2782         (gen_formal_parameter_die): Rewrite to reuse previously generated
2783         DIEs.
2784         (gen_subprogram_die): Same.
2785         (gen_variable_die): Same.
2786         (gen_const_die): Same.
2787         (gen_label_die): Same.
2788         (gen_lexical_block_die): Same.
2789         (decl_will_get_specification_p): New.
2790         (local_function_static): New.
2791         (gen_struct_or_union_type_die): Fill in variable-length fields.
2792         (gen_typedef_die): Fill in variable-length typedefs.
2793         (gen_tagged_type_die): Gracefully return on error_mark_node.
2794         Handle re-entrancy.
2795         (gen_type_die_with_usage): Handle variable-length types.
2796         Remove duplicate code for ARRAY_TYPE case.
2797         (process_scope_var): Only process imported modules during early
2798         dwarf.
2799         (dwarf2out_early_global_decl): New.
2800         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
2801         (dwarf2out_type_decl): Set early_dwarf while calling
2802         dwarf2out_decl.
2803         (dwarf2out_decl): Verify that we did not recreate a previously
2804         generated DIE.
2805         Do not return on DECL_EXTERNALs in VAR_DECLs.
2806         Abstract some code to local_function_static.
2807         (lookup_filename): Remove use of file_table_last_lookup.
2808         Gracefully exit on missing file_name.
2809         (dwarf2out_finish): Verify limbo list.
2810         Remove deferred_locations_list use.
2811         Move deferred_asm_name and limbo flushing to...
2812         (dwarf2out_early_finish): ...here.  New.
2813         (dwarf2out_c_finalize): Remove set of deferred_location_list,
2814         deferred_asm_name, and file_table_last_lookup.
2815         * cgraph.h (referred_to_p): Add default argument.
2816         * cgraphunit.c (referred_to_p): Add and handle include_self
2817         argument.
2818         (analyze_functions): Add first_time argument.
2819         Call check_global_declaration for all symbols.
2820         Call late_global_decl for nodes for moribund nodes.
2821         (finalize_compilation_unit): Add new argument to
2822         analyze_functions.
2823         Call early_global_decl for functions.
2824         Call early_finish debug hook.
2825         * dbxout.c (dbxout_early_global_decl): New.
2826         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
2827         (dbx_debug_hooks): Add new hooks.
2828         (xcoff_debug_hooks): Same.
2829         * debug.c (do_nothing_debug_hooks): Add early_finish field.
2830         Add early and late debug hooks.
2831         Remove global_decl hook.
2832         * debug.h (struct gcc_debug_hooks): Add early_finish,
2833         early_global_decl, and late_global_decl fields.
2834         Remove global_decl field.
2835         Document gcc_debug_hooks.
2836         * gengtype.c (output_typename): Remove.
2837         * godump.c (go_early_global_decl): New.
2838         (go_late_global_decl): New.
2839         (go_global_decl): Remove.
2840         (dump_go_spec_init): Remove global_decl.  Add
2841         {early,late}_global_decl.
2842         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
2843         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
2844         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
2845         (write_global_declarations): Remove.
2846         (global_decl_processing): New.
2847         * langhooks.h (struct lang_hooks_for_decls): Remove
2848         final_write_globals field.
2849         Add post_compilation_parsing_cleanups field.
2850         * passes.c (rest_of_decl_compilation): Call early_global_decl.
2851         * sdbout.c: Add early and late_global_decl hooks.  Remove
2852         sdbout_global_decl hook.
2853         Add early_finish field for sdb_debug_hooks.
2854         (sdbout_global_decl): Remove.
2855         (sdbout_early_global_decl): New.
2856         (sdbout_late_global_decl): New.
2857         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
2858         * toplev.c (check_global_declaration): Rename from
2859         check_global_declaration_1.
2860         Adapt to use symtab infrastructure.
2861         (check_global_declarations): Remove.
2862         (emit_debug_global_declarations): Remove.
2863         (compile_file): Remove call to final_write_globals langhook.
2864         Run the actual compilation process.
2865         Perform any post compilation parser cleanups.
2866         Generate late debug info.
2867         * toplev.h (check_global_declaration): New.
2868         (check_global_declaration_1): Remove.
2869         (check_global_declarations): Remove.
2870         (write_global_declarations): Remove.
2871         (emit_debug_global_declarations): Remove.
2872         (global_decl_processing): New.
2873         * tree-core.h (struct tree_block): Add DIE field.
2874         * tree.h (BLOCK_DIE): New.
2875         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
2876         throughout.
2877         (vmsdbgout_early_global_decl): New.
2878         (vmsdbgout_late_global_decl): New.
2879         Add early_finish debug hook field to vmsdbg_debug_hooks.
2880         Remove vmsdbgout_decl to vmsdbgout_function_decl.
2881         Add early and late_global_decl debug hooks.
2883 2015-06-05  Julian Brown  <julian@codesourcery.com>
2884             Sandra Loosemore  <sandra@codesourcery.com>
2886         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
2887         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
2888         to print-sysroot-suffix.sh script.
2890 2015-06-05  Tom de Vries  <tom@codesourcery.com>
2892         merge from gomp4 branch:
2893         2015-05-28  Tom de Vries  <tom@codesourcery.com>
2895         PR tree-optimization/65443
2896         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
2897         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
2898         (try_transform_to_exit_first_loop_alt): New function.
2899         (transform_to_exit_first_loop): Use
2900         try_transform_to_exit_first_loop_alt.
2902 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
2904         * builtins.c (expand_builtin_atomic_compare_exchange): Call
2905         emit_cmp_and_jump_insns with the mode of target.
2907 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
2909         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
2911 2015-06-04  DJ Delorie  <dj@redhat.com>
2913         * config/msp430/msp430.md (movsi_s): New.  Special case for
2914         storing a 20-bit symbol into a 32-bit register.
2915         * config/msp430/msp430.c (msp430_subreg): Add support for it.
2916         * config/msp430/predicates.md (msp430_symbol_operand): New.
2918 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
2920         * c-family/c-common.c (noplt): New attribute.
2921         (handle_noplt_attribute): New handler.
2922         * calls.c (prepare_call_address): Check for noplt
2923         attribute.
2924         * config/i386/i386.c (ix86_expand_call): Check
2925         for noplt attribute.
2926         (ix86_nopic_noplt_attribute_p): New function.
2927         (ix86_output_call_insn): Output indirect call for non-pic
2928         no plt calls.
2929         * doc/extend.texi (noplt): Document new attribute.
2930         * doc/invoke.texi: Document new attribute.
2932 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
2934         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
2935         real.h, and fixed-value.h when included in host source files.
2936         * double-int.h: Remove redundant #includes listed above.
2937         * fixed-value.h: Likewise.
2938         * real.h: Likewise.
2939         * wide-int.h: Likewise.
2940         * inchash.h: Likewise.
2941         * rtl.h: Add some include files When included from a generator file.
2942         * target.h: Remove wide-int.h and insn-modes.h from the include list.
2943         * internal-fn.h: Don't include coretypes.h.
2944         * alias.c: Adjust includes for restructured coretypes.h.
2945         * asan.c: Likewise.
2946         * attribs.c: Likewise.
2947         * auto-inc-dec.c: Likewise.
2948         * auto-profile.c: Likewise.
2949         * bb-reorder.c: Likewise.
2950         * bt-load.c: Likewise.
2951         * builtins.c: Likewise.
2952         * caller-save.c: Likewise.
2953         * calls.c: Likewise.
2954         * ccmp.c: Likewise.
2955         * cfg.c: Likewise.
2956         * cfganal.c: Likewise.
2957         * cfgbuild.c: Likewise.
2958         * cfgcleanup.c: Likewise.
2959         * cfgexpand.c: Likewise.
2960         * cfghooks.c: Likewise.
2961         * cfgloop.c: Likewise.
2962         * cfgloop.h: Likewise.
2963         * cfgloopanal.c: Likewise.
2964         * cfgloopmanip.c: Likewise.
2965         * cfgrtl.c: Likewise.
2966         * cgraph.c: Likewise.
2967         * cgraphbuild.c: Likewise.
2968         * cgraphclones.c: Likewise.
2969         * cgraphunit.c: Likewise.
2970         * cilk-common.c: Likewise.
2971         * combine-stack-adj.c: Likewise.
2972         * combine.c: Likewise.
2973         * compare-elim.c: Likewise.
2974         * convert.c: Likewise.
2975         * coverage.c: Likewise.
2976         * cppbuiltin.c: Likewise.
2977         * cprop.c: Likewise.
2978         * cse.c: Likewise.
2979         * cselib.c: Likewise.
2980         * data-streamer-in.c: Likewise.
2981         * data-streamer-out.c: Likewise.
2982         * data-streamer.c: Likewise.
2983         * dbxout.c: Likewise.
2984         * dce.c: Likewise.
2985         * ddg.c: Likewise.
2986         * debug.c: Likewise.
2987         * df-core.c: Likewise.
2988         * df-problems.c: Likewise.
2989         * df-scan.c: Likewise.
2990         * df.h: Likewise.
2991         * dfp.c: Likewise.
2992         * dojump.c: Likewise.
2993         * dominance.c: Likewise.
2994         * domwalk.c: Likewise.
2995         * double-int.c: Likewise.
2996         * dse.c: Likewise.
2997         * dumpfile.c: Likewise.
2998         * dwarf2asm.c: Likewise.
2999         * dwarf2cfi.c: Likewise.
3000         * dwarf2out.c: Likewise.
3001         * dwarf2out.h: Likewise.
3002         * emit-rtl.c: Likewise.
3003         * et-forest.c: Likewise.
3004         * except.c: Likewise.
3005         * explow.c: Likewise.
3006         * expmed.c: Likewise.
3007         * expr.c: Likewise.
3008         * final.c: Likewise.
3009         * fixed-value.c: Likewise.
3010         * fold-const.c: Likewise.
3011         * function.c: Likewise.
3012         * fwprop.c: Likewise.
3013         * gcc-plugin.h: Likewise.
3014         * gcse.c: Likewise.
3015         * generic-match-head.c: Likewise.
3016         * ggc-page.c: Likewise.
3017         * gimple-builder.c: Likewise.
3018         * gimple-expr.c: Likewise.
3019         * gimple-fold.c: Likewise.
3020         * gimple-iterator.c: Likewise.
3021         * gimple-low.c: Likewise.
3022         * gimple-match-head.c: Likewise.
3023         * gimple-pretty-print.c: Likewise.
3024         * gimple-ssa-isolate-paths.c: Likewise.
3025         * gimple-ssa-strength-reduction.c: Likewise.
3026         * gimple-streamer-in.c: Likewise.
3027         * gimple-streamer-out.c: Likewise.
3028         * gimple-streamer.h: Likewise.
3029         * gimple-walk.c: Likewise.
3030         * gimple.c: Likewise.
3031         * gimplify-me.c: Likewise.
3032         * gimplify.c: Likewise.
3033         * godump.c: Likewise.
3034         * graph.c: Likewise.
3035         * graphite-blocking.c: Likewise.
3036         * graphite-dependences.c: Likewise.
3037         * graphite-interchange.c: Likewise.
3038         * graphite-isl-ast-to-gimple.c: Likewise.
3039         * graphite-optimize-isl.c: Likewise.
3040         * graphite-poly.c: Likewise.
3041         * graphite-scop-detection.c: Likewise.
3042         * graphite-sese-to-poly.c: Likewise.
3043         * graphite.c: Likewise.
3044         * haifa-sched.c: Likewise.
3045         * hooks.h: Likewise.
3046         * hw-doloop.c: Likewise.
3047         * ifcvt.c: Likewise.
3048         * incpath.c: Likewise.
3049         * init-regs.c: Likewise.
3050         * internal-fn.c: Likewise.
3051         * ipa-chkp.c: Likewise.
3052         * ipa-comdats.c: Likewise.
3053         * ipa-cp.c: Likewise.
3054         * ipa-devirt.c: Likewise.
3055         * ipa-icf-gimple.c: Likewise.
3056         * ipa-icf.c: Likewise.
3057         * ipa-inline-analysis.c: Likewise.
3058         * ipa-inline-transform.c: Likewise.
3059         * ipa-inline.c: Likewise.
3060         * ipa-polymorphic-call.c: Likewise.
3061         * ipa-profile.c: Likewise.
3062         * ipa-prop.c: Likewise.
3063         * ipa-pure-const.c: Likewise.
3064         * ipa-ref.c: Likewise.
3065         * ipa-reference.c: Likewise.
3066         * ipa-split.c: Likewise.
3067         * ipa-utils.c: Likewise.
3068         * ipa-visibility.c: Likewise.
3069         * ipa.c: Likewise.
3070         * ira-build.c: Likewise.
3071         * ira-color.c: Likewise.
3072         * ira-conflicts.c: Likewise.
3073         * ira-costs.c: Likewise.
3074         * ira-emit.c: Likewise.
3075         * ira-lives.c: Likewise.
3076         * ira.c: Likewise.
3077         * jump.c: Likewise.
3078         * langhooks.c: Likewise.
3079         * lcm.c: Likewise.
3080         * loop-doloop.c: Likewise.
3081         * loop-init.c: Likewise.
3082         * loop-invariant.c: Likewise.
3083         * loop-iv.c: Likewise.
3084         * loop-unroll.c: Likewise.
3085         * lower-subreg.c: Likewise.
3086         * lra-assigns.c: Likewise.
3087         * lra-coalesce.c: Likewise.
3088         * lra-constraints.c: Likewise.
3089         * lra-eliminations.c: Likewise.
3090         * lra-lives.c: Likewise.
3091         * lra-remat.c: Likewise.
3092         * lra-spills.c: Likewise.
3093         * lra.c: Likewise.
3094         * lto-cgraph.c: Likewise.
3095         * lto-compress.c: Likewise.
3096         * lto-opts.c: Likewise.
3097         * lto-section-in.c: Likewise.
3098         * lto-section-out.c: Likewise.
3099         * lto-streamer-in.c: Likewise.
3100         * lto-streamer-out.c: Likewise.
3101         * lto-streamer.c: Likewise.
3102         * mcf.c: Likewise.
3103         * mode-switching.c: Likewise.
3104         * modulo-sched.c: Likewise.
3105         * omega.c: Likewise.
3106         * omp-low.c: Likewise.
3107         * optabs.c: Likewise.
3108         * opts-global.c: Likewise.
3109         * passes.c: Likewise.
3110         * plugin.c: Likewise.
3111         * postreload-gcse.c: Likewise.
3112         * postreload.c: Likewise.
3113         * predict.c: Likewise.
3114         * print-rtl.c: Likewise.
3115         * print-tree.c: Likewise.
3116         * profile.c: Likewise.
3117         * real.c: Likewise.
3118         * realmpfr.c: Likewise.
3119         * realmpfr.h: Likewise.
3120         * recog.c: Likewise.
3121         * ree.c: Likewise.
3122         * reg-stack.c: Likewise.
3123         * regcprop.c: Likewise.
3124         * reginfo.c: Likewise.
3125         * regrename.c: Likewise.
3126         * regs.h: Likewise.
3127         * regstat.c: Likewise.
3128         * reload.c: Likewise.
3129         * reload1.c: Likewise.
3130         * reorg.c: Likewise.
3131         * resource.c: Likewise.
3132         * rtl-chkp.c: Likewise.
3133         * rtlanal.c: Likewise.
3134         * rtlhooks.c: Likewise.
3135         * sanopt.c: Likewise.
3136         * sched-deps.c: Likewise.
3137         * sched-ebb.c: Likewise.
3138         * sched-rgn.c: Likewise.
3139         * sched-vis.c: Likewise.
3140         * sdbout.c: Likewise.
3141         * sel-sched-dump.c: Likewise.
3142         * sel-sched-ir.c: Likewise.
3143         * sel-sched.c: Likewise.
3144         * sese.c: Likewise.
3145         * shrink-wrap.c: Likewise.
3146         * shrink-wrap.h: Likewise.
3147         * simplify-rtx.c: Likewise.
3148         * stack-ptr-mod.c: Likewise.
3149         * statistics.c: Likewise.
3150         * stmt.c: Likewise.
3151         * stor-layout.c: Likewise.
3152         * store-motion.c: Likewise.
3153         * stringpool.c: Likewise.
3154         * symtab.c: Likewise.
3155         * target-globals.c: Likewise.
3156         * targhooks.c: Likewise.
3157         * toplev.c: Likewise.
3158         * tracer.c: Likewise.
3159         * trans-mem.c: Likewise.
3160         * tree-affine.c: Likewise.
3161         * tree-affine.h: Likewise.
3162         * tree-browser.c: Likewise.
3163         * tree-call-cdce.c: Likewise.
3164         * tree-cfg.c: Likewise.
3165         * tree-cfgcleanup.c: Likewise.
3166         * tree-chkp-opt.c: Likewise.
3167         * tree-chkp.c: Likewise.
3168         * tree-chrec.c: Likewise.
3169         * tree-complex.c: Likewise.
3170         * tree-data-ref.c: Likewise.
3171         * tree-dfa.c: Likewise.
3172         * tree-diagnostic.c: Likewise.
3173         * tree-dump.c: Likewise.
3174         * tree-eh.c: Likewise.
3175         * tree-emutls.c: Likewise.
3176         * tree-if-conv.c: Likewise.
3177         * tree-inline.c: Likewise.
3178         * tree-into-ssa.c: Likewise.
3179         * tree-iterator.c: Likewise.
3180         * tree-loop-distribution.c: Likewise.
3181         * tree-nested.c: Likewise.
3182         * tree-nrv.c: Likewise.
3183         * tree-object-size.c: Likewise.
3184         * tree-outof-ssa.c: Likewise.
3185         * tree-parloops.c: Likewise.
3186         * tree-phinodes.c: Likewise.
3187         * tree-predcom.c: Likewise.
3188         * tree-pretty-print.c: Likewise.
3189         * tree-pretty-print.h: Likewise.
3190         * tree-profile.c: Likewise.
3191         * tree-scalar-evolution.c: Likewise.
3192         * tree-sra.c: Likewise.
3193         * tree-ssa-address.c: Likewise.
3194         * tree-ssa-alias.c: Likewise.
3195         * tree-ssa-ccp.c: Likewise.
3196         * tree-ssa-coalesce.c: Likewise.
3197         * tree-ssa-copy.c: Likewise.
3198         * tree-ssa-copyrename.c: Likewise.
3199         * tree-ssa-dce.c: Likewise.
3200         * tree-ssa-dom.c: Likewise.
3201         * tree-ssa-dse.c: Likewise.
3202         * tree-ssa-forwprop.c: Likewise.
3203         * tree-ssa-ifcombine.c: Likewise.
3204         * tree-ssa-live.c: Likewise.
3205         * tree-ssa-loop-ch.c: Likewise.
3206         * tree-ssa-loop-im.c: Likewise.
3207         * tree-ssa-loop-ivcanon.c: Likewise.
3208         * tree-ssa-loop-ivopts.c: Likewise.
3209         * tree-ssa-loop-manip.c: Likewise.
3210         * tree-ssa-loop-niter.c: Likewise.
3211         * tree-ssa-loop-prefetch.c: Likewise.
3212         * tree-ssa-loop-unswitch.c: Likewise.
3213         * tree-ssa-loop.c: Likewise.
3214         * tree-ssa-loop.h: Likewise.
3215         * tree-ssa-math-opts.c: Likewise.
3216         * tree-ssa-operands.c: Likewise.
3217         * tree-ssa-phiopt.c: Likewise.
3218         * tree-ssa-phiprop.c: Likewise.
3219         * tree-ssa-pre.c: Likewise.
3220         * tree-ssa-propagate.c: Likewise.
3221         * tree-ssa-reassoc.c: Likewise.
3222         * tree-ssa-sccvn.c: Likewise.
3223         * tree-ssa-scopedtables.c: Likewise.
3224         * tree-ssa-sink.c: Likewise.
3225         * tree-ssa-strlen.c: Likewise.
3226         * tree-ssa-structalias.c: Likewise.
3227         * tree-ssa-tail-merge.c: Likewise.
3228         * tree-ssa-ter.c: Likewise.
3229         * tree-ssa-threadedge.c: Likewise.
3230         * tree-ssa-threadupdate.c: Likewise.
3231         * tree-ssa-uncprop.c: Likewise.
3232         * tree-ssa-uninit.c: Likewise.
3233         * tree-ssa.c: Likewise.
3234         * tree-ssanames.c: Likewise.
3235         * tree-stdarg.c: Likewise.
3236         * tree-streamer-in.c: Likewise.
3237         * tree-streamer-out.c: Likewise.
3238         * tree-streamer.c: Likewise.
3239         * tree-switch-conversion.c: Likewise.
3240         * tree-tailcall.c: Likewise.
3241         * tree-vect-data-refs.c: Likewise.
3242         * tree-vect-generic.c: Likewise.
3243         * tree-vect-loop-manip.c: Likewise.
3244         * tree-vect-loop.c: Likewise.
3245         * tree-vect-patterns.c: Likewise.
3246         * tree-vect-slp.c: Likewise.
3247         * tree-vect-stmts.c: Likewise.
3248         * tree-vectorizer.c: Likewise.
3249         * tree-vrp.c: Likewise.
3250         * tree.c: Likewise.
3251         * tsan.c: Likewise.
3252         * ubsan.c: Likewise.
3253         * valtrack.c: Likewise.
3254         * value-prof.c: Likewise.
3255         * var-tracking.c: Likewise.
3256         * varasm.c: Likewise.
3257         * varpool.c: Likewise.
3258         * vmsdbgout.c: Likewise.
3259         * vtable-verify.c: Likewise.
3260         * web.c: Likewise.
3261         * wide-int-print.cc: Likewise.
3262         * wide-int-print.h: Likewise.
3263         * wide-int.cc: Likewise.
3264         * xcoffout.c: Likewise.
3265         * config/aarch64/aarch64-builtins.c: Likewise.
3266         * config/aarch64/aarch64.c: Likewise.
3267         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
3268         * config/alpha/alpha.c: Likewise.
3269         * config/arc/arc.c: Likewise.
3270         * config/arm/aarch-common.c: Likewise.
3271         * config/arm/arm-builtins.c: Likewise.
3272         * config/arm/arm-c.c: Likewise.
3273         * config/arm/arm.c: Likewise.
3274         * config/avr/avr-c.c: Likewise.
3275         * config/avr/avr-log.c: Likewise.
3276         * config/avr/avr.c: Likewise.
3277         * config/bfin/bfin.c: Likewise.
3278         * config/c6x/c6x.c: Likewise.
3279         * config/cr16/cr16.c: Likewise.
3280         * config/cris/cris.c: Likewise.
3281         * config/darwin-c.c: Likewise.
3282         * config/darwin.c: Likewise.
3283         * config/default-c.c: Likewise.
3284         * config/epiphany/epiphany.c: Likewise.
3285         * config/epiphany/mode-switch-use.c: Likewise.
3286         * config/epiphany/resolve-sw-modes.c: Likewise.
3287         * config/fr30/fr30.c: Likewise.
3288         * config/frv/frv.c: Likewise.
3289         * config/ft32/ft32.c: Likewise.
3290         * config/glibc-c.c: Likewise.
3291         * config/h8300/h8300.c: Likewise.
3292         * config/i386/i386-c.c: Likewise.
3293         * config/i386/i386.c: Likewise.
3294         * config/i386/msformat-c.c: Likewise.
3295         * config/i386/winnt-cxx.c: Likewise.
3296         * config/i386/winnt-stubs.c: Likewise.
3297         * config/i386/winnt.c: Likewise.
3298         * config/ia64/ia64-c.c: Likewise.
3299         * config/ia64/ia64.c: Likewise.
3300         * config/iq2000/iq2000.c: Likewise.
3301         * config/lm32/lm32.c: Likewise.
3302         * config/m32c/m32c-pragma.c: Likewise.
3303         * config/m32c/m32c.c: Likewise.
3304         * config/m32r/m32r.c: Likewise.
3305         * config/m68k/m68k.c: Likewise.
3306         * config/mcore/mcore.c: Likewise.
3307         * config/mep/mep-pragma.c: Likewise.
3308         * config/mep/mep.c: Likewise.
3309         * config/microblaze/microblaze-c.c: Likewise.
3310         * config/microblaze/microblaze.c: Likewise.
3311         * config/mips/mips.c: Likewise.
3312         * config/mmix/mmix.c: Likewise.
3313         * config/mn10300/mn10300.c: Likewise.
3314         * config/moxie/moxie.c: Likewise.
3315         * config/msp430/msp430-c.c: Likewise.
3316         * config/msp430/msp430.c: Likewise.
3317         * config/nds32/nds32-cost.c: Likewise.
3318         * config/nds32/nds32-fp-as-gp.c: Likewise.
3319         * config/nds32/nds32-intrinsic.c: Likewise.
3320         * config/nds32/nds32-isr.c: Likewise.
3321         * config/nds32/nds32-md-auxiliary.c: Likewise.
3322         * config/nds32/nds32-memory-manipulation.c: Likewise.
3323         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3324         * config/nds32/nds32-predicates.c: Likewise.
3325         * config/nds32/nds32.c: Likewise.
3326         * config/nios2/nios2.c: Likewise.
3327         * config/nvptx/nvptx.c: Likewise.
3328         * config/pa/pa.c: Likewise.
3329         * config/pdp11/pdp11.c: Likewise.
3330         * config/rl78/rl78-c.c: Likewise.
3331         * config/rl78/rl78.c: Likewise.
3332         * config/rs6000/rs6000-c.c: Likewise.
3333         * config/rs6000/rs6000.c: Likewise.
3334         * config/rx/rx.c: Likewise.
3335         * config/s390/s390-c.c: Likewise.
3336         * config/s390/s390.c: Likewise.
3337         * config/sh/sh-c.c: Likewise.
3338         * config/sh/sh-mem.cc: Likewise.
3339         * config/sh/sh.c: Likewise.
3340         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
3341         * config/sh/sh_treg_combine.cc: Likewise.
3342         * config/sol2-c.c: Likewise.
3343         * config/sol2-cxx.c: Likewise.
3344         * config/sol2-stubs.c: Likewise.
3345         * config/sol2.c: Likewise.
3346         * config/sparc/sparc-c.c: Likewise.
3347         * config/sparc/sparc.c: Likewise.
3348         * config/spu/spu-c.c: Likewise.
3349         * config/spu/spu.c: Likewise.
3350         * config/stormy16/stormy16.c: Likewise.
3351         * config/tilegx/mul-tables.c: Likewise.
3352         * config/tilegx/tilegx-c.c: Likewise.
3353         * config/tilegx/tilegx.c: Likewise.
3354         * config/tilepro/mul-tables.c: Likewise.
3355         * config/tilepro/tilepro-c.c: Likewise.
3356         * config/tilepro/tilepro.c: Likewise.
3357         * config/v850/v850-c.c: Likewise.
3358         * config/v850/v850.c: Likewise.
3359         * config/vax/vax.c: Likewise.
3360         * config/visium/visium.c: Likewise.
3361         * config/vms/vms-c.c: Likewise.
3362         * config/vms/vms.c: Likewise.
3363         * config/vxworks.c: Likewise.
3364         * config/winnt-c.c: Likewise.
3365         * config/xtensa/xtensa.c: Likewise.
3366         * common/config/bfin/bfin-common.c: Likewise.
3368 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
3370         * tree.h (tree_code_for_canonical_type_merging): New function.
3371         * tree.c (gimple_canonical_types_compatible_p): Use
3372         tree_code_for_canonical_type_merging..
3374 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3376         PR c++/66192
3377         PR target/66200
3378         * doc/tm.texi: Regenerate.
3379         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
3380         * target.def (TARGET_RELAXED_ORDERING): Likewise.
3381         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
3382         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
3383         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
3384         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
3385         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
3386         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
3387         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
3389 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3391         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
3392         register fma steering pass.
3393         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
3394         AARCH64_TUNE_FMA_STEERING.
3396 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
3398         * tree.c (verify_type_variant): Verify that type and variant is
3399         compatible.
3400         (gimple_canonical_types_compatible_p): Look for main variants.
3402 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
3404         * config.gcc (powerpc*-*-*): Add support for a new configure
3405         option --with-advance-toolchain=<xxx> which overrides using the
3406         default header files, libraries and dynamic linker.
3408         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
3409         specs to support the configure --with-advance-toolchain=<xxx>
3410         option.
3411         (INCLUDE_EXTRA_SPEC): Likewise.
3412         (LINK_OS_EXTRA_SPEC32): Likewise.
3413         (LINK_OK_EXTRA_SPEC64): Likewise.
3414         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
3415         (DYNAMIC_LINKER_PREFIX): Likewise.
3416         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
3417         toolchain support.
3418         (GLIBC_DYNAMIC_LINKER32): Likewise.
3419         (GLIBC_DYNAMIC_LINKER64): Likewise.
3420         (LINK_OS_LINUX_SPEC32): Likewise.
3421         (LINK_OS_LINUX_SPEC64): Likewise.
3423         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
3424         configuration option.
3426 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
3428         PR target/66275
3429         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
3430         to determine current function ABI.
3431         (ix86_function_value_regno_p): Ditto.
3433 2015-06-03  Martin Liska  <mliska@suse.cz>
3435         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
3436         * bitmap.h (struct bitmap_usage): Likewise.
3437         * ggc-common.c (struct ggc_usage): Likewise.
3438         * mem-stats.h (struct mem_location): Likewise.
3439         (struct mem_usage): Likewise.
3440         * vec.c (struct vec_usage): Likewise.
3442 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
3444         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
3445         -Bsymbolic.
3447 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
3449         * doc/plugins.texi (enum plugin_event): New event.
3450         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
3451         and PLUGIN_FINISH_FUNCTION.
3452         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
3453         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
3455 2015-06-03  Richard Biener  <rguenther@suse.de>
3457         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
3458         compute GROUP_GAP for the first element.
3459         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
3460         on in-group gaps.
3462 2015-06-03  Nick Clifton  <nickc@redhat.com>
3464         * config/rl78/rl78-real.md: Add peepholes to avoid a register
3465         copy when calling a function.
3466         * config/rl78/rl78.c (need_to_save): Do not push the frame
3467         pointer in an interrupt handler prologue if it is never used.
3469 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3471         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
3473 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
3475         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
3476         reference when cloning alias node.
3478 2015-06-03  Martin Liska  <mliska@suse.cz>
3480         * alloc-pool.h (struct pool_usage): Correct space padding.
3481         * ggc-page.c (ggc_print_statistics): Align columns in a report.
3482         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
3483         * tree.c (dump_tree_statistics): Align columns in a report.
3485 2015-06-03  Martin Liska  <mliska@suse.cz>
3487         * alloc-pool.c (allocate_pool_descriptor): Remove.
3488         (struct pool_output_info): Likewise.
3489         (print_alloc_pool_statistics): Likewise.
3490         (dump_alloc_pool_statistics): Likewise.
3491         * alloc-pool.h (struct pool_usage): New struct.
3492         (pool_allocator::initialize): Change usage of memory statistics
3493         to a new interface.
3494         (pool_allocator::release): Likewise.
3495         (pool_allocator::allocate): Likewise.
3496         (pool_allocator::remove): Likewise.
3497         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
3498         for a pool allocator.
3499         * mem-stats.h (struct mem_location): Add new ctor.
3500         (struct mem_usage): Add counter for number of
3501         instances.
3502         (mem_alloc_description::register_descriptor): New overload of
3503         * mem-stats.h (mem_location::to_string): New function.
3504         * bitmap.h (struct bitmap_usage): Use this new function.
3505         * ggc-common.c (struct ggc_usage): Likewise.
3506         the function.
3508 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
3510         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
3511         of GCC_INSN_FLAGS_H block.
3513 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
3515         * explow.c (plus_constant): Update check after force_const_mem call
3516         to see if the value returned is not a NULL_RTX.
3518 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
3520         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
3521         remove instumentation thunks calling reachable functions.
3522         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
3523         * lto/lto-partition.c (privatize_symbol_name_1): New.
3524         (privatize_symbol_name): Privatize both decl and orig_decl
3525         names for instrumented functions.
3526         * cgraph.c (cgraph_node::verify_node): Add transparent
3527         alias chain check for instrumented node.
3529 2015-06-03  Marek Polacek  <polacek@redhat.com>
3531         PR c/64223
3532         PR c/29358
3533         * tree.c (attribute_value_equal): Handle attribute format.
3534         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
3536 2015-06-03  Richard Biener  <rguenther@suse.de>
3538         PR tree-optimization/63916
3539         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
3540         Forward-propagate non-invariant addresses by splicing their
3541         reference ops if the result isn't going to be used by PRE.
3542         (vn_reference_lookup_3): Remove pointless assert.
3544 2015-06-03  Richard Biener  <rguenther@suse.de>
3546         PR tree-optimization/66375
3547         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
3548         add to the evolution before following SSA edges.
3550 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
3552         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
3553         (dump_use, dump_cand, find_induction_variables): Pass new argument
3554         to dump_iv.
3555         (record_use): Preserve the ssa name information in IV.
3557 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
3559         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
3560         NO_MODE_TEST.
3561         (add_mode_tests): Don't add mode tests if the predicate only
3562         accepts scalar constant integers.  Otherwise, allow the mode
3563         of "op" to be VOIDmode if the predicate does accept such integers.
3565 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
3567         PR target/66258
3568         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
3569         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
3570         (aarch64_secondary_reload): Likewise
3571         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
3572         to !TARGET_FLOAT.
3573         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
3574         Likewise.
3576 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
3577             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
3579         PR target/65768
3580         * cprop.c (try_replace_reg): Check cost of constants before propagating.
3582 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
3584         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
3585         provide access to the IBM extended double floating point mode if
3586         long double is IEEE 128-bit floating point.
3587         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
3588         point if long double is the IBM extended double type.
3590         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
3591         enable adding IEEE 128-bit floating point support.
3592         (-mfloat128-software): Likewise.
3593         (-mfloat128-sw): Likewise.
3595         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
3596         128-bit floating point types to occupy any register if
3597         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
3598         -mfloat128-software is enabled.
3599         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
3600         support.
3601         (rs6000_option_override_internal): Add -mfloat128-* support.
3602         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
3604         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
3605         and float128 type nodes.
3606         (ieee128_float_type_node): Likewise.
3607         (ibm128_float_type_node): Likewise.
3609 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3611         PR target/66136
3612         * config/aarch64/geniterators.sh: Rewrite in awk.
3614 2015-06-02  Martin Liska  <mliska@suse.cz>
3616         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
3617         values to avoid -Wmaybe-uninitialized errors.
3619 2015-06-02  Richard Biener  <rguenther@suse.de>
3621         PR debug/65549
3622         * dwarf2out.c (lookup_context_die): New function.
3623         (resolve_addr): Avoid forcing a full DIE for the
3624         target of a DW_TAG_GNU_call_site during late compilation.
3625         Instead create a stub DIE without a type if we have a
3626         context DIE present.
3628 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
3630         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
3632 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
3634         PR tree-optimization/48052
3635         * cfgloop.h (struct control_iv): New.
3636         (struct loop): New field control_ivs.
3637         * tree-ssa-loop-niter.c : Include "stor-layout.h".
3638         (number_of_iterations_lt): Set no_overflow information.
3639         (number_of_iterations_exit): Init control iv in niter struct.
3640         (record_control_iv): New.
3641         (estimate_numbers_of_iterations_loop): Call record_control_iv.
3642         (loop_exits_before_overflow): New.  Interface factored out of
3643         scev_probably_wraps_p.
3644         (scev_probably_wraps_p): Factor loop niter related code into
3645         loop_exits_before_overflow.
3646         (free_numbers_of_iterations_estimates_loop): Free control ivs.
3647         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
3649 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
3651         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
3652         the target doesn't belong to the current function.
3654 2015-06-02  Marek Polacek  <polacek@redhat.com>
3656         PR middle-end/66345
3657         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
3658         get_maxval_strlen does not produce an INTEGER_CST.
3660 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
3662         * config/arc/constraints.md: Use lower-case names in match_code.
3663         * config/mmix/constraints.md: Likewise.
3665 2015-06-02  Richard Biener  <rguenther@suse.de>
3667         PR tree-optimization/65961
3668         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
3669         check and clarify dump message.
3670         (vect_build_slp_tree): If all children are built up from scalars
3671         build up the parent from scalars instead.
3672         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
3674 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3676         PR other/65366
3677         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
3678         instead of print ... .
3680 2015-06-02  Alan Modra  <amodra@gmail.com>
3682         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
3683         2014-08-11 change.
3685 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
3687         PR tree-optimization/52563
3688         PR tree-optimization/62173
3689         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
3690         (alloc_iv, set_iv): New parameter.
3691         (determine_biv_step): Delete.
3692         (find_bivs): Inline original determine_biv_step.  Pass new
3693         argument to set_iv.
3694         (idx_find_step): Use no_overflow information for conversion.
3695         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
3696         resolve_mixers handle folded_casts.
3697         (instantiate_scev_name): Change bool parameter to bool pointer.
3698         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
3699         (instantiate_array_ref, instantiate_scev_not): Ditto.
3700         (instantiate_scev_3, instantiate_scev_2): Ditto.
3701         (instantiate_scev_1, instantiate_scev_r): Ditto.
3702         (instantiate_scev_convert, ): Change parameter.  Pass argument
3703         to chrec_convert_aggressive.
3704         (instantiate_scev): Change argument.
3705         (resolve_mixers): New parameter and set it.
3706         (scev_const_prop): New argument.
3707         * tree-scalar-evolution.h (resolve_mixers): New parameter.
3708         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
3709         of chrec_conert_1.
3710         (chrec_convert): New parameter.  Move definition below.
3711         (chrec_convert_aggressive): New parameter and set it.  Call
3712         convert_affine_scev.
3713         * tree-chrec.h (chrec_convert): New parameter.
3714         (chrec_convert_aggressive): Ditto.
3716 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
3718         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
3719         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
3720         the LHS of a no-return call if its type has variable size.
3721         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
3722         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
3724 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
3726         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
3727         * config.in: Regenerate.
3729 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
3731         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
3732         consecutive accesses within outer-loop with force_vectorize
3733         for references with zero step in inner-loop.
3735 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
3737         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
3738         rather than from gcc/build directory.
3740 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
3742         PR target/65697
3743         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
3744         for __sync memory models, emit initial loads and final barriers as
3745         appropriate.
3747 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
3749         PR target/65697
3750         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
3751         (aarch64_split_atomic_op): Check for __sync memory models, emit
3752         appropriate initial loads and final barriers.
3754 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
3756         * Makefile.in: Fix gcov dependencies that should
3757         not point to a build folder.
3759 2015-06-01  Richard Biener  <rguenther@suse.de>
3761         Revert
3762         2015-05-29  Richard Biener  <rguenther@suse.de>
3764         PR tree-optimization/66314
3765         * tree-ssa-threadupdate.c (create_block_for_threading): Add
3766         parameter that says which loop the new block belongs to.
3767         (ssa_create_duplicates): Blocks duplicated for the threaded
3768         path belong to the loop of the thread destination.
3770 2015-06-01  Martin Liska  <mliska@suse.cz>
3772         * sched-deps.c: Include pool-alloc.h before
3773         cselib.h header file is included.
3775 2015-06-01  Richard Biener  <rguenther@suse.de>
3777         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
3778         functions.
3780 2015-06-01  Martin Liska  <mliska@suse.cz>
3782         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
3783         a function local variable.
3785 2015-06-01  Martin Liska  <mliska@suse.cz>
3787         * alloc-pool.c (create_alloc_pool): Remove.
3788         (empty_alloc_pool): Likewise.
3789         (free_alloc_pool): Likewise.
3790         (free_alloc_pool_if_empty): Likewise.
3791         (pool_alloc): Likewise.
3792         (pool_free): Likewise.
3793         * alloc-pool.h: Remove old declarations.
3795 2015-06-01  Martin Liska  <mliska@suse.cz>
3797         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
3798         (ira_create_object): Likewise.
3799         (ira_create_allocno): Likewise.
3800         (ira_create_live_range): Likewise.
3801         (copy_live_range): Likewise.
3802         (ira_finish_live_range): Likewise.
3803         (ira_free_allocno_costs): Likewise.
3804         (finish_allocno): Likewise.
3805         (finish_allocnos): Likewise.
3806         (initiate_prefs): Likewise.
3807         (ira_create_pref): Likewise.
3808         (finish_pref): Likewise.
3809         (finish_prefs): Likewise.
3810         (initiate_copies): Likewise.
3811         (ira_create_copy): Likewise.
3812         (finish_copy): Likewise.
3813         (finish_copies): Likewise.
3814         (finish_prefs): Likewise.
3816 2015-06-01  Martin Liska  <mliska@suse.cz>
3818         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
3819         (allocate_and_init_ipcp_value): Likewise.
3820         (ipcp_lattice::add_value): Likewise.
3821         (merge_agg_lats_step): Likewise.
3822         (ipcp_driver): Likewise.
3823         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
3824         (ipa_free_all_structures_after_iinln): Likewise.
3825         * ipa-prop.h: Likewise.
3827 2015-06-01  Martin Liska  <mliska@suse.cz>
3829         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
3830         pool allocator.
3831         (set_hint_predicate): Likewise.
3832         (inline_summary_alloc): Likewise.
3833         (reset_inline_edge_summary): Likewise.
3834         (reset_inline_summary): Likewise.
3835         (set_cond_stmt_execution_predicate): Likewise.
3836         (set_switch_stmt_execution_predicate): Likewise.
3837         (compute_bb_predicates): Likewise.
3838         (estimate_function_body_sizes): Likewise.
3839         (inline_free_summary): Likewise.
3841 2015-06-01  Martin Liska  <mliska@suse.cz>
3843         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
3844         (ipa_edge_duplication_hook): Likewise.
3845         (ipa_free_all_structures_after_ipa_cp): Likewise.
3846         (ipa_free_all_structures_after_iinln): Likewise.
3848 2015-06-01  Martin Liska  <mliska@suse.cz>
3850         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
3851         (ipa_profile_generate_summary): Likewise.
3852         (ipa_profile_read_summary): Likewise.
3853         (ipa_profile): Likewise.
3855 2015-06-01  Martin Liska  <mliska@suse.cz>
3857         * tree-ssa-structalias.c (new_var_info): Use new type-based
3858         pool allocator.
3859         (new_constraint): Likewise.
3860         (init_alias_vars): Likewise.
3861         (delete_points_to_sets): Likewise.
3863 2015-06-01  Martin Liska  <mliska@suse.cz>
3865         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
3866         (free_strinfo): Likewise.
3867         (pass_strlen::execute): Likewise.
3869 2015-06-01  Martin Liska  <mliska@suse.cz>
3871         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
3872         pool allocator.
3873         (vn_reference_insert_pieces): Likewise.
3874         (vn_phi_insert): Likewise.
3875         (visit_reference_op_call): Likewise.
3876         (copy_phi): Likewise.
3877         (copy_reference): Likewise.
3878         (process_scc): Likewise.
3879         (allocate_vn_table): Likewise.
3880         (free_vn_table): Likewise.
3882 2015-06-01  Martin Liska  <mliska@suse.cz>
3884         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
3885         pool allocator.
3886         (add_repeat_to_ops_vec): Likewise.
3887         (get_ops): Likewise.
3888         (maybe_optimize_range_tests): Likewise.
3889         (init_reassoc): Likewise.
3890         (fini_reassoc): Likewise.
3892 2015-06-01  Martin Liska  <mliska@suse.cz>
3894         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
3895         pool allocator.
3896         (bitmap_set_new): Likewise.
3897         (get_or_alloc_expr_for_constant): Likewise.
3898         (get_or_alloc_expr_for): Likewise.
3899         (phi_translate_1): Likewise.
3900         (compute_avail): Likewise.
3901         (init_pre): Likewise.
3902         (fini_pre): Likewise.
3904 2015-06-01  Martin Liska  <mliska@suse.cz>
3906         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
3907         (delete_dep_node): Likewise.
3908         (create_deps_list): Likewise.
3909         (free_deps_list): Likewise.
3910         (sched_deps_init): Likewise.
3911         (sched_deps_finish): Likewise.
3913 2015-06-01  Martin Liska  <mliska@suse.cz>
3915         * regcprop.c (free_debug_insn_changes): Use new type-based
3916         pool allocator.
3917         (replace_oldest_value_reg): Likewise.
3918         (pass_cprop_hardreg::execute): Likewise.
3920 2015-06-01  Martin Liska  <mliska@suse.cz>
3922         * ira-build.c (initiate_cost_vectors): Use new type-based
3923         pool allocator.
3924         (ira_allocate_cost_vector): Likewise.
3925         (ira_free_cost_vector): Likewise.
3926         (finish_cost_vectors): Likewise.
3928 2015-06-01  Martin Liska  <mliska@suse.cz>
3930         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
3931         pool allocator.
3932         (free_sched_pools): Likewise.
3933         * sel-sched-ir.h (_list_alloc): Likewise.
3934         (_list_remove): Likewise.
3936 2015-06-01  Martin Liska  <mliska@suse.cz>
3938         * stmt.c (add_case_node): Use new type-based pool allocator.
3939         (expand_case): Likewise.
3940         (expand_sjlj_dispatch_table): Likewise.
3942 2015-06-01  Martin Liska  <mliska@suse.cz>
3944         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
3945         (free_bb): Likewise.
3946         (pass_cse_reciprocals::execute): Likewise.
3948 2015-06-01  Martin Liska  <mliska@suse.cz>
3950         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
3951         (sra_deinitialize) Likewise.
3952         (create_access_1) Likewise.
3953         (build_accesses_from_assign) Likewise.
3954         (create_artificial_child_access) Likewise.
3956 2015-06-01  Martin Liska  <mliska@suse.cz>
3958         * dse.c (get_group_info):Use new type-based pool allocator.
3959         (dse_step0) Likewise.
3960         (free_store_info) Likewise.
3961         (delete_dead_store_insn) Likewise.
3962         (free_read_records) Likewise.
3963         (record_store) Likewise.
3964         (replace_read) Likewise.
3965         (check_mem_read_rtx) Likewise.
3966         (scan_insn) Likewise.
3967         (dse_step1) Likewise.
3968         (dse_step7) Likewise.
3970 2015-06-01  Martin Liska  <mliska@suse.cz>
3972         * df-scan.c (struct df_scan_problem_data):Use new type-based
3973         pool allocator.
3974         (df_scan_free_internal) Likewise.
3975         (df_scan_alloc) Likewise.
3976         (df_grow_reg_info) Likewise.
3977         (df_free_ref) Likewise.
3978         (df_insn_create_insn_record) Likewise.
3979         (df_mw_hardreg_chain_delete) Likewise.
3980         (df_insn_info_delete) Likewise.
3981         (df_free_collection_rec) Likewise.
3982         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
3983         (df_sort_and_compress_mws) Likewise.
3984         (df_ref_create_structure) Likewise.
3985         (df_ref_record) Likewise.
3987 2015-06-01  Martin Liska  <mliska@suse.cz>
3989         * df-problems.c (df_chain_create):Use new type-based pool allocator.
3990         (df_chain_unlink_1) Likewise.
3991         (df_chain_unlink) Likewise.
3992         (df_chain_remove_problem) Likewise.
3993         (df_chain_alloc) Likewise.
3994         (df_chain_free) Likewise.
3995         * df.h (struct dataflow) Likewise.
3997 2015-06-01  Martin Liska  <mliska@suse.cz>
3999         * cselib.c (new_elt_list):Use new type-based pool allocator.
4000         (new_elt_loc_list) Likewise.
4001         (unchain_one_elt_list) Likewise.
4002         (unchain_one_elt_loc_list) Likewise.
4003         (unchain_one_value) Likewise.
4004         (new_cselib_val) Likewise.
4005         (cselib_init) Likewise.
4006         (cselib_finish) Likewise.
4008 2015-06-01  Martin Liska  <mliska@suse.cz>
4010         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
4011         (sh_reorg) Likewise.
4013 2015-06-01  Martin Liska  <mliska@suse.cz>
4015         * cfg.c (initialize_original_copy_tables):Use new type-based
4016         pool allocator.
4017         (free_original_copy_tables) Likewise.
4018         (copy_original_table_clear) Likewise.
4019         (copy_original_table_set) Likewise.
4021 2015-06-01  Martin Liska  <mliska@suse.cz>
4023         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
4024         pool allocator.
4025         (asan_mem_ref_new) Likewise.
4026         (free_mem_ref_resources) Likewise.
4028 2015-06-01  Martin Liska  <mliska@suse.cz>
4030         * var-tracking.c (variable_htab_free):Use new type-based
4031         pool allocator.
4032         (attrs_list_clear) Likewise.
4033         (attrs_list_insert) Likewise.
4034         (attrs_list_copy) Likewise.
4035         (shared_hash_unshare) Likewise.
4036         (shared_hash_destroy) Likewise.
4037         (unshare_variable) Likewise.
4038         (var_reg_delete_and_set) Likewise.
4039         (var_reg_delete) Likewise.
4040         (var_regno_delete) Likewise.
4041         (drop_overlapping_mem_locs) Likewise.
4042         (variable_union) Likewise.
4043         (insert_into_intersection) Likewise.
4044         (canonicalize_values_star) Likewise.
4045         (variable_merge_over_cur) Likewise.
4046         (dataflow_set_merge) Likewise.
4047         (remove_duplicate_values) Likewise.
4048         (variable_post_merge_new_vals) Likewise.
4049         (dataflow_set_preserve_mem_locs) Likewise.
4050         (dataflow_set_remove_mem_locs) Likewise.
4051         (variable_from_dropped) Likewise.
4052         (variable_was_changed) Likewise.
4053         (set_slot_part) Likewise.
4054         (clobber_slot_part) Likewise.
4055         (delete_slot_part) Likewise.
4056         (loc_exp_insert_dep) Likewise.
4057         (notify_dependents_of_changed_value) Likewise.
4058         (emit_notes_for_differences_1) Likewise.
4059         (vt_emit_notes) Likewise.
4060         (vt_initialize) Likewise.
4061         (vt_finalize) Likewise.
4063 2015-06-01  Martin Liska  <mliska@suse.cz>
4065         * ira-color.c (init_update_cost_records):Use new type-based
4066         pool allocator.
4067         (get_update_cost_record) Likewise.
4068         (free_update_cost_record_list) Likewise.
4069         (finish_update_cost_records) Likewise.
4070         (initiate_cost_update) Likewise.
4072 2015-06-01  Martin Liska  <mliska@suse.cz>
4074         * lra.c (init_insn_regs): Use new type-based pool allocator.
4075         (new_insn_reg) Likewise.
4076         (free_insn_reg) Likewise.
4077         (free_insn_regs) Likewise.
4078         (finish_insn_regs) Likewise.
4079         (init_insn_recog_data) Likewise.
4080         (init_reg_info) Likewise.
4081         (finish_reg_info) Likewise.
4082         (lra_free_copies) Likewise.
4083         (lra_create_copy) Likewise.
4084         (invalidate_insn_data_regno_info) Likewise.
4086 2015-06-01  Martin Liska  <mliska@suse.cz>
4088         * lra-lives.c (free_live_range): Use new type-based pool allocator.
4089         (free_live_range_list) Likewise.
4090         (create_live_range) Likewise.
4091         (copy_live_range) Likewise.
4092         (lra_merge_live_ranges) Likewise.
4093         (remove_some_program_points_and_update_live_ranges) Likewise.
4094         (lra_live_ranges_init) Likewise.
4095         (lra_live_ranges_finish) Likewise.
4097 2015-06-01  Martin Liska  <mliska@suse.cz>
4099         * et-forest.c (et_new_occ): Use new type-based pool allocator.
4100         (et_new_tree): Likewise.
4101         (et_free_tree): Likewise.
4102         (et_free_tree_force): Likewise.
4103         (et_free_pools): Likewise.
4104         (et_split): Likewise.
4106 2015-06-01  Martin Liska  <mliska@suse.cz>
4108         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
4109         to header file.
4110         * alloc-pool.h (pool_allocator::pool_allocator): New function.
4111         (pool_allocator::release): Likewise.
4112         (inline pool_allocator::release_if_empty): Likewise.
4113         (inline pool_allocator::~pool_allocator): Likewise.
4114         (pool_allocator::allocate): Likewise.
4115         (pool_allocator::remove): Likewise.
4117 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
4119         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
4120         in comment.
4122 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
4124         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
4125         to fusible_ops.
4126         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
4127         (arm_macro_fusion_p): Likewise.
4128         (arm_macro_fusion_pair_p): Likewise.
4130 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
4132         * config/aarch64/aarch64-protos.h (tune_params): Rename
4133         fuseable_ops to fusible_ops.
4134         * config/aarch64/aarch64.c (generic_tunings): Rename
4135         fuseable_ops to fusible_ops.
4136         (cortexa53_tunings): Likewise.
4137         (cortexa57_tunings): Likewise.
4138         (thunderx_tunings): Likewise.
4139         (xgene1_tunings): Likewise.
4140         (aarch64_macro_fusion_p): Likewise.
4141         (aarch64_macro_fusion_pair_p): Likewise.
4143 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4145         * config/s390/driver-native.c: New file.
4146         * config/s390/x-native: New file.
4147         * config.host: Add new files for s390.
4148         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
4149         and -march=native
4150         * config.gcc: Likewise.
4151         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
4152         * config/s390/s390-opts.h (enum processor_type): Ditto.
4153         * config/s390/s390.c (s390_option_override): Catch unhandled
4154         PROCESSOR_NATIVE
4156 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
4158         PR target/65527
4159         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
4160         redirection for instrumented calls.
4161         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
4162         (append_compiler_options): Append -fcheck-pointer-bounds.
4163         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
4164         (chkp_redirect_edge): New.
4165         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
4166         (chkp_redirect_edge): New.
4168 2015-06-01  Richard Biener  <rguenther@suse.de>
4170         PR tree-optimization/66280
4171         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
4172         def-use walking.
4174 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4176         * config/aarch64/aarch64.md
4177         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
4178         logic_shift_imm.
4180 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
4182         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
4183         Remove obsolete kludge.
4185 2015-06-01  Richard Biener  <rguenther@suse.de>
4187         * tree-ssa-reassoc.c (get_rank): Simplify.
4189 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4191         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
4192         * configure: Regenerated.
4194 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
4196         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
4197         issue (add space between string literal and macro).
4198         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
4200 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
4202         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
4203         implict or explicit -fPIE or -fpie.
4205 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
4207         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
4209 2015-05-28  DJ Delorie  <dj@redhat.com>
4211         * expmed.c (extract_bit_field_1): Avoid clobbering a
4212         yet-to-be-used base/index register.
4214 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
4216         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
4217         (alias_stats): Add num_universal.
4218         (alias_set_subset_of): Special case pointers; be ready for NULL
4219         children.
4220         (alias_sets_conflict_p): Special case pointers; be ready for NULL
4221         children.
4222         (init_alias_set_entry): Break out from ...
4223         (record_alias_subset): ... here; propagate new fields;
4224         allocate children only when really needed.
4225         (get_alias_set): Do less generous pointer globbing.
4226         (dump_alias_stats_in_alias_c): Update statistics.
4228 2015-05-30  Alan Modra  <amodra@gmail.com>
4230         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
4231         correct block for use of r12.
4232         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
4234 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4236         PR target/66215
4237         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
4238         with -mhotpatch=.
4240 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
4242         PR tree-optimization/66142
4243         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
4244         virtual phis that feed themselves.
4246 2015-05-29  Richard Biener  <rguenther@suse.de>
4248         PR tree-optimization/66314
4249         * tree-ssa-threadupdate.c (create_block_for_threading): Add
4250         parameter that says which loop the new block belongs to.
4251         (ssa_create_duplicates): Blocks duplicated for the threaded
4252         path belong to the loop of the thread destination.
4254 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4256         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
4257         to cleanup-saved-temps.
4258         * doc/sourcebuild.texi (Clean up generated test files): Expand
4259         introduction.
4260         (dg-keep-saved-temps): Document new proc.
4261         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
4262         cleanup-saved-temps): Remove.
4264 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
4266         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
4267         gcc_AC_CHECK_DECLS.
4268         * configure: Regenerate.
4270 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
4272         * config/nios2/linux.h (CPP_SPEC): Define.
4274 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
4276         * config/microblaze/linux.h (CPP_SPEC): Define.
4278 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
4280         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
4281         -pthread is specified.
4283 2015-05-28  Richard Biener  <rguenther@suse.de>
4285         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
4286         (vect_fixup_scalar_cycles_with_patterns): Likewise.
4287         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
4288         after pattern recog.
4289         (vect_create_epilog_for_reduction): Properly handle reductions
4290         with patterns.
4291         (vectorizable_reduction): Likewise.
4292         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
4293         reduction chains.
4294         (vect_get_constant_vectors): Create the correct number of
4295         initial values for reductions.
4296         (vect_schedule_slp_instance): Handle reduction chains that are
4297         type changing properly.
4298         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
4300 2015-05-28  Richard Biener  <rguenther@suse.de>
4302         PR tree-optimization/66142
4303         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
4304         values better in memcpy destination handling.  Handle non-aliasing
4305         we discover here.
4307 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
4309         PR target/63810
4310         * config/darwin-c.c (version_components): New global enum.
4311         (parse_version, version_as_legacy_macro)
4312         (version_as_modern_macro, macosx_version_as_macro): New functions.
4313         (version_as_macro): Remove.
4314         (darwin_cpp_builtins): Use new function.
4316 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
4318         * builtins.c (expand_builtin_acc_on_device): Mark parameters
4319         with ATTRIBUTE_UNUSED.
4321 2015-05-28  Julian Brown  <julian@codesourcery.com>
4323         PR libgomp/65742
4325         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
4326         sequence for !ACCEL_COMPILER.
4328 2015-05-28  Nick Clifton  <nickc@redhat.com>
4330         * config/rx/rx.c (push_regs): New function.  Extracts code from...
4331         (rx_expand_prologue): ... here.  Use push_regs to push even small
4332         spans of registers.
4333         (pop_regs): New function.
4334         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
4335         registers.
4337 2015-05-28  Richard Biener  <rguenther@suse.de>
4339         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
4340         member.
4341         (SLP_INSTANCE_BODY_COST_VEC): Remove.
4342         (vect_update_slp_costs_according_to_vf): Likewise.
4343         (vect_slp_analyze_operations): Update prototype.
4344         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
4345         vect_update_slp_costs_according_to_vf, adjust.
4346         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
4347         (vect_analyze_slp_cost_1): Likewise.
4348         (vect_analyze_slp_cost): Likewise.  Properly deal with
4349         widening reduction ops.  Commit body costs.
4350         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
4351         cost for loops from here.
4352         (vect_slp_analyze_operations): But do it from here when
4353         the vectorization factor is known and stmts are analyzed.
4354         (vect_bb_vectorization_profitable_p): Simplify.
4355         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
4356         (vect_update_slp_costs_according_to_vf): Remove.
4358 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
4359             H.J. Lu  <hongjiu.lu@intel.com>
4361         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
4362         (BUILD_CFLAGS): Likewise.
4363         (BUILD_CXXFLAGS): Likewise.
4364         (LINKER): Add @NO_PIE_FLAG@.
4365         (BUILD_LDFLAGS): Likewise.
4366         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
4367         --enable-default-pie.
4368         * common.opt (fPIE): Initialize to -1.
4369         (fpie): Likewise.
4370         (no-pie): New option.
4371         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
4372         * configure.ac: Add --enable-default-pie.
4373         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
4374         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
4375         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
4376         * gcc.c (NO_PIE_SPEC): New.
4377         (PIE_SPEC): Likewise.
4378         (NO_FPIE1_SPEC): Likewise.
4379         (FPIE1_SPEC): Likewise.
4380         (NO_FPIE2_SPEC): Likewise.
4381         (FPIE2_SPEC): Likewise.
4382         (NO_FPIE2_SPEC): Likewise.
4383         (FPIE_SPEC): Likewise.
4384         (NO_FPIE_SPEC): Likewise.
4385         (NO_FPIC1_SPEC): Likewise.
4386         (FPIC1_SPEC): Likewise.
4387         (NO_FPIC2_SPEC): Likewise.
4388         (FPIC2_SPEC): Likewise.
4389         (NO_FPIC2_SPEC): Likewise.
4390         (FPIC_SPEC): Likewise.
4391         (NO_FPIC_SPEC): Likewise.
4392         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
4393         (FPIE1_OR_FPIC1_SPEC): Likewise.
4394         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
4395         (FPIE2_OR_FPIC2_SPEC): Likewise.
4396         (NO_FPIE_AND_FPIC_SPEC): Likewise.
4397         (FPIE_OR_FPIC_SPEC): Likewise.
4398         (LD_PIE_SPEC): Likewise.
4399         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
4400         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
4401         * config/darwin.h (PIE_SPEC): Renamed to ...
4402         (DARWIN_PIE_SPEC): This.
4403         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
4404         * config/darwin9.h (PIE_SPEC): Renamed to ...
4405         (DARWIN_PIE_SPEC): This.
4406         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
4407         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
4408         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
4409         FPIE2_OR_FPIC2_SPEC.
4410         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
4411         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
4412         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
4413         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
4414         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
4415         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
4416         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
4417         * config/m32r/m32r.h (ASM_SPEC): Likewise.
4418         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
4419         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
4420         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
4421         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
4422         * config/sparc/linux.h (ASM_SPEC): Likewise.
4423         * config/sparc/linux64.h (ASM_SPEC): Likewise.
4424         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
4425         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
4426         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
4427         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
4428         * config/sparc/sparc.h (ASM_SPEC): Likewise.
4429         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
4430         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
4431         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
4432         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
4433         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
4434         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
4435         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
4436         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
4437         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
4438         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
4439         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
4440         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
4441         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
4442         * config/vax/linux.h (ASM_SPEC): Likewise.
4443         * doc/install.texi: Document --enable-default-pie.
4444         * doc/invoke.texi: Document -no-pie.
4445         * config.in: Regenerated.
4446         * configure: Likewise.
4448 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4450         PR rtl-optimization/66168
4451         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
4452         can_move_invariant_reg.
4454 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
4456         PR target/66148
4457         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
4458         REG_EQUAL note when doing insert.
4460         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
4461         instead of "%d" for 'o' operand.
4463 2015-05-27  Nathan Sidwell  <nathan@acm.org>
4465         PR c++/66270
4466         * tree.c (build_pointer_type_for_mode): Canonical type does not
4467         inherit can_alias_all.
4468         (build_reference_type_for_mode): Likewise.
4470 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
4472         * expr.h (array_at_struct_end_p): Move to...
4473         (array_ref_element_size): Likewise.
4474         (component_ref_field_offset): Likewise.
4475         * tree.h (array_ref_element_size): ...here.
4476         (array_at_struct_end_p): Likewise.
4477         (component_ref_field_offset): Likewise.
4478         * expr.c (array_ref_element_size): Move to...
4479         (array_ref_low_bound): Likewise.
4480         (array_at_struct_end_p): Likewise.
4481         (array_ref_up_bound): Likewise.
4482         (component_ref_field_offset): Likewise.
4483         * tree.c (array_ref_element_size): ...here.
4484         (array_ref_low_bound): Likewise.
4485         (array_ref_up_bound): Likewise.
4486         (array_at_struct_end_p): Likewise.
4487         (component_ref_field_offset): Likewise.
4489 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
4490             Szabolcs Nagy  <szabolcs.nagy@arm.com>
4492         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
4494 2015-05-27  Jason Merrill  <jason@redhat.com>
4496         PR bootstrap/66304
4497         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
4498         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
4499         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
4501 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
4503         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
4504         is true.
4506         * statistics.c (statistics_fini_pass): Print pass name.
4508 2015-05-27  Richard Biener  <rguenther@suse.de>
4510         PR tree-optimization/66272
4511         Revert parts of
4512         2014-08-15  Richard Biener  <rguenther@suse.de>
4514         PR tree-optimization/62031
4515         * tree-data-ref.c (dr_analyze_indices): Do not set
4516         DR_UNCONSTRAINED_BASE.
4517         (dr_may_alias_p): All indirect accesses have to go the
4518         formerly DR_UNCONSTRAINED_BASE path.
4519         * tree-data-ref.h (struct indices): Remove
4520         unconstrained_base member.
4521         (DR_UNCONSTRAINED_BASE): Remove.
4523 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
4525         * dwarf2out.c: Remove block_map.
4526         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
4527         (gen_lexical_block_die): Same.
4528         (dwarf2out_function_decl): Remove block_map use.
4529         (dwarf2out_c_finalize): Same.
4530         * tree-core.h (struct tree_block): Add die field.
4531         * tree.h (BLOCK_DIE): New.
4533 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4535         PR target/65358
4536         * expr.c (memory_load_overlap): New function.
4537         (emit_push_insn): When pushing partial args to the stack would
4538         clobber the register part load the overlapping part into a pseudo
4539         and put it into the hard reg after pushing.  Change return type
4540         to bool.  Add bool argument.
4541         * expr.h (emit_push_insn): Change return type to bool.
4542         Add bool argument.
4543         * calls.c (expand_call): Cancel sibcall optimization when encountering
4544         partial argument on targets with ARGS_GROW_DOWNWARD and
4545         !STACK_GROWS_DOWNWARD.
4546         (emit_library_call_value_1): Update callsite of emit_push_insn.
4547         (store_one_arg): Likewise.
4549 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
4551         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
4553 2015-05-27  Martin Liska  <mliska@suse.cz>
4555         * Makefile.in: Add additional dependencies related to memory report
4556         enhancement.
4557         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
4558         * bitmap.c (struct bitmap_descriptor_d): Remove.
4559         (struct loc): Likewise.
4560         (struct bitmap_desc_hasher): Likewise.
4561         (bitmap_desc_hasher::hash): Likewise.
4562         (bitmap_desc_hasher::equal): Likewise.
4563         (get_bitmap_descriptor): Likewise.
4564         (bitmap_register): User new memory descriptor API.
4565         (register_overhead): Likewise.
4566         (bitmap_find_bit): Register nsearches and search_iter statistics.
4567         (struct bitmap_output_info): Remove.
4568         (print_statistics): Likewise.
4569         (dump_bitmap_statistics): Use new memory descriptor.
4570         * bitmap.h (struct bitmap_usage): New class.
4571         * genmatch.c: Extend header file inclusion.
4572         * genpreds.c: Likewise.
4573         * ggc-common.c (struct ggc_usage): New class.
4574         (struct ggc_loc_desc_hasher): Remove.
4575         (ggc_loc_desc_hasher::hash): Likewise.
4576         (ggc_loc_desc_hasher::equal): Likewise.
4577         (struct ggc_ptr_hash_entry): Likewise.
4578         (struct ptr_hash_hasher): Likewise.
4579         (ptr_hash_hasher::hash): Likewise.
4580         (ptr_hash_hasher::equal): Likewise.
4581         (make_loc_descriptor): Likewise.
4582         (ggc_prune_ptr): Likewise.
4583         (dump_ggc_loc_statistics): Use new memory descriptor.
4584         (ggc_record_overhead): Likewise.
4585         (ggc_free_overhead): Likewise.
4586         (final_cmp_statistic): Remove.
4587         (cmp_statistic): Likewise.
4588         (ggc_add_statistics): Liekwise.
4589         (ggc_prune_overhead_list): Likewise.
4590         * hash-map-traits.h: New file.
4591         * hash-map.h (struct default_hashmap_traits): Move the traits to a
4592         separate header file.
4593         * hash-set.h: Pass memory statistics info to ctor.
4594         * hash-table.c (void dump_hash_table_loc_statistics): New function.
4595         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
4596         (hash_table::~hash_table): Register memory release operation.
4597         (hash_table::alloc_entries): Handle memory allocation operation.
4598         (hash_table::expand): Likewise.
4599         * inchash.c (iterative_hash_hashval_t): Move implementation to header
4600         file.
4601         (iterative_hash_host_wide_int): Likewise.
4602         * inchash.h (class hash): Likewise.
4603         * mem-stats-traits.h: New file.
4604         * mem-stats.h: New file.
4605         (mem_location): Add new class.
4606         (mem_usage): Likewise.
4607         (mem_alloc_description): Likewise.
4608         * sese.c: Add new header file inclusision.
4609         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
4610         and hash_set.
4611         * tree-sra.c: Add new header file inclusision.
4612         * vec.c (struct vec_descriptor): Remove.
4613         (hash_descriptor): Likewise.
4614         (struct vec_usage): Likewise.
4615         (struct ptr_hash_entry): Likewise.
4616         (hash_ptr): Likewise.
4617         (eq_ptr): Likewise.
4618         (vec_prefix::register_overhead): Use new memory descriptor API.
4619         (vec_prefix::release_overhead): Likewise.
4620         (add_statistics): Remove.
4621         (dump_vec_loc_statistics): Use new memory descriptor API.
4622         * vec.h (struct vec_prefix): Likewise.
4623         (va_heap::reserve): Likewise.
4624         (va_heap::release): Likewise.
4625         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
4627 2015-05-27  Richard Biener  <rguenther@suse.de>
4629         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
4630         earlier and remove ??? comment.
4631         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
4632         and got called from loop analysis bail out.  Always pass the SLP
4633         node to the vectorizable_* functions.
4634         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
4635         the premature SLP check here.
4636         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
4637         detected SLP stmts.
4638         (vect_detect_hybrid_slp_1): Likewise.
4640 2015-05-26  Jeff Law  <law@redhat.com>
4642         * combine.c (find_split_point): Verify that the shift count is a
4643         constant when choosing (plus (ashift ...)) as a split point.
4645         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
4646         No functional changes.
4648 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
4650         * ipa-polymorphic-call.c
4651         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
4652         case when call target is already known.
4654 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
4656         PR target/65979
4657         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
4658         take into account the case that operands[1] and operands[2]
4659         are the same register.
4661 2015-05-26  Michael Matz  <matz@suse.de>
4663         PR middle-end/66251
4665         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
4666         stores.
4667         (vect_create_vectorized_demotion_stmts): Always set
4668         STMT_VINFO_VEC_STMT, also with SLP.
4669         (vectorizable_store): Handle strided group stores.
4671 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
4673         PR target/66049
4674         * config/aarch64/aarch64.md
4675         (*adds_shift_imm_<mode>):  New pattern.
4676         (*subs_shift_imm_<mode>):  Likewise.
4677         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
4678         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
4679         (*add_uxt<mode>_shift2): Likewise.
4680         (*add_uxtsi_shift2_uxtw): Likewise.
4681         (*sub_uxt<mode>_shift2): Likewise.
4682         (*sub_uxtsi_shift2_uxtw): Likewise.
4684 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
4686         * config/rs6000/constraints.md (Y, U): Use match_test.
4688 2015-05-26  Christian Bruel  <christian.bruel@st.com>
4690         PR target/52144
4691         * config/arm/arm.c (arm_option_check_internal)
4692         (arm_option_params_internal): Check opts->target_flags to set macros.
4693         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
4694         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
4695         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
4696         (builtin_define): Replaced with def_or_undef_macro.
4697         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
4698         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
4699         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
4700         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
4701         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
4702         (TARGET_ARM_FEATURE_LDREX_P)
4703         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
4704         * config/arm/arm-c.c (def_or_undef_macro): New function.
4705         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
4707 2015-05-26  Christian Bruel  <christian.bruel@st.com>
4709         * c-common.h (builtin_define_with_int_value)
4710         (builtin_define_type_sizeof): Declare.
4711         * c-cppbuiltin.c (builtin_define_with_int_value)
4712         (builtin_define_type_sizeof): Externalize.
4713         (builtin_define_std): Cleanup declaration.
4714         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
4715         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
4716         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
4717         (builtin_define, builtin_assert): New macros.
4719 2015-05-26  Richard Biener  <rguenther@suse.de>
4721         PR tree-optimization/66142
4722         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
4723         MEM_REFs for the same base address.
4725 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4727         PR ipa/66181
4728         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
4730 2015-05-26  Jason Merrill  <jason@redhat.com>
4732         * configure.ac: Set CXXFLAGS for ISL test.
4733         * configure: Regenerate.
4735         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
4736         strstr and basename.
4737         * configure: Regenerate.
4739 2015-05-26  Richard Biener  <rguenther@suse.de>
4741         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
4742         X % C -> X & (C - 1) for C being a power-of two to ...
4743         * match.pd: ... patterns.
4745 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
4747         * match.pd (swapped_tcc_comparison): New operator list.
4748         (-A CMP -B): New simplification.
4749         * fold-const.c (fold_comparison): Remove corresponding code.
4751 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
4753         * caller-save.c (init_caller_save): Base temporary register numbers
4754         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
4755         * cfgloopanal.c (init_set_costs): Likewise.
4756         * dojump.c (prefer_and_bit_test): Likewise.
4757         * expr.c (init_expr_target): Likewise.
4758         * ira.c (setup_prohibited_mode_move_regs): Likewise.
4759         * lower-subreg.c (init_lower_subreg): Likewise.
4760         * postreload.c (reload_cse_regs_1): Likewise.
4762 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
4764         * gensupport.h (compute_test_codes): Declare.
4765         * gensupport.c (compute_predicate_codes): Rename to...
4766         (compute_test_codes): ...this.  Generalize error message.
4767         (process_define_predicate): Update accordingly.
4768         * genpreds.c (compute_maybe_allows): Delete.
4769         (add_constraint): Use compute_test_codes to determine whether
4770         something can accept a SUBREG, REG or MEM.
4772 2015-05-26  Torvald Riegel  <triegel@redhat.com>
4774         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
4775         'memory model' to align with C++11; fix description of memory orders;
4776         fix a few typos.
4778 2015-05-26  Richard Biener  <rguenther@suse.de>
4780         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
4781         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
4782         detect whether we apply SLP.  Remove call to
4783         vect_update_slp_costs_according_to_vf.
4784         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
4785         vect_update_slp_costs_according_to_vf from here.  Dispatch
4786         to vect_slp_analyze_operations to analyze SLP stmts.
4787         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
4788         unused bb_vec_info parameter, adjust assert.
4789         (vect_slp_analyze_operations): Pass in the slp instance tree
4790         instead of bb_vec_info.
4791         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
4792         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
4794 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
4796         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
4797         Q_REGS.  Expand comment.
4798         (REG_CLASS_NAMES): Ditto.
4799         (REG_CLASS_CONTENTS): Ditto.
4801 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
4803         PR target/66274
4804         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
4805         when LEGACY_INT_REGNO_P is processed.
4807 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
4809         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
4811 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
4813         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
4814         register if not marked dead/unused, before return.
4816 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
4818         PR lto/66180
4819         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
4820         is set; check for assembler name at LTO time.
4821         (type_in_anonymous_namespace): Remove hacks, check that all
4822         anonymous types are called "<anon>"
4823         (odr_type_p): Simplify; add check for "<anon>"
4824         (odr_subtypes_equivalent): Add odr_type_p check.
4825         * tree.c (need_assembler_name_p): Even anonymous namespace needs
4826         assembler name.
4828 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
4830         * ipa-utils.h (method_class_type): Remove.
4831         * cgraphunit.c (walk_polymorphic_call_targets): Use
4832         TYPE_METHOD_BASETYPE.
4833         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
4834         on main variants only.
4835         (method_class_type): Remove.
4836         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
4837         (build_type_inheritance_graph): Likewise.
4838         * ipa-icf.c (sem_function::equals_wpa): Likewise.
4839         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
4840         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
4842 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
4844         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
4845         is_typedef_decl, typedef_variant_p): Constify.
4846         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
4847         is_typedef_decl, typedef_variant_p): Constify.
4849 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4851         * defaults.h (gen_tablejump): New function.
4852         (HAVE_tablejump): Add default value.
4853         * expr.c: Adjust.
4854         * stmt.c: Likewise.
4856 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4858         * defaults.h (gen_store_multiple): New function.
4859         (HAVE_store_multiple): Add default value.
4860         * expr.c (move_block_from_reg): Adjust.
4862 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4864         * defaults.h (gen_load_multiple): New function.
4865         (HAVE_load_multiple): Add default value.
4866         * expr.c (move_block_to_reg): Adjust.
4868 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4870         * defaults.h (gen_mem_signal_fence): New function.
4871         (HAVE_mem_signal_fence): Add default value.
4872         * optabs.c: Adjust.
4874 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4876         * defaults.h (gen_memory_barrier): New function.
4877         (HAVE_memory_barrier): Add default value.
4878         * optabs.c: Adjust.
4880 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4882         * defaults.h (gen_mem_thread_fence): New function.
4883         (HAVE_mem_thread_fence): Add default definition.
4884         * optabs.c: Adjust.
4886 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4888         * combine.c (find_split_point): Check the value of HAVE_lo_sum
4889         instead of if it is defined.
4890         (combine_simplify_rtx): Likewise.
4891         * lra-constraints.c (process_address_1): Likewise.
4892         * config/darwin.c: Adjust.
4893         * genconfig.c (main): Always define HAVE_lo_sum.
4895 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4897         * genmatch.c (parser::parse_operation): Reject expanding
4898         operator-list inside 'for'.
4900 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4902         * genmatch.c (parser::parse_for): Reject iterator if used as
4903         operator-list.
4905 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4907         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
4908         after end of id-list.
4910 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
4912         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
4913         we do not try to compute canonical type for type that does not need
4914         alias set.
4915         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
4916         FUNCITON_TYPE.
4917         * tree.h (type_with_alias_set_p): New.
4919 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
4921         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
4922         function attributes.
4923         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
4925 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
4927         * Makefile.in (check_gcc_parallelize): Delete.
4928         (lang_checks_parallelized): Update comment.
4930 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
4932         PR rtl-optimization/66237
4933         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
4934         location of an "as_a" cast.
4936 2015-05-22  Jeff Law  <law@redhat.com>
4938         * config/pa/pa.md (non-canonical shift-add insns): Remove.
4939         (peepholes with non-canonical RTL sources): Remove.
4940         (peepholes for indexed stores of FP regs in integer modes): Match and
4941         generate canonical RTL.
4943 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
4945         PR tree-optimization/63387
4946         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
4947         ((x ord x) & (y ord y) -> (x ord y),
4948         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
4949         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
4950         vectors like scalars.
4952 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
4954         * convert.c (convert_to_integer, convert_to_vector): Include the
4955         types in the error message.
4957 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
4959         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
4960         simplifications.
4962 2015-05-22  Jeff Law  <law@redhat.com>
4964         * config/pa/pa.md (integer_indexed_store splitters): Use
4965         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
4966         insns -- adjusting the constant 2nd operand accordingly.
4968         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
4969         (plus (ashift X log2) Y) if it is a split point.
4971         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
4972         out of hppa_legitimize_address to handle both forms of a multiply
4973         by 2, 4 or 8.
4974         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
4975         Always generate the ASHIFT variant as the result is not directly
4976         used in a MEM.  Update comments and refactor slightly to improve
4977         readability.
4979 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4981         PR target/65491
4982         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
4983         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
4984         (aarch64_composite_type_p): Return false if given type and mode are
4985         for a short vector.
4987 2015-05-22  Richard Biener  <rguenther@suse.de>
4989         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
4990         member.
4991         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
4992         patterns when determining whether SLP is pure.
4993         (vect_is_slp_reduction): Remove check for pattern stmts.
4994         (vect_is_simple_reduction_1): Remove dead code.
4995         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
4996         (vect_get_and_check_slp_defs): Pass in the stmt number.
4997         Allow the first def in a reduction to be not a pattern stmt when
4998         the rest of the stmts def are patterns.
4999         (vect_build_slp_tree_1): Allow tcc_expression codes like
5000         SAD_EXPR and DOT_PROD_EXPR.
5001         (vect_build_slp_tree): Adjust.
5002         (vect_analyze_slp): Refactor and move BB vect error message ...
5003         (vect_slp_analyze_bb_1): ... here.
5005 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
5007         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
5008         for CSWTCH temporary.
5010 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5012         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
5013         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
5014         unknown unspecs.
5016 2015-05-22  Richard Biener  <rguenther@suse.de>
5018         PR tree-optimization/66251
5019         * tree-vect-stmts.c (vectorizable_conversion): Properly
5020         set STMT_VINFO_VEC_STMT even for the SLP case.
5022 2015-05-22  Marek Polacek  <polacek@redhat.com>
5024         * doc/extend.texi: Use @pxref instead of @xref.
5026 2015-05-22  hiraditya  <hiraditya@msn.com>
5028         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
5029         redundant if.
5031 2015-05-22  Richard Biener  <rguenther@suse.de>
5033         PR tree-optimization/65701
5034         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5035         Move peeling cost models into one place.  Peel for alignment
5036         for single loads only if an aligned load is cheaper than
5037         an unaligned load.
5039 2015-05-22  Marek Polacek  <polacek@redhat.com>
5041         PR c/47043
5042         * doc/extend.texi (Enumerator Attributes): New section.
5043         Document syntax of enumerator attributes.
5045 2015-05-22  Richard Biener  <rguenther@suse.de>
5047         * tree-vect-loop.c (get_reduction_op): New function.
5048         (vect_model_reduction_cost): Use it, add reduc_index parameter.
5049         Make ready for BB reductions.
5050         (vect_create_epilog_for_reduction): Use get_reduction_op.
5051         (vectorizable_reduction): Init reduc_index to a valid value.
5052         Adjust vect_model_reduction_cost call.
5053         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
5054         operand for reduction defaults.  Add SAD_EXPR support.
5055         Assert we have a neutral op for SLP reductions.
5056         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
5057         walking pattern stmt ops only recurse to SSA names.
5059 2015-05-22  Richard Biener  <rguenther@suse.de>
5061         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
5062         assert with guard, remove check on detected reduction.
5063         (vect_recog_sad_pattern): Likewise.
5064         (vect_recog_widen_sum_pattern): Likewise.
5066 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5068         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
5069         __always_inline__ attribute.
5070         (vaesdq_u8): Likewise.
5071         (vaesmcq_u8): Likewise.
5072         (vaesimcq_u8): Likewise.
5073         (vsha1cq_u32): Likewise.
5074         (vsha1mq_u32): Likewise.
5075         (vsha1pq_u32): Likewise.
5076         (vsha1h_u32): Likewise.
5077         (vsha1su0q_u32): Likewise.
5078         (vsha1su1q_u32): Likewise.
5079         (vsha256hq_u32): Likewise.
5080         (vsha256h2q_u32): Likewise.
5081         (vsha256su0q_u32): Likewise.
5082         (vsha256su1q_u32): Likewise.
5083         (vmull_p64): Likewise.
5084         (vmull_high_p64): Likewise.
5086 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5088         * final.c (final_scan_insn): Don't check HAVE_peephole with the
5089         preprocessor.
5090         * output.h: Likewise.
5091         * genconfig.c (main): Alwways define HAVE_peephole.
5092         * genpeep.c: Don't emit checks of HAVE_peephole.
5094 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5096         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
5097         check HAVE_conditional_move with the preprocessor.
5099 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5101         * genconfig.c (main): Always define HAVE_conditional_move.
5102         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
5103         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
5104         is defined.
5106 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5108         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
5109         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
5110         and FRAME_POINTER_REGNUM with the preprocessor.
5112 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5114         * defaults.h: Add default for STACK_PUSH_CODE.
5115         * expr.c: Don't redefine STACK_PUSH_CODE.
5116         * recog.c: Likewise.
5118 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5120         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
5121         sched-deps.c: Use if instead of preprocessor checks with
5122         STACK_GROWS_DOWNWARD.
5124 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5126         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
5127         is defined.
5128         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
5129         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
5130         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
5131         * doc/tm.texi: Regenerate.
5133 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5135         PR target/66232
5136         * config/i386/constraints.md (Bg): New constraint for GOT memory
5137         operand.
5138         * config/i386/i386.md (*call_got_x32): New pattern.
5139         (*call_value_got_x32): Likewise.
5140         * config/i386/predicates.md (GOT_memory_operand): New predicate.
5142 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
5144         PR tree-optimization/66233
5145         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
5146         Simplify.
5148 2015-05-21  Jeff Law  <law@redhat.com>
5150         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
5151         than MULT for shadd sequences.
5153 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
5155         * alias.c (alias_stats): New static var.
5156         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
5157         (dump_alias_stats_in_alias_c): New function.
5158         * alias.h (dump_alias_stats_in_alias_c): Declare.
5159         * tree-ssa-alias.c (dump_alias_stats): Call it.
5161 2015-05-08  Michael Matz  <matz@suse.de>
5163         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
5164         to strided_p.
5165         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
5166         (STMT_VINFO_STRIDED_P): ... this.
5167         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
5168         (vect_verify_datarefs_alignment): Likewise.
5169         (vect_enhance_data_refs_alignment): Likewise.
5170         (vect_analyze_data_ref_access): Likewise.
5171         (vect_analyze_data_refs): Accept strided stores.
5172         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
5173         (vect_model_load_cost): Adjust for macro rename.
5174         (vectorizable_mask_load_store): Likewise.
5175         (vectorizable_load): Likewise.
5176         (vectorizable_store): Open code strided stores.
5178 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5180         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
5181         Document sqrt_insn.
5183 2015-05-21  Richard Biener  <rguenther@suse.de>
5185         PR c++/66211
5186         * match.pd: Guard pattern optimzing (int)(float)int
5187         conversions to apply only on GIMPLE.
5189 2015-05-21  Jeff Law  <law@redhat.com>
5191         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
5192         multiply-accumulate/shift-add insn generation.
5194 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
5196         PR target/54236
5197         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
5198         operands[1] are the same.
5200 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
5202         PR middle-end/66221
5203         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
5204         build_distinct_type_copy to copy bounds.
5206 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5208         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
5209         Change to unsigned int.
5211 2015-05-20  Jeff Law  <law@redhat.com>
5213         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
5214         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
5215         (pa_shadd_constant_p): Allow constants for shadd insns rather
5216         than valid scaling constants for memory addresses.
5217         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
5218         * config/pa/predicates.md (mem_shadd_operand): New predicate.
5219         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
5220         (shift-add insns using ASHIFT): New patterns.
5222 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
5224         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
5225         feasible.
5226         (fix_up_fall_thru_edges): Likewise.
5227         (fix_crossing_conditional_branches): Likewise. Promote jump targets
5228         from to rtx_insn to rtx_code_label where feasible.
5229         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
5230         gen_move_insn (returned type changed to rtx_insn).
5231         * builtins.c (expand_errno_check): Fix arguments of
5232         do_compare_rtx_and_jump (now expects rtx_code_label).
5233         (expand_builtin_acc_on_device): Likewise.
5234         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
5235         invert_jump (now exprects rtx_jump_insn).
5236         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
5237         (construct_init_block): Use rtx_code_label.
5238         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
5239         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
5240         calling redirect_jump.
5241         (patch_jump_insn): Likewise.
5242         (redirect_branch_edge): Likewise.
5243         (force_nonfallthru_and_redirect): Likewise.
5244         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
5245         when suitable.
5246         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
5247         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
5248         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
5249         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
5250         to store the value retured by gen_label_rtx.
5251         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
5252         rtx_jump_insn.
5253         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
5254         (split_branches): Fix calls of redirect_jump.
5255         * dojump.c (jumpifnot): Promote argument type from rtx to
5256         rtx_code_label.
5257         (jumpifnot_1): Likewise.
5258         (jumpif): Likewise.
5259         (jumpif_1): Likewise.
5260         (do_jump_1): Likewise.
5261         (do_jump): Likewise. Use rtx_code_label when feasible.
5262         (do_jump_by_parts_greater_rtx): Likewise.
5263         (do_jump_by_parts_zero_rtx): Likewise.
5264         (do_jump_by_parts_equality_rtx): Likewise.
5265         (do_compare_rtx_and_jump): Likewise.
5266         * dojump.h: Update function prototypes.
5267         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
5268         returns rtx_insn).
5269         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
5270         rtx_jump_insn.
5271         (emit_label_before): Likewise.
5272         (emit_jump_insn_after_noloc): Likewise.
5273         (emit_jump_insn_after_setloc): Likewise.
5274         (emit_jump_insn_after): Likewise
5275         (emit_jump_insn_before_setloc): Likewise.
5276         (emit_jump_insn_before): Likewise.
5277         (emit_label_before): Promote return type to rtx_code_label.
5278         (emit_label): Likewise.
5279         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
5280         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
5281         gen_move_insn.
5282         (emit_stack_restore): Likewise.
5283         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
5284         (do_cmp_and_jump): Likewise.
5285         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
5286         from rtx to rtx_code_label.
5287         (gen_move_insn_uncast): New function.
5288         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
5289         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
5290         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
5291         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
5292         invert_jump_1 and redirect_jump_1.
5293         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
5294         do_compare_rtx_and_jump.
5295         (expand_addsub_overflow): Likewise.
5296         (expand_neg_overflow): Likewise.
5297         (expand_mul_overflow): Likewise.
5298         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
5299         return value of gen_move_insn.
5300         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
5301         * loop-doloop.c (add_test): Use rtx_code_label.
5302         (doloop_modify): Likewise.
5303         (doloop_optimize): Likewise.
5304         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
5305         * lra-constraints.c (emit_spill_move): Remove cast of value returned
5306         by gen_move_insn.
5307         (inherit_reload_reg): Add cast when calling dump_insn_slim.
5308         (split_reg): Likewise.
5309         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
5310         gen_move_insn.
5311         * optabs.c (expand_binop_directly): Remove casts of values returned by
5312         maybe_gen_insn.
5313         (expand_unop_direct): Likewise.
5314         (expand_abs): Likewise.
5315         (maybe_emit_unop_insn): Likewise.
5316         (maybe_gen_insn): Promote return type to rtx_insn.
5317         * optabs.h: Update prototype of maybe_gen_insn.
5318         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
5319         redundant cast.
5320         * recog.c (struct peep2_insn_data): Promote type of insn field to
5321         rtx_insn.
5322         (peep2_reinit_state): Use NULL instead of NULL_RTX.
5323         (peep2_attempt): Remove casts of insn in peep2_insn_data.
5324         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
5325         * recog.h (struct insn_gen_fn): Promote return types of function
5326         pointers and operator ().from rtx to rtx_insn.
5327         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
5328         (fill_eager_delay_slots): Likewise.
5329         (relax_delay_slots): Likewise.
5330         (make_return_insns): Likewise.
5331         (dbr_schedule): Likewise.
5332         (optimize_skips): Likewise.
5333         (reorg_redirect_jump): Likewise.
5334         (fill_slots_from_thread): Likewise.
5335         * reorg.h: Update prototypes.
5336         * resource.c (find_dead_or_set_registers): Use dyn_cast to
5337         rtx_jump_insn instead of check.  Use it's jump_target method.
5338         * rtl.h (rtx_jump_insn::jump_label): Define new method.
5339         (rtx_jump_insn::jump_target): Define new method.
5340         (rtx_jump_insn::set_jump_target): Define new method.
5341         * rtlanal.c (tablejump_p): Promote type of one local variable.
5342         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
5343         (sched_analyze_insn): Likewise.
5344         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
5345         (print_insn): Likewise.
5346         * stmt.c (label_rtx): Promote return type to rtx_insn.
5347         (force_label_rtx): Likewise.
5348         (jump_target_rtx): Define new function.
5349         (expand_label): Use it, get rid of one cast.
5350         (expand_naked_return): Promote rtx to rtx_code_label.
5351         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
5352         (expand_case): Use rtx_code_label instread of rtx where feasible.
5353         (expand_sjlj_dispatch_table): Likewise.
5354         (emit_case_nodes): Likewise.
5355         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
5356         * store-motion.c (insert_store): Make use of new return type of
5357         gen_move_insn and remove a cast.
5358         (replace_store_insn): Likewise.
5360 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
5362         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
5363         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
5365 2015-05-20  Jeff Law  <law@redhat.com>
5367         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
5368         dispose of the jump thread path when the jump threading
5369         opportunity is cancelled.
5371 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5373         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
5374         when printing the caret character.
5376 2015-05-20  Marek Polacek  <polacek@redhat.com>
5378         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
5380 2015-05-20  Marek Polacek  <polacek@redhat.com>
5382         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
5383         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
5384         * gimple-fold.c (canonicalize_bool): Likewise.
5385         (same_bool_result_p): Likewise.
5386         * tree-if-conv.c (parse_predicate): Likewise.
5388 2015-05-20  Marek Polacek  <polacek@redhat.com>
5390         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
5391         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
5393 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5395         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
5396         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
5397         values.
5399 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
5401         * config/mips/mips.h (micromips_globals): Declare.
5403 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
5405         * timevar.def (TV_INITIALIZE_RTL): New.
5406         * toplev.c (initialize_rtl): Use an auto_timevar to account this
5407         function's time to TV_INITIALIZE_RTL.
5409 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
5411         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
5412         gimple_build_nop calls.
5413         (chkp_find_bounds_for_elem): Likewise.
5414         (chkp_get_zero_bounds): Likewise.
5415         (chkp_get_none_bounds): Likewise.
5416         (chkp_get_bounds_by_definition): Likewise.
5417         (chkp_generate_extern_var_bounds): Likewise.
5418         (chkp_get_bounds_for_decl_addr): Likewise.
5419         (chkp_get_bounds_for_string_cst): Likewise.
5421 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
5423         PR tree-optimization/65447
5424         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
5425         (dump_use, dump_uses): Support to dump sub use.
5426         (record_use): New parameters to support sub use.  Remove call to
5427         dump_use.
5428         (record_sub_use, record_group_use): New functions.
5429         (compute_max_addr_offset, split_all_small_groups): New functions.
5430         (group_address_uses, rewrite_use_address): New functions.
5431         (strip_offset): New declaration.
5432         (find_interesting_uses_address): Call record_group_use.
5433         (add_candidate): New assertion.
5434         (infinite_cost_p): Move definition forward.
5435         (add_costs): Check INFTY cost and return immediately.
5436         (get_computation_cost_at): Clear setup cost and dependent bitmap
5437         for sub uses.
5438         (determine_use_iv_cost_address): Compute cost for sub uses.
5439         (rewrite_use_address_1): Rename from old rewrite_use_address.
5440         (free_loop_data): Free sub uses.
5441         (tree_ssa_iv_optimize_loop): Call group_address_uses.
5443 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
5444             Jim Wilson  <jim.wilson@linaro.org>
5446         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
5447         new  fields loadv and storev.
5448         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
5449         Initialize loadv and storev.
5450         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
5451         (cortexa53_extra_costs): Likewise.
5452         (cortexa57_extra_costs): Likewise.
5453         (xgene1_extra_costs): Likewise.
5454         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
5455         rtx_costs.
5457 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
5459         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
5460          storev.
5461         (cortexa8_extra_costs): Likewise.
5462         (cortexa5_extra_costs): Likewise.
5463         (cortexa7_extra_costs): Likewise.
5464         (cortexa12_extra_costs): Likewise.
5465         (cortexa15_extra_costs): Likewise.
5466         (v7m_extra_costs): Likewise.
5468 2015-05-20  Jeff Law  <law@redhat.com>
5470         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
5471         instead of open-coded version.  Also delete the jump thread created
5472         within this function.
5474 2015-05-20  Alan Modra  <amodra@gmail.com>
5476         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
5477         stack adjusting insn.  Formatting.
5478         (rs6000_emit_prologue): Track stack adjusting insn, and use of
5479         r12.  If possible, emit first -fsplit-stack arg pointer insn
5480         before stack adjust.  Don't use r12 to save cr if split-stack.
5482 2015-05-20  Alan Modra  <amodra@gmail.com>
5484         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
5485         Define.
5486         (rs6000_supports_split_stack): New function.
5487         * gcc/config/rs6000/rs6000.c (machine_function): Add
5488         split_stack_arg_pointer.
5489         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
5490         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
5491         rather than virtual_incoming_args_rtx.
5492         (rs6000_va_start): Likewise.
5493         (split_stack_arg_pointer_used_p): New function.
5494         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
5495         (morestack_ref): New var.
5496         (gen_add3_const, rs6000_expand_split_stack_prologue,
5497         rs6000_internal_arg_pointer, rs6000_live_on_entry,
5498         rs6000_split_stack_space_check): New functions.
5499         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
5500         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
5501         (UNSPECV_SPLIT_STACK_RETURN): Define.
5502         (split_stack_prologue, load_split_stack_limit,
5503         load_split_stack_limit_di, load_split_stack_limit_si,
5504         split_stack_return, split_stack_space_check): New expands and insns.
5505         * gcc/config/rs6000/rs6000-protos.h
5506         (rs6000_expand_split_stack_prologue): Declare.
5507         (rs6000_split_stack_space_check): Declare.
5509 2015-05-20  Alan Modra  <amodra@gmail.com>
5511         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
5512         (rs6000_stack_info): Don't zero offsets when not saving registers.
5513         (debug_stack_info): Adjust to omit printing unused offsets,
5514         as before.
5515         (direct_return): Test vrsave_size rather than vrsave_mask.
5516         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
5517         (rs6000_emit_epilogue): Likewise.
5519 2015-05-20  Alan Modra  <amodra@gmail.com>
5521         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
5522         when not saving registers.
5523         (debug_stack_info): Adjust to omit printing unused offsets,
5524         as before.
5525         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
5526         expression.
5528 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5530         PR c++/65835
5531         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
5532         value_type to const char *.
5534 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
5536         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
5537         to build a biarch toolchain again.
5539 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
5541         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
5542         or implicit declarations.
5543         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
5544         into it.
5545         (get_odr_type): Check type has linkage before adding bases.
5546         (register_odr_type): Check that type has linkage before adding it.
5547         (type_known_to_have_no_deriavations_p): Rename to ..
5548         (type_known_to_have_no_derivations_p): This one.
5549         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
5550         (type_known_to_have_no_derivations_p): This one.
5551         * ipa-polymorphic-call.c
5552         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
5553         type has linkage.
5555 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
5557         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
5558         (layout_type): Use RECORD_OR_UNION_TYPE_P.
5560 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5562         * config/s390/s390.c (s390_vector_bool_type_p): New function.
5563         (s390_invalid_binary_op): New function.
5564         (TARGET_INVALID_BINARY_OP): Define macro.
5566 2015-05-19  David Sherwood  <david.sherwood@arm.com>
5568         * loop-invariant.c (create_new_invariant): Don't calculate address cost
5569         if mode is not a scalar integer.
5570         (get_inv_cost): Increase computational cost for unused invariants.
5572 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5574         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
5575         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
5576         * config/s390/s390-builtin-types.def: New file.
5577         * config/s390/s390-builtins.def: New file.
5578         * config/s390/s390-builtins.h: New file.
5579         * config/s390/s390-c.c: New file.
5580         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
5581         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
5582         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
5583         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
5584         prototypes.
5585         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
5586         Include.
5587         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
5588         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
5589         variable definitions.
5590         (s390_const_operand_ok): New function.
5591         (s390_expand_builtin): Rewrite.
5592         (s390_init_builtins): New function.
5593         (s390_handle_vectorbool_attribute): New function.
5594         (s390_attribute_table): Add s390_vector_bool attribute.
5595         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
5596         (s390_branch_condition_mask): Generate masks for new modes.
5597         (s390_expand_vec_compare_cc): New function.
5598         (s390_mangle_type): Add mangling for vector bool types.
5599         (enum s390_builtin): Remove.
5600         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
5601         efpc builtins.
5602         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
5603         s390_cpu_cpp_builtins.
5604         (REGISTER_TARGET_PRAGMAS): New macro.
5605         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
5606         (insn_cmp mode attribute): Add new CC modes.
5607         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
5608         (lcbb): New pattern definition.
5609         * config/s390/s390intrin.h: Include vecintrin.h.
5610         * config/s390/t-s390: New file.
5611         * config/s390/vecintrin.h: New file.
5612         * config/s390/vector.md: Include vx-builtins.md.
5613         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
5614         support.
5616 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5618         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
5619         CCVFHE.
5620         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
5621         (s390_select_ccmode): Likewise.
5622         (s390_canonicalize_comparison): Swap operands if necessary.
5623         (s390_expand_vec_compare_scalar): Expand DFmode compare using
5624         single element vector instructions.
5625         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
5626         (s390_branch_condition_mask): Generate CC masks for the new modes.
5627         * config/s390/s390.md (v0, vf, vd): New mode attributes.
5628         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
5629         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
5630         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
5631         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
5632         (*extend<DSF:mode><BFP:mode>2): New insn definition.
5633         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
5634         (extend<DSF:mode><BFP:mode>2): Turn into expander.
5635         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
5636         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
5637         (sqrt<mode>2): Add vector instruction.
5639 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5641         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
5642         constraints.
5643         * config/s390/predicates.md (const0_operand, constm1_operand)
5644         (constable_operand): Accept vector operands.
5645         * config/s390/s390-modes.def: Add supported vector modes.
5646         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
5647         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
5648         (s390_bytemask_vector_p, s390_expand_vec_strlen)
5649         (s390_expand_vec_compare, s390_expand_vcond)
5650         (s390_expand_vec_init): Add prototypes.
5651         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
5652         (s390_vector_mode_supported_p): New function.
5653         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
5654         (s390_contiguous_bitmask_vector_p): New function.
5655         (s390_bytemask_vector_p): New function.
5656         (s390_split_ok_p): Vector regs don't work either.
5657         (regclass_map): Add VEC_REGS.
5658         (s390_legitimate_constant_p): Handle vector constants.
5659         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
5660         (legitimate_reload_vector_constant_p): New function.
5661         (s390_preferred_reload_class): Handle CONST_VECTOR.
5662         (s390_reload_symref_address):  Likewise.
5663         (s390_secondary_reload): Vector memory instructions only support
5664         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
5665         (s390_emit_ccraw_jump): New function.
5666         (s390_expand_vec_strlen): New function.
5667         (s390_expand_vec_compare): New function.
5668         (s390_expand_vcond): New function.
5669         (s390_expand_vec_init): New function.
5670         (s390_dwarf_frame_reg_mode): New function.
5671         (print_operand): Handle addresses with 'O' and 'R' constraints.
5672         (NR_C_MODES, constant_modes): Add vector modes.
5673         (s390_output_pool_entry): Handle vector constants.
5674         (s390_hard_regno_mode_ok): Handle vector registers.
5675         (s390_class_max_nregs): Likewise.
5676         (s390_cannot_change_mode_class): New function.
5677         (s390_invalid_arg_for_unprototyped_fn): New function.
5678         (s390_function_arg_vector): New function.
5679         (s390_function_arg_float): Remove size variable.
5680         (s390_pass_by_reference): Handle vector arguments.
5681         (s390_function_arg_advance): Likewise.
5682         (s390_function_arg): Likewise.
5683         (s390_return_in_memory): Vector values are returned in a VR if
5684         possible.
5685         (s390_function_and_libcall_value): Handle vector arguments.
5686         (s390_gimplify_va_arg): Likewise.
5687         (s390_call_saved_register_used): Consider the arguments named.
5688         (s390_conditional_register_usage): Disable v16-v31 for non-vec
5689         targets.
5690         (s390_preferred_simd_mode): New function.
5691         (s390_support_vector_misalignment): New function.
5692         (s390_vector_alignment): New function.
5693         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
5694         (TARGET_VECTOR_MODE_SUPPORTED_P)
5695         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
5696         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
5697         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
5698         (TARGET_VECTOR_ALIGNMENT): Define target macro.
5699         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
5700         (FIRST_PSEUDO_REGISTER): Increase value.
5701         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
5702         (VECTOR_REG_P): Define macros.
5703         (FIXED_REGISTERS, CALL_USED_REGISTERS)
5704         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
5705         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
5706         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
5707         Add vector registers.
5708         (CANNOT_CHANGE_MODE_CLASS): Call C function.
5709         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
5710         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
5711         memory.
5712         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
5713         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
5714         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
5715         (VR*_REGNUM): New constants.
5716         (ALL): New mode iterator.
5717         (INTALL): Remove mode iterator.
5718         Include vector.md.
5719         (movti): Implement TImode moves for VRs.
5720         Disable TImode splitter for VR targets.
5721         Implement splitting TImode GPR<->VR moves.
5722         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
5723         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
5724         reload<mode>_la_in, reload<mode>_la_out.
5725         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
5726         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
5727         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
5728         (mov<mode> SF SD): Prefer lder, lde for loading.
5729         Add lrl and strl instructions.
5730         Add vector instructions.
5731         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
5732         Call s390_expand_vec_strlen on z13.
5733         (*cc_to_int): Change predicate to nonimmediate_operand.
5734         (addti3): Rename to *addti3.  New expander.
5735         (subti3): Rename to *subti3.  New expander.
5736         * config/s390/vector.md: New file.
5738 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5740         * common/config/s390/s390-common.c (processor_flags_table): Add
5741         z13.
5742         * config.gcc: Add z13.
5743         * config/s390/s390-opts.h (enum processor_type): Add
5744         PROCESSOR_2964_Z13.
5745         * config/s390/s390.c (s390_adjust_priority): Check for
5746         PROCESSOR_2964_Z13.
5747         (s390_reorg): Likewise.
5748         (s390_sched_reorder): Likewise.
5749         (s390_sched_variable_issue): Likewise.
5750         (s390_loop_unroll_adjust): Likewise.
5751         (s390_option_override): Likewise. Default to -mvx when available.
5752         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
5753         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
5754         (TARGET_VX_ABI): Define macros.
5755         macros.
5756         (TARGET_DEFAULT): Add MASK_OPT_VX.
5757         * config/s390/s390.md ("cpu" attribute): Add z13.
5758         ("cpu_facility" attribute): Add vec.
5759         * config/s390/s390.opt (processor_type): Add z13.
5760         (mvx): New options.
5761         * doc/invoke.texi: Add z13 option for -march.
5763 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5765         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
5766         mode check to make sure that only scalar integer values are
5767         accepted.
5769 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
5771         * tree.c (verify_type_variant): Fix #undef.
5772         (gimple_canonical_types_compatible_p): Move here from lto.c
5773         (verify_type): Verify TYPE_CANONICAL compatibility.
5774         * tree.h (gimple_canonical_types_compatible_p): Declare.
5776 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
5778         PR middle-end/66199
5779         * tree.h (OMP_TEAMS_COMBINED): Define.
5780         * gimplify.c (enum gimplify_omp_var_data): Add
5781         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
5782         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
5783         (omp_notice_variable): Accept both ORT_TEAMS
5784         and ORT_COMBINED_TEAMS.  Don't recurse if
5785         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
5786         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
5787         GOVD_FIRSTPRIVATE.
5788         (omp_no_lastprivate): New function.
5789         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
5790         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
5791         notice_outer and set appropriate bits, otherwise make
5792         sure default(none) combined constructs won't complain.
5793         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
5794         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
5795         omp_no_lastprivate either remove the clause or turn it
5796         into OMP_CLAUSE_PRIVATE.
5797         (gimplify_omp_for): Fix up handling of implicit
5798         lastprivate or linear iterators.
5799         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
5800         ORT_COMBINED_TEAMS.
5801         * omp-low.c (lower_omp_for_lastprivate): For combined
5802         for simd use fd.loop.n2 from the for rather than simd.
5804 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
5806         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
5807         instead of gen_rtx_raw_REG.
5808         (cris_expand_epilogue): Likewise.
5809         * config/microblaze/microblaze.c (microblaze_classify_address):
5810         Likewise.
5811         * config/sparc/sparc.md: Likewise.
5813 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
5815         * config/alpha/alpha.c (alpha_legitimize_reload_address)
5816         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
5817         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
5818         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
5819         Use CASE_CONST_SCALAR_INT.
5820         (print_operand) <case 'M'>: Use mode_width_operand to check the
5821         value of the constant.
5822         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
5823         * config/alpha/predicates.md (input_operand): Use general_operand
5824         instead of match_code as operand check.
5825         (symbolic_operand): Use match_code with subexpression digits.
5826         * config/alpha/constraints.md (Q): Ditto.
5828 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5830         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
5832 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5834         * config/s390/s390.c (s390_secondary_reload): Fix check for
5835         load/store relative.
5837 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5839         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
5840         alternative_mask to uint64_t.
5842 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
5844         PR tree-optimization/66187
5845         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
5846         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
5847         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
5849 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
5851         * diagnostic.c (diagnostic_report_current_module): Strengthen
5852         local "new_map" from const line_map * to
5853         const line_map_ordinary *.
5854         * genmatch.c (error_cb): Likewise for local "map".
5855         (output_line_directive): Likewise for local "map".
5856         * input.c (expand_location_1): Likewise for local "map".
5857         Pass NULL rather than &map to
5858         linemap_unwind_to_first_non_reserved_loc, since the value is never
5859         read from there, and the value written back not read from here.
5860         (is_location_from_builtin_token): Strengthen local "map" from
5861         const line_map * to const line_map_ordinary *.
5862         (dump_location_info): Strengthen locals "map" from
5863         line_map *, one to const line_map_ordinary *, the other
5864         to const line_map_macro *.
5865         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
5866         const line_map * to const line_map_macro *.
5867         (maybe_unwind_expanded_macro_loc): Add a call to
5868         linemap_check_macro when writing to the "map" field of the
5869         loc_map_pair.
5870         Introduce local const line_map_ordinary * "ord_map", using it in
5871         place of "map" in the part of the function where we know we have
5872         an ordinary map.  Strengthen local "m" from const line_map * to
5873         const line_map_ordinary *.
5875 2015-05-19  Nick Clifton  <nickc@redhat.com>
5877         PR target/66156
5878         * config/msp430/msp430.md (zero_extendhisi2): Add support for
5879         separate source and destination registers.
5881 2015-05-19  Richard Biener  <rguenther@suse.de>
5883         PR tree-optimization/66165
5884         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
5885         for no load permutation.
5887         PR tree-optimization/66185
5888         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
5889         when building the SLP node from scalars.
5891 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
5892             Tristan Gingold  <gingold@adacore.com>
5894         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
5895         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
5896         (expand_stack_restore): Call record_new_stack_level.
5897         (expand_stack_save): Do not call do_pending_stack_adjust.
5898         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
5899         * calls.c (expand_call): Call record_new_stack_level for alloca.
5900         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
5901         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
5902         (update_sjlj_context): New global function.
5903         * except.h (update_sjlj_context): Declare.
5904         * explow.c (record_new_stack_level): New global function.
5905         (allocate_dynamic_stack_space): Call record_new_stack_level.
5906         * explow.h (record_new_stack_level): Declare.
5907         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
5908         * cfgrtl.c (duplicate_insn_chain): Likewise.
5910 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5912         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
5913         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
5914         STACK_GROWS_DOWNWARD as normal if.
5915         (expand_call): Likewise.
5917 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
5919         PR target/54236
5920         * config/sh/sh.md (*round_int_even): New insn_and_split and
5921         accompanying new unnamed split.
5923 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
5925         * bitmap.c (bitmap_set_range): Handle count==1 specially.
5926         (bitmap_clear_range): Likewise.
5927         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
5928         bitmap_set_range unconditionally.
5929         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
5930         * df-scan.c (df_mark_reg): Likewise.
5931         * haifa-sched.c (setup_ref_regs): Likewise.
5932         * sched-rgn.c (update_live_1): Likewise.
5934 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
5936         * regs.h (END_HARD_REGNO): Delete.
5937         (END_REGNO): Move to...
5938         * rtl.h: ...here.
5939         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
5940         * caller-save.c (mark_set_regs): Likewise.
5941         * combine.c (move_deaths, distribute_notes): Likewise.
5942         * cse.c (invalidate, invalidate_for_call): Likewise.
5943         * df-scan.c (df_ref_record): Likewise.
5944         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
5945         (record_last_reg_set_info): Likewise.
5946         * reg-stack.c (convert_regs_exit): Likewise.
5947         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
5948         * resource.c (update_live_status): Likewise.
5949         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
5951 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
5953         * rtl.h (reg_info): Add an nregs field.
5954         (REG_NREGS): Use it.
5955         (SET_REGNO_RAW): Delete.
5956         (set_regno_raw): New function.
5957         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
5958         (END_REGNO): Redefine in terms of REG_NREGS.
5959         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
5960         SET_REGNO_RAW.
5961         * emit-rtl.c (set_mode_and_regno): Likewise.
5962         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
5963         instead of SET_REGNO_RAW.
5965 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
5967         * rtl.h (PUT_MODE_RAW): New macro.
5968         (PUT_REG_NOTE_KIND): Use it.
5969         (set_mode_and_regno): Declare.
5970         (gen_raw_REG): Change regno to "unsigned int".
5971         (gen_rtx_REG): Change "unsigned" to "unsigned int".
5972         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
5973         use set_mode_and_regno to change the mode of registers.
5974         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
5975         * emit-rtl.c (set_mode_and_regno): New function.
5976         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
5977         * caller-save.c (reg_save_code): Use set_mode_and_regno.
5978         * expr.c (init_expr_target): Likewise.
5979         * ira.c (setup_prohibited_mode_move_regs): Likewise.
5980         * postreload.c (reload_cse_simplify_operands): Likewise.
5982 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
5984         * caller-save.c (init_caller_save): Use word_mode and
5985         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
5986         * expr.c (init_expr_target): Likewise.
5987         * ira.c (setup_prohibited_mode_move_regs): Likewise.
5988         * postreload.c (reload_cse_regs_1): Likewise.
5990 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
5992         * rtl.def (REG): Change format to "r".
5993         * rtl.h (rtunion): Remove rt_reg.
5994         (reg_info): New structure.
5995         (rtx_def): Add reg field to main union.
5996         (X0REGATTR): Delete.
5997         (REG_CHECK): New macro.
5998         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
5999         * rtl.c (rtx_format): Document "r".
6000         (rtx_code_size): Handle REG specially.
6001         * gengenrtl.c (special_format): Return true for formats
6002         that include 'r'.
6003         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
6004         Deal with REG_ATTRS after the field loop.
6005         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
6006         * expmed.c (init_expmed): Call gen_raw_REG instead of
6007         gen_rtx_raw_REG.
6008         * expr.c (init_expr_target): Likewise.
6009         * regcprop.c (maybe_mode_change): Likewise.
6010         * varasm.c (make_decl_rtl): Likewise.
6011         * final.c (leaf_renumber_regs_insn): Return early after
6012         handling REGs.
6013         * genemit.c (gen_exp): Handle 'r' fields.
6014         * genpeep.c (match_rtx): Likewise.
6015         * gensupport.c (subst_pattern_match): Likewise.
6016         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
6017         (alter_constraints, subst_dup): Likewise.
6018         * read-rtl.c (read_rtx_code): Likewise.
6019         * print-rtl.c (print_rtx): Likewise.
6020         * genrecog.c (find_operand, find_matching_operand): Likewise.
6021         (validate_pattern, match_pattern_2): Likewise.
6022         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
6023         (rtx_test::regno_field): New function.
6024         (operator ==, safe_to_hoist_p, transition_parameter_type)
6025         (parameter_type_string, print_parameter_value)
6026         (print_nonbool_test, print_test): Handle new enum values.
6027         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
6028         * lra-constraints.c (operands_match_p): Likewise.
6030 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6032         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
6033         Change type of new_regno to unsigned int.
6034         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
6035         new_regno to unsigned int.
6036         (df_ref_change_reg_with_loc): Remove old_regno parameter.
6037         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
6038         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
6039         (SET_REGNO_RAW): Add space after ",".
6041 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6043         * rtl.h (REG_NREGS): New macro
6044         * alias.c (record_set): Use it.
6045         * cfgcleanup.c (mark_effect): Likewise.
6046         * combine.c (likely_spilled_retval_1): Likewise.
6047         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
6048         (move_deaths, distribute_notes): Likewise.
6049         * cselib.c (cselib_record_set): Likewise.
6050         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
6051         * df-scan.c (df_mark_reg): Likewise.
6052         * dse.c (look_for_hardregs): Likewise.
6053         * dwarf2out.c (reg_loc_descriptor): Likewise.
6054         (multiple_reg_loc_descriptor): Likewise.
6055         * expr.c (write_complex_part, read_complex_part): Likewise.
6056         (emit_move_complex): Likewise.
6057         * haifa-sched.c (setup_ref_regs): Likewise.
6058         * ira-lives.c (mark_hard_reg_live): Likewise.
6059         * lra.c (lra_set_insn_recog_data): Likewise.
6060         * mode-switching.c (create_pre_exit): Likewise.
6061         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
6062         (reload_combine_recognize_pattern): Likewise.
6063         (reload_combine_note_use, move2add_record_mode): Likewise.
6064         (reload_cse_move2add): Likewise.
6065         * reg-stack.c (subst_stack_regs_pat): Likewise.
6066         * regcprop.c (kill_value, copy_value): Likewise.
6067         (copyprop_hardreg_forward_1): Likewise.
6068         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
6069         (build_def_use): Likewise.
6070         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
6071         (deps_analyze_insn): Likewise.
6072         * sched-rgn.c (check_live_1, update_live_1): Likewise.
6073         * sel-sched.c (count_occurrences_equiv): Likewise.
6074         * valtrack.c (dead_debug_insert_temp): Likewise.
6076 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6078         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
6079         * dse.c (note_add_store): Likewise.
6080         * ira-lives.c (mark_hard_reg_dead): Likewise.
6081         * loop-invariant.c (mark_reg_store): Likewise.
6082         (mark_reg_death): Likewise.
6083         * postreload.c (reload_combine): Likewise.
6084         (reload_combine_note_store): Likewise.
6085         (reload_combine_note_use): Likewise.
6086         * recog.c (peep2_reg_dead_p): Likewise.
6088 2015-05-19  Alan Modra  <amodra@gmail.com>
6090         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
6091         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
6092         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
6093         unused predicates.
6094         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
6095         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
6096         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
6097         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
6099 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
6101         * config/mips/mips.md (JOIN_MODE): New mode iterator.
6102         (join2_load_Store<JOIN_MODE:mode>): New pattern.
6103         (join2_loadhi): Likewise.
6104         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
6105         load-load and store-stores.
6106         * config/mips/mips.opt (mload-store-pairs): New option.
6107         (TARGET_LOAD_STORE_PAIRS): New macro.
6108         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
6109         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
6110         * config/mips/mips.c (mips_load_store_bonding_p): New function.
6112 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
6114         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
6115         explicit swaps.
6116         * dojump.c (do_compare_rtx_and_jump): Likewise.
6117         * expmed.c (emit_store_flag_1): Likewise.
6118         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
6119         * final.c (sprint_ul): Use std::reverse for reversing a string.
6120         * fold-const.c (extract_muldiv_1): Use std::swap.
6121         * genmodes.c (emit_mode_int_n): Likewise.
6122         * ifcvt.c (dead_or_predicable): Likewise.
6123         * ira-build.c (ira_merge_live_ranges): Likewise.
6124         (swap_allocno_copy_ends_if_necessary): Likewise.
6125         * ira.c (ira_setup_alts): Likewise.
6126         * loop-iv.c (iv_analyze_expr): Likewise.
6127         (implies_p): Likewise.
6128         (canon_condition): Likewise.
6129         * lra-constraints.c (swap_operands): Likewise.
6130         * lra-lives.c (lra_merge_live_ranges): Likewise.
6131         * omega.c (swap): Remove.
6132         (bswap): Remove.
6133         (omega_unprotect_1): Use std::swap.
6134         (omega_solve_geq): Likewise.
6135         * optabs.c (expand_binop_directly): Likewise.
6136         (expand_binop): Likewise.
6137         (emit_conditional_move): Likewise.
6138         (emit_conditional_add): Likewise.
6139         * postreload.c (reload_cse_simplify_operands): Likewise.
6140         * reg-stack.c (emit_swap_insn): Likewise.
6141         (swap_to_top): Likewise.
6142         (compare_for_stack_reg): Likewise.
6143         (subst_asm_stack_regs): Likewise.
6144         * reload.c (find_reloads): Likewise.
6145         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
6146         * sel-sched.c (invoke_reorder_hooks): Likewise.
6147         (create_block_for_bookkeeping): Likewise.
6148         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
6149         (lambda_matrix_right_hermite): Use std::swap.
6150         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
6151         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
6152         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
6153         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
6154         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
6155         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
6156         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
6157         * tree-vrp.c (compare_ranges): Likewise.
6158         * var-tracking.c (add_with_sets): Likewise.
6159         (vt_find_locations): Likewise.
6161 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
6163         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
6164         pie executables.
6165         (FBSD_ENDFILE_SPEC): Likewise.
6166         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
6167         config/freebsd-spec.h.
6168         (ENDFILE_SPEC): Likewise.
6170 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
6171             Richard Henderson  <rth@redhat.com>
6173         PR target/57032
6174         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
6175         Check for a memory location that is not a reference (using an AND)
6176         to an unaligned location here.
6177         * config/alpha/predicates.md (normal_memory_operand): Remove.
6179 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
6181         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
6182         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
6184 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
6186         * config/mips/mips.c (micromips_globals): New variable.
6187         (mips_set_compression_mode): Save and reinitialize target-dependent
6188         state for microMIPS.
6190 2015-05-18  Martin Liska  <mliska@suse.cz>
6192         * dbgcnt.def: Add new counter.
6193         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
6195 2015-05-18  Martin Liska  <mliska@suse.cz>
6197         * dbgcnt.def: Sort counters.
6198         * opts.c (common_handle_option): Do not compile if
6199         -fdbg-cnt-list is enabled.
6201 2015-05-18  Tom de Vries  <tom@codesourcery.com>
6203         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
6204         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
6205         address operator to va_list operand.
6206         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
6207         unconditionally.
6208         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
6209         operand.
6210         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
6211         * config/s390/s390.c (s390_gimplify_va_arg): Same.
6212         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
6214 2015-05-18  Tom de Vries  <tom@codesourcery.com>
6216         * tree-ssa-tail-merge.c: Fix whitespace.
6218 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
6220         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
6221         cortex-a17, and cortex-a17.cortex-a7.
6223 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
6225         PR target/54236
6226         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
6228 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
6230         PR target/66174
6231         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
6232         QImode inner modes for TARGET_AVX512BW.  Force mask operand
6233         to a register for AVX512F modes.
6235 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
6237         * toplev.c (emit_debug_global_declarations): Do not output debug info
6238         when doing slim LTO objects.
6240 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
6242         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
6243         odr_types_equivalent_p): Declare.
6244         (odr_type_p): Use gcc_checking_assert.
6245         (type_in_anonymous_namespace_p) Declare.
6246         (type_with_linkage_p): Declare.
6247         * common.opt (Wlto-type-mismatch): New warning.
6248         * ipa-devirt.c (compound_type_base): New function.
6249         (odr_or_derived_type_p): New function.
6250         (odr_types_equivalent_p): New function.
6251         (add_type_duplicate): Simplify.
6252         (type_with_linkage_p): Add hack to prevent false positives on C types
6253         (type_in_anonymous_namespace_p): Likewise.
6254         * tree.c (need_assembler_name_p): Use type_with_linkage.
6255         * tree.h (type_in_anonymous_namespace_p): Remove.
6256         * doc/invoke.texi (-Wlto-type-mismatch): Document
6258 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
6260         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
6261         (verify_type): Verify STRING_FLAG.
6263 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6265         PR fortran/44054
6266         * tree-pretty-print.c (percent_K_format): Replace locus pointer
6267         with accessor function.
6268         * tree-diagnostic.c (diagnostic_report_current_function): Use
6269         diagnostic_location function.
6270         (maybe_unwind_expanded_macro_loc): Likewise.
6271         (virt_loc_aware_diagnostic_finalizer): Likewise.
6272         (default_tree_printer): Replace locus pointer with accessor function.
6273         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
6274         (diagnostic_set_info_translated): Initialize second location.
6275         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
6276         (diagnostic_show_locus): Handle two locations. Call
6277         diagnostic_print_caret_line.
6278         (diagnostic_print_caret_line): New.
6279         (default_diagnostic_starter): Use diagnostic_location function.
6280         (diagnostic_report_diagnostic): Use diagnostic_location function.
6281         (verbatim): Do not set text.locus.
6282         * diagnostic.h (struct diagnostic_info): Remove location field.
6283         (struct diagnostic_context): Make caret_chars an array of two.
6284         (diagnostic_location): New inline.
6285         (diagnostic_expand_location): Handle two locations.
6286         (diagnostic_same_line): New inline.
6287         (diagnostic_print_caret_line): Declare.
6288         (CARET_LINE_MARGIN): New constant.
6289         * pretty-print.c (pp_printf): Do not set text.locus.
6290         (pp_verbatim): Do not set text.locus.
6291         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
6292         (struct text_info): Replace locus pointer with locations
6293         array. Add accessor functions.
6295 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
6296             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
6298         PR target/65768
6299         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
6300         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
6301          large constants in register instead of splitting them.
6303 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
6305         PR target/66140
6306         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
6307         replacements in memory addresses.
6308         (get_unaligned_address): Ditto.
6310 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
6312         * config/ft32/*: New files for FT32 port.
6313         * doc/install.texi: Add FT32 information.
6314         * doc/invoke.texi: Add FT32 information.
6315         * doc/md.texi: Add FT32 information.
6316         * doc/contrib.texi: Self added.
6318 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
6320         PR tree-optimization/64454
6321         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
6322         (-1 - A -> ~A): Remove unnecessary condition.
6324 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
6326         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
6327         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
6328         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
6330 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
6332         * ipa-chkp.h (chkp_wrap_function): New.
6333         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
6334         (chkp_wrap_function_name): New.
6335         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
6336         to get wrapper name.
6337         * lto-cgraph.c: Include ipa-chkp.h.
6338         (input_cgraph_1): Avoid alias chain for wrappers.
6340 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
6342         PR middle-end/66134
6343         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
6344         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
6346 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6348         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
6349         (AARCH64_FL_SLOWMUL): Delete.
6350         (AARCH64_FL_CRC): Redefine to 1<<3.
6351         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
6353 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6355         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
6356         casting.
6358 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
6360         * config/alpha/alpha.md (extendqidi2): Use general_operand
6361         instead of some_operand for operand[1] predicate.
6362         (extendhidi2): Ditto.
6363         (cbranchdi4): Use general_operand instead of some_operand
6364         for operand[1] and operands[2] predicates.
6365         (cstoredi4): Ditto.
6366         * config/alpha/predicates.md (some_operand): Remove unused predicate.
6367         (some_ni_operand): Ditto.
6369 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
6371         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
6372         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
6373         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
6374         low part of the constant using alpha_emit_set_const_1.
6375         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
6377 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
6379         * varasm.c (output_constant_pool_1): Pass down alignment from
6380         constant pool entry's descriptor to output_constant_pool_2.
6381         (output_object_block): Add comment prior to call to
6382         output_constant_pool_1.
6384 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
6386         PR rtl-optimization/65862
6387         * target.def (ira_change_pseudo_allocno_class): New hook.
6388         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
6389         value of the hook.
6390         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
6391         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
6392         hook.
6393         * ira-costs.c (find_costs_and_classes): Call the hook and change
6394         classes when it is necessary.
6395         * doc/tm.texi: Update.
6397 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
6399         * config/i386/i386.md (sibcall_memory): Check that register with
6400         callee address is not also used as one of the arguments, instead
6401         of checking that it is not live after the sibcall.
6402         (sibcall_pop_memory): Ditto.
6403         (sibcall_value_memory): Ditto.
6404         (sibcall_value_pop_memory): Ditto.
6406 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
6408         * generic-match-head.c (types_match): Handle non-types.
6409         * gimple-match-head.c (types_match): Likewise.
6410         * match.pd: Remove unnecessary TREE_TYPE for types_match.
6412 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
6414         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
6415         (csneg3<mode>_insn): Enable expansion of pattern.
6417 2015-05-14  Nick Clifton  <nickc@redhat.com>
6419         * config/rl78/rl78.c (rl78_select_section): Select the correct
6420         default section based upon the category of the decl.
6422 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
6424         PR rtl-optimization/30967
6425         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
6426         destination mode for the cost of scc patterns.
6428 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
6430         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
6431         using SWIM248 mode iterator.
6432         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
6433         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
6434         for operand[2] constraint.
6435         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
6437 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
6439         PR middle-end/66133
6440         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
6441         make sure it is never noreturn, even when the task body does not
6442         return.
6443         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
6444         right before GIMPLE_OMP_RETURN.
6445         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
6446         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
6447         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
6449 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6451         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
6452         * tree-ssa-math-opts.c: Include params.h
6453         (pow_synth_sqrt_info): New struct.
6454         (representable_as_half_series_p): New function.
6455         (get_fn_chain): Likewise.
6456         (print_nested_fn): Likewise.
6457         (dump_fractional_sqrt_sequence): Likewise.
6458         (dump_integer_part): Likewise.
6459         (expand_pow_as_sqrts): Likewise.
6460         (gimple_expand_builtin_pow): Use above to attempt to expand
6461         pow as series of square roots.  Removed now unused variables.
6463 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
6465         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
6466         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
6467         Remove *p0 and *p1 arguments.  Rewrite function.
6468         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
6469         (alpha_split_const_mov): Update calls to alpha_extract_integer and
6470         alpha_emit_set_long_const.
6471         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
6472         (alpha_output_mi_thunk_osf): Ditto.
6473         * config/alpha/alpha.md (movti): Do not check operands[1]
6474         for CONST_DOUBLE.
6476 2015-05-13  Richard Biener  <rguenther@suse.de>
6478         PR tree-optimization/66129
6479         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
6480         commutative.
6481         (vect_schedule_slp_instance): Fix typo.
6483 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
6485         * common.opt (fdump-internal-locations): New option.
6486         * input.c: Include diagnostic-core.h.
6487         (get_end_location): New function.
6488         (write_digit): New function.
6489         (write_digit_row): New function.
6490         (dump_location_range): New function.
6491         (dump_labelled_location_range): New function.
6492         (dump_location_info): New function.
6493         * input.h (dump_location_info): New prototype.
6494         * toplev.c (compile_file): Handle flag_dump_locations.
6496 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
6498         * gimple-expr.h (is_gimple_constant): Reorder.
6499         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
6501 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
6503         * combine.c (simplify_set): When generating a CC set, if the
6504         source already is in the correct mode, do not wrap it in a
6505         compare.  Simplify the rest of that code.
6507 2015-05-13  Richard Biener  <rguenther@suse.de>
6509         PR tree-optimization/66123
6510         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
6511         a taken edge.
6513 2015-05-13  Richard Biener  <rguenther@suse.de>
6515         PR middle-end/66110
6516         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
6517         specially.
6518         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
6520 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
6522         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
6523         * aclocal.m4: Regenerated with automake-1.11.6.
6525 2015-05-13  Tom de Vries  <tom@codesourcery.com>
6527         PR tree-optimization/66010
6528         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
6529         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
6530         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
6531         and rval based on do_deref.
6533 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
6535         PR target/65103
6536         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
6537         link time constants into adress expressions and therefore set
6538         their cost to 0.
6540 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
6542         PR target/66112
6543         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
6544         Use SWI248 iterator instead of SWI.
6545         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
6546         Use eq_attr "alternative" "0" instead of match_test in
6547         length_immediate attribute computation.
6548         (*mulvhi4, *mulvhi4_1): New define_insns.
6550         PR target/66112
6551         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
6552         SIGNED to get precision of non-negative value.
6554 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
6556         PR target/66048
6557         * function.c (diddle_return_value_1): Process bounds first.
6558         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
6559         register.
6561 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6563         PR rtl-optimization/64616
6564         * loop-invariant.c (can_move_invariant_reg): New.
6565         (move_invariant_reg): Call above new function to decide whether
6566         instruction can just be moved, skipping creation of temporary
6567         register.
6569 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
6571         PR target/pr66047.c
6572         * i386.c (ix86_function_sseregparm): Only return -1 if local function
6573         with implied regparm is called from -mno-sse function.
6574         (init_cumulative_args): Output error if ix86_function_sseregparm
6575         return -1 and SSE register would be needed.
6576         (function_arg_advance_32): Likewise.
6577         (function_arg_32): Likewise.
6578         * i386.h (ix86_args): Add decl field.
6580 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
6582         PR ipa/65873
6583         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
6584         inlines across optimization boundary.
6586 2015-05-12  Jason Merrill  <jason@redhat.com>
6588         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
6589         string literal and macro name.
6591 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
6593         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
6594         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
6595         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
6597 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
6599         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
6600         (-Wmisleading-indentation): New option.
6601         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
6603 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
6605         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
6606         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
6607         (alpha_extract_integer): Ditto.
6608         (alpha_legitimate_constant_p): Ditto.
6609         (alpha_split_tmode_pair): Ditto.
6610         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
6611         (alpha_expand_mov): Ditto.
6612         (print_operand): Remove handling of 'H' modifier.
6613         <case 'm'>: Remove CONST_DOUBLE handling.
6614         (summarize_insn): Handle CONST_WIDE_INT.
6615         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
6616         (anddi3): Ditto.
6617         (movti): Handle CONST_WIDE_INT.
6618         * config/alpha/constraints.md ('H'): Remove constraint definition.
6619         ('G'): Do not match MODE_FLOAT class.
6620         * config/alpha/predicates.md (const0_operand): Also match
6621         const_wide_int.
6622         (non_add_const_operand): Ditto.
6623         (non_zero_const_operand): Ditto.
6624         (some_operand): Ditto.
6625         (input_operand): Ditto.  Handle CONST_WIDE_INT.
6626         (and_operand): Do not match const_double.
6627         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
6629 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
6631         PR target/65697
6632         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
6633         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
6634         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
6635         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
6636         is_mm_seq_cst, is_mm_sync): New accessor functions.
6637         * builtins.c (expand_builtin_sync_operation,
6638         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
6639         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
6640         (get_memmodel,  expand_builtin_atomic_compare_exchange,
6641         expand_builtin_atomic_load, expand_builtin_atomic_store,
6642         expand_builtin_atomic_clear): Use new accessor routines.
6643         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
6644         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
6645         (maybe_emit_sync_lock_test_and_set): Use new accessors and
6646         MEMMODEL_SYNC_ACQUIRE.
6647         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
6648         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
6649         expand_atomic_store): Use new accessors.
6650         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
6651         * tsan.c (instrument_builtin_call): Update check for memory model beyond
6652         final enum to use MEMMODEL_LAST.
6653         * c-family/c-common.c: Use new accessor for memmodel_base.
6654         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
6655         accessors.
6656         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
6657         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
6658         mem_thread_fence, *dmb): Likewise.
6659         * config/alpha/alpha.c (alpha_split_compare_and_swap,
6660         alpha_split_compare_and_swap_12): Likewise.
6661         * config/arm/arm.c (arm_expand_compare_and_swap,
6662         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
6663         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
6664         atomic_loaddi): Likewise.
6665         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
6666         Likewise.
6667         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
6668         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
6669         use new accessors.
6670         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
6671         atomic_store<mode>, atomic_compare_and_swap<mode>,
6672         atomic_exchange<mode>): Use new accessors.
6673         * config/mips/mips.c (mips_process_sync_loop): Likewise.
6674         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
6675         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
6676         rs6000_post_atomic_barrier): Add new cases.
6677         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
6678         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
6679         (atomic_load<mode>): Add new cases and use new accessors.
6680         (store_quadpti): Add new cases.
6681         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
6682         accessors.
6683         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
6684         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
6685         model, not 8.
6687 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
6689         * ipa-devirt.c (type_with_linkage_p): New function.
6690         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
6691         type has linkage.
6692         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
6693         (can_be_name_hashed_p): Simplify.
6694         (hash_odr_name): Check that type has linkage before checking if it is
6695         anonymous.
6696         (types_same_for_odr): Likewise.
6697         (odr_name_hasher::equal): Likewise.
6698         (odr_subtypes_equivalent_p): Likewise.
6699         (warn_types_mismatch): Likewise.
6700         (get_odr_type): Likewise.
6701         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
6702         * ipa-utils.h (odr_type_p): Move offline.
6703         * tree.c (need_assembler_name_p): Fix handling of types
6704         without linkages.
6705         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
6707 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
6709         * timevar.c (timevar_enable): Delete in favor of...
6710         (g_timer): New global.
6711         (struct timevar_def): Move to timevar.h inside class timer.
6712         (struct timevar_stack_def): Likewise.
6713         (timevars): Delete global in favor of field "m_timevars" within
6714         class timer in timevar.h
6715         (stack): Likewise, in favor of field "m_stack".
6716         (unused_stack_instances): Likewise, in favor of field
6717         "m_unused_stack_instances".
6718         (start_time): Likewise, in favor of field "m_start_time".
6719         (get_time): Eliminate check for timevar_enable.
6720         (timer::timer): New function, built from part of timevar_init.
6721         (timevar_init): Rewrite idempotency test from using
6722         "timevar_enable" bool to using dynamic allocation of "g_timer".
6723         Move rest of implementation into timer's constructor.
6724         (timevar_push_1): Rename to...
6725         (timer::push): ...this, adding "m_" prefixes to variables that
6726         are now fields of timer.
6727         (timevar_pop_1): Likewise, rename to...
6728         (timer::pop): ...this, and add "m_" prefixes.
6729         (timevar_start): Replace test for "timevar_enable" with one for
6730         "g_timer", and move bulk of implementation to...
6731         (timer::start): ...here, adding "m_" prefixes.
6732         (timevar_stop): Likewise, from here...
6733         (timer::stop): ...to here.
6734         (timevar_cond_start): Likewise, from here...
6735         (timer::cond_start): ...to here.
6736         (timevar_cond_stop): Likewise, from here...
6737         (timer::cond_stop): ...to here.
6738         (validate_phases): Rename to...
6739         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
6740         locals "total" and "tv" const.
6741         (timevar_print): Rename to...
6742         (timer::print): ...this, and add "m_" prefixes.  Make locals
6743         "total" and "tv" const.  Eliminate test for timevar_enable.
6744         * timevar.h (timevar_enable): Eliminate.
6745         (g_timer): New declaration.
6746         (timevar_push_1): Eliminate.
6747         (timevar_pop_1): Eliminate.
6748         (timevar_print): Eliminate.
6749         (class timer): New class.
6750         (timevar_push): Rewrite to use g_timer.
6751         (timevar_pop): Likewise.
6752         * toplev.c (toplev::~toplev): Likewise.
6754 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
6756         * arm-protos.h (arm_sched_autopref): Delete.
6757         (tune_params): Re-organize, use enums for flag values.
6758         (FUSE_OPS): New macro.
6759         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
6760         (ARM_PREFETCH_BENEFICIAL): Likewise.
6761         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
6762         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
6763         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
6764         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
6765         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
6766         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
6767         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
6768         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
6769         format.
6770         (arm_option_override, thumb2_reorg, arm_print_tune_info)
6771         (aarch_macro_fusion_pair_p): Update uses of current_tune.
6772         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
6774 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
6776         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
6777         "break".
6779 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
6780             Sandra Loosemore <sandra@codesourcery.com>
6782         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
6783         value.
6784         (REG_CLASS_NAMES): Add "IJMP_REGS".
6785         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
6786         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
6787         use new "c" register constraint.
6788         * config/nios2/constraint.md (c): New register constraint
6789         corresponding to IJMP_REGS.
6791 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
6793         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
6794         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
6795         define_splits): Delete, revamp, transmogrify into ...
6796         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
6797         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
6798         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
6799         New.
6801 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
6803         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
6804         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
6806 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
6808         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
6809         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
6810         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
6811         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
6812         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
6813         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
6814         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
6815         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
6816         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
6817         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
6818         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
6819         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
6820         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
6821         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
6822         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
6823         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
6824         and 30 corresponding splitters): Delete.
6826 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
6828         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
6829         zero_extract.
6831 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
6833         * combine.c (recog_for_combine_1): New function, factored out
6834         from recog_for_combine.
6835         (change_zero_ext): New function.
6836         (recog_for_combine): If recog fails, try again with the pattern
6837         modified by change_zero_ext; if that still fails, restore the
6838         pattern.
6840 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
6842         * combine.c (get_undo_marker): New function.
6843         (undo_to_marker): New function, largely factored out from ...
6844         (undo_all): ... this.  Adjust.
6846 2015-05-12  Richard Biener  <rguenther@suse.de>
6848         PR tree-optimization/66101
6849         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
6850         fixup if we turn a loop exit edge to a fallthru edge.
6852 2015-05-12  Richard Biener  <rguenther@suse.de>
6854         PR tree-optimization/37021
6855         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
6856         (SLP_TREE_TWO_OPERATORS): New define.
6857         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
6858         SLP_TREE_TWO_OPERATORS.
6859         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
6860         SLP node.
6861         (vect_build_slp_tree): Adjust.
6862         (vect_analyze_slp_cost_1): Likewise.
6863         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
6864         emitting two vector stmts and mixing the results.
6866 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6868         * call.c (print_z_candidates): Remove dead code.
6870 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6872         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
6873         and zEC12_simple_fp.
6874         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
6875         to 1.
6877 2015-05-12  Tom de Vries  <tom@codesourcery.com>
6879         PR tree-optimization/66010
6880         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
6881         ifn_va_arg.
6882         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
6883         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
6884         va_lists are passed, and remove corresponding handling.
6885         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
6886         do_deref argument to ifn_va_arg.
6887         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
6888         ifn_va_arg.
6890 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6892         PR target/65955
6893         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
6894         REG before taking its REGNO.
6896 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6898         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
6899         rsp->sign_bit_copies and rsp->nonzero_bits into ...
6900         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
6901         present to get more accurate information about the number of sign bit
6902         copies and non zero bits.
6904 2015-05-12  Richard Biener  <rguenther@suse.de>
6906         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
6907         do not allow unrolling.
6909 2015-05-11  Richard Henderson  <rth@redhat.com>
6911         * config/i386/i386-modes.def (CCP): New.
6912         * config/i386/i386.c (put_condition_code): Handle it.
6913         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
6915 2015-05-11  Richard Henderson  <rth@redhat.com>
6917         * target.def (md_asm_clobbers): Replace with...
6918         (md_asm_adjust): this.
6919         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
6920         (TARGET_MD_ASM_ADJUST): New.
6921         * tm.texi: Rebuild.
6922         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
6923         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
6924         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
6926         * cfgexpand.c (check_operand_nalternatives): Accept vector of
6927         constraints instead of lists of outputs and inputs.
6928         (expand_asm_stmt): Save and restore input_location around the
6929         body of the function.  Move asm data into vectors instead of
6930         building tree lists.  Generate cleanup sequences as needed,
6931         rather than waiting til the end.  Use new md_asm_adjust hook.
6933         * config/vxworks.c: Include vec.h before target.h.
6934         * gimple.c: Likewise.
6935         * incpath.c: Likewise.
6936         * mode-switching.c: Likewise.
6938         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
6939         (cris_md_asm_adjust): this.
6940         (TARGET_MD_ASM_CLOBBERS): Remove.
6941         (TARGET_MD_ASM_ADJUST): New.
6942         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
6943         (ix86_md_asm_adjust): this.
6944         (TARGET_MD_ASM_CLOBBERS): Remove.
6945         (TARGET_MD_ASM_ADJUST): New.
6946         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
6947         (mn10300_md_asm_adjust): this.
6948         (TARGET_MD_ASM_CLOBBERS): Remove.
6949         (TARGET_MD_ASM_ADJUST): New.
6950         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
6951         (rs6000_md_asm_adjust): this.
6952         (TARGET_MD_ASM_CLOBBERS): Remove.
6953         (TARGET_MD_ASM_ADJUST): New.
6954         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
6955         (visium_md_asm_adjust): this.
6956         (TARGET_MD_ASM_CLOBBERS): Remove.
6957         (TARGET_MD_ASM_ADJUST): New.
6959 2015-05-11  Richard Henderson  <rth@redhat.com>
6961         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
6962         if noutputs is zero.
6963         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
6965         * cfgexpand.c (expand_asm_operands): Merge into...
6966         (expand_asm_stmt): ... here.
6968         * cfgexpand.c (expand_asm_operands): Don't call
6969         resolve_asm_operand_names.
6970         * stmt.c (resolve_asm_operand_names): Clarify block comment.
6972 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
6974         * dwarf2out.c (gen_member_die): Sanity check that we access
6975         TYPE_MAIN_VARIANT for TYPE_METHODS.
6976         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
6977         checking TYPE_METHODS.
6978         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
6979         if non-null.
6980         (build_distinct_type_copy): Clear TYPE_METHODS.
6981         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
6982         (verify_type): Allow TYPE_METHODS to be error_mark_node.
6983         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
6985 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
6987         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
6988         (emit_pattern_before_setloc): Likewise.
6990 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
6992         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
6993         for define_peephole2s.
6994         (get_peephole2_pattern): New function.
6995         (main): Use it.  Call validate_pattern.
6997 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
6999         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
7000         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
7001         (Last callee saved reg is different for AVR_TINY architecture)
7003 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
7005         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
7006         when looking for memory references.
7008 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
7010         PR target/65753
7011         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
7012         via function pointers.
7014 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
7016         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
7017         indirect call by forcing address into a pseudo with -fno-plt.
7018         * common.opt (flag_plt): New option.
7019         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
7020         ([-fno-plt]): Document.
7022 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
7024         PR bootstrap/66105
7025         * config/rs6000/option-defaults.h: Add space between string literal
7026         and macro name.
7028 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7030         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
7031         accross ARM targets.
7033 2015-05-11  Christian Bruel  <christian.bruel@st.com>
7035         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
7036         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
7038 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
7040         PR rtl-optimization/66076
7041         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
7042         Don't grow the heap array if it is already big enough from a
7043         previous iteration.
7045 2015-05-11  Christian Bruel  <christian.bruel@st.com>
7047         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
7048         (is_called_in_ARM_mode): Remove.
7049         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
7050         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
7051         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
7052          arm_declare_function_name.
7054 2015-05-11  Christian Bruel  <christian.bruel@st.com>
7056         * config/arm/arm.c (arm_option_override): Reoganized and split into :
7057         (arm_option_params_internal); New function.
7058         (arm_option_check_internal): New function.
7059         (arm_option_override_internal): New function.
7060         (thumb_code, thumb1_code): Remove.
7061         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
7062         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
7063         (thumb_code, thumb1_code): Remove.
7064         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
7066 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
7068         * config/alpha/alpha.c (alpha_emit_set_const_1)
7069         (alpha_emit_set_long_const, alpha_extract_integer)
7070         (alpha_legitimate_constant_p, alpha_split_const_mov)
7071         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
7072         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
7073         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
7074         HOST_WIDE_INT_1U.
7075         * config/alpha/predicates.md (mode_mask_operand): Do not match
7076         const_double RTX.
7077         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
7078         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
7079         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
7080         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
7081         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
7083 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
7085         PR target/65780
7086         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
7087         default_binds_local_p_2.
7088         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
7089         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
7091 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
7093         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
7095 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
7097         Patch by Richard Biener
7098         * coverage.c (coverage_obj_init): Delay building of type variant
7099         until the type is finished.
7101 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
7103         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
7104         mismatch between C and C++ type; compoare correctly ARG_TYPES
7105         for non-prototypes and output correctly parameter index for METHOD_TYPE.
7106         (odr_types_equivalent_p): Fix wording of warning about attributes;
7107         it is OK to match prototype and non-prototype.
7109 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
7111         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
7112         TYPE_ARG_TYPES list.
7113         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
7114         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
7116 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
7118         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
7119         * tree.h (is_lang_specific): Constify.
7121 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
7123         PR tree-optimization/64454
7124         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
7125         Rewrite.
7127 2015-05-08  Jason Merrill  <jason@redhat.com>
7129         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
7130         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
7131         config/darwin.h, config/darwin9.h, config/elfos.h,
7132         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
7133         config/microblaze/microblaze.h, config/mips/mips.h,
7134         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
7135         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
7136         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
7137         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
7138         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
7139         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
7140         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
7141         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
7142         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
7143         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
7144         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
7145         between string literal and macro name.
7147 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7149         * jump.c: Change argument types to rtx_insn *.
7150         * rtl.h: Adjust.
7152 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7154         * lra-constraints.c: Change argument type to rtx_insn *.
7156 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7158         * df-problems.c: Change argument type to rtx_insn *.
7160 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7162         * combine.c: Change argument type to rtx_insn *.
7164 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7166         * rtl.h: Adjust.
7167         * rtlanal.c: Change argument type to rtx_insn *.
7169 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7171         * sched-deps.c: Change argument types to rtx_insn *.
7172         * sched-int.h: Adjust.
7174 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7176         * dwarf2cfi.c: Change argument type to rtx_insn *.
7178 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7180         * ira.c (decrease_live_ranges_number): Changetype of local
7181         variable to rtx_insn *.
7182         * recog.c: Change argument types to rtx_insn *.
7183         * recog.h: Adjust.
7185 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7187         * reorg.c: Change argument types to rtx_insn *.
7189 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7191         * ira-color.c: Change argument types to rtx_insn *.
7192         * lra-eliminations.c: Likewise.
7193         * ira.h: Adjust.
7195 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7197         * gcse.c: Change argument types to rtx_insn *.
7199 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7201         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
7203 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7205         * emit-rtl.c (emit_debug_insn_before): Change argument type to
7206         rtx_insn *.
7207         * rtl.h: Adjust.
7209 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7211         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
7212         * rtl.h: Adjust.
7214 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7216         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
7217         * rtl.h: Adjust.
7219 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7221         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
7222         * rtl.h: Adjust.
7224 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7226         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
7227         * rtl.h: Adjust.
7229 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7231         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
7232         to rtx_insn *.
7233         * rtl.h: Adjust.
7235 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7237         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
7238         to rtx_insn *.
7239         * rtl.h: Likewise.
7241 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7243         * except.c (can_nonlocal_goto): Change type of argument to
7244         rtx_insn *.
7245         * rtl.h: Adjust.
7247 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7249         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
7250         * rtl.h: Adjust.
7252 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7254         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
7255         * cfgrtl.c (can_delete_label_p): Adjust.
7256         * rtl.h: likewise.
7258 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7260         * reorg.c (stop_search_p): Change argument to rtx_insn *.
7262 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7264         * except.c (make_reg_eh_region_note): Change argument to
7265         rtx_insn *.
7266         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
7267         * except.h: Adjust.
7269 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7271         * mode-switching.c (commit_mode_sets): Change type of local
7272         variable from rtx to rtx_insn *.
7274 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
7276         * doc/install.texi (--enable-languages): Add missing jit and lto info.
7277         Add ^ to grep command.
7278         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
7279         arg to last gimple_simplify declaration.  Add missing gimple_build
7280         declaration for built-in function case with four tree args.
7282 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
7283             Szabolcs Nagy  <szabolcs.nagy@arm.com>
7285         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
7286         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
7287         (GNU_USER_DYNAMIC_LINKERN32): Update.
7289 2015-05-08  Richard Biener  <rguenther@suse.de>
7291         PR tree-optimization/66036
7292         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
7293         Handle strided group loads.
7294         (vect_verify_datarefs_alignment): Likewise.
7295         (vect_enhance_data_refs_alignment): Likewise.
7296         (vect_analyze_group_access): Likewise.
7297         (vect_analyze_data_ref_access): Likewise.
7298         (vect_analyze_data_ref_accesses): Likewise.
7299         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
7300         (vectorizable_load): Likewise.
7302 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
7304         * config/rs6000/rs6000.md: Require operand inequality in one
7305         of the peepholes.
7307 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
7308             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7310         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
7311         from (set ...).
7312         * config/rx/rx.md (movdi, movdf): Likewise.
7313         Likewise for define_peephole2s.
7315 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
7317         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
7318         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
7319         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
7320         vtst_u64): Rewrite using gcc vector extensions.
7322 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
7324         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
7325         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
7327 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
7329         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
7331 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7333         * config/glibc-stdint.h (OPTION_MUSL): Define.
7334         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
7335         Change the definition based on OPTION_MUSL for 64 bit targets.
7336         * config/linux.h (OPTION_MUSL): Redefine.
7337         * config/alpha/linux.h (OPTION_MUSL): Redefine.
7338         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
7339         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
7341 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
7342             Szabolcs Nagy  <szabolcs.nagy@arm.com>
7344         * config.gcc (LIBC_MUSL): New tm_defines macro.
7345         * config/linux.h (OPTION_MUSL): Define.
7346         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
7347         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
7348         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
7349         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
7350         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
7351         * config/linux.opt (mmusl): New option.
7352         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
7353         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
7354         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
7355         * configure: Regenerate.
7357 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
7358             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7360         PR target/48904
7361         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
7362         * config/i386/knetbsd-gnu64.h: New file.
7364 2015-05-08  Marek Polacek  <polacek@redhat.com>
7366         PR c/64918
7367         * doc/invoke.texi: Document -Woverride-init-side-effects.
7369 2015-05-07  Marek Polacek  <polacek@redhat.com>
7371         PR c/65179
7372         * doc/invoke.texi: Document -Wshift-negative-value.
7374 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
7376         * gcov-tool.c (do_merge): Refactore to remove int ret.
7377         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
7378         !type == FUNC to type != FUNC.
7379         * reload.h (struct target_reload): Changee to type of
7380         x_spill_indirect_levels from bool to unsigned char.
7382 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
7384         * rtl.h (always_void_p): New function.
7385         * gengenrtl.c (always_void_p): Likewise.
7386         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
7387         with code foo are always VOIDmode.
7388         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
7389         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
7390         compare-elim.c, config/aarch64/aarch64.c,
7391         config/aarch64/aarch64.md, config/alpha/alpha.c,
7392         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
7393         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
7394         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
7395         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
7396         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
7397         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
7398         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
7399         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
7400         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
7401         config/ia64/vect.md, config/iq2000/iq2000.c,
7402         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
7403         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
7404         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
7405         config/mep/mep.c, config/microblaze/microblaze.c,
7406         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
7407         config/mn10300/mn10300.c, config/msp430/msp430.c,
7408         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
7409         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
7410         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
7411         config/rs6000/altivec.md, config/rs6000/rs6000.c,
7412         config/rs6000/rs6000.md, config/rs6000/vector.md,
7413         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
7414         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
7415         config/sh/sh.md, config/sh/sh_treg_combine.cc,
7416         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
7417         config/spu/spu.md, config/stormy16/stormy16.c,
7418         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
7419         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
7420         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
7421         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
7422         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
7423         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
7424         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
7425         var-tracking.c: Update calls accordingly.
7427 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
7429         PR middle-end/192
7430         PR middle-end/54303
7431         * varasm.c (function_mergeable_rodata_prefix): New function.
7432         (mergeable_string_section): Use it.
7433         (mergeable_constant_section): Use it.
7435 2015-05-07  Jeff Law  <law@redhat.com>
7437         PR target/39726
7438         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
7439         simplifier to narrow arithmetic.
7440         * generic-match-head.c: (types_match, single_use): New functions.
7441         * gimple-match-head.c: (types_match, single_use): New functions.
7443 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
7445         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
7446         rtx type.
7448 2015-05-07  Richard Biener  <rguenther@suse.de>
7450         PR tree-optimization/66002
7451         * passes.def: Schedule another pass_merge_phi after ifcombine, right
7452         before phiopt.
7454 2015-05-07  Marek Polacek  <polacek@redhat.com>
7455             Martin Uecker  <uecker@eecs.berkeley.edu>
7457         * doc/invoke.texi: Document -fsanitize=bounds-strict.
7458         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
7459         into SANITIZE_NONDEFAULT.
7460         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
7462 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
7464         PR target/66015
7465         * config/alpha/alpha.c (alpha_override_options_after_change): New.
7466         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
7467         (alpha_override_options): Move align_loops, align_jumps and
7468         align_functions handling into alpha_override_options_after_change.
7470 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
7471             Chris Jones  <chrisj@nvidia.com>
7472             Joshua Conner  <jconner@nvidia.com>
7474         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
7475         linking of crtfastmath.o.
7476         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
7478 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
7480         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
7481         (cstore<mode>4_unsigned_imm): New expander.
7482         (cstore<mode>4): Remove empty constraint strings.  Use the new
7483         expanders.
7485 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
7487         PR target/64208
7488         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
7489         alternatives.
7491 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7493         * config/aarch64/geniterators.sh: Use standard BRE in sed.
7495 2015-05-06  Alan Modra  <amodra@gmail.com>
7497         PR target/66033
7498         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
7499         (UNSPEC_NOP): Define.
7500         (reload_vsx_from_gpr<mode>): Add missing DONE.
7501         (reload_gpr_from_vsx<mode>): Likewise.
7502         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
7503         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
7505 2015-05-06  Christian Bruel  <christian.bruel@st.com>
7507         PR target/66015
7508         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
7509         align_jumps, align_functions into aarch64_override_options_after_change.
7511 2015-05-06  Richard Biener  <rguenther@suse.de>
7513         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
7514         vect_transform_slp_perm_load to check if we support a permutation
7515         for basic-block vectorization.
7517 2015-05-06  Nick Clifton  <nickc@redhat.com>
7519         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
7520         used, even if it is not being used as a frame pointer.
7522 2015-05-05  Jason Merrill  <jason@redhat.com>
7524         * dwarf2out.c (gen_member_die): Don't emit anything for an
7525         anonymous class constructor.
7527 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
7529         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
7530         that it reflects the block structure.
7531         (afdo_propagate_edge): Likewise.
7532         (afdo_calculate_branch_prob): Likewise.
7533         (afdo_annotate_cfg): Likewise.
7534         * cfgcleanup.c (equal_different_set_p): Likewise.
7535         (try_crossjump_to_edge): Likewise.
7536         * cgraph.c (cgraph_node::verify_node): Likewise.
7537         * cgraphunit.c (expand_all_functions): Likewise.
7538         * config/i386/i386.c (ix86_expand_copysign): Likewise.
7539         (exact_dependency_1): Likewise.
7540         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
7541         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
7542         * gensupport.c (process_define_subst): Likewise.
7543         * lto-wrapper.c (merge_and_complain): Likewise.
7544         * tree-if-conv.c (if_convertible_bb_p): Likewise.
7545         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
7546         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
7547         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
7548         * tree-vect-loop.c (vectorizable_reduction): Likewise.
7549         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
7550         * tree-vect-stmts.c (vectorizable_shift): Likewise.
7551         * tree-vrp.c (vrp_finalize): Likewise.
7552         * tree.c (variably_modified_type_p): Likewise.
7554 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
7556         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
7557         on darwin12 and later.
7558         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
7559         file to pass -rdynamic on darwin12 and later.
7560         * config/darwin.opt (rdynamic): Add.
7562 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
7564         * doc/extend.texi (C Extensions): Update menu for moved Variable
7565         Attributes and Type Attributes sections.
7567 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
7569         PR target/65990
7570         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
7571         if rep_8byte stringop strategy was specified for 32-bit target.
7573 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
7575         PR target/65915
7576         * config/i386/i386.md (vector convert to float spltiter): Check for
7577         xmm16+, when splitting scalar float conversion.
7578         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
7580 2015-05-05  Nick Clifton  <nickc@redhat.com>
7582         * config/msp430/msp430-opts.h (enum msp430_regions): New.
7583         * config/msp430/msp430.c (msp430_override_options): Complain if
7584         -mcode-region or -mdata-region is used on a non MSP430X.
7585         (msp430_section_attr): New function.  Checks lower, upper and
7586         either attributes.
7587         (msp430_attribute_table): Add lower, upper and either.
7588         (gen_prefix): New function.  Generates a prefix for a section
7589         name.
7590         (msp430_select_section): New function - handles the choice of
7591         section for an object.  Takes into account memory region
7592         attributes and options.
7593         (msp430_function_section): Use gen_prefix.
7594         (TARGET_SECTION_TYPE_FLAGS): Define.
7595         (msp430_section_type_flags): New function.
7596         (TARGET_ASM_UNIQUE_SECTION): Define.
7597         (msp430_unique_section): New function.
7598         (msp430_output_aligned_decl_common): New function.
7599         (msp430_do_not_relax_short_jumps): New function.
7600         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
7601         Define.
7602         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
7603         * config/msp430/msp430-protos.h
7604         (msp430_do_not_relax_short_jumps): New prototype.
7605         (msp430_output_aligned_decl_common): New prototype.
7606         * config/msp430/msp430.md (length): New attribute.
7607         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
7608         then use a long code sequence for short jumps.
7609         * config/msp430/msp430.opt (mcode-region): New.
7610         (mdata-region): New.
7611         * doc/invoke.texi: Document new options.
7612         * doc/extend.texi: Document new attributes.
7614 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
7616         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
7617         (tune_params): Add field branch_costs.
7618         (aarch64_branch_cost): Declare.
7619         * gcc/config/aarch64.c (generic_branch_cost): New.
7620         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
7621         (cortexa53_tunings): Likewise.
7622         (cortexa57_tunings): Likewise.
7623         (thunderx_tunings): Likewise.
7624         (xgene1_tunings): Likewise.
7625         (aarch64_branch_cost): Define.
7626         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
7628 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
7630         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
7631         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
7632         * config/i386/i386.md: Ditto.
7633         * config/i386/winnt.c: Ditto.
7635 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
7637         * doc/extend.texi (__atomic Builtins): Move implementation details
7638         to the end of the description, rewrite opening paragraphs, state
7639         difference with __sync builtins, state C11/C++11 assumptions,
7640         weaken itemized descriptions, add explanation of memory model
7641         behaviour, expand description of compare-exchange, simplify text.
7643 2015-05-05  Renlin Li  <renlin.li@arm.com>
7645         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
7647 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
7649         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
7650         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
7651         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
7652         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
7653         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
7654         * configure: Regenerate.
7655         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
7656         * doc/install.texi (aarch64*-*-*): Document new
7657         --enable-fix-cortex-a53-843419 option.
7658         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
7659         and -mno-fix-cortex-a53-843419 options.
7661 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
7663         PR target/65871
7664         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
7666 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
7668         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
7669         fix overactive TYPE_MIN_VALUE check and add FIXME for type
7670         compatibility problems.
7672 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
7674         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
7675         constraints.
7676         (cbranchsi4_reg): New.
7677         * config/microblaze/microblaze.c
7678         (microblaze_expand_conditional_branch_reg): New.
7679         * config/microblaze/microblaze-protos.h
7680         (microblaze_expand_conditional_branch_reg): New prototype.
7682 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
7684         * config/microblaze/microblaze.md (peephole2): New.
7686 2015-05-04  Jeff Law  <law@redhat.com>
7688         Revert:
7689         2015-05-04  Jeff Law  <law@redhat.com>
7691         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
7692         simplifier to narrow arithmetic.
7693         * generic-match-head.c: (types_match, single_use): New functions.
7694         * gimple-match-head.c: (types_match, single_use): New functions.
7696 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
7698         PR target/65987
7699         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
7700         (split_branches): Likewise.
7702 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
7704         * common.opt (fdelete-null-pointer-checks): Init to -1.
7705         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
7706         override flag_delete_null_pointer_checks default.
7707         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
7708         behavior re address zero.  Better document target-specific behavior.
7709         (-fisolate-errneous-paths-dereference): Mention relationship to
7710         -fdelete-null-pointer-checks.
7712 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
7714         PR tree-optimization/65984
7715         * ubsan.c: Include tree-cfg.h.
7716         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
7717         stmt_could_throw_p test, rename can_throw variable to ends_bb.
7719 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
7721         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
7722         to CONST_DOUBLE_P predicate.
7723         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
7724         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
7725         allow only operands that satisfy standard_sse_constant_p predicate.
7726         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
7727         to CONST_DOUBLE_P predicate.
7729 2015-05-04  Jeff Law  <law@redhat.com>
7731         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
7732         simplifier to narrow arithmetic.
7733         * generic-match-head.c: (types_match, single_use): New functions.
7734         * gimple-match-head.c: (types_match, single_use): New functions.
7736 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
7738         * config/arm/arm.c: Restore bootstrap.
7740 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
7742         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
7743         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
7744         as CONST_WIDE_INT, not CONST_DOUBLE.
7745         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
7746         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
7747         (ix86_find_base_term): Do not check for CONST_DOUBLE.
7748         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
7749         (ix86_build_signbit_mask): Rewrite using wide ints.
7750         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
7751         (ix86_rtx_costs): Handle CONST_WIDE_INT.
7752         (find_constant): Ditto.
7753         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
7754         using gen_int_mode.
7755         * config/i386/predicates.md (x86_64_immediate_operand)
7756         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
7757         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
7758         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
7759         (const0_operand): Also match const_wide_int.
7760         (constm1_operand): Ditto.
7761         (const1_operand): Ditto.
7763 2015-05-04  Richard Biener  <rguenther@suse.de>
7765         PR tree-optimization/65965
7766         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
7767         store groups at gaps.
7769 2015-05-04  Richard Biener  <rguenther@suse.de>
7771         PR tree-optimization/65935
7772         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
7773         then make sure to apply that swapping to the IL.
7775 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
7777         * Makefile.in (PATCHLEVEL_c): New variable.
7778         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
7779         expand the same way as if DEVPHASE_c was non-empty.
7781 2015-05-04  Kai Tietz  <ktietz@redhat.com>
7783         PR target/65559
7784         * lto-wrapper.c (run_gcc): Open filename
7785         in binary-mode.
7787 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
7789         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
7790         sections up in file, to immediately after the Function Attributes
7791         section.
7793 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
7795         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
7797 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7799         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
7800         (insert_partition_copy_on_edge): Adjust.
7801         (insert_rtx_to_part_on_edge): Likewise.
7802         (insert_part_to_rtx_on_edge): Likewise.
7804 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7806         * function.c (set_return_jump_label): Change type of argument to
7807         rtx_insn *.
7808         * function.h (set_return_jump_label): Adjust.
7810 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7812         * reload.h (struct reg_equivs_t): Change type of init to
7813         rtx_insn *.
7814         * ira.c (fix_reg_equiv_init): Adjust.
7815         * reload1.c (eliminate_regs_1): Likewise.
7816         (init_eliminable_invariants): Likewise.
7818 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7820         * cselib.c (fp_setter_insn): Take a rtx_insn *.
7821         * cselib.h (fp_setter_insn): Adjust.
7823 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7825         * recog.c (struct validate_replace_src_data): Change type of
7826         insn field to rtx_insn *.
7827         (validate_replace_src_group): Change type of argument to rtx_insn *.
7828         * recog.h (validate_replace_src_group): Adjust.
7830 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7832         * haifa-sched.c: Change the type of some variables to rtx_insn *.
7833         * sched-deps.c: Likewise.
7834         * sched-int.h: Likewise.
7835         * sched-rgn.c: Likewise.
7836         * sel-sched.c: Likewise.
7838 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7840         to rtx_insn *.
7841         * config/i386/i386.c: Change the type of some arguments to
7842         rtx_insn *.
7843         * config/arm/arm.c: Likewise.
7845 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7847         * lra-constraints.c: Change type of some arguments to rtx_insn *.
7849 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7851         * regcprop.c (kill_autoinc_value): Change type of argument to
7852         rtx_insn *.
7854 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7856         * genrecog.c (print_subroutine): Adjust.
7857         * recog.c (get_bool_attr_mask_uncached): Likewise.
7858         * recog.h (struct recog_data_d): Change the type of insn to
7859         rtx_insn *.
7861 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7863         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
7865 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7867         * df-problems.c (df_set_note): Change type of argument to
7868         rtx_insn *.
7870 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7872         * builtins.c (expand_builtin_trap): Change type of local
7873         variable to rtx_insn *.
7874         (add_sched_insns_for_speculation): Likewise.
7875         (ix86_emit_save_regs): Likewise.
7876         (get_scratch_register_on_entry): Likewise.
7877         (ix86_emit_restore_reg_using_pop): Likewise.
7878         (ix86_emit_leave): Likewise.
7879         (ix86_emit_restore_regs_using_mov): Likewise.
7880         (ix86_expand_epilogue): Likewise.
7881         Likewise.
7882         (rl78_alloc_physical_registers_umul): Likewise.
7883         * cselib.c (discard_useless_locs): Likewise.
7884         (cselib_invalidate_regno): Likewise.
7885         (cselib_invalidate_mem): Likewise.
7886         * function.c (expand_function_start): Likewise.
7887         (emit_use_return_register_into_block): Likewise.
7888         * gcse.c: Likewise.
7889         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
7890         * ifcvt.c (noce_get_alt_condition): Likewise.
7891         * loop-doloop.c (doloop_condition_get): Likewise.
7892         * lra-constraints.c (inherit_in_ebb): Likewise.
7893         * modulo-sched.c (sms_schedule_by_order): Likewise.
7894         * recog.c (next_insn_tests_no_inequality): Likewise.
7895         * reorg.c (emit_delay_sequence): Likewise.
7896         (update_reg_dead_notes): Likewise.
7897         (fix_reg_dead_note): Likewise.
7898         (fill_slots_from_thread): Likewise.
7899         (delete_computation): Likewise.
7901 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
7903         * doc/extend.texi (Variable Attributes): Add menu and proper
7904         @nodes to subsections.  Move Microsoft Windows attributes to
7905         their own subsection.
7906         (Type Attributes): Reorganize introduction to remove duplicate
7907         list of attributes.  Add menu and proper @nodes to subsections.
7908         Alphabetize the main table of common attributes.
7910 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
7912         * match.pd: New simplification patterns.
7913         (x + (x & 1))  -> ((x + 1) & ~1)
7914         (x & ~(x & y)) -> ((x & ~y))
7915         (x | ~(x | y)) -> ((x | ~y))
7917 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7919         * target.def (attribute_table): Mention that struct attribute_spec
7920         is defined in tree-core.h rather than tree.h
7921         * doc/tm.texi: Regenerate.
7923 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
7925         * genrecog.c (test): Rename to rtx_test.  Update rest of file
7926         accordingly.
7928 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7930         PR translation/65959
7931         * params.h (DEFPARAM): Rename msgid to nocmsgid.
7933 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
7935         * gcc/config/aarch64/aarch64-protos.h (tune_params):
7936         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
7937         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
7938         Return value depending on target.
7939         (generic_tunings): Initialize new target settings.
7940         (cortexa53_tunings): Likewise.
7941         (cortexa57_tunings): Likewise.
7942         (thunderx_tunings): Likewise.
7943         (xgene1_tunings): Likewise.
7945 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
7947         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
7948         Make Cortex-A53 shift costs more accurate.
7950 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7952         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
7953         UNSIGNED_FLOAT.
7955 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
7957         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
7958         Calculate cost of op0 and op1 in PLUS and MINUS cases.
7960 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7962         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
7963         Add cost of op0 in the compare-with-fpzero case.
7965 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
7967         * builtins.c (fold_builtin_1): Remove spurious second
7968         semicolon.
7969         * cgraph.h (symtab_node::get_availability): Likewise.
7970         * opts.c (common_handle_option): Remove spurious second semicolon.
7971         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
7972         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
7974 2015-04-30  Caroline Tice  <cmtice@google.com>
7976         PR gcov-profile/65929
7977         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
7978         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
7979         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
7980         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
7981         * doc/tm.texi: Regenerate.
7982         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
7983         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
7984         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
7985         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
7987 2015-04-30  Marek Polacek  <polacek@redhat.com>
7989         * varasm.c (handle_cache_entry): Fix logic.
7991 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7993         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
7994         (*extrsi5_insn_uxtw_alt): Likewise.
7995         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
7996         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
7997         operations.
7999 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8001         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
8002         fabd in ABS case.
8004 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8006         * config/aarch64/aarch64.md
8007         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
8008         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
8009         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
8010         appropriately.  Handle alternative EON form.
8012 2015-04-30  Renlin Li  <renlin.li@arm.com>
8014         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
8015         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
8017 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
8019         PR ipa/65873
8020         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
8021         -fstrict-aliasing boundaries.
8023 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8025         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
8026         and [SU]MNEGL patterns.
8028 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8030         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
8031         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
8032         combined arithmetic-shift ops.  Properly handle all shift and extend
8033         operations that can occur in combination with PLUS/MINUS.
8034         Rename maybe_fma to compound_p.
8035         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
8036         arithmetic and shift operations.
8038 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8040         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
8041         rather than arith_shift cost when costing ADD/MINUS of an
8042         extended value.
8044 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
8046         PR lto/65948
8047         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
8048         to itself.
8050 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
8052         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
8053         are for the same position.
8055 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
8057         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
8058         vectorize_loops.
8059         (vectorize_loops): Use it.
8061 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
8063         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
8064         for aggregate types.
8065         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
8066         type to be non_ODR.
8067         * tree.c (need_assembler_name_p): Compute mangled name for
8068         non-fundamental types and integer types.
8070 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
8072         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
8073         manual swaps.
8074         * expr.c (expand_expr_real_2): Likewise.
8076 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
8078         * tree.c (build_common_builtin_nodes): Do not build
8079         __builtin_alloca_with_align as equivalent of library alloca.
8081 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
8083         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
8084         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
8085         bugus variants.
8086         * tree.c: Include print-tree.h and ipa-utils.h
8087         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
8088         (free_lang_data_in_cgraph): Call verify_type.
8089         (verify_type_variant): New function.
8090         (verify_type): New function.
8091         * tree.h (verify_type): Declare.
8093 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
8095         * config/mips/mips-cpus.def: (mips4): Change default processor
8096         from PROCESSOR_R8000 to PROCESSOR_R10000.
8098 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
8100         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
8101         la/jalr instead of jal.
8103 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
8105         PR target/65871
8106         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
8107         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
8108         (setcc+movzbl peephole2): Check also clobbered reg.
8109         (setcc+andl peephole2): Ditto.
8111 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
8113         PR libgomp/65099
8114         * config/nvptx/mkoffload.c (target_ilp32): New variable.
8115         (main): Set it depending on "-foffload-abi=[...]".
8116         (compile_native, main): Use it to pass "-m32" or "-m64" to the
8117         compiler.
8119 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
8121         PR target/65770
8122         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
8123         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
8124         Flip lane index back at assembly time for bigendian.
8126 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
8128         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
8129         * gimplify.c (gimplify_omp_workshare): Use it.
8131 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
8133         * Makefile.in (build/genrecog.o): Depend on inchash.h.
8134         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
8135         build/inchash.o
8136         * genrecog.c: Rewrite most of the code except for the third page.
8138 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
8140         * inchash.h, inchash.c: Include bconfig.h for build objects.
8141         * Makefile.in (build/inchash.o): New rule.
8143 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
8145         PR target/65924
8146         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
8147         number in type attribute expression.
8149 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
8151         * loop-iv.c (canon_condition): Generalize to all types of integer
8152         constant.
8154 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
8156         * gimple-walk.c: Prune duplicate or unneeded includes.
8157         (walk_gimple_asm): Only call parse_input_constraint or
8158         parse_output_constraint if their findings are used.
8159         Honour parse_input_constraint and parse_output_constraint
8160         result.
8162 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
8164         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
8166 2015-04-29  Tom de Vries  <tom@codesourcery.com>
8168         PR tree-optimization/65893
8169         * passes.def (pass_all_optimizations): Move pass_stdarg to after
8170         pass_dce.
8172 2015-04-29  Richard Biener  <rguenther@suse.de>
8174         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
8175         compute GROUP_SIZE for basic-block SLP.
8176         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
8177         take into account gaps.
8178         (vect_get_mask_element): Properly reject references to previous
8179         vectors.
8180         (vect_transform_slp_perm_load): Likewise.
8182 2015-04-29  Christian Bruel  <christian.bruel@st.com>
8184         PR target/64835
8185         * config/i386/i386.c (ix86_default_align): New function.
8186         (ix86_override_options_after_change): Call ix86_default_align.
8187         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
8188         (ix86_override_options_after_change): New function.
8190 2015-04-28  Jeff Law  <law@redhat.com>
8192         * tree-ssa-dom.c (record_equality); Fix comment typos.
8194 2015-04-28  Tom de Vries  <tom@codesourcery.com>
8196         PR tree-optimization/65887
8197         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
8199 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
8201         * doc/extend.texi (Declaring Attributes of Functions): Split into
8202         subsections by target.  Alphabetize the table of common attributes.
8203         Rewrite some of the introductory text to reflect the new structure.
8204         Update some cross-references to point to the new subsections.
8205         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
8206         duplicate copies in the discussion of function, label, and type
8207         attributes.
8209 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
8211         PR bootstrap/65910
8212         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
8214 2015-04-28  Jason Merrill  <jason@redhat.com>
8216         PR c++/65734
8217         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
8218         (finalize_type_size): Respect TYPE_USER_ALIGN.
8219         (layout_type) [ARRAY_TYPE]: Likewise.
8221 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
8223         * config/arm/arm.md (*arm_movt): Fix type attribute.
8224         (*cmpsi_shiftsi): Likewise.
8225         (*cmpsi_shiftsi_swp): Likewise.
8226         (*movsicc_insn): Likewise.
8227         (*cond_move): Likewise.
8228         (*if_plus_move): Likewise.
8229         (*if_move_plus): Likewise.
8230         (*if_arith_move): Likewise.
8231         (*if_move_arith): Likewise.
8232         (*if_shift_move): Likewise.
8233         (*if_move_shift): Likewise.
8234         (*arm_movtas_ze): Likewise.
8235         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
8236         redundancy and type attribute.
8237         (*thumb2_movsi_insn): Fix type attribute.
8238         (*thumb2_addsi_short): Likewise.
8239         (thumb2_addsi3_compare0): Likewise.
8240         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
8241         attributes accordingly.
8243 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
8245         PR other/65911
8246         * function.c (pad_to_arg_alignment): Add parentheses.
8248 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
8250         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
8251         libgcc/config/frv/elf-lib.h.
8253 2015-04-28  Tom de Vries  <tom@codesourcery.com>
8255         * tree-call-cdce.c: Fix example in header comment.
8257 2015-04-28  Richard Biener  <rguenther@suse.de>
8259         PR tree-optimization/62283
8260         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
8261         fails fatally and we are vectorizing a basic-block simply
8262         cause the child to be constructed piecewise.
8263         (vect_analyze_slp_cost_1): Adjust.
8264         (vect_detect_hybrid_slp_stmts): Likewise.
8265         (vect_bb_slp_scalar_cost): Likewise.
8266         (vect_get_constant_vectors): For piecewise constructed
8267         constants place them after the last def.
8268         (vect_get_slp_defs): Adjust.
8269         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
8270         externals for basic-block vectorization.
8272 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8274         PR target/63503
8275         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
8276         aarch64-*-*.
8277         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
8278         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
8279         (AARCH64_TUNE_FMA_STEERING): Likewise.
8280         * config/aarch64/aarch64-cores.def: Set
8281         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
8282         FMUL/FMADD instructions.
8283         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
8284         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
8285         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
8286         * config/aarch64/cortex-a57-fma-steering.h: New file.
8287         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8289 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
8291         * gensupport.c (std_preds): Add missing codes to address_operand entry.
8293 2015-04-28  Richard Biener  <rguenther@suse.de>
8295         PR tree-optimization/65851
8296         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
8297         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
8298         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
8299         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
8300         (ccp_visit_phi_node): Adjust.
8301         (evaluate_stmt): For simplifications to SSA names return its
8302         lattice value if that isn't VARYING.  Return immediately when
8303         simplified to a constant.
8304         (visit_assignment): Adjust.
8305         (ccp_visit_stmt): Likewise.
8307 2015-04-28  Tom de Vries  <tom@codesourcery.com>
8309         PR tree-optimization/65818
8310         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
8311         evaluated.
8313 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8315         * calls.c (save_fixed_argument_area): Don't check
8316         ARGS_GROW_DOWNWARD with the preprocessor.
8317         (restore_fixed_argument_area): Likewise.
8318         (mem_overlaps_already_clobbered_arg_p): Likewise.
8319         (check_sibcall_argument_overlap): Likewise.
8320         (expand_call): Likewise.
8321         (emit_library_call_value_1): Likewise.
8322         (store_one_arg): Likewise.
8323         * function.c (assign_parms): Likewise.
8324         (locate_and_pad_parm): Likewise.
8325         (pad_to_arg_alignment): Likewise.
8326         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
8328 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8330         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
8331         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
8332         * calls.c (save_fixed_argument_area): Don't chekc if
8333         ARGS_GROW_DOWNWARD is defined.
8334         (restore_fixed_argument_area): Likewise.
8335         (mem_overlaps_already_clobbered_arg_p): Likewise.
8336         (check_sibcall_argument_overlap): Likewise.
8337         (expand_call): Likewise.
8338         (emit_library_call_value_1): Likewise.
8339         (store_one_arg): Likewise.
8340         * function.c (assign_parms): Likewise.
8341         (locate_and_pad_parm): Likewise.
8342         (pad_to_arg_alignment): Likewise.
8343         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
8345 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8347         * defaults.h (gen_epilogue): New function.
8348         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
8349         defined.
8350         * cfgrtl.c (cfg_layout_finalize): Likewise.
8351         * df-scan.c: Likewise.
8352         * function.c (thread_prologue_and_epilogue_insns): Likewise.
8353         (reposition_prologue_and_epilogue_notes): Likewise.
8354         * reorg.c (find_end_label): Likewise.
8355         * toplev.c: Likewise.
8357 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8359         * bb-reorder.c (HAVE_return): Don't check if its undefined.
8360         * defaults.h (gen_simple_return): New function.
8361         (gen_simple_return): Likewise.
8362         (HAVE_return): Add default definition to false.
8363         (HAVE_simple_return): Likewise.
8364         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
8365         HAVE_return and HAVE_simple_return are defined.
8366         * function.c (gen_return_pattern): Likewise.
8367         (convert_jumps_to_returns): Likewise.
8368         (thread_prologue_and_epilogue_insns): Likewise.
8369         * reorg.c (find_end_label): Likewise.
8370         (dbr_schedule): Likewise.
8371         * shrink-wrap.c: Likewise.
8372         * shrink-wrap.h: Likewise.
8374 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8376         * defaults.h (EPILOGUE_USES): Add default definition of false.
8377         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
8378         * resource.c (init_resource_info): Likewise.
8380 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8382         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
8383         to false.
8384         * dwarf2out.c (field_byte_offset): REmove check if
8385         PCC_BITFIELD_TYPE_MATTERS is defined.
8386         * stor-layout.c (layout_decl): Likewise.
8387         (update_alignment_for_field): Likewise.
8388         (place_field): Likewise.
8390 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8392         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
8393         true.
8394         * regrename.c (check_new_reg_p): Remove check if
8395         HARD_REGNO_RENAME_OK is defined.
8396         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
8398 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8400         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
8401         * cse.c (fold_rtx): Likewise.
8402         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
8403         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
8404         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
8405         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
8406         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
8407         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
8408         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
8409         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
8410         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
8411         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
8412         * Likewise.
8413         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
8414         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
8415         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
8416         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
8417         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
8418         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
8419         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
8420         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
8421         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
8422         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
8423         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
8424         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
8425         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
8426         * doc/tm.texi: Regenerate.
8427         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
8428         either true or false.
8430 2015-04-27  Jeff Law  <law@redhat.com>
8432         PR tree-optimization/65217
8433         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
8434         of them has a single use, make sure it is the LHS of the implied
8435         copy.
8437 2015-04-28  Alan Modra  <amodra@gmail.com>
8439         PR target/65810
8440         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
8441         (offsettable_ok_by_alignment): Use minimum of decl and toc
8442         pointer alignment.  Replace dead code with assertion.
8443         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
8444         case if size exceeds toc pointer alignment.
8445         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
8446         (rs6000_emit_move): Likewise.
8447         * configure.ac: Add linker toc pointer alignment check.
8448         * configure: Regenerate.
8449         * config.in: Regenerate.
8451 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
8453         * config.gcc: Add h8300-*-linux.
8454         * config/h8300/linux.h: New.
8455         * config/h8300/t-linux: New.
8456         * config/h8300/h8300.c (h8300_option_override): Normal mode
8457         is not supported for h8300-*-linux.
8458         (h8300_file_start): Target priority change.
8459         (get_shift_alg): Likewise.
8460         (h8300_shift_need_scratch_p): Likewise.
8461         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
8462         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
8464 2015-04-27  Caroline Tice  <cmtice@google.com>
8466         * final.c (final_scan_insn):  Output cold_function_name as function
8467         type.
8468         * varasm.c (cold_function_name):  Make global.
8469         (assemble_start_function):  Re-set cold_function_name.
8470         (assemble_end_function): Output cold partition size.
8471         * varasm.h (cold_function_name):  Declare global.
8473 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
8475         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
8476         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
8477         constraint.
8478         (*movxi_internal_avx512f): Ditto.
8479         (define_split): Check for xmm16+, when splitting scalar float_extend.
8480         (*extendsfdf2_mixed): Use "v" constraint.
8481         (define_split): Check for xmm16+, when splitting scalar float_truncate.
8482         (*truncdfsf_fast_sse): Use "v" constraint.
8483         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
8484         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
8485         (define_peephole2): Check for xmm16+, when converting scalar
8486         float_truncate.
8487         (define_peephole2): Check for xmm16+, when converting scalar
8488         float_extend.
8489         (*fop_<mode>_comm_mixed): Use "v" constraint.
8490         (*fop_<mode>_comm_sse): Ditto.
8491         (*fop_<mode>_1_mixed): Ditto.
8492         (*sqrt<mode>2_sse): Ditto.
8493         (*ieee_s<ieee_maxmin><mode>3): Ditto.
8495 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8497         * combine.c (simplify_if_then_else): Use std::swap instead
8498         of manually swapping.
8499         (known_cond): Likewise.
8500         (simplify_comparison): Likewise.
8502 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
8504         PR target/64579
8505         * config/rs6000/htm.md: Remove all define_expands.
8506         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
8507         UNSPECV_HTM_TABORTWCI): Remove.
8508         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
8509         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
8510         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
8511         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
8512         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
8513         tabortwci_internal): Remove define_insns.
8514         (tabort<wd>c, tabort<wd>ci): New define_insns.
8515         (tabort): Use gpc_reg_operand.
8516         (tcheck): Remove operand.
8517         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
8518         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
8519         expected value.
8520         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
8521         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
8522         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
8523         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
8524         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
8525         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
8526         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
8527         (tcheck): Remove builtin argument.
8528         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
8529         not TARGET_64BIT.
8530         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
8531         tabortdc and tabortdci builtins when not in 64-bit mode.
8532         Modify code to handle the loss of the HTM define_expands.
8533         Emit code to copy the CR register to TARGET.
8534         (htm_init_builtins): Modify code to handle the loss of the HTM
8535         define_expands.
8536         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
8537         (RS6000_BTC_64BIT): Likewise.
8538         (RS6000_BTC_CR): New macro.
8539         * doc/extend.texi: Update documentation for htm builtins.
8541 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8543         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
8544         of manually swapping.
8545         (simplify_associative_operation): Likewise.
8546         (simplify_binary_operation): Likewise.
8547         (simplify_plus_minus): Likewise.
8548         (simplify_relational_operation): Likewise.
8549         (simplify_ternary_operation): Likewise.
8551 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
8553         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
8554         (xs_hi_nonmemory_operand): Remove error.
8555         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
8556         general_operand rather than xs_hi_general_operand.
8558 2015-04-27  Richard Biener  <rguenther@suse.de>
8560         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
8561         (record_equivalences_from_stmt): Valueize rhs.
8562         (record_equality): Canonicalize x and y order via
8563         tree_swap_operands_p.  Do not swap operands for same loop depth.
8565 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
8567         PR target/65296
8568         PR target/65895
8569         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
8570         Add hint how to use own spec file.
8572 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
8574         PR tree-optimization/65875
8575         * tree-vrp.c (update_value_range): If in is_new case setting
8576         old_vr to VR_VARYING, also set new_vr to it.  Remove
8577         old_vr->type == VR_VARYING test.
8578         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
8579         SSA_PROP_INTERESTING if update_value_range returned true,
8580         but new range is VR_VARYING.
8582 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8584         * combine.c (sign_extend_short_imm): New.
8585         (set_nonzero_bits_and_sign_copies): Use above new function for sign
8586         extension of src short immediate.
8587         (reg_nonzero_bits_for_combine): Likewise for tem.
8589 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
8591         * stor-layout.c (self_referential_component_ref_p): New predicate.
8592         (copy_self_referential_tree_r): Use it.
8593         (self_referential_size): Punt for simple operations directly involving
8594         self-referential component references.
8595         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
8597 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
8599         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
8601 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
8603         * vec.h (vec): Make splice arguments const.  Update definitions
8604         accordingly.
8606 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
8608         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
8609         alternatives.
8611 2015-04-26  Tom de Vries  <tom@codesourcery.com>
8613         PR tree-optimization/65826
8614         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
8616 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
8618         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
8619         (*madd3<mode>): Ditto.
8620         (*msub4<mode>): Ditto.
8621         (*msub3<mode>): Ditto.
8622         (*nmadd4<mode>): Ditto.
8623         (*nmadd3<mode>): Ditto.
8624         (*nmadd4<mode>_fastmath): Ditto.
8625         (*nmadd3<mode>_fastmath): Ditto.
8626         (*nmsub4<mode>): Ditto.
8627         (*nmsub3<mode>): Ditto.
8628         (*nmsub4<mode>_fastmath): Ditto.
8629         (*nmsub3<mode>_fastmath): Ditto.
8631 2015-04-24  Jason Merrill  <jason@redhat.com>
8633         PR c++/50800
8634         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
8635         down when building TYPE_CANONICAL.
8636         (build_pointer_type_for_mode): Likewise.
8638 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
8640         * genrecog.c (validate_pattern): Check matching constraint refers
8641         to a lower numbered operand.
8643 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
8645         PR target/65849
8646         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
8647         save to independent variables use the Save attribute.  This will
8648         allow these options to be modified with the #pragma/attribute
8649         target support.
8650         (-mallow-movmisalign): Likewise.
8651         (-mallow-df-permute): Likewise.
8652         (-msched-groups): Likewise.
8653         (-malways-hint): Likewise.
8654         (-malign-branch-targets): Likewise.
8655         (-mvectorize-builtins): Likewise.
8656         (-msave-toc-indirect): Likewise.
8658         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
8659         can be set via the #pragma/attribute target support.
8660         (rs6000_opt_vars): Likewise.
8661         (rs6000_inner_target_options): If VSX was set, also set
8662         -mno-avoid-indexed-addresses.
8664 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8666         * config/arm/iterators.md (shiftable_ops): Rename to...
8667         (SHIFTABLE_OPS): ... This.  Update use in comments.
8668         (ior_xor): Rename to...
8669         (IOR_XOR): ... This.
8670         (vqh_ops): Rename to...
8671         (VQH_OPS): ... This.
8672         (vqhs_ops): Rename to...
8673         (VQHS_OPS): ... This.
8674         (rshifts): Rename to...
8675         (RSHIFTS): ... This.
8676         (returns): Rename to...
8677         (RETURNS): ... This.
8678         * config/arm/arm.md: Update uses of the above.
8679         * config/arm/neon.md: Likewise.
8681 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8683         * config.host (case ${host}): Add aarch64*-*-linux case.
8684         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
8685         fields to all the cores.
8686         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
8687         Add MCPU_MTUNE_NATIVE_SPECS.
8688         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
8689         field to all extensions.
8690         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
8691         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
8692         Adjust definition of AARCH64_OPT_EXTENSION.
8693         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
8694         (MCPU_MTUNE_NATIVE_SPECS): Define.
8695         * config/aarch64/driver-aarch64.c: New file.
8696         * config/aarch64/x-arch64: New file.
8697         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
8698         -mtune and -march.
8700 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
8701             Wei Mi  <wmi@google.com>
8703         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
8704         * config/i386/i386.c (extract_base_offset_in_addr): New function.
8705         (ix86_operands_ok_for_move_multiple): Ditto.
8706         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
8707         (movlpd/movhpd to movupd peephole2): Ditto.
8709 2015-04-24  Marek Polacek  <polacek@redhat.com>
8711         PR c/61534
8712         * input.h (from_macro_expansion_at): Define.
8714         PR c/63357
8715         * doc/invoke.texi: Update description of -Wlogical-op.
8717 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8719         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
8720         ternary operator in fprintf and harmonize spacing.
8722 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
8724         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
8725         Mark operand1 commutative.
8727 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
8729         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
8730         input operands in memory.
8731         (*vec_concatv2si_sse4_1): Ditto.
8732         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
8733         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
8734         register_operand.
8735         (vec_extract_hi_v32hi): Ditto.
8736         (vec_extract_hi_v64hi): Ditto.
8737         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
8739 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8740             Steven Bosscher <steven@gcc.gnu.org>
8742         PR rtl-optimization/34503
8743         * cprop.c (cprop_reg_p): New.
8744         (hash_scan_set): Use above function to check if register can be
8745         propagated.
8746         (find_avail_set): Return up to two sets, one whose source is a
8747         register and one whose source is a constant.  Sets are returned in an
8748         array passed as parameter rather than as a return value.
8749         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
8750         sets returned by find_avail_set, starting with the one whose source is
8751         a constant. Use cprop_reg_p to check if register can be propagated.
8752         (do_local_cprop): Use cprop_reg_p to check if register can be
8753         propagated.
8754         (implicit_set_cond_p): Likewise.
8756 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
8758         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
8759         (sem_function::equals): IGNORED_NODES parameter is now unused;
8760         update call of equals_private.
8761         (sem_function::equals_private): Do not call equals_wpa; skip
8762         gimple body matching if there is no body.
8763         (sem_function::init): Add logic to hash tthunk info.
8764         (sem_function::parse): Also parse thunks.
8765         * ipa-icf.h (equals_private): Update declaration.
8767 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8769         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
8770         asterisk from name so this can be generated directly.
8771         (*altivec_stvx_<mode>_internal): Likewise.
8772         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
8773         that this is never called during or after reload/lra.
8774         (rs6000_frame_related): Remove split_reg
8775         argument and logic that references it.
8776         (emit_frame_save): Remove last parameter from call to
8777         rs6000_frame_related.
8778         (rs6000_emit_prologue): Remove last parameter from eight calls to
8779         rs6000_frame_related.  Force generation of stvx instruction for
8780         Altivec register saves.  Remove split_reg handling, which is no
8781         longer needed.
8782         (rs6000_emit_epilogue):  Force generation of lvx instruction for
8783         Altivec register restores.
8785 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8787         * config/rs6000/rs6000.opt (mcrypto): Change option description to
8788         match category changes in ISA 2.07B.
8790 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8792         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
8793         iterators.
8794         (cmp_op, cmp_type): New code attributes.
8795         (NEON_VCMP, NEON_VACMP): New int iterators.
8796         (cmp_op_unsp): New int attribute.
8797         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
8798         (neon_vceq<mode>): Delete.
8799         (neon_vc<cmp_op><mode>_insn): New pattern.
8800         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
8801         (neon_vcgeu<mode>): Delete.
8802         (neon_vcle<mode>): Likewise.
8803         (neon_vclt<mode>: Likewise.
8804         (neon_vcage<mode>): Likewise.
8805         (neon_vcagt<mode>): Likewise.
8806         (neon_vca<cmp_op><mode>): New define_expand.
8807         (neon_vca<cmp_op><mode>_insn): New pattern.
8808         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
8810 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
8812         * tree.h (attribute_value_equal): Declare.
8813         * tree.c (attribute_value_equal): Export.
8815 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
8817         * ipa-icf.c (sem_item::compare_attributes): New function.
8818         (sem_item::compare_referenced_symbol_properties): Compare variable
8819         attributes.
8820         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
8821         (sem_function::param_used_p): New function.
8822         (sem_function::equals_wpa): Fix attribute comparsion; match
8823         parameter type codes; do not compare paremter flags when
8824         they are not used; compare edge flags; compare indirect calls.
8825         (sem_item::update_hash_by_addr_refs): Hash reference type.
8826         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
8827         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
8828         reference use type.
8829         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
8830         * ipa-icf.h (compare_attributes, param_used_p): Declare.
8832 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
8834         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
8835         cleanup.
8836         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
8837         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
8838         (sem_item::compare_referenced_symbol_properties): New.
8839         (sem_item::hash_referenced_symbol_properties): New.
8840         (sem_item::compare_cgraph_references): Rename to ...
8841         (sem_item::compare_symbol_references): ... this one; use
8842         compare_referenced_symbol_properties.
8843         (sem_function::equals_wpa): Do not compare
8844         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
8845         DECL_IS_OPERATOR_NEW; compare pointer sizes.
8846         (sem_item::update_hash_by_addr_refs): Call
8847         hash_referenced_symbol_properties.
8848         (sem_item::update_hash_by_local_refs): Cleanup.
8849         (sem_function::merge): Do not mix up symbol properties.
8850         (sem_variable::equals_wpa): Use compare_symbol_references.
8851         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
8852         (sem_item::hash_referenced_symbol_properties): New.
8853         (sem_item::compare_symbol_references): New.
8854         (sem_item::compare_cgraph_references): Remove.
8856 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
8858         PR target/26702
8859         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
8860         Emit size of local.
8862 2015-04-23  Nick Clifton  <nickc@redhat.com>
8864         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
8865         ATTRIBUTE_UNUSED to x parameter.
8866         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
8868 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8870         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
8871         TARGET_CRYPTO to TARGET_P8_VECTOR>
8872         (crypto_vpermxor_<mode>): Likewise.
8873         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
8874         (BU_CRYPTO_3A): Likewise.
8875         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
8876         (BU_CRYPTO_OVERLOAD_3A): New #define.
8877         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
8878         (VPMSUMH): Likewise.
8879         (VPMSUMW): Likewise.
8880         (VPMSUMD): Likewise.
8881         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
8882         (VPERMXOR_V4SI): Likewise.
8883         (VPERMXOR_V8HI): Likewise.
8884         (VPERMXOR_V16QI): Likewise.
8885         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
8886         BU_CRYPTO_OVERLOAD_2A.
8887         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
8888         BU_CRYPTO_OVERLOAD_3A.
8889         * config/rs6000/rs6000.opt (mcrypto): Change description of
8890         option.
8892 2015-04-23  Richard Biener  <rguenther@suse.de>
8894         * passes.def: Remove copy propagation passes run directly after CCP.
8895         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
8896         SSA names.
8897         (ccp_visit_phi_node): Rework to handle first executable edge
8898         specially.
8900 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
8902         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
8903         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
8904         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
8905         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
8906         (thumb_legimitimize_reload_address): Remove.
8907         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
8908         Remove.
8909         (thumb_legimitimize_reload_address): Remove.
8911 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8913         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
8915 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8917         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
8918         MAX_LDM_STM_OPS.
8919         (store_multiple): Likewise.
8921 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8923         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
8924         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
8925         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
8926         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
8927         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
8928         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
8929         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
8930         Specify issue_rate value.
8931         (arm_issue_rate): Look up issue rate from tuning structs. Remove
8932         large switch statement.
8933         (arm_marvell_pj4_tune): New struct.
8934         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
8935         struct.
8937 2015-04-23  Richard Biener  <rguenther@suse.de>
8939         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
8940         (vect_find_last_store_in_slp_instance): Rename to ...
8941         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
8942         (vect_analyze_slp_cost_1): Use vector_load for constant defs
8943         and vec_construct for external defs when estimating prologue cost.
8944         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
8945         Compute costs here only when vectorizing loops.
8946         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
8947         have been determined.
8948         (vect_schedule_slp_instance): Simplify vectorized code placement
8949         and prepare for in-BB external defs.
8950         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
8951         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
8952         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
8953         guard.
8954         (vect_model_load_cost): Likewise.
8955         (vectorizable_store): Instead add it here.
8956         (vectorizable_load): Likewise.
8957         (vect_is_simple_use): Dump def type textually.
8959 2015-04-23  Richard Biener  <rguenther@suse.de>
8961         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
8962         * cfgloop.c (verify_loop_structure): Verify the root loop node.
8963         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
8964         instead of get_eh_region_from_lp_number.
8965         * loop-init.c (fix_loop_structure): If we removed a loop, reset
8966         the SCEV cache.
8968 2015-04-23  Anton Blanchard  <anton@samba.org>
8970         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
8971         need for -mprofile-kernel to save LR to stack.
8973 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8975         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
8976         adjustments.
8977         (insn_is_swappable_p): Return 1 for a convert from double to
8978         single precision when all of its uses are splats of BE element
8979         zero.
8981 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
8983         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
8985 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8987         PR target/65456
8988         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
8989         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
8990         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
8991         option.
8992         (rs6000_builtin_mask_for_load): Return 0 for targets with
8993         efficient unaligned VSX accesses so that the vectorizer will use
8994         direct unaligned loads.
8995         (rs6000_builtin_support_vector_misalignment): Always return true
8996         for targets with efficient unaligned VSX accesses.
8997         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
8998         stores on targets with efficient unaligned VSX accesses is almost
8999         always the same as the cost of an aligned load or store, so model
9000         it that way.
9001         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
9002         unaligned vectors if we have efficient unaligned VSX accesses.
9003         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
9004         undocumented option.
9006 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9008         Revert:
9009         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
9011         * config.gcc (LIBC_MUSL): New tm_defines macro.
9012         * config/linux.h (OPTION_MUSL): Define.
9013         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
9014         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
9015         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
9017         * config/linux.opt (mmusl): New option.
9018         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
9019         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
9021         * configure: Regenerate.
9023 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
9025         * config.gcc (LIBC_MUSL): New tm_defines macro.
9026         * config/linux.h (OPTION_MUSL): Define.
9027         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
9028         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
9029         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
9031         * config/linux.opt (mmusl): New option.
9032         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
9033         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
9035         * configure: Regenerate.
9037 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
9039         * doc/invoke.texi (-fsanitize-sections): Update description.
9040         * asan.c (set_sanitized_sections): Parse incoming arg.
9041         (section_sanitized_p): Support wildcards.
9043 2015-04-22  Tom de Vries  <tom@codesourcery.com>
9045         PR tree-optimization/65823
9046         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
9047         equality between ap_copy and ap.
9049 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9051         PR target/47098
9052         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
9054 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9056         PR target/47122
9057         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
9059 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9061         PR target/55144
9062         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
9063         remove already contained t-files.
9065 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9067         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
9068         Remove unneeded forward declarations.
9069         (suitable_for_tail_call_opt_p): Commentary typo fix.
9071 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9073         * varasm.c (emit_bss): Remove redundant guard.
9075 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9077         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
9079 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9081         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
9083 2015-04-22  Hale Wang  <hale.wang@arm.com>
9084             Terry Guo  <terry.guo@arm.com>
9086         PR rtl-optimization/64818
9087         * combine.c (can_combine_p): Don't combine user-specified
9088         register if it is in an asm input.
9090 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
9092         PR ipa/65076
9093         * passes.def (early_optimizations): Add pass_dse.
9095 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9097         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
9098         * reorg.c (redundant_insn): Remove ifdef
9099         INSN_REFERENCES_ARE_DELAYED.
9100         * resource.c (mark_referenced_resources): Likewise.
9102 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9104         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
9105         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
9106         * resource.c (mark_set_resources): Likewise.
9108 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9110         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
9111         * cfgcleanup.c (flow_find_cross_jump): Likewise.
9112         (flow_find_head_matching_sequence): Likewise.
9113         (try_head_merge_bb): Likewise.
9114         * combine.c (can_combine_p): Likewise.
9115         (try_combine): Likewise.
9116         (distribute_notes): Likewise.
9117         * df-problems.c (can_move_insns_across): Likewise.
9118         * final.c (final): Likewise.
9119         * gcse.c (insert_insn_end_basic_block): Likewise.
9120         * ira.c (find_moveable_pseudos): Likewise.
9121         * reorg.c (try_merge_delay_insns): Likewise.
9122         (fill_simple_delay_slots): Likewise.
9123         (fill_slots_from_thread): Likewise.
9124         * sched-deps.c (sched_analyze_2): Likewise.
9126 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9128         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
9129         PIC_OFFSET_TABLE_REGNUM.
9131 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9133         * alias.c (init_alias_target): Remove ifdef
9134         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
9135         * df-scan.c (df_insn_refs_collect): Likewise.
9136         (df_get_regular_block_artificial_uses): Likewise.
9137         (df_get_eh_block_artificial_uses): Likewise.
9138         (df_get_entry_block_def_set): Likewise.
9139         (df_get_exit_block_use_set): Likewise.
9140         * emit-rtl.c (gen_rtx_REG): Likewise.
9141         * ira.c (ira_setup_eliminable_regset): Likewise.
9142         * reginfo.c (init_reg_sets_1): Likewise.
9143         * regrename.c (rename_chains): Likewise.
9144         * reload1.c (reload): Likewise.
9145         (eliminate_regs_in_insn): Likewise.
9146         * resource.c (mark_referenced_resources): Likewise.
9147         (init_resource_info): Likewise.
9149 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9151         * defaults.h (MASK_RETURN_ADDR): New definition.
9152         * except.c (expand_builtin_extract_return_addr): Remove ifdef
9153         MASK_RETURN_ADDR.
9155 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9157         * defaults.h (RETURN_ADDR_OFFSET): New definition.
9158         * except.c (expand_builtin_extract_return_addr): Remove ifdef
9159         RETURN_ADDR_OFFSET.
9160         (expand_builtin_frob_return_addr): Likewise.
9162 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9164         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
9165         (try_redirect_by_replacing_jump): Likewise.
9166         (rtl_tidy_fallthru_edge): Likewise.
9167         * combine.c (insn_a_feeds_b): Likewise.
9168         (find_split_point): Likewise.
9169         (simplify_set): Likewise.
9170         * cprop.c (cprop_jump): Likewise.
9171         * cse.c (cse_extended_basic_block): Likewise.
9172         * df-problems.c (can_move_insns_across): Likewise.
9173         * function.c (emit_use_return_register_into_block): Likewise.
9174         * haifa-sched.c (sched_init): Likewise.
9175         * ira.c (find_moveable_pseudos): Likewise.
9176         * loop-invariant.c (find_invariant_insn): Likewise.
9177         * lra-constraints.c (curr_insn_transform): Likewise.
9178         * postreload.c (reload_combine_recognize_const_pattern):
9179         * Likewise.
9180         * reload.c (find_reloads): Likewise.
9181         * reorg.c (delete_scheduled_jump): Likewise.
9182         (steal_delay_list_from_target): Likewise.
9183         (steal_delay_list_from_fallthrough): Likewise.
9184         (redundant_insn): Likewise.
9185         (fill_simple_delay_slots): Likewise.
9186         (fill_slots_from_thread): Likewise.
9187         (delete_computation): Likewise.
9188         * sched-rgn.c (add_branch_dependences): Likewise.
9190 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9192         * genconfig.c (main): Always define HAVE_cc0.
9193         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
9194         HAVE_cc0.
9195         * cfgcleanup.c (flow_find_cross_jump): Likewise.
9196         (flow_find_head_matching_sequence): Likewise.
9197         (try_head_merge_bb): Likewise.
9198         * cfgrtl.c (rtl_merge_blocks): Likewise.
9199         (try_redirect_by_replacing_jump): Likewise.
9200         (rtl_tidy_fallthru_edge): Likewise.
9201         * combine.c (do_SUBST_MODE): Likewise.
9202         (insn_a_feeds_b): Likewise.
9203         (combine_instructions): Likewise.
9204         (can_combine_p): Likewise.
9205         (try_combine): Likewise.
9206         (find_split_point): Likewise.
9207         (subst): Likewise.
9208         (simplify_set): Likewise.
9209         (distribute_notes): Likewise.
9210         * cprop.c (cprop_jump): Likewise.
9211         * cse.c (cse_extended_basic_block): Likewise.
9212         * df-problems.c (can_move_insns_across): Likewise.
9213         * final.c (final): Likewise.
9214         (final_scan_insn): Likewise.
9215         * function.c (emit_use_return_register_into_block): Likewise.
9216         * gcse.c (insert_insn_end_basic_block): Likewise.
9217         * haifa-sched.c (sched_init): Likewise.
9218         * ira.c (find_moveable_pseudos): Likewise.
9219         * loop-invariant.c (find_invariant_insn): Likewise.
9220         * lra-constraints.c (curr_insn_transform): Likewise.
9221         * optabs.c (prepare_cmp_insn): Likewise.
9222         * postreload.c (reload_combine_recognize_const_pattern):
9223         * Likewise.
9224         * reload.c (find_reloads): Likewise.
9225         (find_reloads_address_1): Likewise.
9226         * reorg.c (delete_scheduled_jump): Likewise.
9227         (steal_delay_list_from_target): Likewise.
9228         (steal_delay_list_from_fallthrough): Likewise.
9229         (try_merge_delay_insns): Likewise.
9230         (redundant_insn): Likewise.
9231         (fill_simple_delay_slots): Likewise.
9232         (fill_slots_from_thread): Likewise.
9233         (delete_computation): Likewise.
9234         (relax_delay_slots): Likewise.
9235         * sched-deps.c (sched_analyze_2): Likewise.
9236         * sched-rgn.c (add_branch_dependences): Likewise.
9238 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9240         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
9241         that is trivially ded on non cc0 targets.
9242         (simplify_set): Likewise.
9243         (mark_used_regs_combine): Likewise.
9244         * cse.c (new_basic_block): Likewise.
9245         (fold_rtx): Likewise.
9246         (cse_insn): Likewise.
9247         (cse_extended_basic_block): Likewise.
9248         (set_live_p): Likewise.
9249         * rtlanal.c (canonicalize_condition): Likewise.
9250         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9252 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9254         * conditions.h: Define macros even if HAVE_cc0 is undefined.
9255         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
9256         * final.c: Likewise.
9257         * jump.c: Likewise.
9258         * recog.c: Likewise.
9259         * recog.h: Declare functions even when HAVE_cc0 is undefined.
9260         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
9262 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9264         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
9265         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
9266         * builtins.c (expand_builtin): Remove check if
9267         EH_RETURN_DATA_REGNO is defined.
9268         * df-scan.c (df_bb_refs_collect): Likewise.
9269         (df_get_exit_block_use_set): Likewise.
9270         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
9271         * ira-lives.c (process_bb_node_lives): Likewise.
9272         * lra-lives.c (process_bb_lives): Likewise.
9274 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
9276         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
9277         FIRST_PSEUDO_REG): New.
9278         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
9279         (ARG_POINTER_REGNUM): Define to ARGP_REG.
9280         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
9281         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
9282         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
9283         (FIRST_INT_REG): New.
9284         (LAST_INT_REG): New.
9285         (FIRST_*_REG): Define using *_REG.
9286         (LAST_*_REG): Ditto.
9287         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
9288         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
9289         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
9291 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9293         * expmed.c: (synth_mult): Only assume overlapping
9294         shift with previous steps in alg_sub_t_m2 case.
9296 2015-04-21  Richard Biener  <rguenther@suse.de>
9298         PR tree-optimization/65650
9299         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
9300         transitions involving copies.
9301         (set_lattice_value): Adjust for copy lattice state.
9302         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
9303         if that doesn't dominate the merge point.
9304         (bit_value_unop): Adjust what we treat as varying mask.
9305         (bit_value_binop): Likewise.
9306         (bit_value_assume_aligned): Likewise.
9307         (evaluate_stmt): When we simplified to a SSA name record a copy
9308         instead of dropping to varying.
9309         (visit_assignment): Simplify.
9311         * gimple-match.h (gimple_simplify): Add another callback.
9312         * gimple-fold.c (fold_stmt_1): Adjust caller.
9313         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
9314         for the 2nd callback.
9315         * gimple-match-head.c (gimple_simplify): Add a callback that is
9316         used to valueize the stmt operands and use it that way.
9318 2015-04-21  Richard Biener  <rguenther@suse.de>
9320         PR tree-optimization/65788
9321         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
9323 2015-04-21  Richard Biener  <rguenther@suse.de>
9325         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
9326         vec_construct cost by vec_stmt_cost.
9328 2015-04-21  Richard Biener  <rguenther@suse.de>
9330         * cfghooks.h (create_basic_block): Replace with two overloads
9331         for RTL and GIMPLE.
9332         (split_block): Likewise.
9333         * cfghooks.c (split_block): Rename to ...
9334         (split_block_1): ... this.
9335         (split_block): Add two type-safe overloads for RTL and GIMPLE.
9336         (split_block_after_labels): Call split_block_1.
9337         (create_basic_block): Rename to ...
9338         (create_basic_block_1): ... this.
9339         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
9340         (create_empty_bb): Call create_basic_block_1.
9341         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
9342         split_block_after_labels.
9343         * omp-low.c (expand_parallel_call): Likewise.
9344         (expand_omp_target): Likewise.
9345         (simd_clone_adjust): Likewise.
9346         * tree-chkp.c (chkp_get_entry_block): Likewise.
9347         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
9348         create_basic_block overload.
9349         (cgraph_node::expand_thunk): Likewise.
9350         * tree-cfg.c (make_blocks): Likewise.
9351         (handle_abnormal_edges): Likewise.
9352         * tree-inline.c (copy_bb): Likewise.
9354 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9356         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
9357         New pattern.
9358         (*xor_one_cmplsidi3_ze): Likewise.
9360 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9362         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
9363         use df_remove_problem rather than manually removing problems, leaving
9364         holes in df->problems_in_order[].
9366 2015-04-21  Tom de Vries  <tom@codesourcery.com>
9368         PR tree-optimization/65802
9369         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
9371 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9373         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
9374         Increase to 128.
9375         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
9376         at '.'.  Assert that there's enough space for everything.
9378 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
9380         PR tree-optimization/64950
9381         Revert:
9382         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
9384         PR target/41089
9385         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
9386         as volatile.
9388 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
9390         PR rtl-optimization/64916
9391         * cfgcleanup.c (values_equal_p): New function.
9392         (can_replace_by): Use it.
9394 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
9396         PR c++/65801
9397         * doc/invoke.texi ([-Wnarrowing]): Update.
9399 2015-04-20  Jeff Law  <law@redhat.com>
9401         PR tree-optimization/65658
9402         * tree-ssa-threadupdate.c (redirection_block_p): Remove
9403         redundant test for GIMPLE_ASSIGN in last change.
9405 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
9407         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
9408         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
9409         (legitimize_tls_address): Ditto.
9410         (ix86_expand_move): Ditto.
9411         (ix86_expand_binary_operator): Remove reload_in_progress checks.
9412         (ix86_expand_unary_operator): Ditto.
9413         * config/i386/predicates.md (index_register_operand): Ditto.
9415 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
9417         * reorg.c (try_merge_delay_insns): Improve correctness checking
9418         for targets with multiple delay slots.
9420 2015-04-20  Jeff Law  <law@redhat.com>
9422         PR tree-optimization/65658
9423         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
9424         statements too.
9426 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
9428         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
9429         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
9430         Delete.
9432 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
9434         PR debug/65807
9435         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
9437 2015-04-20  Richard Biener  <rguenther@suse.de>
9439         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
9440         * gimple-fold.c (gimple_build_valueize): New function.
9441         (gimple_build): Always use gimple_build_valueize as valueize hook.
9443 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
9445         PR target/64134
9446         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
9447         and overwrite variable parts if <= 1/2 the elements are variable.
9449 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
9451         PR rtl-optimization/65805
9452         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
9453         Don't use difference of offset and previous offset if
9454         update_sp_offset is non-zero.
9455         (eliminate_regs_in_insn): Ditto.
9456         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
9457         lra_eliminate_regs_1 call.
9458         * lra-constraints.c (get_equiv_with_elimination): Ditto.
9460 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
9462         * hash-table.h: Remove version of hash_table that stored value_type *.
9463         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
9464         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
9465         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
9466         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
9467         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
9468         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
9469         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
9470         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
9471         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
9472         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
9473         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
9474         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
9475         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
9476         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
9477         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
9478         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
9480 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9481             Jakub Jelinek  <jakub@redhat.com>
9483         PR target/65787
9484         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
9485         subsequent SH_NONE operand does not overwrite an existing *special
9486         value.
9487         (adjust_extract): Handle case where a vec_extract operation is
9488         wrapped in a PARALLEL.
9490 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
9492         PR target/65780
9493         * config/i386/i386.c (ix86_binds_local_p): Define only if
9494         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
9496 2015-04-17  Jeff Law  <law@redhat.com>
9498         PR tree-optimization/47679
9499         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
9500         * tree-ssa-scopedtables.c: New file.
9501         * tree-ssa-scopedtables.h: New file.
9502         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
9503         (const_and_copies): Change name/type.
9504         (record_const_or_copy): Move into tree-ssa-scopedtables.c
9505         (record_const_or_copy_1): Similarly.
9506         (restore_vars_to_original_value): Similarly.
9507         (pass_dominator::execute): Create and destroy const_and_copies table.
9508         (thread_across_edge): Update passing of const_and_copies.
9509         (record_temporary_equivalence): Use method calls rather than
9510         manipulating const_and_copies directly.
9511         (record_equality, cprop_into_successor_phis): Similarly.
9512         (dom_opt_dom_walker::before_dom_children): Similarly.
9513         (dom_opt_dom_walker::after_dom_children): Similarly.
9514         (eliminate_redundant_computations): Similarly.
9515         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
9516         (record_temporary_equivalence): Likewise.
9517         (invalidate_equivalences): Likewise.
9518         (record_temporary_equivalences_from_phis): Update due to type
9519         change of const_and_copies.  Use method calls rather than
9520         manipulating the stack directly.
9521         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
9522         (thread_through_normal_block, thread_across_edge): Likewise.
9523         (thread_across_edge): Likewise.
9524         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
9525         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
9526         of equiv_stack.
9527         (identify_jump_threads): Update due to type change of equiv_stack.
9528         (finalize_jump_threads): Delete the equiv_stack when complete.
9530 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
9532         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
9533         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
9534         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
9536 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
9538         PR target/65535
9539         * config.gcc: Exit with a comment when we do not have a major version
9540         number for the FreeBSD target.
9542 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
9544         PR target/65689
9545         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
9546         maybe_allows_mem bitfields.
9547         (maybe_allows_none_start, maybe_allows_none_end,
9548         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
9549         maybe_allows_mem_end): New variables.
9550         (compute_maybe_allows): New function.
9551         (add_constraint): Use it to initialize maybe_allows_reg and
9552         maybe_allows_mem fields.
9553         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
9554         is_address constraints such that those that allow neither mem nor
9555         reg come first, then those that only allow reg but not mem, then
9556         those that only allow mem but not reg, then the rest.
9557         (write_allows_reg_mem_function): New function.
9558         (write_tm_preds_h): Call it.
9559         * stmt.c (parse_output_constraint, parse_input_constraint): Use
9560         the generated insn_extra_constraint_allows_reg_mem function
9561         instead of always setting *allows_reg = true; *allows_mem = true;
9562         for unknown extra constraints.
9564 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
9566         PR target/65780
9567         * output.h (default_binds_local_p_3): New.
9568         * varasm.c (default_binds_local_p_3): Make it public.  Take an
9569         argument to indicate if common symbol may be local.  If common
9570         symbol may be local, treat non-external variable as defined
9571         locally.
9572         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
9573         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
9574         * config/i386/i386.c (ix86_binds_local_p): New.
9575         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
9576         ix86_binds_local_p.
9578 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
9580         PR debug/65771
9581         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
9582         trying mem_loc_descriptor on XEXP (rtl, 0).
9584 2015-04-17  Martin Liska  <mliska@suse.cz>
9586         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
9587         Release symbol_compare_collection.
9588         * ipa-reference.c: Add TODO that a vector should be released.
9590 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
9592         PR target/65296
9593         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
9594         to new AVR-LibC file layout (bug #44574).
9595         (*avrlibc_devicelib): Same.
9596         * config/avr/avr-mcus.def: Adjust comments.
9597         * config/avr/avr.opt (nodevicelib): Adjust help.
9599 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
9601         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
9603 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
9605         PR c++/64527
9606         * gimplify.c (gimplify_init_constructor): Always emit a
9607         side-effecting constructor.
9609 2015-04-17  Tom de Vries  <tom@codesourcery.com>
9611         PR tree-optimization/64950
9612         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
9613         in cfun->curr_properties.
9614         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
9615         if we generate an IFN_VA_ARG.
9616         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
9617         function if PROP_gimple_lva is not set in src function.
9619 2015-04-17  Tom de Vries  <tom@codesourcery.com>
9620             Michael Matz  <matz@suse.de>
9622         PR tree-optimization/64950
9623         * gimple-iterator.c (update_modified_stmts): Remove static.
9624         * gimple-iterator.h (update_modified_stmts): Declare.
9625         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
9626         (gimplify_va_arg_internal): New function.
9627         (gimplify_va_arg_expr): Use IFN_VA_ARG.
9628         * gimplify.h (gimplify_va_arg_internal): Declare.
9629         * internal-fn.c (expand_VA_ARG): New unreachable function.
9630         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
9631         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
9632         (expand_ifn_va_arg): New function.
9633         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
9634         (pass_stdarg::execute): Call expand_ifn_va_arg.
9635         (pass_data_lower_vaarg): New pass_data.
9636         (pass_lower_vaarg): New gimple_opt_pass.
9637         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
9638         (make_pass_lower_vaarg): New function.
9639         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
9640         properties_required field.
9641         * passes.def (all_passes): Add pass_lower_vaarg.
9642         * tree-pass.h (PROP_gimple_lva): Add define.
9643         (make_pass_lower_vaarg): Declare.
9645 2015-04-17  Tom de Vries  <tom@codesourcery.com>
9647         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
9648         * calls.c (call_expr_flags): Same.
9650 2015-04-17  Tom de Vries  <tom@codesourcery.com>
9652         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
9653         (pass_stdarg::execute): ... here.
9655 2015-04-17  Tom de Vries  <tom@codesourcery.com>
9656             Michael Matz  <matz@suse.de>
9658         * tree-cfg.c (make_blocks_1): Factor out of ...
9659         (make_blocks): ... here.
9660         (make_edges_bb): Factor out of ...
9661         (make_edges): ... here.
9662         (gimple_find_sub_bbs): New function.
9663         * tree-cfg.h (gimple_find_sub_bbs): Declare.
9665 2015-04-17  Tom de Vries  <tom@codesourcery.com>
9667         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
9669 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
9671         * asan.c (set_sanitized_sections): New function.
9672         (section_sanitized_p): Ditto.
9673         (asan_protect_global): Optionally sanitize user-defined
9674         sections.
9675         * asan.h (set_sanitized_sections): Declare new function.
9676         * common.opt (fsanitize-sections): New option.
9677         * doc/invoke.texi (-fsanitize-sections): Document new option.
9678         * opts-global.c (handle_common_deferred_options): Handle new
9679         option.
9681 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
9683         PR debug/65771
9684         * dwarf2out.c (loc_list_from_tree): Return NULL
9685         for DEBUG_EXPR_DECL.
9687 2015-04-17  Christian Bruel  <christian.bruel@st.com>
9689         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
9690         same attributes.
9692 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
9694         * ira-color.c (setup_left_conflict_sizes_p): Do not process
9695         node itself when computing left conflict subnode size.
9697 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
9699         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
9700         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
9701         *fop_<mode>_1_sse using enabled attribute.  Use
9702         register_mixssei387nonimm_operand operand 1 predicate. Change
9703         alternative 3 constraints from "x" to "v".
9705 2015-04-16  Richard Biener  <rguenther@suse.de>
9707         PR tree-optimization/65774
9708         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
9709         bit-value tracking on.
9711 2015-04-16  Richard Biener  <rguenther@suse.de>
9713         PR tree-optimization/64277
9714         * tree-vrp.c (check_array_ref): Fix anti-range handling,
9715         simplify upper bound handling.
9716         (search_for_addr_array): Simplify.
9717         (check_array_bounds): Handle ADDR_EXPRs here.
9718         (check_all_array_refs): Simplify.
9720 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
9722         * config/i386/i386.c (print_reg): Rewrite function.
9724 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9726         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
9727         Invert the condition.
9729 2015-04-16  Renlin Li  <renlin.li@arm.com>
9731         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
9732         simplifications for UNSIGNED_FLOAT.
9734 2015-04-16  Nick Clifton  <nickc@redhat.com>
9736         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
9737         MUL_UNINIT.
9738         (enum rl78_cpu_type): New.
9739         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
9740         (umulhi3_shift_virt): Remove m constraint from operand 1.
9741         (umulqihi3_virt): Likewise.
9742         * config/rl78/rl78.c (rl78_option_override): Add code to process
9743         -mcpu and -mmul options.
9744         (rl78_alloc_physical_registers): Add code to handle divhi and
9745         divsi valloc attributes.
9746         (set_origin): Likewise.
9747         * config/rl78/rl78.h (RL78_MUL_G14): Define.
9748         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
9749         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
9750         __RL78_Gxx__.
9751         (ASM_SPEC): Pass -mcpu on to assembler.
9752         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
9753         (mulqi3_rl78): Likewise.
9754         (mulhi3_g13): Likewise.
9755         (mulhi3): Generate the G13 or G14 versions of the insn directly.
9756         (mulsi3): Likewise.
9757         (mulhi3_g14): Add clobbers of AX and BC.
9758         (mulsi3_g14): Likewise.
9759         (mulsi3_g13): Likewise.
9760         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
9761         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
9762         * config/rl78/rl78.opt (mmul): Initialise value to
9763         RL78_MUL_UNINIT.
9764         (mcpu): New option.
9765         (m13, m14, mrl78): New option aliases.
9766         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
9767         (MULTILIB_DIRNAMES): Add g13 and g14.
9768         * doc/invoke.texi: Document -mcpu and -mmul options.
9770 2015-04-16  Richard Biener  <rguenther@suse.de>
9772         * tree-ssa-ccp.c (likely_value): See if we have operands that
9773         are marked as never simulate again and return CONSTANT in this
9774         case.
9775         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
9776         not have any operands that will be simulated again as
9777         not being simulated again.
9779 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
9781         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
9782         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
9783         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
9784         attribute.
9785         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
9786         enabled attribute.
9787         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
9788         *float<SWI48:mode><MODEF:mode>2_sse.
9789         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
9790         enabled attribute.
9791         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
9792         enabled attribute.
9794 2015-04-15  Tom de Vries  <tom@codesourcery.com>
9796         PR other/65487
9797         * function.c (push_dummy_function): New function.
9798         (init_dummy_function_start): Use push_dummy_function.
9799         (pop_dummy_function): New function.  Factored out of ...
9800         (expand_dummy_function_end): ... here.
9801         * function.h (push_dummy_function, pop_dummy_function): Declare.
9802         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
9803         pop_dummy_function.
9804         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
9806 2015-04-15  Jeff Law  <law@redhat.com>
9808         PR tree-optimization/47679
9809         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
9810         need for forward declaration in upcoming changes.
9811         (record_conditions, record_edge_info): Likewise.
9813         PR rtl-optimization/42522
9814         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
9815         SIGN_EXTRACT as a whole object rather than simplifying
9816         its operand.
9818 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
9820         PR ipa/65765
9821         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
9822         and GIMPLE_PREDICT use break instead of return true. For
9823         GIMPLE_EH_DISPATCH, compare dispatch region.
9825 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
9827         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
9828         details about the implementation.  Make clear preference for
9829         __atomic builtins.  Reduce possibility of future change.
9831 2015-04-15  Nick Clifton  <nickc@redhat.com>
9833         * config/rx/rx.opt (mallow-string-insns): New option.
9834         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
9835         builtin if string instructions are denied.
9836         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
9837         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
9838         appropriate.
9839         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
9840         * config/rx/rx.md (movstr): Enable pattern only if string
9841         instructions are allowed.
9842         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
9843         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
9844         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
9845         (MULTILIB_DIRNAMES): Add no-strings.
9846         * doc/invoke.texi: Document -mno-allow-string-insns.
9848 2015-04-15  Alan Modra  <amodra@gmail.com>
9850         PR target/65408
9851         PR target/58744
9852         PR middle-end/36043
9853         * calls.c (load_register_parameters): Don't load past end of
9854         mem unless suitably aligned.
9856 2015-04-15  Nick Clifton  <nickc@redhat.com>
9858         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
9859         decrement instruction as being frame related.
9860         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
9861         based addresses.
9862         If zero extending a function address enclose the operation in
9863         %code(...).
9864         (rl78_preferred_reload_class): New function.
9865         (TARGET_PREFERRED_RELOAD_CLASS): Define.
9866         * config/rl78/rl78.md: Remove useless constraints in expanders.
9867         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
9868         (mulhi3_rl78): Likewise.
9869         (mulhi3_g13): Likewise.
9870         (mulsi3_rl78): Likewise.
9871         (es_addr): Move to before the multiply patterns.
9873 2015-04-15  Alan Modra  <amodra@gmail.com>
9875         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
9876         and sequence_stack.  Add seq.
9877         (seq_stack): Delete.
9878         * function.c (prepare_function_start): Don't access x_last_insn.
9879         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
9880         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
9881         * emit_rtl.c (start_sequence, push_topmost_sequence,
9882         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
9883         sequence accessors.
9884         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
9885         remove_insn): Likewise.  Simplify.
9886         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
9887         and pop_topmost_sequence.
9888         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
9889         debug insns.
9890         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
9892 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
9894         PR target/65729
9895         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
9896         the assertiion.
9898 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
9900         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
9901         (LEGACY_INT_REGNO_P): Ditto.
9902         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
9903         (ANY_MASK_REG_P): Remove.
9904         (BND_REG_P): Rename from ANY_BND_REG_P.
9905         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
9906         legacy integer registers.  Do not handle MMX_REG_P in a special way.
9907         Merge 64byte and 32byte SSE handling.
9909 2015-04-14  Nick Clifton  <nickc@redhat.com>
9911         * expr.c (expand_assignment): Force an address offset computation
9912         into a register before changing its mode.
9913         (expand_expr_real_1): Likewise.
9915 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
9917         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
9918         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
9919         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
9920         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
9921         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
9922         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
9923         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
9924         and __aarch64_vget_lane_any.
9926 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
9928         PR rtl-optimization/65761
9929         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
9930         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
9932 2015-04-14  Richard Biener  <rguenther@suse.de>
9934         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
9935         (graphite_can_represent_scev): Use POINTER_TYPE_P.
9937 2015-04-14  Richard Biener  <rguenther@suse.de>
9939         PR tree-optimization/65758
9940         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
9941         against -1.
9942         (ccp_lattice_meet): Likewise.
9943         (bit_value_unop): Likewise.
9944         (bit_value_binop): Likewise.
9945         (bit_value_assume_aligned): Likewise.
9947 2015-04-14  Christian Bruel  <christian.bruel@st.com>
9949         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
9950         function.
9952 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
9954         PR tree-optimization/63387
9955         * match.pd ((x unord x) | (y unord y) -> (x unord y),
9956         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
9958 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
9960         * config/i386/predicates.md (any_QIreg_operand): Rename from
9961         q_regs_operand.  Do not process subregs.
9962         (QIreg_operand): Use QI_REGNO_P predicate.
9963         (ext_QIreg_operand): Ditto.
9964         (ext_register_operand): Ditto.
9965         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
9966         (AND splitters): Ditto.
9967         (AND with -65536 splitter): Add SWI48 mode for operand 0.
9968         (AND with -256 splitter): Use any_QIreg_operand predicate and
9969         SWI248 mode for operand 0.
9970         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
9971         mode for operand 0.
9972         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
9974 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
9976         * doc/plugins.texi: Rewrite first introductory paragraph.
9978 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
9980         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
9981         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
9983 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
9985         * ipa-profie.c (ipa_profile): Check number of parameters
9986         and possible polymorphic call targets before
9987         devirtualizing.
9989 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
9991         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
9992         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
9994 2015-04-13  Richard Biener  <rguenther@suse.de>
9996         PR tree-optimization/65204
9997         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
9998         takens for bit-CCP.
10000 2015-04-13  Richard Biener  <rguenther@suse.de>
10002         PR target/65660
10003         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
10004         and cond_not_taken_branch_cost to 4 and 2.
10005         (bdver2_cost): Likewise.
10006         (bdver3_cost): Likewise.
10007         (bdver4_cost): Likewise.
10009 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
10011         * hash-table.h (hash_table constructor): Add mem stats.
10012         (alloc_entries): Likewise.
10014 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
10016         * ipa-cp.c (ipcp_driver): Relase prev_edge.
10017         * passes.c (execute_one_pass): Only add transform if pass has one.
10019 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
10021         * config/i386/i386.c (ix86_option_override_internal): Don't set
10022         -fprefetch-loop-arrays if optimizing for size.
10024 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
10025             Gerald Pfeifer  <gerald@pfeifer.com>
10027         * doc/contrib.texi (Contributors): Add Martin Jambor and
10028         Michael Matz.
10030 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
10032         * BASE-VER: Set to 6.0.0.
10034         PR tree-optimization/65747
10035         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
10036         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
10038 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
10040         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
10041         sentence.  Improve grammar.
10043 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
10045         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
10047 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
10049         PR ipa/65743
10050         * ipa-inline-transform.c (speculation_removed): Remove static var.
10051         (check_speculations): New function.
10052         (clone_inlined_nodes): Do not check spculations.
10053         (inline_call): Call check_speculations.
10054         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
10055         consider non-invariants.
10057 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
10058             Martin Liska  <mliska@suse.cz>
10060         PR ipa/65722
10061         * ipa-icf.c (sem_item::compare_cgraph_references): function and
10062         variable can not match.
10063         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
10064         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
10066 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
10068         PR tree-optimization/65735
10069         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
10070         Remove visited_phis argument, add visited_bbs, avoid recursing into the
10071         same bb rather than just into the same phi node.
10072         (thread_through_normal_block): Adjust caller.
10074 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
10076         * doc/contrib.texi (Contributors): Add Ira Rosen.
10078 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
10080         * gcov.c (find_source): Fix miswording in error message.
10081         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
10082         (ix86_expand_sse_comi_round): Fix typo in error message.
10084 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
10086         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
10088 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
10090         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
10092 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
10094         PR target/65710
10095         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
10096         Print bad_spills_num and insn_pseudos_num.
10098 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10100         PR target/65694
10101         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
10102         when creating +1 values for SImode.
10104 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
10106         PR target/65729
10107         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
10108         assert.
10110 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
10111             Iain Sandoe  <iain@codesourcery.com>
10113         PR target/65351
10114         * configure: Regenerate.
10116 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
10118         PR target/65671
10119         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
10121 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
10123         * doc/contrib.texi (Contributors): Add John Marino.
10125 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
10127         PR tree-optimization/65709
10128         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
10129         TREE_TYPE (TREE_TYPE (t)).
10131 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
10133         PR target/65710
10134         * lra-int.h (lra_bad_spill_regno_start): New.
10135         * lra.c (lra_bad_spill_regno_start): New.
10136         (lra): Set up lra_bad_spill_regno_start.  Set up
10137         lra_constraint_new_regno_start unconditionally.
10138         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
10139         spill preferences.
10141 2015-04-09  Marek Polacek  <polacek@redhat.com>
10142             Jakub Jelinek  <jakub@redhat.com>
10144         PR middle-end/65554
10145         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
10146         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
10147         of STRIP_NOPS.
10149 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
10151         PR rtl-optimization/65693
10152         * combine.c (is_parallel_of_n_reg_sets): Move outside of
10153         #ifndef HAVE_cc0.
10155 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
10157         PR target/65296
10158         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
10159         device specs file if "device-specs%s" didn't resolve to a path.
10161 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
10163         PR target/65676
10164         * config/i386/i386.c (fixup_modeless_constant): New.
10165         (ix86_expand_args_builtin): Fixup modeless constant operand.
10166         (ix86_expand_round_builtin): Ditto.
10167         (ix86_expand_special_args_builtin): Ditto.
10168         (ix86_expand_builtin): Ditto.
10170 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
10172         PR target/65693
10173         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
10174         any pow2 integer in between 2 and 0x80000000U inclusive.
10176 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
10178         PR rtl-optimization/65693
10179         * combine.c (is_parallel_of_n_reg_sets): Change first argument
10180         from an rtx_insn * to an rtx.
10181         (try_combine): Adjust both callers.  Use it once more.
10183 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
10185         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
10186         (chkp_make_static_const_bounds): Search existing
10187         symbol by assembler name.  Use make_decl_one_only.
10188         (chkp_get_zero_bounds_var): Remove node search which
10189         is now performed in chkp_make_static_const_bounds.
10190         (chkp_get_none_bounds_var): Likewise.
10192 2015-04-08  Michael Witten  <mfwitten@gmail.com>
10194         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
10195         to an example.
10197 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10199         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
10201 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
10203         * doc/extend.texi (__sync Builtins): Fix grammar.
10205 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10207         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
10209 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10211         * varasm.c (emit_local): Move definition of align.
10213 2015-04-08  Julian Brown  <julian@codesourcery.com>
10215         * config/nvptx/mkoffload.c (process): Support variable mapping.
10217 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
10219         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
10220         alpha_links **.
10221         (alpha_write_one_linkage): Correct typo.
10223 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
10225         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
10227 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
10229         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
10231 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
10233         * tree-chkp.h (chkp_insert_retbnd_call): New.
10234         * tree-chkp.c (chkp_insert_retbnd_call): New.
10235         * ipa-split.c (insert_bndret_call_after): Remove.
10236         (split_function): Use chkp_insert_retbnd_call.
10237         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
10238         bounds for instrumented functions.
10240 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
10242         PR ipa/65540
10243         * calls.c (initialize_argument_information): When producing tail
10244         call also turn SSA_NAMES passed by references to original PARM_DECLs
10246 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
10248         PR target/65648
10249         * lra-remat.c (do_remat): Process input and non-input insn
10250         registers separately.
10252 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
10254         PR debug/65678
10255         * valtrack.c (debug_lowpart_subreg): New function.
10256         (dead_debug_insert_temp): Use it.
10258         PR middle-end/65680
10259         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
10260         into signed HOST_WIDE_INT the same as negative bit_offset.
10262 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
10264         * ipa-comdats.c (ipa_comdats): Visit all thunks
10265         to set proper comdat group.
10267 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10269         PR target/65489
10270         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
10271         on constants for NEON VSTRUCT modes.
10273 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
10274             Iain Sandoe  <iain@codesourcery.com>
10276         PR target/65351
10277         * configure: Regenerate.
10279 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
10281         PR target/65614
10282         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
10283         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
10284         that LFD is used to load double constants instead of LFS.  Add
10285         defaults for all costs structures.  Add comments for missing
10286         initialization fields.
10287         (size32_cost): Likewise.
10288         (size64_cost): Likewise.
10289         (rs64a_cost): Likewise.
10290         (mpccore_cost): Likewise.
10291         (ppc403_cost): Likewise.
10292         (ppc405_cost): Likewise.
10293         (ppc440_cost): Likewise.
10294         (ppc476_cost): Likewise.
10295         (ppc601_cost): Likewise.
10296         (ppc603_cost): Likewise.
10297         (ppc604_cost): Likewise.
10298         (ppc604e_cost): Likewise.
10299         (ppc620_cost): Likewise.
10300         (ppc630_cost): Likewise.
10301         (ppccell_cost): Likewise.
10302         (ppc750_cost): Likewise.
10303         (ppc7450_cost): Likewise.
10304         (ppc8540_cost): Likewise.
10305         (ppce300c2c3_cost): Likewise.
10306         (ppce500mc_cost): Likewise.
10307         (ppce500mc64_cost): Likewise.
10308         (ppce5500_cost): Likewise.
10309         (ppce6500_cost): Likewise.
10310         (titan_cost): Likewise.
10311         (power4_cost): Likewise.
10312         (power6_cost): Likewise.
10313         (power7_cost): Likewise.
10314         (power8_cost): Likewise.
10315         (ppca2_cost): Likewise.
10316         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
10318         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
10319         instead of XXLOR to copy SFmode to clear out dirty bits created
10320         when SFmode denormals are generated.
10321         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
10322         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
10324 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
10326         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
10327         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
10328         * config/aarch64/aarch64-tune.md: Regenerate.
10330 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
10332         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
10333         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
10334         * config/arm/arm-cores.def (exynos-m1): New core.
10335         * config/arm/arm-tune.md: Regenerate.
10336         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
10337         * config/arm/bpabi.h: Likewise.
10339 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
10341         * ipa-cp (set_single_call_flag): Remove too
10342         restrictive assert.
10344 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
10346         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
10347         GOMP_offload_unregister from the destructor.
10349 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
10351         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
10352         flags for instrumentation thunk.
10353         (chkp_produce_thunks): Likewise.
10355 2015-04-05  Martin Liska  <mliska@suse.cz>
10357         PR ipa/65665
10358         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
10359         has computed data structure.
10360         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
10362 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
10364         * invoke.texi (inline-unit-growth): Increase growth to 20%
10365         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
10367 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
10369         PR target/65647
10370         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
10371         value checking.
10372         (lra_rematerialization_iter): New.
10373         * lra.c (lra): Initialize lra_rematerialization_iter.
10374         Stop updating lra_constraint_new_regno_start after switching of
10375         inheritance and rematerialization.
10376         * lra-remat.c (lra_rematerialization_iter): New.
10377         (lra_remat): Add printing pass iteration.  Do rematerialization
10378         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
10380 2015-04-04  Richard Biener  <rguenther@suse.de>
10382         PR tree-optimization/64909
10383         PR tree-optimization/65660
10384         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
10385         to take a cost vector for scalar iteration cost.
10386         (vect_get_single_scalar_iteration_cost): Likewise.
10387         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
10388         Compute the scalar iteration cost into a cost vector.
10389         (vect_get_known_peeling_cost): Use the scalar cost vector to
10390         account for the cost of the peeled iterations.
10391         (vect_estimate_min_profitable_iters): Likewise.
10392         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
10393         Likewise.
10395 2015-04-04  Alan Modra  <amodra@gmail.com>
10397         PR target/65576
10398         PR target/65240
10399         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
10400         0.0 constant unless TARGET_VSX.
10401         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
10402         alternative.
10404 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
10406         PR ipa/65654
10407         * ipa-inline-transform.c (inline_call): Skip sanity check to work
10408         around the ICE
10410 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
10412         PR ipa/65655
10413         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
10414         speculative indirect edges to avoid ordering issue.
10416 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
10418         PR ipa/65076
10419         * ipa-inline.c (edge_badness): Add combined size to the denominator.
10421 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
10423         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
10424         TYPE_ARTIFICIAL on the .omp_data* types.
10426 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
10428         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
10429         instrumentation thunks.
10431 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
10433         * config/i386/i386.c (ix86_expand_call): Avoid nested
10434         PARALLEL in returned call value.
10436 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
10438         * lto-cgraph.c (input_cgraph_1): Always link instrumented
10439         assembler name with original one.
10441 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
10443         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
10445 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
10447         Revert parts of r216820.
10448         * config/i386/i386.md (movqi_internal): Correct type calculation
10449         for alternatives 3 and 5.
10451 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
10453         PR preprocessor/61977
10454         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
10455         predefine __vector/__bool/__pixel macros nor context sensitive
10456         macros for CLK_ASM.
10457         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
10459 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
10461         * config/pa/pa.c (pa_output_move_double): Directly handle register
10462         indexed memory operand.  Simplify handling of scaled register indexed
10463         memory operands.
10465 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
10467         PR driver/65444
10468         * config/i386/linux-common.h (MPX_SPEC): New.
10469         (CHKP_SPEC): Add MPX_SPEC.
10470         * doc/invoke.texi (-fcheck-pointer-boudns): Document
10471         possible issues with '-z bndplt' support in linker.
10473 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
10475         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
10476         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
10477         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
10478         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
10479         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
10481 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
10483         * config/i386/sync.md (UNSPEC_MOVA): Remove.
10484         (atomic_load<mode>): Change operand 0 predicate to
10485         nonimmediate_operand and fix up the destination when needed.
10486         Use UNSPEC_LDA.
10487         (atomic_loaddi_fpu): Use UNSPEC_LDA.
10488         (atomic_store<mode>): Change operand 1 predicate to
10489         nonimmendate_operand and move the source to register when needed.
10490         Use UNSPEC_STA.
10491         (atomic_store<mode>_1): Use UNSPEC_STA.
10492         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
10493         Fix moves from memory operand.  Use UNSPEC_STA.
10495 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10497         * expmed.c (strict_volatile_bitfield_p): Check that the access will
10498         not cross a MODESIZE boundary.
10499         (store_bit_field, extract_bit_field): Added assertions in the
10500         strict volatile bitfields code path.
10502 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
10504         PR target/65624
10505         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
10506         Increase args array size by one to avoid buffer overflow.
10508 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
10510         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
10511         split_part.
10512         * ipa-inline.c (edge_badness): Add wrapper penalty.
10513         (sum_callers): Move up.
10514         (inline_small_functions): Set single_caller.
10515         * ipa-inline.h (inline_summary): Add single_caller.
10516         * ipa-split.c (split_function): Set split_part.
10517         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
10518         * cgraph.h (cgraph_node): Add split_part.
10520 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
10522         PR target/58945
10523         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
10524         Do not split operands 0 and operands 2 to halfmode.
10525         (atomic_compare_and_swap<mode>): Update for
10526         atomic_compare_and_swap<dwi>_doubleword changes.
10528 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
10530         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
10531         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
10532         no caching is done.
10534 2015-03-31  Martin Liska  <mliska@suse.cz>
10536         PR ipa/65557
10537         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
10538         has already filled up function summary.
10539         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
10541 2015-03-31  Richard Biener  <rguenther@suse.de>
10543         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
10544         of types.
10546 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10548         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
10549         nested functions.
10550         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
10551         (s390_asm_output_function_label): Adapt to new signature of
10552         s390_function_num_hotpatch_hw
10553         Optimise the code generating assembler output.
10554         Add comments to assembler file.
10556 2015-03-31  Richard Biener  <rguenther@suse.de>
10558         PR middle-end/65626
10559         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
10560         of the noreturn call so it is last and cleanup_control_flow_bb
10561         can do the CFG part.
10563 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
10565         PR target/65531
10566         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
10567         same_comdat_group for external symbols.
10568         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
10569         infinite same_comdat_group traversal loop.
10571 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
10573         PR plugins/61176
10574         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
10575         automatically to $headers.
10577 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
10579         PR ipa/65610
10580         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
10581         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
10582         function.
10583         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
10584         Use it.
10585         * ipa-prop.c (param_type_may_change_p): Likewise.
10586         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
10587         (remove_unused_scope_block_p): Add in_ctor_dtor_block
10588         argument.  Before inlining, preserve
10589         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
10590         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
10591         recursive calls.
10592         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
10594 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
10596         PR ipa/65076
10597         * ipa-inline.c (edge_badness): Base denominator on callee's
10598         grwoth squared.
10600 2015-03-27  Martin Jambor  <mjambor@suse.cz>
10602         PR ipa/65478
10603         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
10604         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
10605         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
10606         node_calling_single_call.
10607         * ipa-cp.c (count_callers): New function.
10608         (set_single_call_flag): Likewise.
10609         (initialize_node_lattices): Count callers and set single_flag_call if
10610         necessary.
10611         (incorporate_penalties): New function.
10612         (good_cloning_opportunity_p): Use it, dump new flags.
10613         (propagate_constants_topo): Set node_within_scc flag if appropriate.
10614         * doc/invoke.texi (ipa-cp-recursion-penalty,
10615         ipa-cp-single-call-pentalty): Document.
10617 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
10619         PR ipa/65588
10620         * symtab.c (symtab_node::get_partitioning_class): Register vars
10621         are duplicated.
10622         * varpool.c (symbol_table::output_variables) Do not assemble unefined
10623         decls for non-symbols.
10625 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
10627         PR target/65248
10628         * output.h (default_binds_local_p_2): New.
10629         * varasm.c (default_binds_local_p_2): Renamed to ...
10630         (default_binds_local_p_3): This.  Don't return true on protected
10631         data symbol if protected data may be external.
10632         (default_binds_local_p): Use default_binds_local_p_3.
10633         (default_binds_local_p_1): Likewise.
10634         (default_binds_local_p_2): New.
10635         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
10636         default_binds_local_p_2 if TARGET_MACHO is undefined.
10638 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
10640         PR target/65593
10641         * config/i386/i386.c (legitimize_pic_address): If base
10642         is SYMBOL_REF or LABEL_REF using %rip addressing, force
10643         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
10645 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
10647         PR target/65531
10648         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
10649         comdat groups.
10651 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
10653         PR ipa/65600
10654         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
10655         of optimized out indirect call.
10656         (redirect_to_unreachable): Always build symbol table node for
10657         BUILT_IN_UNREACHABLE
10659 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
10661         PR target/65407
10662         * ira-costs.c (record_reg_classes): Process all constraint string
10663         containing 0-9.
10665 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
10667         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
10668         memory_operand.
10670         PR target/65052
10671         * config/c6x/constraints.md (S3): New constraint.
10672         * config/c6x/c6x.md (real_jump): Use it.
10674 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
10676         PR middle-end/65595
10677         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
10678         do redirection if the call is not optimized out.
10680 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
10682         PR target/65495
10683         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
10684         (fchkp-check-incomplete-type): Add LTO.
10685         (fchkp-zero-input-bounds-for-main): Likewise.
10686         (fchkp-first-field-has-own-bounds): Likewise.
10687         (fchkp-narrow-bounds): Likewise.
10688         (fchkp-narrow-to-innermost-array): Likewise.
10689         (fchkp-use-static-bounds): Likewise.
10690         (fchkp-use-static-const-bounds): Likewise.
10691         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
10693 2015-03-27  Marek Polacek  <polacek@redhat.com>
10695         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
10697 2015-03-27  Marek Polacek  <polacek@redhat.com>
10699         PR sanitizer/65583
10700         * ubsan.c (ubsan_create_edge): New function.
10701         (instrument_bool_enum_load): Call it.
10702         (instrument_nonnull_arg): Likewise.
10703         (instrument_nonnull_return): Likewise.
10704         (instrument_object_size): Likewise.
10706 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
10708         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
10709         auto_vec.
10711 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
10713         PR lto/65536
10714         * lto-streamer.h (class lto_location_cache): New.
10715         (struct data_in): Add location_cache.
10716         (lto_input_location): Update prototype.
10717         (stream_input_location_now): New.
10718         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
10719         pointer to location.
10720         (stream_input_location): Update.
10721         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
10722         (warn_odr): Apply location cache before warning.
10723         (lto_input_location): Update prototype.
10724         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
10725         Use stream_input_location_now.
10726         * lto-streamer-in.c (lto_location_cache::current_cache): New static
10727         variable.
10728         (lto_location_cache::cmp_loc): New function.
10729         (lto_location_cache::apply_location_cache): New function.
10730         (lto_location_cache::accept_location_cache): New function.
10731         (lto_location_cache::revert_location_cache): New function.
10732         (lto_location_cache::input_location): New function.
10733         (lto_input_location): Do location caching.
10734         (stream_input_location_now): New function.
10735         (input_eh_region, input_struct_function_base): Use
10736         stream_input_location_now.
10737         (lto_data_in_create): use new.
10738         (lto_data_in_delete): Use delete.
10739         * tree-streamer-in.c (unpack_ts_block_value_fields,
10740         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
10741         lto_input_ts_exp_tree_pointers): Update for cached location api.
10743 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
10745         PR ipa/65076
10746         * passes.def: Add pass_nothrow.
10747         * ipa-pure-const.c: (pass_data_nothrow): New.
10748         (pass_nothrow): New.
10749         (pass_nothrow::execute): New.
10750         (make_pass_nothrow): New.
10751         * tree-pass.h (make_pass_nothrow): Declare.
10753 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
10755         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
10756         edge to change by speculation resolution or redirection.
10757         (edge_set_predicate): Likewise.
10758         (inline_summary_t::duplicate): Likewise.
10759         (remap_edge_summaries): Likewise.
10761 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
10763         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
10764         New macros.
10765         (can_inline_edge_p): Relax option matching for always inline functions.
10767 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
10769         PR target/65561
10770         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
10771         Check operand 4 and operand 0 for equality.
10772         (avx512f_vextract<shuffletype>32x4_1_maskm):
10773         Check operand 6 and operand 0 for equality.
10774         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
10775         for equality.
10776         (vec_extract_hi_<mode>_maskm): Ditto.
10778 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
10780         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
10781         dead calls back to live.
10782         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
10783         cross check to ...
10784         (cgraph_node::verify_node): ... here; verify only callee edges,
10785         not caller.
10786         * cif-code.def (CILK_SPAWN): New code.
10788 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
10790         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
10791         (edge_set_predicate): Use it to mark unreachable edges.
10792         (inline_summary_t::duplicate): Remove unnecesary code.
10793         (remap_edge_summaries): Likewise.
10794         (dump_inline_summary): Report contains_cilk_spawn.
10795         (compute_inline_parameters): Compute contains_cilk_spawn.
10796         (inline_read_section, inline_write_summary): Stream
10797         contains_cilk_spawn.
10798         * ipa-inline.c (can_inline_edge_p): Do not touch
10799         DECL_STRUCT_FUNCTION that may not be available;
10800         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
10801         remove check for callee_fun->can_throw_non_call_exceptions and
10802         replace it by optimization attribute check; check for flag_exceptions.
10803         * ipa-inline-transform.c (inline_call): Maintain
10804         DECL_FUNCTION_PERSONALITY
10805         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
10807 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
10809         PR tree-optimization/65551
10810         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
10811         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
10813 2015-03-26  Richard Biener  <rguenther@suse.de>
10815         PR middle-end/65555
10816         * tree-cfg.c (verify_gimple_call): Do not require a call to
10817         have no LHS if it wasn't recognized as control altering yet.
10819 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
10821         PR tree-optimization/64715
10822         * passes.def: Add another instance of pass_object_sizes before ccp1.
10823         * tree-object-size.c (pass_object_sizes::execute): In
10824         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
10825         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
10826         __bos result and the computed constant.  Remove redundant
10827         checks, obsoleted by gimple_call_builtin_p test.
10829         * var-tracking.c (variable_tracking_main_1): Don't track
10830         variables for targetm.no_register_allocation targets.
10832 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
10834         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
10835         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
10837 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
10839         PR target/65569
10840         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
10841         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
10842         0.0 is correctly setup.
10843         (extenddftf2_internal): Likewise.
10845 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
10847         PR tree-optimization/65177
10848         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
10849         (bb_in_bbs): New.
10850         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
10851         edges not adjacent on the path to the original code.
10853 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
10855         PR bootstrap/65537
10856         * doc/install.texi (Building a native compiler): Document new
10857         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
10858         configuration assumes that the host supports the linker plugin.
10860 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
10862         PR target/65508
10863         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
10864         chain for generated call.
10866 2015-03-25  Richard Biener  <rguenther@suse.de>
10868         * passes.c (pass_manager::execute_early_local_passes): Guard
10869         execution of pass_chkp_instrumentation_passes with
10870         flag_check_pointer_bounds.
10871         (pass_chkp_instrumentation_passes::gate): Likewise.
10873 2015-03-25  Martin Liska  <mliska@suse.cz>
10875         PR tree-optimization/65538
10876         * symbol-summary.h (function_summary::~function_summary):
10877         Relese memory for allocated summaries.
10878         (function_summary::release): New function.
10880 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
10882         PR lto/65515
10883         * lto-streamer-out.c (DFS::worklist): New struct.
10884         (DFS::worklist_vec): New data member.
10885         (DFS::next_dfs_num): Remove.
10886         (DFS::DFS): Rewritten using worklist instead of recursion,
10887         using most of code from DFS::DFS_write_tree.
10888         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
10889         pass it to DFS_write_tree calls.
10890         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
10891         quick initial checks push it into worklist_vec and return.
10893 2015-03-25  Richard Biener  <rguenther@suse.de>
10895         PR middle-end/65519
10896         * genmatch.c (expr::gen_transform): Re-write to avoid
10897         using gimple_build.
10899 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
10901         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
10903 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
10905         * config/arm/arm.opt (print_tune_info): New option.
10906         * config/arm/arm.c (arm_print_tune_info): New function.
10907         (arm_file_start): Call arm_print_tune_info.
10908         * config/arm/arm-protos.h (struct tune_params): Add comment.
10909         * doc/invoke.texi (@item -mprint-tune-info): New item.
10910         (-mtune): mention it in ARM Option Summary.
10912 2015-03-25  DJ Delorie  <dj@redhat.com>
10914         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
10915         correct clause.
10917 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
10918             Martin Liska  <mliska@suse.cz>
10920         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
10921         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
10922         (sem_item::add_type): New function.
10923         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
10924         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
10925         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
10926         (sem_function::equals_wpa): Fix typo.
10927         * ipa-icf.h (sem_item::add_type): New function.
10928         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
10929         order.
10931 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
10933         PR tree-optimization/65533
10934         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
10935         with swapped operands, call vect_free_slp_tree on
10936         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
10937         vector.
10939 2015-03-24  Richard Biener  <rguenther@suse.de>
10941         PR middle-end/65517
10942         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
10943         for fixup if necessary.
10945 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
10947         * doc/extend.texi (Function Attributes): Add @cindex entries
10948         for all attributes and regularize their format.  Delete text
10949         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
10950         information about "eightbit_data", "tiny_data", and "model"
10951         variable attributes to the Variable Attributes section.  Fix
10952         some obvious typos and copy-editing issues.
10953         (Variable Attributes, Type Attributes): Likewise add/fix
10954         @cindex entries for all attributes.
10956 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
10958         PR target/65523
10959         * tree-chkp.c (chkp_build_returned_bound): Ignore
10960         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
10962 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
10964         PR target/65505
10965         * config/sh/predicates.md (simple_mem_operand,
10966         displacement_mem_operand): Add test for reg.
10967         (short_displacement_mem_operand): Test for displacement_mem_operand
10968         before invoking sh_disp_addr_displacement.
10969         * config/sh/constraints.md (Sdd, Sra): Simplify.
10970         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
10971         Remove redundant displacement_mem_operand tests.
10973 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
10975         PR target/65296
10976         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
10977         the same -mmcu=MCU more than once.
10979 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
10981         PR bootstrap/65522
10982         * ipa-devirt.c: Remove duplicate demangle.h include.
10984         PR target/65504
10985         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
10986         on the pseudo.
10987         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
10988         REG_POINTER on *destptr after adjusting it for prologue size.
10990         PR ipa/65521
10991         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
10992         ultimate_alias_target ()->order ints instead of
10993         ultimate_alias_target () pointers.
10995 2015-03-23  Richard Biener  <rguenther@suse.de>
10997         PR tree-optimization/65518
10998         * tree-vect-stmts.c (vectorizable_load): Reject single-element
10999         interleaving cases we generate absymal code for.
11001 2015-03-23  Richard Biener  <rguenther@suse.de>
11003         PR tree-optimization/65494
11004         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
11005         matches here.
11006         (vect_analyze_slp_instance): But do that here, always and once.
11008 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11010         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
11011         adding T or multiplying by T+1 and subracting T.
11013 2015-03-22  Jeff Law  <law@redhat.com>
11015         PR rtl-optimization/64317
11016         * Makefile.in (OBJS): Add gcse-common.c
11017         * gcse.c: Include gcse-common.h
11018         (struct modify_pair_s): Move structure definition to gcse-common.h
11019         (compute_transp): Move function to gcse-common.c.
11020         (canon_list_insert): Similarly.
11021         (record_last_mem_set_info): Break out some code and put it into
11022         gcse-common.c.  Call into the new common code.
11023         (compute_local_properties): Pass additional arguments to compute_transp.
11024         * postreload-gcse.c: Include gcse-common.h and df.h
11025         (modify_mem_list_set, blocks_with_calls): New variables.
11026         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
11027         (get_bb_avail_insn): Pass in the expression index too.
11028         (alloc_mem): Allocate memory for the new bitmaps and lists.
11029         (free_mem): Free memory for the new bitmaps and lists.
11030         (insert_expr_in_table): Record a bitmap index for each entry we
11031         add to the table.
11032         (record_last_mem_set_info): Call into common code in gcse-common.c.
11033         (get_bb_avail_insn): If no available insn was found in the requested
11034         BB.  If BB has a single predecessor, see if the expression is
11035         transparent in BB and available in that single predecessor.
11036         (compute_expr_transp): New wrapper for compute_transp.
11037         (eliminate_partially_redundant_load): Pass expression's bitmap_index
11038         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
11039         (gcse_after_reload_main): If there are elements in the hash table,
11040         then compute transparency for all the elements in the hash table.
11041         * gcse-common.h: New file.
11042         * gcse-common.c: New file.
11044 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
11046         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
11047         as an adjective.
11048         (System Headers): Likewise.
11049         (Ifdef): Likewise.
11050         (Traditional macros): Likewise.
11051         (Invocation): Likewise.
11052         (Option Index): Likewise.
11053         * doc/cppopts.texi (-M): Likewise.
11054         (-finput-charset): Likewise.
11055         (--help): Likewise.
11056         * doc.invoke.texi (AVR Options): Likewise.
11057         (V850 Options): Likewise.
11059 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
11061         PR ipa/65475
11062         * ipa-devirt.c: Include demangle.h
11063         (odr_type_d): Add field rtti_broken.
11064         (odr_subtypes_equivalent_p): Do not require name to match.
11065         (compare_virtual_tables): Fix typo; if type already has ODR violation,
11066         bypass the tests; be ready for function referneces in vtables that are
11067         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
11068         (warn_odr): Give up for nameless types.
11069         (warn_types_mismatch): Report mismatch in mangled names;
11070         report mismatch in anonymous namespaces; look into component types to
11071         give useful error; report when mismatch is dragged in from other ODR
11072         type.
11073         (odr_types_equivalent_p): Match types for being polymorphic; avoid
11074         duplicated diagnostics.
11075         (add_type_duplicate): Reorder checks so more informative ones come
11076         first; fix typo; do not output "the extra base is defined here" when
11077         we did not warn.
11078         (BINFO_N_BASE_BINFOS): Relax sanity check.
11080 2015-03-22  Martin Liska  <mliska@suse.cz>
11081             Jakub Jelinek  <jakub@redhat.com>
11083         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
11084         masks that can potentially include a builtin.
11085         (ix86_add_new_builtins): Introduce fast filter for isa values
11086         that cannot trigger builtin inclusion.
11088 2015-03-22  Martin Liska  <mliska@suse.cz>
11090         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
11091         (sem_item::update_hash_by_local_refs): Likewise.
11092         (sem_variable::get_hash): Empty line is fixed.
11093         (sem_item_optimizer::execute): Include adding of hash references.
11094         (sem_item_optimizer::update_hash_by_addr_refs): New function.
11095         (sem_item_optimizer::build_hash_based_classes): Use local hash.
11096         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
11097         (sem_item::update_hash_by_local_refs): Likewise.
11099 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
11101         PR ipa/65502
11102         * ipa-comdats.c (enqueue_references): Walk through thunks.
11103         (ipa_comdats): Likewise.
11104         (set_comdat_group_1): New function.
11106 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
11108         PR ipa/65475
11109         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
11110         non-polymorphic
11112 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
11113             Gerald Pfeifer  <gerald@pfeifer.com>
11115         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
11117 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
11118             Sandra Loosemore  <sandra@codesourcery.com>
11120         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
11121         function parameter declaration.
11122         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
11123         Update arguments to nios2_adjust_call_address().
11124         (sibcall_internal): Rename from *sibcall.
11125         (sibcall_value_internal): Rename from *sibcall_value.
11126         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
11127         (nios2_large_got_address): Add target temp reg parameter.
11128         (nios2_got_address): Adjust call to nios2_large_got_address, add
11129         force_reg around it.
11130         (nios2_load_pic_address): Add target temp reg parameter, replace call
11131         to nios2_got_address with corresponding code.
11132         (nios2_legitimize_constant_address): Update call to
11133         nios2_load_pic_address.
11134         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
11135         to use temp reg for PIC loading purposes.
11136         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
11137         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
11138         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
11140 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
11142         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
11143         usage of "the @option{...}".
11144         (-Wopenmp-simd): Likewise.
11145         (-fsanitize-recover): Likewise.
11146         (-fsanitize-undefined-trap-on-error): Likewise.
11147         (-flto): Likewise.
11148         (tracer-dynamic-coverage-feedback): Likewise.
11149         (reorder-block-duplicate-feedback): Likewise.
11150         (loop-unroll-jam-size): Likewise.
11151         (-B): Likewise.
11152         (-I-): Likewise.
11153         (-mabs=legacy): Likewise.
11154         (-mupper-regs-df): Likewise.
11155         (-mupper-regs-sf): Likewise.
11156         (-mpointers-to-nested-functions): Likewise.
11158 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
11160         * doc/extend.texi (Cilk Plus Builtins): Add markup.
11162 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
11164         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
11165         additional index entries and cross-references.
11166         (-fchkp-check-incomplete-type): Likewise.
11167         (-fchkp-first-field-has-own-bounds): Likewise.
11168         (-fchkp-narrow-to-innermost-array): Likewise.
11169         (-fchkp-use-fast-string-functions): Likewise.
11170         (-fchkp-use-nochk-string-functions): Likewise.
11171         (-fchkp-use-static-const-bounds): Likewise.
11172         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
11173         (-fchkp-instrument-marked-only): Likewise.
11174         (-fchkp-use-wrappers): Likewise.
11175         (-static-libmpx): Likewise.
11176         (-static-libmpxwrappers): Likewise.
11177         * doc/extend.texi (bnd_legacy): Likewise.
11178         (bnd_instrument): Likewise.
11179         (bnd_variable_size): Likewise.
11180         (Pointer Bounds Checker builtins): Likewise.
11182 2015-03-21  Tom de Vries  <tom@codesourcery.com>
11184         PR tree-optimization/65458
11185         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
11186         * cgraph.h (cgraph_node): Add parallelized_function field.
11187         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
11188         (input_overwrite_node): Read parallelized_function field.
11189         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
11190         parallelized_function on cgraph_node for child_fn.
11191         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
11192         Remove include of gt-tree-parloops.h.
11193         (parallelized_functions): Remove static variable.
11194         (parallelized_function_p): Rewrite using parallelized_function field of
11195         cgraph_node.
11196         (create_loop_fn): Remove adding to parallelized_functions.
11197         * Makefile.in (GTFILES): Remove tree-parloops.c
11199 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
11201         PR rtl-optimization/64366
11202         * lra.c (lra_update_insn_regno_info): Consider regs in
11203         CALL_INSN_FUNCTION_USAGE memory.
11205 2015-03-20  Richard Biener  <rguenther@suse.de>
11207         PR middle-end/64715
11208         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
11209         for type comparison and gcc_checking_assert.
11210         (chrec_fold_plus_poly_poly): Likewise.
11211         (chrec_fold_multiply_poly_poly): Likewise.
11212         (chrec_convert_1): Likewise.
11213         * gimplify.c (gimplify_expr): Remove premature folding of
11214         &X + CST to &MEM[&X, CST].
11216 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
11218         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
11219         already is final.
11220         (ipa_inline): Recompute inline_failed codes.
11221         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
11222         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
11223         CIF_FINAL_ERROR.
11225 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
11227         PR rtl-optimization/60851
11228         * recog.c (constrain_operands): Accept a pseudo register before reload
11229         for LRA enabled targets.
11231 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
11233         PR target/65240
11234         * config/rs6000/predicates.md (easy_fp_constant): Remove special
11235         -ffast-math handling that kept non-0 constants live in the RTL
11236         until reload.  Remove logic testing the number of instructions it
11237         took to create a constant in a GPR that was never used, due to a
11238         test for soft-float earlier.
11239         (memory_fp_constant): Delete, no longer used.
11241         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
11242         alternatives for loading non-0 constants into GPRs for hard
11243         floating point that is no longer needed due to changes in
11244         easy_fp_constant.  Add support for loading 0.0 into GPRs.
11245         (mov<mode>_hardfloat32): Likewise.
11246         (mov<mode>_hardfloat64): Likewise.
11247         (mov<mode>_64bit_dm): Likewise.
11248         (movtd_64bit_nodm): Likewise.
11249         (pre-reload move FP constant define_split): Delete define_split,
11250         since it is no longer used.
11251         (extenddftf2_internal): Remove GHF constraints that are not valid
11252         for extenddftf2.
11254 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
11256         PR rtl-optimization/63491
11257         * lra-constraints.c (check_and_process_move): Use src instead of
11258         sreg.  Remove some dead code.
11260 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
11262         PR ipa/65380
11263         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
11264         (sem_variable::merge): Likewise.
11266 2015-03-19  Martin Liska  <mliska@suse.cz>
11268         PR ipa/65465
11269         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
11270         all fields of cgraph_thunk_info.
11272 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
11274         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
11275         clone instrumented thunks.
11277 2015-03-19  Richard Biener  <rguenther@suse.de>
11279         Revert
11280         2015-03-10  Richard Biener  <rguenther@suse.de>
11282         PR middle-end/63155
11283         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
11284         * tree-ssa-coalesce.c: Include timevar.h.
11285         (attempt_coalesce): Handle graph being NULL.
11286         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
11287         Split out abnormal coalescing to ...
11288         (perform_abnormal_coalescing): ... this function.
11289         (coalesce_ssa_name): Perform abnormal coalescing without computing
11290         live/conflict.
11291         (verify_ssa_coalescing_worker): New function.
11292         (verify_ssa_coalescing): Likewise.
11294 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11295             Jakub Jelinek  <jakub@redhat.com>
11297         PR sanitizer/65400
11298         * tsan.c (instrument_gimple): Clear tail call flag on
11299         calls.
11301 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
11303         PR sanitizer/65400
11304         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
11305         call in the return bb.
11306         (find_split_points): Add RETURN_BB argument, don't call
11307         find_return_bb.
11308         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
11309         if true append TSAN_FUNC_EXIT internal call after the call to
11310         the split off function.
11311         (execute_split_functions): Call find_return_bb here.
11312         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
11313         Adjust find_split_points and split_function calls.
11315 2015-03-18  DJ Delorie  <dj@redhat.com>
11317         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
11318         (iorqi3_virt): Likewise.
11320 2015-03-18  Tom de Vries  <tom@codesourcery.com>
11322         * tree-parloops.c (parallelize_loops): Make static.
11323         * tree-parloops.h (parallelize_loops): Remove extern declaration.
11325 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
11327         PR middle-end/64491
11328         Revert:
11329         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
11331         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
11332         condition would be removed due to undefined behaviour.
11334 2015-03-18  Martin Liska  <mliska@suse.cz>
11336         PR ipa/65432
11337         * cgraph.c (cgraph_node::get_create): Remove unnecessary
11338         xstrdup_for_dump wrapper.
11339         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
11340         sem_item::name.
11341         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
11342         with xstrdup_for_dump.
11343         (sem_variable::equals): Likewise.
11344         (sem_item_optimizer::read_section): Use symtab_node::name instead of
11345         sem_item::name.
11346         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
11347         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
11348         symtab_node::asm_name with xstrdup_for_dump.
11349         (congruence_class::dump): Use symtab_node::name instead of
11350         sem_item::name.
11351         * ipa-icf.h (symtab_node::name): Remove.
11352         (symtab_node::asm_name): Likewise.
11354 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
11356         PR tree-optimization/65450
11357         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
11358         function.
11359         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
11360         it instead of duplicate_ssa_name_ptr_info.
11362         PR target/65222
11363         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
11365 2015-03-18  Richard Biener  <rguenther@suse.de>
11367         * tree-data-ref.h (struct access_matrix): Remove.
11368         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
11369         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
11370         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
11371         (am_vector_index_for_loop): Likewise.
11372         (struct data_reference): Remove access_matrix member.
11373         (DR_ACCESS_MATRIX): Remove.
11374         (lambda_vector_new): Add comment.
11375         (lambda_matrix_new): Use XOBNEWVEC.
11377 2015-03-18  Richard Biener  <rguenther@suse.de>
11379         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
11380         (pass_ch::execute): Cleanup the CFG only if we did sth.
11381         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
11383 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11385         * expmed.c (synth_mult): Use std::swap instead of manually
11386         swapping algorithms.
11388 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
11390         PR target/65078
11391         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
11393 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
11395         PR target/65296
11396         * config/avr/avr.opt (-nodevicelib): New option.
11397         * doc/invoke.texi (AVR Options): Document it.
11398         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
11399         libgcc.a, libc.a, libm.a.
11400         * config/avr/specs.h: Same.
11401         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
11402         which don't (directly) depend on the device.  Print more help.
11403         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
11404         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
11405         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
11406         case of an error.
11407         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
11408         for specs file name.
11409         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
11410         * config/avr/avr-mcus.def: Adjust initializers and comments.
11412 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
11414         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
11415         DECL_ONE_ONLY to check if decl is one only.
11416         * ipa-split.c (consider_split): Limit splitt of one only functions.
11418 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
11420         PR tree-optimization/65427
11421         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
11422         functions.
11423         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
11425 2015-03-16  Marek Polacek  <polacek@redhat.com>
11427         * cgraph.h (add_new_static_var): Remove declaration.
11428         * varpool.c (add_new_static_var): Remove function.
11430 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
11432         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
11433         instead of vec<tree> * with vec_alloc and release for args.
11434         Adjust all users.
11436         PR middle-end/65431
11437         * omp-low.c (delete_omp_context): Only splay_tree_delete
11438         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
11439         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
11441 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
11443         PR sanitizer/64820
11444         * cfgexpand.c (align_base): New function.
11445         (alloc_stack_frame_space): Call it.
11446         (expand_stack_vars): Align prev_frame to be sure
11447         data->asan_vec elements aligned properly.
11449 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
11451         PR middle-end/65409
11452         * expr.c (store_field): Do not do a direct block copy if the source is
11453         a PARALLEL with BLKmode.
11455 2015-03-16  Tom de Vries  <tom@codesourcery.com>
11457         PR middle-end/65414
11458         Revert:
11459         2015-03-12  Tom de Vries  <tom@codesourcery.com>
11461         PR rtl-optimization/64895
11462         * lra-lives.c (check_pseudos_live_through_calls): Use
11463         actual_call_used_reg_set instead of call_used_reg_set, if available.
11465 2015-03-16  Alan Modra  <amodra@gmail.com>
11467         PR target/63150
11468         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
11469         Modify Z->r bswapdi splitter to use dest in place of scratch.
11470         In r->Z and Z->r bswapdi splitter rename word_high, word_low
11471         to word1, word2 and rearrange logic to suit.
11472         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
11473         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
11474         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
11475         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
11476         early clobber.
11478 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
11480         PR tree-optimization/65369
11481         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
11482         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
11483         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
11485         PR tree-optimization/65418
11486         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
11487         are casts in the first PLUS_EXPR operand, ensure tbias and
11488         *totallowp are in the inner type.
11490         PR rtl-optimization/65401
11491         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
11492         argument.  If true, adjust_address_nv of x with big-endian
11493         correction for the mode widening to GET_MODE (y).
11494         (make_field_assignment): Don't do MEM mode widening here.
11495         Use MEM_P instead of GET_CODE == MEM.
11497 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
11499         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
11500         the external decls.
11502 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11504         PR target/64600
11505         * config/arm/arm.c (arm_gen_constant, AND case): Use
11506         ARM_SIGN_EXTEND when constructing AND mask.
11508 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11510         * graph.c (print_graph_cfg): Make function names visible and append
11511         parenthesis to it.  Also make groups of basic blocks belonging to the
11512         same function visible.
11514 2015-03-12  Richard Biener  <rguenther@suse.de>
11516         PR middle-end/44563
11517         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
11518         to avoid quadratic behavior with inline expansion splitting blocks.
11519         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
11520         with the successor if the predecessor will be merged with it.
11521         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
11522         entry block with its successor.
11524 2015-03-13  Richard Biener  <rguenther@suse.de>
11526         PR middle-end/44563
11527         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
11528         (cleanup_tree_cfg_1): Do not call it.
11529         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
11530         (fixup_noreturn_call): Mark the stmt as control altering.
11531         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
11532         here.
11533         (pass_data_fixup_cfg): Produce a dump file.
11534         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
11535         (need_noreturn_fixup): New global.
11536         (pass_dominator::execute): Fixup queued noreturn calls.
11537         (optimize_stmt): Queue calls that became noreturn for fixup.
11538         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
11539         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
11540         (el_to_fixup): New global.
11541         (eliminate_dom_walker::before_dom_childre): Queue calls that
11542         became noreturn for fixup.
11543         (eliminate): Fixup queued noreturn calls.
11544         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
11545         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
11546         (substitute_and_fold_dom_walker::before_dom_children): Queue
11547         alls that became noreturn for fixup.
11548         (substitute_and_fold): Fixup queued noreturn calls.
11550 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
11552         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
11553         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
11554         are building; for methods check ODR type of class they belong to if
11555         they may lead to a polymorphic call.
11556         (sem_function::compare_polymorphic_p): Be bit smarter about testing
11557         when function may lead to a polymorphic call.
11558         (sem_function::compare_type_list): Remove.
11559         (sem_variable::equals): Update use of compatible_types_p.
11560         (sem_variable::parse_tree_refs): Remove.
11561         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
11562         cdtor.
11563         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
11564         matching here.
11565         (func_checker::compatible_polymorphic_types_p): Break out from ...
11566         (unc_checker::compatible_types_p): ... here.
11567         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
11568         Declare.
11569         (unc_checker::compatible_types_p): Update.
11570         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
11571         Remove.
11573 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11575         PR rtl-optimization/65235
11576         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
11577         When first element of vec_concat is const_int, calculate its size
11578         using second element.
11580 2015-03-12  Richard Biener  <rguenther@suse.de>
11582         PR middle-end/65270
11583         * fold-const.c (operand_equal_p): Fix ordering of resetting
11584         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
11586 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11588         * config/s390/s390.c (s390_reorg): Move code to output nops after label
11589         to s390_reorg ().
11590         (s390_asm_output_function_label): Likewise.
11591         * config/s390/s390.c (s390_asm_output_function_label):
11592         Fix function label alignment with -mhtopatch.
11593         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
11594         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
11595         ("nop_2_byte"): New define_insn.
11596         ("nop_4_byte"): Likewise.
11597         ("nop_6_byte"): Likewise.
11598         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
11599         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
11601 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
11603         PR target/65103
11604         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
11605         register.
11607 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
11609         PR target/65044
11610         * toplev.c (process_options): Restrict Pointer Bounds Checker
11611         usage with Address Sanitizer.
11613 2015-03-12  Richard Biener  <rguenther@suse.de>
11615         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
11616         to split on.
11617         * omp-low.c (expand_omp_taskreg): Split block before removing
11618         the stmt.
11619         (expand_omp_target): Likewise.
11620         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
11621         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
11622         stmt to split_block.
11624 2015-03-12  Tom de Vries  <tom@codesourcery.com>
11626         PR rtl-optimization/64895
11627         * lra-lives.c (check_pseudos_live_through_calls): Use
11628         actual_call_used_reg_set instead of call_used_reg_set, if available.
11630 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
11632         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
11633         (cgraph_node::remove): Likewise.
11634         (cgraph_node::get_untransformed_body): Likewise.
11635         * varpool.c (varpool_node::remove): Likewise.
11636         (varpool_node::get_constructor): Add sanity check.
11638 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
11640         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
11641         old GCC versions.
11642         (-fabi-compat-version): Likewise.
11643         (-ffriend-injection): Likewise.
11644         (-Wdeclaration-after-statement): Likewise.
11645         (-fomit-frame-pointer): Likewise.
11646         (-ftree-coalesce-inlined-vars): Likewise.
11647         (-fvisibility=): Likewise.
11648         * doc/extend.texi (Typeof): Likewise.
11649         (Zero Length): Likewise.
11650         (Escaped Newlines): Likewise.
11651         (Compound Literals): Likewise.
11652         (Function Attributes): Likewise.
11653         (Label Attributes): Likewise.
11654         (Type Attributes): Likewise.
11655         (Function Names): Likewise.
11656         (Other Builtins): Likewise.
11657         (Function Specific Option Pragmas): Likewise.
11658         (C++ Interface): Likewise.
11660 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
11662         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
11664 2015-03-11  Marek Polacek  <polacek@redhat.com>
11666         PR tree-optimization/65388
11667         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
11669 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
11671         PR target/65296
11672         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
11673         * configure: Regenerate.
11674         * config.in: Regenerate.
11675         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
11676         [-mn-flash]: Document it.
11677         [__AVR_ARCH__]: Document avrtiny.
11679         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
11680         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
11681         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
11683 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11685         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
11687 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
11689         PR target/65242
11690         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
11691         allow reloads of PLUS in floating point/VSX registers.
11693 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
11695         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
11696         crypto_sha256_fast.
11697         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
11699 2015-03-11  Richard Biener  <rguenther@suse.de>
11701         PR tree-optimization/65310
11702         * tree-sra.c (build_ref_for_offset): Also preserve larger
11703         alignment.
11705 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
11707         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
11709 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
11711         PR target/65368
11712         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
11713         new define_expand.
11714         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
11716 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
11718         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
11719         (sem_function::equals_wpa): ... here.
11721 2015-03-10  Marek Polacek  <polacek@redhat.com>
11722             Jakub Jelinek  <jakub@redhat.com>
11724         PR sanitizer/65367
11725         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
11726         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
11727         separately.
11729 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
11731         PR target/65286
11732         * config/rs6000/t-linux: For powerpc64* target set
11733         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
11735 2015-03-10  Richard Biener  <rguenther@suse.de>
11737         PR middle-end/44563
11738         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
11739         for redirect_all_calls.
11741 2015-03-10  Marek Polacek  <polacek@redhat.com>
11743         * gdbinit.in (pcfun): Define and document.
11745 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
11747         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
11748         of libgomp-plugin.h.
11749         (find_target_compiler): Support a case when the path to gcc is
11750         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
11751         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
11752         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
11753         libgomp-plugin.h.
11754         (main): Use GCC_INSTALL_NAME as target_driver_name.
11755         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
11756         define.
11757         (mkoffload.o): Remove obsolete include path and defines.
11758         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
11760 2015-03-10  Richard Biener  <rguenther@suse.de>
11762         PR middle-end/63155
11763         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
11764         * tree-ssa-coalesce.c: Include timevar.h.
11765         (attempt_coalesce): Handle graph being NULL.
11766         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
11767         Split out abnormal coalescing to ...
11768         (perform_abnormal_coalescing): ... this function.
11769         (coalesce_ssa_name): Perform abnormal coalescing without computing
11770         live/conflict.
11771         (verify_ssa_coalescing_worker): New function.
11772         (verify_ssa_coalescing): Likewise.
11774 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
11776         PR target/65296
11777         * config.gcc (extra_options) [avr]: Remove.
11778         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
11779         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
11780         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
11782         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
11783         (-mmcu=): Add Var and MissingArgError properties.
11784         (-march=): Remove.
11785         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
11786         * config/avr/t-multilib: Regenerate.
11787         * config/avr/specs.h: New file.
11788         * config/avr/driver-avr.c: New file.
11789         * config/avr/genopt.sh: Remove file.
11790         * config/avr/avr-tables.opt: Remove file.
11791         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
11792         * config/avr/avr-c.c: Same.
11793         * avr-arch.h: Same.
11794         (avr_current_device): Remove proto.
11795         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
11796         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
11797         (EXTRA_SPEC_FUNCTIONS): Define.
11798         (avr_devicespecs_file): New specs function proto.
11799         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
11800         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
11801         (avr_current_device): Remove definition and usage.
11802         (avr_set_core_architecture): New static function.
11803         (avr_option_override): Use it.
11804         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
11805         (mcu_name): New static array.
11806         (comparator, avr_archs_str, avr_mcus_str): New static functions.
11807         (avr_inform_devices, avr_inform_core_architectures): New functions.
11808         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
11809         (avrlibc.h) [WITH_AVRLIBC]: Include.
11810         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
11811         (print_mcu): Rewrite from scratch.
11812         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
11813         Forward to avr-specific specs defined in device-specs file.
11814         * config/avr/t-avr (driver-avr.o): New rule.
11815         (avr-devices.o): Depend on avr-arch.h.
11816         (avr-mcus): No more depend on avr-tables.opt.
11817         (avr-tables.opt): Remove rule.
11818         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
11820 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
11822         * c-family/c.opt (fchkp-use-wrappers): New.
11823         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
11824         (chkp_wrap_function): New.
11825         (chkp_build_instrumented_fndecl): Support wrapped
11826         functions.
11827         * doc/invoke.texi (-fcheck-pointer-bounds): New.
11828         (-fchkp-check-incomplete-type): New.
11829         (-fchkp-first-field-has-own-bounds): New.
11830         (-fchkp-narrow-bounds): New.
11831         (-fchkp-narrow-to-innermost-array): New.
11832         (-fchkp-optimize): New.
11833         (-fchkp-use-fast-string-functions): New.
11834         (-fchkp-use-nochk-string-functions): New.
11835         (-fchkp-use-static-bounds): New.
11836         (-fchkp-use-static-const-bounds): New.
11837         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
11838         (-fchkp-check-read): New.
11839         (-fchkp-check-write): New.
11840         (-fchkp-store-bounds): New.
11841         (-fchkp-instrument-calls): New.
11842         (-fchkp-instrument-marked-only): New.
11843         (-fchkp-use-wrappers): New.
11844         (-static-libmpx): New.
11845         (-static-libmpxwrappers): New.
11847 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
11849         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
11850         (CHKP_SPEC): Add wrappers library.
11851         * c-family/c.opt (static-libmpxwrappers): New.
11853 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
11855         * config/i386/linux-common.h (LIBMPX_LIBS): New.
11856         (LIBMPX_SPEC): New.
11857         (CHKP_SPEC): New.
11858         * gcc.c (CHKP_SPEC): New.
11859         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
11860         * c-family/c.opt (static-libmpx): New.
11862 2015-03-10  Richard Biener  <rguenther@suse.de>
11864         PR middle-end/44563
11865         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
11866         for compare_type.
11867         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
11868         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
11869         (cgraph_add_edge_to_call_site_hash): Likewise.
11870         (cgraph_node::get_edge): Likewise.
11871         (cgraph_edge::set_call_stmt): Likewise.
11872         (cgraph_edge::remove_caller): Likewise.
11874 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
11876         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
11877         (callee_saved_gpr_regs_size): ... this.
11878         (callee_saved_regs_first_regno): Rename to ...
11879         (callee_saved_first_gpr_regno): ... this.
11880         (callee_saved_regs_last_regno) Rename to ...
11881         (callee_saved_last_gpr_regno): ... this.
11882         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
11883         variables.
11884         (nds32_initial_elimination_offset): Likewise.
11885         (nds32_expand_prologue): Likewise.
11886         (nds32_expand_epilogue): Likewise.
11887         (nds32_expand_prologue_v3push): Likewise.
11888         (nds32_expand_epilogue_v3pop): Likewise.
11889         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
11890         Adjust renamed variables.
11891         (nds32_output_stack_pop): Likewise.
11893 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11895         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
11896         code in comment.
11898 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
11900         PR rtl-optimization/65321
11901         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
11902         than shift mode.
11903         * var-tracking.c (use_narrower_mode): Likewise.
11905 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
11907         PR tree-optimization/65355
11908         * varasm.c (notice_global_symbol): Do not produce RTL.
11909         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
11910         anchor.
11911         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
11912         check for section anchors.
11914 2015-03-10  Alan Modra  <amodra@gmail.com>
11916         PR target/65286
11917         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
11918         to be single-arch by default.  Set cpu_is_64bit for powerpc64
11919         given --with-cpu=native.
11920         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
11921         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
11922         and powerpc64le.
11923         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
11924         rs6000_isa_flags rather than TARGET_64BIT.
11926 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
11927             Kaz Kojima  <kkojima@gcc.gnu.org>
11929         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
11931 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
11933         PR lto/65361
11934         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
11935         on a TREE_BINFO, instead use BINFO_TYPE.
11937 2015-03-09  Richard Biener  <rguenther@suse.de>
11939         PR middle-end/65270
11940         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
11941         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
11942         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
11943         of that.  When comparing dereferences compare alignment.
11944         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
11946 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
11948         * ipa-inline-analysis.c (check_callers): Check
11949         node->can_remove_if_no_direct_calls_and_refs_p.
11950         (growth_likely_positive): Reorganize to call
11951         can_remove_if_no_direct_calls_p later.
11952         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
11953         will_be_removed_from_program_if_no_direct_calls_p): Add
11954         will_inline parameter.
11955         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
11956         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
11957         Handle inliner case correctly.
11959 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11961         PR tree-optimization/63743
11962         * cfgexpand.c (reorder_operands): Also reorder if only second operand
11963         had its definition forwarded by TER.
11965 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
11967         PR lto/65316
11968         * ipa-utils.h (types_odr_comparable): Add strict argument.
11969         * ipa-devirt.c: Fix whitespace;
11970         (odr_hasher): Remove.
11971         (odr_name_hasher, odr_vtable_hasher): New hashers.
11972         (can_be_name_hashed_p): New predicate.
11973         (hash_type_name): remove.
11974         (hash_odr_name): New.
11975         (odr_name_hasher::hash): new.
11976         (can_be_vtable_hashed_p): New.
11977         (hash_odr_vtable): New.
11978         (odr_vtable_hasher::hash): New.
11979         (types_same_for_odr): Add strict parameter.
11980         (types_odr_comparable): Likewise.
11981         (odr_name_hasher::equal): New.
11982         (odr_vtable_hasher::equal): New.
11983         (odr_name_hasher::remove): New.
11984         (odr_hash_type): Change to hash_table<odr_name_hasher>.
11985         (odr_vtable_hash_type): New.
11986         (odr_vtable_hash): New.
11987         (odr_subtypes_equivalent_p): Do strict comparsion.
11988         (add_type_duplicate): Merge type names; cleanup; avoid type
11989         duplicates.
11990         (register_odr_type): Initialize vtable hash.
11991         (build_type_inheritance_graph): Likewise
11992         (get_odr_type): Reorg to use two hashes.
11993         (dump_possible_polymorphic_call_targets): Move sanity check after debug
11994         output.
11995         (ipa_devirt): Dump type_inheritance_graph.
11996         (types_same_for_odr): Add strict mode.
11998 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
12000         PR ipa/65334
12001         * cgraph.h (symtab_node): Add definition_alignment,
12002         can_increase_alignment_p and increase_alignment.
12003         * symtab.c (symtab_node::can_increase_alignment_p,
12004         increase_alignment_1, symtab_node::increase_alignment,
12005         symtab_node::definition_alignment): New.
12006         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
12007         can_increase_alignment_p.
12008         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
12009         * tree-vect-stmts.c (ensure_base_align): Likewise.
12010         * varasm.c (function_section_1): Use definition_alignment.
12011         (assemble_start_function): Likewise.
12012         (emit_local): likewise.
12013         (build_constant_desc): Likewsie.
12014         (output_constant_def_contents): Likewise.
12015         (place_block_symbol): Likewise.
12016         (output_object_block): Likewise.
12018 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
12020         PR ipa/65316
12021         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
12022         when outputting debug.
12024 2015-03-07  Marek Polacek  <polacek@redhat.com>
12025             Martin Uecker  <uecker@eecs.berkeley.edu>
12027         PR sanitizer/65280
12028         * doc/invoke.texi: Update description of -fsanitize=bounds.
12030 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
12032         * tree-ssa-phiopt.c (neg_replacement): Remove.
12033         (tree_ssa_phiopt_worker): Remove negate optimization.
12035 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
12037         PR ipa/65302
12038         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
12040 2015-03-06  Richard Biener  <rguenther@suse.de>
12042         PR middle-end/64928
12043         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
12044         and liveout_obstack members.
12045         (calculate_live_on_exit): Remove.
12046         (calculate_live_ranges): Change declaration.
12047         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
12048         (new_tree_live_info): Adjust.
12049         (calculate_live_ranges): Delete livein when not wanted.
12050         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
12051         Deal with partly deleted live info.
12052         (loe_visit_block): Remove temporary bitmap by using
12053         bitmap_ior_and_compl_into.
12054         (live_worklist): Adjust accordingly.
12055         (calculate_live_on_exit): Make static.
12056         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
12057         we do not need livein.
12059 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
12061         * real.c (real_from_string): Fix typo in assertion.
12063 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
12065         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
12066         the patch.
12068 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
12070         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
12072 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
12074         PR target/64342
12075         * lra-assigns.c (find_hard_regno_for): Rename to
12076         find_hard_regno_for_1.  Add a new parameter.
12077         (find_hard_regno_for): New function using find_hard_regno_for_1.
12079 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12081         PR rtl-optimization/65067
12082         * expmed.c (store_bit_field, extract_bit_field): Reworked the
12083         strict volatile bitfield handling.
12085 2015-03-05  Martin Liska  <mliska@suse.cz>
12087         PR ipa/65318
12088         * ipa-icf.c (sem_variable::equals): Compare variables types.
12090 2015-03-05  Richard Henderson  <rth@redhat.com>
12092         PR target/65121
12093         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
12094         correctly check weak symbol binding.
12096 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
12098         PR middle-end/65315
12099         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
12100         needed alignment.
12102 2015-03-05  Martin Liska  <mliska@suse.cz>
12104         * ipa-inline.c (inline_small_functions): Set default value to
12105         prevent warning during bootstrap.
12106         * tree.h: Add pragma guard that ignores false positives during
12107         bootstrap.
12109 2015-03-05  Richard Biener  <rguenther@suse.de>
12111         PR tree-optimization/65310
12112         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
12113         Properly preserve alignment of the base of the access.
12115 2015-03-05  Richard Biener  <rguenther@suse.de>
12117         PR ipa/65270
12118         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
12119         Compare dependence info.
12121 2015-03-05  Richard Biener  <rguenther@suse.de>
12123         PR middle-end/65233
12124         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
12125         tree-into-ssa.h.
12126         (walk_ssa_copies): Revert last chage.  Instead do not walk
12127         SSA names registered for SSA update.
12129 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
12131         PR ipa/65270
12132         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
12133         vtable references for their containing type.
12134         (sem_function::equals_wpa): Compare TYPE_RESTRICT
12135         and type attributes.
12137 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
12139         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
12140         before negating it.
12141         * stor-layout.c (finalize_record_size): Revert latest change.
12143 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
12145         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
12147 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
12149         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
12150         for correct comdat handling.
12151         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
12152         Likewise.
12153         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
12154         (used_from_object_file_p_worker): Remove.
12155         (cgraph_node::only_called_directly_or_alised): Add
12156         used_from_object_file_p.
12157         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
12158         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
12159         can_remove_if_no_direct_calls_and_refs_p.
12161 2015-03-04  Nick Clifton  <nickc@redhat.com>
12163         * config/rl78/rl78.h (enum reg_class): Remove real registers from
12164         General register class.
12165         * config/rl78/rl78-real.md: Replace general register constraints
12166         with real+virtual register constraints.
12168 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12170         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
12171         from checking for -mhtm option.
12173 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
12175         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
12176         (struct ipa_sra_check_caller_data): Add has_thunk field.
12177         (ipa_sra_check_caller): Check for thunk.
12178         (ipa_sra_preliminary_function_checks): Give up on function with
12179         thunks.
12180         (ipa_early_sra): Use call_for_symbol_and_aliases.
12182 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
12184         PR target/65249
12185         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
12186         called for __stack_chk_guard symbol.
12188 2015-03-03  DJ Delorie  <dj@redhat.com>
12190         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
12191         inc/dec.
12192         (*addhi3_real): Likewise.
12193         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
12194         pattern to match incrementing memory.
12195         * config/rl78/predicates.md (rl78_1_2_operand): New.
12196         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
12197         it's the same and only mem.
12198         (rl78_alloc_physical_registers_op2): If there's effectively only
12199         one MEM, transcode it into HL.
12200         (rl78_far_p): Reject addresses that aren't legitimate.
12202 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
12204         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
12205         negating it.
12207         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
12209 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
12211         Implement call0 ABI for xtensa
12212         * config/xtensa/constraints.md ("a" constraint): Include stack
12213         pointer in case of call0 ABI.
12214         ("q" constraint): Make empty in case of call0 ABI.
12215         ("D" constraint): Include stack pointer in case of call0 ABI.
12216         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
12217         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
12218         prototypes.
12219         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
12220         variable.
12221         (xtensa_regno_to_class): Make it a local variable in the
12222         function xtensa_regno_to_class.
12223         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
12224         macro, function prototype and implementation.
12225         (reg_nonleaf_alloc_order): Make it a local variable in the
12226         function order_regs_for_local_alloc.
12227         (xtensa_conditional_register_usage): New function.
12228         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
12229         (xtensa_valid_move): Allow direct moves to stack pointer
12230         register in call0 ABI.
12231         (xtensa_setup_frame_addresses): Only spill register windows in
12232         windowed ABI.
12233         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
12234         call0 ABI respectively.
12235         (xtensa_function_arg_1): Only mark a7 register for copying in
12236         windowed ABI.
12237         (xtensa_call_save_reg): New function.
12238         (compute_frame_size): Add space for callee saved register
12239         storage to the frame size in call0 ABI.
12240         (xtensa_expand_prologue): Generate code to set up stack frame
12241         and save callee-saved registers in call0 ABI.
12242         (xtensa_expand_epilogue): New function.
12243         (xtensa_set_return_address): New function.
12244         (xtensa_return_addr): Calculate return address in call0 ABI.
12245         (xtensa_builtin_saveregs): Only mark a7 register for copying and
12246         emit copying code in windowed ABI.
12247         (order_regs_for_local_alloc): Add preferred register allocation
12248         order for non-leaf function in call0 ABI.
12249         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
12250         (xtensa_asm_trampoline_template): Add trampoline generation for
12251         call0 ABI.
12252         (xtensa_trampoline_init): Add trampoline initialization for
12253         call0 ABI.
12254         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
12255         functions.
12256         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
12257         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
12258         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
12259         ABI call-used registers.
12260         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
12261         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
12262         call0 ABI.
12263         (REG_CLASS_CONTENTS): Include all registers into the preferred
12264         reload registers set, adjust the set in the
12265         xtensa_conditional_register_usage.
12266         (xtensa_regno_to_class): Drop variable declaration.
12267         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
12268         function.
12269         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
12270         respectively.
12271         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
12272         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
12273         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
12274         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
12275         location in call0 ABI.
12276         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
12277         stack adjustment size when handling exception.
12278         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
12279         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
12280         definitions.
12281         ("return" pattern): Generate ret.n/ret in call0 ABI.
12282         ("epilogue" pattern): Expand epilogue.
12283         ("nonlocal_goto" pattern): Use default in call0 ABI.
12284         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
12285         emit eh_set_a0_* depending on ABI.
12286         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
12287         ("eh_set_a0_call0", "blockage"): New patterns.
12289 2015-03-03  Martin Liska  <mliska@suse.cz>
12291         PR ipa/65287
12292         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
12294 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
12296         PR 65138/target
12297         * config/rs6000/rs6000-tables.opt: Regenerate table.
12299 2015-03-03  Renlin Li  <renlin.li@arm.com>
12301         * doc/md.texi (@item ^): Change ? into ^.
12303 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
12305         * doc/tm.texi: Regenerated.
12307 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
12309         * builtins.c (expand_builtin_return_addr): Add
12310         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
12311         surrounding #ifdef.
12312         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
12313         definition to 1.
12314         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
12315         Likewise.
12316         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
12317         undefined.
12318         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
12319         paragraph.
12321 2015-03-03  Martin Jambor  <mjambor@suse.cz>
12322             Eric Botcazou  <ebotcazou@adacore.com>
12324         * tree-sra.c (ipa_sra_check_caller_data): New type.
12325         (has_caller_p): Removed.
12326         (ipa_sra_check_caller): New function.
12327         (ipa_sra_preliminary_function_checks): Use it.
12329 2015-03-03  Martin Liska  <mliska@suse.cz>
12331         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
12332         instead of if branch.
12334 2015-03-03  Martin Liska  <mliska@suse.cz>
12336         PR ipa/65282
12337         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
12339 2015-03-23  Jeff Law  <law@redhat.com>
12341         PR tree-optimization/65241
12342         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
12343         hash table if INSERT is true.
12345 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
12347         PR target/65296
12348         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
12350 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
12352         PR target/64331
12353         * config/avr/avr.c (context.h, tree-pass.h): Include them.
12354         (avr_pass_data_recompute_notes): New static variable.
12355         (avr_pass_recompute_notes): New class.
12356         (avr_register_passes): New static function.
12357         (avr_option_override): Call it.
12359 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
12361         Fix various problems with specs file generation.
12363         PR target/65296
12364         * config.gcc (extra_gcc_objs) [avr]: Remove.
12365         * config/avr/driver-avr.c: Remove file.
12366         * config/avr/t-avr (driver-avr.o): Remove rule.
12367         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
12368         INCLUDES to build.  Depend on TM_H.
12369         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
12370         build warnings.  Fix non-matching types and non-existing %-codes.
12371         (tm.h): Include.
12372         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
12373         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
12374         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
12375         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
12376         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
12377         (LIBGCC_SPEC): Remove definitions.
12379 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
12381         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
12382         to create a register in testing mode.
12384 2015-03-03  Martin Liska  <mliska@suse.cz>
12385             Jan Hubicka  <hubicka@ucw.cz>
12387         PR ipa/65263
12388         * cgraph.c (cgraph_node::has_thunk_p): New function.
12389         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
12390         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
12391         (sem_function::merge): Assert is changed.
12393 2015-03-03  Martin Liska  <mliska@suse.cz>
12394             Martin Jambor  <mjambor@suse.cz>
12396         PR ipa/65087
12397         * ipa-icf.c (sem_item_optimizer::execute): Change function
12398         return value to boolean.
12399         (sem_item_optimizer::merge_classes): Likewise.
12400         (ipa_icf_driver): Return TODO_remove_functions in case there's
12401         a merge operation processed.
12402         * ipa-icf.h: Change function return value to boolean.
12404 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12406         PR 65138/target
12407         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
12408         processor type for 64-bit little endian PowerPC.
12410         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
12411         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
12412         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
12413         printing built-in mask so it does not pass NULL pointers.
12415         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
12416         -mcpu=powerpc64le.
12418 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
12420         PR target/58158
12421         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
12422         !ISA_HAS_FP_CONDMOVE.
12424 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
12426         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
12427         reload_completed.
12429 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
12431         * doc/invoke.texi (Options for Code Generation Conventions):
12432         Fix URL of DSO paper.
12434 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
12436         PR ipa/65130
12437         * ipa-inline.c (check_callers): Looks for recursion.
12438         (inline_to_all_callers): Give up on uninlinable or recursive edges.
12439         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
12440         summary of inline clones.
12441         (do_estimate_growth_1): Fix recursion check.
12443 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
12445         PR ipa/64988
12446         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
12447         comdat groups.
12449 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
12450             Aldy Hernandez  <aldyh@redhat.com>
12452         PR lto/65276
12453         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
12454         when checking TYPE_BINFO.
12456 2015-03-02  Richard Biener  <rguenther@suse.de>
12458         PR ipa/65270
12459         * ipa-icf-gimple.c: Include builtins.h.
12460         (func_checker::compare_memory_operand): Compare base alignment.
12462 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
12464         PR target/65184
12465         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
12466         are never passed by reference.
12468 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
12470         PR target/65183
12471         * tree-chkp.c (chkp_check_lower): Don't check against
12472         zero bounds for already instrumented functions.
12473         (chkp_check_upper): Likewise.
12474         (chkp_fini): Clean pass local data to avoid wrong reusage.
12476 2015-02-28  Martin Liska  <mliska@suse.cz>
12477             Jan Hubicka  <hubicka@ucw.cz>
12479         * ipa-icf.c (sem_variable::equals): Improve debug output;
12480         get variable constructor.
12481         (sem_variable::parse): Do not filter out too early; give up on
12482         volatile and register vars.
12483         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
12484         variables.
12485         * ipa-icf.h (sem_variable::init): Do not set ctor.
12486         (sem_variable::ctor): Remove.
12488 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
12490         PR middle-end/65233
12491         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
12493 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
12495         * ipa-icf.c: Include stor-layout.h
12496         (sem_function::compare_cgraph_references): Rename to ...
12497         (sem_item::compare_cgraph_references): ... this one.
12498         (sem_variable::equals_wpa): New function
12499         (sem_variable::equals): Do not check stuff already verified by
12500         equals_wpa.
12501         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
12502         * ipa-icf.h (sem_item): Add compare_cgraph_references.
12503         (sem_function): Remove compare_cgraph_references.
12504         (sem_variable): Turns equals_wpa into non-inline.
12506 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
12508         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
12509         (sem_item::add_expr): New function.
12510         (sem_function::hash_stmt): Handle operands of most statements.
12511         (sem_variable::get_hash): Hash the actual constructor.
12512         * ipa-icf.h (sem_item): Add add_expr.
12513         (sem_function): Update prototype of hash_stmt
12515 2015-02-28  Martin Liska  <mliska@suse.cz>
12516             Jan Hubicka  <hubicka@ucw.cz>
12518         PR ipa/65245
12519         * ipa-icf-gimple.c (func_checker::compare_function_decl):
12520         Remove.
12521         (func_checker::compare_variable_decl): Skip symtab vars.
12522         (func_checker::compare_cst_or_decl): Update.
12523         * ipa-icf.c (sem_function::parse): Do not consider aliases.
12524         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
12525         use correct symtab predicates.
12526         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
12527         (sem_variable::parse):  Update comment.
12528         (sem_item_optimizer::build_graph): Consider ultimate aliases
12529         for references.
12531 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
12533         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
12534         of OBJ_TYPE_REF.
12536 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
12538         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
12539         (sem_variable::merge) Likewise.
12541 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
12543         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
12544         target; also match flag_ipa_devirt.
12546 2015-03-01  Martin Liska  <mliska@suse.cz>
12547             Jan Hubicka  <hubicka@ucw.cz>
12549         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
12550         Validate variable alignment.
12551         * ipa-icf.c (sem_function::equals_private): Be more precise
12552         about non-common function attributes.
12553         (sem_variable::equals): Likewise.
12555 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
12557         PR ipa/65237
12558         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
12559         across COMDAT group boundary.
12561 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
12563         PR ipa/65232
12564         * ipa-icf.c (clear_decl_rtl): New function.
12565         (sem_function::merge): Clear RTL before forming alias.
12566         (sem_variable::merge): Clear RTL before forming alias.
12568 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
12570         PR ipa/65236
12571         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
12573 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
12575         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
12576         to neon_to_gp<q>.
12578 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
12580         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
12581         a typo in the description.
12583 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
12585         PR target/64317
12586         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
12587         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
12588         * lra-constraints.c: Include "params.h".
12589         (EBB_PROBABILITY_CUTOFF): Use
12590         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
12591         (lra_inheritance): Use '<' instead of '<=' for
12592         EBB_PROBABILITY_CUTOFF.
12593         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
12594         Document change.
12596 2015-02-27  Martin Liska  <mliska@suse.cz>
12598         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
12599         vector length condition.
12601 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
12603         * doc/extend.texi (x86 transactional memory intrinsics):
12604         Reorganize discussion of _xbegin.  Clarify that the return
12605         value is a bit mask.  Expand example and move to end of section.
12607 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
12608             Aldy Hernandez  <aldyh@redhat.com>
12610         PR rtl-optimization/65220
12611         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
12613 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
12615         PR target/65032
12616         * lra-remat.c (update_scratch_ops): New.
12617         (do_remat): Call it.
12618         * lra.c (lra_register_new_scratch_op): New. Take code from ...
12619         (remove_scratches): ... here.
12620         * lra-int.h (lra_register_new_scratch_op): New prototype.
12622 2015-02-27  Marek Polacek  <polacek@redhat.com>
12624         PR c/65040
12625         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
12626         -Wformat-signedness anymore.
12628 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12630         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
12631         function.
12632         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
12634 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12636         * config/s390/s390.c (enum s390_builtin):
12637         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
12638         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
12639         (s390_init_builtins): Generate new builtin functions.
12640         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
12641         (s390_sfpc, s390_efpc): New pattern definitions.
12643 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12645         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
12646         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
12647         (s390_builtin_decls): New array.
12648         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
12649         (s390_builtin_decl): New function.
12650         (TARGET_BUILTIN_DECL): Define macro.
12652 2015-02-27  Richard Biener  <rguenther@suse.de>
12654         PR middle-end/63175
12655         * builtins.c (get_object_alignment_2): Make sure to re-apply
12656         the ANDed mask after recursing to its operand gets us a new
12657         misalignment bit position.
12659 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
12660             Martin Liska  <mliska@suse.cz>
12662         PR bootstrap/65150
12663         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
12664         Use address_matters_p.
12665         (redirect_all_callers, set_addressable): New functions.
12666         (sem_function::merge): Reorganize and fix merging issues.
12667         (sem_variable::merge): Likewise.
12668         (sem_variable::compare_sections): Remove.
12669         * common.opt (fmerge-all-constants, fmerge-constants): Remove
12670         Optimization flag.
12671         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
12672         redirect them.
12673         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
12674         decl is used.
12675         (address_matters_1): New function.
12676         (symtab_node::address_matters_p): New function.
12677         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
12678         check for merged flag.
12679         * cgraph.h (address_matters_p): Declare.
12680         (symtab_node::address_taken_from_non_vtable_p): Remove.
12681         (symtab_node::address_can_be_compared_p): New method.
12682         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
12683         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
12684         Remove.
12685         (comdat_can_be_unshared_p_1) Use address_matters_p.
12686         (update_vtable_references): Fix formating.
12687         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
12688         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
12689         * cgraphclones.c: Preserve merged and icf_merged flags.
12691 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
12693         * doc/extend.texi (Function Attributes): Fix spelling and typos.
12694         (Label Attributes): Likewise.
12695         (Cilk Plus Builtins): Likewise.
12696         (ARC SIMD Built-in Functions): Likewise.
12697         (ARM C Language Extensions (ACLE)): Likewise.
12698         (PowerPC Built-in Functions): Likewise.
12699         (PowerPC Hardware Transactional Memory Built-in Functions):
12700         Likewise.
12702 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
12704         PR tree-optimization/65216
12705         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
12706         new stmt and new SSA_NAME for lhs whenever the arguments have
12707         changed and weren't just swapped.  Fix comment typo.
12709         PR tree-optimization/65215
12710         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
12711         for PDP endian targets.
12712         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
12713         Fix up formatting issues.
12714         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
12715         size is smaller than the original, adjust MEM_REF offset by the
12716         difference of sizes.  Use is_gimple_mem_ref_addr instead of
12717         is_gimple_min_invariant test to avoid adding address temporaries.
12719 2015-02-26  Martin Liska  <mliska@suse.cz>
12720             Jan Hubicka  <hubicka@ucw.cz>
12722         PR ipa/64693
12723         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
12724         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
12725         (sem_item_optimizer::process_cong_reduction): Include division by
12726         sensitive references.
12727         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
12728         * ipa-ref.c (ipa_ref::address_matters_p): New function.
12729         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
12731 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
12733         PR target/65192
12734         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
12735         Remove.
12736         * config/avr/avr.c: Same.
12737         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
12738         Refuse any constant address not in 0..0xbf.
12739         * config/avr/avr.md (*mov<mode>, *movsf): Remove
12740         tiny_valid_direct_memory_access_range from insn conditions.
12741         (mov<mode>): Don't special-case expansion of avrtiny addresses.
12743 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
12745         PR target/61142
12746         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
12747         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
12748         * config/sh/predicates.md (const_logical_operand): New predicate.
12749         * config/sh/sh.md: Add new peephole2 patterns.
12751 2015-02-26  Marek Polacek  <polacek@redhat.com>
12753         PR ipa/65008
12754         * ipa-inline.c (early_inliner): Recompute inline parameters.
12756 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12758         PR target/65171
12759         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
12760         instructions with TImode operands are included in the analysis.
12762 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
12764         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
12765         of an EDGE_FSM_THREAD.
12767 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12769         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
12771 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
12773         PR debug/46102
12774         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
12776 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
12778         PR tree-optimization/65048
12779         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
12780         (thread_through_all_blocks): Call valid_jump_thread_path.
12781         Remove invalid FSM jump-thread paths.
12783 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
12785         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
12786         (ipa_write_optimization_summaries): Likewise.
12787         * tree-streamer.h: Include data-streamer.h.
12788         (streamer_mode_table): Declare extern variable.
12789         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
12790         * lto-streamer-out.c (lto_output_init_mode_table,
12791         lto_write_mode_table): New functions.
12792         (produce_asm_for_decls): Call lto_write_mode_table when streaming
12793         offloading LTO.
12794         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
12795         (lto_create_simple_input_block): Add mode_table argument to the
12796         lto_input_block constructors.
12797         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
12798         Likewise.
12799         * data-streamer-in.c (string_for_index): Likewise.
12800         * ipa-inline-analysis.c (inline_read_section): Likewise.
12801         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
12802         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
12803         * lto-streamer-in.c (lto_read_body_or_constructor,
12804         lto_input_toplevel_asms): Likewise.
12805         (lto_input_mode_table): New function.
12806         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
12807         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
12808         Use bp_pack_machine_mode.
12809         * real.h (struct real_format): Add name field.
12810         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
12811         (class lto_input_block): Add mode_table member.
12812         (lto_input_block::lto_input_block): Add mode_table_ argument,
12813         initialize mode_table.
12814         (struct lto_file_decl_data): Add mode_table field.
12815         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
12816         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
12817         unpack_ts_decl_common_value_fields,
12818         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
12819         * tree-streamer.c (streamer_mode_table): New variable.
12820         * real.c (ieee_single_format, mips_single_format,
12821         motorola_single_format, spu_single_format, ieee_double_format,
12822         mips_double_format, motorola_double_format,
12823         ieee_extended_motorola_format, ieee_extended_intel_96_format,
12824         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
12825         ibm_extended_format, mips_extended_format, ieee_quad_format,
12826         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
12827         decimal_single_format, decimal_double_format, decimal_quad_format,
12828         ieee_half_format, arm_half_format, real_internal_format): Add name
12829         field.
12830         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
12832 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
12834         PR target/65161
12835         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
12836         reordering for selective scheduling.
12838 2015-02-26  Terry Guo  <terry.guo@arm.com>
12840         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
12841         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
12842         (arm_arch_no_volatile_ce): Declare new global variable.
12843         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
12844         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
12845         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
12846         (TARGET_NO_VOLATILE_CE): New macro.
12847         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
12848         volatile memory access in IT block
12850 2015-02-25  Kai Tietz  <ktietz@redhat.com>
12852         PR tree-optimization/61917
12853         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
12854         that reduc_def_stmt is null.
12856 2015-02-25  Martin Liska  <mliska@suse.cz>
12858         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
12859         hard register variables.
12861 2015-02-25  Kai Tietz  <ktietz@redhat.com>
12863         PR target/64212
12864         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
12865         (symtab::noninterposable_alias): Likewise.
12867 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
12869         PR target/65167
12870         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
12871         bounds registers.
12872         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
12874 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
12876         PR target/64997
12877         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
12878         as split condition; force split via '#' in output pattern.
12880 2015-02-25  Richard Biener  <rguenther@suse.de>
12881             Kai Tietz  <ktietz@redhat.com>
12883         PR tree-optimization/61917
12884         * tree-vect-loop.c (vectorizable_reduction): Allow
12885         vect_internal_def without reduction to exit graceful.
12887 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
12889         PR target/65196
12890         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
12891         only with NONDEBUG_INSN_P.
12893 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
12895         Use variadic macros with avr-log.c.
12897         * config/avr/avr-protos.h (avr_vdump): New prototype.
12898         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
12899         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
12900         * config/avr/avr-log.c: Adjust comments.
12901         (avr_vdump): New function.
12902         (avr_vadump): Pass caller as 2nd argument instead of format string.
12903         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
12904         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
12906 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
12908         PR lto/64374
12909         * target.def (target_option_stream_in): New target hook.
12910         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
12911         targetm.target_option.post_stream_in if non-NULL.
12912         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
12913         * doc/tm.texi: Updated.
12914         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
12915         function.
12916         (TARGET_OPTION_POST_STREAM_IN): Redefine.
12918 2015-02-24  Jeff Law  <law@redhat.com>
12920         PR target/65117
12921         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
12922         of operand 0 and operand 2.
12923         (zero_cost_loop_end, loop_end): Similarly.
12925 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
12927         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
12928         CXX_MEM_STAT_INFO.
12930 2015-02-24  DJ Delorie  <dj@redhat.com>
12932         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
12933         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
12934         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
12935         instead of hardcoding SImode.
12937 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
12939         * omp-low.c (create_omp_child_function): Tag entrypoint
12940         functions with a special attribute.
12942 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
12944         PR target/65058
12945         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
12947 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
12949         PR rtl-optimization/65123
12950         * lra-remat.c (operand_to_remat): Check hard regs in insn
12951         definition too.
12953 2015-02-24  Nick Clifton  <nickc@redhat.com>
12955         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
12956         to the assembler.
12958 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
12960         PR libgomp/64625
12961         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
12962         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
12963         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
12964         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
12965         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
12966         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
12967         (BUILT_IN_GOACC_PARALLEL): Specify as
12968         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
12969         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
12970         * builtin-types.def
12971         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
12972         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
12973         Remove function types.
12974         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
12975         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
12976         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
12977         New function types.
12979 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
12981         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
12983 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
12985         PR tree-optimization/65170
12986         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
12987         if val[1] < 0, clear also val[2] and return 3.
12989 2015-02-24  Alan Modra  <amodra@gmail.com>
12991         PR target/65172
12992         * config/rs6000/rs6000.c (get_memref_parts): Only return true
12993         when *base is a reg.  Handle nested plus addresses.  Simplify
12994         pre_modify test.
12996 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
12998         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
12999         use natural alignment when optimizing for size.
13001 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
13003         PR target/65153
13004         * config/sh/sh.md (movsicc_true+3): Remove peephole.
13005         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
13006         * config/sh/sh.c (replace_n_hard_rtx): Remove.
13008 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
13010         PR fortran/63427
13011         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
13012         too big for a wide_int.  Implement missing wrapping operation.
13014 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
13016         PR target/65163
13017         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
13018         instead of const_int 4294901760.
13020 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
13022         * config/avr/t-avr: Fix typo in comment.
13024 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
13026         * doc/rtl.texi (fma): Clarify documentation.
13028 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
13030         PR debug/58123
13031         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
13032         over input_location.
13034 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
13036         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
13037         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
13038         restrict alignments to absolute_biggest_alignment.
13039         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
13040         Define.
13041         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
13042         * doc/tm.texi: Regenerate.
13043         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
13045 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
13047         PR target/64172
13048         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
13050 2015-02-20  Richard Biener  <rguenther@suse.de>
13052         PR tree-optimization/65136
13053         * tree-ssa-propagate.c: Include cfgloop.h.
13054         (replace_phi_args_in): Avoid replacing loop latch edge PHI
13055         arguments with constants.
13057 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
13058             Martin Liska  <mliska@suse.cz>
13060         PR target/63892
13061         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
13062         don't try to create_thunk if stdarg_p.  If
13063         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
13064         redirect_callers if possible.
13065         (sem_item_optimizer::execute): Call unregister_hooks here...
13066         (ipa_icf_driver): ... instead of here.
13068 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13070         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
13071         Mark operand 0 as earlyclobber in 2nd alternative.
13072         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
13073         Write negated shift amount into QI lowpart operand 0 and use it
13074         in the shift step.
13075         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
13077 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
13079         * cgraph.h (clone_function_name_1): Declare.
13080         * cgraphclones.c (clone_function_name_1): New function.
13081         (clone_function_name): Use it.
13082         * lto-partition.c: Include "stringpool.h".
13083         (must_not_rename, maybe_rewrite_identifier)
13084         (validize_symbol_for_target): New static functions.
13085         (privatize_symbol_name): Use must_not_rename.
13086         (promote_symbol): Call validize_symbol_for_target.
13087         (lto_promote_cross_file_statics): Likewise.
13088         (lto_promote_statics_nonwpa): Likewise.
13090 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
13092         PR target/64452
13093         * config/avr/avr.md (pushhi_insn): New insn.
13094         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
13096 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
13097             Jakub Jelinek  <jakub@redhat.com>
13099         * tree-streamer.c (preload_common_nodes): Don't preload
13100         TI_VA_LIST* for offloading.
13101         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
13102         in_lto_p.
13104 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
13106         * config/pa/pa.c (pa_emit_move_sequence): Always force
13107         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
13108         note on insn.
13110         * config/pa/pa.c (pa_reloc_rw_mask): New function.
13111         (TARGET_ASM_RELOC_RW_MASK): Define.
13112         (pa_cannot_force_const_mem): Revert previous change.
13114 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
13115             Jan Hubicka  <hubicka@ucw.cz>
13117         PR ipa/65028
13118         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
13119         across jump functions.
13121 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
13123         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
13125 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
13127         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
13129 2015-02-19  Richard Henderson  <rth@redhat.com>
13131         PR middle-end/65074
13132         * varasm.c (default_binds_local_p_2): Don't test node->definition;
13133         test DECL_EXTERNAL independent of symtab_node.
13135 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
13137         PR lto/65012
13138         * varpool.c (varpool_node::get_constructor): Return early
13139         if this->lto_file_data is NULL.
13141 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
13143         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
13144         (rank_for_schedule_debug): Update.
13145         (ready_sort): Make static.  Move sorting logic to ...
13146         (ready_sort_debug, ready_sort_real): New static functions.
13147         (schedule_block): Sort both debug insns and real insns in preparation
13148         for ready list trimming.  Improve debug output.
13149         * sched-int.h (ready_sort): Remove global declaration.
13151 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
13153         * ipa-icf.c (sem_function::equals_private): Adjust.
13154         (sem_function::bb_dict_test): Take a vec<int> * instead of
13155         auto_vec<int>.
13156         * ipa-icf.h (bb_dict_test): Likewise.
13158 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
13160         PR gcov-profile/64634
13161         * tree-eh.c (frob_into_branch_around): Fix up typos
13162         in function comment.
13163         (lower_catch): Put eh_seq resulting from EH lowering of
13164         the cleanup sequence after the cleanup rather than before it.
13166 2015-02-18  Tom de Vries  <tom@codesourcery.com>
13168         * common.opt (fstdarg-opt): New option.
13169         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
13170         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
13171         (@item -fstdarg-opt): New item.
13173 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
13175         PR target/65064
13176         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
13177         for common symbols.
13179 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
13181         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
13182         insn-modes.h.
13183         (ALL_HOST_OBJS): Add mkoffload.o.
13184         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
13186 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
13188         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
13189         (compare_virtual_tables): Be smarter about skipping typeinfos;
13190         do sane output on virtual table table mismatch.
13191         (warn_odr): Be ready for forward declarations of enums;
13192         output sane info on base mismatch and virtual table mismatch.
13193         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
13194         when only one type is polymorphic.
13195         (get_odr_type): Fix hashtable corruption.
13196         (dump_odr_type): Dump mangled names.
13198 2015-02-18  Richard Biener  <rguenther@suse.de>
13200         PR tree-optimization/65063
13201         * tree-predcom.c (determine_unroll_factor): Return 1 if we
13202         have replaced looparound PHIs.
13204 2015-02-18  Martin Liska  <mliska@suse.cz>
13206         * lto-streamer.c (lto_streamer_init): Encapsulate
13207         streamer_check_handled_ts_structures with checking macro.
13209 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
13211         PR ipa/65087
13212         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
13213         section if !implicit_section.
13214         (cgraph_node::create_version_clone_with_body): Likewise.
13215         * trans-mem.c (ipa_tm_create_version): Likewise.
13217 2015-02-18  Richard Biener  <rguenther@suse.de>
13219         PR tree-optimization/62217
13220         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
13221         into BIVs.
13223 2015-02-18  Marek Polacek  <polacek@redhat.com>
13225         PR sanitizer/65081
13226         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
13227         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
13228         is in range [-16K, -1].  Don't issue run-time error if
13229         (ptr > ptr + offset).
13231 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
13233         * doc/install.texi (nvptx-*-none): New section.
13234         * doc/invoke.texi (Nvidia PTX Options): Likewise.
13235         * config/nvptx/nvptx.opt: Update.
13237         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
13238         (access_check): New functions, copied from
13239         config/i386/intelmic-mkoffload.c.
13240         (main): For non-installed testing, look in all COMPILER_PATHs for
13241         GCC_INSTALL_NAME.
13243         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
13245 2015-02-18  Andrew Pinski  <apinski@cavium.com>
13246             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
13248         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
13249         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
13251 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
13253         * ipa-visibility.c (function_and_variable_visibility): Only
13254         check locality if node is not already local.
13255         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
13256         call_for_symbol_and_aliases instead of
13257         call_for_symbol_thunks_and_aliases.
13258         (ipa_inline): Likewise.
13259         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
13260         first walk aliases.
13261         * ipa.c (symbol_table::remove_unreachable_nodes): Use
13262         call_for_symbol_and_aliases.
13263         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
13264         (ipa_propagate_frequency_1): Use it; use opt_for_fn
13265         (ipa_propagate_frequency): Update.
13266         (ipa_profile): Add opt_for_fn gueards.
13268 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
13270         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
13271         * doc/invoke.texi (SH options): Document it.
13272         * config/sh/sh.c (sh_insn_length_adjustment): Check
13273         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
13275 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
13277         * common.opt (fipa-cp-alignment): New.
13278         * ipa-cp.c (ipcp_store_alignment_results): Check
13279         flag_ipa_cp_alignment.
13280         * opts.c (default_options_table): Enable -fipa-cp-alignment for
13281         -O2.
13282         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
13283         * doc/invoke.texi: Document -fipa-cp-alignment.
13285 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
13287         PR target/64793
13288         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
13289         to nil.  Adjust comments.
13291 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
13293         * ipa-visibility.c (function_and_variable_visibility): Only
13294         check locality if node is not already local.
13295         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
13296         call_for_symbol_and_aliases instead of
13297         call_for_symbol_thunks_and_aliases.
13298         (ipa_inline): Likewise.
13299         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
13300         first walk aliases.
13301         * ipa.c (symbol_table::remove_unreachable_nodes): Use
13302         call_for_symbol_and_aliases.
13303         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
13304         (ipa_propagate_frequency_1): Use it; use opt_for_fn
13305         (ipa_propagate_frequency): Update.
13306         (ipa_profile): Add opt_for_fn guards.
13308 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
13310         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
13311         skipping of "strange" tokens.
13313 2015-02-17  Jeff Law  <law@redhat.com>
13315         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
13316         obsolete comment.
13318 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
13320         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
13321         as forcing a HARD_DEP between instructions, thereby
13322         disallowing rewriting to break dependencies.
13324 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
13326         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
13327         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
13328         variables in boundary that have no inlitalizer encoded and are
13329         not aliases.
13330         * varasm.c (default_binds_local_p_2): External definitions do not
13331         count as definitions here.
13333 2015-02-16  Jeff Law  <law@redhat.com>
13335         PR tree-optimization/64823
13336         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
13337         statements.
13338         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
13339         threading through blocks with PHIs, but no statements.
13340         (thread_through_normal_block): Distinguish between blocks where
13341         we did not process all the statements and blocks with no statements.
13343 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
13344             James Greenhalgh  <james.greenhalgh@arm.com>
13346         PR ipa/64963
13347         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
13348         section if not linkonce.  Fix up formatting.
13349         (cgraph_node::create_version_clone_with_body): Copy section.
13350         * trans-mem.c (ipa_tm_create_version): Likewise.
13352 2015-02-16  Richard Biener  <rguenther@suse.de>
13354         PR tree-optimization/65077
13355         * tree-ssa-structalias.c (get_constraint_for_1): Handle
13356         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
13357         (find_func_aliases): Allow float values to carry pointers again.
13359 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
13361         * doc/install.texi (Specific): Reorder targets list to put
13362         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
13363         from the top menu.
13365 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
13366             David Edelsohn  <dje.gcc@gmail.com>
13368         PR target/65058
13369         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
13370         mapping class to external variable or function reference.
13371         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
13372         mapping class.
13374 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
13376         PR target/53348
13377         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
13378         ASM_WEAKEN_DECL if defined.
13380 2015-02-16  Richard Biener  <rguenther@suse.de>
13382         PR lto/65015
13383         * varasm.c (default_file_start): For LTO produced units
13384         emit <artificial> as file directive.
13386 2015-02-16  Richard Biener  <rguenther@suse.de>
13388         PR tree-optimization/63593
13389         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
13390         stmts and releasing SSA names until...
13391         (execute_pred_commoning): ... after processing all chains.
13393 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
13395         PR ipa/65059
13396         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
13397         external functions.
13399 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
13401         * doc/bugreport.texi: Adjust section titles throughout the file
13402         to use "Title Case".
13403         * doc/extend.texi: Likewise.
13404         * doc/gcov.texi: Likewise.
13405         * doc/implement-c.texi: Likewise.
13406         * doc/implement-cxx.texi: Likewise.
13407         * doc/invoke.texi: Likewise.
13408         * doc/objc.texi: Likewise.
13409         * doc/standards.texi: Likewise.
13410         * doc/trouble.texi: Likewise.
13412 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
13414         * cgraph.h (symtab_node::has_aliases_p): Simplify.
13415         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
13416         * tree.c (lookup_binfo_at_offset): Make static.
13417         (get_binfo_at_offset): Do not shadow offset; add explanatory
13418         comment.
13420 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
13422         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
13423         for all floading point loads and stores except those using a register
13424         index address.
13425         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
13426         to a register.
13428 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
13430         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
13431         (do_estimate_growth_1): Record if any uninlinable edge was seen.
13432         (estimate_growth): Handle uninlinable edges correctly.
13433         (check_callers): New.
13434         (growth_likely_positive): Handle aliases correctly.
13436 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
13438         * ipa-chkp.c: Use iterate_direct_aliases.
13439         * symtab.c (resolution_used_from_other_file_p): Move inline.
13440         (symtab_node::create_reference): Fix formating.
13441         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
13442         (symtab_node::iterate_reference): Move inline.
13443         (symtab_node::iterate_referring): Move inline.
13444         (symtab_node::iterate_direct_aliases): Move inline.
13445         (symtab_node::used_from_object_file_p_worker): Inline into ...
13446         (symtab_node::used_from_object_file_p): ... this one; move inline.
13447         (symtab_node::call_for_symbol_and_aliases): Move inline;
13448         use iterate_direct_aliases.
13449         (symtab_node::call_for_symbol_and_aliases_1): New method.
13450         (cgraph_node::call_for_symbol_and_aliases): Move inline;
13451         use iterate_direct_aliases.
13452         (cgraph_node::call_for_symbol_and_aliases_1): New method.
13453         (varpool_node::call_for_node_and_aliases): Rename to ...
13454         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
13455         use iterate_direct_aliases.
13456         (varpool_node::call_for_symbol_and_aliases_1): New method.
13457         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
13458         (ipa_discover_readonly_nonaddressable_var): Update.
13459         * ipa-devirt.c: Fix formating.
13460         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
13461         Move inline.
13462         (cgraph_node::call_for_symbol_and_aliases): Move inline.
13463         (cgraph_node::call_for_symbol_and_aliases_1): New function..
13464         * cgraph.h (used_from_object_file_p_worker): Remove.
13465         (resolution_used_from_other_file_p): Move inline.
13466         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
13467         (symtab_node::iterate_reference): Move inline.
13468         (symtab_node::iterate_referring): Move inline.
13469         (symtab_node::iterate_direct_aliases): Move inline.
13470         (symtab_node::used_from_object_file_p_worker): Inline into ...
13471         (symtab_node::used_from_object_file_p): Move inline.
13472         * tree-emutls.c (ipa_lower_emutls): Update.
13473         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
13474         (varpool_node::call_for_node_and_aliases): Remove.
13476 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
13478         PR tree-optimization/62209
13479         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
13480         op == range->exp, insert seq and gimplified code after labels
13481         instead of after the phi.
13483 2015-02-13  Jeff Law  <law@redhat.com>
13485         PR bootstrap/65060
13486         Revert my change for tree-optimization/64823.
13488 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
13490         PR tree-optimization/65053
13491         * tree-ssa-phiopt.c (value_replacement): When moving assign before
13492         cond, either reset VR on lhs or set it to phi result VR.
13494 2015-02-13  Jeff Law  <law@redhat.com>
13496         PR tree-optimization/64823
13497         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
13498         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
13499         threading through blocks with PHIs, but no statements.
13500         (thread_through_normal_block): Distinguish between blocks where
13501         we did not process all the statements and blocks with no statements.
13503         PR rtl-optimization/47477
13504         * match.pd (convert (plus/minus (convert @0) (convert @1): New
13505         simplifier to narrow arithmetic.
13507 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
13509         PR ipa/65028
13510         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
13511         polymorphic call info when type is not known to be preserved.
13513 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
13515         PR ipa/65028
13516         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
13517         (inline_call): Use it.
13519 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
13521         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
13522         GOMP_DEVICE_NVIDIA_PTX.
13524 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
13526         PR ipa/65034
13527         * stmt.c (emit_case_nodes): Use void_type_node instead of
13528         NULL_TREE as LABEL_DECL type.
13530 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
13532         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
13533         constraints.
13534         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
13535         symbolic references to data to be forced to constant memory on the
13536         SOM target.
13538 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
13540         PR tree-optimization/65002
13541         * tree-cfg.c (pass_data_fixup_cfg): Don't update
13542         SSA on start.
13543         * tree-sra.c (some_callers_have_no_vuse_p): New.
13544         (ipa_early_sra): Reject functions whose callers
13545         assume function is read only.
13547 2015-02-13  Richard Biener  <rguenther@suse.de>
13549         PR lto/65015
13550         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
13551         for LTO produced CUs.
13553 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
13555         PR tree-optimization/64705
13556         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
13557         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
13558         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
13559         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
13560         expand_simple_operations.
13562 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
13563             Richard Henderson  <rth@redhat.com>
13565         PR rtl/32219
13566         * cgraphunit.c (cgraph_node::finalize_function): Set definition
13567         before notice_global_symbol.
13568         (varpool_node::finalize_decl): Likewise.
13569         * varasm.c (default_binds_local_p_2): Rename from
13570         default_binds_local_p_1, add weak_dominate argument.  Use direct
13571         returns instead of assigning to local variable.  Unify varpool and
13572         cgraph paths via symtab_node.  Reject undef weak variables before
13573         testing visibility.  Reorder tests for simplicity.
13574         (default_binds_local_p): Use default_binds_local_p_2.
13575         (default_binds_local_p_1): Likewise.
13576         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
13577         via symtab_node.
13578         (default_elf_asm_output_external): Emit visibility when specified.
13580 2015-02-13  Alan Modra  <amodra@gmail.com>
13582         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
13583         code setting up r11 for out-of-line fp restore.
13585 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
13587         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
13588         (muser-mode): Likewise.
13590 2015-02-13  Alan Modra  <amodra@gmail.com>
13592         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
13593         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
13595 2015-02-12  David Howells  <dhowells@redhat.com>
13597         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
13598         warning.
13599         * tree-ssa-uninit.c (dump_predicates): Likewise.
13600         * opts.c (print_filtered_help): Likewise.
13602 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
13604         * dwarf2out.c (output_die): Use "%s", name instead of name to
13605         avoid -Wformat-security warning.
13607         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
13608         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
13609         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
13610         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
13612 2015-02-12  Jason Merrill  <jason@redhat.com>
13614         * common.opt (-flifetime-dse): New.
13616 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
13618         PR sanitizer/65019
13619         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
13621         PR tree-optimization/65014
13622         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
13623         use original second operand of arg0 or arg1 instead of
13624         that adjusted by STRIP_NOPS.
13626 2015-02-11  Jeff Law  <law@redhat.com>
13628         PR target/63347
13629         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
13630         that needs to be queued, just queue it for a single cycle.
13632 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
13634         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
13635         bodies of thunks; comment on why.
13636         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
13637         symbols are extern.
13639 2015-02-11  Richard Henderson  <rth@redhat.com>
13641         PR sanitize/65000
13642         * tree-eh.c (mark_reachable_handlers): Mark source and destination
13643         regions of __builtin_eh_copy_values.
13645 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
13647         PR middle-end/65003
13648         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
13649         ultimate alias is MEM with SYMBOL_REF satisfying
13650         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
13651         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
13653 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
13655         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
13656         "diagnostic-core.h".
13657         (main): Initialize progname, and call diagnostic_initialize.
13659         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
13660         instead of __OPENMP_TARGET__.
13662         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
13663         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
13664         hard-coding PTX_ID.
13666 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
13668         * doc/sourcebuild.texi (pie_enabled): Document.
13670 2015-02-11  Martin Liska  <mliska@suse.cz>
13672         PR ipa/64813
13673         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
13674         a return value for call to a function that is noreturn.
13676 2015-02-11  Richard Biener  <rguenther@suse.de>
13678         PR lto/65015
13679         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
13680         and -fresolution.
13682 2015-02-11  Andrew Pinski  <apinski@cavium.com>
13684         PR target/64893
13685         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
13686         Change the first argument type to size_type_node and add another
13687         size_type_node.
13688         (aarch64_simd_expand_builtin): Handle the new argument to
13689         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
13690         print an out when the first two arguments are not
13691         nonzero integer constants.
13692         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
13693         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
13695 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
13697         PR target/61925
13698         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
13699         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
13700         (ix86_set_current_function): Rewritten.
13701         (ix86_add_new_builtins): Temporarily clear current_target_pragma
13702         when creating builtin fndecls.
13704 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
13706         PR ipa/65005
13707         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
13708         function.
13709         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
13710         have no comdat group.
13711         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
13712         (lto_output_varpool_node): Always output alias info.
13713         (output_refs): Output refs of boundary aliases, too.
13714         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
13715         (output_symtab): Output call eges in thunks in boundary.
13716         (get_alias_symbol): Remove.
13717         (input_node, input_varpool_node): Do not special case weakrefs.
13718         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
13719         alias and thunks targets in the boundary; do not take removed symbols
13720         from their comdat groups.
13721         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
13722         (cgraph_node::global_info): Remove.
13723         (cgraph_node::rtl_info): Look through aliases and thunks.
13724         * cgrpah.h (global_info): Remove.
13725         (non_local_p): Remove.
13727 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
13728             Sandra Loosemore  <sandra@codesourcery.com>
13730         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
13731         to inline asm.  List dialects in proper order.
13733 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
13734             Sandra Loosemore  <sandra@codesourcery.com>
13736         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
13738 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
13740         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
13741         modified) reference to Solaris.
13743 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
13745         * doc/extend.texi (Extended Asm): Fix typos.
13747 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
13749         PR sanitizer/65004
13750         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
13752 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
13754         PR target/64661
13755         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
13756         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
13757         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
13758         * config/sh/constraints.md (Ara, Add): New constraints.
13759         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
13760         predicates.
13761         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
13762         atomic_mem_operand_0.  Don't use force_reg on the memory address.
13763         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
13764         Sra constraint.  Convert to insn_and_split.  Add workaround for
13765         PR 64974.
13766         (atomic_compare_and_swap<mode>_hard): Copy to
13767         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
13768         Use atomic_mem_operand_0 predicate.
13769         (atomic_compare_and_swap<mode>_soft_gusa,
13770         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
13771         AraAdd constraints.
13772         (atomic_compare_and_swap<mode>_soft_tcb,
13773         atomic_compare_and_swap<mode>_soft_imask,
13774         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
13775         atomic_mem_operand_0 predicate and SraSdd constraints.
13776         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
13777         constraint.
13778         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
13779         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
13780         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
13781         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
13782         force_reg on the memory address.
13783         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
13784         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
13785         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
13786         atomic_mem_operand_1 predicate and Sra constraint.
13787         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
13788         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
13789         Use atomic_mem_operand_1 predicate.
13790         (atomic_<fetchop_name><mode>_hard): Copy to
13791         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
13792         Use atomic_mem_operand_1 predicate.
13793         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
13794         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
13795         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
13796         insn_and_split.  Use atomic_mem_operand_1 predicate.
13797         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
13798         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
13799         Use atomic_mem_operand_1 predicate.
13800         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
13801         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
13802         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
13803         in generated insn with original mem operand before emitting the insn.
13804         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
13805         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
13806         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
13807         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
13808         Use atomic_mem_operand_1 predicate and AraAdd constraints.
13809         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
13810         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
13811         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
13812         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
13813         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
13814         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
13815         atomic_not_fetch<mode>_soft_tcb,
13816         atomic_<fetchop_name>_fetch<mode>_soft_imask,
13817         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
13818         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
13819         Use atomic_mem_operand_1 predicate and SraSdd constraints.
13821 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
13823         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
13824         and 3 earlyclobber operands.
13826 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
13828         * common.opt (fstack-reuse): Mark as optimization.
13830 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
13832         PR ipa/64982
13833         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
13835 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
13837         PR tree-optimization/64326
13838         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
13840 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
13842         PR gcov-profile/61889
13843         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
13845 2015-02-10  Richard Biener  <rguenther@suse.de>
13847         PR tree-optimization/64995
13848         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
13849         value we use is final.
13850         (visit_reference_op_store): Always valueize op.
13851         (visit_use): Properly valueize vuses.
13853 2015-02-10  Richard Biener  <rguenther@suse.de>
13855         PR tree-optimization/64909
13856         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
13857         pass a scalar-stmt count estimate to the cost model.
13858         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
13860 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
13862         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
13863         enabled by default together with var-tracking.
13865 2015-02-10  Nick Clifton  <nickc@redhat.com>
13867         * config/rl78/rl78.c: Remove DIV attribute code accidentally
13868         included in previous rl78 commit.
13870 2015-02-10  Richard Biener  <rguenther@suse.de>
13872         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
13873         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
13874         return the bitpack.
13876 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
13878         PR gcov-profile/61889
13879         * config.in: regenerate.
13880         * configure.in: Likewise.
13881         * configure.ac: Check for ftw.h.
13882         * gcov-tool.c: Check for ftw.h before using nftw.
13884 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
13886         PR lto/64076
13887         * ipa-visibility.c (update_visibility_by_resolution_info): Only
13888         assert when not in lto mode.
13890 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
13892         * ira-color.c (setup_left_conflict_sizes_p): Simplify
13893         initialization/assignment of conflict_size.
13895 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
13897         PR ipa/64978
13898         * ipa-cp.c (gather_caller_stats): Skip thunks.
13899         (propagate_constants_topo): Skip aliases.
13901 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
13903         PR target/64761
13904         * config/sh/sh.c (sh_option_override): Don't change
13905         -freorder-blocks-and-partition to -freorder-blocks even when
13906         unwinding is enabled.
13907         (sh_can_follow_jump): Return false if the followee jump is
13908         a crossing jump when -freorder-blocks-and-partition is specified.
13909         * config/sh/sh.md (*jump_compact_crossing): New insn.
13911 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
13912             Kaz Kojima  <kkojima@gcc.gnu.org>
13914         PR target/64761
13915         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
13916         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
13917         (sh_can_redirect_branch): Rename to ...
13918         (sh_can_follow_jump): ... this.  Constify argument types.
13919         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
13920         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
13921         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
13922         * doc/tm.texi: Regenerate.
13924 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
13926         PR sanitizer/64981
13927         * builtins.c (expand_builtin): Call targetm.expand_builtin
13928         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
13930 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
13932         PR ipa/61548
13933         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
13935 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
13937         PR ipa/63566
13938         * ipa-icf.c (set_local): New function.
13939         (sem_function::merge): Use it.
13941 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
13943         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
13944         (add_type_duplicate): Fix comparison of BINFOs.
13946 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
13948         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
13949         on getting VOID pointer.
13951 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
13953         PR target/64979
13954         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
13955         va_list escapes.
13957 2015-02-09  Richard Biener  <rguenther@suse.de>
13959         * genmatch.c (replace_id): Copy expr_type.
13961 2015-02-09  Richard Biener  <rguenther@suse.de>
13963         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
13964         (streamer_write_tree_bitfields): Declare.
13965         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
13966         properly unpack padding.
13967         (unpack_value_fields): Inline ...
13968         (streamer_read_tree_bitfields): ... here.
13969         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
13970         and properly add padding bits.
13971         (streamer_pack_tree_bitfields): Fold into ...
13972         (streamer_write_tree_bitfields): ... this new function,
13973         exposing the bitpack object.
13974         * lto-streamer-out.c (lto_write_tree_1): Call
13975         streamer_write_tree_bitfields.
13977 2015-02-09  Richard Biener  <rguenther@suse.de>
13979         PR tree-optimization/54000
13980         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
13981         (struct ivopts_data): Add loop_loc member.
13982         (tree_ssa_iv_optimize_loop): Dump loop location.
13983         (create_new_ivs): Likewise, also dump number of IVs generated.
13985 2015-02-09  Martin Liska  <mliska@suse.cz>
13987         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
13988         just if not yet registered.
13989         (ipa_icf_generate_summary): Register callgraph hooks.
13991 2015-02-08  Andrew Pinski  <apinski@cavium.com>
13993         * config/aarch64/aarch64.c (gty_dummy): Delete.
13995 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
13997         PR ipa/63566
13998         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
13999         (cgraph_node::local_p): Remove thunk related FIXME.
14001 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
14003         PR ipa/63566
14004         * i386.c (ix86_function_regparm): Look through aliases to see if callee
14005         is local and optimized.
14006         (ix86_function_sseregparm): Likewise; also use target's SSE math
14007         settings; error out instead of silently generating wrong code
14008         on mismatches.
14009         (init_cumulative_args): Look through aliases.
14011 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
14013         PR ipa/63566
14014         * ipa-split.c (execute_split_functions): Split if function has aliases.
14016 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
14018         PR ipa/63566
14019         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
14020         aliases before trying to expand it.
14021         (cgraph_node::expand_thunk): Fix formating.
14023 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
14025         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
14026         (Using Assembly Language with C): Expand introduction.
14027         (Basic Asm): Copy-edit.  Add more information about uses of
14028         basic asm.
14029         (Extended Asm): Copy-edit.  Document new escape syntax and
14030         %l[label] syntax.
14031         (Global Reg Vars): Copy-edit.
14032         (Local Reg Vars): Likewise.
14034 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
14036         PR debug/2714
14037         PR bootstrap/64256
14038         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
14039         (DBX_CONTIN_CHAR): Define.
14041 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
14042             Brian Rzycki  <b.rzycki@samsung.com>
14044         PR tree-optimization/64878
14045         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
14046         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
14047         Stop recursion at loop phi nodes after having visited a loop phi node.
14049 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
14051         * toplev.c (process_options): Change flag_ipa_ra before creating
14052         optimization_{default,current}_node.
14054         PR ipa/64896
14055         * cgraphunit.c (cgraph_node::expand_thunk): If
14056         restype is not is_gimple_reg_type nor the thunk_fndecl
14057         returns aggregate_value_p, set restmp to a temporary variable
14058         instead of resdecl.
14060 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
14062         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
14064 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
14066         PR target/64205
14067         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
14068         add a general secondary reload handler for SDmode, unless we have
14069         both read/write support for SDmode.
14071 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
14073         PR middle-end/64937
14074         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
14075         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
14076         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
14077         1 before, push it to abstract_vec.
14078         (dwarf2out_abstract_function): Adjust caller.  Don't call
14079         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
14080         DECL_ABSTRACT_P flags for all abstract_vec elts.
14082 2015-02-06  Renlin Li  <renlin.li@arm.com>
14084         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
14085         complex gimple.
14086         * tree-ssa.c (execute_update_addresses_taken): Likewise.
14088 2015-02-06  Jeff Law  <law@redhat.com>
14090         PR target/64889
14091         * config/h8300/h8300.c (push): New argument "in_prologue".
14092         Pass "in_prologue" along to "F".
14093         (h8300_push_pop): Corresponding changes.
14094         (h8300_expand_prologue): Likewise.
14095         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
14097 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
14099         PR rtl-optimization/64957
14100         PR debug/64817
14101         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
14102         IOR rather than for AND.
14104 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
14106         PR target/62631
14107         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
14108         of shift-add and (add + shift) operations.  Rename local variable.
14110 2015-02-05  Jeff Law  <law@redhat.com>
14112         PR target/17306
14113         * config/h8300/constraints.md (U): Correctly dectect
14114         "eightbit_data" memory addresses.
14115         * config/h8300/h8300.c (eightbit_constant_address_p): Also
14116         handle (const (plus (symbol_ref (x)))) where x is declared
14117         as an 8-bit data memory address.
14118         * config/h8300/h8300.md (call, call_value): Correctly detect
14119         "funcvec" functions.
14121         PR target/43264
14122         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
14123         24 to 28 bits for the H8/300.
14125 2015-02-06  Alan Modra  <amodra@gmail.com>
14127         PR target/64876
14128         * config/rs6000/rs6000.c (chain_already_loaded): New function.
14129         (rs6000_call_aix): Use it.
14131 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
14133         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
14134         check.
14136 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
14138         * config/h8300/constraints.md ("U" constraint): Use strict
14139         variant of REG_OK_FOR_BASE_P after reload has started.
14141 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
14143         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
14144         define to zero if !TARGET_NEON.
14145         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
14147 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
14148             Trevor Saunders  <tsaunders@mozilla.com>
14150         PR ipa/61548
14151         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
14153 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
14155         PR ipa/61548
14156         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
14157         when removing varpool nodes.
14159 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
14161         PR ipa/61548
14162         * varpool.c (varpool_node::remove): Fix order of variables.
14164 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
14166         PR ipa/64686
14167         * ipa-inline.c (inline_small_functions): Fix ordering issue between
14168         speculation resolution and key updates.
14170 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
14172         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
14173         about not letting any speculative edges unupdated.
14175 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
14177         PR gcov/64123
14178         * gcov-io.c (gcov_var): Export.
14180 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
14182         PR middle-end/64922
14183         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
14184         edges that become speculative.
14186 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
14188         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
14189         or DW_LANG_Fortran08.
14190         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
14191         DW_LANG_Fortran08.
14192         (gen_compile_unit_die): Handle "GNU Fortran2003" and
14193         "GNU Fortran2008" language strings.
14194         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
14195         * langhooks.h (lang_GNU_Fortran): New prototype.
14196         * langhooks.c (lang_GNU_Fortran): New function.
14197         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
14198         lang_GNU_Fortran.
14200 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
14202         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
14203         (RTX_OK_FOR_OLO10_P): Likewise.
14205 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
14207         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
14209 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
14211         PR middle-end/64922
14212         * gimple.c: Include gimple-ssa.h.
14213         (maybe_remove_unused_call_args): New function.
14214         * gimple.h (maybe_remove_unused_call_args): Declare.
14215         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
14216         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
14217         * gimple-fold.c (gimple_fold_call): Likewise.
14219 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
14221         PR rtl-optimization/64905
14222         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
14223         pointer alignment if it isn't needed.
14225 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
14227         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
14228         cortex-a72.cortex-a53.
14229         * config/aarch64/aarch64-tune.md: Regenerate.
14230         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
14232 2015-02-04  Nick Clifton  <nickc@redhat.com>
14234         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
14235         inside a MEM.
14237 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
14239         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
14240         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
14241         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
14242         of DEF_BUILTIN.
14243         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
14244         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
14245         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
14246         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
14247         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
14248         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
14249         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
14250         * tree-core.h (enum built_in_function): In between
14251         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
14252         for builtins that use DEF_BUILTIN_CHKP macro.
14254 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
14256         PR debug/64817
14257         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
14258         operands for tcc_comparison exprs.  Fix typos.
14260         PR debug/64817
14261         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
14262         of two XORs that have an intervening AND or IOR.
14264         PR debug/64817
14265         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
14266         simplification of XOR of AND to not allocate new rtx before
14267         committing to a simplification.
14269 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14271         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
14272         manual swaps in all peepholes.
14274 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14276         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
14277         of manual swapping implementation.
14278         (aarch64_expand_vec_perm_const_1): Likewise.
14280 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
14282         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
14283         (generic_addrcost_table): Remove NAMED_PARAM.
14284         (cortexa57_addrcost_table): Likewise.
14285         (xgene1_addrcost_table): Likewise.
14286         (generic_regmove_table): Likewise.
14287         (cortexa53_regmove_table): Likewise.
14288         (xgene1_regmove_table): Likewise.
14289         (generic_vector_table): Likewise.
14290         (cortexa57_vector_table): Likewise.
14291         (xgene1_vector_table): Likewise.
14292         (generic_tunings): Likewise.
14293         (cortexa53_tunings): Likewise.
14294         (cortexa57_tunings): Likewise.
14295         (xgene1_tunings): Likewise.
14297 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
14299         * config/arm/arm-cores.def: Add cortex-a72 and
14300         cortex-a72.cortex-a53.
14301         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
14302         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
14303         * config/arm/arm-tune.md: Regenerate.
14304         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
14305         "cortex-a72.cortex-a53".
14306         * doc/invoke.texi (ARM Options/-mtune): Likewise.
14308 2015-02-04  Nick Clifton  <nickc@redhat.com>
14310         PR target/64408
14311         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
14312         of accepted codes.
14313         (nonimmediate_di_operand): Likewise.
14315         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
14316         prefixes of known F5 using MSP430 MCUs.
14318 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14320         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
14321         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
14322         instead of __builtin_sqrt.
14324 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
14326         * varasm.c (do_assemble_alias): Follow transparent alias
14327         chain for target.
14328         (default_assemble_visibility): Follow transparent alias
14329         chain for decl name.
14331 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14333         PR middle-end/62103
14334         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
14335         to compute size of referenced value in the constant case.
14337 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
14339         PR rtl-optimization/64756
14340         * cse.c (invalidate_dest): New function.
14341         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
14342         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
14343         invalidate and do not record it.
14345 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
14347         PR target/64660
14348         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
14349         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
14350         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
14351         atomic_nand<mode>_soft_tcb): New insns.
14352         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
14353         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
14354         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
14355         Split into atomic_not_fetchsi_hard if operands[0] is unused.
14356         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
14357         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
14358         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
14359         atomic_not<mode>_hard if operands[0] is unused.
14360         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
14361         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
14362         if operands[0] is unused.
14363         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
14364         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
14365         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
14366         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
14367         unused.
14368         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
14369         into atomic_not<mode>_soft_tcb if operands[0] is unused.
14370         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
14371         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
14372         if operands[0] is unused.
14373         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
14374         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
14375         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
14376         atomic_nand_fetchsi_hard if operands[0] is unused.
14377         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
14378         atomic_nand<mode>_hard if operands[0] is unused.
14379         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
14380         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
14381         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
14382         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
14383         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
14384         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
14385         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
14386         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
14387         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
14388         atomic_not<mode>_hard if operands[0] is unused.
14389         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
14390         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
14391         unused.
14392         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
14393         into atomic_not<mode>_soft_tcb if operands[0] is unused.
14394         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
14395         atomic_nand<mode>_hard if operands[0] is unused.
14396         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
14397         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
14399 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
14401         PR jit/64810
14402         * Makefile.in (GCC_OBJS): Add gcc-main.o.
14403         * gcc-main.c: New file, containing "main" taken from gcc.c.
14404         * gcc.c (do_self_spec): Free decoded_options.
14405         (class driver): Move declaration to gcc.h.
14406         (main): Move declaration and implementation to new file
14407         gcc-main.c.
14408         (driver_get_configure_time_options): New function.
14409         * gcc.h (class driver): Move this declaration here, from
14410         gcc.c.
14411         (driver_get_configure_time_options): New declaration.
14413 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
14415         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
14416         cross-module inlining.
14417         * cgraph.h (cgraph_node): Add flag merged.
14418         * ipa-icf.c (sem_function::merge): Maintain it.
14420 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
14422         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
14423         instead of OBJECT_P.
14425 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
14427         PR target/62631
14428         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
14429         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
14430         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
14431         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
14433 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
14435         PR other/63504
14436         * combine.c (reg_n_sets_max): New variable.
14437         (can_change_dest_mode, reg_nonzero_bits_for_combine,
14438         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
14439         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
14440         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
14441         (rest_of_handle_combine): Initialize reg_n_sets_max.
14443 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
14445         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
14446         if some always_inline was inlined, apply changes before inlining
14447         heuristically.
14449 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
14451         PR jit/64810
14452         * config/arm/arm.c (arm_option_override): Set
14453         arm_selected_arch/cpu/tune to NULL on entry.
14455 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
14456             Andrew Pinski  <pinskia@gcc.gnu.org>
14457             Jakub Jelinek  <jakub@gcc.gnu.org>
14459         PR target/64231
14460         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
14461         integer typing for small model. Use IN_RANGE.
14463 2015-02-02  Richard Biener  <rguenther@suse.de>
14465         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
14466         * tree-vrp.c (vrp_valueize_1): Likewise.
14468 2015-02-02  Alan Modra  <amodra@gmail.com>
14470         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
14471         than mem for toc_restore.
14472         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
14473         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
14474         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
14476 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
14478         PR target/64047
14479         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
14480         explicit default options.
14482 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
14484         PR ipa/64872
14485         * ipa-utils.c (ipa_merge_profiles): Add release argument.
14486         * ipa-icf.c (sem_function::merge): Do not release body when merging.
14487         * ipa-utils.h (ipa_merge_profiles): Update prototype.
14489 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
14491         PR debug/64817
14492         * cfgexpand.c (deep_ter_debug_map): New variable.
14493         (avoid_deep_ter_for_debug): New function.
14494         (expand_debug_expr): If TERed SSA_NAME is in
14495         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
14496         instead of trying to expand SSA_NAME's def stmt.
14497         (expand_debug_locations): When expanding debug bind
14498         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
14499         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
14500         value.
14501         (pass_expand::execute): Call avoid_deep_ter_for_debug on
14502         all debug bind stmts.  Delete deep_ter_debug_map after
14503         expand_debug_location if non-NULL and clear it.
14505 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
14507         PR target/64851
14508         * config/sh/sync.md (atomic_fetch_notsi_hard,
14509         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
14510         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
14511         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
14512         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
14513         atomic_not_fetch<mode>_soft_imask): New insns.
14515 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
14517         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
14518         (rank_for_schedule_debug): Split from ...
14519         (rank_for_schedule): ... this.
14520         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
14521         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
14523 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
14525         * doc/md.texi (Machine Constraints): Alphabetize table by target.
14526         * doc/extend.texi (x86 Variable Attributes): Move section to
14527         correct alphabetization after renaming.
14528         (x86 Type Attributes): Likewise.
14529         (Target Builtins): Re-alphabetize menu.
14530         (x86 Built-in Functions): Move section to correct alphabetization
14531         after renaming.
14532         (x86 transactional memory intrinsics): Likewise.
14533         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
14534         and x86 Windows Options in table and menu.
14535         (x86 Options): Move section to correct alphabetization after
14536         renaming.
14537         (x86 Windows Options): Likewise.
14539 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
14541         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
14542         preferred names of the architecture and its 32- and 64-bit
14543         variants.
14544         * doc/invoke.texi: Likewise.
14545         * doc/md.texi: Likewise.
14547 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
14549         PR target/64882
14550         * config/i386/predicates.md (address_no_seg_operand): Reject
14551         non-CONST_INT_P operands in invalid mode.
14553 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
14555         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
14556         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
14557         * config/i386/predicates.md (address_no_seg_operand): Call
14558         address_operand with VOIDmode.
14559         (vsib_address_operand): Ditto.
14560         (address_mpx_no_base_operand): Ditto.
14561         (address_mpx_no_index_operand): Ditto.
14563 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
14565         PR target/64688
14566         * lra-constraints.c (original_subreg_reg_mode): New.
14567         (simplify_operand_subreg): Try to simplify subreg of const.  Use
14568         original_subreg_reg_mode for it.
14569         (swap_operands): Update original_subreg_reg_mode.
14570         (curr_insn_transform): Set up original_subreg_reg_mode.
14572 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
14574         PR target/64617
14575         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
14576         function.
14577         (process_alt_operands): Use it.
14578         (curr_insn_transform): Check the optional reload pseudo class is
14579         ok for the mode.
14581 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
14583         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
14584         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
14585         prototype.
14586         * toplev.h (init_asm_output): Update comment on use of
14587         UNKNOWN_LOCATION with fatal_error.
14588         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
14589         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
14590         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
14591         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
14592         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
14593         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
14594         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
14595         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
14596         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
14597         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
14598         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
14599         fatal_error changed to pass input_location as first argument.
14601 2015-01-30  Martin Liska  <mliska@suse.cz>
14603         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
14604         in #pragma GCC diagnostic guards.
14606 2015-01-30  Richard Biener  <rguenther@suse.de>
14608         PR tree-optimization/64829
14609         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
14610         not add a widening conversion pattern but hand off extra
14611         widenings to callers.
14612         (vect_recog_widen_mult_pattern): Handle extra widening produced
14613         by vect_handle_widen_op_by_const.
14614         (vect_recog_widen_shift_pattern): Likewise.
14615         (vect_pattern_recog_1): Remove excess vertical space in dumping.
14616         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
14617         (vect_init_vector_1): Likewise.
14618         (vect_get_vec_def_for_operand): Likewise.
14619         (vect_finish_stmt_generation): Likewise.
14620         (vectorizable_load): Likewise.
14621         (vect_analyze_stmt): Likewise.
14622         (vect_is_simple_use): Likewise.
14624 2015-01-29  Jeff Law  <law@redhat.com>
14626         * combine.c (try_combine): Fix typo in comment.
14628 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
14630         PR target/64580
14631         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
14632         (rs6000_stack_info): Add assert.
14633         (rs6000_output_savres_externs): New function, split off from...
14634         (rs6000_output_function_prologue): ... here.  Do not call it for
14635         thunks.
14637 2015-01-29  Jeff Law  <law@redhat.com>
14639         PR target/15184
14640         * combine.c (try_combine): If I0 is a memory load and I3 a store
14641         to a related address, increase the "goodness" of doing a 4-insn
14642         combination with I0-I3.
14643         (make_field_assignment): Handle SUBREGs in the ior+and case.
14645 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
14647         PR tree-optimization/64746
14648         * tree-if-conv.c (mask_exists): New function.
14649         (predicate_mem_writes): Save created mask with given size for further
14650         use.
14651         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
14652         (ifcvt_repair_bool_pattern): Collect all statements that are root
14653         of bool pattern and use iterative algorithm to remove multiple uses
14654         of predicates, display number of required iterations.
14656 2015-01-29  Richard Biener  <rguenther@suse.de>
14658         PR tree-optimization/64853
14659         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
14660         stmt will get simulated again.
14661         * tree-ssa-ccp.c (valueize_op_1): Likewise.
14663 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14665         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
14666         return_in_pc.  Remove redundant assignments.
14667         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
14668         (arm_expand_epilogue): Don't compare boolean with true in if condition.
14670 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
14672         * config/i386/i386.c (ix86_mode_after): Make static.
14674 2015-01-29  Richard Biener  <rguenther@suse.de>
14676         PR tree-optimization/64844
14677         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
14678         dump cost model analysis.
14679         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
14680         Do not register adjusted load/store costs here.
14682 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
14683             Uros Bizjak  <ubizjak@gmail.com>
14685         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
14686         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
14687         using x86_use_pseudo_pic_reg.
14688         * config/i386/i386.c (ix86_conditional_register_usage): Remove
14689         support for fixed PIC register.
14690         (ix86_use_pseudo_pic_reg): Not static any more.
14692 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
14694         PR middle-end/64805
14695         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
14696         to avoid error in cgraph node verification.
14698 2015-01-29  Marek Polacek  <polacek@redhat.com>
14700         * doc/standards.texi: Reflect that the default for C is gnu11.
14702 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
14704         PR target/64761
14705         * reorg.c (switch_text_sections_between_p): New function.
14706         (relax_delay_slots): Call it when testing if the jump insn
14707         is removable.  Use targetm.can_follow_jump when testing if
14708         the conditional branch can follow an unconditional jump.
14710 2015-01-27  Caroline Tice  <cmtice@google.com>
14712         Committing VTV Cywin/Ming patch for Patrick Wollgast
14713         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
14714         if -fvtable-verify=preinit/std is used.
14715         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
14716         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
14717         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
14718         if -fvtable-verify=preinit/std is used.
14719         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
14720         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
14721         if -fvtable-verify=preinit/std is used.
14722         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
14723         * config/i386/mingw32.h (LIB_SPEC): Likewise.
14724         * varasm.c (assemble_variable): Add code to properly set the comdat
14725         section and name for the .vtable_map_vars section in case the
14726         target is PE or COFF.
14728 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
14730         PR ipa/64801
14731         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
14732         make sane BB profile.
14733         (cgraph_node::expand_thunk): Make sane BB profile.
14734         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
14735         * cgraph.h (init_lowered_empty_function): Update prototype.
14736         * config/i386/i386.c (make_resolver_func): Update call.
14737         * predict.c (gate): Disable branch prediction pass if
14738         profile is already there.
14740 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
14742         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
14743         * opth-gen.awk: Likewise.
14744         * common.opt: Mark flag_fp_contract_mode as Optimization.
14746 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14748         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
14749         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
14751 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
14753         PR target/64659
14754         * config/sh/predicates.md (atomic_arith_operand,
14755         atomic_logical_operand): Remove.
14756         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
14757         (atomic_arith_operand_0): New predicate.
14758         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
14759         Use atomic_arith_operand_0 for input values.
14760         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
14761         atomic_compare_and_swap<mode>_soft_gusa,
14762         atomic_compare_and_swap<mode>_soft_tcb,
14763         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
14764         arith_reg_operand instead of register_operand.
14765         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
14766         atomic_arith_operand_0 for newval input.
14767         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
14768         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
14769         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
14770         arith_reg_operand instead of register_operand.
14771         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
14772         fetchop_predicate_1, fetchop_constraint_1_llcs,
14773         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
14774         fetchop_constraint_1_imask): New code iterator attributes.
14775         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
14776         register_operand.  Use fetchop_predicate_1.
14777         (atomic_fetch_<fetchop_name>si_hard,
14778         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
14779         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
14780         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
14781         and arith_reg_operand instead of register_operand.  Use
14782         fetchop_predicate_1, fetchop_constraint_1_gusa.
14783         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
14784         and arith_reg_operand instead of register_operand.  Use
14785         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
14786         to allow R0 usage.
14787         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
14788         and arith_reg_operand instead of register_operand.  Use
14789         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
14790         to allow R0 usage.
14791         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
14792         register_operand.  Use atomic_logical_operand_1.
14793         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
14794         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
14795         arith_reg_operand instead of register_operand.
14796         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
14797         Use arith_reg_dest and arith_reg_operand instead of register_operand.
14798         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
14799         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
14800         register_operand.  Use fetchop_predicate_1.
14801         (atomic_<fetchop_name>_fetchsi_hard,
14802         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
14803         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
14804         fetchop_constraint_1_llcs.
14805         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
14806         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
14807         fetchop_constraint_1_gusa.
14808         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
14809         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
14810         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
14811         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
14812         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
14813         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
14814         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
14815         register_operand.  Use atomic_logical_operand_1.
14816         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
14817         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
14818         arith_reg_operand instead of register_operand.
14819         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
14820         arith_reg_operand instead of register_operand.  Use logical_operand
14821         and K08.  Adjust asm sequence to allow R0 usage.
14822         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
14823         arith_reg_operand instead of register_operand.  Use logical_operand
14824         and K08.
14826 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
14828         PR other/63504
14829         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
14830         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
14831         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
14832         only get_full_len HOST_WIDE_INTs from get_val () array rather than
14833         all bits in *val_wide.
14835 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
14837         * varpool.c (tls_model_names): Fix names.
14838         (varpool_node::dump): Dump tls- prefix for tls models.
14840 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
14841             Bernd Schmidt  <bernds@codesourcery.com>
14842             Nathan Sidwell  <nathan@codesourcery.com>
14844         * config/nvptx/mkoffload.c: New file.
14845         * config/nvptx/t-nvptx: Add build rules for it.
14846         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
14847         (extra_programs): Add mkoffload.
14848         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
14849         function.
14850         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
14852 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
14854         PR middle-end/64809
14855         * cfgexpand.c (reorder_operands): Skip debug gimples.
14857 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
14859         PR tree-optimization/64277
14860         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
14861         range info when possible to refine estimation.
14863 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14865         PR tree-optimization/64718
14866         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
14867         be a 16bit unsigned integer when n->range is 16.
14868         (bswap_replace): Convert src to that type if necessary for all bswap
14869         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
14870         set in pass_optimize_bswap::execute ().
14872 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
14874         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
14875         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
14876         integer and floating point variants.
14877         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
14879 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
14881         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
14882         for all vector modes.
14884 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
14886         PR bootstrap/64612
14887         * doc/sourcebuild.texi (comdat_group): Document.
14889 2015-01-28  Terry Guo  <terry.guo@arm.com>
14891         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
14893 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
14895         * toplev.c (print_version): Add param "show_global_state", and
14896         only print GGC and plugin information if it is true.
14897         (init_asm_output): Pass in "true" for the new param when calling
14898         print_version.
14899         (process_options): Likewise.
14900         (toplev::main): Likewise.
14901         * toplev.h (print_version): Add new param to decl.
14903 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
14905         PR ipa/60871
14906         PR ipa/64139
14907         * tree.c (lookup_binfo_at_offset): New function.
14908         (get_binfo_at_offset): Use it.
14910 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
14912         PR ipa/64282
14913         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
14914         on vtable being vtable.
14916 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14918         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
14919         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
14920         -mhotpatch= option.
14921         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
14922         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
14923         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
14924         Renamed.
14925         (s390_hotpatch_trampoline_halfwords_max): Renamed.
14926         (s390_hotpatch_hw_max): New name.
14927         (s390_hotpatch_trampoline_halfwords): Renamed.
14928         (s390_hotpatch_hw_before_label): New name.
14929         (get_hotpatch_attribute): Removed.
14930         (s390_hotpatch_hw_after_label): New name.
14931         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
14932         attribute.
14933         (s390_attribute_table): Ditto.
14934         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
14935         (s390_function_num_hotpatch_hw): New name.
14936         Remove special handling of inline functions and hotpatching.
14937         Return number of nops before and after the function label.
14938         (s390_can_inline_p): Removed.
14939         (s390_asm_output_function_label): Emit a configurable number of nops
14940         after the function label.
14941         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
14942         (TARGET_CAN_INLINE_P) Removed.
14943         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
14945 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14946             Jiong Wang  <jiong.wang@arm.com>
14948         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
14949         of scratch reg.
14950         (cb<optab><mode>1): Likewise.
14951         * config/aarch64/iterators.md (bcond): New define_code_attr.
14953 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14955         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
14956         memory accesses.
14958 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14960         * config/s390/s390.c (s390_register_move_cost): Increase costs for
14961         FPR->GPR moves.
14963 2015-01-27  Richard Biener  <rguenther@suse.de>
14965         * tree-vrp.c (update_value_range): Intersect the range with
14966         old recorded SSA name range information.
14968 2015-01-27  Nick Clifton  <nickc@redhat.com>
14970         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
14971         BC, DE and HL registers directly, not via AX.
14972         When decrementing the stack pointer by a large amount, transfer SP
14973         into AX and perform the subtraction there.
14974         (rl78_expand_epilogue): Perform the inverse of the above
14975         enhancements.
14977 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14979         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
14981 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
14982             Yury Gribov  <y.gribov@samsung.com>
14984         PR ubsan/64741
14985         * ubsan.c (ubsan_source_location): Refactor code.
14986         (ubsan_type_descriptor): Update type size. Refactor code.
14988 2015-01-27  Richard Biener  <rguenther@suse.de>
14990         PR tree-optimization/56273
14991         PR tree-optimization/59124
14992         PR tree-optimization/64277
14993         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
14994         from the first VRP pass.
14996 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
14998         PR ipa/64776
14999         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
15000         handle the first argument in the same loop as all the other arguments.
15002         PR rtl-optimization/61058
15003         * jump.c (cleanup_barriers): Update basic block boundaries
15004         if BLOCK_FOR_INSN is non-NULL on PREV.
15006 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
15008         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
15009         bounds narrowing, already instrumented calls and calls to
15010         not instrumentable functions.
15012 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
15014         PR tree-optimization/64807
15015         * wide-int.cc (wi::divmod_internal): Clear
15016         b_dividend[dividend_blocks_needed].
15018 2015-01-26  DJ Delorie  <dj@redhat.com>
15020         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
15021         volatile memory references.
15023 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
15025         PR target/49263
15026         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
15027         remove_insn.
15028         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
15029         shifts if it already fits into K08.
15031 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
15033         PR ipa/64730
15034         * ipa-inline.c (inline_small_functions): Print "unknown" even
15035         if edge->call_stmt is non-NULL, but has builtins or unknown
15036         location.
15038         PR middle-end/64421
15039         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
15040         with asterisk, skip the first character.
15042 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
15044         PR target/64806
15045         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
15046         order change.
15048 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
15050         PR target/64795
15051         * config/i386/i386.md (*movdi_internal): Also check operand 0
15052         to determine TYPE_LEA operand.
15053         (*movsi_internal): Ditto.
15055 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
15057         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
15058         OPTION_MASK_QUAD_MEMORY_ATOMIC.
15060 2015-01-26  Renlin Li  <renlin.li@arm.com>
15062         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
15063         the comment.
15064         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
15065         for higher part.
15067 2015-01-26  Richard Biener  <rguenther@suse.de>
15069         PR middle-end/64764
15070         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
15071         combining two BIT_AND_EXPR predicates.
15073 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
15075         PR bootstrap/64754
15076         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
15078 2015-01-26  Terry Guo  <terry.guo@arm.com>
15080         * config/arm/arm.c (arm_file_start): Update the assignment of
15081         Tag_ABI_HardFP_use.
15083 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
15085         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
15086         pipeline model.
15087         config/arm/arm.md: Include the new Cortex-A57 model.
15088         (generic_sched): Don't use generic_sched when tuning for
15089         Cortex-A57.
15091 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
15092             Uros Bizjak  <ubizjak@gmail.com>
15094         * config/i386/i386.c (get_builtin_code_for_version): Add
15095         support for BMI and BMI2 multiversion functions.
15097 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15099         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
15100         (extract_bit_field): Likewise.
15101         (extract_low_bits): Likewise.
15102         (expand_mult): Likewise.
15103         (expand_mult_highpart_adjust): Likewise.
15105 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
15107         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
15108         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
15109         * config/i386/i386.c (processor_model): Add
15110         M_INTEL_COREI7_BROADWELL.
15111         (arch_names_table): Add "broadwell".
15113 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
15115         PR target/49263
15116         PR target/53987
15117         PR target/64345
15118         PR target/59533
15119         PR target/52933
15120         PR target/54236
15121         PR target/51244
15122         * config/sh/sh-protos.h
15123         (sh_extending_set_of_reg::can_use_as_unextended_reg,
15124         sh_extending_set_of_reg::use_as_unextended_reg,
15125         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
15126         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
15127         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
15128         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
15129         (sh_treg_insns): New class.
15130         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
15131         (scope_counter): New class.
15132         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
15133         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
15134         sh_extending_set_of_reg::can_use_as_unextended_reg,
15135         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
15136         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
15137         sh_split_treg_set_expr): New functions.
15138         (addsubcosts): Handle treg_set_expr.
15139         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
15140         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
15141         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
15142         (sh_insn_operands_modified_between_p): Make non-static.
15143         * config/sh/predicates.md (zero_extend_movu_operand): Allow
15144         simple_mem_operand in addition to displacement_mem_operand.
15145         (zero_extend_operand): Don't allow zero_extend_movu_operand.
15146         (treg_set_expr, treg_set_expr_not_const01,
15147         arith_reg_or_treg_set_expr): New predicates.
15148         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
15149         arith_or_int_operand instead of logical_operand.  Convert to
15150         insn_and_split.  Try to optimize constant operand in splitter.
15151         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
15152         (*tstqi_t_zero): Delete.
15153         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
15154         (tstsi_t_and_not): Delete.
15155         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
15156         Convert to insn_and_split.
15157         (unnamed split, tstsi_t_zero_extract_xor,
15158         tstsi_t_zero_extract_subreg_xor_little,
15159         tstsi_t_zero_extract_subreg_xor_big): Delete.
15160         (*tstsi_t_shift_mask): New insn_and_split.
15161         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
15162         to recombine with surrounding insns when splitting.
15163         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
15164         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
15165         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
15166         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
15167         (*cbranch_div0s: Delete.
15168         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
15169         Try to recombine with surrounding insns when splitting.  Add operand
15170         order variants.
15171         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
15172         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
15173         *addc_r_r_msb, *addc_2r_msb): Delete.
15174         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
15175         order variant.
15176         (*addc_negreg_t): New insn_and_split.
15177         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
15178         Try to recombine with surrounding insns when splitting.
15179         Add operand order variants.
15180         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
15181         insn_and_split patterns.
15182         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
15183         surrounding insns when splitting.
15184         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
15185         (*rotcl): Likewise.  Add zero_extract variant.
15186         (*ashrsi2_31): New insn_and_split.
15187         (*negc): Convert to insn_and_split.  Use treg_set_expr.
15188         (*zero_extend<mode>si2_disp_mem): Update comment.
15189         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
15190         condition.
15191         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
15192         with surrounding insns when splitting.
15193         (any_treg_expr_to_reg): New insn_and_split.
15194         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
15195         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
15196         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
15197         *zero_extract_2): New single bit zero extract patterns.
15198         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
15199         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
15200         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
15201         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
15202         set destination.
15203         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
15204         register_operand for set source.
15206 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
15208         * i386.opt (prefetch_sse): New targetsave.
15209         * i386.c (ix86_function_specific_save): Save prefetch_sse.
15210         (ix86_function_specific_restore): Restore prefetch_sse and initialize
15211         ix86_cost/ix86_tune_cost.
15213 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
15215         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
15216         Support the JIT by using 0 as the language type.
15218 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
15220         PR target/64317
15221         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
15222         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
15223         (mark_regno_live, process_bb_lives): Pass new parameter value to
15224         make_hard_regno_born.
15226 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
15228         PR rtl-optimization/63637
15229         PR rtl-optimization/60663
15230         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
15231         if elt->cost is MAX_COST for ASM_OPERANDS.
15232         (find_sets_in_insn): Fix up comment typo.
15233         (cse_insn): Don't set src_volatile for all non-volatile
15234         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
15235         or with "memory" clobber.  Set elt->cost to MAX_COST
15236         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
15237         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
15239 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
15241         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
15242         alternative 1.
15244 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
15246         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
15247         libgcc/config/i386/elf-lib.h.
15249 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
15251         PR driver/64737
15252         * gcc.c (print_configuration): Don't print a blank line at the end
15253         here...
15254         (run_attempt): ... but here unstead.
15256         PR middle-end/64734
15257         * omp-low.c (scan_sharing_clauses): Don't ignore
15258         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
15259         on target data/update constructs.
15261 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15263         PR target/50928
15264         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
15265         (DEBUG_RELOAD): Removed define.
15266         (m32c_limit_reload_class): Enable traces with if DEBUG0.
15267         (m32c_function_arg): Added a type cast.
15268         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
15269         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
15270         * config/m32c/bitops.md (andqi3_16): Likewise.
15271         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
15272         (push_a01_l): Likewise.
15274 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
15276         PR jit/64721
15277         * main.c (main): Construct toplev instances with init_signals=true.
15278         * toplev.c (general_init): Add param "init_signals", and use it to
15279         conditionalize the calls to signal and host_hooks.extra_signals.
15280         (toplev::toplev): Add param "init_signals".
15281         (toplev::main): When invoking general_init, pass m_init_signals
15282         to control whether signal-handlers are installed.
15283         * toplev.h (toplev::toplev): Add param "init_signals".
15284         (toplev::m_init_signals): New field.
15286 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
15288         PR jit/64722
15289         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
15290         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
15291         latter may be affected by the former (e.g. on i686).
15293 2015-01-23  Martin Liska  <mliska@suse.cz>
15295         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
15296         false positive during profiledbootstrap.
15298 2015-01-23  Tom de Vries  <tom@codesourcery.com>
15300         PR libgomp/64672
15301         * lto-opts.c (lto_write_options): Output non-explicit conservative
15302         -fno-openacc.
15303         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
15304         (append_compiler_options): Pass -fopenacc through.
15306 2015-01-23  Tom de Vries  <tom@codesourcery.com>
15308         PR libgomp/64707
15309         * lto-opts.c (lto_write_options): Output non-explicit conservative
15310         -fno-openmp.
15311         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
15312         (append_compiler_options): Pass -fopenmp through.
15314 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
15316         PR debug/64511
15317         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
15318         GTY markup.
15320         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
15321         * diagnostic.def (DK_ICE_NOBT): New kind.
15322         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
15323         like DK_ICE, but never print backtrace.
15324         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
15325         (internal_error_no_backtrace): New function.
15326         * gcc.c (execute): Use internal_error_no_backtrace instead of
15327         internal_error.
15329 2015-01-22  Jeff Law  <law@redhat.com>
15331         PR target/52076
15332         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
15333         improve code density for small immediate to memory case.
15334         (insv): Better handle bitfield assignments when the field is
15335         being set to all ones.
15336         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
15337         operand predicate.
15339 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15340             Jakub Jelinek  <jakub@redhat.com>
15342         PR middle-end/64729
15343         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
15344         for !TARGET_LIBC_PROVIDES_SSP version and
15345         -fstack-protector-{all,strong,explicit} otherwise.
15346         * config/freebsd.h (LINK_SSP_SPEC): Handle
15347         -fstack-protector-{strong,explicit}.
15349 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
15350             H.J. Lu  <hongjiu.lu@intel.com>
15352         PR ipa/64694
15353         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
15354         heap.
15356 2015-01-22  Wei Mi  <wmi@google.com>
15358         PR rtl-optimization/64557
15359         * dse.c (record_store): Call get_addr for mem_addr.
15360         (check_mem_read_rtx): Likewise.
15362 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
15364         * fold-const.c (const_binop): Add early return for non-tcc_binary.
15366 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
15368         * toplev.c (init_local_tick): Process the failure when read
15369         fails for random_seed.
15371         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
15372         'pretty_name' to avoid memory overflow.
15374 2015-01-22  Richard Biener  <rguenther@suse.de>
15376         PR middle-end/64728
15377         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
15378         abnormal coalescing on undefined SSA names.
15380 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
15382         PR target/64688
15383         PR target/64477
15384         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
15385         for alternative 3.
15386         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
15388 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
15390         PR middle-end/63325
15391         * fold-const.c (fold_checksum_tree): Don't include value of
15392         expr->decl_with_vis.symtab_node in the checksum.
15394 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15396         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
15398 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
15400         PR driver/64690
15401         * gcc.c (insert_comments): New function.
15402         (try_generate_repro): Call it.
15403         (append_text): Removed.
15405 2015-01-22  Richard Biener  <rguenther@suse.de>
15407         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
15408         with IL incompatible options.  Properly honor user optimize
15409         attributes.
15411 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
15413         PR rtl-optimization/64682
15414         * combine.c (distribute_notes): When moving a death note for
15415         a register that is set in the new I2, make sure to put it
15416         before that new I2.
15418 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
15420         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
15421         not TARGET_DEFAULT.
15423 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
15425         PR debug/64511
15426         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
15427         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
15428         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
15430         PR sanitizer/64706
15431         * doc/invoke.texi (-fsanitize=vptr): Document.
15433         PR rtl-optimization/62078
15434         * dse.c: Include cfgcleanup.h.
15435         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
15436         anything call purge_all_dead_edges and cleanup_cfg at the end
15437         of the pass.
15439 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
15441         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
15442         edges.
15444 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15446         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
15447         decl attribute.
15449 2015-01-21  David Sherwood  <david.sherwood@arm.com>
15450             Tejas Belagod <Tejas.Belagod@arm.com>
15452         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
15453         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
15454         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
15455         Removed.
15457 2015-01-21  David Sherwood  <david.sherwood@arm.com>
15458             Tejas Belagod <Tejas.Belagod@arm.com>
15460         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
15461         (aarch64_reverse_mask): New decls.
15462         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
15463         (insn_count): New mode_attr.
15464         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
15465         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
15466         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
15467         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
15468         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
15469         (aarch64_simd_st4): New patterns.
15470         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
15471         (aarch64_reverse_mask): New functions.
15473 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
15475         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
15476         Declare.
15477         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
15478         addressing modes for BE.
15479         (aarch64_print_operand): Add 'R' specifier.
15480         (aarch64_simd_disambiguate_copy): Delete.
15481         (aarch64_simd_emit_reg_reg_move): New function.
15482         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
15483         in define_splits for structural moves.
15484         (mov<mode>): Use less restrictive predicates.
15485         (*aarch64_mov<mode>): Simplify and only allow for LE.
15486         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
15488 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
15490         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
15492 2015-01-21  Richard Henderson  <rth@redhat.com>
15494         PR target/64669
15495         * ccmp.c (used_in_cond_stmt_p): Remove.
15496         (expand_ccmp_expr): Don't use it.
15498 2015-01-21  Nick Clifton  <nickc@redhat.com>
15500         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
15501         PARALLELs.
15503 2015-01-21  Richard Biener  <rguenther@suse.de>
15505         PR middle-end/64313
15506         * tree-core.h (builtin_info, builtin_info_type): Turn from
15507         an object with two arrays into an array of an object with
15508         decl and two flags, implicit_p and declared_p.
15509         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
15510         set_builtin_decl, set_builtin_decl_implicit_p,
15511         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
15512         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
15513         * builtins.c (builtin_info): Adjust.
15514         * gimplify.c (gimplify_addr_expr): References to builtins
15515         that have been declared by the user makes them eligible for
15516         use by the compiler.  Call set_builtin_decl_implicit_p on them.
15518 2015-01-20  Jeff Law  <law@redhat.com>
15520         PR target/59946
15521         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
15522         allow pc-relative addresses in operand predicates or constraints.
15524 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
15526         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
15527         neon on aarch32 processors for stringops.
15529 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
15531         PR ipa/63576
15532         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
15534 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
15536         PR lto/45375
15537         * ipa-inline.c: Include lto-streamer.h
15538         (report_inline_failed_reason): Output source file differences and
15539         flags on optimization/target node mismatch.
15540         (can_inline_edge_p): Consider caller to be the outer inline function;
15541         be less restrictive about matching opimize and optimize_size attributes.
15542         (inline_account_function_p): Break out from ...
15543         (inline_small_functions): ... here.
15544         * ipa-inline-transform.c (clone_inlined_nodes): Use
15545         inline_account_function_p.
15546         (inline_call): Use optimize attribution; use inline_account_function_p.
15547         (inline_transform): Use opt_for_fn.
15548         * ipa-inline.h (inline_account_function_p): Declare.
15550 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
15552         PR debug/64663
15553         * dwarf2out.c (decl_piece_node): Don't put bitsize into
15554         mode if bitsize <= 0.
15555         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
15556         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
15557         sizes and positions.
15559 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
15561         * config/nios2/nios2.c (nios2_asm_file_end): Implement
15562         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
15563         needed.
15564         (TARGET_ASM_FILE_END): Define.
15566 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
15568         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
15569         (struct tune_params): Use the enum.
15570         * arm.c (arm_*_tune): Update.
15571         (arm_option_override): Update.
15573 2015-01-20  Richard Biener  <rguenther@suse.de>
15575         PR ipa/64684
15576         * ipa-reference.c (add_static_var): Inline ...
15577         (analyze_function): ... here after splitting out from ...
15578         (is_proper_for_analysis): ... this.
15580 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
15582         PR target/64149
15583         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
15584         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
15585         replace the conditional with it's true branch.
15586         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
15587         (arm_lra_p): Remove.
15589 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
15591         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
15593 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15595         * config/tilegx/mul-tables.c: Move symtab.h include after
15596         coretypes.h include.
15597         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
15598         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
15599         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
15600         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
15601         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
15603 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
15605         PR bootstrap/64676
15606         Revert:
15607         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
15609         PR rtl-optimization/64081
15610         * loop-iv.c (def_pred_latch_p): New function.
15611         (latch_dominating_def): Allow specific cases with non-single
15612         definitions.
15613         (iv_get_reaching_def): Likewise.
15614         (check_complex_exit_p): New function.
15615         (check_simple_exit): Use check_complex_exit_p to allow certain cases
15616         with exits not executing on any iteration.
15618 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
15620         PR lto/45375
15621         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
15622         to set branch cost.
15624 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
15626         PR lto/45375
15627         * i386.c (gate): Check flag_expensive_optimizations and
15628         optimize_size.
15629         (ix86_option_override_internal): Drop optimize_size condition
15630         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
15631         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
15632         MASK_PREFER_AVX128.
15633         (ix86_avx256_split_vector_move_misalign,
15634         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
15635         * sse.md (all uses of TARGET_PREFER_AVX128): Add
15636         optimize_insn_for_speed_p check.
15638 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
15640         * config/mips/mips.h (FP_ASM_SPEC): New define.
15641         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
15642         instead.
15644 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
15646         PR target/53988
15647         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
15648         nullptr for insn when reaching the first insn.
15649         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
15650         (sh_insn_operands_modified_between_p): Add nullptr check.
15651         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
15652         sign extending mem load if the insn contains any UNSPEC or
15653         UNSPEC_VOLATILE.
15655 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
15657         * params.def (inline-unit-growth): Drop to 15%.
15658         * invoke.texi (inline-unit-growth): Document change.
15660 2015-01-19  Martin Liska  <mliska@suse.cz>
15662         PR ipa/64668
15663         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
15664         function for second argument of OBJ_TYPE_REF.
15666 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
15668         PR ipa/64218
15669         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
15670         whether function is an alias.
15672 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
15674         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
15675         cases.
15677 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
15679         PR rtl-optimization/64671
15680         * lra-remat.c (operand_to_remat): Don't consider jump and call
15681         insns.
15683 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
15685         PR target/59828
15686         * config/rs6000/default64.h: Include rs6000-cpus.def.
15687         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
15688         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
15689         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
15690         and POWER8.
15691         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
15692         POWER8.
15693         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
15694         pseudo-op to specify assembler dialect.
15696 2015-01-19  Martin Liska  <mliska@suse.cz>
15698         PR ipa/64664
15699         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
15700         Handle safe potentially removed nodes during filtering.
15702 2015-01-19  Martin Liska  <mliska@suse.cz>
15704         * doc/extend.texi (no_icf): Add new attribute description.
15705         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
15706         where the pass attempts to merge a function with no_icf attribute.
15708 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15710         PR target/64532
15711         * doc/md.texi (ARM Options): Document register constraints.
15713 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
15714             Andrew Pinski  <apinski@cavium.com>
15716         PR target/64304
15717         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
15718         (ashl<mode>3): Don't expand if operands[2] is not constant.
15720 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15722         PR target/64448
15723         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
15724         Match xor-and-xor RTL pattern.
15726 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
15728         PR rtl-optimization/64081
15729         * loop-iv.c (def_pred_latch_p): New function.
15730         (latch_dominating_def): Allow specific cases with non-single
15731         definitions.
15732         (iv_get_reaching_def): Likewise.
15733         (check_complex_exit_p): New function.
15734         (check_simple_exit): Use check_complex_exit_p to allow certain cases
15735         with exits not executing on any iteration.
15737 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
15739         * common.opt (fgraphite): Fix a typo.
15741 2015-01-19  Felix Yang  <felix.yang@huawei.com>
15743         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
15744         pattern.
15745         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
15746         uminp, smax_nanp, smin_nanp): New builtins.
15747         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
15748         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
15749         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
15750         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
15751         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
15752         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
15753         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
15754         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
15755         vpminnms_f32): Rewrite using builtin functions.
15757 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
15759         PR libgomp/64625
15760         * omp-low.c (offload_symbol_decl): Remove variable.
15761         (get_offload_symbol_decl): Remove function.
15762         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
15763         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
15764         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
15765         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
15766         BUILT_IN_GOACC_UPDATE don't pass it at all.
15768 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
15770         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
15771         callers.
15773 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
15775         * ipa-chkp.c (chkp_produce_thunks): Add early param
15776         to split thunks production into two passes.  Keep
15777         'always_inline' function bodies after the first pass.
15778         (pass_data_ipa_chkp_early_produce_thunks): New.
15779         (pass_ipa_chkp_early_produce_thunks): New.
15780         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
15781         chkp_produce_thunks signature.
15782         (make_pass_ipa_chkp_early_produce_thunks): New.
15783         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
15784         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
15785         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
15787 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
15789         * cgraph.c (cgraph_node::dump): Dump profile flags.
15791 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
15793         PR target/64652
15794         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
15795         reg appear first in the parallel.
15797 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
15799         * ipa-reference.c (set_reference_optimization_summary,
15800         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
15801         disabled.
15802         (ignore_module_statics): New static var.
15803         (propagate_bits): If ipa-reference is disabled, do not look into local
15804         properties.
15805         (analyze_function): Disable analysis when ipa_reference is disabled.
15806         (generate_summary): Do not dump when reference is disabled;
15807         collect vars accessed from functions with ipa-reference disabled.
15808         (get_read_write_all_from_node): When ipa-reference is disabled, use the
15809         node flags.
15810         (gate): Enable for LTO.
15811         (ignore_edge_p): New function.
15812         (propagate): Skip functions w/o ipa-reference analysis.
15813         * optc-save-gen.awk: Handle optimize_debug correctly.
15814         * opth-gen.awk: Likewise.
15815         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
15816         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
15817         fira-share-save-slots, fira-share-spill-slots,
15818         fmodulo-sched-allow-regmoves, fpartial-inlining,
15819         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
15820         ftracer, ftree-parallelize-loops, fassociative-math,
15821         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
15822         Optimization
15823         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
15824         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
15825         Optimization.
15826         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
15827         Fix for IPA.
15829 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
15831         PR ipa/64378
15832         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
15833         flag correctly.
15834         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
15836 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
15838         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
15839         Remove duplicate option listings.
15841 2015-01-18  Felix Yang  <felix.yang@huawei.com>
15843         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
15844         (autofdo_source_profile::get_callsite_total_count,
15845         function_instance::get_function_instance_by_decl,
15846         string_table::get_index, string_table::get_index_by_decl,
15847         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
15848         Fix comment typos. Reformatting and minor code rearrangement.
15850 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
15852         * config/rs6000/rs6000.md (probe_stack): Delete.
15853         (probe_stack_address): New.
15855 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
15857         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
15858         to test for 32-bit ABIs, not !TARGET_POWERPC64.
15860 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
15862         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
15863         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
15864         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
15865         snafu.
15866         (rs6000_libcall_value): Use the new function.
15868 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
15870         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
15872 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
15874         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
15875         implement a more precise life analysis for it during backward scan.
15877 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
15879         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
15881 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
15883         PR rtl-optimization/52773
15884         * calls.c (emit_library_call_value): When pushing arguments use
15885         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
15886         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
15887         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
15889 2015-01-17  Jeff Law  <law@redhat.com>
15891         PR rtl-optimization/32790
15892         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
15893         not ZERO_EXTEND in SET_DESTs.
15895 2015-01-17  Alan Modra  <amodra@gmail.com>
15897         * cprop.c (do_local_cprop): Revert last change.
15899 2015-01-16  DJ Delorie  <dj@redhat.com>
15900             Nick Clifton  <nickc@redhat.com>
15902         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
15903         (addhi3_real): Likewise.  Fix [HL+0] syntax.
15904         (subqi3_real): Likewise.
15905         (subhi3_real): Likewise.
15906         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
15907         (cbranchhi4_real): Likewise.
15908         (cbranchhi4_real_inverted): Likewise.
15909         (cbranchsi4_real_lt): Likewise.
15910         (cbranchsi4_real_ge): Likewise.
15911         (cbranchsi4_real_ge): Likewise.
15912         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
15913         (sub<mode>3_virt): Likewise.
15914         (cbranchqi4_virt): Likewise.
15915         (cbranchhi4_virt): Likewise.
15916         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
15917         always use '[reg+imm]' even when imm is zero.
15918         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
15919         (rl78_general_operand): New.
15920         (rl78_nonimmediate_operand): New.
15921         (rl78_nonfar_operand): Use them.
15922         (rl78_nonfar_nonimm_operand): Likewise.
15923         (rl78_stack_based_mem): Fix.
15924         * config/rl78/constraints.md (Ibqi): New.
15925         (IBqi): New.
15926         (Wsa): New.
15927         (Wsf): New.
15928         (Cs1): Fix.
15929         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
15930         (iorqi3): Likewise.
15931         (xorqi3): Likewise.
15932         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
15934         * config/rl78/constrains (Qs8): New constraint.
15935         * config/rl78/rl78.c (rl78_flags_already_set): New function.
15936         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
15937         * config/rl78/rl78-real.md (update_Z): New attribute.
15938         Update patterns to set it.
15939         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
15940         shorter compare and branch sequence can be used.
15941         (cbranchhi4_real): Likewise.
15942         (cbranchhi4_real_inverted): Likewise.
15944         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
15945         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
15946         address space.
15947         * config/rl78/rl78.c (rl78_get_name_encoding): New.
15948         (rl78_option_override): Allow -mes0 only if C.
15949         (characterize_address): Support subregs of symbol_refs.
15950         (rl78_addr_space_address_mode): Move.  Add __near.
15951         (rl78_far_p): Likewise.
15952         (rl78_addr_space_pointer_mode): Likewise.
15953         (rl78_as_legitimate_address): Likewise.
15954         (rl78_addr_space_subset_p): Likewise.
15955         (rl78_addr_space_convert): Likewise.
15956         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
15957         symbols with -mes0.
15958         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
15959         addressing.
15960         (rl78_alloc_physical_registers_op1): Change logic to prefer
15961         symbol[BC] addressing.
15962         (frodata_section): New.
15963         (rl78_asm_init_sections): Initialize it.
15964         (rl78_select_section): Put __far readonly symbols in .frodata.
15965         (rl78_make_type_far): New.
15966         (rl78_insert_attributes): Force all readonly symbols to be
15967         __far when -mes0.
15968         (rl78_asm_out_integer): New.
15969         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
15970         * config/rl78/rl78.opt (-mes0): New.
15972         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
15973         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
15974         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
15975         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
15976         (rl78_saddr_p): New.
15977         (rl78_output_aligned_common): New.
15978         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
15979         (rl78_handle_saddr_attribute): New.
15980         (rl78_handle_naked_attribute): New.
15981         (rl78_attribute_table): Add saddr.
15982         (rl78_print_operand_1): Don't print '!' on saddr operands.
15983         (rl78_print_operand_1): Strip encodings.
15984         (rl78_sfr_p): New.
15985         (rl78_strip_name_encoding): New.
15986         (rl78_attrlist_to_encoding): New.
15987         (rl78_encode_section_info): New.
15988         (rl78_asm_init_sections): New.
15989         (rl78_select_section): New.
15990         (rl78_output_labelref): New.
15991         (rl78_output_aligned_common): New.
15992         (rl78_asm_out_integer): New.
15993         (rl78_asm_ctor_dtor): New.
15994         (rl78_asm_constructor): New.
15995         (rl78_asm_destructor): New.
15997         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
15998         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
15999         (transcode_memory_rtx): Update.
16000         (rl78_expand_epilogue): Use A_REG instead of 0.
16002 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16004         * config/arm/arm-protos.h (struct tune_params): New field
16005         sched_autopref_queue_depth.
16006         * config/arm/arm.c (sched-int.h): Include header.
16007         (arm_first_cycle_multipass_dfa_lookahead_guard,)
16008         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
16009         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
16010         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
16011         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
16012         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
16013         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
16014         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
16015         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
16016         * config/arm/t-arm (arm.o): Update.
16017         * haifa-sched.c (update_insn_after_change): Update.
16018         (rank_for_schedule): Use auto-prefetcher model, if requested.
16019         (autopref_multipass_init): New static function.
16020         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
16021         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
16022         variable for debug dumps.
16023         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
16024         (autopref_multipass_dfa_lookahead_guard): New global function that
16025         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
16026         (init_h_i_d): Update.
16027         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
16028         * sched-int.h (enum autopref_multipass_data_status): New const enum.
16029         (autopref_multipass_data_): Structure for auto-prefetcher data.
16030         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
16031         (struct _haifa_insn_data:autopref_multipass_data): New field.
16032         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
16033         (autopref_multipass_dfa_lookahead_guard): Declare.
16035 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16037         * rtlanal.c (get_base_term): Handle SCRATCH.
16039 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16041         * config/aarch64/aarch64.c
16042         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
16043         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
16044         * config/arm/arm.c
16045         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
16046         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
16048 2015-01-17  Alan Modra  <amodra@gmail.com>
16050         * cprop.c (do_local_cprop): Disallow replacement of fixed
16051         hard registers.
16053 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16055         PR target/62066
16056         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
16057         early return 0.
16059 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16061         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
16062         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
16064 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16066         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
16067         * config/arm/thumb1.md: ... Here.
16069 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
16071         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
16072         TImode for TARGET_32BIT.
16074 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
16076         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
16077         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
16078         as ...
16079         (rs6000_abi_word_mode): New function.
16081 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
16083         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
16084         instead of UNITS_PER_WORD to describe the size of stack slots.
16086 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
16088         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
16089         as rs6000_promote_function_mode.  Move comment to there.
16090         (rs6000_promote_function_mode): New function.
16092 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
16094         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
16095         -mpowerpc64 is active.
16097 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
16099         PR middle-end/64353
16100         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
16101         virtuals on start.
16103 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
16105         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
16106         introduced in revision 219724.
16108 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16109             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16111         PR target/64263
16112         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
16113         destination is not a GP reg.
16114         (*movdi_aarch64): Likewise.
16116 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
16118         PR target/64623
16119         * config/rs6000/default64.h: Revert ISA change.
16121 2015-01-16  Richard Biener  <rguenther@suse.de>
16123         PR middle-end/64614
16124         * tree-ssa-uninit.c: Include tree-cfg.h.
16125         (MAX_SWITCH_CASES): New define.
16126         (convert_control_dep_chain_into_preds): Handle switch statements.
16127         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
16128         (normalize_one_pred_1): Do not split bit-manipulations.
16129         Record (x & CST).
16131 2015-01-16  Richard Biener  <rguenther@suse.de>
16133         PR tree-optimization/64568
16134         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
16135         complex load rewriting for TARGET_MEM_REFs.
16137 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
16139         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
16141 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
16143         PR target/64149
16144         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
16145         variable.
16146         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
16147         (aarch64_lra_p): Remove.
16149 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
16151         PR target/64363
16152         * ipa-chkp.h (chkp_instrumentable_p): New.
16153         * ipa-chkp.c: Include tree-inline.h.
16154         (chkp_instrumentable_p): New.
16155         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
16156         Fix processing of not instrumentable functions.
16157         (chkp_versioning): Use chkp_instrumentable_p. Warn about
16158         not instrumentable functions.
16159         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
16160         chkp_instrumentable_p.
16161         * tree-inline.h (copy_forbidden): New.
16162         * tree-inline.c (copy_forbidden): Not static anymore.
16164 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16166         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
16167         ptr1, ptr2 unused.
16169 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
16171         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
16172         type OP_OUT to OP_INOUT.
16174 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
16176         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
16177         (high x) y) to y if x and y have the same base.
16179 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
16181         * config/arm/cortex-a57.md: New.
16182         * config/aarch64/aarch64.md: Include it.
16183         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
16184         * config/aarch64/aarch64-tune.md: Regenerate.
16186 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
16188         PR target/64015
16189         * ccmp.c (expand_ccmp_next): New function.
16190         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
16191         and compare insn sequence.
16192         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
16193         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
16194         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
16195         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
16196         (*ccmp_ior): Changed to ccmp_ior<mode>.
16197         (cmp<mode>): New pattern.
16198         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
16199         parameters.
16200         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
16202 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
16204         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
16205         _mm256_bsrli_epi128): New.
16206         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
16208 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
16210         * expmed.c (store_bit_field_using_insv): Improve warning message.
16211         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
16213 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
16215         PR rtl-optimization/64011
16216         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
16217         there is partial overflow.
16219 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
16221         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
16222         prototype.
16223         (nds32_expand_epilogue_v3pop): Likewise.
16224         * config/nds32/nds32.md (sibcall): Define this for sibling call
16225         optimization.
16226         (sibcall_register): Likewise.
16227         (sibcall_immediate): Likewise.
16228         (sibcall_value): Likewise.
16229         (sibcall_value_register): Likewise.
16230         (sibcall_value_immediate): Likewise.
16231         (sibcall_epilogue): Likewise.
16232         (epilogue): Pass false to indicate this is not a sibcall epilogue.
16233         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
16234         (nds32_expand_epilogue_v3pop): Likewise.
16236 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
16238         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
16239         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
16240         (return_internal): New.
16241         (return): Define this named pattern.
16242         (simple_return): Define this named pattern.
16243         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
16244         pattern instead of unspec_volatile_func_return.
16245         (nds32_expand_epilogue_v3pop): Likewise.
16246         (nds32_can_use_return_insn): New function.
16248 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
16250         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
16251         * config/nds32/nds32.md (pop25return): New.
16252         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
16253         pop25return pattern.
16255 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
16257         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
16258         -mforbid-fp-as-gp, and -mex9 options.
16260 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
16262         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
16263         remove -mgp-direct option.
16265 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
16267         * doc/invoke.texi (--param early-inlining-insns): Update default value.
16268         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
16270 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
16272         * ipa-inline.c (inline_small_functions): Work around hints
16273         cache issue.
16275 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
16277         PR target/59710
16278         * doc/invoke.texi (Option Summary): Document new Nios II
16279         -mgpopt= syntax.
16280         (Nios II Options): Likewise.
16281         * config/nios2/nios2.opt: Add -mgpopt= option support.
16282         Modify existing -mgpopt and -mno-gpopt options to be aliases.
16283         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
16284         * config/nios2/nios2.c (nios2_option_override): Adjust
16285         -mgpopt defaulting.
16286         (nios2_in_small_data_p): Return true for explicit small data
16287         sections even with -G0.
16288         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
16289         option choices.
16291 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
16293         PR ipa/64612
16294         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
16295         of comdat locals.
16296         (inline_call): Fix removal of aliases.
16298 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
16300         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
16301         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
16302         * opts.c (common_handle_option): Add -fsanitize=vptr.
16303         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
16304         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
16305         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
16306         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
16307         (ubsan_expand_vptr_ifn): New prototype.
16308         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
16309         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
16310         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
16311         expand_LOOP_VECTORIZED): Make argument nameless, remove
16312         ATTRIBUTE_UNUSED.
16313         (expand_UBSAN_VPTR): New function.
16314         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
16315         in fn spec.
16316         (UBSAN_VPTR): New internal function.
16317         * sanopt.c (tree_map_traits): Renamed to ...
16318         (sanopt_tree_map_traits): ... this.
16319         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
16320         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
16321         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
16322         (maybe_optimize_ubsan_vptr_ifn): New function.
16323         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
16324         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
16325         -fsanitize=vptr.
16326         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
16327         internal calls like pure functions for aliasing, even when they
16328         have other side-effects that prevent making them ECF_PURE.
16329         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
16330         (ubsan_expand_vptr_ifn): New function.
16332 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
16334         PR rtl-optimization/64110
16335         * stmt.c (parse_output_constraint): Process '^' and '$'.
16336         (parse_input_constraint): Ditto.
16337         * lra-constraints.c (process_alt_operands): Process the new
16338         constraints.
16339         * ira-costs.c (record_reg_classes): Process the new constraint
16340         '^'.
16341         * genoutput.c (indep_constraints): Add '^' and '$'.
16342         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
16343         * doc/md.texi: Add description of the new constraints.
16345 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
16346             Bernd Schmidt  <bernds@codesourcery.com>
16347             Cesar Philippidis  <cesar@codesourcery.com>
16348             James Norris  <jnorris@codesourcery.com>
16349             Tom de Vries  <tom@codesourcery.com>
16350             Ilmir Usmanov  <i.usmanov@samsung.com>
16351             Dmitry Bocharnikov  <dmitry.b@samsung.com>
16352             Evgeny Gavrin  <e.gavrin@samsung.com>
16353             Jakub Jelinek  <jakub@redhat.com>
16355         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
16356         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
16357         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
16358         New function types.
16359         * builtins.c: Include "gomp-constants.h".
16360         (expand_builtin_acc_on_device): New function.
16361         (expand_builtin, is_inexpensive_builtin): Handle
16362         BUILT_IN_ACC_ON_DEVICE.
16363         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
16364         New macros.
16365         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
16366         flag_openmp.
16367         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
16368         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
16369         i386/intelmic-offload.h.
16370         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
16371         to libgomp and its dependencies.
16372         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
16373         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
16374         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
16375         * config/ia64/hpux.h (LIB_SPEC): Likewise.
16376         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
16377         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
16378         * doc/generic.texi: Update for OpenACC changes.
16379         * doc/gimple.texi: Likewise.
16380         * doc/invoke.texi: Likewise.
16381         * doc/sourcebuild.texi: Likewise.
16382         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
16383         GF_OMP_FOR_KIND_OACC_LOOP.
16384         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
16385         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
16386         GF_OMP_TARGET_KIND_OACC_UPDATE,
16387         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
16388         Dump more data.
16389         * gimple.c: Update comments for OpenACC changes.
16390         * gimple.def: Likewise.
16391         * gimple.h: Likewise.
16392         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
16393         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
16394         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
16395         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
16396         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
16397         appropriate place.
16398         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
16399         * gimplify.c: Include "gomp-constants.h".
16400         Update comments for OpenACC changes.
16401         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
16402         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
16403         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
16404         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
16405         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
16406         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
16407         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
16408         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
16409         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
16410         OMP_CLAUSE_SEQ.
16411         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
16412         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
16413         OMP_CLAUSE_SET_MAP_KIND.
16414         (gimplify_oacc_cache): New function.
16415         (gimplify_omp_for): Handle OACC_LOOP.
16416         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
16417         OACC_DATA.
16418         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
16419         OACC_EXIT_DATA, OACC_UPDATE.
16420         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
16421         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
16422         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
16423         (gimplify_body): Consider flag_openacc next to flag_openmp.
16424         * lto-streamer-out.c: Include "gomp-constants.h".
16425         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
16426         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
16427         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
16428         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
16429         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
16430         (BUILT_IN_ACC_ON_DEVICE): New builtins.
16431         * omp-low.c: Include "gomp-constants.h".
16432         Update comments for OpenACC changes.
16433         (struct omp_context): Add reduction_map, gwv_below, gwv_this
16434         members.
16435         (extract_omp_for_data, use_pointer_for_field, install_var_field)
16436         (new_omp_context, delete_omp_context, scan_sharing_clauses)
16437         (create_omp_child_function, scan_omp_for, scan_omp_target)
16438         (check_omp_nesting_restrictions, lower_reduction_clauses)
16439         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
16440         Update for OpenACC changes.
16441         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
16442         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
16443         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
16444         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
16445         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
16446         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
16447         OMP_CLAUSE_MAP_*.
16448         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
16449         Handle GF_OMP_FOR_KIND_OACC_LOOP.
16450         (expand_omp_target, lower_omp_target): Handle
16451         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
16452         GF_OMP_TARGET_KIND_OACC_UPDATE,
16453         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
16454         GF_OMP_TARGET_KIND_OACC_DATA.
16455         (pass_expand_omp::execute, execute_lower_omp)
16456         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
16457         flag_openmp.
16458         (offload_symbol_decl): New variable.
16459         (oacc_get_reduction_array_id, oacc_max_threads)
16460         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
16461         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
16462         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
16463         (oacc_gimple_assign, oacc_initialize_reduction_data)
16464         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
16465         functions.
16466         (is_targetreg_ctx): Remove function.
16467         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
16468         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
16469         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
16470         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
16471         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
16472         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
16473         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
16474         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
16475         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
16476         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
16477         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
16478         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
16479         * tree-core.h: Update comments for OpenACC changes.
16480         (enum omp_clause_map_kind): Remove.
16481         (struct tree_omp_clause): Change type of map_kind member from enum
16482         omp_clause_map_kind to unsigned char.
16483         * tree-inline.c: Update comments for OpenACC changes.
16484         * tree-nested.c: Likewise.  Include "gomp-constants.h".
16485         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
16486         (convert_tramp_reference_stmt, convert_gimple_call): Update for
16487         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
16488         OMP_CLAUSE_SET_MAP_KIND.
16489         * tree-pretty-print.c: Include "gomp-constants.h".
16490         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
16491         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
16492         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
16493         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
16494         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
16495         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
16496         instead of OMP_CLAUSE_MAP_*.
16497         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
16498         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
16499         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
16500         * tree-streamer-in.c: Include "gomp-constants.h".
16501         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
16502         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
16503         * tree-streamer-out.c: Include "gomp-constants.h".
16504         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
16505         OMP_CLAUSE_MAP_*.
16506         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
16507         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
16508         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
16509         * tree.c (omp_clause_num_ops): Update accordingly.
16510         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
16511         Likewise.
16512         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
16513         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
16514         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
16515         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
16516         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
16517         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
16518         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
16519         (OMP_CLAUSE_SET_MAP_KIND): New macro.
16520         * varpool.c (varpool_node::get_create): Consider flag_openacc next
16521         to flag_openmp.
16522         * config/i386/intelmic-offload.h: New file.
16523         * config/nvptx/offload.h: Likewise.
16525 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16527         * explow.h: Remove duplicate contents.
16528         * dojump.h: Likewise.
16530 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
16532         * arm.c (arm_xgene_tune): Add default initializer for instruction
16533         fusion.
16535 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
16537         PR ipa/64068
16538         PR ipa/64559
16539         * ipa.c (symbol_table::remove_unreachable_nodes):
16540         Do not put abstract origins into boundary.
16542 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
16544         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
16545         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
16547 2015-01-15  Steve Ellcey  <sellcey@mips.com>
16549         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
16550         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
16551         builtins.def, and chkp-builtins.def.
16553 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
16555         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
16556         ISA 2.7 (POWER8).
16558 2015-01-15  Richard Biener  <rguenther@suse.de>
16560         PR tree-optimization/61743
16561         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
16562         information on PHIs for some simple cases.
16564 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
16566         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
16567         Include xgene1.md.
16568         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
16569         * config/arm/arm-cores.def (xgene1): New entry.
16570         * config/arm/arm-tables.opt: Regenerate.
16571         * config/arm/arm-tune.md: Regenerate.
16572         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
16574 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
16576         * tree-if-conv.c: Include hash-map.h.
16577         (aggressive_if_conv): New variable.
16578         (fold_build_cond_expr): Add simplification of non-zero condition.
16579         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
16580         destination block is not always executed.
16581         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
16582         than two predecessors if AGGRESSIVE_IF_CONV is true.
16583         (if_convertible_stmt_p): Fix commentary.
16584         (all_preds_critical_p): New function.
16585         (has_pred_critical_p): New function.
16586         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
16587         BB can have more than two predecessors and all incoming edges can be
16588         critical.
16589         (predicate_bbs): Skip predication for loop exit block, use build2_loc
16590         to compute predicate for true edge.
16591         (find_phi_replacement_condition): Delete this function.
16592         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
16593         Allow interchange PHI arguments if EXTENDED is false.
16594         Change check that block containing reduction statement candidate
16595         is predecessor of phi-block since phi may have more than two arguments.
16596         (phi_args_hash_traits): New helper structure.
16597         (struct phi_args_hash_traits): New type.
16598         (phi_args_hash_traits::hash): New function.
16599         (phi_args_hash_traits::equal_keys): New function.
16600         (gen_phi_arg_condition): New function.
16601         (predicate_scalar_phi): Add handling of phi nodes with more than two
16602         arguments, delete COND and TRUE_BB arguments, insert body of
16603         find_phi_replacement_condition to predicate ordinary phi nodes.
16604         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
16605         delete call of find_phi_replacement_condition and invoke
16606         predicate_scalar_phi with two arguments.
16607         (insert_gimplified_predicates): Add assert that non-predicated block
16608         don't have statements to insert.
16609         (ifcvt_split_critical_edges): New function.
16610         (ifcvt_split_def_stmt): Likewise.
16611         (ifcvt_walk_pattern_tree): Likewise.
16612         (stmt_is_root_of_bool_pattern): Likewise.
16613         (ifcvt_repair_bool_pattern): Likewise.
16614         (ifcvt_local_dce): Likewise.
16615         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
16616         is copy of inner or outer loop force_vectorize field, invoke
16617         ifcvt_split_critical_edges, ifcvt_local_dce and
16618         ifcvt_repair_bool_pattern for aggressive if-conversion.
16620 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
16622         * config/aarch64/aarch64.md: Include xgene1.md.
16623         * config/aarch64/xgene1.md: New file.
16625 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
16627         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
16628         xgene1 (APM XGene-1) core definition.
16629         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
16630         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
16631         * doc/invoke.texi: Document -mcpu=xgene1.
16633 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16635         * dojump.h: New header file.
16636         * explow.h: Likewise.
16637         * expr.h: Remove includes.
16638         Move expmed.c prototypes to expmed.h.
16639         Move dojump.c prototypes to dojump.h.
16640         Move alias.c prototypes to alias.h.
16641         Move explow.c prototypes to explow.h.
16642         Move calls.c prototypes to calls.h.
16643         Move emit-rtl.c prototypes to emit-rtl.h.
16644         Move varasm.c prototypes to varasm.h.
16645         Move stmt.c prototypes to stmt.h.
16646         (saved_pending_stack_adjust): Move to dojump.h.
16647         (adjust_address): Move to explow.h.
16648         (adjust_address_nv): Move to emit-rtl.h.
16649         (adjust_bitfield_address): Likewise.
16650         (adjust_bitfield_address_size): Likewise.
16651         (adjust_bitfield_address_nv): Likewise.
16652         (adjust_automodify_address_nv): Likewise.
16653         * explow.c (expr_size): Move to expr.c.
16654         (int_expr_size): Likewise.
16655         (tree_expr_size): Likewise.
16656         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16657         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
16658         * genemit.c (main): Generate includes statistics.h, real.h,
16659         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
16660         stmt.h.
16661         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
16662         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
16663         explow.h, emit-rtl.h, stmt.h.
16664         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
16665         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
16666         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
16667         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
16668         emit-rtl.h, varasm.h, stmt.h.
16669         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
16670         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
16671         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
16672         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
16673         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
16674         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
16675         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
16676         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
16677         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
16678         tm.h tree.h varasm.h vec.h wide-int.h.
16679         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
16680         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
16681         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
16682         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
16683         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
16684         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
16685         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
16686         * loop-iv.c: Likewise.
16687         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
16688         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
16689         statistics.h stmt.h tree.h varasm.h wide-int.h.
16690         * lra-constraints.c: Likewise.
16691         * lra-eliminations.c: Likewise.
16692         * lra-lives.c: Likewise.
16693         * lra-remat.c: Likewise.
16694         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
16695         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
16696         statistics.h stmt.h tree.h varasm.h wide-int.h.
16697         * hw-doloop.c: Likewise.
16698         * ira-color.c: Likewise.
16699         * ira-emit.c: Likewise.
16700         * loop-doloop.c: Likewise.
16701         * loop-invariant.c: Likewise.
16702         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
16703         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
16704         statistics.h stmt.h tree.h varasm.h wide-int.h.
16705         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
16706         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
16707         statistics.h stmt.h tree.h varasm.h wide-int.h.
16708         * combine-stack-adj.c: Likewise.
16709         * cse.c: Likewise.
16710         * ddg.c: Likewise.
16711         * ifcvt.c: Likewise.
16712         * ira-costs.c: Likewise.
16713         * jump.c: Likewise.
16714         * lra-coalesce.c: Likewise.
16715         * lra-spills.c: Likewise.
16716         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
16717         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
16718         stmt.h varasm.h wide-int.h.
16719         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
16720         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
16721         varasm.h.
16722         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
16723         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
16724         statistics.h stmt.h varasm.h wide-int.h.
16725         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
16726         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
16727         varasm.h wide-int.h.
16728         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
16729         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
16730         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
16731         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
16732         statistics.h stmt.h.
16733         * config/tilepro/tilepro.c: Likewise.
16734         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
16735         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
16736         * config/pdp11/pdp11.c: Likewise.
16737         * config/xtensa/xtensa.c: Likewise.
16738         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
16739         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
16740         varasm.h.
16741         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16742         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
16743         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
16744         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16745         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
16746         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
16747         * rtl-chkp.c: Likewise.
16748         * tree-chkp-opt.c: Likewise.
16749         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
16750         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
16751         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
16752         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16753         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
16754         statistics.h stmt.h.
16755         * tree-vect-data-refs.c: Likewise.
16756         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
16757         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
16758         rtl.h statistics.h stmt.h varasm.h.
16759         * internal-fn.c: Likewise.
16760         * ipa-icf-gimple.c: Likewise.
16761         * lto-section-out.c: Likewise.
16762         * tree-data-ref.c: Likewise.
16763         * tree-nested.c: Likewise.
16764         * tree-outof-ssa.c: Likewise.
16765         * tree-predcom.c: Likewise.
16766         * tree-pretty-print.c: Likewise.
16767         * tree-scalar-evolution.c: Likewise.
16768         * tree-ssa-strlen.c: Likewise.
16769         * tree-vect-loop.c: Likewise.
16770         * tree-vect-patterns.c: Likewise.
16771         * tree-vect-slp.c: Likewise.
16772         * tree-vect-stmts.c: Likewise.
16773         * tsan.c: Likewise.
16774         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16775         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
16776         stmt.h.
16777         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
16778         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
16779         statistics.h stmt.h varasm.h.
16780         * loop-unroll.c: Likewise.
16781         * ubsan.c: Likewise.
16782         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
16783         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
16784         stmt.h varasm.h.
16785         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16786         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
16787         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
16788         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
16789         statistics.h stmt.h.
16790         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
16791         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
16792         statistics.h stmt.h varasm.h.
16793         * gimple-match-head.c: Likewise.
16794         * lto-cgraph.c: Likewise.
16795         * lto-section-in.c: Likewise.
16796         * lto-streamer-in.c: Likewise.
16797         * lto-streamer-out.c: Likewise.
16798         * tree-affine.c: Likewise.
16799         * tree-cfg.c: Likewise.
16800         * tree-cfgcleanup.c: Likewise.
16801         * tree-if-conv.c: Likewise.
16802         * tree-into-ssa.c: Likewise.
16803         * tree-ssa-alias.c: Likewise.
16804         * tree-ssa-copyrename.c: Likewise.
16805         * tree-ssa-dse.c: Likewise.
16806         * tree-ssa-forwprop.c: Likewise.
16807         * tree-ssa-live.c: Likewise.
16808         * tree-ssa-math-opts.c: Likewise.
16809         * tree-ssa-pre.c: Likewise.
16810         * tree-ssa-sccvn.c: Likewise.
16811         * tree-tailcall.c: Likewise.
16812         * tree-vect-generic.c: Likewise.
16813         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16814         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
16815         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16816         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
16817         * varasm.c: Likewise.
16818         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16819         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
16820         varasm.h.
16821         * init-regs.c: Likewise.
16822         * ira.c: Likewise.
16823         * omp-low.c: Likewise.
16824         * stack-ptr-mod.c: Likewise.
16825         * tree-ssa-reassoc.c: Likewise.
16826         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16827         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
16828         varasm.h.
16829         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16830         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
16831         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16832         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
16833         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16834         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
16835         * tree-ssa-phiopt.c: Likewise.
16836         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16837         fixed-value.h hashtab.h real.h statistics.h stmt.h.
16838         * config/fr30/fr30.c: Likewise.
16839         * config/frv/frv.c: Likewise.
16840         * expr.c: Likewise.
16841         * final.c: Likewise.
16842         * optabs.c: Likewise.
16843         * passes.c: Likewise.
16844         * simplify-rtx.c: Likewise.
16845         * stmt.c: Likewise.
16846         * toplev.c: Likewise.
16847         * var-tracking.c: Likewise.
16848         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16849         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
16850         * lower-subreg.c: Likewise.
16851         * postreload-gcse.c: Likewise.
16852         * ree.c: Likewise.
16853         * reginfo.c: Likewise.
16854         * store-motion.c: Likewise.
16855         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16856         fixed-value.h hashtab.h real.h stmt.h varasm.h.
16857         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16858         fixed-value.h hashtab.h statistics.h stmt.h.
16859         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16860         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
16861         * except.c: Likewise.
16862         * explow.c: Likewise.
16863         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16864         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
16865         varasm.h.
16866         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16867         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
16868         * tree-ssa-structalias.c: Likewise.
16869         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16870         fixed-value.h insn-config.h real.h statistics.h.
16871         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16872         fixed-value.h insn-config.h real.h statistics.h stmt.h.
16873         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16874         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
16875         * cfgbuild.c: Likewise.
16876         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16877         fixed-value.h real.h rtl.h statistics.h stmt.h.
16878         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16879         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
16880         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16881         fixed-value.h real.h statistics.h stmt.h.
16882         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16883         fixed-value.h real.h statistics.h stmt.h varasm.h.
16884         * cprop.c: Likewise.
16885         * modulo-sched.c: Likewise.
16886         * postreload.c: Likewise.
16887         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
16888         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
16889         statistics.h stmt.h varasm.h.
16890         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
16891         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
16892         rtl.h statistics.h stmt.h varasm.h.
16893         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
16894         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
16895         varasm.h.
16896         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
16897         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
16898         varasm.h.
16899         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
16900         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
16901         varasm.h.
16902         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
16903         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
16904         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
16905         function.h real.h statistics.h stmt.h varasm.h.
16906         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
16907         insn-config.h real.h statistics.h stmt.h.
16908         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
16909         statistics.h stmt.h.
16910         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
16911         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
16912         statistics.h stmt.h varasm.h.
16913         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
16914         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
16915         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
16916         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
16917         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
16918         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
16919         statistics.h stmt.h varasm.h.
16920         * ipa-polymorphic-call.c: Likewise.
16921         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
16922         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
16923         statistics.h stmt.h.
16924         * config/c6x/c6x.c: Likewise.
16925         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
16926         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
16927         statistics.h stmt.h varasm.h.
16928         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
16929         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
16930         stmt.h varasm.h.
16931         * ipa-split.c: Likewise.
16932         * tree-eh.c: Likewise.
16933         * tree-ssa-dce.c: Likewise.
16934         * tree-ssa-loop-niter.c: Likewise.
16935         * tree-vrp.c: Likewise.
16936         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
16937         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
16938         stmt.h.
16939         * config/nds32/nds32-fp-as-gp.c: Likewise.
16940         * config/nds32/nds32-intrinsic.c: Likewise.
16941         * config/nds32/nds32-isr.c: Likewise.
16942         * config/nds32/nds32-md-auxiliary.c: Likewise.
16943         * config/nds32/nds32-memory-manipulation.c: Likewise.
16944         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16945         * config/nds32/nds32-predicates.c: Likewise.
16946         * config/nds32/nds32.c: Likewise.
16947         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
16948         fixed-value.h hashtab.h real.h statistics.h.
16949         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
16950         fixed-value.h hashtab.h real.h statistics.h stmt.h.
16951         * config/arm/arm.c: Likewise.
16952         * config/avr/avr.c: Likewise.
16953         * config/bfin/bfin.c: Likewise.
16954         * config/h8300/h8300.c: Likewise.
16955         * config/i386/i386.c: Likewise.
16956         * config/ia64/ia64.c: Likewise.
16957         * config/iq2000/iq2000.c: Likewise.
16958         * config/m32c/m32c.c: Likewise.
16959         * config/m32r/m32r.c: Likewise.
16960         * config/m68k/m68k.c: Likewise.
16961         * config/mcore/mcore.c: Likewise.
16962         * config/mep/mep.c: Likewise.
16963         * config/mips/mips.c: Likewise.
16964         * config/mn10300/mn10300.c: Likewise.
16965         * config/moxie/moxie.c: Likewise.
16966         * config/pa/pa.c: Likewise.
16967         * config/rl78/rl78.c: Likewise.
16968         * config/rx/rx.c: Likewise.
16969         * config/s390/s390.c: Likewise.
16970         * config/sh/sh.c: Likewise.
16971         * config/sparc/sparc.c: Likewise.
16972         * config/spu/spu.c: Likewise.
16973         * config/stormy16/stormy16.c: Likewise.
16974         * config/v850/v850.c: Likewise.
16975         * config/vax/vax.c: Likewise.
16976         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
16977         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
16978         * config/msp430/msp430.c: Likewise.
16979         * predict.c: Likewise.
16980         * value-prof.c: Likewise.
16981         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
16982         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
16983         * config/microblaze/microblaze.c: Likewise.
16984         * config/nios2/nios2.c: Likewise.
16985         * config/rs6000/rs6000.c: Likewise.
16986         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
16987         insn-config.h real.h rtl.h statistics.h stmt.h.
16988         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
16989         insn-config.h real.h statistics.h stmt.h.
16990         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
16991         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
16992         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
16993         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
16994         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
16995         fixed-value.h real.h statistics.h stmt.h.
16996         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
16997         fixed-value.h statistics.h stmt.h.
16998         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
16999         stmt.h.
17001 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
17003         * gengtype.c (create_user_defined_type): Workaround
17004         -Wmaybe-uninitialized false positives.
17005         * cse.c (fold_rtx): Likewise.
17006         * loop-invariant.c (gain_for_invariant): Likewise.
17008 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
17010         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
17011         set the memory attributes in all cases but clear MEM_EXPR if need be.
17013 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
17015         PR tree-optimization/64434
17016         * cfgexpand.c (reorder_operands): New function.
17017         (expand_gimple_basic_block): Insert call of reorder_operands if
17018         optimized is true.
17020 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
17022         * config/mips/micromips.md (*swp): Remove explicit parallel.
17023         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
17024         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
17025         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
17026         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
17027         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
17028         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
17029         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
17030         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
17031         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
17032         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
17033         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
17034         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
17035         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
17036         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
17037         (mips_wrdsp): Likewise.
17038         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
17039         parallel.
17040         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
17041         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
17042         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
17043         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
17044         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
17045         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
17046         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
17047         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
17048         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
17050 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
17052         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
17053         (mips_print_operand): Support 'y' to print exact log2 in decimal
17054         of a const_int.
17055         * config/mips/mips.h (ISA_HAS_LSA): New define.
17056         (ISA_HAS_DLSA): Likewise.
17057         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
17058         * config/mips/predicates.md (const_immlsa_operand): New predicate.
17060 2015-01-15  Martin Liska  <mliska@suse.cz>
17062         PR target/64377
17063         * optc-save-gen.awk: Add support for array types.
17065 2015-01-15  Richard Biener  <rguenther@suse.de>
17067         PR middle-end/64365
17068         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
17069         for MEM_REF access functions with the same base can never partially
17070         overlap.
17072 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
17074         * common.opt: New option -fstack-protector-explicit.
17075         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
17076         (stack_protect_decl_phase): Handle stack_protect attribute for
17077         explicit stack protection requests.
17078         (expand_used_vars): Similarly.
17079         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
17080         * doc/extend.texi: Add documentation for "stack_protect" attribute.
17081         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
17083 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
17085         PR target/53988
17086         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
17087         reg-reg copies.
17088         (sh_extending_set_of_reg): New struct.
17089         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
17090         sh_remove_reg_dead_or_unused_notes): New Declarations.
17091         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
17092         sh_find_extending_set_of_reg, sh_split_tst_subregs,
17093         sh_extending_set_of_reg::use_as_extended_reg): New functions.
17094         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
17095         convert to insn_and_split and use new function sh_split_tst_subregs.
17097 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
17099         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
17100         option.
17101         (Optimization Options): Move -fuse-ld documentation to...
17102         (Link Options): ...here.
17104 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
17106         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
17107         offsets.
17108         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
17109         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
17110         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
17111         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
17112         instead of ZR for the memory operand of LL/SC.
17113         (compare_and_swap_12, sync_add<mode>): Likewise.
17114         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
17115         (sync_new_<optab>_12, sync_nand_12): Likewise.
17116         (sync_old_nand_12, sync_new_nand_12): Likewise.
17117         (sync_sub<mode>, sync_old_add<mode>): Likewise.
17118         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
17119         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
17120         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
17121         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
17122         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
17123         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
17124         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
17125         * doc/md.texi (ZC): Update description.
17127 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
17129         * builtins.c (expand_builtin_atomic_exchange): Remove error when
17130         memory model is CONSUME.
17131         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
17132         expand_builtin_atomic_store): Change invalid memory model errors to
17133         warnings.
17134         (expand_builtin_atomic_clear): Change invalid model errors to warnings
17135         and issue warning for CONSUME.
17137 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
17139         * lto-cgraph: Update function comments for
17140         lto_symtab_encoder_encode_*.
17142 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
17144         * Makefile.in (site.exp): Do not set ENABLE_LTO.
17146 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
17148         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
17149         * lto-cgraph.c (select_what_to_stream): Remove argument, use
17150         lto_stream_offload_p instead.
17151         * lto-streamer.h (select_what_to_stream): Remove argument.
17152         * passes.c (ipa_write_summaries): Likewise.
17153         * tree-pass.h (ipa_write_summaries): Likewise.
17155 2015-01-14  Richard Biener  <rguenther@suse.de>
17157         PR tree-optimization/59354
17158         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
17159         groups larger than the slp group size as having gaps.
17161 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
17163         PR middle-end/59448
17164         * builtins.c (get_memmodel): Promote consume to acquire always.
17166 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
17168         PR target/64386
17169         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
17170         V32HImode.
17172 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
17174         PR target/64393
17175         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
17176         Enable AVX512BW.
17177         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
17178         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
17179         AVX512VBMI, as it implies AVX512BW.
17181 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
17183         PR target/64387
17184         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
17185         (vec_unpacks_hi_v16sf): Ditto.
17187 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17189         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
17190         is not available.
17192 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17194         * doc/invoke.texi (mapcs): Mention deprecation.
17195         (mapcs-frame): Likewise.
17197 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17199         PR target/64453
17200         * config/arm/arm.c (callee_saved_reg_p): Define.
17201         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
17202         register is callee saved instead of !call_used_regs[reg].
17203         (thumb1_compute_save_reg_mask): Likewise.
17205 2015-01-14  Hale Wang  <hale.wang@arm.com>
17207         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
17208         Cortex-M7.
17210 2015-01-14  Richard Biener  <rguenther@suse.de>
17212         PR lto/64415
17213         * tree-inline.c (insert_debug_decl_map): Check destination
17214         function MAY_HAVE_DEBUG_STMTS.
17215         (insert_init_debug_bind): Likewise.
17216         (insert_init_stmt): Remove redundant check.
17217         (remap_gimple_stmt): Drop debug stmts if the destination
17218         function has var-tracking assignments disabled.
17220 2015-01-14  Martin Liska  <mliska@suse.cz>
17222         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
17223         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
17225 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17227         PR target/64460
17228         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
17229         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
17231 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
17233         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
17234         level from an ARCH; do not inject the default.
17235         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
17236         MIPS_ISA_LEVEL_SPEC.
17237         (MIPS_ISA_NAN2008_SPEC): Update comment.
17238         (BASE_DRIVER_SELF_SPECS): Likewise.
17239         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
17240         MIPS_DEFAULT_ISA_LEVEL_SPEC.
17241         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
17242         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
17243         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
17245 2015-01-14  Richard Biener  <rguenther@suse.de>
17247         PR tree-optimization/64493
17248         PR tree-optimization/64495
17249         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
17250         assign the proper vectorized PHI to the inner loop exit PHIs.
17252 2015-01-14  Joey Ye  <joey.ye@arm.com>
17254         * config/arm/arm.c (arm_compute_save_reg_mask):
17255         Do not save lr in case of tail call.
17256         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
17258 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
17260         * tree-vrp.c (check_array_ref): Emit more warnings
17261         for warn_array_bounds >= 2.
17262         * common.opt: New option -Warray-bounds=.
17263         * doc/invoke.texi: Document -Warray-bounds=.
17265 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
17267         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
17268         (mforbid-fp-as-gp): Remove.
17269         (mex9): Remove.
17270         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
17271         (nds32_symbol_load_store_p): Remove.
17272         (nds32_fp_as_gp_check_available): Clean up implementation.
17273         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
17274         cases.
17275         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
17276         fp-as-gp and ex9 cases.
17278 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
17280         * tree-profile.c (init_ic_make_global_vars): Drop workaround
17281         for bintuils bug 14342.
17282         (init_ic_make_global_vars): Likewise.
17283         (gimple_init_edge_profiler): Likewise.
17284         (gimple_gen_ic_func_profiler): Likewise.
17286 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
17288         * ipa-inline.c (inline_small_functions): Swap the operands in
17289         enum.
17291 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
17293         PR ipa/64481
17294         * ipa-inline-analysis.c (node_growth_cache): Remove.
17295         (initialize_growth_caches): Do not initialize it.
17296         (free_growth_caches): Do not free it.
17297         (do_estimate_growth): Rename to ...
17298         (estimate_growth): ... this one; drop growth cache code.
17299         (growth_likely_positive): Always go the heuristics way.
17300         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
17301         (reset_edge_caches): Do not reset node growth.
17302         (heap_edge_removal_hook): Do not maintain cache.
17303         (inline_small_functions): Likewise; strenghten sanity check.
17304         (ipa_inline): Do not maintain caches.
17305         * ipa-inline.h (node_growth_cache): Remove.
17306         (do_estimate_growth): Remove to ...
17307         (estimate_growth): this one; remove inline version.
17308         (reset_node_growth_cache): Remove.
17310 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
17312         PR ipa/64565
17313         * ipa-inline.c (inline_small_functions): Update callee keys after
17314         resolving speculation
17315         (inline_small_functions): Always check monotonicity of the queue.
17317 2015-01-13  Marek Polacek  <polacek@redhat.com>
17319         PR middle-end/64391
17320         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
17322 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
17324         PR rtl-optimization/64286
17325         * ree.c (combine_reaching_defs): Move part of comment earlier,
17326         remove !SCALAR_INT_MODE_P check.
17327         (add_removable_extension): Don't add vector mode
17328         extensions if all uses of the source register aren't the same
17329         vector extensions.
17331 2015-01-13  Renlin Li  <renlin.li@arm.com>
17333         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
17334         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
17336 2015-01-13  Martin Liska  <mliska@suse.cz>
17338         * ipa-icf.c (sem_function::equals_private): Call new functions
17339         cl_target_option_print_diff and cl_optimization_print_diff.
17340         * optc-save-gen.awk (cl_target_option_print_diff): New function.
17341         (cl_optimization_print_diff): Likewise.
17342         * opth-gen.awk: Likewise.
17344 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
17346         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
17347         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
17348         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
17349         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
17350         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
17351         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
17353 2015-01-13  Andrew Pinski  <apinski@cavium.com>
17355         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
17356         instead of src mode.
17358 2015-01-13  Richard Biener  <rguenther@suse.de>
17360         PR lto/64373
17361         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
17362         DECL_CONTEXT.
17364 2015-01-13  Andrew Pinski  <apinski@cavium.com>
17366         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
17367         volatile mems.
17368         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
17370 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
17372         PR middle-end/63974
17373         * cfgexpand.c (expand_computed_goto): Don't call
17374         convert_memory_address here.
17376 2015-01-13  Richard Biener  <rguenther@suse.de>
17378         PR tree-optimization/64406
17379         * tree-loop-distibution.c (pass_loop_distribution::execute):
17380         Reset the SCEV hashtable if we distributed anything.
17382 2015-01-13  Richard Biener  <rguenther@suse.de>
17384         PR tree-optimization/64404
17385         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
17386         SLP types for CSEd loads.
17388 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17390         PR tree-optimization/64436
17391         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
17392         merge of two symbolic numbers for a bitwise OR to ...
17393         (perform_symbolic_merge): This. Also fix computation of the range and
17394         end of the symbolic number corresponding to the result of a bitwise OR.
17396 2015-01-13  Richard Biener  <rguenther@suse.de>
17398         PR tree-optimization/64568
17399         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
17400         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
17402 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
17404         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
17405         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
17407 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
17409         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
17410         target-specific symbol_ref flag.
17411         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
17412         resides in rodata section.
17413         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
17414         (nds32_encode_section_info): New function.
17416 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
17418         * config/nds32/nds32.md (call): Use pseudo instruction bal which
17419         clobbers TA_REGNUM if large code model is specified.
17420         (call_register): Likewise.
17421         (call_immediate): Likewise.
17422         (call_value): Likewise.
17423         (call_value_register): Likewise.
17424         (call_value_immediate): Likewise.
17426 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
17428         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
17429         (TARGET_CMODEL_MEDIUM): New macro.
17430         (TARGET_CMODEL_LARGE): New macro.
17431         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
17432         code model setting in assembly code.
17434 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
17436         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
17437         Remove MASK_GP_DIRECT flag.
17438         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
17439         one of the multilib default options.
17440         * config/nds32/nds32.opt (mgp-direct): Remove.
17441         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
17442         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
17444 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
17446         * config/nds32/nds32.opt (mcmodel): Add new option.
17447         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
17448         to describe code model.
17450 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
17452         PR target/64479
17453         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
17455 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
17457         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
17458         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
17459         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
17460         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
17461         __builtin_sh_set_fpscr.
17463 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
17465         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
17466         after a funtion name just to indicate it is a function.
17467         ([-fsanitize-undefined-trap-on-error]): Likewise.
17468         ([-fdbg-cnt=]): Likewise.
17469         ([-mmemcpy]): Likewise.
17470         ([-mflush-func]): Likewise.
17471         ([-msynci]): Likewise.
17473 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
17475         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
17476         example.
17478 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
17480         PR tree-optimization/64563
17481         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
17482         instead of != VR_VARYING.
17484         PR target/64513
17485         * config/i386/i386.c (ix86_expand_prologue): Add
17486         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
17488         PR tree-optimization/64454
17489         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
17490         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
17491         for signed or [0, op1 - 1] for unsigned modulo.
17492         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
17493         even if op1 does not satisfy integer_pow2p.
17495         PR other/64370
17496         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
17498 2015-01-12  Jeff Law  <law@redhat.com>
17500         PR target/64461
17501         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
17502         (trunchiqi2, truncsihi2): Similarly.
17504         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
17505         rather than calling F.
17507 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17509         * tsan.c (instrument_expr): Use force_gimple_operand.
17510         Use may_be_nonaddressable_p instead of is_gimple_addressable.
17512 2015-01-12  Richard Biener  <rguenther@suse.de>
17514         PR tree-optimization/64530
17515         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
17516         back dr1.
17518 2015-01-12  Richard Biener  <rguenther@suse.de>
17520         PR middle-end/64357
17521         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
17522         latches properly.
17524 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17526         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
17527         Cortex-A17 tuning parameters.
17528         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
17530 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17532         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
17533         * config/arm/arm.c (arm_macro_fusion_p): New function.
17534         (arm_macro_fusion_pair_p): Likewise.
17535         (TARGET_SCHED_MACRO_FUSION_P): Define.
17536         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
17537         (ARM_FUSE_NOTHING): Likewise.
17538         (ARM_FUSE_MOVW_MOVT): Likewise.
17539         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
17540         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
17541         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
17542         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
17543         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
17544         arm_cortex_a5_tune): Specify fuseable_ops value.
17546 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
17548         PR bootstrap/64561
17549         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
17550         test for PIE with copy reloc.
17551         * configure: Regenerated.
17553 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17555         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
17556         in gen_rtx_REG.
17557         (arm_tls_descseq_addr): Likewise.
17558         (arm_gen_movmemqi): Likewise.
17559         (arm_expand_epilogue_apcs_frame): Likewise.
17560         (arm_expand_epilogue): Likewise.
17561         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
17562         in gen_rtx_REG.
17564 2015-01-12  Martin Liska  <mliska@suse.cz>
17566         PR ipa/64550
17567         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
17568         volatility for correct operands.
17570 2015-01-12  Martin Liska  <mliska@suse.cz>
17572         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
17573         indication that a function is not leaf.
17574         (sem_function::compare_polymorphic_p): Likewise.
17576 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17578         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
17579         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
17580         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
17581         fold-const.h, tree-check.h.
17583 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
17585         PR ipa/63967
17586         PR ipa/64425
17587         * ipa-inline.c (compute_uninlined_call_time,
17588         compute_inlined_call_time): Use counts for extra precision when
17589         needed possible.
17590         (big_speedup_p): Fix formating.
17591         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
17592         (relative_time_benefit): Remove.
17593         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
17594         merge guessed and read profile paths.
17595         (inline_small_functions): Count only !optimize_size functions into
17596         initial size; be more lax about sanity check when profile is used;
17597         be sure to update inlined function profile when profile is read.
17599 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
17601         PR ipa/63470
17602         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
17603         cost when edge becomes direct.
17604         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
17605         is resolved or when introducing new speculation.
17607 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
17609         PR ipa/64551
17610         PR ipa/64552
17611         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
17612         '||' to fix typo issue.
17614         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
17615         accept and return NULL.
17617 2015-01-12  Martin Liska  <mliska@suse.cz>
17619         * cgraph.c (cgraph_edge::remove_callee): Move function to header
17620         file for being inlined.
17621         (cgraph_set_edge_callee): Delete.
17622         (cgraph_edge::redirect_callee): Move function to header file
17623         for being inlined.
17624         (cgraph_edge::make_direct): Use new function.
17625         (cgraph_edge::dump_edge_flags): New function created from
17626         static dump_edge_flags function.
17627         (cgraph_node::dump): Use new function.
17628         (cgraph_edge::verify_count_and_frequency): New function created
17629         from verify_edge_count_and_frequency.
17630         (cgraph_edge::verify_corresponds_to_fndecl): New function created
17631         from verify_edge_corresponds_to_fndecl.
17632         (verify_edge_corresponds_to_fndecl): Delete.
17633         (cgraph_node::verify_node): Use new function.
17634         * cgraph.h (cgraph_edge::set_callee): New function.
17635         (cgraph_edge::dump_edge_flags): Likewise.
17636         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
17638 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
17640         * ipa-utils.c (estimate_function_body_sizes): Do not
17641         free node params when called late with early=true.
17643 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
17645         * doc/md.texi (Instruction Patterns): Rewrite text for
17646         clarity.
17647         (Example): Likewise.
17649 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
17651         * doc/invoke.texi (Option Summary): Break long lines.
17652         [(-fdiagnostics-color)]: Put long literal in @smallexample
17653         instead of inline.
17654         [(-fsanitize-recover)]: Likewise.
17655         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
17656         [(-ffast-math)]: Likewise.
17657         [(--param max-inline-insns-recursive)]: Likewise.
17658         [(--param max-inline-recursive-depth)]: Likewise.
17659         [(-mno-text-section-literals)]: Likewise.
17661 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
17663         * doc/install.texi: Update for libgomp being renamed from "GNU
17664         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
17665         Runtime Library".
17666         * doc/sourcebuild.texi: Likewise.
17668 2015-01-10  Anthony Green  <green@moxielogic.com>
17670         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
17671         mul.x availability for moxiebox configuration.
17673 2015-01-09  Anthony Green  <green@moxielogic.com>
17675         * config/moxie/moxie.md: Tabify assembly output.
17677 2015-01-09  Anthony Green  <green@moxielogic.com>
17679         * config/moxie/moxie.md (CC_REG): Correct register definition.
17681 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
17683         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
17684         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
17685         of log files.
17687 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
17689         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
17691 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
17692             Jakub Jelinek  <jakub@redhat.com>
17694         PR middle-end/64412
17695         * lto-streamer.h (lto_stream_offload_p): New declaration.
17696         * lto-streamer.c (lto_stream_offload_p): New variable.
17697         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
17698         at the same time as section_name_prefix.
17699         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
17700         if lto_stream_offload_p.
17701         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
17702         stream TREE_TARGET_OPTION if lto_stream_offload_p.
17703         (write_ts_function_decl_tree_pointers): Don't
17704         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
17705         * tree-streamer-in.c (unpack_value_fields): Don't stream
17706         TREE_TARGET_OPTION in if ACCEL_COMPILER.
17707         (lto_input_ts_function_decl_tree_pointers): Don't stream
17708         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
17709         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
17710         instead of section_name_prefix string comparisons.
17712 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
17714         PR rtl-optimization/64536
17715         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
17716         tablejumps.
17718 2015-01-09  Michael Collison  <michael.collison@linaro.org>
17720         PR tree-optimization/64322
17721         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
17722         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
17724 2015-01-09  Tom de Vries  <tom@codesourcery.com>
17726         PR rtl-optimization/64539
17727         * regcprop.c (kill_clobbered_values): Factor out of ...
17728         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
17729         instead of note_stores with kill_clobbered_value.
17731 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
17733          * ginclude/unwind-arm-common.h: Revert previous commit.
17735 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
17737         * config.gcc (arm*-*-freebsd*): New configuration.
17738         * config/arm/freebsd.h: New file.
17739         * config.host: Add extra components for arm*-*-freebsd*.
17740         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
17741         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
17743 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17745         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
17746         for -mcpu=e6500.
17747         * config/rs6000/t-rtems: Add e6500 multilibs.
17749 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17751         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
17752         MPC8540.
17754 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17756         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
17757         MULTILIB_EXCEPTIONS.
17759 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17761         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
17762         MULTILIB_EXCEPTIONS.
17764 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17766         * config/arm/t-rtems-eabi: Rename to...
17767         * config/arm/t-rtems: ...this.
17768         * config/arm/rtems-eabi.h: Rename to...
17769         * config/arm/rtems.h: ...this.
17770         * config.gcc (arm*-*-rtems*): Reflect changes above.
17772 2015-01-09  Richard Biener  <rguenther@suse.de>
17774         PR tree-optimization/64410
17775         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
17776         on the LHS.
17777         (execute_update_addresses_taken): Deal with that.
17778         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
17779         loads/stores for complex variables.
17781 2015-01-09  Martin Liska  <mliska@suse.cz>
17783         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
17784         name comparison.
17785         (func_checker::compare_memory_operand): New function.
17786         (func_checker::compare_operand): Split case to newly
17787         added functions.
17788         (func_checker::compare_cst_or_decl): New function.
17789         (func_checker::compare_gimple_call): Identify
17790         memory operands.
17791         (func_checker::compare_gimple_assign): Likewise.
17792         * ipa-icf-gimple.h: New function.
17794 2015-01-09  Martin Liska  <mliska@suse.cz>
17796         PR ipa/64503
17797         * sreal.c (sreal::dump): Change unsigned format to signed for
17798         m_exp value.
17799         (sreal::to_double): Replace exp2 with scalbln.
17801 2015-01-09  Martin Liska  <mliska@suse.cz>
17803         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
17804         * ipa-icf.c (sem_function::equals_private): Add support for target and
17805         (sem_item_optimizer::merge_classes): Remove redundant function
17806         optimization flags comparison.
17807         * tree.h (target_opts_for_fn): New function.
17809 2015-01-09  Tom de Vries  <tom@codesourcery.com>
17811         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
17813 2015-01-09  Kito Cheng  <kito@0xlab.org>
17815         PR rtl-optimization/64348
17816         * lra-constraints.c (split_reg): Fix caller-save store/restore
17817         instruction generation.
17819 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
17821         PR gcov-profile/61790
17822         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
17823         long long.  Fallback to int64_t if host doesn't have long long and
17824         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
17826 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
17828         PR tree-optimization/63989
17829         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
17830         from 1000 to 10000.
17831         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
17832         (get_stridx): If we don't have a record for certain SSA_NAME,
17833         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
17834         constant offset, call get_stridx_plus_constant.
17835         (get_stridx_plus_constant): New function.
17836         (zero_length_string): Don't use get_stridx here.
17838         PR target/55023
17839         PR middle-end/64388
17840         * dse.c (struct insn_info): Mention frame_read set also
17841         before reload for tail calls on some targets.
17842         (scan_insn): Revert 2014-12-22 change.  Set frame_read
17843         also before reload for tail calls if
17844         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
17845         instead of add_non_frame_wild_read for non-const/memset
17846         tail calls after reload.
17848 2015-01-08  Jason Merrill  <jason@redhat.com>
17850         * ubsan.c (do_ubsan_in_current_function): New.
17851         (pass_ubsan::gate): Use it.
17852         * ubsan.h: Declare it.
17853         * convert.c (convert_to_integer): Use it.
17855 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
17857         PR target/64338
17858         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
17859         compare_code when it is unconditionally overwritten afterwards.
17860         Use ix86_reverse_condition instead of reverse_condition.  Don't
17861         change code if *reverse_condition* returned UNKNOWN and don't
17862         swap ct/cf and negate diff in that case.
17864 2015-01-08  Mike Stump  <mikestump@comcast.net>
17866         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
17867         (pass_tsan_O0::gate): Likewise.
17868         * extend.texi (Function Attributes): Add no_sanitize_thread
17869         documentation.
17871 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
17873         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
17874         for registering builtins.
17875         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
17876         add -fopenmp to the argv_obstack used when invoking
17877         compile_for_target.
17879         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
17880         add "-m32" or "-m64" to argv_obstack.
17881         (generate_host_descr_file): Likewise, when invoking host_compiler.
17882         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
17883         ld.
17885 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
17887         * config/sh/sh-mem.cc: Use constant as second operand when emitting
17888         tstsi_t insns.
17890 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
17892         PR target/55212
17893         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
17894         constant load if constant operand fits into I08.
17896 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
17898         PR sanitizer/64336
17899         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
17900         and TREE_THIS_VOLATILE for MEM_REFs.
17901         (build5_stat): Fix up initialization of TREE_READONLY and
17902         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
17904 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
17906         PR target/64533
17907         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
17908         of r for the second alternative of the destination operand.
17910 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
17912         PR target/36557
17913         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
17915 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
17917         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
17918         keywords.
17919         ([-fivar-visibility], [-fvisibility]): Likewise.
17921 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
17923         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
17924         the file where @code, @command, etc is more appropriate.
17926 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
17928         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
17929         of -mrecip= documentation.
17931 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
17933         PR target/64505
17934         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
17935         correct reload handler if -m32 -mpowerpc64 is used.
17937 2015-01-06  Tom de Vries  <tom@codesourcery.com>
17939         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
17941 2015-01-08  Christian Bruel  <christian.bruel@st.com>
17943         PR target/64507
17944         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
17946 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17948         PR tree-optimization/63259
17949         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
17950         if optab exists for 16bit byteswap.
17952 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
17954         * opts.c (common_handle_option): Add support for
17955         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
17956         * doc/invoke.texi: Document -fno-sanitize=all,
17957         -f{,no-}sanitize-recover=all.  Document that
17958         -fsanitize=float-cast-overflow is not enabled
17959         by -fsanitize=undefined.  Fix up documentation
17960         of -f{,no-}sanitize-recover.
17962 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
17964         * config.gcc: Add Visium support.
17965         * configure.ac: Likewise.
17966         * configure: Regenerate.
17967         * doc/extend.texi (interrupt attribute): Add Visium.
17968         * doc/invoke.texi: Document Visium options.
17969         * doc/install.texi: Document Visium target.
17970         * doc/md.texi: Document Visium constraints.
17971         * common/config/visium: New directory.
17972         * config/visium: Likewise.
17974 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
17976         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
17977         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
17979 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
17981         * combine.c (combine_validate_cost): Do not count the cost of a
17982         split I2 twice.  Do not display it twice in the dump, either.
17984 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
17986         Revert parts of r219199.
17987         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
17988         <inttypes.h>.
17989         ([-Wtraditional]): Restore markup on <limits.h>.
17991 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
17993         PR c++/31397
17994         * doc/invoke.texi: Document -Wsuggest-override.
17996 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
17998         PR rtl-optimization/64287
17999         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
18000         (process_options): Disable flag_ipa_ra if profiling.
18002 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
18004         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
18006 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
18008         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
18009         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
18010         put under #if TARGET_LOOPS guard.
18012 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
18014         * config/i386/i386.c (output_387_binary_op): Use std::swap.
18016 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
18018         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
18019         * rtl.h (refers_to_regno_p): Add overload.
18020         * cse.c: Use it.
18021         * bt-load.c: Likewise.
18022         * combine.c: Likewise.
18023         * df-scan.c: Likewise.
18024         * sched-deps.c: Likewise.
18025         * config/s390/s390.c: Likewise.
18026         * config/m32r/m32r.c: Likewise.
18027         * config/rs6000/spe.md: Likewise.
18028         * config/rs6000/rs6000.c: Likewise.
18029         * config/pa/pa.c: Likewise.
18030         * config/stormy16/stormy16.c: Likewise.
18031         * config/cris/cris.c: Likewise.
18032         * config/arc/arc.md: Likewise.
18033         * config/arc/arc.c: Likewise.
18034         * config/sh/sh.md: Likewise.
18035         * config/sh/sh.c: Likewise.
18036         * config/frv/frv.c: Likewise.
18038 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
18040         PR sanitizer/64265
18041         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
18042         call as cleanup of the whole body.
18043         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
18044         * tsan.c (replace_func_exit): New function.
18045         (instrument_func_exit): Moved earlier.
18046         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
18047         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
18048         been found.
18049         (tsan_pass): Don't call instrument_func_exit.
18050         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
18051         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
18052         inlining.
18054         PR sanitizer/64344
18055         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
18056         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
18057         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
18058         if the result is integer_zerop, return NULL_TREE.
18059         * convert.c (convert_to_integer): Pass expr as ARG.
18061         PR tree-optimization/64465
18062         * tree-inline.c (redirect_all_calls): During inlining
18063         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
18064         changed the stmt to a non-throwing call.
18066 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
18068         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
18069         etc markup throughout the file.
18071 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18073         Enable experimental TSAN support for Ada.
18074         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
18076 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
18078         PR tree-optimization/64494
18079         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
18080         clear SSA_NAME_ANTI_RANGE_P flag.
18082 2015-01-05  Marek Polacek  <polacek@redhat.com>
18084         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
18086 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
18088         Update copyright years.
18090         * gcc.c (process_command): Update copyright notice dates.
18091         * gcov-dump.c: Ditto.
18092         * gcov.c: Ditto.
18093         * doc/cpp.texi: Bump @copying's copyright year.
18094         * doc/cppinternals.texi: Ditto.
18095         * doc/gcc.texi: Ditto.
18096         * doc/gccint.texi: Ditto.
18097         * doc/gcov.texi: Ditto.
18098         * doc/install.texi: Ditto.
18099         * doc/invoke.texi: Ditto.
18101         * auto-profile.c, auto-profile.h: Fix up Copyright line.
18103 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
18105         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
18106         verb tense, etc.
18107         ([-fvtable-verify], [-fvtv-debug]): Likewise.
18108         ([-Wabi]): Likewise.
18109         ([-fmessage-length]): Likewise.
18110         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
18111         ([-Wno-discarded-qualifiers]): Likewise.
18112         ([-Wnodiscarded-array-qualifiers]): Likewise.
18113         ([-Wno-virtual-move-assign]): Likewise.
18114         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
18115         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
18116         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
18117         ([-fsanitize-undefined-trap-on-error]): Likewise.
18118         ([-floop-interchange]): Likewise.
18119         ([-ftree-coalesce-inlined-vars]): Likewise.
18120         ([-fvect-cost-model]): Likewise.
18121         ([-flto]): Likewise.
18122         ([--param]): Likewise.
18123         (Spec Files): Likewise.
18124         ([-mstrict-align]): Likewise.
18125         ([-mfix-cortex-a53-835769]): Likewise.
18126         ([-march], [-mtune]): Likewise.
18127         ([-mpic-register]): Likewise.
18128         ([-munaligned-access]): Likewise.
18129         ([-msp8]): Likewise.
18130         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
18131         (AVR Built-in Macros): Likewise.
18132         ([-mpreferred-stack-boundary]): Likewise.
18133         ([-mtune-crtl]): Likewise.
18134         ([-mashf]): Likewise.
18135         ([-mmcu=]): Likewise.
18136         ([-minrt]): Likewise.
18137         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
18138         ([-mupper-regs]): Likewise.
18139         ([-matomic-model]): Likewise.
18140         ([-mdiv]): Likewise.
18141         ([-mzdcbranch]): Likewise.
18142         ([-mdisable-callt]): Likewise.
18143         ([-msoft-float]): Likewise.
18144         ([-m8byte-align]): Likewise.
18145         ([-fstack-reuse]): Likewise.
18147 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
18149         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
18150         Fix markup, light copy-editing.
18151         ([-fauto-profile]): Rewrite to fix formatting and content
18152         problems.
18154 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
18156         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
18157         Copy-edit description.
18158         ([-fisolate-erroneous-paths-attribute]): Likewise.
18159         * common.opt (fisolate-erroneous-paths-dereference):
18160         Copy-edit description.
18161         (fisolate-erroneous-paths-attribute): Likewise.
18163 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
18165         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
18166         tidy grammar.
18168 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
18170         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
18171         ([-fvtv-debug]): Likewise.
18172         ([-Wc++-compat]): Likewise.
18173         ([-Wc++11-compat]): Likewise.
18174         ([-Wc++14-compat]): Likewise.
18175         ([-Wno-sized-deallocation]): Likewise.
18176         ([-femit-class-debug-always]): Likewise.
18177         ([-femit-struct-debug-detailed]): Likewise.
18178         ([-fno-keep-inline-dllexport]): Likewise.
18179         ([-fira-algorithm]): Likewise.
18180         ([-fira-region]): Likewise.
18181         ([-flra-remat]): Likewise.
18182         ([-fipa-ra]): Likewise.
18183         ([-fhoist-adjacent-loads]): Likewise.
18184         ([-fisolate-erroneous-paths-dereference]): Likewise.
18185         ([-fisolate-erroneous-paths-attribute]): Likewise.
18186         ([-ftree-switch-conversion]): Likewise.
18187         ([-ftree-tail-merge]): Likewise.
18188         ([-ftree-loop-if-convert]): Likewise.
18189         ([-ftree-loop-if-convert-stores]): Likewise.
18190         ([-ftree-loop-distribution]): Likewise.
18191         ([-ftree-loop-distribute-patterns]): Likewise.
18192         ([-flto-compression-level]): Likewise.
18193         ([-flto-report]): Likewise.
18194         ([-flto-report-wpa]): Likewise.
18195         ([-fuse-linker-plugin]): Likewise.
18196         ([-mfix-cortex-a53-835769]): Likewise.
18197         ([-mno-fix-cortex-a53-835769]): Likewise.
18198         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
18199         explicit listing; add a note to the discussion indicating they
18200         exist.  Reorder table to group similar options.  Add missing
18201         @opindex entries.  Add @need commands throughout the table to
18202         allow it to be split across multiple pages.
18203         ([-m8bit-idiv]): Fix @opindex.
18204         ([-mavx256-split-unaligned-load]): Likewise.
18205         ([-mavx256-split-unaligned-store]): Likewise.
18206         ([-mstack-protector-guard]): Likewise.
18207         ([-mcpu=]): Likewise.
18208         ([-mcpu]): Likewise.
18209         ([-mpointer-size=]): Likewise.
18211 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
18213         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
18214         instead of `m' constraint.  Likewise for unnamed movb comparison
18215         patterns using reg_before_reload_operand predicate.
18216         * config/pa/predicates.md (reg_before_reload_operand): Tighten
18217         predicate to reject register index and LO_SUM DLT memory forms
18218         after reload.
18220 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
18222         * doc/invoke.texi (Option Summary): Fix spelling of
18223         -fdevirtualize-at-ltrans.
18224         ([-fdevirtualize]): Fix markup.
18225         ([-fdevirtualize-speculatively]): Fix typo.
18226         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
18227         implementor-speaky.
18228         * common.opt (fdevirtualize-at-ltrans): Likewise.
18229         * ipa-devirt.c: Fix typos in comments throughout the file.
18230         (ipa_devirt): Fix typos in format strings for dump output.
18232 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
18234         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
18235         discussion of defaults, light copy-editing.
18237 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18239         * tsan.c (instrument_expr): corrected previous checkin.
18241 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18243         Instrument bit field and unaligned accesses for TSAN.
18244         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
18245         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
18246         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
18247         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
18248         unaligned memory regions.
18250 2015-01-01  Anthony Green  <green@moxielogic.com>
18252         * config/moxie/predicates.md (moxie_general_movsrc_operand):
18253         Restrict move source register offsets to 16 bits.
18255 Copyright (C) 2015 Free Software Foundation, Inc.
18257 Copying and distribution of this file, with or without modification,
18258 are permitted in any medium without royalty provided the copyright
18259 notice and this notice are preserved.