gcc/
[official-gcc.git] / gcc / ChangeLog
blob33c3c0d8ef84c0df4768626c668cb17b21dbae66
1 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
3         * hash-traits.h (string_hash, nofree_string_hash): New classes.
4         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
5         * passes.c (pass_registry_hasher): Likewise.
6         * config/alpha/alpha.c (string_traits): Likewise.
7         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
8         * config/m32c/m32c.c (pragma_traits): Likewise.
9         * config/mep/mep.c (pragma_traits): Likewise.
11 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13         * tree-hash-traits.h (tree_hash): New class.
14         * except.c: Include tree-hash-traits.h.
15         (tree_hash_traits): Use tree_hash.
17 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
19         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
20         * sese.c: Include tree-hash-traits.h.
21         (rename_map_hasher): Use tree_ssa_name_hasher.
23 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25         * tree-hash-traits.h (tree_decl_hash): New class.
26         * tree-ssa-strlen.c: Include tree-hash-traits.h.
27         (stridxlist_hash_traits): Use tree_decl_hash.
29 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
31         * tree-hash-traits.h: New file.
32         (tree_operand_hash): New class.
33         * sanopt.c: Include tree-hash-traits.h.
34         (sanopt_tree_map_traits): Use tree_operand_hash.
35         * tree-if-conv.c: Include tree-hash-traits.h.
36         (phi_args_hash_traits): Use tree_operand_hash.
37         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
38         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
40 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
42         * hash-map-traits.h: Include hash-traits.h.
43         (simple_hashmap_traits): New class.
44         * mem-stats.h (hash_map): Change the default traits to
45         simple_hashmap_traits<default_hash_traits<Key> >.
47 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
49         * hash-table.h: Update comments.
51 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
53         * hash-traits.h (default_hash_traits): New structure.
54         * hash-set.h (default_hashset_traits): Delete.
55         (hash_set): Use default_hash_traits<Key> instead of
56         default_hashset_traits.  Delete hash_entry type and use Key directly.
57         * ipa-devirt.c (pair_traits): Delete.
58         (default_hash_traits <type_pair>): Override.
59         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
60         (odr_types_equivalent_p, add_type_duplicate): Likewise.
62 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
64         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
66 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
68         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
69         (has_is_empty, is_empty_helper): Delete.
70         (has_mark_deleted, mark_deleted_helper): Delete.
71         (has_mark_empty, mark_empty_helper): Delete.
72         (hash_table::is_deleted): Call the Descriptor unconditionally.
73         (hash_table::is_empty): Likewise.
74         (hash_table::mark_deleted): Likewise.
75         (hash_table::mark_empty): Likewise.
77 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
79         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
80         redundant typedefs and members.
81         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
82         redundant typedefs.
83         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
84         * ipa-devirt.c (odr_name_hasher): Likewise.
85         (polymorphic_call_target_hasher): Likewise.
86         * ira-costs.c (cost_classes_hasher): Likewise.
87         * statistics.c (stats_counter_hasher): Likewise.
88         * trans-mem.c (log_entry_hasher): Likewise.
89         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
90         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
91         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
92         * var-tracking.c (variable_hasher): Likewise.
93         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
94         Remove redundant typedefs and members.
96 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
98         * hash-traits.h (ggc_cache_hasher): Rename to...
99         (ggc_cache_remove): ...this and remove typedefs.
100         (ggc_cache_ptr_hash): New class.
101         * hash-table.h: Update commentary.
102         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
103         rather than ggc_cache_hasher.
104         (const_wide_int_hasher, reg_attr_hasher): Likewise.
105         (const_double_hasher, const_fixed_hasher): Likewise.
106         * function.c (insn_cache_hasher): Likewise.
107         * trans-mem.c (tm_wrapper_hasher): Likewise.
108         * tree.h (tree_decl_map_cache_hasher): Likewise.
109         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
110         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
111         * ubsan.c (tree_type_map_cache_hasher): Likewise.
112         * varasm.c (tm_clone_hasher): Likewise.
113         * config/i386/i386.c (dllimport_hasher): Likewise.
114         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
115         (tree_hasher): Likewise.
117 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
119         * hash-traits.h (ggc_hasher): Rename to...
120         (ggc_remover): ...this and remove typedefs.
121         (ggc_cache_hasher): Update accordingly.  Add typedefs.
122         (ggc_ptr_hash): New class.
123         * hash-table.h: Update comment.
124         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
125         ggc_hasher.
126         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
127         (tree_descriptor_hasher): Likewise.
128         * cgraph.c (function_version_hasher): Likewise.
129         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
130         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
131         (dw_loc_list_hasher, addr_hasher): Likewise.
132         * function.h (used_type_hasher): Likewise.
133         * function.c (temp_address_hasher): Likewise.
134         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
135         * libfuncs.h (libfunc_hasher): Likewise.
136         * lto-streamer.h (decl_state_hasher): Likewise.
137         * optabs.c (libfunc_decl_hasher): Likewise.
138         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
139         * varasm.c (section_hasher, object_block_hasher): Likewise.
140         (const_rtx_desc_hasher): Likewise.
141         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
142         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
144 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
146         * hash-traits.h (free_ptr_hash): New class.
147         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
148         rather than typed_free_remove.  Remove redudant typedefs.
149         (external_ref_hasher): Likewise.
150         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
151         (ehspec_hasher): Likewise.
152         * ggc-common.c (saving_hasher): Likewise.
153         * gimplify.c (gimplify_hasher): Likewise.
154         * haifa-sched.c (delay_i2_hasher): Likewise.
155         * loop-invariant.c (invariant_expr_hasher): Likewise.
156         * loop-iv.c (biv_entry_hasher): Likewise.
157         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
158         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
159         * tree-cfg.c (locus_discrim_hasher): Likewise.
160         * tree-eh.c (finally_tree_hasher): Likewise.
161         * tree-into-ssa.c (var_info_hasher): Likewise.
162         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
163         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
164         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
165         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
166         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
167         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
168         (shared_bitmap_hasher): Likewise.
169         * tree-ssa-threadupdate.c (redirection_data): Likewise.
170         * tree-vectorizer.h (peel_info_hasher): Likewise.
171         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
172         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
174 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
176         * hash-table.h: Update comments.
177         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
178         (nofree_ptr_hash): New class.
179         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
180         than typed_noop_remove.  Remove redudant typedefs.
181         * attribs.c (attribute_hasher): Likewise.
182         * cfg.c (bb_copy_hasher): Likewise.
183         * cselib.c (cselib_hasher): Likewise.
184         * dse.c (invariant_group_base_hasher): Likewise.
185         * dwarf2cfi.c (trace_info_hasher): Likewise.
186         * dwarf2out.c (macinfo_entry_hasher): Likewise.
187         (comdat_type_hasher, loc_list_hasher): Likewise.
188         * gcse.c (pre_ldst_expr_hasher): Likewise.
189         * genmatch.c (id_base): Likewise.
190         * genrecog.c (test_pattern_hasher): Likewise.
191         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
192         * haifa-sched.c (delay_i1_hasher): Likewise.
193         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
194         * ipa-icf.h (congruence_class_group_hash): Likewise.
195         * ipa-profile.c (histogram_hash): Likewise.
196         * ira-color.c (allocno_hard_regs_hasher): Likewise.
197         * lto-streamer.h (string_slot_hasher): Likewise.
198         * lto-streamer.c (tree_entry_hasher): Likewise.
199         * plugin.c (event_hasher): Likewise.
200         * postreload-gcse.c (expr_hasher): Likewise.
201         * store-motion.c (st_expr_hasher): Likewise.
202         * tree-sra.c (uid_decl_hasher): Likewise.
203         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
204         (ssa_name_var_hash): Likewise.
205         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
206         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
207         * tree-ssa-pre.c (pre_expr_d): Likewise.
208         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
209         * vtable-verify.h (registration_hasher): Likewise.
210         * vtable-verify.c (vtbl_map_hasher): Likewise.
211         * config/arm/arm.c (libcall_hasher): Likewise.
212         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
213         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
214         * config/sol2.c (comdat_entry_hasher): Likewise.
215         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
216         (print_fold_checksum, fold_checksum_tree): Likewise.
217         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
218         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
219         (fold_build_call_array_loc): Likewise.
220         * tree-ssa-ccp.c (gimple_htab): Likewise.
221         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
222         rather than pointer_type.
224 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
226         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
227         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
229 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
231         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
232         (ggc_hasher::ggc_mx): Likewise.
233         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
234         that duplicate ggc_hasher ones.
236 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
238         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
239         (gt_cleare_cache): Check here for deleted and empty entries.
240         Replace handle_cache_entry with a call to keep_cache_entry.
241         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
242         (ggc_cache_hasher::keep_cache_entry): New function.
243         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
244         (tm_wrapper_hasher::keep_cache_entry): New function.
245         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
246         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
247         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
248         (type_cache_hasher::keep_cache_entry): New function.
249         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
250         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
251         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
252         (tree_type_map_cache_hasher::keep_cache_entry): New function.
253         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
254         (tm_clone_hasher::keep_cache_entry): New function.
255         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
256         (dllimport_hasher::keep_cache_entry): New function.
258 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
260         * hash-table.h: Include hash-traits.h.
261         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
262         (ggc_cache_hasher): Move to...
263         * hash-traits.h: ...this new file.
265 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
267         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
268         struct cl_optimization.
269         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
270         * tree.c (make_node_stat): Allocate cl_optimization struct.
271         (copy_node_stat): Allocate and copy cl_optimization struct.
273 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
275         * function.h (struct incoming_args): Move struct.
276         (pass_by_reference, reference_callee_copied): Remove prototypes.
277         * emit-rtl.h (struct incoming_args): Relocate struct here.
278         * calls.h (pass_by_reference, reference_callee_copied): Relocate
279         prototypes here.
280         * function.c (pass_by_reference, reference_callee_copied): Move.
281         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
282         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
283         * ipa-chkp.c: Include calls.h.
285 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
287         * alias.h (alias_set_type): Move typedef.
288         * coretypes.h (alias_set_type): Relocate typedef here.
289         * rtl.h: Don't include alias.h.
291 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
293         * cgraph.h (cgraph_rtl_info): Move to rtl.h
294         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
295         and instance.
296         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
297         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
298         doesn't exist.
299         * calls.c: Include hard-reg-set.h before rtl.h.
300         * ira.c: Likewise.
302 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
303             Vladimir Makarov  <vmakarov@redhat.com>
305         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
306         Add assert.
308 2015-06-25  Richard Biener  <rguenther@suse.de>
310         * fold-const.c (fold_binary_loc): Move simplification of
311         (X <<>> C1) & C2 ...
312         * match.pd: ... here.
314 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
316         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
318 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
320         * match.pd: Add patterns for vec_conds between 1 and 0.
322 2015-06-25  Richard Biener  <rguenther@suse.de>
324         * tree-vect-stmts.c (vectorizable_conversion): Do not set
325         STMT_VINFO_VEC_STMT for SLP.
326         (vectorizable_store): Likewise.
327         (vectorizable_load): Likewise.
328         (vect_transform_stmt): Catch SLP vectorization clobbering
329         STMT_VINFO_VEC_STMT.
331 2015-06-25  Richard Biener  <rguenther@suse.de>
333         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
334         dumping.
335         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
336         cleanup resulting dead code and parameters.
337         (vect_transform_slp_perm_load): Adjust.
339 2015-06-25  Nick Clifton  <nickc@redhat.com>
341         * config/bfin/bfin.c (bfin_expand_prologue): Set
342         current_function_static_stack_size if flag_stack_usage_info is
343         set.
344         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
345         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
346         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
347         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
349 2015-06-25  Tom de Vries  <tom@codesourcery.com>
351         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
352         comment that the generated IV is unsigned.
354 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
356         PR target/29693
357         * config/arm/arm.c (arm_dbx_register_number): Return
358         DWARF_FRAME_REGISTERS by default.
360 2015-06-25  Tom de Vries  <tom@codesourcery.com>
362         * dominance.c (calculate_dominance_info): Fix verify_dominators call
363         argument.  Call verify_dominator when reusing dominator info.
365 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
367         PR target/66563
368         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
369         an additional element of the unspec vector.  Modify indices
370         of operands.
371         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
372         * config/sh/sh.c (prepare_move_operands): Pass incremented
373         const_int to gen_GOTaddr2picreg.
374         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
376 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
378         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
379         Condition on TARGET_FLOAT.
381 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
383         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
384         and (no)crypto.
386 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
388         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
390         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
391         aarch64_err_no_fpadvsimd.
393         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
394         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
395         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
396         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
397         Turn error into assert, test TARGET_FLOAT.
398         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
399         TARGET_FLOAT.
401 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
403         PR debug/66482
404         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
406 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
408         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
410 2015-06-24 Renlin Li <renlin.li@arm.com>
412         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
413         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
415 2015-06-24  Richard Biener  <rguenther@suse.de>
417         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
418         (main): Likewise.
419         (lower_opt_convert): Support lowering of conditional view_convert.
420         (parser::parse_operation): Likewise.
421         (parser::parse_for): Likewise.
423 2015-06-24  Renlin Li  <renlin.li@arm.com>
425         * varasm.c (emit_local): Use unsigned int for align variable.
427 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
429         PR target/63408
430         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
431         for negative numbers.
433 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
435         PR rtl-optimization/66306
436         * reload.c (find_reloads): Swap the match_dup info for
437         commutative operands.
439 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
441         * config/s390/vx-builtins.md
442         ("vec_scatter_element<mode>_<non_vec_int>")
443         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
444         attribute with bhfgq.
446 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
448         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
450 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
452         * config/s390/s390-builtin-types.def: Add flag to indicate the
453         options under which the function type is needed.
454         * config/s390/s390-builtins.def: Add flag to indicate the options
455         under which the builtin is enabled.
456         * config/s390/s390-builtins.h: Add flags parameter to macro
457         definitions.
458         (bflags_for_builtin): New function.
459         (flags_for_builtin): Renamed to ...
460         (opflags_for_builtin): ... this.
461         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
462         flags_for_builtin to bflags_for_builtin and
463         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
464         * config/s390/s390.c: Add initialization of bflags_builtin and
465         opflags_builtin arrays.
466         Remove code for flags_builtin.
467         (s390_init_builtins): Only create builtin function types if one of
468         their flags is active.
469         Only create builtins if all of their flags are active.
470         (s390_expand_builtin): Rename flags_for_builtin to
471         opflags_for_builtin.
473 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
475         * config/s390/vecintrin.h: Remove internal builtins.
477 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
479         * config/s390/s390.c (s390_secondary_reload): Fix check for
480         GENERAL_REGS register class.
482 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
484         * config/s390/s390.c (s390_support_vector_misalignment): Call
485         default implementation for !TARGET_VX.
487 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
489         * config/s390/s390.c (s390_legitimate_constant_p): Add
490         TARGET_VX check.
492 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
494         * config/s390/s390.c (s390_vector_abi): New variable definition.
495         (s390_check_type_for_vector_abi): New function.
496         (TARGET_ASM_FILE_END): New macro definition.
497         (s390_asm_file_end): New function.
498         (s390_function_arg): Call s390_check_type_for_vector_abi.
499         (s390_gimplify_va_arg): Likewise.
500         * configure: Regenerate.
501         * configure.ac: Check for .gnu_attribute Binutils feature.
503 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
505         PR target/65803
506         * config/bfin/bfin.c (hwloop_optimize): Initialize
507         JUMP_LABEL for newly created jump.
509 2015-06-23  Tristan Gingold  <gingold@adacore.com>
511         * collect-utils.c (collect_wait): Unlink the response file here
512         instead of...
513         (do_wait): ...here.
514         (utils_cleanup): ...and here.
516 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
518         * df-scan.c: Don't include target-def.h.
519         * targhooks.c: Likewise.
520         * config/arm/arm-c.c: Likewise.
521         * config/i386/i386-c.c: Likewise.
522         * config/nds32/nds32-cost.c: Likewise.
523         * config/nds32/nds32-fp-as-gp.c: Likewise.
524         * config/nds32/nds32-intrinsic.c: Likewise.
525         * config/nds32/nds32-isr.c: Likewise.
526         * config/nds32/nds32-md-auxiliary.c: Likewise.
527         * config/nds32/nds32-memory-manipulation.c: Likewise.
528         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
529         * config/nds32/nds32-predicates.c: Likewise.
531 2015-06-23  Richard Biener  <rguenther@suse.de>
533         PR tree-optimization/66636
534         * tree-vect-stmts.c (vectorizable_store): Properly compute the
535         def type for further defs for strided stores.
537 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
539         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
540         conditional selects.
541         (setcc_int<mode>, setcc_float<mode>): Reformat.
543 2015-06-23  Marek Polacek  <polacek@redhat.com>
545         * match.pd ((x + y) - (x | y) -> x & y,
546         (x + y) - (x & y) -> x | y): New patterns.
548 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
550         PR 65711
551         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
552         '-dynamic-linker' within %{!shared: ...}.
554 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
556         PR target/66560
557         * config/i386/predicates.md (addsub_vm_operator): New predicate.
558         (addsub_vs_operator): Ditto.
559         (addsub_vs_parallel): Ditto.
560         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
561         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
562         Put minus RTX before plus and adjust vec_merge selector.
563         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
564         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
565         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
566         (addsub vec_merge splitters): New combiner splitters.
567         (addsub vec_select/vec_concat splitters): Ditto.
569 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
571         PR tree-optimization/66449
572         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
573         POINTER_PLUS_EXPR for pointers.
575 2015-06-23  Alan Modra  <amodra@gmail.com>
577         * rtlanal.c (commutative_operand_precedence): Correct comments.
578         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
579         declaration.  Return an int.  Distinguish REG,REG return from
580         others.
581         (struct simplify_plus_minus_op_data): Make local to function.
582         (simplify_plus_minus): Don't set canonicalized if merely sorting
583         registers.  Avoid packing ops if nothing changes.  White space fixes.
585 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
587         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
588         -fdump-ada-spec is passed but not if -fsyntax-only is.
590 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
592         PR bootstrap/63740
593         * lra-lives.c (process_bb_lives): Check insn copying the same
594         reload pseudo and don't create a copy for it.
596 2015-06-22  Tom de Vries  <tom@codesourcery.com>
598         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
599         for cond_stmt.
601 2015-06-22  Tom de Vries  <tom@codesourcery.com>
603         * builtins.def (DEF_GOMP_BUILTIN): Test
604         'flag_tree_parallelize_loops > 1' instead of
605         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
607 2015-06-22  Tom de Vries  <tom@codesourcery.com>
609         * dominance.c (calculate_dominance_info): Verify dominators if
610         early-out.
612 2015-06-22  Marek Polacek  <polacek@redhat.com>
614         * match.pd ((x ^ y) ^ (x | y) -> x & y,
615         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
616         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
617         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
619 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
621         PR target/65871
622         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
623         cost of embedded comparison.
625 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
627         PR target/65914
628         * config/rs6000/predicates.md (altivec_register_operand): Permit
629         virtual stack registers.
630         (vsx_register_operand): Likewise.
631         (vfloat_operand): Likewise.
632         (vint_operand): Likewise.
633         (vlogical_operand): Likewise.
635 2015-06-22  Richard Biener  <rguenther@suse.de>
637         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
638         and single_scalar_iteration_cost members.
639         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
640         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
641         (vect_get_single_scalar_iteration_cost): Remove.
642         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
643         Use LOOP_VINFO_SCALAR_ITERATION_COST.
644         * tree-vect-loop.c (destroy_loop_vec_info): Free
645         scalar_cost_vec.
646         (vect_get_single_scalar_iteration_cost): Compute result into
647         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
648         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
649         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
650         (vect_estimate_min_profitable_iters): Use them.
652 2015-06-22  Christian Bruel  <christian.bruel@st.com>
654         PR target/52144
655         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
656         (TARGET_INSERT_ATTRIBUTES): Define.
657         (thumb_flipper): New var.
658         * config/arm/arm.opt (-mflip-thumb): New switch.
660 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
661             Martin Liska  <mliska@suse.cz>
663         PR ipa/65908
664         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
665         construction of arg_types.
666         (sem_function::sem_function): Likewise.
667         (sem_function::~sem_function): Remove destruction of arg_types.
668         (sem_function::compatible_parm_types_p): New function.
669         (sem_function::equals_wpa): Reorg matching of return values
670         and parameter types.
671         (sem_function::equals_private): Reorg mathcing of argument types.
672         (sem_function::parse_tree_args): Remove.
673         * ipa-icf.h (init_wpa): Do not call it.
674         (parse_tree_args): Remove.
675         (compatible_parm_types_p): Declare.
676         (result_type): Remove.
677         (arg_types): Remove.
679 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
681         PR ipa/66351
682         * ipa-polymorphic-call.c
683         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
684         initializing alias oracle; fix formating; set base_alias_set if it
685         is known.
687 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
689         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
690         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
691         (find_inc): Likewise.
692         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
693         swapping.
694         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
695         * df-scan.c (df_swap_refs): Remove.
696         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
697         * dominance.c (link_roots): Use std::swap instead of manually swapping.
698         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
699         * fold-const.c (fold_relational_const): Likewise.
700         * genattrtab.c (simplify_test_exp): Likewise.
701         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
702         gimple_simplify): Likewise.
703         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
704         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
705         * ipa-devirt.c (add_type_duplicate): Likewise.
706         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
707         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
708         * lra.c (lra_create_copy): Likewise.
709         * lto-streamer-out.c (DFS::DFS): Likewise.
710         * modulo-sched.c (get_sched_window): Likewise.
711         * omega.c (omega_pretty_print_problem): Likewise.
712         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
713         * reload1.c (reloads_unique_chain_p): Likewise.
714         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
715         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
716         use std::swap.
717         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
718         manually swapping.
719         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
720         predicate_mem_writes): Likewise.
721         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
722         * tree-predcom.c (combine_chains): Likewise.
723         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
724         refs_may_alias_p_1): Likewise.
725         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
726         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
727         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
728         number_of_iterations_cond): Likewise.
729         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
730         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
731         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
732         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
733         * tree-vrp.c (extract_range_from_binary_expr_1,
734         extract_range_from_unary_expr_1): Likewise.
736 2015-06-20  Marek Polacek  <polacek@redhat.com>
738         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
740 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
742         PR target/66591
743         * config/sh/sh.c (prepare_move_operands): Replace subreg
744         index term with R0 for base and index addressing.
746 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
748         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
749         op1 is an fp zero.
750         (movsf_aarch64): Change condition from register_operand to
751         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
752         load1.  Change type for alternative 7 to store1.
753         (movdf_aarch64): Likewise.
755 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
757         * config/vax/vax.md: Adjust sign/zero extend patterns to
758         handle SUBREGs in operands[1].
760 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
762         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
763         of manually swapping.
764         (expand_vec_perm_interleave2): Likewise.
766 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
768         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
769         reuse bounds created for abnormal ssa names.
771 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
773         * config/nvptx/nvptx.md (allocate_stack): Rename to...
774         (allocate_stack_<mode>): ... this, and add :P on both
775         match_operand and unspec.
776         (allocate_stack): New expander.
778 2015-06-19  Christian Bruel  <christian.bruel@st.com>
780         PR target/66541
781         PR target/52144
782         * config/arm/arm.c (arm_set_current_function): Handle
783         explicit default options.
785 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
787         * config/i386/i386.md (*movsicc_noc_zext): New insn.
788         (zero-extended cmove with mem peephole2): New pattern.
789         (cmove with mem peephole2): Merge patterns.
791 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
793         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
795 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
797         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
798         * config/mips/mips.md (*madd4<mode>): Ditto.
799         (*nmadd3<mode>) Ditto.
800         (*nmadd4<mode>_fastmath): Ditto.
801         (*nmadd3<mode>_fastmath): Ditto.
802         (*nmsub4<mode>): Ditto.
803         (*nmsub3<mode>): Ditto.
804         (*nmsub4<mode>_fastmath): Ditto.
805         (*nmsub3<mode>_fastmath): Ditto.
807 2015-06-18  Michael Matz  <matz@suse.de>
809         PR middle-end/66253
810         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
811         grouped strided stores.
812         (vectorizable_load): Don't use the DR from first_stmt in
813         the non-SLP grouped strided case.
815 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
817         PR target/66569
818         * function.c (assign_bounds): Add arguments assign_regs,
819         assign_special, assign_bt.
820         (assign_parms): For vararg functions handle bounds in BT
821         and special slots after incoming vararg bounds.
823 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
825         PR middle-end/66568
826         * cfgexpand.c (expand_return): Handle missing bounds.
827         (expand_gimple_stmt_1): Likewise.
828         * tree-chkp.c (chkp_expand_zero_bounds): New.
829         * tree-chkp.h (chkp_expand_zero_bounds): New.
831 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
833         PR middle-end/66567
834         * ipa-chkp.c (chkp_maybe_create_clone): Require
835         functions to be instrumentable.
836         * tree-chkp.c (chkp_replace_function_pointer): Use
837         chkp_instrumentable_p instead of attribute check.
839 2015-06-18  Richard Biener  <rguenther@suse.de>
841         PR tree-optimization/66510
842         * tree-vect-stmts.c (vectorizable_load): Properly compute the
843         number of vector loads for SLP permuted loads.
844         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
845         check the stride for loop vectorization.
846         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
847         vectorization factor.
848         (vect_analyze_group_access): If the group size is not a power
849         of two require a epilogue loop.
850         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
851         compute and optimizing and alias test pruning after final
852         vectorization factor computation.
853         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
854         vector alignment.
855         (vect_transform_slp_perm_load): Properly compute the original
856         number of vector load stmts.
858 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
860         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
861         "unlikely character , in @var" warning.
863 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
865         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
866         (ix86_function_arg_advance): Ditto.
867         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
869 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
871         * function.h (struct rtl_data): Remove struct and accessor macros.
872         * emit-rtl.h (struct rtl_data): Relocate to here.
873         * Makefile.in (GTFILES): Add emit-rtl.h.
874         * df-core.c: Include emit-rtl.h.
875         * genattrtab.c: Likewise.
876         * genconditions.c: Likewise.
877         * genpreds.c: Likewise.
878         * genrecog.c: Likewise.
879         * regcprop.c: Likewise.
880         * resource.c: Likewise.
881         * sched-rgn.c: Likewise.
882         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
883         * config/i386/winnt.c: Likewise.
885 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
887         PR middle-end/66429
888         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
889         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
890         and has_force_vectorize_loops flags from cfun into
891         child_cfun.
892         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
893         if simduid is non-NULL.
894         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
895         * passes.def (pass_simduid_cleanup): Add new pass after loop
896         passes.
897         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
898         indirection from htab argument's type.
899         (shrink_simd_arrays): New function.
900         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
901         Don't call adjust_simduid_builtins if there are no loops.
902         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
903         (pass_simduid_cleanup::execute): New method.
904         (make_pass_simduid_cleanup): New function.
906 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
908         * tree-core.h (tree_target_option): Make opts field a pointer to a
909         cl_target_option instead of an instance of the struct.
910         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
911         the structure.
912         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
913         TARGET_OPTION_NODE.
914         (copy_node_stat): Allocate and copy struct cl_target_option.
916 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
918         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
919         Remove conditional exposure of prototypes.
920         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
921         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
922         definitions in tree.h with functions.
923         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
924         anon_aggrname_p.
925         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
927 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
929         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
930         (*cmp<mode>_signed): ... this.
931         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
932         (*cmp<mode>_unsigned): ... this.  Remove %b.
934 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
936         * coretypes.h: Include input.h and as-a.h.
937         * rtl.h: Include input.h and as-a.h for generator files.
938         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
939         * vec.c: Don't include diagnostic-core.h.
940         * alias.c: Do not include input.h, line-map.h or is-a.h.
941         * asan.c: Likewise.
942         * attribs.c: Likewise.
943         * auto-inc-dec.c: Likewise.
944         * auto-profile.c: Likewise.
945         * bb-reorder.c: Likewise.
946         * bt-load.c: Likewise.
947         * builtins.c: Likewise.
948         * caller-save.c: Likewise.
949         * calls.c: Likewise.
950         * ccmp.c: Likewise.
951         * cfg.c: Likewise.
952         * cfganal.c: Likewise.
953         * cfgbuild.c: Likewise.
954         * cfgcleanup.c: Likewise.
955         * cfgexpand.c: Likewise.
956         * cfghooks.c: Likewise.
957         * cfgloop.c: Likewise.
958         * cfgloop.h: Likewise.
959         * cfgloopanal.c: Likewise.
960         * cfgloopmanip.c: Likewise.
961         * cfgrtl.c: Likewise.
962         * cgraph.c: Likewise.
963         * cgraphbuild.c: Likewise.
964         * cgraphclones.c: Likewise.
965         * cgraphunit.c: Likewise.
966         * cilk-common.c: Likewise.
967         * combine-stack-adj.c: Likewise.
968         * combine.c: Likewise.
969         * compare-elim.c: Likewise.
970         * convert.c: Likewise.
971         * coverage.c: Likewise.
972         * cppbuiltin.c: Likewise.
973         * cprop.c: Likewise.
974         * cse.c: Likewise.
975         * cselib.c: Likewise.
976         * data-streamer-in.c: Likewise.
977         * data-streamer-out.c: Likewise.
978         * data-streamer.c: Likewise.
979         * dbxout.c: Likewise.
980         * dce.c: Likewise.
981         * ddg.c: Likewise.
982         * debug.c: Likewise.
983         * df-core.c: Likewise.
984         * df-problems.c: Likewise.
985         * df-scan.c: Likewise.
986         * df.h: Likewise.
987         * dfp.c: Likewise.
988         * diagnostic-core.h: Likewise.
989         * diagnostic.c: Likewise.
990         * dojump.c: Likewise.
991         * dominance.c: Likewise.
992         * domwalk.c: Likewise.
993         * double-int.c: Likewise.
994         * dse.c: Likewise.
995         * dumpfile.c: Likewise.
996         * dumpfile.h: Likewise.
997         * dwarf2asm.c: Likewise.
998         * dwarf2cfi.c: Likewise.
999         * dwarf2out.c: Likewise.
1000         * emit-rtl.c: Likewise.
1001         * et-forest.c: Likewise.
1002         * except.c: Likewise.
1003         * explow.c: Likewise.
1004         * expmed.c: Likewise.
1005         * expr.c: Likewise.
1006         * final.c: Likewise.
1007         * fixed-value.c: Likewise.
1008         * fold-const.c: Likewise.
1009         * function.c: Likewise.
1010         * fwprop.c: Likewise.
1011         * gcc-plugin.h: Likewise.
1012         * gcse.c: Likewise.
1013         * generic-match-head.c: Likewise.
1014         * ggc-page.c: Likewise.
1015         * gimple-builder.c: Likewise.
1016         * gimple-expr.c: Likewise.
1017         * gimple-fold.c: Likewise.
1018         * gimple-iterator.c: Likewise.
1019         * gimple-low.c: Likewise.
1020         * gimple-match-head.c: Likewise.
1021         * gimple-pretty-print.c: Likewise.
1022         * gimple-ssa-isolate-paths.c: Likewise.
1023         * gimple-ssa-strength-reduction.c: Likewise.
1024         * gimple-streamer-in.c: Likewise.
1025         * gimple-streamer-out.c: Likewise.
1026         * gimple-streamer.h: Likewise.
1027         * gimple-walk.c: Likewise.
1028         * gimple.c: Likewise.
1029         * gimplify-me.c: Likewise.
1030         * gimplify.c: Likewise.
1031         * godump.c: Likewise.
1032         * graph.c: Likewise.
1033         * graphite-blocking.c: Likewise.
1034         * graphite-dependences.c: Likewise.
1035         * graphite-interchange.c: Likewise.
1036         * graphite-isl-ast-to-gimple.c: Likewise.
1037         * graphite-optimize-isl.c: Likewise.
1038         * graphite-poly.c: Likewise.
1039         * graphite-scop-detection.c: Likewise.
1040         * graphite-sese-to-poly.c: Likewise.
1041         * graphite.c: Likewise.
1042         * haifa-sched.c: Likewise.
1043         * hw-doloop.c: Likewise.
1044         * ifcvt.c: Likewise.
1045         * init-regs.c: Likewise.
1046         * input.c: Likewise.
1047         * internal-fn.c: Likewise.
1048         * ipa-chkp.c: Likewise.
1049         * ipa-comdats.c: Likewise.
1050         * ipa-cp.c: Likewise.
1051         * ipa-devirt.c: Likewise.
1052         * ipa-icf-gimple.c: Likewise.
1053         * ipa-icf.c: Likewise.
1054         * ipa-inline-analysis.c: Likewise.
1055         * ipa-inline-transform.c: Likewise.
1056         * ipa-inline.c: Likewise.
1057         * ipa-polymorphic-call.c: Likewise.
1058         * ipa-profile.c: Likewise.
1059         * ipa-prop.c: Likewise.
1060         * ipa-pure-const.c: Likewise.
1061         * ipa-ref.c: Likewise.
1062         * ipa-reference.c: Likewise.
1063         * ipa-split.c: Likewise.
1064         * ipa-utils.c: Likewise.
1065         * ipa-visibility.c: Likewise.
1066         * ipa.c: Likewise.
1067         * ira-build.c: Likewise.
1068         * ira-color.c: Likewise.
1069         * ira-conflicts.c: Likewise.
1070         * ira-costs.c: Likewise.
1071         * ira-emit.c: Likewise.
1072         * ira-lives.c: Likewise.
1073         * ira.c: Likewise.
1074         * jump.c: Likewise.
1075         * langhooks.c: Likewise.
1076         * lcm.c: Likewise.
1077         * loop-doloop.c: Likewise.
1078         * loop-init.c: Likewise.
1079         * loop-invariant.c: Likewise.
1080         * loop-iv.c: Likewise.
1081         * loop-unroll.c: Likewise.
1082         * lower-subreg.c: Likewise.
1083         * lra-assigns.c: Likewise.
1084         * lra-coalesce.c: Likewise.
1085         * lra-constraints.c: Likewise.
1086         * lra-eliminations.c: Likewise.
1087         * lra-lives.c: Likewise.
1088         * lra-remat.c: Likewise.
1089         * lra-spills.c: Likewise.
1090         * lra.c: Likewise.
1091         * lto-cgraph.c: Likewise.
1092         * lto-compress.c: Likewise.
1093         * lto-opts.c: Likewise.
1094         * lto-section-in.c: Likewise.
1095         * lto-section-out.c: Likewise.
1096         * lto-streamer-in.c: Likewise.
1097         * lto-streamer-out.c: Likewise.
1098         * lto-streamer.c: Likewise.
1099         * mcf.c: Likewise.
1100         * mode-switching.c: Likewise.
1101         * modulo-sched.c: Likewise.
1102         * omega.c: Likewise.
1103         * omp-low.c: Likewise.
1104         * optabs.c: Likewise.
1105         * opts-global.c: Likewise.
1106         * opts.h: Likewise.
1107         * passes.c: Likewise.
1108         * plugin.c: Likewise.
1109         * postreload-gcse.c: Likewise.
1110         * postreload.c: Likewise.
1111         * predict.c: Likewise.
1112         * pretty-print.h: Likewise.
1113         * print-rtl.c: Likewise.
1114         * print-tree.c: Likewise.
1115         * profile.c: Likewise.
1116         * real.c: Likewise.
1117         * realmpfr.c: Likewise.
1118         * recog.c: Likewise.
1119         * ree.c: Likewise.
1120         * reg-stack.c: Likewise.
1121         * regcprop.c: Likewise.
1122         * reginfo.c: Likewise.
1123         * regrename.c: Likewise.
1124         * regstat.c: Likewise.
1125         * reload.c: Likewise.
1126         * reload1.c: Likewise.
1127         * reorg.c: Likewise.
1128         * resource.c: Likewise.
1129         * rtl-chkp.c: Likewise.
1130         * rtl-error.c: Likewise.
1131         * rtlanal.c: Likewise.
1132         * rtlhooks.c: Likewise.
1133         * sanopt.c: Likewise.
1134         * sched-deps.c: Likewise.
1135         * sched-ebb.c: Likewise.
1136         * sched-rgn.c: Likewise.
1137         * sched-vis.c: Likewise.
1138         * sdbout.c: Likewise.
1139         * sel-sched-dump.c: Likewise.
1140         * sel-sched-ir.c: Likewise.
1141         * sel-sched.c: Likewise.
1142         * sese.c: Likewise.
1143         * shrink-wrap.c: Likewise.
1144         * simplify-rtx.c: Likewise.
1145         * stack-ptr-mod.c: Likewise.
1146         * statistics.c: Likewise.
1147         * stmt.c: Likewise.
1148         * stor-layout.c: Likewise.
1149         * store-motion.c: Likewise.
1150         * streamer-hooks.c: Likewise.
1151         * stringpool.c: Likewise.
1152         * symtab.c: Likewise.
1153         * target-globals.c: Likewise.
1154         * targhooks.c: Likewise.
1155         * toplev.c: Likewise.
1156         * tracer.c: Likewise.
1157         * trans-mem.c: Likewise.
1158         * tree-affine.c: Likewise.
1159         * tree-browser.c: Likewise.
1160         * tree-call-cdce.c: Likewise.
1161         * tree-cfg.c: Likewise.
1162         * tree-cfgcleanup.c: Likewise.
1163         * tree-chkp-opt.c: Likewise.
1164         * tree-chkp.c: Likewise.
1165         * tree-chrec.c: Likewise.
1166         * tree-complex.c: Likewise.
1167         * tree-data-ref.c: Likewise.
1168         * tree-dfa.c: Likewise.
1169         * tree-diagnostic.c: Likewise.
1170         * tree-dump.c: Likewise.
1171         * tree-eh.c: Likewise.
1172         * tree-emutls.c: Likewise.
1173         * tree-if-conv.c: Likewise.
1174         * tree-inline.c: Likewise.
1175         * tree-into-ssa.c: Likewise.
1176         * tree-iterator.c: Likewise.
1177         * tree-loop-distribution.c: Likewise.
1178         * tree-nested.c: Likewise.
1179         * tree-nrv.c: Likewise.
1180         * tree-object-size.c: Likewise.
1181         * tree-outof-ssa.c: Likewise.
1182         * tree-parloops.c: Likewise.
1183         * tree-phinodes.c: Likewise.
1184         * tree-predcom.c: Likewise.
1185         * tree-pretty-print.c: Likewise.
1186         * tree-profile.c: Likewise.
1187         * tree-scalar-evolution.c: Likewise.
1188         * tree-sra.c: Likewise.
1189         * tree-ssa-address.c: Likewise.
1190         * tree-ssa-alias.c: Likewise.
1191         * tree-ssa-ccp.c: Likewise.
1192         * tree-ssa-coalesce.c: Likewise.
1193         * tree-ssa-copy.c: Likewise.
1194         * tree-ssa-copyrename.c: Likewise.
1195         * tree-ssa-dce.c: Likewise.
1196         * tree-ssa-dom.c: Likewise.
1197         * tree-ssa-dse.c: Likewise.
1198         * tree-ssa-forwprop.c: Likewise.
1199         * tree-ssa-ifcombine.c: Likewise.
1200         * tree-ssa-live.c: Likewise.
1201         * tree-ssa-loop-ch.c: Likewise.
1202         * tree-ssa-loop-im.c: Likewise.
1203         * tree-ssa-loop-ivcanon.c: Likewise.
1204         * tree-ssa-loop-ivopts.c: Likewise.
1205         * tree-ssa-loop-manip.c: Likewise.
1206         * tree-ssa-loop-niter.c: Likewise.
1207         * tree-ssa-loop-prefetch.c: Likewise.
1208         * tree-ssa-loop-unswitch.c: Likewise.
1209         * tree-ssa-loop.c: Likewise.
1210         * tree-ssa-math-opts.c: Likewise.
1211         * tree-ssa-operands.c: Likewise.
1212         * tree-ssa-phiopt.c: Likewise.
1213         * tree-ssa-phiprop.c: Likewise.
1214         * tree-ssa-pre.c: Likewise.
1215         * tree-ssa-propagate.c: Likewise.
1216         * tree-ssa-reassoc.c: Likewise.
1217         * tree-ssa-sccvn.c: Likewise.
1218         * tree-ssa-scopedtables.c: Likewise.
1219         * tree-ssa-sink.c: Likewise.
1220         * tree-ssa-strlen.c: Likewise.
1221         * tree-ssa-structalias.c: Likewise.
1222         * tree-ssa-tail-merge.c: Likewise.
1223         * tree-ssa-ter.c: Likewise.
1224         * tree-ssa-threadedge.c: Likewise.
1225         * tree-ssa-threadupdate.c: Likewise.
1226         * tree-ssa-uncprop.c: Likewise.
1227         * tree-ssa-uninit.c: Likewise.
1228         * tree-ssa.c: Likewise.
1229         * tree-ssanames.c: Likewise.
1230         * tree-stdarg.c: Likewise.
1231         * tree-streamer-in.c: Likewise.
1232         * tree-streamer-out.c: Likewise.
1233         * tree-streamer.c: Likewise.
1234         * tree-switch-conversion.c: Likewise.
1235         * tree-tailcall.c: Likewise.
1236         * tree-vect-data-refs.c: Likewise.
1237         * tree-vect-generic.c: Likewise.
1238         * tree-vect-loop-manip.c: Likewise.
1239         * tree-vect-loop.c: Likewise.
1240         * tree-vect-patterns.c: Likewise.
1241         * tree-vect-slp.c: Likewise.
1242         * tree-vect-stmts.c: Likewise.
1243         * tree-vectorizer.c: Likewise.
1244         * tree-vrp.c: Likewise.
1245         * tree.c: Likewise.
1246         * tsan.c: Likewise.
1247         * ubsan.c: Likewise.
1248         * valtrack.c: Likewise.
1249         * value-prof.c: Likewise.
1250         * var-tracking.c: Likewise.
1251         * varasm.c: Likewise.
1252         * varpool.c: Likewise.
1253         * vmsdbgout.c: Likewise.
1254         * vtable-verify.c: Likewise.
1255         * web.c: Likewise.
1256         * wide-int.cc: Likewise.
1257         * xcoffout.c: Likewise.
1258         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
1259         * common/common-targhooks.c: Likewise.
1260         * config/aarch64/aarch64-builtins.c: Likewise.
1261         * config/aarch64/aarch64.c: Likewise.
1262         * config/alpha/alpha.c: Likewise.
1263         * config/arc/arc.c: Likewise.
1264         * config/arm/aarch-common.c: Likewise.
1265         * config/arm/arm-builtins.c: Likewise.
1266         * config/arm/arm-c.c: Likewise.
1267         * config/arm/arm.c: Likewise.
1268         * config/avr/avr-c.c: Likewise.
1269         * config/avr/avr-log.c: Likewise.
1270         * config/avr/avr.c: Likewise.
1271         * config/bfin/bfin.c: Likewise.
1272         * config/c6x/c6x.c: Likewise.
1273         * config/cr16/cr16.c: Likewise.
1274         * config/cris/cris.c: Likewise.
1275         * config/darwin-c.c: Likewise.
1276         * config/darwin.c: Likewise.
1277         * config/default-c.c: Likewise.
1278         * config/epiphany/epiphany.c: Likewise.
1279         * config/epiphany/mode-switch-use.c: Likewise.
1280         * config/epiphany/resolve-sw-modes.c: Likewise.
1281         * config/fr30/fr30.c: Likewise.
1282         * config/frv/frv.c: Likewise.
1283         * config/ft32/ft32.c: Likewise.
1284         * config/glibc-c.c: Likewise.
1285         * config/h8300/h8300.c: Likewise.
1286         * config/i386/i386-c.c: Likewise.
1287         * config/i386/i386.c: Likewise.
1288         * config/i386/msformat-c.c: Likewise.
1289         * config/i386/winnt-cxx.c: Likewise.
1290         * config/i386/winnt-stubs.c: Likewise.
1291         * config/i386/winnt.c: Likewise.
1292         * config/ia64/ia64-c.c: Likewise.
1293         * config/ia64/ia64.c: Likewise.
1294         * config/iq2000/iq2000.c: Likewise.
1295         * config/lm32/lm32.c: Likewise.
1296         * config/m32c/m32c-pragma.c: Likewise.
1297         * config/m32c/m32c.c: Likewise.
1298         * config/m32r/m32r.c: Likewise.
1299         * config/m68k/m68k.c: Likewise.
1300         * config/mcore/mcore.c: Likewise.
1301         * config/mep/mep-pragma.c: Likewise.
1302         * config/mep/mep.c: Likewise.
1303         * config/microblaze/microblaze-c.c: Likewise.
1304         * config/microblaze/microblaze.c: Likewise.
1305         * config/mips/mips.c: Likewise.
1306         * config/mmix/mmix.c: Likewise.
1307         * config/mn10300/mn10300.c: Likewise.
1308         * config/moxie/moxie.c: Likewise.
1309         * config/msp430/msp430-c.c: Likewise.
1310         * config/msp430/msp430.c: Likewise.
1311         * config/nds32/nds32-cost.c: Likewise.
1312         * config/nds32/nds32-fp-as-gp.c: Likewise.
1313         * config/nds32/nds32-intrinsic.c: Likewise.
1314         * config/nds32/nds32-isr.c: Likewise.
1315         * config/nds32/nds32-md-auxiliary.c: Likewise.
1316         * config/nds32/nds32-memory-manipulation.c: Likewise.
1317         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1318         * config/nds32/nds32-predicates.c: Likewise.
1319         * config/nds32/nds32.c: Likewise.
1320         * config/nios2/nios2.c: Likewise.
1321         * config/nvptx/nvptx.c: Likewise.
1322         * config/pa/pa.c: Likewise.
1323         * config/pdp11/pdp11.c: Likewise.
1324         * config/rl78/rl78-c.c: Likewise.
1325         * config/rl78/rl78.c: Likewise.
1326         * config/rs6000/rs6000-c.c: Likewise.
1327         * config/rs6000/rs6000.c: Likewise.
1328         * config/rx/rx.c: Likewise.
1329         * config/s390/s390-c.c: Likewise.
1330         * config/s390/s390.c: Likewise.
1331         * config/sh/sh-c.c: Likewise.
1332         * config/sh/sh-mem.cc: Likewise.
1333         * config/sh/sh.c: Likewise.
1334         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
1335         * config/sh/sh_treg_combine.cc: Likewise.
1336         * config/sol2-c.c: Likewise.
1337         * config/sol2-cxx.c: Likewise.
1338         * config/sol2-stubs.c: Likewise.
1339         * config/sol2.c: Likewise.
1340         * config/sparc/sparc-c.c: Likewise.
1341         * config/sparc/sparc.c: Likewise.
1342         * config/spu/spu-c.c: Likewise.
1343         * config/spu/spu.c: Likewise.
1344         * config/stormy16/stormy16.c: Likewise.
1345         * config/tilegx/mul-tables.c: Likewise.
1346         * config/tilegx/tilegx-c.c: Likewise.
1347         * config/tilegx/tilegx.c: Likewise.
1348         * config/tilepro/mul-tables.c: Likewise.
1349         * config/tilepro/tilepro-c.c: Likewise.
1350         * config/tilepro/tilepro.c: Likewise.
1351         * config/v850/v850-c.c: Likewise.
1352         * config/v850/v850.c: Likewise.
1353         * config/vax/vax.c: Likewise.
1354         * config/visium/visium.c: Likewise.
1355         * config/vms/vms-c.c: Likewise.
1356         * config/vms/vms.c: Likewise.
1357         * config/vxworks.c: Likewise.
1358         * config/winnt-c.c: Likewise.
1359         * config/xtensa/xtensa.c: Likewise.
1361 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
1363         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
1364         function.
1365         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
1367 2015-06-17  Richard Biener  <rguenther@suse.de>
1369         PR tree-optimization/66251
1370         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
1371         stmts for SLP strided stores.
1373         Revert
1374         2015-05-22  Richard Biener  <rguenther@suse.de>
1376         PR tree-optimization/66251
1377         * tree-vect-stmts.c (vectorizable_conversion): Properly
1378         set STMT_VINFO_VEC_STMT even for the SLP case.
1380         2015-05-26  Michael Matz  <matz@suse.de>
1382         PR middle-end/66251
1383         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
1384         STMT_VINFO_VEC_STMT, also with SLP.
1386 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
1388         PR target/56766
1389         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
1390         (*avx_addsubv4df3_1s): Ditto.
1391         (*sse3_addsubv2df3_1): Ditto.
1392         (*sse3_addsubv2df3_1s): Ditto.
1393         (*avx_addsubv8sf3_1): Ditto.
1394         (*avx_addsubv8sf3_1s): Ditto.
1395         (*sse3_addsubv4sf3_1): Ditto.
1396         (*sse3_addsubv4sf3_1s): Ditto.
1398 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
1400         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
1401         (SYSROOT_SUFFIX_SPEC): Update.
1402         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
1403         (STARTFILE_PREFIX_SPEC): Update.
1404         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
1405         (MULTILIB_REQUIRED): New.
1406         (MULTILIB_OSDIRNAMES): New.
1407         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
1408         (MULTILIB_REQUIRED): New.
1409         (MULTILIB_OSDIRNAMES): New.
1411 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
1413         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
1414         * config/aarch64/aarch64-options-extensions.def: Update "fP",
1415         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
1416         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
1417         (AARCH64_FL_PAN): New.
1418         (AARCH64_FL_LOR): New.
1419         (AARCH64_FL_RDMA): New.
1420         (AARCH64_FL_FOR_ARCH8_1): New.
1421         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
1422         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
1424 2015-06-16  Martin Liska  <mliska@suse.cz>
1426         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
1427         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
1428         guard.
1430 2015-06-16  Richard Biener  <rguenther@suse.de>
1432         * tree-vect-stmts.c (vectorizable_store): Adjust.
1433         (vectorizable_load): Likewise.
1434         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1435         Simplify.
1436         (vect_create_data_ref_ptr): Likewise.
1437         (bump_vector_ptr): Adjust.
1439 2015-06-16  Richard Biener  <rguenther@suse.de>
1441         * tree-vect-stmts.c (vectorizable_load): Properly start loads
1442         with the first element if this is grouped loads.
1444 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
1446         * config/arm/arm-protos.h (struct tune_params): Rename
1447         log_op_non_sc to log_op_non_short_circuit, and rename enum
1448         values to expand SC to SHORT_CIRCUIT.
1449         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
1450         to LOG_OP_NON_SHORT_CIRCUIT.
1451         (arm_fastmul_tune):Likewise
1452         (arm_strongarm_tune): Likewise.
1453         (arm_xscale_tune): Likewise.
1454         (arm_9e_tune): Likewise.
1455         (arm_marvell_pj4_tune): Likewise.
1456         (arm_v6t2_tune): Likewise.
1457         (arm_cortex_tune): Likewise.
1458         (arm_cortex_a8_tune): Likewise.
1459         (arm_cortex_a7_tune): Likewise.
1460         (arm_cortex_a15_tune): Likewise.
1461         (arm_cortex_a53_tune): Likewise.
1462         (arm_cortex_a57_tune): Likewise.
1463         (arm_xgene1_tune): Likewise.
1464         (arm_cortex_a5_tune): Likewise.
1465         (arm_cortex_a9_tune): Likewise.
1466         (arm_cortex_a12_tune): Likewise.
1467         (arm_v7m_tune): Likewise.
1468         (arm_cortex_m7_tune): Likewise.
1469         (arm_v6m_tune): Likewise.
1470         (arm_fa726te_tune): Likewise.
1472 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
1474         * altivec.md: Delete UNSPEC_VMLADDUHM.
1475         (mulv4si3_p8): New pattern.
1476         (mulv4si3): Use it for POWER8.
1477         (mulv8hi3): Use vmladduhm with zero addend.
1478         (altivec_vmladduhm): Descriptive RTL.
1480 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
1482         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
1483         to use neon_move instead of mov_imm.
1484         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
1485         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
1487         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
1488         aarch64_float_const_zero_rtx_p check before TFmode check.
1489         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
1490         an fp zero.
1491         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
1492         code and attributes to match.  Change condition from register_operand
1493         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
1494         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
1495         to store2.
1497 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
1499         PR debug/66535
1500         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
1501         there is no parent.
1503 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
1505         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
1506         HOST_WIDE_INT parameter.
1508 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
1510         PR ipa/66181
1511         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
1512         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
1513         TYPE_NO_FORCE_BLK.
1514         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
1516 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
1518         * rtl.h (classify_insn): Declare.
1519         * emit-rtl.c (classify_insn): Move to...
1520         * rtl.c: ...here and add generator support.
1521         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
1522         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
1523         * genemit.c (gen_emit_seq): New function.
1524         (gen_expand, gen_split): Use it.
1526 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
1528         * tree.c (make_vector_stat): Fix comment to state that the
1529         function returns a VECTOR_CST.
1531 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
1533         * gensupport.h (add_implicit_parallel): Declare.
1534         * genrecog.c (add_implicit_parallel): Move to...
1535         * gensupport.c (add_implicit_parallel): ...here.
1536         (process_one_cond_exec): Use it.
1537         * genemit.c (gen_insn): Likewise.
1539 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
1541         PR bootstrap/66448
1542         * passes.c (rest_of_decl_compilation): Do not register globals for
1543         early debug if they are declared in built-ins.
1545 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
1547         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
1549 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1551         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
1552         manually swapping.
1553         (noce_try_cmove_arith): Likewise.
1554         (noce_get_alt_condition): Likewise.
1556 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
1558         * common/config/i386/i386-common.c
1559         (OPTION_MASK_ISA_MWAITX_SET): New.
1560         (ix86_handle_option): Handle mwaitx.
1561         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
1562         (x86_64-*-*): Likewise.
1563         * config/i386/mwaitxintrin.h: New header.
1564         * config/i386/cpuid.h (bit_MWAITX):  Define.
1565         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1566         MWAITX support.
1567         * config/i386/i386.opt (mwaitx): New.
1568         * config/i386/i386-builtin-types.def
1569         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
1570         * config/i386/i386-c.c: Define __MWAITX__ if needed.
1571         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
1572         (PTA_MWAITX): New.
1573         (ix86_option_override_internal): Handle new option.
1574         (processor_alias_table): Added PTA_MWAITX.
1575         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
1576         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
1577         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
1578         IX86_BUILTIN_MONITORX  built-ins.
1579         * config/i386/i386.h (TARGET_MWAITX): New.
1580         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
1581         UNSPEC_MONITORX.
1582         (mwaitx):  New pattern.
1583         (monitorx_<mode>): New pattern.
1584         * config/i386/x86intrin.h: Include mwaitxintrin.h.
1585         * doc/extend.texi: Document monitorx and mwaitx builtins.
1586         * doc/invoke.texi: Document -mmwaitx option.
1588 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
1590         * emit-rtl.c (need_atomic_barrier_p): Mask model with
1591         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
1593 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
1595         * dbxout.c (xcoff_debug_hooks): Provide a function for
1596         register_main_translation_unit hook.
1598 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
1600         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
1601         variants cases from switch.
1602         (rs6000_post_atomic_barrier): Same.
1603         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
1604         (rs6000_expand_atomic_exchange): Same.
1605         (rs6000_expand_atomic_op): Same.
1606         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
1607         SYNC variants cases from switch.
1608         (atomic_load): Same.
1609         (atomic_store): Same.
1611 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
1613         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
1614         CONST_INT for goto.
1616 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
1618         PR bootstrap/66448
1619         * dwarf2out.c (check_die): Check for common duplicate attributes.
1620         (add_location_or_const_value_attribute): Do not add duplicate
1621         attributes.
1622         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
1623         time around.
1624         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
1625         (gen_type_die_with_usage): Call check_die.
1626         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
1628 2015-06-11  Jason Merrill  <jason@redhat.com>
1630         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
1631         dies.
1633 2015-06-11  Marek Polacek  <polacek@redhat.com>
1635         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
1637 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
1639         PR bootstrap/66252
1640         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
1641         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
1642         (*addx_extend_sp32): Fix pasto.
1643         (*subx_extend): Rename into...
1644         (*subx_extend_sp32): ...this.
1645         (*adddi3_extend_sp32): Add earlyclobber.
1646         (*subdi3_insn_sp32): Likewise.
1647         (*subdi3_extend_sp32): Likewise.
1648         (*and_not_di_sp32): Likewise.
1649         (*or_not_di_sp32): Likewise.
1650         (*xor_not_di_sp32): Likewise.
1651         (*negdi2_sp32): Likewise.
1652         (*one_cmpldi2_sp32): Likewise.
1654 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
1656         * debug.h (struct gcc_debug_hooks): Add a
1657         register_main_translation_unit hook.
1658         * debug.c (do_nothing_debug_hooks): Provide a function for this
1659         new hook.
1660         * dbxout.c (dbx_debug_hooks): Likewise.
1661         * sdbout.c (sdb_debug_hooks): Likewise.
1662         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
1663         * dwarf2out.c (main_translation_unit): New global variable.
1664         (dwarf2out_register_main_translation_unit): New function
1665         implementing the new hook.
1666         (dwarf2_debug_hooks): Assign
1667         dwarf2out_register_main_translation_unit to this new hook.
1668         (dwarf2out_init): Associate any main translation unit to
1669         comp_unit_die ().
1671 2015-06-11  Marek Polacek  <polacek@redhat.com>
1673         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
1675 2015-06-11  Marek Polacek  <polacek@redhat.com>
1677         * match.pd: Use single_use throughout.
1679 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1681         * config/arm/arm.c (arm_option_params_internal): When optimising
1682         for speed set max_insns_skipped when arm_restrict_it.
1684 2015-06-11  Christian Bruel  <christian.bruel@st.com>
1686         PR target/52144
1687         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
1688          macros in ...
1689         (arm_cpu_builtins): New function.
1690         (arm_pragma_target_parse): Call arm_cpu_builtins.
1691         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
1692         (arm_register_target_pragmas): Likewise.
1693         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
1694          Call arm_register_target_pragmas.
1695         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
1696         (arm_pragma_target_parse): Likewise.
1698 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
1700         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
1701         of the second operand.
1703 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
1705         PR target/66473
1706         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
1707         to prepare mask operand for AVX512 modes.
1709 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1711         PR target/66474
1712         * doc/md.texi (Machine Constraints): Document that on the PowerPC
1713         if you use a constraint that targets a VSX register, you must use
1714         %x<n> in the template.
1716 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
1718         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
1719         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
1720         (define_insn "trap"): New definition.
1722 2015-06-10  Richard Biener  <rguenther@suse.de>
1724         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
1725         out from ...
1726         (vect_supported_load_permutation_p): ... here.  Handle
1727         supportable permutations in reductions.
1728         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
1729         for vectorizing strided group loads.
1731 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
1733         PR target/66470
1734         * config/i386/i386.c (ix86_split_long_move): For collisions
1735         involving direct tls segment refs, move the UNSPEC_TP possibly
1736         wrapped in ZERO_EXTEND out of the address for lea, to each of
1737         the memory loads.
1739 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1741         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
1742         dmb sy. Adjust tabs.
1744 2015-06-10  Tom de Vries  <tom@codesourcery.com>
1746         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
1748 2015-06-10  Martin Liska  <mliska@suse.cz>
1750         PR bootstrap/66471
1751         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
1752         all enum values in mem_alloc_origin.
1753         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
1754         name.
1755         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
1756         * bitmap.c (bitmap_register): Likewise.
1757         (dump_bitmap_statistics): Likewise.
1758         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
1759         (ggc_record_overhead): Likewise.
1760         * hash-map.h: Likewise.
1761         * hash-set.h: Likewise.
1762         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
1763         * hash-table.h: Likewise.
1764         * vec.c (vec_prefix::register_overhead): Likewise.
1765         (vec_prefix::release_overhead): Likewise.
1766         (dump_vec_loc_statistics): Likewise.
1768 2015-06-09  Christian Bruel  <christian.bruel@st.com>
1770         PR target/52144
1771         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
1772         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
1773         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
1774         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
1775         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
1776         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
1777         (arm_valid_target_attribute_p): Likewise.
1778         (arm_set_current_function, arm_can_inline_p): Likewise.
1779         (arm_valid_target_attribute_rec): Likewise.
1780         (arm_previous_fndecl): New variable.
1781         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
1782         (TARGET_CAN_INLINE_P): Define.
1783         (arm_asm_trampoline_template): Emit mode.
1784         (arm_file_start): Don't set unified syntax.
1785         (arm_declare_function_name): Set unified syntax and mode.
1786         (arm_option_override): Init target_option_default_node.
1787         and target_option_current_node.
1788         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
1789         (*call_symbol): Likewise.
1790         * doc/extend.texi: Document ARM/Thumb target attribute.
1791         * doc/invoke.texi: Likewise.
1793 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
1795         Revert:
1796         2015-06-09  Alexandre Oliva <aoliva@redhat.com>
1797         PR rtl-optimization/64164
1798         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
1799         * tree-ssa-copyrename.c: Removed.
1800         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
1801         -ftree-coalesce-vars.
1802         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
1803         * common.opt (ftree-copyrename): Ignore.
1804         (ftree-coalesce-inlined-vars): Likewise.
1805         * doc/invoke.texi: Remove the ignored options above.
1806         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
1807         * tree-ssa-coalesce.h: ... here.
1808         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
1809         headers required by it.
1810         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
1811         across variables when flag_tree_coalesce_vars.  Check register
1812         use and promoted modes to allow coalescing.  Moved to
1813         tree-ssa-coalesce.c.
1814         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
1815         with its member functions to tree-ssa-coalesce.c.
1816         (var_map_base_init): Likewise.  Renamed to
1817         compute_samebase_partition_bases.
1818         (partition_view_normal): Drop want_bases parameter.
1819         (partition_view_bitmap): Likewise.
1820         * tree-ssa-live.h: Adjust declarations.
1821         * tree-ssa-coalesce.c: Include explow.h.
1822         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
1823         default defs at the entry point.
1824         (dump_part_var_map): New.
1825         (compute_optimized_partition_bases): New, called by...
1826         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
1827         of compute_samebase_partition_bases.  Adjust.
1828         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
1829         * cfgexpand.c (leader_merge): New.
1830         (get_rtl_for_parm_ssa_default_def): New.
1831         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
1832         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
1833         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
1834         redundant MEM attr setting.
1835         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
1836         from...
1837         (expand_one_stack_var): ... this.  New wrapper to check and
1838         skip already expanded SSA partitions.
1839         (record_alignment_for_reg_var): New, factored out of...
1840         (expand_one_var): ... this.
1841         (expand_one_ssa_partition): New.
1842         (adjust_one_expanded_partition_var): New.
1843         (expand_one_register_var): Check and skip already expanded SSA
1844         partitions.
1845         (expand_used_vars): Don't create DECLs for anonymous SSA
1846         names.  Expand all SSA partitions, then adjust all SSA names.
1847         (pass::execute): Replace the loops that set
1848         SA.partition_to_pseudo from partition leaders and cleared
1849         DECL_RTL for multi-location variables, and that which used to
1850         rename vars and set attrs, with one that clears DECL_RTL and
1851         checks that PARMs and RESULTs default_defs match DECL_RTL.
1852         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
1853         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
1854         * explow.c (promote_ssa_mode): New.
1855         * explow.h (promote_ssa_mode): Declare.
1856         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
1857         * function.c: Include cfgexpand.h.
1858         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
1859         (use_register_for_parm_decl): Wrapper for the above to
1860         special-case the result_ptr.
1861         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
1862         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
1863         multiple locations.
1864         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
1865         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
1866         (assign_parm_setup_block): Prefer SSA-assigned location.
1867         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
1868         if stack_parm is NULL.
1869         (assign_parm_setup_stack): Prefer SSA-assigned location.
1870         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
1871         rtl before testing for pointer bounds.  Special-case result_ptr.
1872         (expand_function_start): Maybe reset DECL_RTL of result.
1873         Prefer SSA-assigned location for result and static chain.
1874         Factor out DECL_RESULT and SET_DECL_RTL.
1875         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
1876         anonymous SSA names.  Use promote_ssa_mode.
1877         (get_temp_reg): Likewise.
1878         (remove_ssa_form): Adjust.
1879         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
1880         and get its reg_usage for reg invalidation.
1881         (compute_bb_dataflow): Pass it insn.
1882         (emit_notes_in_bb): Likewise.
1883         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
1884         fail assert on conversion between unsigned types.
1886 2015-06-09  Tom de Vries  <tom@codesourcery.com>
1888         PR tree-optimization/65460
1889         * omp-low.c (expand_omp_target): Set parallelized_function on
1890         cgraph_node for child_fn.
1892 2015-06-09  Tom de Vries  <tom@codesourcery.com>
1894         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
1895         parallelized_function before add_new_function.
1897 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
1899         * gcc-plugin.h: Move decls to plugin.h and include it.
1900         * plugin.h: Relocate decls from gcc-plugin.h
1901         * ggc-page.c: Include required header files.
1902         * passes.c: Likewise.
1903         * cgraphunit.c: Likewise.
1905 2015-06-09  Tom de Vries  <tom@codesourcery.com>
1907         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
1909 2015-06-09  Jason Merrill  <jason@redhat.com>
1911         PR bootstrap/66448
1912         * toplev.c (check_global_declaration): Don't warn about a clone.
1914 2015-06-09  Marek Polacek  <polacek@redhat.com>
1916         PR tree-optimization/66299
1917         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
1918         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
1919         patterns.
1921 2015-06-09  Richard Biener  <rguenther@suse.de>
1923         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
1924         (vect_analyze_slp_instance): Instead do not falsely drop
1925         load permutations.
1927 2015-06-09  Richard Biener  <rguenther@suse.de>
1929         PR middle-end/66423
1930         * match.pd: Handle A % (unsigned)(1 << B).
1932 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
1934         * varasm.c (output_object_block_htab): Remove.
1935         (output_object_block_compare): New.
1936         (output_object_blocks): Sort named object_blocks before outputting
1937         them.
1939 2015-06-09  Richard Biener  <rguenther@suse.de>
1941         PR tree-optimization/66419
1942         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
1943         consider GROUP_GAP when detecting a perfect subchain.
1945 2015-06-09  Nick Clifton  <nickc@redhat.com>
1947         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
1948         place read only data in the .frodata section.
1950 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
1952         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
1953         (atomic_store<mode>): Likewise.
1955 2015-06-09  Richard Biener  <rguenther@suse.de>
1957         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
1959 2015-06-09  Richard Biener  <rguenther@suse.de>
1961         PR middle-end/66413
1962         * tree-inline.c (insert_init_debug_bind): Unshare value.
1964 2015-06-09  Richard Biener  <rguenther@suse.de>
1966         PR tree-optimization/66396
1967         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
1968         Rename virtual operands.
1970 2015-06-09  Tom de Vries  <tom@codesourcery.com>
1972         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
1973         always return false.
1975 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
1977         PR rtl-optimization/64164
1978         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
1979         * tree-ssa-copyrename.c: Removed.
1980         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
1981         -ftree-coalesce-vars.
1982         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
1983         * common.opt (ftree-copyrename): Ignore.
1984         (ftree-coalesce-inlined-vars): Likewise.
1985         * doc/invoke.texi: Remove the ignored options above.
1986         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
1987         * tree-ssa-coalesce.h: ... here.
1988         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
1989         headers required by it.
1990         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
1991         across variables when flag_tree_coalesce_vars.  Check register
1992         use and promoted modes to allow coalescing.  Moved to
1993         tree-ssa-coalesce.c.
1994         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
1995         with its member functions to tree-ssa-coalesce.c.
1996         (var_map_base_init): Likewise.  Renamed to
1997         compute_samebase_partition_bases.
1998         (partition_view_normal): Drop want_bases parameter.
1999         (partition_view_bitmap): Likewise.
2000         * tree-ssa-live.h: Adjust declarations.
2001         * tree-ssa-coalesce.c: Include explow.h.
2002         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
2003         default defs at the entry point.
2004         (dump_part_var_map): New.
2005         (compute_optimized_partition_bases): New, called by...
2006         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
2007         of compute_samebase_partition_bases.  Adjust.
2008         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
2009         * cfgexpand.c (leader_merge): New.
2010         (get_rtl_for_parm_ssa_default_def): New.
2011         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
2012         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
2013         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
2014         redundant MEM attr setting.
2015         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
2016         from...
2017         (expand_one_stack_var): ... this.  New wrapper to check and
2018         skip already expanded SSA partitions.
2019         (record_alignment_for_reg_var): New, factored out of...
2020         (expand_one_var): ... this.
2021         (expand_one_ssa_partition): New.
2022         (adjust_one_expanded_partition_var): New.
2023         (expand_one_register_var): Check and skip already expanded SSA
2024         partitions.
2025         (expand_used_vars): Don't create DECLs for anonymous SSA
2026         names.  Expand all SSA partitions, then adjust all SSA names.
2027         (pass::execute): Replace the loops that set
2028         SA.partition_to_pseudo from partition leaders and cleared
2029         DECL_RTL for multi-location variables, and that which used to
2030         rename vars and set attrs, with one that clears DECL_RTL and
2031         checks that PARMs and RESULTs default_defs match DECL_RTL.
2032         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
2033         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
2034         * explow.c (promote_ssa_mode): New.
2035         * explow.h (promote_ssa_mode): Declare.
2036         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
2037         * function.c: Include cfgexpand.h.
2038         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
2039         (use_register_for_parm_decl): Wrapper for the above to
2040         special-case the result_ptr.
2041         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
2042         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
2043         multiple locations.
2044         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
2045         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
2046         (assign_parm_setup_block): Prefer SSA-assigned location.
2047         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
2048         if stack_parm is NULL.
2049         (assign_parm_setup_stack): Prefer SSA-assigned location.
2050         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
2051         rtl before testing for pointer bounds.  Special-case result_ptr.
2052         (expand_function_start): Maybe reset DECL_RTL of result.
2053         Prefer SSA-assigned location for result and static chain.
2054         Factor out DECL_RESULT and SET_DECL_RTL.
2055         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
2056         anonymous SSA names.  Use promote_ssa_mode.
2057         (get_temp_reg): Likewise.
2058         (remove_ssa_form): Adjust.
2059         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
2060         and get its reg_usage for reg invalidation.
2061         (compute_bb_dataflow): Pass it insn.
2062         (emit_notes_in_bb): Likewise.
2063         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
2064         fail assert on conversion between unsigned types.
2066 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
2068         PR debug/58315
2069         * tree-inline.c (reset_debug_binding): New.
2070         (reset_debug_bindings): Likewise.
2071         (expand_call_inline): Call it.
2073 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
2075         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
2076         TYPE_STRING_FLAG.
2078 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
2080         * lto-streamer-out.c (lto_output_location): Stream
2081         reserved locations correctly.
2082         * lto-streamer-in.c (lto_output_location): Likewise.
2084 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
2086         * coretypes.h: Include hash-table.h and hash-set.h for host files.
2087         * ggc.h: Don't include statistics.h>
2088         * hash-map.h: Remove all includes.
2089         * hash-set.h: Likewise.
2090         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
2091         the include list. Remove <new>.
2092         * inchash.h: Remove all includes.
2093         * mem-stats.h: Likewise.
2094         * vec.h: No special processing for generators or ggc.  
2095         * alias.c : Adjust include files.
2096         * alloc-pool.c : Likewise.
2097         * alloc-pool.h : Likewise.
2098         * asan.c : Likewise.
2099         * attribs.c : Likewise.
2100         * auto-inc-dec.c : Likewise.
2101         * auto-profile.c : Likewise.
2102         * bb-reorder.c : Likewise.
2103         * bitmap.c : Likewise.
2104         * bitmap.h : Likewise.
2105         * bt-load.c : Likewise.
2106         * builtins.c : Likewise.
2107         * caller-save.c : Likewise.
2108         * calls.c : Likewise.
2109         * ccmp.c : Likewise.
2110         * cfg.c : Likewise.
2111         * cfganal.c : Likewise.
2112         * cfgbuild.c : Likewise.
2113         * cfgcleanup.c : Likewise.
2114         * cfgexpand.c : Likewise.
2115         * cfghooks.c : Likewise.
2116         * cfgloop.c : Likewise.
2117         * cfgloop.h : Likewise.
2118         * cfgloopanal.c : Likewise.
2119         * cfgloopmanip.c : Likewise.
2120         * cfgrtl.c : Likewise.
2121         * cgraph.c : Likewise.
2122         * cgraphbuild.c : Likewise.
2123         * cgraphclones.c : Likewise.
2124         * cgraphunit.c : Likewise.
2125         * cilk-common.c : Likewise.
2126         * combine-stack-adj.c : Likewise.
2127         * combine.c : Likewise.
2128         * compare-elim.c : Likewise.
2129         * context.c : Likewise.
2130         * convert.c : Likewise.
2131         * coverage.c : Likewise.
2132         * cppbuiltin.c : Likewise.
2133         * cprop.c : Likewise.
2134         * cse.c : Likewise.
2135         * cselib.c : Likewise.
2136         * data-streamer-in.c : Likewise.
2137         * data-streamer-out.c : Likewise.
2138         * data-streamer.c : Likewise.
2139         * data-streamer.h : Likewise.
2140         * dbxout.c : Likewise.
2141         * dce.c : Likewise.
2142         * ddg.c : Likewise.
2143         * debug.c : Likewise.
2144         * df-core.c : Likewise.
2145         * df-problems.c : Likewise.
2146         * df-scan.c : Likewise.
2147         * df.h : Likewise.
2148         * dfp.c : Likewise.
2149         * dojump.c : Likewise.
2150         * dominance.c : Likewise.
2151         * domwalk.c : Likewise.
2152         * double-int.c : Likewise.
2153         * dse.c : Likewise.
2154         * dumpfile.c : Likewise.
2155         * dwarf2asm.c : Likewise.
2156         * dwarf2cfi.c : Likewise.
2157         * dwarf2out.c : Likewise.
2158         * emit-rtl.c : Likewise.
2159         * et-forest.c : Likewise.
2160         * except.c : Likewise.
2161         * except.h : Likewise.
2162         * explow.c : Likewise.
2163         * expmed.c : Likewise.
2164         * expr.c : Likewise.
2165         * final.c : Likewise.
2166         * fixed-value.c : Likewise.
2167         * fold-const.c : Likewise.
2168         * function.c : Likewise.
2169         * fwprop.c : Likewise.
2170         * gcc-plugin.h : Likewise.
2171         * gcc.c : Likewise.
2172         * gcse-common.c : Likewise.
2173         * gcse.c : Likewise.
2174         * genattrtab.c : Likewise.
2175         * genautomata.c : Likewise.
2176         * genconditions.c : Likewise.
2177         * genemit.c : Likewise.
2178         * generic-match-head.c : Likewise.
2179         * genextract.c : Likewise.
2180         * gengtype-state.c : Likewise.
2181         * gengtype.c : Likewise.
2182         * genhooks.c : Likewise.
2183         * genmatch.c : Likewise.
2184         * genmodes.c : Likewise.
2185         * genrecog.c : Likewise.
2186         * gensupport.c : Likewise.
2187         * ggc-common.c : Likewise.
2188         * ggc-internal.h : Likewise.
2189         * ggc-none.c : Likewise.
2190         * ggc-page.c : Likewise.
2191         * gimple-builder.c : Likewise.
2192         * gimple-expr.c : Likewise.
2193         * gimple-fold.c : Likewise.
2194         * gimple-iterator.c : Likewise.
2195         * gimple-low.c : Likewise.
2196         * gimple-match-head.c : Likewise.
2197         * gimple-pretty-print.c : Likewise.
2198         * gimple-ssa-isolate-paths.c : Likewise.
2199         * gimple-ssa-strength-reduction.c : Likewise.
2200         * gimple-ssa.h : Likewise.
2201         * gimple-streamer-in.c : Likewise.
2202         * gimple-streamer-out.c : Likewise.
2203         * gimple-streamer.h : Likewise.
2204         * gimple-walk.c : Likewise.
2205         * gimple.c : Likewise.
2206         * gimplify-me.c : Likewise.
2207         * gimplify.c : Likewise.
2208         * godump.c : Likewise.
2209         * graph.c : Likewise.
2210         * graphds.c : Likewise.
2211         * graphite-blocking.c : Likewise.
2212         * graphite-dependences.c : Likewise.
2213         * graphite-interchange.c : Likewise.
2214         * graphite-isl-ast-to-gimple.c : Likewise.
2215         * graphite-optimize-isl.c : Likewise.
2216         * graphite-poly.c : Likewise.
2217         * graphite-scop-detection.c : Likewise.
2218         * graphite-sese-to-poly.c : Likewise.
2219         * graphite.c : Likewise.
2220         * haifa-sched.c : Likewise.
2221         * hard-reg-set.h : Likewise.
2222         * hw-doloop.c : Likewise.
2223         * ifcvt.c : Likewise.
2224         * inchash.c : Likewise.
2225         * incpath.c : Likewise.
2226         * init-regs.c : Likewise.
2227         * input.c : Likewise.
2228         * internal-fn.c : Likewise.
2229         * ipa-chkp.c : Likewise.
2230         * ipa-comdats.c : Likewise.
2231         * ipa-cp.c : Likewise.
2232         * ipa-devirt.c : Likewise.
2233         * ipa-icf-gimple.c : Likewise.
2234         * ipa-icf.c : Likewise.
2235         * ipa-inline-analysis.c : Likewise.
2236         * ipa-inline-transform.c : Likewise.
2237         * ipa-inline.c : Likewise.
2238         * ipa-polymorphic-call.c : Likewise.
2239         * ipa-profile.c : Likewise.
2240         * ipa-prop.c : Likewise.
2241         * ipa-pure-const.c : Likewise.
2242         * ipa-ref.c : Likewise.
2243         * ipa-reference.c : Likewise.
2244         * ipa-split.c : Likewise.
2245         * ipa-utils.c : Likewise.
2246         * ipa-visibility.c : Likewise.
2247         * ipa.c : Likewise.
2248         * ira-build.c : Likewise.
2249         * ira-color.c : Likewise.
2250         * ira-conflicts.c : Likewise.
2251         * ira-costs.c : Likewise.
2252         * ira-emit.c : Likewise.
2253         * ira-lives.c : Likewise.
2254         * ira.c : Likewise.
2255         * jump.c : Likewise.
2256         * langhooks.c : Likewise.
2257         * lcm.c : Likewise.
2258         * libfuncs.h : Likewise.
2259         * lists.c : Likewise.
2260         * loop-doloop.c : Likewise.
2261         * loop-init.c : Likewise.
2262         * loop-invariant.c : Likewise.
2263         * loop-iv.c : Likewise.
2264         * loop-unroll.c : Likewise.
2265         * lower-subreg.c : Likewise.
2266         * lra-assigns.c : Likewise.
2267         * lra-coalesce.c : Likewise.
2268         * lra-constraints.c : Likewise.
2269         * lra-eliminations.c : Likewise.
2270         * lra-lives.c : Likewise.
2271         * lra-remat.c : Likewise.
2272         * lra-spills.c : Likewise.
2273         * lra.c : Likewise.
2274         * lto-cgraph.c : Likewise.
2275         * lto-compress.c : Likewise.
2276         * lto-opts.c : Likewise.
2277         * lto-section-in.c : Likewise.
2278         * lto-section-out.c : Likewise.
2279         * lto-streamer-in.c : Likewise.
2280         * lto-streamer-out.c : Likewise.
2281         * lto-streamer.c : Likewise.
2282         * lto-streamer.h : Likewise.
2283         * mcf.c : Likewise.
2284         * mode-switching.c : Likewise.
2285         * modulo-sched.c : Likewise.
2286         * omega.c : Likewise.
2287         * omp-low.c : Likewise.
2288         * optabs.c : Likewise.
2289         * opts-global.c : Likewise.
2290         * opts.h : Likewise.
2291         * passes.c : Likewise.
2292         * plugin.c : Likewise.
2293         * postreload-gcse.c : Likewise.
2294         * postreload.c : Likewise.
2295         * predict.c : Likewise.
2296         * print-rtl.c : Likewise.
2297         * print-tree.c : Likewise.
2298         * profile.c : Likewise.
2299         * read-md.c : Likewise.
2300         * read-md.h : Likewise.
2301         * read-rtl.c : Likewise.
2302         * real.c : Likewise.
2303         * realmpfr.c : Likewise.
2304         * recog.c : Likewise.
2305         * ree.c : Likewise.
2306         * reg-stack.c : Likewise.
2307         * regcprop.c : Likewise.
2308         * reginfo.c : Likewise.
2309         * regrename.c : Likewise.
2310         * regstat.c : Likewise.
2311         * reload.c : Likewise.
2312         * reload1.c : Likewise.
2313         * reorg.c : Likewise.
2314         * resource.c : Likewise.
2315         * rtl-chkp.c : Likewise.
2316         * rtl.c : Likewise.
2317         * rtl.h : Likewise.
2318         * rtlanal.c : Likewise.
2319         * rtlhash.c : Likewise.
2320         * rtlhash.h : Likewise.
2321         * rtlhooks.c : Likewise.
2322         * sanopt.c : Likewise.
2323         * sched-deps.c : Likewise.
2324         * sched-ebb.c : Likewise.
2325         * sched-rgn.c : Likewise.
2326         * sched-vis.c : Likewise.
2327         * sdbout.c : Likewise.
2328         * sel-sched-dump.c : Likewise.
2329         * sel-sched-ir.c : Likewise.
2330         * sel-sched-ir.h : Likewise.
2331         * sel-sched.c : Likewise.
2332         * sese.c : Likewise.
2333         * shrink-wrap.c : Likewise.
2334         * shrink-wrap.h : Likewise.
2335         * simplify-rtx.c : Likewise.
2336         * stack-ptr-mod.c : Likewise.
2337         * statistics.c : Likewise.
2338         * stmt.c : Likewise.
2339         * stor-layout.c : Likewise.
2340         * store-motion.c : Likewise.
2341         * stringpool.c : Likewise.
2342         * symtab.c : Likewise.
2343         * target-globals.c : Likewise.
2344         * targhooks.c : Likewise.
2345         * tlink.c : Likewise.
2346         * toplev.c : Likewise.
2347         * tracer.c : Likewise.
2348         * trans-mem.c : Likewise.
2349         * tree-affine.c : Likewise.
2350         * tree-affine.h : Likewise.
2351         * tree-browser.c : Likewise.
2352         * tree-call-cdce.c : Likewise.
2353         * tree-cfg.c : Likewise.
2354         * tree-cfgcleanup.c : Likewise.
2355         * tree-chkp-opt.c : Likewise.
2356         * tree-chkp.c : Likewise.
2357         * tree-chrec.c : Likewise.
2358         * tree-complex.c : Likewise.
2359         * tree-data-ref.c : Likewise.
2360         * tree-dfa.c : Likewise.
2361         * tree-diagnostic.c : Likewise.
2362         * tree-dump.c : Likewise.
2363         * tree-eh.c : Likewise.
2364         * tree-eh.h : Likewise.
2365         * tree-emutls.c : Likewise.
2366         * tree-hasher.h : Likewise.
2367         * tree-if-conv.c : Likewise.
2368         * tree-inline.c : Likewise.
2369         * tree-inline.h : Likewise.
2370         * tree-into-ssa.c : Likewise.
2371         * tree-iterator.c : Likewise.
2372         * tree-loop-distribution.c : Likewise.
2373         * tree-nested.c : Likewise.
2374         * tree-nrv.c : Likewise.
2375         * tree-object-size.c : Likewise.
2376         * tree-outof-ssa.c : Likewise.
2377         * tree-parloops.c : Likewise.
2378         * tree-phinodes.c : Likewise.
2379         * tree-predcom.c : Likewise.
2380         * tree-pretty-print.c : Likewise.
2381         * tree-profile.c : Likewise.
2382         * tree-scalar-evolution.c : Likewise.
2383         * tree-sra.c : Likewise.
2384         * tree-ssa-address.c : Likewise.
2385         * tree-ssa-alias.c : Likewise.
2386         * tree-ssa-ccp.c : Likewise.
2387         * tree-ssa-coalesce.c : Likewise.
2388         * tree-ssa-copy.c : Likewise.
2389         * tree-ssa-copyrename.c : Likewise.
2390         * tree-ssa-dce.c : Likewise.
2391         * tree-ssa-dom.c : Likewise.
2392         * tree-ssa-dse.c : Likewise.
2393         * tree-ssa-forwprop.c : Likewise.
2394         * tree-ssa-ifcombine.c : Likewise.
2395         * tree-ssa-live.c : Likewise.
2396         * tree-ssa-loop-ch.c : Likewise.
2397         * tree-ssa-loop-im.c : Likewise.
2398         * tree-ssa-loop-ivcanon.c : Likewise.
2399         * tree-ssa-loop-ivopts.c : Likewise.
2400         * tree-ssa-loop-manip.c : Likewise.
2401         * tree-ssa-loop-niter.c : Likewise.
2402         * tree-ssa-loop-prefetch.c : Likewise.
2403         * tree-ssa-loop-unswitch.c : Likewise.
2404         * tree-ssa-loop.c : Likewise.
2405         * tree-ssa-math-opts.c : Likewise.
2406         * tree-ssa-operands.c : Likewise.
2407         * tree-ssa-phiopt.c : Likewise.
2408         * tree-ssa-phiprop.c : Likewise.
2409         * tree-ssa-pre.c : Likewise.
2410         * tree-ssa-propagate.c : Likewise.
2411         * tree-ssa-reassoc.c : Likewise.
2412         * tree-ssa-sccvn.c : Likewise.
2413         * tree-ssa-scopedtables.c : Likewise.
2414         * tree-ssa-sink.c : Likewise.
2415         * tree-ssa-strlen.c : Likewise.
2416         * tree-ssa-structalias.c : Likewise.
2417         * tree-ssa-tail-merge.c : Likewise.
2418         * tree-ssa-ter.c : Likewise.
2419         * tree-ssa-threadedge.c : Likewise.
2420         * tree-ssa-threadupdate.c : Likewise.
2421         * tree-ssa-uncprop.c : Likewise.
2422         * tree-ssa-uninit.c : Likewise.
2423         * tree-ssa.c : Likewise.
2424         * tree-ssanames.c : Likewise.
2425         * tree-stdarg.c : Likewise.
2426         * tree-streamer-in.c : Likewise.
2427         * tree-streamer-out.c : Likewise.
2428         * tree-streamer.c : Likewise.
2429         * tree-streamer.h : Likewise.
2430         * tree-switch-conversion.c : Likewise.
2431         * tree-tailcall.c : Likewise.
2432         * tree-vect-data-refs.c : Likewise.
2433         * tree-vect-generic.c : Likewise.
2434         * tree-vect-loop-manip.c : Likewise.
2435         * tree-vect-loop.c : Likewise.
2436         * tree-vect-patterns.c : Likewise.
2437         * tree-vect-slp.c : Likewise.
2438         * tree-vect-stmts.c : Likewise.
2439         * tree-vectorizer.c : Likewise.
2440         * tree-vectorizer.h : Likewise.
2441         * tree-vrp.c : Likewise.
2442         * tree.c : Likewise.
2443         * tsan.c : Likewise.
2444         * ubsan.c : Likewise.
2445         * valtrack.c : Likewise.
2446         * valtrack.h : Likewise.
2447         * value-prof.c : Likewise.
2448         * var-tracking.c : Likewise.
2449         * varasm.c : Likewise.
2450         * varpool.c : Likewise.
2451         * vec.c: Likewise.
2452         * vmsdbgout.c : Likewise.
2453         * vtable-verify.c : Likewise.
2454         * vtable-verify.h : Likewise.
2455         * web.c : Likewise.
2456         * wide-int.cc : Likewise.
2457         * xcoffout.c : Likewise.
2458         * config/aarch64/aarch64-builtins.c : Likewise.
2459         * config/aarch64/aarch64.c : Likewise.
2460         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
2461         * config/alpha/alpha.c : Likewise.
2462         * config/arc/arc.c : Likewise.
2463         * config/arm/aarch-common.c : Likewise.
2464         * config/arm/arm-builtins.c : Likewise.
2465         * config/arm/arm-c.c : Likewise.
2466         * config/arm/arm.c : Likewise.
2467         * config/avr/avr-c.c : Likewise.
2468         * config/avr/avr-log.c : Likewise.
2469         * config/avr/avr.c : Likewise.
2470         * config/bfin/bfin.c : Likewise.
2471         * config/c6x/c6x.c : Likewise.
2472         * config/cr16/cr16.c : Likewise.
2473         * config/cris/cris.c : Likewise.
2474         * config/darwin-c.c : Likewise.
2475         * config/darwin.c : Likewise.
2476         * config/default-c.c : Likewise.
2477         * config/epiphany/epiphany.c : Likewise.
2478         * config/epiphany/mode-switch-use.c : Likewise.
2479         * config/epiphany/resolve-sw-modes.c : Likewise.
2480         * config/fr30/fr30.c : Likewise.
2481         * config/frv/frv.c : Likewise.
2482         * config/ft32/ft32.c : Likewise.
2483         * config/glibc-c.c : Likewise.
2484         * config/h8300/h8300.c : Likewise.
2485         * config/i386/i386-c.c : Likewise.
2486         * config/i386/i386.c : Likewise.
2487         * config/i386/msformat-c.c : Likewise.
2488         * config/i386/winnt-cxx.c : Likewise.
2489         * config/i386/winnt-stubs.c : Likewise.
2490         * config/i386/winnt.c : Likewise.
2491         * config/ia64/ia64-c.c : Likewise.
2492         * config/ia64/ia64.c : Likewise.
2493         * config/iq2000/iq2000.c : Likewise.
2494         * config/lm32/lm32.c : Likewise.
2495         * config/m32c/m32c-pragma.c : Likewise.
2496         * config/m32c/m32c.c : Likewise.
2497         * config/m32r/m32r.c : Likewise.
2498         * config/m68k/m68k.c : Likewise.
2499         * config/mcore/mcore.c : Likewise.
2500         * config/mep/mep-pragma.c : Likewise.
2501         * config/mep/mep.c : Likewise.
2502         * config/microblaze/microblaze-c.c : Likewise.
2503         * config/microblaze/microblaze.c : Likewise.
2504         * config/mips/mips.c : Likewise.
2505         * config/mmix/mmix.c : Likewise.
2506         * config/mn10300/mn10300.c : Likewise.
2507         * config/moxie/moxie.c : Likewise.
2508         * config/msp430/msp430-c.c : Likewise.
2509         * config/msp430/msp430.c : Likewise.
2510         * config/nds32/nds32-cost.c : Likewise.
2511         * config/nds32/nds32-fp-as-gp.c : Likewise.
2512         * config/nds32/nds32-intrinsic.c : Likewise.
2513         * config/nds32/nds32-isr.c : Likewise.
2514         * config/nds32/nds32-md-auxiliary.c : Likewise.
2515         * config/nds32/nds32-memory-manipulation.c : Likewise.
2516         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
2517         * config/nds32/nds32-predicates.c : Likewise.
2518         * config/nds32/nds32.c : Likewise.
2519         * config/nios2/nios2.c : Likewise.
2520         * config/nvptx/nvptx.c : Likewise.
2521         * config/pa/pa.c : Likewise.
2522         * config/pdp11/pdp11.c : Likewise.
2523         * config/rl78/rl78-c.c : Likewise.
2524         * config/rl78/rl78.c : Likewise.
2525         * config/rs6000/rs6000-c.c : Likewise.
2526         * config/rs6000/rs6000.c : Likewise.
2527         * config/rx/rx.c : Likewise.
2528         * config/s390/s390-c.c : Likewise.
2529         * config/s390/s390.c : Likewise.
2530         * config/sh/sh-c.c : Likewise.
2531         * config/sh/sh-mem.cc : Likewise.
2532         * config/sh/sh.c : Likewise.
2533         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
2534         * config/sh/sh_treg_combine.cc : Likewise.
2535         * config/sol2-c.c : Likewise.
2536         * config/sol2-cxx.c : Likewise.
2537         * config/sol2-stubs.c : Likewise.
2538         * config/sol2.c : Likewise.
2539         * config/sparc/sparc-c.c : Likewise.
2540         * config/sparc/sparc.c : Likewise.
2541         * config/spu/spu-c.c : Likewise.
2542         * config/spu/spu.c : Likewise.
2543         * config/stormy16/stormy16.c : Likewise.
2544         * config/tilegx/mul-tables.c : Likewise.
2545         * config/tilegx/tilegx-c.c : Likewise.
2546         * config/tilegx/tilegx.c : Likewise.
2547         * config/tilepro/mul-tables.c : Likewise.
2548         * config/tilepro/tilepro-c.c : Likewise.
2549         * config/tilepro/tilepro.c : Likewise.
2550         * config/v850/v850-c.c : Likewise.
2551         * config/v850/v850.c : Likewise.
2552         * config/vax/vax.c : Likewise.
2553         * config/visium/visium.c : Likewise.
2554         * config/vms/vms-c.c : Likewise.
2555         * config/vms/vms.c : Likewise.
2556         * config/vxworks.c : Likewise.
2557         * config/winnt-c.c : Likewise.
2558         * config/xtensa/xtensa.c : Likewise.
2560 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
2562         PR lto/65378
2563         * ipa-utils.h (warn_types_mismatch): Update prototype.
2564         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
2565         parameters.
2566         (type_mismatch_p): New function.
2567         (warn_types_mismatch): Reorg to work better on non-C++ types.
2568         (odr_types_equivalent_p): Add loc1/loc2 parameters.
2569         (add_type_duplicate): Update.
2571 2015-06-08  Tom de Vries  <tom@codesourcery.com>
2573         PR rtl-optimization/66444
2574         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
2575         call_used_regs.
2577 2015-06-08  Richard Biener  <rguenther@suse.de>
2579         PR tree-optimization/66422
2580         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
2581         block after inserted gcc_unreachable.
2583 2015-06-08  Nick Clifton  <nickc@redhat.com>
2585         * config/rx/rx.c (rx_function_value): Do not promote vector types.
2586         (rx_promote_function_mode): Likewise.
2587         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
2589 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
2591         * genattrtab.c (insn_alternatives): Change type from int *
2592         to uint64_t *.
2593         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
2594         (get_attr_value): Change type of num_alt to uint64_t.
2595         (compute_alternative_mask): Change return type from
2596         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
2597         (make_alternative_compare, mk_attr_alt): Change argument type
2598         from int to uint64_t.
2599         (simplify_test_exp): Change type of i from int to uint64_t.
2600         Shift ((uint64_t) 1) instead of 1 up.
2601         (main): Adjust oballocvec first argument from int to uint64_t.
2602         Shift ((uint64_t) 1) instead of 1 up.
2604 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
2606         PR other/65366
2607         * gdbhooks.py: Import sys.
2608         (intptr): New function.  Replace int(...) by intptr(...).
2610 2015-06-08  Richard Biener  <rguenther@suse.de>
2612         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
2613         adjustment for gaps at the end of a SLP load group properly.
2614         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
2615         all permutations we can generate.
2616         (vect_transform_slp_perm_load): Use the correct group-size.
2618 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
2620         * genmatch.c (expr::gen_transform): For conditions, guess the type
2621         from the second operand.
2623 2015-06-08  Tom de Vries  <tom@codesourcery.com>
2625         PR tree-optimization/66442
2626         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
2627         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
2628         if the loop latch is not a singleton.  Use
2629         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
2631 2015-06-08  Marek Polacek  <polacek@redhat.com>
2633         PR sanitizer/66452
2634         * toplev.c (check_global_declaration): Don't warn about artificial
2635         decls.
2637 2015-06-08  Tom de Vries  <tom@codesourcery.com>
2639         PR tree-optimization/66436
2640         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
2641         dump file.
2642         * gimplify.c: Add tree-dump.h include.
2643         (gimplify_function_tree): Dump function to gimple dump file.
2644         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
2645         dump file.
2647 2015-06-08  Tom de Vries  <tom@codesourcery.com>
2649         PR tree-optimization/66435
2650         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
2651         function.
2653 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
2655         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
2656         of ptr_type_node to not be ptr_to_node.
2657         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
2658         TREE_TYPE of pointers.
2659         * gimple-expr.c (useless_type_conversion): Reorder the check for
2660         function pointers and TYPE_CANONICAL.
2662 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
2664         PR bootstrap/66319
2665         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
2666         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
2667         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
2668         later.
2669         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
2670         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
2671         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
2672         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
2673         and non iso if unix2003.
2675 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
2677         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
2679 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
2681         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
2682         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
2683         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
2684         except.c, final.c, function.c, gcse-common.c, genemit.c,
2685         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
2686         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
2687         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
2688         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
2689         more derived ones.
2691 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
2693         * combine.c (combine_split_insns): Remove cast.
2694         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
2695         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
2696         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
2697         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
2698         * genemit.c (gen_split): Change return type of generated functions to
2699         rtx_insn.
2700         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
2701         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
2702         gen_peephole2_* functions.
2703         (print_subroutine, main): Likewise.
2704         * recog.c (peephole2_optimize): Remove cast.
2705         (peep2_next_insn): Promote return type to rtx_insn.
2706         * recog.h (peep2_next_insn): Fix prototype.
2707         * rtl.h (try_split, split_insns): Likewise.
2709 2015-06-06  DJ Delorie  <dj@redhat.com>
2711         * config/msp430/msp430.c (msp430_asm_integer): Support addition
2712         and subtraction too.
2714 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
2716         PR target/66410
2717         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
2718         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
2719         instead of Snd.  Disparage Sid/z alternative with '^'.
2721 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
2723         * dwarf2out.c: Remove deferred_locations*.
2724         (dwarf2_debug_hooks): Add early_finish hook.
2725         Remove global_decl hook.
2726         Add early_global_decl and late_global_decl hook.
2727         New global early_dwarf.
2728         New structure set_early_dwarf.
2729         (output_die): Indicate whether a DIE was generated early
2730         when generating assembly with -dA.
2731         (struct limbo_die_struct): Document created_for field.
2732         Remove file_table_last_lookup.
2733         (remove_AT): Return TRUE if successful.
2734         (remove_child_TAG): Clear die_parent.
2735         (reparent_child): New function abstracted from...
2736         (splice_child_die): ...here.
2737         (new_die): ICE if a DIE ends up in limbo too late.
2738         (check_die): New.
2739         (defer_location): Remove.
2740         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
2741         (fill_variable_array_bounds): New.
2742         (decl_start_label): Call fill_variable_array_bounds.
2743         (gen_formal_parameter_die): Rewrite to reuse previously generated
2744         DIEs.
2745         (gen_subprogram_die): Same.
2746         (gen_variable_die): Same.
2747         (gen_const_die): Same.
2748         (gen_label_die): Same.
2749         (gen_lexical_block_die): Same.
2750         (decl_will_get_specification_p): New.
2751         (local_function_static): New.
2752         (gen_struct_or_union_type_die): Fill in variable-length fields.
2753         (gen_typedef_die): Fill in variable-length typedefs.
2754         (gen_tagged_type_die): Gracefully return on error_mark_node.
2755         Handle re-entrancy.
2756         (gen_type_die_with_usage): Handle variable-length types.
2757         Remove duplicate code for ARRAY_TYPE case.
2758         (process_scope_var): Only process imported modules during early
2759         dwarf.
2760         (dwarf2out_early_global_decl): New.
2761         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
2762         (dwarf2out_type_decl): Set early_dwarf while calling
2763         dwarf2out_decl.
2764         (dwarf2out_decl): Verify that we did not recreate a previously
2765         generated DIE.
2766         Do not return on DECL_EXTERNALs in VAR_DECLs.
2767         Abstract some code to local_function_static.
2768         (lookup_filename): Remove use of file_table_last_lookup.
2769         Gracefully exit on missing file_name.
2770         (dwarf2out_finish): Verify limbo list.
2771         Remove deferred_locations_list use.
2772         Move deferred_asm_name and limbo flushing to...
2773         (dwarf2out_early_finish): ...here.  New.
2774         (dwarf2out_c_finalize): Remove set of deferred_location_list,
2775         deferred_asm_name, and file_table_last_lookup.
2776         * cgraph.h (referred_to_p): Add default argument.
2777         * cgraphunit.c (referred_to_p): Add and handle include_self
2778         argument.
2779         (analyze_functions): Add first_time argument.
2780         Call check_global_declaration for all symbols.
2781         Call late_global_decl for nodes for moribund nodes.
2782         (finalize_compilation_unit): Add new argument to
2783         analyze_functions.
2784         Call early_global_decl for functions.
2785         Call early_finish debug hook.
2786         * dbxout.c (dbxout_early_global_decl): New.
2787         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
2788         (dbx_debug_hooks): Add new hooks.
2789         (xcoff_debug_hooks): Same.
2790         * debug.c (do_nothing_debug_hooks): Add early_finish field.
2791         Add early and late debug hooks.
2792         Remove global_decl hook.
2793         * debug.h (struct gcc_debug_hooks): Add early_finish,
2794         early_global_decl, and late_global_decl fields.
2795         Remove global_decl field.
2796         Document gcc_debug_hooks.
2797         * gengtype.c (output_typename): Remove.
2798         * godump.c (go_early_global_decl): New.
2799         (go_late_global_decl): New.
2800         (go_global_decl): Remove.
2801         (dump_go_spec_init): Remove global_decl.  Add
2802         {early,late}_global_decl.
2803         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
2804         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
2805         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
2806         (write_global_declarations): Remove.
2807         (global_decl_processing): New.
2808         * langhooks.h (struct lang_hooks_for_decls): Remove
2809         final_write_globals field.
2810         Add post_compilation_parsing_cleanups field.
2811         * passes.c (rest_of_decl_compilation): Call early_global_decl.
2812         * sdbout.c: Add early and late_global_decl hooks.  Remove
2813         sdbout_global_decl hook.
2814         Add early_finish field for sdb_debug_hooks.
2815         (sdbout_global_decl): Remove.
2816         (sdbout_early_global_decl): New.
2817         (sdbout_late_global_decl): New.
2818         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
2819         * toplev.c (check_global_declaration): Rename from
2820         check_global_declaration_1.
2821         Adapt to use symtab infrastructure.
2822         (check_global_declarations): Remove.
2823         (emit_debug_global_declarations): Remove.
2824         (compile_file): Remove call to final_write_globals langhook.
2825         Run the actual compilation process.
2826         Perform any post compilation parser cleanups.
2827         Generate late debug info.
2828         * toplev.h (check_global_declaration): New.
2829         (check_global_declaration_1): Remove.
2830         (check_global_declarations): Remove.
2831         (write_global_declarations): Remove.
2832         (emit_debug_global_declarations): Remove.
2833         (global_decl_processing): New.
2834         * tree-core.h (struct tree_block): Add DIE field.
2835         * tree.h (BLOCK_DIE): New.
2836         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
2837         throughout.
2838         (vmsdbgout_early_global_decl): New.
2839         (vmsdbgout_late_global_decl): New.
2840         Add early_finish debug hook field to vmsdbg_debug_hooks.
2841         Remove vmsdbgout_decl to vmsdbgout_function_decl.
2842         Add early and late_global_decl debug hooks.
2844 2015-06-05  Julian Brown  <julian@codesourcery.com>
2845             Sandra Loosemore  <sandra@codesourcery.com>
2847         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
2848         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
2849         to print-sysroot-suffix.sh script.
2851 2015-06-05  Tom de Vries  <tom@codesourcery.com>
2853         merge from gomp4 branch:
2854         2015-05-28  Tom de Vries  <tom@codesourcery.com>
2856         PR tree-optimization/65443
2857         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
2858         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
2859         (try_transform_to_exit_first_loop_alt): New function.
2860         (transform_to_exit_first_loop): Use
2861         try_transform_to_exit_first_loop_alt.
2863 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
2865         * builtins.c (expand_builtin_atomic_compare_exchange): Call
2866         emit_cmp_and_jump_insns with the mode of target.
2868 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
2870         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
2872 2015-06-04  DJ Delorie  <dj@redhat.com>
2874         * config/msp430/msp430.md (movsi_s): New.  Special case for
2875         storing a 20-bit symbol into a 32-bit register.
2876         * config/msp430/msp430.c (msp430_subreg): Add support for it.
2877         * config/msp430/predicates.md (msp430_symbol_operand): New.
2879 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
2881         * c-family/c-common.c (noplt): New attribute.
2882         (handle_noplt_attribute): New handler.
2883         * calls.c (prepare_call_address): Check for noplt
2884         attribute.
2885         * config/i386/i386.c (ix86_expand_call): Check
2886         for noplt attribute.
2887         (ix86_nopic_noplt_attribute_p): New function.
2888         (ix86_output_call_insn): Output indirect call for non-pic
2889         no plt calls.
2890         * doc/extend.texi (noplt): Document new attribute.
2891         * doc/invoke.texi: Document new attribute.
2893 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
2895         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
2896         real.h, and fixed-value.h when included in host source files.
2897         * double-int.h: Remove redundant #includes listed above.
2898         * fixed-value.h: Likewise.
2899         * real.h: Likewise.
2900         * wide-int.h: Likewise.
2901         * inchash.h: Likewise.
2902         * rtl.h: Add some include files When included from a generator file.
2903         * target.h: Remove wide-int.h and insn-modes.h from the include list.
2904         * internal-fn.h: Don't include coretypes.h.
2905         * alias.c: Adjust includes for restructured coretypes.h.
2906         * asan.c: Likewise.
2907         * attribs.c: Likewise.
2908         * auto-inc-dec.c: Likewise.
2909         * auto-profile.c: Likewise.
2910         * bb-reorder.c: Likewise.
2911         * bt-load.c: Likewise.
2912         * builtins.c: Likewise.
2913         * caller-save.c: Likewise.
2914         * calls.c: Likewise.
2915         * ccmp.c: Likewise.
2916         * cfg.c: Likewise.
2917         * cfganal.c: Likewise.
2918         * cfgbuild.c: Likewise.
2919         * cfgcleanup.c: Likewise.
2920         * cfgexpand.c: Likewise.
2921         * cfghooks.c: Likewise.
2922         * cfgloop.c: Likewise.
2923         * cfgloop.h: Likewise.
2924         * cfgloopanal.c: Likewise.
2925         * cfgloopmanip.c: Likewise.
2926         * cfgrtl.c: Likewise.
2927         * cgraph.c: Likewise.
2928         * cgraphbuild.c: Likewise.
2929         * cgraphclones.c: Likewise.
2930         * cgraphunit.c: Likewise.
2931         * cilk-common.c: Likewise.
2932         * combine-stack-adj.c: Likewise.
2933         * combine.c: Likewise.
2934         * compare-elim.c: Likewise.
2935         * convert.c: Likewise.
2936         * coverage.c: Likewise.
2937         * cppbuiltin.c: Likewise.
2938         * cprop.c: Likewise.
2939         * cse.c: Likewise.
2940         * cselib.c: Likewise.
2941         * data-streamer-in.c: Likewise.
2942         * data-streamer-out.c: Likewise.
2943         * data-streamer.c: Likewise.
2944         * dbxout.c: Likewise.
2945         * dce.c: Likewise.
2946         * ddg.c: Likewise.
2947         * debug.c: Likewise.
2948         * df-core.c: Likewise.
2949         * df-problems.c: Likewise.
2950         * df-scan.c: Likewise.
2951         * df.h: Likewise.
2952         * dfp.c: Likewise.
2953         * dojump.c: Likewise.
2954         * dominance.c: Likewise.
2955         * domwalk.c: Likewise.
2956         * double-int.c: Likewise.
2957         * dse.c: Likewise.
2958         * dumpfile.c: Likewise.
2959         * dwarf2asm.c: Likewise.
2960         * dwarf2cfi.c: Likewise.
2961         * dwarf2out.c: Likewise.
2962         * dwarf2out.h: Likewise.
2963         * emit-rtl.c: Likewise.
2964         * et-forest.c: Likewise.
2965         * except.c: Likewise.
2966         * explow.c: Likewise.
2967         * expmed.c: Likewise.
2968         * expr.c: Likewise.
2969         * final.c: Likewise.
2970         * fixed-value.c: Likewise.
2971         * fold-const.c: Likewise.
2972         * function.c: Likewise.
2973         * fwprop.c: Likewise.
2974         * gcc-plugin.h: Likewise.
2975         * gcse.c: Likewise.
2976         * generic-match-head.c: Likewise.
2977         * ggc-page.c: Likewise.
2978         * gimple-builder.c: Likewise.
2979         * gimple-expr.c: Likewise.
2980         * gimple-fold.c: Likewise.
2981         * gimple-iterator.c: Likewise.
2982         * gimple-low.c: Likewise.
2983         * gimple-match-head.c: Likewise.
2984         * gimple-pretty-print.c: Likewise.
2985         * gimple-ssa-isolate-paths.c: Likewise.
2986         * gimple-ssa-strength-reduction.c: Likewise.
2987         * gimple-streamer-in.c: Likewise.
2988         * gimple-streamer-out.c: Likewise.
2989         * gimple-streamer.h: Likewise.
2990         * gimple-walk.c: Likewise.
2991         * gimple.c: Likewise.
2992         * gimplify-me.c: Likewise.
2993         * gimplify.c: Likewise.
2994         * godump.c: Likewise.
2995         * graph.c: Likewise.
2996         * graphite-blocking.c: Likewise.
2997         * graphite-dependences.c: Likewise.
2998         * graphite-interchange.c: Likewise.
2999         * graphite-isl-ast-to-gimple.c: Likewise.
3000         * graphite-optimize-isl.c: Likewise.
3001         * graphite-poly.c: Likewise.
3002         * graphite-scop-detection.c: Likewise.
3003         * graphite-sese-to-poly.c: Likewise.
3004         * graphite.c: Likewise.
3005         * haifa-sched.c: Likewise.
3006         * hooks.h: Likewise.
3007         * hw-doloop.c: Likewise.
3008         * ifcvt.c: Likewise.
3009         * incpath.c: Likewise.
3010         * init-regs.c: Likewise.
3011         * internal-fn.c: Likewise.
3012         * ipa-chkp.c: Likewise.
3013         * ipa-comdats.c: Likewise.
3014         * ipa-cp.c: Likewise.
3015         * ipa-devirt.c: Likewise.
3016         * ipa-icf-gimple.c: Likewise.
3017         * ipa-icf.c: Likewise.
3018         * ipa-inline-analysis.c: Likewise.
3019         * ipa-inline-transform.c: Likewise.
3020         * ipa-inline.c: Likewise.
3021         * ipa-polymorphic-call.c: Likewise.
3022         * ipa-profile.c: Likewise.
3023         * ipa-prop.c: Likewise.
3024         * ipa-pure-const.c: Likewise.
3025         * ipa-ref.c: Likewise.
3026         * ipa-reference.c: Likewise.
3027         * ipa-split.c: Likewise.
3028         * ipa-utils.c: Likewise.
3029         * ipa-visibility.c: Likewise.
3030         * ipa.c: Likewise.
3031         * ira-build.c: Likewise.
3032         * ira-color.c: Likewise.
3033         * ira-conflicts.c: Likewise.
3034         * ira-costs.c: Likewise.
3035         * ira-emit.c: Likewise.
3036         * ira-lives.c: Likewise.
3037         * ira.c: Likewise.
3038         * jump.c: Likewise.
3039         * langhooks.c: Likewise.
3040         * lcm.c: Likewise.
3041         * loop-doloop.c: Likewise.
3042         * loop-init.c: Likewise.
3043         * loop-invariant.c: Likewise.
3044         * loop-iv.c: Likewise.
3045         * loop-unroll.c: Likewise.
3046         * lower-subreg.c: Likewise.
3047         * lra-assigns.c: Likewise.
3048         * lra-coalesce.c: Likewise.
3049         * lra-constraints.c: Likewise.
3050         * lra-eliminations.c: Likewise.
3051         * lra-lives.c: Likewise.
3052         * lra-remat.c: Likewise.
3053         * lra-spills.c: Likewise.
3054         * lra.c: Likewise.
3055         * lto-cgraph.c: Likewise.
3056         * lto-compress.c: Likewise.
3057         * lto-opts.c: Likewise.
3058         * lto-section-in.c: Likewise.
3059         * lto-section-out.c: Likewise.
3060         * lto-streamer-in.c: Likewise.
3061         * lto-streamer-out.c: Likewise.
3062         * lto-streamer.c: Likewise.
3063         * mcf.c: Likewise.
3064         * mode-switching.c: Likewise.
3065         * modulo-sched.c: Likewise.
3066         * omega.c: Likewise.
3067         * omp-low.c: Likewise.
3068         * optabs.c: Likewise.
3069         * opts-global.c: Likewise.
3070         * passes.c: Likewise.
3071         * plugin.c: Likewise.
3072         * postreload-gcse.c: Likewise.
3073         * postreload.c: Likewise.
3074         * predict.c: Likewise.
3075         * print-rtl.c: Likewise.
3076         * print-tree.c: Likewise.
3077         * profile.c: Likewise.
3078         * real.c: Likewise.
3079         * realmpfr.c: Likewise.
3080         * realmpfr.h: Likewise.
3081         * recog.c: Likewise.
3082         * ree.c: Likewise.
3083         * reg-stack.c: Likewise.
3084         * regcprop.c: Likewise.
3085         * reginfo.c: Likewise.
3086         * regrename.c: Likewise.
3087         * regs.h: Likewise.
3088         * regstat.c: Likewise.
3089         * reload.c: Likewise.
3090         * reload1.c: Likewise.
3091         * reorg.c: Likewise.
3092         * resource.c: Likewise.
3093         * rtl-chkp.c: Likewise.
3094         * rtlanal.c: Likewise.
3095         * rtlhooks.c: Likewise.
3096         * sanopt.c: Likewise.
3097         * sched-deps.c: Likewise.
3098         * sched-ebb.c: Likewise.
3099         * sched-rgn.c: Likewise.
3100         * sched-vis.c: Likewise.
3101         * sdbout.c: Likewise.
3102         * sel-sched-dump.c: Likewise.
3103         * sel-sched-ir.c: Likewise.
3104         * sel-sched.c: Likewise.
3105         * sese.c: Likewise.
3106         * shrink-wrap.c: Likewise.
3107         * shrink-wrap.h: Likewise.
3108         * simplify-rtx.c: Likewise.
3109         * stack-ptr-mod.c: Likewise.
3110         * statistics.c: Likewise.
3111         * stmt.c: Likewise.
3112         * stor-layout.c: Likewise.
3113         * store-motion.c: Likewise.
3114         * stringpool.c: Likewise.
3115         * symtab.c: Likewise.
3116         * target-globals.c: Likewise.
3117         * targhooks.c: Likewise.
3118         * toplev.c: Likewise.
3119         * tracer.c: Likewise.
3120         * trans-mem.c: Likewise.
3121         * tree-affine.c: Likewise.
3122         * tree-affine.h: Likewise.
3123         * tree-browser.c: Likewise.
3124         * tree-call-cdce.c: Likewise.
3125         * tree-cfg.c: Likewise.
3126         * tree-cfgcleanup.c: Likewise.
3127         * tree-chkp-opt.c: Likewise.
3128         * tree-chkp.c: Likewise.
3129         * tree-chrec.c: Likewise.
3130         * tree-complex.c: Likewise.
3131         * tree-data-ref.c: Likewise.
3132         * tree-dfa.c: Likewise.
3133         * tree-diagnostic.c: Likewise.
3134         * tree-dump.c: Likewise.
3135         * tree-eh.c: Likewise.
3136         * tree-emutls.c: Likewise.
3137         * tree-if-conv.c: Likewise.
3138         * tree-inline.c: Likewise.
3139         * tree-into-ssa.c: Likewise.
3140         * tree-iterator.c: Likewise.
3141         * tree-loop-distribution.c: Likewise.
3142         * tree-nested.c: Likewise.
3143         * tree-nrv.c: Likewise.
3144         * tree-object-size.c: Likewise.
3145         * tree-outof-ssa.c: Likewise.
3146         * tree-parloops.c: Likewise.
3147         * tree-phinodes.c: Likewise.
3148         * tree-predcom.c: Likewise.
3149         * tree-pretty-print.c: Likewise.
3150         * tree-pretty-print.h: Likewise.
3151         * tree-profile.c: Likewise.
3152         * tree-scalar-evolution.c: Likewise.
3153         * tree-sra.c: Likewise.
3154         * tree-ssa-address.c: Likewise.
3155         * tree-ssa-alias.c: Likewise.
3156         * tree-ssa-ccp.c: Likewise.
3157         * tree-ssa-coalesce.c: Likewise.
3158         * tree-ssa-copy.c: Likewise.
3159         * tree-ssa-copyrename.c: Likewise.
3160         * tree-ssa-dce.c: Likewise.
3161         * tree-ssa-dom.c: Likewise.
3162         * tree-ssa-dse.c: Likewise.
3163         * tree-ssa-forwprop.c: Likewise.
3164         * tree-ssa-ifcombine.c: Likewise.
3165         * tree-ssa-live.c: Likewise.
3166         * tree-ssa-loop-ch.c: Likewise.
3167         * tree-ssa-loop-im.c: Likewise.
3168         * tree-ssa-loop-ivcanon.c: Likewise.
3169         * tree-ssa-loop-ivopts.c: Likewise.
3170         * tree-ssa-loop-manip.c: Likewise.
3171         * tree-ssa-loop-niter.c: Likewise.
3172         * tree-ssa-loop-prefetch.c: Likewise.
3173         * tree-ssa-loop-unswitch.c: Likewise.
3174         * tree-ssa-loop.c: Likewise.
3175         * tree-ssa-loop.h: Likewise.
3176         * tree-ssa-math-opts.c: Likewise.
3177         * tree-ssa-operands.c: Likewise.
3178         * tree-ssa-phiopt.c: Likewise.
3179         * tree-ssa-phiprop.c: Likewise.
3180         * tree-ssa-pre.c: Likewise.
3181         * tree-ssa-propagate.c: Likewise.
3182         * tree-ssa-reassoc.c: Likewise.
3183         * tree-ssa-sccvn.c: Likewise.
3184         * tree-ssa-scopedtables.c: Likewise.
3185         * tree-ssa-sink.c: Likewise.
3186         * tree-ssa-strlen.c: Likewise.
3187         * tree-ssa-structalias.c: Likewise.
3188         * tree-ssa-tail-merge.c: Likewise.
3189         * tree-ssa-ter.c: Likewise.
3190         * tree-ssa-threadedge.c: Likewise.
3191         * tree-ssa-threadupdate.c: Likewise.
3192         * tree-ssa-uncprop.c: Likewise.
3193         * tree-ssa-uninit.c: Likewise.
3194         * tree-ssa.c: Likewise.
3195         * tree-ssanames.c: Likewise.
3196         * tree-stdarg.c: Likewise.
3197         * tree-streamer-in.c: Likewise.
3198         * tree-streamer-out.c: Likewise.
3199         * tree-streamer.c: Likewise.
3200         * tree-switch-conversion.c: Likewise.
3201         * tree-tailcall.c: Likewise.
3202         * tree-vect-data-refs.c: Likewise.
3203         * tree-vect-generic.c: Likewise.
3204         * tree-vect-loop-manip.c: Likewise.
3205         * tree-vect-loop.c: Likewise.
3206         * tree-vect-patterns.c: Likewise.
3207         * tree-vect-slp.c: Likewise.
3208         * tree-vect-stmts.c: Likewise.
3209         * tree-vectorizer.c: Likewise.
3210         * tree-vrp.c: Likewise.
3211         * tree.c: Likewise.
3212         * tsan.c: Likewise.
3213         * ubsan.c: Likewise.
3214         * valtrack.c: Likewise.
3215         * value-prof.c: Likewise.
3216         * var-tracking.c: Likewise.
3217         * varasm.c: Likewise.
3218         * varpool.c: Likewise.
3219         * vmsdbgout.c: Likewise.
3220         * vtable-verify.c: Likewise.
3221         * web.c: Likewise.
3222         * wide-int-print.cc: Likewise.
3223         * wide-int-print.h: Likewise.
3224         * wide-int.cc: Likewise.
3225         * xcoffout.c: Likewise.
3226         * config/aarch64/aarch64-builtins.c: Likewise.
3227         * config/aarch64/aarch64.c: Likewise.
3228         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
3229         * config/alpha/alpha.c: Likewise.
3230         * config/arc/arc.c: Likewise.
3231         * config/arm/aarch-common.c: Likewise.
3232         * config/arm/arm-builtins.c: Likewise.
3233         * config/arm/arm-c.c: Likewise.
3234         * config/arm/arm.c: Likewise.
3235         * config/avr/avr-c.c: Likewise.
3236         * config/avr/avr-log.c: Likewise.
3237         * config/avr/avr.c: Likewise.
3238         * config/bfin/bfin.c: Likewise.
3239         * config/c6x/c6x.c: Likewise.
3240         * config/cr16/cr16.c: Likewise.
3241         * config/cris/cris.c: Likewise.
3242         * config/darwin-c.c: Likewise.
3243         * config/darwin.c: Likewise.
3244         * config/default-c.c: Likewise.
3245         * config/epiphany/epiphany.c: Likewise.
3246         * config/epiphany/mode-switch-use.c: Likewise.
3247         * config/epiphany/resolve-sw-modes.c: Likewise.
3248         * config/fr30/fr30.c: Likewise.
3249         * config/frv/frv.c: Likewise.
3250         * config/ft32/ft32.c: Likewise.
3251         * config/glibc-c.c: Likewise.
3252         * config/h8300/h8300.c: Likewise.
3253         * config/i386/i386-c.c: Likewise.
3254         * config/i386/i386.c: Likewise.
3255         * config/i386/msformat-c.c: Likewise.
3256         * config/i386/winnt-cxx.c: Likewise.
3257         * config/i386/winnt-stubs.c: Likewise.
3258         * config/i386/winnt.c: Likewise.
3259         * config/ia64/ia64-c.c: Likewise.
3260         * config/ia64/ia64.c: Likewise.
3261         * config/iq2000/iq2000.c: Likewise.
3262         * config/lm32/lm32.c: Likewise.
3263         * config/m32c/m32c-pragma.c: Likewise.
3264         * config/m32c/m32c.c: Likewise.
3265         * config/m32r/m32r.c: Likewise.
3266         * config/m68k/m68k.c: Likewise.
3267         * config/mcore/mcore.c: Likewise.
3268         * config/mep/mep-pragma.c: Likewise.
3269         * config/mep/mep.c: Likewise.
3270         * config/microblaze/microblaze-c.c: Likewise.
3271         * config/microblaze/microblaze.c: Likewise.
3272         * config/mips/mips.c: Likewise.
3273         * config/mmix/mmix.c: Likewise.
3274         * config/mn10300/mn10300.c: Likewise.
3275         * config/moxie/moxie.c: Likewise.
3276         * config/msp430/msp430-c.c: Likewise.
3277         * config/msp430/msp430.c: Likewise.
3278         * config/nds32/nds32-cost.c: Likewise.
3279         * config/nds32/nds32-fp-as-gp.c: Likewise.
3280         * config/nds32/nds32-intrinsic.c: Likewise.
3281         * config/nds32/nds32-isr.c: Likewise.
3282         * config/nds32/nds32-md-auxiliary.c: Likewise.
3283         * config/nds32/nds32-memory-manipulation.c: Likewise.
3284         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3285         * config/nds32/nds32-predicates.c: Likewise.
3286         * config/nds32/nds32.c: Likewise.
3287         * config/nios2/nios2.c: Likewise.
3288         * config/nvptx/nvptx.c: Likewise.
3289         * config/pa/pa.c: Likewise.
3290         * config/pdp11/pdp11.c: Likewise.
3291         * config/rl78/rl78-c.c: Likewise.
3292         * config/rl78/rl78.c: Likewise.
3293         * config/rs6000/rs6000-c.c: Likewise.
3294         * config/rs6000/rs6000.c: Likewise.
3295         * config/rx/rx.c: Likewise.
3296         * config/s390/s390-c.c: Likewise.
3297         * config/s390/s390.c: Likewise.
3298         * config/sh/sh-c.c: Likewise.
3299         * config/sh/sh-mem.cc: Likewise.
3300         * config/sh/sh.c: Likewise.
3301         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
3302         * config/sh/sh_treg_combine.cc: Likewise.
3303         * config/sol2-c.c: Likewise.
3304         * config/sol2-cxx.c: Likewise.
3305         * config/sol2-stubs.c: Likewise.
3306         * config/sol2.c: Likewise.
3307         * config/sparc/sparc-c.c: Likewise.
3308         * config/sparc/sparc.c: Likewise.
3309         * config/spu/spu-c.c: Likewise.
3310         * config/spu/spu.c: Likewise.
3311         * config/stormy16/stormy16.c: Likewise.
3312         * config/tilegx/mul-tables.c: Likewise.
3313         * config/tilegx/tilegx-c.c: Likewise.
3314         * config/tilegx/tilegx.c: Likewise.
3315         * config/tilepro/mul-tables.c: Likewise.
3316         * config/tilepro/tilepro-c.c: Likewise.
3317         * config/tilepro/tilepro.c: Likewise.
3318         * config/v850/v850-c.c: Likewise.
3319         * config/v850/v850.c: Likewise.
3320         * config/vax/vax.c: Likewise.
3321         * config/visium/visium.c: Likewise.
3322         * config/vms/vms-c.c: Likewise.
3323         * config/vms/vms.c: Likewise.
3324         * config/vxworks.c: Likewise.
3325         * config/winnt-c.c: Likewise.
3326         * config/xtensa/xtensa.c: Likewise.
3327         * common/config/bfin/bfin-common.c: Likewise.
3329 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
3331         * tree.h (tree_code_for_canonical_type_merging): New function.
3332         * tree.c (gimple_canonical_types_compatible_p): Use
3333         tree_code_for_canonical_type_merging..
3335 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3337         PR c++/66192
3338         PR target/66200
3339         * doc/tm.texi: Regenerate.
3340         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
3341         * target.def (TARGET_RELAXED_ORDERING): Likewise.
3342         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
3343         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
3344         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
3345         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
3346         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
3347         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
3348         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
3350 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3352         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
3353         register fma steering pass.
3354         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
3355         AARCH64_TUNE_FMA_STEERING.
3357 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
3359         * tree.c (verify_type_variant): Verify that type and variant is
3360         compatible.
3361         (gimple_canonical_types_compatible_p): Look for main variants.
3363 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
3365         * config.gcc (powerpc*-*-*): Add support for a new configure
3366         option --with-advance-toolchain=<xxx> which overrides using the
3367         default header files, libraries and dynamic linker.
3369         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
3370         specs to support the configure --with-advance-toolchain=<xxx>
3371         option.
3372         (INCLUDE_EXTRA_SPEC): Likewise.
3373         (LINK_OS_EXTRA_SPEC32): Likewise.
3374         (LINK_OK_EXTRA_SPEC64): Likewise.
3375         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
3376         (DYNAMIC_LINKER_PREFIX): Likewise.
3377         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
3378         toolchain support.
3379         (GLIBC_DYNAMIC_LINKER32): Likewise.
3380         (GLIBC_DYNAMIC_LINKER64): Likewise.
3381         (LINK_OS_LINUX_SPEC32): Likewise.
3382         (LINK_OS_LINUX_SPEC64): Likewise.
3384         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
3385         configuration option.
3387 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
3389         PR target/66275
3390         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
3391         to determine current function ABI.
3392         (ix86_function_value_regno_p): Ditto.
3394 2015-06-03  Martin Liska  <mliska@suse.cz>
3396         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
3397         * bitmap.h (struct bitmap_usage): Likewise.
3398         * ggc-common.c (struct ggc_usage): Likewise.
3399         * mem-stats.h (struct mem_location): Likewise.
3400         (struct mem_usage): Likewise.
3401         * vec.c (struct vec_usage): Likewise.
3403 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
3405         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
3406         -Bsymbolic.
3408 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
3410         * doc/plugins.texi (enum plugin_event): New event.
3411         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
3412         and PLUGIN_FINISH_FUNCTION.
3413         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
3414         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
3416 2015-06-03  Richard Biener  <rguenther@suse.de>
3418         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
3419         compute GROUP_GAP for the first element.
3420         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
3421         on in-group gaps.
3423 2015-06-03  Nick Clifton  <nickc@redhat.com>
3425         * config/rl78/rl78-real.md: Add peepholes to avoid a register
3426         copy when calling a function.
3427         * config/rl78/rl78.c (need_to_save): Do not push the frame
3428         pointer in an interrupt handler prologue if it is never used.
3430 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3432         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
3434 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
3436         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
3437         reference when cloning alias node.
3439 2015-06-03  Martin Liska  <mliska@suse.cz>
3441         * alloc-pool.h (struct pool_usage): Correct space padding.
3442         * ggc-page.c (ggc_print_statistics): Align columns in a report.
3443         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
3444         * tree.c (dump_tree_statistics): Align columns in a report.
3446 2015-06-03  Martin Liska  <mliska@suse.cz>
3448         * alloc-pool.c (allocate_pool_descriptor): Remove.
3449         (struct pool_output_info): Likewise.
3450         (print_alloc_pool_statistics): Likewise.
3451         (dump_alloc_pool_statistics): Likewise.
3452         * alloc-pool.h (struct pool_usage): New struct.
3453         (pool_allocator::initialize): Change usage of memory statistics
3454         to a new interface.
3455         (pool_allocator::release): Likewise.
3456         (pool_allocator::allocate): Likewise.
3457         (pool_allocator::remove): Likewise.
3458         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
3459         for a pool allocator.
3460         * mem-stats.h (struct mem_location): Add new ctor.
3461         (struct mem_usage): Add counter for number of
3462         instances.
3463         (mem_alloc_description::register_descriptor): New overload of
3464         * mem-stats.h (mem_location::to_string): New function.
3465         * bitmap.h (struct bitmap_usage): Use this new function.
3466         * ggc-common.c (struct ggc_usage): Likewise.
3467         the function.
3469 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
3471         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
3472         of GCC_INSN_FLAGS_H block.
3474 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
3476         * explow.c (plus_constant): Update check after force_const_mem call
3477         to see if the value returned is not a NULL_RTX.
3479 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
3481         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
3482         remove instumentation thunks calling reachable functions.
3483         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
3484         * lto/lto-partition.c (privatize_symbol_name_1): New.
3485         (privatize_symbol_name): Privatize both decl and orig_decl
3486         names for instrumented functions.
3487         * cgraph.c (cgraph_node::verify_node): Add transparent
3488         alias chain check for instrumented node.
3490 2015-06-03  Marek Polacek  <polacek@redhat.com>
3492         PR c/64223
3493         PR c/29358
3494         * tree.c (attribute_value_equal): Handle attribute format.
3495         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
3497 2015-06-03  Richard Biener  <rguenther@suse.de>
3499         PR tree-optimization/63916
3500         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
3501         Forward-propagate non-invariant addresses by splicing their
3502         reference ops if the result isn't going to be used by PRE.
3503         (vn_reference_lookup_3): Remove pointless assert.
3505 2015-06-03  Richard Biener  <rguenther@suse.de>
3507         PR tree-optimization/66375
3508         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
3509         add to the evolution before following SSA edges.
3511 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
3513         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
3514         (dump_use, dump_cand, find_induction_variables): Pass new argument
3515         to dump_iv.
3516         (record_use): Preserve the ssa name information in IV.
3518 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
3520         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
3521         NO_MODE_TEST.
3522         (add_mode_tests): Don't add mode tests if the predicate only
3523         accepts scalar constant integers.  Otherwise, allow the mode
3524         of "op" to be VOIDmode if the predicate does accept such integers.
3526 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
3528         PR target/66258
3529         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
3530         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
3531         (aarch64_secondary_reload): Likewise
3532         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
3533         to !TARGET_FLOAT.
3534         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
3535         Likewise.
3537 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
3538             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
3540         PR target/65768
3541         * cprop.c (try_replace_reg): Check cost of constants before propagating.
3543 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
3545         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
3546         provide access to the IBM extended double floating point mode if
3547         long double is IEEE 128-bit floating point.
3548         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
3549         point if long double is the IBM extended double type.
3551         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
3552         enable adding IEEE 128-bit floating point support.
3553         (-mfloat128-software): Likewise.
3554         (-mfloat128-sw): Likewise.
3556         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
3557         128-bit floating point types to occupy any register if
3558         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
3559         -mfloat128-software is enabled.
3560         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
3561         support.
3562         (rs6000_option_override_internal): Add -mfloat128-* support.
3563         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
3565         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
3566         and float128 type nodes.
3567         (ieee128_float_type_node): Likewise.
3568         (ibm128_float_type_node): Likewise.
3570 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3572         PR target/66136
3573         * config/aarch64/geniterators.sh: Rewrite in awk.
3575 2015-06-02  Martin Liska  <mliska@suse.cz>
3577         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
3578         values to avoid -Wmaybe-uninitialized errors.
3580 2015-06-02  Richard Biener  <rguenther@suse.de>
3582         PR debug/65549
3583         * dwarf2out.c (lookup_context_die): New function.
3584         (resolve_addr): Avoid forcing a full DIE for the
3585         target of a DW_TAG_GNU_call_site during late compilation.
3586         Instead create a stub DIE without a type if we have a
3587         context DIE present.
3589 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
3591         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
3593 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
3595         PR tree-optimization/48052
3596         * cfgloop.h (struct control_iv): New.
3597         (struct loop): New field control_ivs.
3598         * tree-ssa-loop-niter.c : Include "stor-layout.h".
3599         (number_of_iterations_lt): Set no_overflow information.
3600         (number_of_iterations_exit): Init control iv in niter struct.
3601         (record_control_iv): New.
3602         (estimate_numbers_of_iterations_loop): Call record_control_iv.
3603         (loop_exits_before_overflow): New.  Interface factored out of
3604         scev_probably_wraps_p.
3605         (scev_probably_wraps_p): Factor loop niter related code into
3606         loop_exits_before_overflow.
3607         (free_numbers_of_iterations_estimates_loop): Free control ivs.
3608         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
3610 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
3612         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
3613         the target doesn't belong to the current function.
3615 2015-06-02  Marek Polacek  <polacek@redhat.com>
3617         PR middle-end/66345
3618         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
3619         get_maxval_strlen does not produce an INTEGER_CST.
3621 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
3623         * config/arc/constraints.md: Use lower-case names in match_code.
3624         * config/mmix/constraints.md: Likewise.
3626 2015-06-02  Richard Biener  <rguenther@suse.de>
3628         PR tree-optimization/65961
3629         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
3630         check and clarify dump message.
3631         (vect_build_slp_tree): If all children are built up from scalars
3632         build up the parent from scalars instead.
3633         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
3635 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3637         PR other/65366
3638         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
3639         instead of print ... .
3641 2015-06-02  Alan Modra  <amodra@gmail.com>
3643         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
3644         2014-08-11 change.
3646 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
3648         PR tree-optimization/52563
3649         PR tree-optimization/62173
3650         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
3651         (alloc_iv, set_iv): New parameter.
3652         (determine_biv_step): Delete.
3653         (find_bivs): Inline original determine_biv_step.  Pass new
3654         argument to set_iv.
3655         (idx_find_step): Use no_overflow information for conversion.
3656         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
3657         resolve_mixers handle folded_casts.
3658         (instantiate_scev_name): Change bool parameter to bool pointer.
3659         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
3660         (instantiate_array_ref, instantiate_scev_not): Ditto.
3661         (instantiate_scev_3, instantiate_scev_2): Ditto.
3662         (instantiate_scev_1, instantiate_scev_r): Ditto.
3663         (instantiate_scev_convert, ): Change parameter.  Pass argument
3664         to chrec_convert_aggressive.
3665         (instantiate_scev): Change argument.
3666         (resolve_mixers): New parameter and set it.
3667         (scev_const_prop): New argument.
3668         * tree-scalar-evolution.h (resolve_mixers): New parameter.
3669         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
3670         of chrec_conert_1.
3671         (chrec_convert): New parameter.  Move definition below.
3672         (chrec_convert_aggressive): New parameter and set it.  Call
3673         convert_affine_scev.
3674         * tree-chrec.h (chrec_convert): New parameter.
3675         (chrec_convert_aggressive): Ditto.
3677 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
3679         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
3680         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
3681         the LHS of a no-return call if its type has variable size.
3682         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
3683         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
3685 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
3687         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
3688         * config.in: Regenerate.
3690 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
3692         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
3693         consecutive accesses within outer-loop with force_vectorize
3694         for references with zero step in inner-loop.
3696 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
3698         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
3699         rather than from gcc/build directory.
3701 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
3703         PR target/65697
3704         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
3705         for __sync memory models, emit initial loads and final barriers as
3706         appropriate.
3708 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
3710         PR target/65697
3711         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
3712         (aarch64_split_atomic_op): Check for __sync memory models, emit
3713         appropriate initial loads and final barriers.
3715 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
3717         * Makefile.in: Fix gcov dependencies that should
3718         not point to a build folder.
3720 2015-06-01  Richard Biener  <rguenther@suse.de>
3722         Revert
3723         2015-05-29  Richard Biener  <rguenther@suse.de>
3725         PR tree-optimization/66314
3726         * tree-ssa-threadupdate.c (create_block_for_threading): Add
3727         parameter that says which loop the new block belongs to.
3728         (ssa_create_duplicates): Blocks duplicated for the threaded
3729         path belong to the loop of the thread destination.
3731 2015-06-01  Martin Liska  <mliska@suse.cz>
3733         * sched-deps.c: Include pool-alloc.h before
3734         cselib.h header file is included.
3736 2015-06-01  Richard Biener  <rguenther@suse.de>
3738         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
3739         functions.
3741 2015-06-01  Martin Liska  <mliska@suse.cz>
3743         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
3744         a function local variable.
3746 2015-06-01  Martin Liska  <mliska@suse.cz>
3748         * alloc-pool.c (create_alloc_pool): Remove.
3749         (empty_alloc_pool): Likewise.
3750         (free_alloc_pool): Likewise.
3751         (free_alloc_pool_if_empty): Likewise.
3752         (pool_alloc): Likewise.
3753         (pool_free): Likewise.
3754         * alloc-pool.h: Remove old declarations.
3756 2015-06-01  Martin Liska  <mliska@suse.cz>
3758         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
3759         (ira_create_object): Likewise.
3760         (ira_create_allocno): Likewise.
3761         (ira_create_live_range): Likewise.
3762         (copy_live_range): Likewise.
3763         (ira_finish_live_range): Likewise.
3764         (ira_free_allocno_costs): Likewise.
3765         (finish_allocno): Likewise.
3766         (finish_allocnos): Likewise.
3767         (initiate_prefs): Likewise.
3768         (ira_create_pref): Likewise.
3769         (finish_pref): Likewise.
3770         (finish_prefs): Likewise.
3771         (initiate_copies): Likewise.
3772         (ira_create_copy): Likewise.
3773         (finish_copy): Likewise.
3774         (finish_copies): Likewise.
3775         (finish_prefs): Likewise.
3777 2015-06-01  Martin Liska  <mliska@suse.cz>
3779         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
3780         (allocate_and_init_ipcp_value): Likewise.
3781         (ipcp_lattice::add_value): Likewise.
3782         (merge_agg_lats_step): Likewise.
3783         (ipcp_driver): Likewise.
3784         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
3785         (ipa_free_all_structures_after_iinln): Likewise.
3786         * ipa-prop.h: Likewise.
3788 2015-06-01  Martin Liska  <mliska@suse.cz>
3790         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
3791         pool allocator.
3792         (set_hint_predicate): Likewise.
3793         (inline_summary_alloc): Likewise.
3794         (reset_inline_edge_summary): Likewise.
3795         (reset_inline_summary): Likewise.
3796         (set_cond_stmt_execution_predicate): Likewise.
3797         (set_switch_stmt_execution_predicate): Likewise.
3798         (compute_bb_predicates): Likewise.
3799         (estimate_function_body_sizes): Likewise.
3800         (inline_free_summary): Likewise.
3802 2015-06-01  Martin Liska  <mliska@suse.cz>
3804         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
3805         (ipa_edge_duplication_hook): Likewise.
3806         (ipa_free_all_structures_after_ipa_cp): Likewise.
3807         (ipa_free_all_structures_after_iinln): Likewise.
3809 2015-06-01  Martin Liska  <mliska@suse.cz>
3811         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
3812         (ipa_profile_generate_summary): Likewise.
3813         (ipa_profile_read_summary): Likewise.
3814         (ipa_profile): Likewise.
3816 2015-06-01  Martin Liska  <mliska@suse.cz>
3818         * tree-ssa-structalias.c (new_var_info): Use new type-based
3819         pool allocator.
3820         (new_constraint): Likewise.
3821         (init_alias_vars): Likewise.
3822         (delete_points_to_sets): Likewise.
3824 2015-06-01  Martin Liska  <mliska@suse.cz>
3826         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
3827         (free_strinfo): Likewise.
3828         (pass_strlen::execute): Likewise.
3830 2015-06-01  Martin Liska  <mliska@suse.cz>
3832         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
3833         pool allocator.
3834         (vn_reference_insert_pieces): Likewise.
3835         (vn_phi_insert): Likewise.
3836         (visit_reference_op_call): Likewise.
3837         (copy_phi): Likewise.
3838         (copy_reference): Likewise.
3839         (process_scc): Likewise.
3840         (allocate_vn_table): Likewise.
3841         (free_vn_table): Likewise.
3843 2015-06-01  Martin Liska  <mliska@suse.cz>
3845         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
3846         pool allocator.
3847         (add_repeat_to_ops_vec): Likewise.
3848         (get_ops): Likewise.
3849         (maybe_optimize_range_tests): Likewise.
3850         (init_reassoc): Likewise.
3851         (fini_reassoc): Likewise.
3853 2015-06-01  Martin Liska  <mliska@suse.cz>
3855         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
3856         pool allocator.
3857         (bitmap_set_new): Likewise.
3858         (get_or_alloc_expr_for_constant): Likewise.
3859         (get_or_alloc_expr_for): Likewise.
3860         (phi_translate_1): Likewise.
3861         (compute_avail): Likewise.
3862         (init_pre): Likewise.
3863         (fini_pre): Likewise.
3865 2015-06-01  Martin Liska  <mliska@suse.cz>
3867         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
3868         (delete_dep_node): Likewise.
3869         (create_deps_list): Likewise.
3870         (free_deps_list): Likewise.
3871         (sched_deps_init): Likewise.
3872         (sched_deps_finish): Likewise.
3874 2015-06-01  Martin Liska  <mliska@suse.cz>
3876         * regcprop.c (free_debug_insn_changes): Use new type-based
3877         pool allocator.
3878         (replace_oldest_value_reg): Likewise.
3879         (pass_cprop_hardreg::execute): Likewise.
3881 2015-06-01  Martin Liska  <mliska@suse.cz>
3883         * ira-build.c (initiate_cost_vectors): Use new type-based
3884         pool allocator.
3885         (ira_allocate_cost_vector): Likewise.
3886         (ira_free_cost_vector): Likewise.
3887         (finish_cost_vectors): Likewise.
3889 2015-06-01  Martin Liska  <mliska@suse.cz>
3891         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
3892         pool allocator.
3893         (free_sched_pools): Likewise.
3894         * sel-sched-ir.h (_list_alloc): Likewise.
3895         (_list_remove): Likewise.
3897 2015-06-01  Martin Liska  <mliska@suse.cz>
3899         * stmt.c (add_case_node): Use new type-based pool allocator.
3900         (expand_case): Likewise.
3901         (expand_sjlj_dispatch_table): Likewise.
3903 2015-06-01  Martin Liska  <mliska@suse.cz>
3905         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
3906         (free_bb): Likewise.
3907         (pass_cse_reciprocals::execute): Likewise.
3909 2015-06-01  Martin Liska  <mliska@suse.cz>
3911         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
3912         (sra_deinitialize) Likewise.
3913         (create_access_1) Likewise.
3914         (build_accesses_from_assign) Likewise.
3915         (create_artificial_child_access) Likewise.
3917 2015-06-01  Martin Liska  <mliska@suse.cz>
3919         * dse.c (get_group_info):Use new type-based pool allocator.
3920         (dse_step0) Likewise.
3921         (free_store_info) Likewise.
3922         (delete_dead_store_insn) Likewise.
3923         (free_read_records) Likewise.
3924         (record_store) Likewise.
3925         (replace_read) Likewise.
3926         (check_mem_read_rtx) Likewise.
3927         (scan_insn) Likewise.
3928         (dse_step1) Likewise.
3929         (dse_step7) Likewise.
3931 2015-06-01  Martin Liska  <mliska@suse.cz>
3933         * df-scan.c (struct df_scan_problem_data):Use new type-based
3934         pool allocator.
3935         (df_scan_free_internal) Likewise.
3936         (df_scan_alloc) Likewise.
3937         (df_grow_reg_info) Likewise.
3938         (df_free_ref) Likewise.
3939         (df_insn_create_insn_record) Likewise.
3940         (df_mw_hardreg_chain_delete) Likewise.
3941         (df_insn_info_delete) Likewise.
3942         (df_free_collection_rec) Likewise.
3943         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
3944         (df_sort_and_compress_mws) Likewise.
3945         (df_ref_create_structure) Likewise.
3946         (df_ref_record) Likewise.
3948 2015-06-01  Martin Liska  <mliska@suse.cz>
3950         * df-problems.c (df_chain_create):Use new type-based pool allocator.
3951         (df_chain_unlink_1) Likewise.
3952         (df_chain_unlink) Likewise.
3953         (df_chain_remove_problem) Likewise.
3954         (df_chain_alloc) Likewise.
3955         (df_chain_free) Likewise.
3956         * df.h (struct dataflow) Likewise.
3958 2015-06-01  Martin Liska  <mliska@suse.cz>
3960         * cselib.c (new_elt_list):Use new type-based pool allocator.
3961         (new_elt_loc_list) Likewise.
3962         (unchain_one_elt_list) Likewise.
3963         (unchain_one_elt_loc_list) Likewise.
3964         (unchain_one_value) Likewise.
3965         (new_cselib_val) Likewise.
3966         (cselib_init) Likewise.
3967         (cselib_finish) Likewise.
3969 2015-06-01  Martin Liska  <mliska@suse.cz>
3971         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
3972         (sh_reorg) Likewise.
3974 2015-06-01  Martin Liska  <mliska@suse.cz>
3976         * cfg.c (initialize_original_copy_tables):Use new type-based
3977         pool allocator.
3978         (free_original_copy_tables) Likewise.
3979         (copy_original_table_clear) Likewise.
3980         (copy_original_table_set) Likewise.
3982 2015-06-01  Martin Liska  <mliska@suse.cz>
3984         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
3985         pool allocator.
3986         (asan_mem_ref_new) Likewise.
3987         (free_mem_ref_resources) Likewise.
3989 2015-06-01  Martin Liska  <mliska@suse.cz>
3991         * var-tracking.c (variable_htab_free):Use new type-based
3992         pool allocator.
3993         (attrs_list_clear) Likewise.
3994         (attrs_list_insert) Likewise.
3995         (attrs_list_copy) Likewise.
3996         (shared_hash_unshare) Likewise.
3997         (shared_hash_destroy) Likewise.
3998         (unshare_variable) Likewise.
3999         (var_reg_delete_and_set) Likewise.
4000         (var_reg_delete) Likewise.
4001         (var_regno_delete) Likewise.
4002         (drop_overlapping_mem_locs) Likewise.
4003         (variable_union) Likewise.
4004         (insert_into_intersection) Likewise.
4005         (canonicalize_values_star) Likewise.
4006         (variable_merge_over_cur) Likewise.
4007         (dataflow_set_merge) Likewise.
4008         (remove_duplicate_values) Likewise.
4009         (variable_post_merge_new_vals) Likewise.
4010         (dataflow_set_preserve_mem_locs) Likewise.
4011         (dataflow_set_remove_mem_locs) Likewise.
4012         (variable_from_dropped) Likewise.
4013         (variable_was_changed) Likewise.
4014         (set_slot_part) Likewise.
4015         (clobber_slot_part) Likewise.
4016         (delete_slot_part) Likewise.
4017         (loc_exp_insert_dep) Likewise.
4018         (notify_dependents_of_changed_value) Likewise.
4019         (emit_notes_for_differences_1) Likewise.
4020         (vt_emit_notes) Likewise.
4021         (vt_initialize) Likewise.
4022         (vt_finalize) Likewise.
4024 2015-06-01  Martin Liska  <mliska@suse.cz>
4026         * ira-color.c (init_update_cost_records):Use new type-based
4027         pool allocator.
4028         (get_update_cost_record) Likewise.
4029         (free_update_cost_record_list) Likewise.
4030         (finish_update_cost_records) Likewise.
4031         (initiate_cost_update) Likewise.
4033 2015-06-01  Martin Liska  <mliska@suse.cz>
4035         * lra.c (init_insn_regs): Use new type-based pool allocator.
4036         (new_insn_reg) Likewise.
4037         (free_insn_reg) Likewise.
4038         (free_insn_regs) Likewise.
4039         (finish_insn_regs) Likewise.
4040         (init_insn_recog_data) Likewise.
4041         (init_reg_info) Likewise.
4042         (finish_reg_info) Likewise.
4043         (lra_free_copies) Likewise.
4044         (lra_create_copy) Likewise.
4045         (invalidate_insn_data_regno_info) Likewise.
4047 2015-06-01  Martin Liska  <mliska@suse.cz>
4049         * lra-lives.c (free_live_range): Use new type-based pool allocator.
4050         (free_live_range_list) Likewise.
4051         (create_live_range) Likewise.
4052         (copy_live_range) Likewise.
4053         (lra_merge_live_ranges) Likewise.
4054         (remove_some_program_points_and_update_live_ranges) Likewise.
4055         (lra_live_ranges_init) Likewise.
4056         (lra_live_ranges_finish) Likewise.
4058 2015-06-01  Martin Liska  <mliska@suse.cz>
4060         * et-forest.c (et_new_occ): Use new type-based pool allocator.
4061         (et_new_tree): Likewise.
4062         (et_free_tree): Likewise.
4063         (et_free_tree_force): Likewise.
4064         (et_free_pools): Likewise.
4065         (et_split): Likewise.
4067 2015-06-01  Martin Liska  <mliska@suse.cz>
4069         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
4070         to header file.
4071         * alloc-pool.h (pool_allocator::pool_allocator): New function.
4072         (pool_allocator::release): Likewise.
4073         (inline pool_allocator::release_if_empty): Likewise.
4074         (inline pool_allocator::~pool_allocator): Likewise.
4075         (pool_allocator::allocate): Likewise.
4076         (pool_allocator::remove): Likewise.
4078 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
4080         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
4081         in comment.
4083 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
4085         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
4086         to fusible_ops.
4087         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
4088         (arm_macro_fusion_p): Likewise.
4089         (arm_macro_fusion_pair_p): Likewise.
4091 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
4093         * config/aarch64/aarch64-protos.h (tune_params): Rename
4094         fuseable_ops to fusible_ops.
4095         * config/aarch64/aarch64.c (generic_tunings): Rename
4096         fuseable_ops to fusible_ops.
4097         (cortexa53_tunings): Likewise.
4098         (cortexa57_tunings): Likewise.
4099         (thunderx_tunings): Likewise.
4100         (xgene1_tunings): Likewise.
4101         (aarch64_macro_fusion_p): Likewise.
4102         (aarch64_macro_fusion_pair_p): Likewise.
4104 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4106         * config/s390/driver-native.c: New file.
4107         * config/s390/x-native: New file.
4108         * config.host: Add new files for s390.
4109         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
4110         and -march=native
4111         * config.gcc: Likewise.
4112         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
4113         * config/s390/s390-opts.h (enum processor_type): Ditto.
4114         * config/s390/s390.c (s390_option_override): Catch unhandled
4115         PROCESSOR_NATIVE
4117 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
4119         PR target/65527
4120         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
4121         redirection for instrumented calls.
4122         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
4123         (append_compiler_options): Append -fcheck-pointer-bounds.
4124         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
4125         (chkp_redirect_edge): New.
4126         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
4127         (chkp_redirect_edge): New.
4129 2015-06-01  Richard Biener  <rguenther@suse.de>
4131         PR tree-optimization/66280
4132         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
4133         def-use walking.
4135 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4137         * config/aarch64/aarch64.md
4138         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
4139         logic_shift_imm.
4141 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
4143         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
4144         Remove obsolete kludge.
4146 2015-06-01  Richard Biener  <rguenther@suse.de>
4148         * tree-ssa-reassoc.c (get_rank): Simplify.
4150 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4152         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
4153         * configure: Regenerated.
4155 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
4157         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
4158         issue (add space between string literal and macro).
4159         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
4161 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
4163         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
4164         implict or explicit -fPIE or -fpie.
4166 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
4168         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
4170 2015-05-28  DJ Delorie  <dj@redhat.com>
4172         * expmed.c (extract_bit_field_1): Avoid clobbering a
4173         yet-to-be-used base/index register.
4175 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
4177         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
4178         (alias_stats): Add num_universal.
4179         (alias_set_subset_of): Special case pointers; be ready for NULL
4180         children.
4181         (alias_sets_conflict_p): Special case pointers; be ready for NULL
4182         children.
4183         (init_alias_set_entry): Break out from ...
4184         (record_alias_subset): ... here; propagate new fields;
4185         allocate children only when really needed.
4186         (get_alias_set): Do less generous pointer globbing.
4187         (dump_alias_stats_in_alias_c): Update statistics.
4189 2015-05-30  Alan Modra  <amodra@gmail.com>
4191         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
4192         correct block for use of r12.
4193         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
4195 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4197         PR target/66215
4198         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
4199         with -mhotpatch=.
4201 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
4203         PR tree-optimization/66142
4204         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
4205         virtual phis that feed themselves.
4207 2015-05-29  Richard Biener  <rguenther@suse.de>
4209         PR tree-optimization/66314
4210         * tree-ssa-threadupdate.c (create_block_for_threading): Add
4211         parameter that says which loop the new block belongs to.
4212         (ssa_create_duplicates): Blocks duplicated for the threaded
4213         path belong to the loop of the thread destination.
4215 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4217         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
4218         to cleanup-saved-temps.
4219         * doc/sourcebuild.texi (Clean up generated test files): Expand
4220         introduction.
4221         (dg-keep-saved-temps): Document new proc.
4222         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
4223         cleanup-saved-temps): Remove.
4225 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
4227         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
4228         gcc_AC_CHECK_DECLS.
4229         * configure: Regenerate.
4231 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
4233         * config/nios2/linux.h (CPP_SPEC): Define.
4235 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
4237         * config/microblaze/linux.h (CPP_SPEC): Define.
4239 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
4241         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
4242         -pthread is specified.
4244 2015-05-28  Richard Biener  <rguenther@suse.de>
4246         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
4247         (vect_fixup_scalar_cycles_with_patterns): Likewise.
4248         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
4249         after pattern recog.
4250         (vect_create_epilog_for_reduction): Properly handle reductions
4251         with patterns.
4252         (vectorizable_reduction): Likewise.
4253         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
4254         reduction chains.
4255         (vect_get_constant_vectors): Create the correct number of
4256         initial values for reductions.
4257         (vect_schedule_slp_instance): Handle reduction chains that are
4258         type changing properly.
4259         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
4261 2015-05-28  Richard Biener  <rguenther@suse.de>
4263         PR tree-optimization/66142
4264         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
4265         values better in memcpy destination handling.  Handle non-aliasing
4266         we discover here.
4268 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
4270         PR target/63810
4271         * config/darwin-c.c (version_components): New global enum.
4272         (parse_version, version_as_legacy_macro)
4273         (version_as_modern_macro, macosx_version_as_macro): New functions.
4274         (version_as_macro): Remove.
4275         (darwin_cpp_builtins): Use new function.
4277 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
4279         * builtins.c (expand_builtin_acc_on_device): Mark parameters
4280         with ATTRIBUTE_UNUSED.
4282 2015-05-28  Julian Brown  <julian@codesourcery.com>
4284         PR libgomp/65742
4286         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
4287         sequence for !ACCEL_COMPILER.
4289 2015-05-28  Nick Clifton  <nickc@redhat.com>
4291         * config/rx/rx.c (push_regs): New function.  Extracts code from...
4292         (rx_expand_prologue): ... here.  Use push_regs to push even small
4293         spans of registers.
4294         (pop_regs): New function.
4295         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
4296         registers.
4298 2015-05-28  Richard Biener  <rguenther@suse.de>
4300         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
4301         member.
4302         (SLP_INSTANCE_BODY_COST_VEC): Remove.
4303         (vect_update_slp_costs_according_to_vf): Likewise.
4304         (vect_slp_analyze_operations): Update prototype.
4305         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
4306         vect_update_slp_costs_according_to_vf, adjust.
4307         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
4308         (vect_analyze_slp_cost_1): Likewise.
4309         (vect_analyze_slp_cost): Likewise.  Properly deal with
4310         widening reduction ops.  Commit body costs.
4311         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
4312         cost for loops from here.
4313         (vect_slp_analyze_operations): But do it from here when
4314         the vectorization factor is known and stmts are analyzed.
4315         (vect_bb_vectorization_profitable_p): Simplify.
4316         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
4317         (vect_update_slp_costs_according_to_vf): Remove.
4319 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
4320             H.J. Lu  <hongjiu.lu@intel.com>
4322         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
4323         (BUILD_CFLAGS): Likewise.
4324         (BUILD_CXXFLAGS): Likewise.
4325         (LINKER): Add @NO_PIE_FLAG@.
4326         (BUILD_LDFLAGS): Likewise.
4327         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
4328         --enable-default-pie.
4329         * common.opt (fPIE): Initialize to -1.
4330         (fpie): Likewise.
4331         (no-pie): New option.
4332         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
4333         * configure.ac: Add --enable-default-pie.
4334         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
4335         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
4336         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
4337         * gcc.c (NO_PIE_SPEC): New.
4338         (PIE_SPEC): Likewise.
4339         (NO_FPIE1_SPEC): Likewise.
4340         (FPIE1_SPEC): Likewise.
4341         (NO_FPIE2_SPEC): Likewise.
4342         (FPIE2_SPEC): Likewise.
4343         (NO_FPIE2_SPEC): Likewise.
4344         (FPIE_SPEC): Likewise.
4345         (NO_FPIE_SPEC): Likewise.
4346         (NO_FPIC1_SPEC): Likewise.
4347         (FPIC1_SPEC): Likewise.
4348         (NO_FPIC2_SPEC): Likewise.
4349         (FPIC2_SPEC): Likewise.
4350         (NO_FPIC2_SPEC): Likewise.
4351         (FPIC_SPEC): Likewise.
4352         (NO_FPIC_SPEC): Likewise.
4353         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
4354         (FPIE1_OR_FPIC1_SPEC): Likewise.
4355         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
4356         (FPIE2_OR_FPIC2_SPEC): Likewise.
4357         (NO_FPIE_AND_FPIC_SPEC): Likewise.
4358         (FPIE_OR_FPIC_SPEC): Likewise.
4359         (LD_PIE_SPEC): Likewise.
4360         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
4361         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
4362         * config/darwin.h (PIE_SPEC): Renamed to ...
4363         (DARWIN_PIE_SPEC): This.
4364         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
4365         * config/darwin9.h (PIE_SPEC): Renamed to ...
4366         (DARWIN_PIE_SPEC): This.
4367         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
4368         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
4369         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
4370         FPIE2_OR_FPIC2_SPEC.
4371         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
4372         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
4373         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
4374         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
4375         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
4376         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
4377         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
4378         * config/m32r/m32r.h (ASM_SPEC): Likewise.
4379         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
4380         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
4381         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
4382         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
4383         * config/sparc/linux.h (ASM_SPEC): Likewise.
4384         * config/sparc/linux64.h (ASM_SPEC): Likewise.
4385         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
4386         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
4387         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
4388         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
4389         * config/sparc/sparc.h (ASM_SPEC): Likewise.
4390         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
4391         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
4392         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
4393         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
4394         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
4395         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
4396         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
4397         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
4398         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
4399         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
4400         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
4401         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
4402         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
4403         * config/vax/linux.h (ASM_SPEC): Likewise.
4404         * doc/install.texi: Document --enable-default-pie.
4405         * doc/invoke.texi: Document -no-pie.
4406         * config.in: Regenerated.
4407         * configure: Likewise.
4409 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4411         PR rtl-optimization/66168
4412         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
4413         can_move_invariant_reg.
4415 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
4417         PR target/66148
4418         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
4419         REG_EQUAL note when doing insert.
4421         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
4422         instead of "%d" for 'o' operand.
4424 2015-05-27  Nathan Sidwell  <nathan@acm.org>
4426         PR c++/66270
4427         * tree.c (build_pointer_type_for_mode): Canonical type does not
4428         inherit can_alias_all.
4429         (build_reference_type_for_mode): Likewise.
4431 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
4433         * expr.h (array_at_struct_end_p): Move to...
4434         (array_ref_element_size): Likewise.
4435         (component_ref_field_offset): Likewise.
4436         * tree.h (array_ref_element_size): ...here.
4437         (array_at_struct_end_p): Likewise.
4438         (component_ref_field_offset): Likewise.
4439         * expr.c (array_ref_element_size): Move to...
4440         (array_ref_low_bound): Likewise.
4441         (array_at_struct_end_p): Likewise.
4442         (array_ref_up_bound): Likewise.
4443         (component_ref_field_offset): Likewise.
4444         * tree.c (array_ref_element_size): ...here.
4445         (array_ref_low_bound): Likewise.
4446         (array_ref_up_bound): Likewise.
4447         (array_at_struct_end_p): Likewise.
4448         (component_ref_field_offset): Likewise.
4450 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
4451             Szabolcs Nagy  <szabolcs.nagy@arm.com>
4453         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
4455 2015-05-27  Jason Merrill  <jason@redhat.com>
4457         PR bootstrap/66304
4458         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
4459         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
4460         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
4462 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
4464         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
4465         is true.
4467         * statistics.c (statistics_fini_pass): Print pass name.
4469 2015-05-27  Richard Biener  <rguenther@suse.de>
4471         PR tree-optimization/66272
4472         Revert parts of
4473         2014-08-15  Richard Biener  <rguenther@suse.de>
4475         PR tree-optimization/62031
4476         * tree-data-ref.c (dr_analyze_indices): Do not set
4477         DR_UNCONSTRAINED_BASE.
4478         (dr_may_alias_p): All indirect accesses have to go the
4479         formerly DR_UNCONSTRAINED_BASE path.
4480         * tree-data-ref.h (struct indices): Remove
4481         unconstrained_base member.
4482         (DR_UNCONSTRAINED_BASE): Remove.
4484 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
4486         * dwarf2out.c: Remove block_map.
4487         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
4488         (gen_lexical_block_die): Same.
4489         (dwarf2out_function_decl): Remove block_map use.
4490         (dwarf2out_c_finalize): Same.
4491         * tree-core.h (struct tree_block): Add die field.
4492         * tree.h (BLOCK_DIE): New.
4494 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4496         PR target/65358
4497         * expr.c (memory_load_overlap): New function.
4498         (emit_push_insn): When pushing partial args to the stack would
4499         clobber the register part load the overlapping part into a pseudo
4500         and put it into the hard reg after pushing.  Change return type
4501         to bool.  Add bool argument.
4502         * expr.h (emit_push_insn): Change return type to bool.
4503         Add bool argument.
4504         * calls.c (expand_call): Cancel sibcall optimization when encountering
4505         partial argument on targets with ARGS_GROW_DOWNWARD and
4506         !STACK_GROWS_DOWNWARD.
4507         (emit_library_call_value_1): Update callsite of emit_push_insn.
4508         (store_one_arg): Likewise.
4510 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
4512         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
4514 2015-05-27  Martin Liska  <mliska@suse.cz>
4516         * Makefile.in: Add additional dependencies related to memory report
4517         enhancement.
4518         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
4519         * bitmap.c (struct bitmap_descriptor_d): Remove.
4520         (struct loc): Likewise.
4521         (struct bitmap_desc_hasher): Likewise.
4522         (bitmap_desc_hasher::hash): Likewise.
4523         (bitmap_desc_hasher::equal): Likewise.
4524         (get_bitmap_descriptor): Likewise.
4525         (bitmap_register): User new memory descriptor API.
4526         (register_overhead): Likewise.
4527         (bitmap_find_bit): Register nsearches and search_iter statistics.
4528         (struct bitmap_output_info): Remove.
4529         (print_statistics): Likewise.
4530         (dump_bitmap_statistics): Use new memory descriptor.
4531         * bitmap.h (struct bitmap_usage): New class.
4532         * genmatch.c: Extend header file inclusion.
4533         * genpreds.c: Likewise.
4534         * ggc-common.c (struct ggc_usage): New class.
4535         (struct ggc_loc_desc_hasher): Remove.
4536         (ggc_loc_desc_hasher::hash): Likewise.
4537         (ggc_loc_desc_hasher::equal): Likewise.
4538         (struct ggc_ptr_hash_entry): Likewise.
4539         (struct ptr_hash_hasher): Likewise.
4540         (ptr_hash_hasher::hash): Likewise.
4541         (ptr_hash_hasher::equal): Likewise.
4542         (make_loc_descriptor): Likewise.
4543         (ggc_prune_ptr): Likewise.
4544         (dump_ggc_loc_statistics): Use new memory descriptor.
4545         (ggc_record_overhead): Likewise.
4546         (ggc_free_overhead): Likewise.
4547         (final_cmp_statistic): Remove.
4548         (cmp_statistic): Likewise.
4549         (ggc_add_statistics): Liekwise.
4550         (ggc_prune_overhead_list): Likewise.
4551         * hash-map-traits.h: New file.
4552         * hash-map.h (struct default_hashmap_traits): Move the traits to a
4553         separate header file.
4554         * hash-set.h: Pass memory statistics info to ctor.
4555         * hash-table.c (void dump_hash_table_loc_statistics): New function.
4556         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
4557         (hash_table::~hash_table): Register memory release operation.
4558         (hash_table::alloc_entries): Handle memory allocation operation.
4559         (hash_table::expand): Likewise.
4560         * inchash.c (iterative_hash_hashval_t): Move implementation to header
4561         file.
4562         (iterative_hash_host_wide_int): Likewise.
4563         * inchash.h (class hash): Likewise.
4564         * mem-stats-traits.h: New file.
4565         * mem-stats.h: New file.
4566         (mem_location): Add new class.
4567         (mem_usage): Likewise.
4568         (mem_alloc_description): Likewise.
4569         * sese.c: Add new header file inclusision.
4570         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
4571         and hash_set.
4572         * tree-sra.c: Add new header file inclusision.
4573         * vec.c (struct vec_descriptor): Remove.
4574         (hash_descriptor): Likewise.
4575         (struct vec_usage): Likewise.
4576         (struct ptr_hash_entry): Likewise.
4577         (hash_ptr): Likewise.
4578         (eq_ptr): Likewise.
4579         (vec_prefix::register_overhead): Use new memory descriptor API.
4580         (vec_prefix::release_overhead): Likewise.
4581         (add_statistics): Remove.
4582         (dump_vec_loc_statistics): Use new memory descriptor API.
4583         * vec.h (struct vec_prefix): Likewise.
4584         (va_heap::reserve): Likewise.
4585         (va_heap::release): Likewise.
4586         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
4588 2015-05-27  Richard Biener  <rguenther@suse.de>
4590         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
4591         earlier and remove ??? comment.
4592         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
4593         and got called from loop analysis bail out.  Always pass the SLP
4594         node to the vectorizable_* functions.
4595         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
4596         the premature SLP check here.
4597         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
4598         detected SLP stmts.
4599         (vect_detect_hybrid_slp_1): Likewise.
4601 2015-05-26  Jeff Law  <law@redhat.com>
4603         * combine.c (find_split_point): Verify that the shift count is a
4604         constant when choosing (plus (ashift ...)) as a split point.
4606         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
4607         No functional changes.
4609 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
4611         * ipa-polymorphic-call.c
4612         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
4613         case when call target is already known.
4615 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
4617         PR target/65979
4618         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
4619         take into account the case that operands[1] and operands[2]
4620         are the same register.
4622 2015-05-26  Michael Matz  <matz@suse.de>
4624         PR middle-end/66251
4626         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
4627         stores.
4628         (vect_create_vectorized_demotion_stmts): Always set
4629         STMT_VINFO_VEC_STMT, also with SLP.
4630         (vectorizable_store): Handle strided group stores.
4632 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
4634         PR target/66049
4635         * config/aarch64/aarch64.md
4636         (*adds_shift_imm_<mode>):  New pattern.
4637         (*subs_shift_imm_<mode>):  Likewise.
4638         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
4639         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
4640         (*add_uxt<mode>_shift2): Likewise.
4641         (*add_uxtsi_shift2_uxtw): Likewise.
4642         (*sub_uxt<mode>_shift2): Likewise.
4643         (*sub_uxtsi_shift2_uxtw): Likewise.
4645 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
4647         * config/rs6000/constraints.md (Y, U): Use match_test.
4649 2015-05-26  Christian Bruel  <christian.bruel@st.com>
4651         PR target/52144
4652         * config/arm/arm.c (arm_option_check_internal)
4653         (arm_option_params_internal): Check opts->target_flags to set macros.
4654         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
4655         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
4656         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
4657         (builtin_define): Replaced with def_or_undef_macro.
4658         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
4659         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
4660         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
4661         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
4662         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
4663         (TARGET_ARM_FEATURE_LDREX_P)
4664         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
4665         * config/arm/arm-c.c (def_or_undef_macro): New function.
4666         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
4668 2015-05-26  Christian Bruel  <christian.bruel@st.com>
4670         * c-common.h (builtin_define_with_int_value)
4671         (builtin_define_type_sizeof): Declare.
4672         * c-cppbuiltin.c (builtin_define_with_int_value)
4673         (builtin_define_type_sizeof): Externalize.
4674         (builtin_define_std): Cleanup declaration.
4675         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
4676         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
4677         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
4678         (builtin_define, builtin_assert): New macros.
4680 2015-05-26  Richard Biener  <rguenther@suse.de>
4682         PR tree-optimization/66142
4683         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
4684         MEM_REFs for the same base address.
4686 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4688         PR ipa/66181
4689         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
4691 2015-05-26  Jason Merrill  <jason@redhat.com>
4693         * configure.ac: Set CXXFLAGS for ISL test.
4694         * configure: Regenerate.
4696         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
4697         strstr and basename.
4698         * configure: Regenerate.
4700 2015-05-26  Richard Biener  <rguenther@suse.de>
4702         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
4703         X % C -> X & (C - 1) for C being a power-of two to ...
4704         * match.pd: ... patterns.
4706 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
4708         * match.pd (swapped_tcc_comparison): New operator list.
4709         (-A CMP -B): New simplification.
4710         * fold-const.c (fold_comparison): Remove corresponding code.
4712 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
4714         * caller-save.c (init_caller_save): Base temporary register numbers
4715         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
4716         * cfgloopanal.c (init_set_costs): Likewise.
4717         * dojump.c (prefer_and_bit_test): Likewise.
4718         * expr.c (init_expr_target): Likewise.
4719         * ira.c (setup_prohibited_mode_move_regs): Likewise.
4720         * lower-subreg.c (init_lower_subreg): Likewise.
4721         * postreload.c (reload_cse_regs_1): Likewise.
4723 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
4725         * gensupport.h (compute_test_codes): Declare.
4726         * gensupport.c (compute_predicate_codes): Rename to...
4727         (compute_test_codes): ...this.  Generalize error message.
4728         (process_define_predicate): Update accordingly.
4729         * genpreds.c (compute_maybe_allows): Delete.
4730         (add_constraint): Use compute_test_codes to determine whether
4731         something can accept a SUBREG, REG or MEM.
4733 2015-05-26  Torvald Riegel  <triegel@redhat.com>
4735         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
4736         'memory model' to align with C++11; fix description of memory orders;
4737         fix a few typos.
4739 2015-05-26  Richard Biener  <rguenther@suse.de>
4741         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
4742         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
4743         detect whether we apply SLP.  Remove call to
4744         vect_update_slp_costs_according_to_vf.
4745         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
4746         vect_update_slp_costs_according_to_vf from here.  Dispatch
4747         to vect_slp_analyze_operations to analyze SLP stmts.
4748         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
4749         unused bb_vec_info parameter, adjust assert.
4750         (vect_slp_analyze_operations): Pass in the slp instance tree
4751         instead of bb_vec_info.
4752         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
4753         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
4755 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
4757         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
4758         Q_REGS.  Expand comment.
4759         (REG_CLASS_NAMES): Ditto.
4760         (REG_CLASS_CONTENTS): Ditto.
4762 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
4764         PR target/66274
4765         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
4766         when LEGACY_INT_REGNO_P is processed.
4768 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
4770         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
4772 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
4774         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
4775         register if not marked dead/unused, before return.
4777 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
4779         PR lto/66180
4780         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
4781         is set; check for assembler name at LTO time.
4782         (type_in_anonymous_namespace): Remove hacks, check that all
4783         anonymous types are called "<anon>"
4784         (odr_type_p): Simplify; add check for "<anon>"
4785         (odr_subtypes_equivalent): Add odr_type_p check.
4786         * tree.c (need_assembler_name_p): Even anonymous namespace needs
4787         assembler name.
4789 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
4791         * ipa-utils.h (method_class_type): Remove.
4792         * cgraphunit.c (walk_polymorphic_call_targets): Use
4793         TYPE_METHOD_BASETYPE.
4794         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
4795         on main variants only.
4796         (method_class_type): Remove.
4797         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
4798         (build_type_inheritance_graph): Likewise.
4799         * ipa-icf.c (sem_function::equals_wpa): Likewise.
4800         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
4801         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
4803 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
4805         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
4806         is_typedef_decl, typedef_variant_p): Constify.
4807         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
4808         is_typedef_decl, typedef_variant_p): Constify.
4810 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4812         * defaults.h (gen_tablejump): New function.
4813         (HAVE_tablejump): Add default value.
4814         * expr.c: Adjust.
4815         * stmt.c: Likewise.
4817 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4819         * defaults.h (gen_store_multiple): New function.
4820         (HAVE_store_multiple): Add default value.
4821         * expr.c (move_block_from_reg): Adjust.
4823 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4825         * defaults.h (gen_load_multiple): New function.
4826         (HAVE_load_multiple): Add default value.
4827         * expr.c (move_block_to_reg): Adjust.
4829 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4831         * defaults.h (gen_mem_signal_fence): New function.
4832         (HAVE_mem_signal_fence): Add default value.
4833         * optabs.c: Adjust.
4835 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4837         * defaults.h (gen_memory_barrier): New function.
4838         (HAVE_memory_barrier): Add default value.
4839         * optabs.c: Adjust.
4841 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4843         * defaults.h (gen_mem_thread_fence): New function.
4844         (HAVE_mem_thread_fence): Add default definition.
4845         * optabs.c: Adjust.
4847 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4849         * combine.c (find_split_point): Check the value of HAVE_lo_sum
4850         instead of if it is defined.
4851         (combine_simplify_rtx): Likewise.
4852         * lra-constraints.c (process_address_1): Likewise.
4853         * config/darwin.c: Adjust.
4854         * genconfig.c (main): Always define HAVE_lo_sum.
4856 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4858         * genmatch.c (parser::parse_operation): Reject expanding
4859         operator-list inside 'for'.
4861 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4863         * genmatch.c (parser::parse_for): Reject iterator if used as
4864         operator-list.
4866 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4868         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
4869         after end of id-list.
4871 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
4873         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
4874         we do not try to compute canonical type for type that does not need
4875         alias set.
4876         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
4877         FUNCITON_TYPE.
4878         * tree.h (type_with_alias_set_p): New.
4880 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
4882         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
4883         function attributes.
4884         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
4886 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
4888         * Makefile.in (check_gcc_parallelize): Delete.
4889         (lang_checks_parallelized): Update comment.
4891 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
4893         PR rtl-optimization/66237
4894         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
4895         location of an "as_a" cast.
4897 2015-05-22  Jeff Law  <law@redhat.com>
4899         * config/pa/pa.md (non-canonical shift-add insns): Remove.
4900         (peepholes with non-canonical RTL sources): Remove.
4901         (peepholes for indexed stores of FP regs in integer modes): Match and
4902         generate canonical RTL.
4904 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
4906         PR tree-optimization/63387
4907         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
4908         ((x ord x) & (y ord y) -> (x ord y),
4909         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
4910         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
4911         vectors like scalars.
4913 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
4915         * convert.c (convert_to_integer, convert_to_vector): Include the
4916         types in the error message.
4918 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
4920         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
4921         simplifications.
4923 2015-05-22  Jeff Law  <law@redhat.com>
4925         * config/pa/pa.md (integer_indexed_store splitters): Use
4926         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
4927         insns -- adjusting the constant 2nd operand accordingly.
4929         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
4930         (plus (ashift X log2) Y) if it is a split point.
4932         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
4933         out of hppa_legitimize_address to handle both forms of a multiply
4934         by 2, 4 or 8.
4935         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
4936         Always generate the ASHIFT variant as the result is not directly
4937         used in a MEM.  Update comments and refactor slightly to improve
4938         readability.
4940 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4942         PR target/65491
4943         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
4944         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
4945         (aarch64_composite_type_p): Return false if given type and mode are
4946         for a short vector.
4948 2015-05-22  Richard Biener  <rguenther@suse.de>
4950         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
4951         member.
4952         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
4953         patterns when determining whether SLP is pure.
4954         (vect_is_slp_reduction): Remove check for pattern stmts.
4955         (vect_is_simple_reduction_1): Remove dead code.
4956         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
4957         (vect_get_and_check_slp_defs): Pass in the stmt number.
4958         Allow the first def in a reduction to be not a pattern stmt when
4959         the rest of the stmts def are patterns.
4960         (vect_build_slp_tree_1): Allow tcc_expression codes like
4961         SAD_EXPR and DOT_PROD_EXPR.
4962         (vect_build_slp_tree): Adjust.
4963         (vect_analyze_slp): Refactor and move BB vect error message ...
4964         (vect_slp_analyze_bb_1): ... here.
4966 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
4968         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
4969         for CSWTCH temporary.
4971 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4973         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
4974         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
4975         unknown unspecs.
4977 2015-05-22  Richard Biener  <rguenther@suse.de>
4979         PR tree-optimization/66251
4980         * tree-vect-stmts.c (vectorizable_conversion): Properly
4981         set STMT_VINFO_VEC_STMT even for the SLP case.
4983 2015-05-22  Marek Polacek  <polacek@redhat.com>
4985         * doc/extend.texi: Use @pxref instead of @xref.
4987 2015-05-22  hiraditya  <hiraditya@msn.com>
4989         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
4990         redundant if.
4992 2015-05-22  Richard Biener  <rguenther@suse.de>
4994         PR tree-optimization/65701
4995         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4996         Move peeling cost models into one place.  Peel for alignment
4997         for single loads only if an aligned load is cheaper than
4998         an unaligned load.
5000 2015-05-22  Marek Polacek  <polacek@redhat.com>
5002         PR c/47043
5003         * doc/extend.texi (Enumerator Attributes): New section.
5004         Document syntax of enumerator attributes.
5006 2015-05-22  Richard Biener  <rguenther@suse.de>
5008         * tree-vect-loop.c (get_reduction_op): New function.
5009         (vect_model_reduction_cost): Use it, add reduc_index parameter.
5010         Make ready for BB reductions.
5011         (vect_create_epilog_for_reduction): Use get_reduction_op.
5012         (vectorizable_reduction): Init reduc_index to a valid value.
5013         Adjust vect_model_reduction_cost call.
5014         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
5015         operand for reduction defaults.  Add SAD_EXPR support.
5016         Assert we have a neutral op for SLP reductions.
5017         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
5018         walking pattern stmt ops only recurse to SSA names.
5020 2015-05-22  Richard Biener  <rguenther@suse.de>
5022         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
5023         assert with guard, remove check on detected reduction.
5024         (vect_recog_sad_pattern): Likewise.
5025         (vect_recog_widen_sum_pattern): Likewise.
5027 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5029         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
5030         __always_inline__ attribute.
5031         (vaesdq_u8): Likewise.
5032         (vaesmcq_u8): Likewise.
5033         (vaesimcq_u8): Likewise.
5034         (vsha1cq_u32): Likewise.
5035         (vsha1mq_u32): Likewise.
5036         (vsha1pq_u32): Likewise.
5037         (vsha1h_u32): Likewise.
5038         (vsha1su0q_u32): Likewise.
5039         (vsha1su1q_u32): Likewise.
5040         (vsha256hq_u32): Likewise.
5041         (vsha256h2q_u32): Likewise.
5042         (vsha256su0q_u32): Likewise.
5043         (vsha256su1q_u32): Likewise.
5044         (vmull_p64): Likewise.
5045         (vmull_high_p64): Likewise.
5047 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5049         * final.c (final_scan_insn): Don't check HAVE_peephole with the
5050         preprocessor.
5051         * output.h: Likewise.
5052         * genconfig.c (main): Alwways define HAVE_peephole.
5053         * genpeep.c: Don't emit checks of HAVE_peephole.
5055 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5057         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
5058         check HAVE_conditional_move with the preprocessor.
5060 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5062         * genconfig.c (main): Always define HAVE_conditional_move.
5063         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
5064         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
5065         is defined.
5067 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5069         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
5070         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
5071         and FRAME_POINTER_REGNUM with the preprocessor.
5073 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5075         * defaults.h: Add default for STACK_PUSH_CODE.
5076         * expr.c: Don't redefine STACK_PUSH_CODE.
5077         * recog.c: Likewise.
5079 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5081         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
5082         sched-deps.c: Use if instead of preprocessor checks with
5083         STACK_GROWS_DOWNWARD.
5085 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5087         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
5088         is defined.
5089         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
5090         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
5091         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
5092         * doc/tm.texi: Regenerate.
5094 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5096         PR target/66232
5097         * config/i386/constraints.md (Bg): New constraint for GOT memory
5098         operand.
5099         * config/i386/i386.md (*call_got_x32): New pattern.
5100         (*call_value_got_x32): Likewise.
5101         * config/i386/predicates.md (GOT_memory_operand): New predicate.
5103 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
5105         PR tree-optimization/66233
5106         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
5107         Simplify.
5109 2015-05-21  Jeff Law  <law@redhat.com>
5111         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
5112         than MULT for shadd sequences.
5114 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
5116         * alias.c (alias_stats): New static var.
5117         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
5118         (dump_alias_stats_in_alias_c): New function.
5119         * alias.h (dump_alias_stats_in_alias_c): Declare.
5120         * tree-ssa-alias.c (dump_alias_stats): Call it.
5122 2015-05-08  Michael Matz  <matz@suse.de>
5124         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
5125         to strided_p.
5126         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
5127         (STMT_VINFO_STRIDED_P): ... this.
5128         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
5129         (vect_verify_datarefs_alignment): Likewise.
5130         (vect_enhance_data_refs_alignment): Likewise.
5131         (vect_analyze_data_ref_access): Likewise.
5132         (vect_analyze_data_refs): Accept strided stores.
5133         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
5134         (vect_model_load_cost): Adjust for macro rename.
5135         (vectorizable_mask_load_store): Likewise.
5136         (vectorizable_load): Likewise.
5137         (vectorizable_store): Open code strided stores.
5139 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5141         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
5142         Document sqrt_insn.
5144 2015-05-21  Richard Biener  <rguenther@suse.de>
5146         PR c++/66211
5147         * match.pd: Guard pattern optimzing (int)(float)int
5148         conversions to apply only on GIMPLE.
5150 2015-05-21  Jeff Law  <law@redhat.com>
5152         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
5153         multiply-accumulate/shift-add insn generation.
5155 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
5157         PR target/54236
5158         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
5159         operands[1] are the same.
5161 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
5163         PR middle-end/66221
5164         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
5165         build_distinct_type_copy to copy bounds.
5167 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5169         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
5170         Change to unsigned int.
5172 2015-05-20  Jeff Law  <law@redhat.com>
5174         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
5175         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
5176         (pa_shadd_constant_p): Allow constants for shadd insns rather
5177         than valid scaling constants for memory addresses.
5178         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
5179         * config/pa/predicates.md (mem_shadd_operand): New predicate.
5180         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
5181         (shift-add insns using ASHIFT): New patterns.
5183 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
5185         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
5186         feasible.
5187         (fix_up_fall_thru_edges): Likewise.
5188         (fix_crossing_conditional_branches): Likewise. Promote jump targets
5189         from to rtx_insn to rtx_code_label where feasible.
5190         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
5191         gen_move_insn (returned type changed to rtx_insn).
5192         * builtins.c (expand_errno_check): Fix arguments of
5193         do_compare_rtx_and_jump (now expects rtx_code_label).
5194         (expand_builtin_acc_on_device): Likewise.
5195         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
5196         invert_jump (now exprects rtx_jump_insn).
5197         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
5198         (construct_init_block): Use rtx_code_label.
5199         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
5200         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
5201         calling redirect_jump.
5202         (patch_jump_insn): Likewise.
5203         (redirect_branch_edge): Likewise.
5204         (force_nonfallthru_and_redirect): Likewise.
5205         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
5206         when suitable.
5207         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
5208         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
5209         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
5210         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
5211         to store the value retured by gen_label_rtx.
5212         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
5213         rtx_jump_insn.
5214         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
5215         (split_branches): Fix calls of redirect_jump.
5216         * dojump.c (jumpifnot): Promote argument type from rtx to
5217         rtx_code_label.
5218         (jumpifnot_1): Likewise.
5219         (jumpif): Likewise.
5220         (jumpif_1): Likewise.
5221         (do_jump_1): Likewise.
5222         (do_jump): Likewise. Use rtx_code_label when feasible.
5223         (do_jump_by_parts_greater_rtx): Likewise.
5224         (do_jump_by_parts_zero_rtx): Likewise.
5225         (do_jump_by_parts_equality_rtx): Likewise.
5226         (do_compare_rtx_and_jump): Likewise.
5227         * dojump.h: Update function prototypes.
5228         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
5229         returns rtx_insn).
5230         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
5231         rtx_jump_insn.
5232         (emit_label_before): Likewise.
5233         (emit_jump_insn_after_noloc): Likewise.
5234         (emit_jump_insn_after_setloc): Likewise.
5235         (emit_jump_insn_after): Likewise
5236         (emit_jump_insn_before_setloc): Likewise.
5237         (emit_jump_insn_before): Likewise.
5238         (emit_label_before): Promote return type to rtx_code_label.
5239         (emit_label): Likewise.
5240         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
5241         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
5242         gen_move_insn.
5243         (emit_stack_restore): Likewise.
5244         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
5245         (do_cmp_and_jump): Likewise.
5246         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
5247         from rtx to rtx_code_label.
5248         (gen_move_insn_uncast): New function.
5249         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
5250         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
5251         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
5252         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
5253         invert_jump_1 and redirect_jump_1.
5254         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
5255         do_compare_rtx_and_jump.
5256         (expand_addsub_overflow): Likewise.
5257         (expand_neg_overflow): Likewise.
5258         (expand_mul_overflow): Likewise.
5259         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
5260         return value of gen_move_insn.
5261         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
5262         * loop-doloop.c (add_test): Use rtx_code_label.
5263         (doloop_modify): Likewise.
5264         (doloop_optimize): Likewise.
5265         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
5266         * lra-constraints.c (emit_spill_move): Remove cast of value returned
5267         by gen_move_insn.
5268         (inherit_reload_reg): Add cast when calling dump_insn_slim.
5269         (split_reg): Likewise.
5270         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
5271         gen_move_insn.
5272         * optabs.c (expand_binop_directly): Remove casts of values returned by
5273         maybe_gen_insn.
5274         (expand_unop_direct): Likewise.
5275         (expand_abs): Likewise.
5276         (maybe_emit_unop_insn): Likewise.
5277         (maybe_gen_insn): Promote return type to rtx_insn.
5278         * optabs.h: Update prototype of maybe_gen_insn.
5279         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
5280         redundant cast.
5281         * recog.c (struct peep2_insn_data): Promote type of insn field to
5282         rtx_insn.
5283         (peep2_reinit_state): Use NULL instead of NULL_RTX.
5284         (peep2_attempt): Remove casts of insn in peep2_insn_data.
5285         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
5286         * recog.h (struct insn_gen_fn): Promote return types of function
5287         pointers and operator ().from rtx to rtx_insn.
5288         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
5289         (fill_eager_delay_slots): Likewise.
5290         (relax_delay_slots): Likewise.
5291         (make_return_insns): Likewise.
5292         (dbr_schedule): Likewise.
5293         (optimize_skips): Likewise.
5294         (reorg_redirect_jump): Likewise.
5295         (fill_slots_from_thread): Likewise.
5296         * reorg.h: Update prototypes.
5297         * resource.c (find_dead_or_set_registers): Use dyn_cast to
5298         rtx_jump_insn instead of check.  Use it's jump_target method.
5299         * rtl.h (rtx_jump_insn::jump_label): Define new method.
5300         (rtx_jump_insn::jump_target): Define new method.
5301         (rtx_jump_insn::set_jump_target): Define new method.
5302         * rtlanal.c (tablejump_p): Promote type of one local variable.
5303         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
5304         (sched_analyze_insn): Likewise.
5305         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
5306         (print_insn): Likewise.
5307         * stmt.c (label_rtx): Promote return type to rtx_insn.
5308         (force_label_rtx): Likewise.
5309         (jump_target_rtx): Define new function.
5310         (expand_label): Use it, get rid of one cast.
5311         (expand_naked_return): Promote rtx to rtx_code_label.
5312         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
5313         (expand_case): Use rtx_code_label instread of rtx where feasible.
5314         (expand_sjlj_dispatch_table): Likewise.
5315         (emit_case_nodes): Likewise.
5316         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
5317         * store-motion.c (insert_store): Make use of new return type of
5318         gen_move_insn and remove a cast.
5319         (replace_store_insn): Likewise.
5321 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
5323         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
5324         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
5326 2015-05-20  Jeff Law  <law@redhat.com>
5328         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
5329         dispose of the jump thread path when the jump threading
5330         opportunity is cancelled.
5332 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5334         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
5335         when printing the caret character.
5337 2015-05-20  Marek Polacek  <polacek@redhat.com>
5339         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
5341 2015-05-20  Marek Polacek  <polacek@redhat.com>
5343         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
5344         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
5345         * gimple-fold.c (canonicalize_bool): Likewise.
5346         (same_bool_result_p): Likewise.
5347         * tree-if-conv.c (parse_predicate): Likewise.
5349 2015-05-20  Marek Polacek  <polacek@redhat.com>
5351         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
5352         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
5354 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5356         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
5357         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
5358         values.
5360 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
5362         * config/mips/mips.h (micromips_globals): Declare.
5364 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
5366         * timevar.def (TV_INITIALIZE_RTL): New.
5367         * toplev.c (initialize_rtl): Use an auto_timevar to account this
5368         function's time to TV_INITIALIZE_RTL.
5370 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
5372         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
5373         gimple_build_nop calls.
5374         (chkp_find_bounds_for_elem): Likewise.
5375         (chkp_get_zero_bounds): Likewise.
5376         (chkp_get_none_bounds): Likewise.
5377         (chkp_get_bounds_by_definition): Likewise.
5378         (chkp_generate_extern_var_bounds): Likewise.
5379         (chkp_get_bounds_for_decl_addr): Likewise.
5380         (chkp_get_bounds_for_string_cst): Likewise.
5382 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
5384         PR tree-optimization/65447
5385         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
5386         (dump_use, dump_uses): Support to dump sub use.
5387         (record_use): New parameters to support sub use.  Remove call to
5388         dump_use.
5389         (record_sub_use, record_group_use): New functions.
5390         (compute_max_addr_offset, split_all_small_groups): New functions.
5391         (group_address_uses, rewrite_use_address): New functions.
5392         (strip_offset): New declaration.
5393         (find_interesting_uses_address): Call record_group_use.
5394         (add_candidate): New assertion.
5395         (infinite_cost_p): Move definition forward.
5396         (add_costs): Check INFTY cost and return immediately.
5397         (get_computation_cost_at): Clear setup cost and dependent bitmap
5398         for sub uses.
5399         (determine_use_iv_cost_address): Compute cost for sub uses.
5400         (rewrite_use_address_1): Rename from old rewrite_use_address.
5401         (free_loop_data): Free sub uses.
5402         (tree_ssa_iv_optimize_loop): Call group_address_uses.
5404 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
5405             Jim Wilson  <jim.wilson@linaro.org>
5407         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
5408         new  fields loadv and storev.
5409         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
5410         Initialize loadv and storev.
5411         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
5412         (cortexa53_extra_costs): Likewise.
5413         (cortexa57_extra_costs): Likewise.
5414         (xgene1_extra_costs): Likewise.
5415         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
5416         rtx_costs.
5418 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
5420         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
5421          storev.
5422         (cortexa8_extra_costs): Likewise.
5423         (cortexa5_extra_costs): Likewise.
5424         (cortexa7_extra_costs): Likewise.
5425         (cortexa12_extra_costs): Likewise.
5426         (cortexa15_extra_costs): Likewise.
5427         (v7m_extra_costs): Likewise.
5429 2015-05-20  Jeff Law  <law@redhat.com>
5431         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
5432         instead of open-coded version.  Also delete the jump thread created
5433         within this function.
5435 2015-05-20  Alan Modra  <amodra@gmail.com>
5437         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
5438         stack adjusting insn.  Formatting.
5439         (rs6000_emit_prologue): Track stack adjusting insn, and use of
5440         r12.  If possible, emit first -fsplit-stack arg pointer insn
5441         before stack adjust.  Don't use r12 to save cr if split-stack.
5443 2015-05-20  Alan Modra  <amodra@gmail.com>
5445         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
5446         Define.
5447         (rs6000_supports_split_stack): New function.
5448         * gcc/config/rs6000/rs6000.c (machine_function): Add
5449         split_stack_arg_pointer.
5450         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
5451         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
5452         rather than virtual_incoming_args_rtx.
5453         (rs6000_va_start): Likewise.
5454         (split_stack_arg_pointer_used_p): New function.
5455         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
5456         (morestack_ref): New var.
5457         (gen_add3_const, rs6000_expand_split_stack_prologue,
5458         rs6000_internal_arg_pointer, rs6000_live_on_entry,
5459         rs6000_split_stack_space_check): New functions.
5460         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
5461         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
5462         (UNSPECV_SPLIT_STACK_RETURN): Define.
5463         (split_stack_prologue, load_split_stack_limit,
5464         load_split_stack_limit_di, load_split_stack_limit_si,
5465         split_stack_return, split_stack_space_check): New expands and insns.
5466         * gcc/config/rs6000/rs6000-protos.h
5467         (rs6000_expand_split_stack_prologue): Declare.
5468         (rs6000_split_stack_space_check): Declare.
5470 2015-05-20  Alan Modra  <amodra@gmail.com>
5472         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
5473         (rs6000_stack_info): Don't zero offsets when not saving registers.
5474         (debug_stack_info): Adjust to omit printing unused offsets,
5475         as before.
5476         (direct_return): Test vrsave_size rather than vrsave_mask.
5477         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
5478         (rs6000_emit_epilogue): Likewise.
5480 2015-05-20  Alan Modra  <amodra@gmail.com>
5482         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
5483         when not saving registers.
5484         (debug_stack_info): Adjust to omit printing unused offsets,
5485         as before.
5486         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
5487         expression.
5489 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5491         PR c++/65835
5492         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
5493         value_type to const char *.
5495 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
5497         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
5498         to build a biarch toolchain again.
5500 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
5502         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
5503         or implicit declarations.
5504         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
5505         into it.
5506         (get_odr_type): Check type has linkage before adding bases.
5507         (register_odr_type): Check that type has linkage before adding it.
5508         (type_known_to_have_no_deriavations_p): Rename to ..
5509         (type_known_to_have_no_derivations_p): This one.
5510         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
5511         (type_known_to_have_no_derivations_p): This one.
5512         * ipa-polymorphic-call.c
5513         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
5514         type has linkage.
5516 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
5518         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
5519         (layout_type): Use RECORD_OR_UNION_TYPE_P.
5521 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5523         * config/s390/s390.c (s390_vector_bool_type_p): New function.
5524         (s390_invalid_binary_op): New function.
5525         (TARGET_INVALID_BINARY_OP): Define macro.
5527 2015-05-19  David Sherwood  <david.sherwood@arm.com>
5529         * loop-invariant.c (create_new_invariant): Don't calculate address cost
5530         if mode is not a scalar integer.
5531         (get_inv_cost): Increase computational cost for unused invariants.
5533 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5535         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
5536         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
5537         * config/s390/s390-builtin-types.def: New file.
5538         * config/s390/s390-builtins.def: New file.
5539         * config/s390/s390-builtins.h: New file.
5540         * config/s390/s390-c.c: New file.
5541         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
5542         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
5543         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
5544         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
5545         prototypes.
5546         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
5547         Include.
5548         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
5549         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
5550         variable definitions.
5551         (s390_const_operand_ok): New function.
5552         (s390_expand_builtin): Rewrite.
5553         (s390_init_builtins): New function.
5554         (s390_handle_vectorbool_attribute): New function.
5555         (s390_attribute_table): Add s390_vector_bool attribute.
5556         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
5557         (s390_branch_condition_mask): Generate masks for new modes.
5558         (s390_expand_vec_compare_cc): New function.
5559         (s390_mangle_type): Add mangling for vector bool types.
5560         (enum s390_builtin): Remove.
5561         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
5562         efpc builtins.
5563         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
5564         s390_cpu_cpp_builtins.
5565         (REGISTER_TARGET_PRAGMAS): New macro.
5566         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
5567         (insn_cmp mode attribute): Add new CC modes.
5568         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
5569         (lcbb): New pattern definition.
5570         * config/s390/s390intrin.h: Include vecintrin.h.
5571         * config/s390/t-s390: New file.
5572         * config/s390/vecintrin.h: New file.
5573         * config/s390/vector.md: Include vx-builtins.md.
5574         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
5575         support.
5577 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5579         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
5580         CCVFHE.
5581         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
5582         (s390_select_ccmode): Likewise.
5583         (s390_canonicalize_comparison): Swap operands if necessary.
5584         (s390_expand_vec_compare_scalar): Expand DFmode compare using
5585         single element vector instructions.
5586         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
5587         (s390_branch_condition_mask): Generate CC masks for the new modes.
5588         * config/s390/s390.md (v0, vf, vd): New mode attributes.
5589         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
5590         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
5591         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
5592         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
5593         (*extend<DSF:mode><BFP:mode>2): New insn definition.
5594         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
5595         (extend<DSF:mode><BFP:mode>2): Turn into expander.
5596         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
5597         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
5598         (sqrt<mode>2): Add vector instruction.
5600 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5602         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
5603         constraints.
5604         * config/s390/predicates.md (const0_operand, constm1_operand)
5605         (constable_operand): Accept vector operands.
5606         * config/s390/s390-modes.def: Add supported vector modes.
5607         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
5608         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
5609         (s390_bytemask_vector_p, s390_expand_vec_strlen)
5610         (s390_expand_vec_compare, s390_expand_vcond)
5611         (s390_expand_vec_init): Add prototypes.
5612         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
5613         (s390_vector_mode_supported_p): New function.
5614         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
5615         (s390_contiguous_bitmask_vector_p): New function.
5616         (s390_bytemask_vector_p): New function.
5617         (s390_split_ok_p): Vector regs don't work either.
5618         (regclass_map): Add VEC_REGS.
5619         (s390_legitimate_constant_p): Handle vector constants.
5620         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
5621         (legitimate_reload_vector_constant_p): New function.
5622         (s390_preferred_reload_class): Handle CONST_VECTOR.
5623         (s390_reload_symref_address):  Likewise.
5624         (s390_secondary_reload): Vector memory instructions only support
5625         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
5626         (s390_emit_ccraw_jump): New function.
5627         (s390_expand_vec_strlen): New function.
5628         (s390_expand_vec_compare): New function.
5629         (s390_expand_vcond): New function.
5630         (s390_expand_vec_init): New function.
5631         (s390_dwarf_frame_reg_mode): New function.
5632         (print_operand): Handle addresses with 'O' and 'R' constraints.
5633         (NR_C_MODES, constant_modes): Add vector modes.
5634         (s390_output_pool_entry): Handle vector constants.
5635         (s390_hard_regno_mode_ok): Handle vector registers.
5636         (s390_class_max_nregs): Likewise.
5637         (s390_cannot_change_mode_class): New function.
5638         (s390_invalid_arg_for_unprototyped_fn): New function.
5639         (s390_function_arg_vector): New function.
5640         (s390_function_arg_float): Remove size variable.
5641         (s390_pass_by_reference): Handle vector arguments.
5642         (s390_function_arg_advance): Likewise.
5643         (s390_function_arg): Likewise.
5644         (s390_return_in_memory): Vector values are returned in a VR if
5645         possible.
5646         (s390_function_and_libcall_value): Handle vector arguments.
5647         (s390_gimplify_va_arg): Likewise.
5648         (s390_call_saved_register_used): Consider the arguments named.
5649         (s390_conditional_register_usage): Disable v16-v31 for non-vec
5650         targets.
5651         (s390_preferred_simd_mode): New function.
5652         (s390_support_vector_misalignment): New function.
5653         (s390_vector_alignment): New function.
5654         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
5655         (TARGET_VECTOR_MODE_SUPPORTED_P)
5656         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
5657         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
5658         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
5659         (TARGET_VECTOR_ALIGNMENT): Define target macro.
5660         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
5661         (FIRST_PSEUDO_REGISTER): Increase value.
5662         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
5663         (VECTOR_REG_P): Define macros.
5664         (FIXED_REGISTERS, CALL_USED_REGISTERS)
5665         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
5666         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
5667         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
5668         Add vector registers.
5669         (CANNOT_CHANGE_MODE_CLASS): Call C function.
5670         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
5671         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
5672         memory.
5673         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
5674         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
5675         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
5676         (VR*_REGNUM): New constants.
5677         (ALL): New mode iterator.
5678         (INTALL): Remove mode iterator.
5679         Include vector.md.
5680         (movti): Implement TImode moves for VRs.
5681         Disable TImode splitter for VR targets.
5682         Implement splitting TImode GPR<->VR moves.
5683         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
5684         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
5685         reload<mode>_la_in, reload<mode>_la_out.
5686         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
5687         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
5688         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
5689         (mov<mode> SF SD): Prefer lder, lde for loading.
5690         Add lrl and strl instructions.
5691         Add vector instructions.
5692         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
5693         Call s390_expand_vec_strlen on z13.
5694         (*cc_to_int): Change predicate to nonimmediate_operand.
5695         (addti3): Rename to *addti3.  New expander.
5696         (subti3): Rename to *subti3.  New expander.
5697         * config/s390/vector.md: New file.
5699 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5701         * common/config/s390/s390-common.c (processor_flags_table): Add
5702         z13.
5703         * config.gcc: Add z13.
5704         * config/s390/s390-opts.h (enum processor_type): Add
5705         PROCESSOR_2964_Z13.
5706         * config/s390/s390.c (s390_adjust_priority): Check for
5707         PROCESSOR_2964_Z13.
5708         (s390_reorg): Likewise.
5709         (s390_sched_reorder): Likewise.
5710         (s390_sched_variable_issue): Likewise.
5711         (s390_loop_unroll_adjust): Likewise.
5712         (s390_option_override): Likewise. Default to -mvx when available.
5713         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
5714         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
5715         (TARGET_VX_ABI): Define macros.
5716         macros.
5717         (TARGET_DEFAULT): Add MASK_OPT_VX.
5718         * config/s390/s390.md ("cpu" attribute): Add z13.
5719         ("cpu_facility" attribute): Add vec.
5720         * config/s390/s390.opt (processor_type): Add z13.
5721         (mvx): New options.
5722         * doc/invoke.texi: Add z13 option for -march.
5724 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5726         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
5727         mode check to make sure that only scalar integer values are
5728         accepted.
5730 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
5732         * tree.c (verify_type_variant): Fix #undef.
5733         (gimple_canonical_types_compatible_p): Move here from lto.c
5734         (verify_type): Verify TYPE_CANONICAL compatibility.
5735         * tree.h (gimple_canonical_types_compatible_p): Declare.
5737 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
5739         PR middle-end/66199
5740         * tree.h (OMP_TEAMS_COMBINED): Define.
5741         * gimplify.c (enum gimplify_omp_var_data): Add
5742         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
5743         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
5744         (omp_notice_variable): Accept both ORT_TEAMS
5745         and ORT_COMBINED_TEAMS.  Don't recurse if
5746         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
5747         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
5748         GOVD_FIRSTPRIVATE.
5749         (omp_no_lastprivate): New function.
5750         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
5751         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
5752         notice_outer and set appropriate bits, otherwise make
5753         sure default(none) combined constructs won't complain.
5754         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
5755         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
5756         omp_no_lastprivate either remove the clause or turn it
5757         into OMP_CLAUSE_PRIVATE.
5758         (gimplify_omp_for): Fix up handling of implicit
5759         lastprivate or linear iterators.
5760         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
5761         ORT_COMBINED_TEAMS.
5762         * omp-low.c (lower_omp_for_lastprivate): For combined
5763         for simd use fd.loop.n2 from the for rather than simd.
5765 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
5767         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
5768         instead of gen_rtx_raw_REG.
5769         (cris_expand_epilogue): Likewise.
5770         * config/microblaze/microblaze.c (microblaze_classify_address):
5771         Likewise.
5772         * config/sparc/sparc.md: Likewise.
5774 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
5776         * config/alpha/alpha.c (alpha_legitimize_reload_address)
5777         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
5778         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
5779         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
5780         Use CASE_CONST_SCALAR_INT.
5781         (print_operand) <case 'M'>: Use mode_width_operand to check the
5782         value of the constant.
5783         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
5784         * config/alpha/predicates.md (input_operand): Use general_operand
5785         instead of match_code as operand check.
5786         (symbolic_operand): Use match_code with subexpression digits.
5787         * config/alpha/constraints.md (Q): Ditto.
5789 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5791         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
5793 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5795         * config/s390/s390.c (s390_secondary_reload): Fix check for
5796         load/store relative.
5798 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5800         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
5801         alternative_mask to uint64_t.
5803 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
5805         PR tree-optimization/66187
5806         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
5807         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
5808         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
5810 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
5812         * diagnostic.c (diagnostic_report_current_module): Strengthen
5813         local "new_map" from const line_map * to
5814         const line_map_ordinary *.
5815         * genmatch.c (error_cb): Likewise for local "map".
5816         (output_line_directive): Likewise for local "map".
5817         * input.c (expand_location_1): Likewise for local "map".
5818         Pass NULL rather than &map to
5819         linemap_unwind_to_first_non_reserved_loc, since the value is never
5820         read from there, and the value written back not read from here.
5821         (is_location_from_builtin_token): Strengthen local "map" from
5822         const line_map * to const line_map_ordinary *.
5823         (dump_location_info): Strengthen locals "map" from
5824         line_map *, one to const line_map_ordinary *, the other
5825         to const line_map_macro *.
5826         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
5827         const line_map * to const line_map_macro *.
5828         (maybe_unwind_expanded_macro_loc): Add a call to
5829         linemap_check_macro when writing to the "map" field of the
5830         loc_map_pair.
5831         Introduce local const line_map_ordinary * "ord_map", using it in
5832         place of "map" in the part of the function where we know we have
5833         an ordinary map.  Strengthen local "m" from const line_map * to
5834         const line_map_ordinary *.
5836 2015-05-19  Nick Clifton  <nickc@redhat.com>
5838         PR target/66156
5839         * config/msp430/msp430.md (zero_extendhisi2): Add support for
5840         separate source and destination registers.
5842 2015-05-19  Richard Biener  <rguenther@suse.de>
5844         PR tree-optimization/66165
5845         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
5846         for no load permutation.
5848         PR tree-optimization/66185
5849         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
5850         when building the SLP node from scalars.
5852 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
5853             Tristan Gingold  <gingold@adacore.com>
5855         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
5856         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
5857         (expand_stack_restore): Call record_new_stack_level.
5858         (expand_stack_save): Do not call do_pending_stack_adjust.
5859         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
5860         * calls.c (expand_call): Call record_new_stack_level for alloca.
5861         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
5862         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
5863         (update_sjlj_context): New global function.
5864         * except.h (update_sjlj_context): Declare.
5865         * explow.c (record_new_stack_level): New global function.
5866         (allocate_dynamic_stack_space): Call record_new_stack_level.
5867         * explow.h (record_new_stack_level): Declare.
5868         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
5869         * cfgrtl.c (duplicate_insn_chain): Likewise.
5871 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5873         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
5874         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
5875         STACK_GROWS_DOWNWARD as normal if.
5876         (expand_call): Likewise.
5878 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
5880         PR target/54236
5881         * config/sh/sh.md (*round_int_even): New insn_and_split and
5882         accompanying new unnamed split.
5884 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
5886         * bitmap.c (bitmap_set_range): Handle count==1 specially.
5887         (bitmap_clear_range): Likewise.
5888         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
5889         bitmap_set_range unconditionally.
5890         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
5891         * df-scan.c (df_mark_reg): Likewise.
5892         * haifa-sched.c (setup_ref_regs): Likewise.
5893         * sched-rgn.c (update_live_1): Likewise.
5895 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
5897         * regs.h (END_HARD_REGNO): Delete.
5898         (END_REGNO): Move to...
5899         * rtl.h: ...here.
5900         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
5901         * caller-save.c (mark_set_regs): Likewise.
5902         * combine.c (move_deaths, distribute_notes): Likewise.
5903         * cse.c (invalidate, invalidate_for_call): Likewise.
5904         * df-scan.c (df_ref_record): Likewise.
5905         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
5906         (record_last_reg_set_info): Likewise.
5907         * reg-stack.c (convert_regs_exit): Likewise.
5908         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
5909         * resource.c (update_live_status): Likewise.
5910         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
5912 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
5914         * rtl.h (reg_info): Add an nregs field.
5915         (REG_NREGS): Use it.
5916         (SET_REGNO_RAW): Delete.
5917         (set_regno_raw): New function.
5918         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
5919         (END_REGNO): Redefine in terms of REG_NREGS.
5920         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
5921         SET_REGNO_RAW.
5922         * emit-rtl.c (set_mode_and_regno): Likewise.
5923         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
5924         instead of SET_REGNO_RAW.
5926 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
5928         * rtl.h (PUT_MODE_RAW): New macro.
5929         (PUT_REG_NOTE_KIND): Use it.
5930         (set_mode_and_regno): Declare.
5931         (gen_raw_REG): Change regno to "unsigned int".
5932         (gen_rtx_REG): Change "unsigned" to "unsigned int".
5933         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
5934         use set_mode_and_regno to change the mode of registers.
5935         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
5936         * emit-rtl.c (set_mode_and_regno): New function.
5937         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
5938         * caller-save.c (reg_save_code): Use set_mode_and_regno.
5939         * expr.c (init_expr_target): Likewise.
5940         * ira.c (setup_prohibited_mode_move_regs): Likewise.
5941         * postreload.c (reload_cse_simplify_operands): Likewise.
5943 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
5945         * caller-save.c (init_caller_save): Use word_mode and
5946         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
5947         * expr.c (init_expr_target): Likewise.
5948         * ira.c (setup_prohibited_mode_move_regs): Likewise.
5949         * postreload.c (reload_cse_regs_1): Likewise.
5951 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
5953         * rtl.def (REG): Change format to "r".
5954         * rtl.h (rtunion): Remove rt_reg.
5955         (reg_info): New structure.
5956         (rtx_def): Add reg field to main union.
5957         (X0REGATTR): Delete.
5958         (REG_CHECK): New macro.
5959         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
5960         * rtl.c (rtx_format): Document "r".
5961         (rtx_code_size): Handle REG specially.
5962         * gengenrtl.c (special_format): Return true for formats
5963         that include 'r'.
5964         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
5965         Deal with REG_ATTRS after the field loop.
5966         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
5967         * expmed.c (init_expmed): Call gen_raw_REG instead of
5968         gen_rtx_raw_REG.
5969         * expr.c (init_expr_target): Likewise.
5970         * regcprop.c (maybe_mode_change): Likewise.
5971         * varasm.c (make_decl_rtl): Likewise.
5972         * final.c (leaf_renumber_regs_insn): Return early after
5973         handling REGs.
5974         * genemit.c (gen_exp): Handle 'r' fields.
5975         * genpeep.c (match_rtx): Likewise.
5976         * gensupport.c (subst_pattern_match): Likewise.
5977         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
5978         (alter_constraints, subst_dup): Likewise.
5979         * read-rtl.c (read_rtx_code): Likewise.
5980         * print-rtl.c (print_rtx): Likewise.
5981         * genrecog.c (find_operand, find_matching_operand): Likewise.
5982         (validate_pattern, match_pattern_2): Likewise.
5983         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
5984         (rtx_test::regno_field): New function.
5985         (operator ==, safe_to_hoist_p, transition_parameter_type)
5986         (parameter_type_string, print_parameter_value)
5987         (print_nonbool_test, print_test): Handle new enum values.
5988         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
5989         * lra-constraints.c (operands_match_p): Likewise.
5991 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
5993         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
5994         Change type of new_regno to unsigned int.
5995         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
5996         new_regno to unsigned int.
5997         (df_ref_change_reg_with_loc): Remove old_regno parameter.
5998         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
5999         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
6000         (SET_REGNO_RAW): Add space after ",".
6002 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6004         * rtl.h (REG_NREGS): New macro
6005         * alias.c (record_set): Use it.
6006         * cfgcleanup.c (mark_effect): Likewise.
6007         * combine.c (likely_spilled_retval_1): Likewise.
6008         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
6009         (move_deaths, distribute_notes): Likewise.
6010         * cselib.c (cselib_record_set): Likewise.
6011         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
6012         * df-scan.c (df_mark_reg): Likewise.
6013         * dse.c (look_for_hardregs): Likewise.
6014         * dwarf2out.c (reg_loc_descriptor): Likewise.
6015         (multiple_reg_loc_descriptor): Likewise.
6016         * expr.c (write_complex_part, read_complex_part): Likewise.
6017         (emit_move_complex): Likewise.
6018         * haifa-sched.c (setup_ref_regs): Likewise.
6019         * ira-lives.c (mark_hard_reg_live): Likewise.
6020         * lra.c (lra_set_insn_recog_data): Likewise.
6021         * mode-switching.c (create_pre_exit): Likewise.
6022         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
6023         (reload_combine_recognize_pattern): Likewise.
6024         (reload_combine_note_use, move2add_record_mode): Likewise.
6025         (reload_cse_move2add): Likewise.
6026         * reg-stack.c (subst_stack_regs_pat): Likewise.
6027         * regcprop.c (kill_value, copy_value): Likewise.
6028         (copyprop_hardreg_forward_1): Likewise.
6029         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
6030         (build_def_use): Likewise.
6031         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
6032         (deps_analyze_insn): Likewise.
6033         * sched-rgn.c (check_live_1, update_live_1): Likewise.
6034         * sel-sched.c (count_occurrences_equiv): Likewise.
6035         * valtrack.c (dead_debug_insert_temp): Likewise.
6037 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6039         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
6040         * dse.c (note_add_store): Likewise.
6041         * ira-lives.c (mark_hard_reg_dead): Likewise.
6042         * loop-invariant.c (mark_reg_store): Likewise.
6043         (mark_reg_death): Likewise.
6044         * postreload.c (reload_combine): Likewise.
6045         (reload_combine_note_store): Likewise.
6046         (reload_combine_note_use): Likewise.
6047         * recog.c (peep2_reg_dead_p): Likewise.
6049 2015-05-19  Alan Modra  <amodra@gmail.com>
6051         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
6052         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
6053         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
6054         unused predicates.
6055         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
6056         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
6057         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
6058         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
6060 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
6062         * config/mips/mips.md (JOIN_MODE): New mode iterator.
6063         (join2_load_Store<JOIN_MODE:mode>): New pattern.
6064         (join2_loadhi): Likewise.
6065         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
6066         load-load and store-stores.
6067         * config/mips/mips.opt (mload-store-pairs): New option.
6068         (TARGET_LOAD_STORE_PAIRS): New macro.
6069         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
6070         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
6071         * config/mips/mips.c (mips_load_store_bonding_p): New function.
6073 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
6075         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
6076         explicit swaps.
6077         * dojump.c (do_compare_rtx_and_jump): Likewise.
6078         * expmed.c (emit_store_flag_1): Likewise.
6079         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
6080         * final.c (sprint_ul): Use std::reverse for reversing a string.
6081         * fold-const.c (extract_muldiv_1): Use std::swap.
6082         * genmodes.c (emit_mode_int_n): Likewise.
6083         * ifcvt.c (dead_or_predicable): Likewise.
6084         * ira-build.c (ira_merge_live_ranges): Likewise.
6085         (swap_allocno_copy_ends_if_necessary): Likewise.
6086         * ira.c (ira_setup_alts): Likewise.
6087         * loop-iv.c (iv_analyze_expr): Likewise.
6088         (implies_p): Likewise.
6089         (canon_condition): Likewise.
6090         * lra-constraints.c (swap_operands): Likewise.
6091         * lra-lives.c (lra_merge_live_ranges): Likewise.
6092         * omega.c (swap): Remove.
6093         (bswap): Remove.
6094         (omega_unprotect_1): Use std::swap.
6095         (omega_solve_geq): Likewise.
6096         * optabs.c (expand_binop_directly): Likewise.
6097         (expand_binop): Likewise.
6098         (emit_conditional_move): Likewise.
6099         (emit_conditional_add): Likewise.
6100         * postreload.c (reload_cse_simplify_operands): Likewise.
6101         * reg-stack.c (emit_swap_insn): Likewise.
6102         (swap_to_top): Likewise.
6103         (compare_for_stack_reg): Likewise.
6104         (subst_asm_stack_regs): Likewise.
6105         * reload.c (find_reloads): Likewise.
6106         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
6107         * sel-sched.c (invoke_reorder_hooks): Likewise.
6108         (create_block_for_bookkeeping): Likewise.
6109         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
6110         (lambda_matrix_right_hermite): Use std::swap.
6111         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
6112         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
6113         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
6114         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
6115         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
6116         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
6117         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
6118         * tree-vrp.c (compare_ranges): Likewise.
6119         * var-tracking.c (add_with_sets): Likewise.
6120         (vt_find_locations): Likewise.
6122 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
6124         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
6125         pie executables.
6126         (FBSD_ENDFILE_SPEC): Likewise.
6127         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
6128         config/freebsd-spec.h.
6129         (ENDFILE_SPEC): Likewise.
6131 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
6132             Richard Henderson  <rth@redhat.com>
6134         PR target/57032
6135         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
6136         Check for a memory location that is not a reference (using an AND)
6137         to an unaligned location here.
6138         * config/alpha/predicates.md (normal_memory_operand): Remove.
6140 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
6142         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
6143         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
6145 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
6147         * config/mips/mips.c (micromips_globals): New variable.
6148         (mips_set_compression_mode): Save and reinitialize target-dependent
6149         state for microMIPS.
6151 2015-05-18  Martin Liska  <mliska@suse.cz>
6153         * dbgcnt.def: Add new counter.
6154         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
6156 2015-05-18  Martin Liska  <mliska@suse.cz>
6158         * dbgcnt.def: Sort counters.
6159         * opts.c (common_handle_option): Do not compile if
6160         -fdbg-cnt-list is enabled.
6162 2015-05-18  Tom de Vries  <tom@codesourcery.com>
6164         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
6165         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
6166         address operator to va_list operand.
6167         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
6168         unconditionally.
6169         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
6170         operand.
6171         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
6172         * config/s390/s390.c (s390_gimplify_va_arg): Same.
6173         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
6175 2015-05-18  Tom de Vries  <tom@codesourcery.com>
6177         * tree-ssa-tail-merge.c: Fix whitespace.
6179 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
6181         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
6182         cortex-a17, and cortex-a17.cortex-a7.
6184 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
6186         PR target/54236
6187         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
6189 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
6191         PR target/66174
6192         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
6193         QImode inner modes for TARGET_AVX512BW.  Force mask operand
6194         to a register for AVX512F modes.
6196 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
6198         * toplev.c (emit_debug_global_declarations): Do not output debug info
6199         when doing slim LTO objects.
6201 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
6203         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
6204         odr_types_equivalent_p): Declare.
6205         (odr_type_p): Use gcc_checking_assert.
6206         (type_in_anonymous_namespace_p) Declare.
6207         (type_with_linkage_p): Declare.
6208         * common.opt (Wlto-type-mismatch): New warning.
6209         * ipa-devirt.c (compound_type_base): New function.
6210         (odr_or_derived_type_p): New function.
6211         (odr_types_equivalent_p): New function.
6212         (add_type_duplicate): Simplify.
6213         (type_with_linkage_p): Add hack to prevent false positives on C types
6214         (type_in_anonymous_namespace_p): Likewise.
6215         * tree.c (need_assembler_name_p): Use type_with_linkage.
6216         * tree.h (type_in_anonymous_namespace_p): Remove.
6217         * doc/invoke.texi (-Wlto-type-mismatch): Document
6219 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
6221         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
6222         (verify_type): Verify STRING_FLAG.
6224 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6226         PR fortran/44054
6227         * tree-pretty-print.c (percent_K_format): Replace locus pointer
6228         with accessor function.
6229         * tree-diagnostic.c (diagnostic_report_current_function): Use
6230         diagnostic_location function.
6231         (maybe_unwind_expanded_macro_loc): Likewise.
6232         (virt_loc_aware_diagnostic_finalizer): Likewise.
6233         (default_tree_printer): Replace locus pointer with accessor function.
6234         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
6235         (diagnostic_set_info_translated): Initialize second location.
6236         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
6237         (diagnostic_show_locus): Handle two locations. Call
6238         diagnostic_print_caret_line.
6239         (diagnostic_print_caret_line): New.
6240         (default_diagnostic_starter): Use diagnostic_location function.
6241         (diagnostic_report_diagnostic): Use diagnostic_location function.
6242         (verbatim): Do not set text.locus.
6243         * diagnostic.h (struct diagnostic_info): Remove location field.
6244         (struct diagnostic_context): Make caret_chars an array of two.
6245         (diagnostic_location): New inline.
6246         (diagnostic_expand_location): Handle two locations.
6247         (diagnostic_same_line): New inline.
6248         (diagnostic_print_caret_line): Declare.
6249         (CARET_LINE_MARGIN): New constant.
6250         * pretty-print.c (pp_printf): Do not set text.locus.
6251         (pp_verbatim): Do not set text.locus.
6252         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
6253         (struct text_info): Replace locus pointer with locations
6254         array. Add accessor functions.
6256 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
6257             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
6259         PR target/65768
6260         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
6261         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
6262          large constants in register instead of splitting them.
6264 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
6266         PR target/66140
6267         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
6268         replacements in memory addresses.
6269         (get_unaligned_address): Ditto.
6271 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
6273         * config/ft32/*: New files for FT32 port.
6274         * doc/install.texi: Add FT32 information.
6275         * doc/invoke.texi: Add FT32 information.
6276         * doc/md.texi: Add FT32 information.
6277         * doc/contrib.texi: Self added.
6279 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
6281         PR tree-optimization/64454
6282         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
6283         (-1 - A -> ~A): Remove unnecessary condition.
6285 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
6287         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
6288         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
6289         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
6291 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
6293         * ipa-chkp.h (chkp_wrap_function): New.
6294         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
6295         (chkp_wrap_function_name): New.
6296         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
6297         to get wrapper name.
6298         * lto-cgraph.c: Include ipa-chkp.h.
6299         (input_cgraph_1): Avoid alias chain for wrappers.
6301 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
6303         PR middle-end/66134
6304         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
6305         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
6307 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6309         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
6310         (AARCH64_FL_SLOWMUL): Delete.
6311         (AARCH64_FL_CRC): Redefine to 1<<3.
6312         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
6314 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6316         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
6317         casting.
6319 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
6321         * config/alpha/alpha.md (extendqidi2): Use general_operand
6322         instead of some_operand for operand[1] predicate.
6323         (extendhidi2): Ditto.
6324         (cbranchdi4): Use general_operand instead of some_operand
6325         for operand[1] and operands[2] predicates.
6326         (cstoredi4): Ditto.
6327         * config/alpha/predicates.md (some_operand): Remove unused predicate.
6328         (some_ni_operand): Ditto.
6330 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
6332         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
6333         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
6334         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
6335         low part of the constant using alpha_emit_set_const_1.
6336         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
6338 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
6340         * varasm.c (output_constant_pool_1): Pass down alignment from
6341         constant pool entry's descriptor to output_constant_pool_2.
6342         (output_object_block): Add comment prior to call to
6343         output_constant_pool_1.
6345 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
6347         PR rtl-optimization/65862
6348         * target.def (ira_change_pseudo_allocno_class): New hook.
6349         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
6350         value of the hook.
6351         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
6352         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
6353         hook.
6354         * ira-costs.c (find_costs_and_classes): Call the hook and change
6355         classes when it is necessary.
6356         * doc/tm.texi: Update.
6358 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
6360         * config/i386/i386.md (sibcall_memory): Check that register with
6361         callee address is not also used as one of the arguments, instead
6362         of checking that it is not live after the sibcall.
6363         (sibcall_pop_memory): Ditto.
6364         (sibcall_value_memory): Ditto.
6365         (sibcall_value_pop_memory): Ditto.
6367 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
6369         * generic-match-head.c (types_match): Handle non-types.
6370         * gimple-match-head.c (types_match): Likewise.
6371         * match.pd: Remove unnecessary TREE_TYPE for types_match.
6373 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
6375         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
6376         (csneg3<mode>_insn): Enable expansion of pattern.
6378 2015-05-14  Nick Clifton  <nickc@redhat.com>
6380         * config/rl78/rl78.c (rl78_select_section): Select the correct
6381         default section based upon the category of the decl.
6383 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
6385         PR rtl-optimization/30967
6386         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
6387         destination mode for the cost of scc patterns.
6389 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
6391         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
6392         using SWIM248 mode iterator.
6393         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
6394         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
6395         for operand[2] constraint.
6396         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
6398 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
6400         PR middle-end/66133
6401         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
6402         make sure it is never noreturn, even when the task body does not
6403         return.
6404         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
6405         right before GIMPLE_OMP_RETURN.
6406         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
6407         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
6408         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
6410 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6412         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
6413         * tree-ssa-math-opts.c: Include params.h
6414         (pow_synth_sqrt_info): New struct.
6415         (representable_as_half_series_p): New function.
6416         (get_fn_chain): Likewise.
6417         (print_nested_fn): Likewise.
6418         (dump_fractional_sqrt_sequence): Likewise.
6419         (dump_integer_part): Likewise.
6420         (expand_pow_as_sqrts): Likewise.
6421         (gimple_expand_builtin_pow): Use above to attempt to expand
6422         pow as series of square roots.  Removed now unused variables.
6424 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
6426         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
6427         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
6428         Remove *p0 and *p1 arguments.  Rewrite function.
6429         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
6430         (alpha_split_const_mov): Update calls to alpha_extract_integer and
6431         alpha_emit_set_long_const.
6432         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
6433         (alpha_output_mi_thunk_osf): Ditto.
6434         * config/alpha/alpha.md (movti): Do not check operands[1]
6435         for CONST_DOUBLE.
6437 2015-05-13  Richard Biener  <rguenther@suse.de>
6439         PR tree-optimization/66129
6440         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
6441         commutative.
6442         (vect_schedule_slp_instance): Fix typo.
6444 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
6446         * common.opt (fdump-internal-locations): New option.
6447         * input.c: Include diagnostic-core.h.
6448         (get_end_location): New function.
6449         (write_digit): New function.
6450         (write_digit_row): New function.
6451         (dump_location_range): New function.
6452         (dump_labelled_location_range): New function.
6453         (dump_location_info): New function.
6454         * input.h (dump_location_info): New prototype.
6455         * toplev.c (compile_file): Handle flag_dump_locations.
6457 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
6459         * gimple-expr.h (is_gimple_constant): Reorder.
6460         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
6462 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
6464         * combine.c (simplify_set): When generating a CC set, if the
6465         source already is in the correct mode, do not wrap it in a
6466         compare.  Simplify the rest of that code.
6468 2015-05-13  Richard Biener  <rguenther@suse.de>
6470         PR tree-optimization/66123
6471         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
6472         a taken edge.
6474 2015-05-13  Richard Biener  <rguenther@suse.de>
6476         PR middle-end/66110
6477         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
6478         specially.
6479         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
6481 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
6483         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
6484         * aclocal.m4: Regenerated with automake-1.11.6.
6486 2015-05-13  Tom de Vries  <tom@codesourcery.com>
6488         PR tree-optimization/66010
6489         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
6490         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
6491         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
6492         and rval based on do_deref.
6494 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
6496         PR target/65103
6497         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
6498         link time constants into adress expressions and therefore set
6499         their cost to 0.
6501 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
6503         PR target/66112
6504         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
6505         Use SWI248 iterator instead of SWI.
6506         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
6507         Use eq_attr "alternative" "0" instead of match_test in
6508         length_immediate attribute computation.
6509         (*mulvhi4, *mulvhi4_1): New define_insns.
6511         PR target/66112
6512         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
6513         SIGNED to get precision of non-negative value.
6515 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
6517         PR target/66048
6518         * function.c (diddle_return_value_1): Process bounds first.
6519         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
6520         register.
6522 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6524         PR rtl-optimization/64616
6525         * loop-invariant.c (can_move_invariant_reg): New.
6526         (move_invariant_reg): Call above new function to decide whether
6527         instruction can just be moved, skipping creation of temporary
6528         register.
6530 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
6532         PR target/pr66047.c
6533         * i386.c (ix86_function_sseregparm): Only return -1 if local function
6534         with implied regparm is called from -mno-sse function.
6535         (init_cumulative_args): Output error if ix86_function_sseregparm
6536         return -1 and SSE register would be needed.
6537         (function_arg_advance_32): Likewise.
6538         (function_arg_32): Likewise.
6539         * i386.h (ix86_args): Add decl field.
6541 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
6543         PR ipa/65873
6544         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
6545         inlines across optimization boundary.
6547 2015-05-12  Jason Merrill  <jason@redhat.com>
6549         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
6550         string literal and macro name.
6552 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
6554         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
6555         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
6556         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
6558 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
6560         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
6561         (-Wmisleading-indentation): New option.
6562         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
6564 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
6566         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
6567         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
6568         (alpha_extract_integer): Ditto.
6569         (alpha_legitimate_constant_p): Ditto.
6570         (alpha_split_tmode_pair): Ditto.
6571         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
6572         (alpha_expand_mov): Ditto.
6573         (print_operand): Remove handling of 'H' modifier.
6574         <case 'm'>: Remove CONST_DOUBLE handling.
6575         (summarize_insn): Handle CONST_WIDE_INT.
6576         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
6577         (anddi3): Ditto.
6578         (movti): Handle CONST_WIDE_INT.
6579         * config/alpha/constraints.md ('H'): Remove constraint definition.
6580         ('G'): Do not match MODE_FLOAT class.
6581         * config/alpha/predicates.md (const0_operand): Also match
6582         const_wide_int.
6583         (non_add_const_operand): Ditto.
6584         (non_zero_const_operand): Ditto.
6585         (some_operand): Ditto.
6586         (input_operand): Ditto.  Handle CONST_WIDE_INT.
6587         (and_operand): Do not match const_double.
6588         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
6590 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
6592         PR target/65697
6593         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
6594         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
6595         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
6596         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
6597         is_mm_seq_cst, is_mm_sync): New accessor functions.
6598         * builtins.c (expand_builtin_sync_operation,
6599         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
6600         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
6601         (get_memmodel,  expand_builtin_atomic_compare_exchange,
6602         expand_builtin_atomic_load, expand_builtin_atomic_store,
6603         expand_builtin_atomic_clear): Use new accessor routines.
6604         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
6605         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
6606         (maybe_emit_sync_lock_test_and_set): Use new accessors and
6607         MEMMODEL_SYNC_ACQUIRE.
6608         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
6609         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
6610         expand_atomic_store): Use new accessors.
6611         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
6612         * tsan.c (instrument_builtin_call): Update check for memory model beyond
6613         final enum to use MEMMODEL_LAST.
6614         * c-family/c-common.c: Use new accessor for memmodel_base.
6615         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
6616         accessors.
6617         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
6618         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
6619         mem_thread_fence, *dmb): Likewise.
6620         * config/alpha/alpha.c (alpha_split_compare_and_swap,
6621         alpha_split_compare_and_swap_12): Likewise.
6622         * config/arm/arm.c (arm_expand_compare_and_swap,
6623         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
6624         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
6625         atomic_loaddi): Likewise.
6626         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
6627         Likewise.
6628         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
6629         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
6630         use new accessors.
6631         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
6632         atomic_store<mode>, atomic_compare_and_swap<mode>,
6633         atomic_exchange<mode>): Use new accessors.
6634         * config/mips/mips.c (mips_process_sync_loop): Likewise.
6635         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
6636         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
6637         rs6000_post_atomic_barrier): Add new cases.
6638         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
6639         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
6640         (atomic_load<mode>): Add new cases and use new accessors.
6641         (store_quadpti): Add new cases.
6642         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
6643         accessors.
6644         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
6645         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
6646         model, not 8.
6648 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
6650         * ipa-devirt.c (type_with_linkage_p): New function.
6651         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
6652         type has linkage.
6653         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
6654         (can_be_name_hashed_p): Simplify.
6655         (hash_odr_name): Check that type has linkage before checking if it is
6656         anonymous.
6657         (types_same_for_odr): Likewise.
6658         (odr_name_hasher::equal): Likewise.
6659         (odr_subtypes_equivalent_p): Likewise.
6660         (warn_types_mismatch): Likewise.
6661         (get_odr_type): Likewise.
6662         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
6663         * ipa-utils.h (odr_type_p): Move offline.
6664         * tree.c (need_assembler_name_p): Fix handling of types
6665         without linkages.
6666         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
6668 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
6670         * timevar.c (timevar_enable): Delete in favor of...
6671         (g_timer): New global.
6672         (struct timevar_def): Move to timevar.h inside class timer.
6673         (struct timevar_stack_def): Likewise.
6674         (timevars): Delete global in favor of field "m_timevars" within
6675         class timer in timevar.h
6676         (stack): Likewise, in favor of field "m_stack".
6677         (unused_stack_instances): Likewise, in favor of field
6678         "m_unused_stack_instances".
6679         (start_time): Likewise, in favor of field "m_start_time".
6680         (get_time): Eliminate check for timevar_enable.
6681         (timer::timer): New function, built from part of timevar_init.
6682         (timevar_init): Rewrite idempotency test from using
6683         "timevar_enable" bool to using dynamic allocation of "g_timer".
6684         Move rest of implementation into timer's constructor.
6685         (timevar_push_1): Rename to...
6686         (timer::push): ...this, adding "m_" prefixes to variables that
6687         are now fields of timer.
6688         (timevar_pop_1): Likewise, rename to...
6689         (timer::pop): ...this, and add "m_" prefixes.
6690         (timevar_start): Replace test for "timevar_enable" with one for
6691         "g_timer", and move bulk of implementation to...
6692         (timer::start): ...here, adding "m_" prefixes.
6693         (timevar_stop): Likewise, from here...
6694         (timer::stop): ...to here.
6695         (timevar_cond_start): Likewise, from here...
6696         (timer::cond_start): ...to here.
6697         (timevar_cond_stop): Likewise, from here...
6698         (timer::cond_stop): ...to here.
6699         (validate_phases): Rename to...
6700         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
6701         locals "total" and "tv" const.
6702         (timevar_print): Rename to...
6703         (timer::print): ...this, and add "m_" prefixes.  Make locals
6704         "total" and "tv" const.  Eliminate test for timevar_enable.
6705         * timevar.h (timevar_enable): Eliminate.
6706         (g_timer): New declaration.
6707         (timevar_push_1): Eliminate.
6708         (timevar_pop_1): Eliminate.
6709         (timevar_print): Eliminate.
6710         (class timer): New class.
6711         (timevar_push): Rewrite to use g_timer.
6712         (timevar_pop): Likewise.
6713         * toplev.c (toplev::~toplev): Likewise.
6715 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
6717         * arm-protos.h (arm_sched_autopref): Delete.
6718         (tune_params): Re-organize, use enums for flag values.
6719         (FUSE_OPS): New macro.
6720         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
6721         (ARM_PREFETCH_BENEFICIAL): Likewise.
6722         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
6723         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
6724         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
6725         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
6726         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
6727         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
6728         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
6729         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
6730         format.
6731         (arm_option_override, thumb2_reorg, arm_print_tune_info)
6732         (aarch_macro_fusion_pair_p): Update uses of current_tune.
6733         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
6735 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
6737         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
6738         "break".
6740 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
6741             Sandra Loosemore <sandra@codesourcery.com>
6743         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
6744         value.
6745         (REG_CLASS_NAMES): Add "IJMP_REGS".
6746         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
6747         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
6748         use new "c" register constraint.
6749         * config/nios2/constraint.md (c): New register constraint
6750         corresponding to IJMP_REGS.
6752 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
6754         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
6755         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
6756         define_splits): Delete, revamp, transmogrify into ...
6757         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
6758         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
6759         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
6760         New.
6762 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
6764         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
6765         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
6767 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
6769         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
6770         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
6771         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
6772         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
6773         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
6774         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
6775         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
6776         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
6777         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
6778         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
6779         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
6780         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
6781         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
6782         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
6783         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
6784         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
6785         and 30 corresponding splitters): Delete.
6787 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
6789         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
6790         zero_extract.
6792 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
6794         * combine.c (recog_for_combine_1): New function, factored out
6795         from recog_for_combine.
6796         (change_zero_ext): New function.
6797         (recog_for_combine): If recog fails, try again with the pattern
6798         modified by change_zero_ext; if that still fails, restore the
6799         pattern.
6801 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
6803         * combine.c (get_undo_marker): New function.
6804         (undo_to_marker): New function, largely factored out from ...
6805         (undo_all): ... this.  Adjust.
6807 2015-05-12  Richard Biener  <rguenther@suse.de>
6809         PR tree-optimization/66101
6810         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
6811         fixup if we turn a loop exit edge to a fallthru edge.
6813 2015-05-12  Richard Biener  <rguenther@suse.de>
6815         PR tree-optimization/37021
6816         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
6817         (SLP_TREE_TWO_OPERATORS): New define.
6818         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
6819         SLP_TREE_TWO_OPERATORS.
6820         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
6821         SLP node.
6822         (vect_build_slp_tree): Adjust.
6823         (vect_analyze_slp_cost_1): Likewise.
6824         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
6825         emitting two vector stmts and mixing the results.
6827 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6829         * call.c (print_z_candidates): Remove dead code.
6831 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6833         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
6834         and zEC12_simple_fp.
6835         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
6836         to 1.
6838 2015-05-12  Tom de Vries  <tom@codesourcery.com>
6840         PR tree-optimization/66010
6841         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
6842         ifn_va_arg.
6843         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
6844         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
6845         va_lists are passed, and remove corresponding handling.
6846         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
6847         do_deref argument to ifn_va_arg.
6848         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
6849         ifn_va_arg.
6851 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6853         PR target/65955
6854         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
6855         REG before taking its REGNO.
6857 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6859         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
6860         rsp->sign_bit_copies and rsp->nonzero_bits into ...
6861         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
6862         present to get more accurate information about the number of sign bit
6863         copies and non zero bits.
6865 2015-05-12  Richard Biener  <rguenther@suse.de>
6867         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
6868         do not allow unrolling.
6870 2015-05-11  Richard Henderson  <rth@redhat.com>
6872         * config/i386/i386-modes.def (CCP): New.
6873         * config/i386/i386.c (put_condition_code): Handle it.
6874         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
6876 2015-05-11  Richard Henderson  <rth@redhat.com>
6878         * target.def (md_asm_clobbers): Replace with...
6879         (md_asm_adjust): this.
6880         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
6881         (TARGET_MD_ASM_ADJUST): New.
6882         * tm.texi: Rebuild.
6883         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
6884         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
6885         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
6887         * cfgexpand.c (check_operand_nalternatives): Accept vector of
6888         constraints instead of lists of outputs and inputs.
6889         (expand_asm_stmt): Save and restore input_location around the
6890         body of the function.  Move asm data into vectors instead of
6891         building tree lists.  Generate cleanup sequences as needed,
6892         rather than waiting til the end.  Use new md_asm_adjust hook.
6894         * config/vxworks.c: Include vec.h before target.h.
6895         * gimple.c: Likewise.
6896         * incpath.c: Likewise.
6897         * mode-switching.c: Likewise.
6899         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
6900         (cris_md_asm_adjust): this.
6901         (TARGET_MD_ASM_CLOBBERS): Remove.
6902         (TARGET_MD_ASM_ADJUST): New.
6903         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
6904         (ix86_md_asm_adjust): this.
6905         (TARGET_MD_ASM_CLOBBERS): Remove.
6906         (TARGET_MD_ASM_ADJUST): New.
6907         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
6908         (mn10300_md_asm_adjust): this.
6909         (TARGET_MD_ASM_CLOBBERS): Remove.
6910         (TARGET_MD_ASM_ADJUST): New.
6911         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
6912         (rs6000_md_asm_adjust): this.
6913         (TARGET_MD_ASM_CLOBBERS): Remove.
6914         (TARGET_MD_ASM_ADJUST): New.
6915         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
6916         (visium_md_asm_adjust): this.
6917         (TARGET_MD_ASM_CLOBBERS): Remove.
6918         (TARGET_MD_ASM_ADJUST): New.
6920 2015-05-11  Richard Henderson  <rth@redhat.com>
6922         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
6923         if noutputs is zero.
6924         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
6926         * cfgexpand.c (expand_asm_operands): Merge into...
6927         (expand_asm_stmt): ... here.
6929         * cfgexpand.c (expand_asm_operands): Don't call
6930         resolve_asm_operand_names.
6931         * stmt.c (resolve_asm_operand_names): Clarify block comment.
6933 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
6935         * dwarf2out.c (gen_member_die): Sanity check that we access
6936         TYPE_MAIN_VARIANT for TYPE_METHODS.
6937         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
6938         checking TYPE_METHODS.
6939         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
6940         if non-null.
6941         (build_distinct_type_copy): Clear TYPE_METHODS.
6942         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
6943         (verify_type): Allow TYPE_METHODS to be error_mark_node.
6944         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
6946 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
6948         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
6949         (emit_pattern_before_setloc): Likewise.
6951 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
6953         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
6954         for define_peephole2s.
6955         (get_peephole2_pattern): New function.
6956         (main): Use it.  Call validate_pattern.
6958 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
6960         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
6961         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
6962         (Last callee saved reg is different for AVR_TINY architecture)
6964 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
6966         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
6967         when looking for memory references.
6969 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
6971         PR target/65753
6972         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
6973         via function pointers.
6975 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
6977         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
6978         indirect call by forcing address into a pseudo with -fno-plt.
6979         * common.opt (flag_plt): New option.
6980         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
6981         ([-fno-plt]): Document.
6983 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
6985         PR bootstrap/66105
6986         * config/rs6000/option-defaults.h: Add space between string literal
6987         and macro name.
6989 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6991         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
6992         accross ARM targets.
6994 2015-05-11  Christian Bruel  <christian.bruel@st.com>
6996         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
6997         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
6999 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
7001         PR rtl-optimization/66076
7002         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
7003         Don't grow the heap array if it is already big enough from a
7004         previous iteration.
7006 2015-05-11  Christian Bruel  <christian.bruel@st.com>
7008         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
7009         (is_called_in_ARM_mode): Remove.
7010         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
7011         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
7012         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
7013          arm_declare_function_name.
7015 2015-05-11  Christian Bruel  <christian.bruel@st.com>
7017         * config/arm/arm.c (arm_option_override): Reoganized and split into :
7018         (arm_option_params_internal); New function.
7019         (arm_option_check_internal): New function.
7020         (arm_option_override_internal): New function.
7021         (thumb_code, thumb1_code): Remove.
7022         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
7023         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
7024         (thumb_code, thumb1_code): Remove.
7025         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
7027 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
7029         * config/alpha/alpha.c (alpha_emit_set_const_1)
7030         (alpha_emit_set_long_const, alpha_extract_integer)
7031         (alpha_legitimate_constant_p, alpha_split_const_mov)
7032         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
7033         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
7034         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
7035         HOST_WIDE_INT_1U.
7036         * config/alpha/predicates.md (mode_mask_operand): Do not match
7037         const_double RTX.
7038         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
7039         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
7040         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
7041         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
7042         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
7044 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
7046         PR target/65780
7047         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
7048         default_binds_local_p_2.
7049         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
7050         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
7052 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
7054         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
7056 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
7058         Patch by Richard Biener
7059         * coverage.c (coverage_obj_init): Delay building of type variant
7060         until the type is finished.
7062 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
7064         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
7065         mismatch between C and C++ type; compoare correctly ARG_TYPES
7066         for non-prototypes and output correctly parameter index for METHOD_TYPE.
7067         (odr_types_equivalent_p): Fix wording of warning about attributes;
7068         it is OK to match prototype and non-prototype.
7070 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
7072         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
7073         TYPE_ARG_TYPES list.
7074         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
7075         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
7077 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
7079         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
7080         * tree.h (is_lang_specific): Constify.
7082 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
7084         PR tree-optimization/64454
7085         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
7086         Rewrite.
7088 2015-05-08  Jason Merrill  <jason@redhat.com>
7090         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
7091         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
7092         config/darwin.h, config/darwin9.h, config/elfos.h,
7093         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
7094         config/microblaze/microblaze.h, config/mips/mips.h,
7095         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
7096         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
7097         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
7098         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
7099         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
7100         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
7101         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
7102         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
7103         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
7104         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
7105         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
7106         between string literal and macro name.
7108 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7110         * jump.c: Change argument types to rtx_insn *.
7111         * rtl.h: Adjust.
7113 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7115         * lra-constraints.c: Change argument type to rtx_insn *.
7117 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7119         * df-problems.c: Change argument type to rtx_insn *.
7121 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7123         * combine.c: Change argument type to rtx_insn *.
7125 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7127         * rtl.h: Adjust.
7128         * rtlanal.c: Change argument type to rtx_insn *.
7130 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7132         * sched-deps.c: Change argument types to rtx_insn *.
7133         * sched-int.h: Adjust.
7135 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7137         * dwarf2cfi.c: Change argument type to rtx_insn *.
7139 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7141         * ira.c (decrease_live_ranges_number): Changetype of local
7142         variable to rtx_insn *.
7143         * recog.c: Change argument types to rtx_insn *.
7144         * recog.h: Adjust.
7146 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7148         * reorg.c: Change argument types to rtx_insn *.
7150 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7152         * ira-color.c: Change argument types to rtx_insn *.
7153         * lra-eliminations.c: Likewise.
7154         * ira.h: Adjust.
7156 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7158         * gcse.c: Change argument types to rtx_insn *.
7160 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7162         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
7164 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7166         * emit-rtl.c (emit_debug_insn_before): Change argument type to
7167         rtx_insn *.
7168         * rtl.h: Adjust.
7170 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7172         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
7173         * rtl.h: Adjust.
7175 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7177         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
7178         * rtl.h: Adjust.
7180 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7182         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
7183         * rtl.h: Adjust.
7185 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7187         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
7188         * rtl.h: Adjust.
7190 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7192         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
7193         to rtx_insn *.
7194         * rtl.h: Adjust.
7196 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7198         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
7199         to rtx_insn *.
7200         * rtl.h: Likewise.
7202 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7204         * except.c (can_nonlocal_goto): Change type of argument to
7205         rtx_insn *.
7206         * rtl.h: Adjust.
7208 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7210         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
7211         * rtl.h: Adjust.
7213 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7215         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
7216         * cfgrtl.c (can_delete_label_p): Adjust.
7217         * rtl.h: likewise.
7219 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7221         * reorg.c (stop_search_p): Change argument to rtx_insn *.
7223 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7225         * except.c (make_reg_eh_region_note): Change argument to
7226         rtx_insn *.
7227         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
7228         * except.h: Adjust.
7230 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7232         * mode-switching.c (commit_mode_sets): Change type of local
7233         variable from rtx to rtx_insn *.
7235 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
7237         * doc/install.texi (--enable-languages): Add missing jit and lto info.
7238         Add ^ to grep command.
7239         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
7240         arg to last gimple_simplify declaration.  Add missing gimple_build
7241         declaration for built-in function case with four tree args.
7243 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
7244             Szabolcs Nagy  <szabolcs.nagy@arm.com>
7246         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
7247         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
7248         (GNU_USER_DYNAMIC_LINKERN32): Update.
7250 2015-05-08  Richard Biener  <rguenther@suse.de>
7252         PR tree-optimization/66036
7253         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
7254         Handle strided group loads.
7255         (vect_verify_datarefs_alignment): Likewise.
7256         (vect_enhance_data_refs_alignment): Likewise.
7257         (vect_analyze_group_access): Likewise.
7258         (vect_analyze_data_ref_access): Likewise.
7259         (vect_analyze_data_ref_accesses): Likewise.
7260         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
7261         (vectorizable_load): Likewise.
7263 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
7265         * config/rs6000/rs6000.md: Require operand inequality in one
7266         of the peepholes.
7268 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
7269             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7271         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
7272         from (set ...).
7273         * config/rx/rx.md (movdi, movdf): Likewise.
7274         Likewise for define_peephole2s.
7276 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
7278         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
7279         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
7280         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
7281         vtst_u64): Rewrite using gcc vector extensions.
7283 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
7285         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
7286         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
7288 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
7290         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
7292 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7294         * config/glibc-stdint.h (OPTION_MUSL): Define.
7295         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
7296         Change the definition based on OPTION_MUSL for 64 bit targets.
7297         * config/linux.h (OPTION_MUSL): Redefine.
7298         * config/alpha/linux.h (OPTION_MUSL): Redefine.
7299         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
7300         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
7302 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
7303             Szabolcs Nagy  <szabolcs.nagy@arm.com>
7305         * config.gcc (LIBC_MUSL): New tm_defines macro.
7306         * config/linux.h (OPTION_MUSL): Define.
7307         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
7308         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
7309         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
7310         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
7311         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
7312         * config/linux.opt (mmusl): New option.
7313         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
7314         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
7315         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
7316         * configure: Regenerate.
7318 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
7319             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7321         PR target/48904
7322         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
7323         * config/i386/knetbsd-gnu64.h: New file.
7325 2015-05-08  Marek Polacek  <polacek@redhat.com>
7327         PR c/64918
7328         * doc/invoke.texi: Document -Woverride-init-side-effects.
7330 2015-05-07  Marek Polacek  <polacek@redhat.com>
7332         PR c/65179
7333         * doc/invoke.texi: Document -Wshift-negative-value.
7335 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
7337         * gcov-tool.c (do_merge): Refactore to remove int ret.
7338         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
7339         !type == FUNC to type != FUNC.
7340         * reload.h (struct target_reload): Changee to type of
7341         x_spill_indirect_levels from bool to unsigned char.
7343 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
7345         * rtl.h (always_void_p): New function.
7346         * gengenrtl.c (always_void_p): Likewise.
7347         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
7348         with code foo are always VOIDmode.
7349         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
7350         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
7351         compare-elim.c, config/aarch64/aarch64.c,
7352         config/aarch64/aarch64.md, config/alpha/alpha.c,
7353         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
7354         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
7355         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
7356         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
7357         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
7358         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
7359         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
7360         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
7361         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
7362         config/ia64/vect.md, config/iq2000/iq2000.c,
7363         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
7364         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
7365         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
7366         config/mep/mep.c, config/microblaze/microblaze.c,
7367         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
7368         config/mn10300/mn10300.c, config/msp430/msp430.c,
7369         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
7370         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
7371         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
7372         config/rs6000/altivec.md, config/rs6000/rs6000.c,
7373         config/rs6000/rs6000.md, config/rs6000/vector.md,
7374         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
7375         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
7376         config/sh/sh.md, config/sh/sh_treg_combine.cc,
7377         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
7378         config/spu/spu.md, config/stormy16/stormy16.c,
7379         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
7380         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
7381         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
7382         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
7383         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
7384         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
7385         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
7386         var-tracking.c: Update calls accordingly.
7388 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
7390         PR middle-end/192
7391         PR middle-end/54303
7392         * varasm.c (function_mergeable_rodata_prefix): New function.
7393         (mergeable_string_section): Use it.
7394         (mergeable_constant_section): Use it.
7396 2015-05-07  Jeff Law  <law@redhat.com>
7398         PR target/39726
7399         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
7400         simplifier to narrow arithmetic.
7401         * generic-match-head.c: (types_match, single_use): New functions.
7402         * gimple-match-head.c: (types_match, single_use): New functions.
7404 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
7406         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
7407         rtx type.
7409 2015-05-07  Richard Biener  <rguenther@suse.de>
7411         PR tree-optimization/66002
7412         * passes.def: Schedule another pass_merge_phi after ifcombine, right
7413         before phiopt.
7415 2015-05-07  Marek Polacek  <polacek@redhat.com>
7416             Martin Uecker  <uecker@eecs.berkeley.edu>
7418         * doc/invoke.texi: Document -fsanitize=bounds-strict.
7419         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
7420         into SANITIZE_NONDEFAULT.
7421         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
7423 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
7425         PR target/66015
7426         * config/alpha/alpha.c (alpha_override_options_after_change): New.
7427         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
7428         (alpha_override_options): Move align_loops, align_jumps and
7429         align_functions handling into alpha_override_options_after_change.
7431 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
7432             Chris Jones  <chrisj@nvidia.com>
7433             Joshua Conner  <jconner@nvidia.com>
7435         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
7436         linking of crtfastmath.o.
7437         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
7439 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
7441         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
7442         (cstore<mode>4_unsigned_imm): New expander.
7443         (cstore<mode>4): Remove empty constraint strings.  Use the new
7444         expanders.
7446 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
7448         PR target/64208
7449         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
7450         alternatives.
7452 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7454         * config/aarch64/geniterators.sh: Use standard BRE in sed.
7456 2015-05-06  Alan Modra  <amodra@gmail.com>
7458         PR target/66033
7459         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
7460         (UNSPEC_NOP): Define.
7461         (reload_vsx_from_gpr<mode>): Add missing DONE.
7462         (reload_gpr_from_vsx<mode>): Likewise.
7463         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
7464         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
7466 2015-05-06  Christian Bruel  <christian.bruel@st.com>
7468         PR target/66015
7469         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
7470         align_jumps, align_functions into aarch64_override_options_after_change.
7472 2015-05-06  Richard Biener  <rguenther@suse.de>
7474         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
7475         vect_transform_slp_perm_load to check if we support a permutation
7476         for basic-block vectorization.
7478 2015-05-06  Nick Clifton  <nickc@redhat.com>
7480         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
7481         used, even if it is not being used as a frame pointer.
7483 2015-05-05  Jason Merrill  <jason@redhat.com>
7485         * dwarf2out.c (gen_member_die): Don't emit anything for an
7486         anonymous class constructor.
7488 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
7490         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
7491         that it reflects the block structure.
7492         (afdo_propagate_edge): Likewise.
7493         (afdo_calculate_branch_prob): Likewise.
7494         (afdo_annotate_cfg): Likewise.
7495         * cfgcleanup.c (equal_different_set_p): Likewise.
7496         (try_crossjump_to_edge): Likewise.
7497         * cgraph.c (cgraph_node::verify_node): Likewise.
7498         * cgraphunit.c (expand_all_functions): Likewise.
7499         * config/i386/i386.c (ix86_expand_copysign): Likewise.
7500         (exact_dependency_1): Likewise.
7501         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
7502         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
7503         * gensupport.c (process_define_subst): Likewise.
7504         * lto-wrapper.c (merge_and_complain): Likewise.
7505         * tree-if-conv.c (if_convertible_bb_p): Likewise.
7506         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
7507         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
7508         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
7509         * tree-vect-loop.c (vectorizable_reduction): Likewise.
7510         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
7511         * tree-vect-stmts.c (vectorizable_shift): Likewise.
7512         * tree-vrp.c (vrp_finalize): Likewise.
7513         * tree.c (variably_modified_type_p): Likewise.
7515 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
7517         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
7518         on darwin12 and later.
7519         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
7520         file to pass -rdynamic on darwin12 and later.
7521         * config/darwin.opt (rdynamic): Add.
7523 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
7525         * doc/extend.texi (C Extensions): Update menu for moved Variable
7526         Attributes and Type Attributes sections.
7528 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
7530         PR target/65990
7531         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
7532         if rep_8byte stringop strategy was specified for 32-bit target.
7534 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
7536         PR target/65915
7537         * config/i386/i386.md (vector convert to float spltiter): Check for
7538         xmm16+, when splitting scalar float conversion.
7539         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
7541 2015-05-05  Nick Clifton  <nickc@redhat.com>
7543         * config/msp430/msp430-opts.h (enum msp430_regions): New.
7544         * config/msp430/msp430.c (msp430_override_options): Complain if
7545         -mcode-region or -mdata-region is used on a non MSP430X.
7546         (msp430_section_attr): New function.  Checks lower, upper and
7547         either attributes.
7548         (msp430_attribute_table): Add lower, upper and either.
7549         (gen_prefix): New function.  Generates a prefix for a section
7550         name.
7551         (msp430_select_section): New function - handles the choice of
7552         section for an object.  Takes into account memory region
7553         attributes and options.
7554         (msp430_function_section): Use gen_prefix.
7555         (TARGET_SECTION_TYPE_FLAGS): Define.
7556         (msp430_section_type_flags): New function.
7557         (TARGET_ASM_UNIQUE_SECTION): Define.
7558         (msp430_unique_section): New function.
7559         (msp430_output_aligned_decl_common): New function.
7560         (msp430_do_not_relax_short_jumps): New function.
7561         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
7562         Define.
7563         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
7564         * config/msp430/msp430-protos.h
7565         (msp430_do_not_relax_short_jumps): New prototype.
7566         (msp430_output_aligned_decl_common): New prototype.
7567         * config/msp430/msp430.md (length): New attribute.
7568         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
7569         then use a long code sequence for short jumps.
7570         * config/msp430/msp430.opt (mcode-region): New.
7571         (mdata-region): New.
7572         * doc/invoke.texi: Document new options.
7573         * doc/extend.texi: Document new attributes.
7575 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
7577         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
7578         (tune_params): Add field branch_costs.
7579         (aarch64_branch_cost): Declare.
7580         * gcc/config/aarch64.c (generic_branch_cost): New.
7581         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
7582         (cortexa53_tunings): Likewise.
7583         (cortexa57_tunings): Likewise.
7584         (thunderx_tunings): Likewise.
7585         (xgene1_tunings): Likewise.
7586         (aarch64_branch_cost): Define.
7587         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
7589 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
7591         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
7592         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
7593         * config/i386/i386.md: Ditto.
7594         * config/i386/winnt.c: Ditto.
7596 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
7598         * doc/extend.texi (__atomic Builtins): Move implementation details
7599         to the end of the description, rewrite opening paragraphs, state
7600         difference with __sync builtins, state C11/C++11 assumptions,
7601         weaken itemized descriptions, add explanation of memory model
7602         behaviour, expand description of compare-exchange, simplify text.
7604 2015-05-05  Renlin Li  <renlin.li@arm.com>
7606         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
7608 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
7610         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
7611         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
7612         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
7613         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
7614         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
7615         * configure: Regenerate.
7616         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
7617         * doc/install.texi (aarch64*-*-*): Document new
7618         --enable-fix-cortex-a53-843419 option.
7619         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
7620         and -mno-fix-cortex-a53-843419 options.
7622 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
7624         PR target/65871
7625         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
7627 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
7629         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
7630         fix overactive TYPE_MIN_VALUE check and add FIXME for type
7631         compatibility problems.
7633 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
7635         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
7636         constraints.
7637         (cbranchsi4_reg): New.
7638         * config/microblaze/microblaze.c
7639         (microblaze_expand_conditional_branch_reg): New.
7640         * config/microblaze/microblaze-protos.h
7641         (microblaze_expand_conditional_branch_reg): New prototype.
7643 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
7645         * config/microblaze/microblaze.md (peephole2): New.
7647 2015-05-04  Jeff Law  <law@redhat.com>
7649         Revert:
7650         2015-05-04  Jeff Law  <law@redhat.com>
7652         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
7653         simplifier to narrow arithmetic.
7654         * generic-match-head.c: (types_match, single_use): New functions.
7655         * gimple-match-head.c: (types_match, single_use): New functions.
7657 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
7659         PR target/65987
7660         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
7661         (split_branches): Likewise.
7663 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
7665         * common.opt (fdelete-null-pointer-checks): Init to -1.
7666         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
7667         override flag_delete_null_pointer_checks default.
7668         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
7669         behavior re address zero.  Better document target-specific behavior.
7670         (-fisolate-errneous-paths-dereference): Mention relationship to
7671         -fdelete-null-pointer-checks.
7673 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
7675         PR tree-optimization/65984
7676         * ubsan.c: Include tree-cfg.h.
7677         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
7678         stmt_could_throw_p test, rename can_throw variable to ends_bb.
7680 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
7682         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
7683         to CONST_DOUBLE_P predicate.
7684         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
7685         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
7686         allow only operands that satisfy standard_sse_constant_p predicate.
7687         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
7688         to CONST_DOUBLE_P predicate.
7690 2015-05-04  Jeff Law  <law@redhat.com>
7692         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
7693         simplifier to narrow arithmetic.
7694         * generic-match-head.c: (types_match, single_use): New functions.
7695         * gimple-match-head.c: (types_match, single_use): New functions.
7697 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
7699         * config/arm/arm.c: Restore bootstrap.
7701 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
7703         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
7704         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
7705         as CONST_WIDE_INT, not CONST_DOUBLE.
7706         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
7707         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
7708         (ix86_find_base_term): Do not check for CONST_DOUBLE.
7709         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
7710         (ix86_build_signbit_mask): Rewrite using wide ints.
7711         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
7712         (ix86_rtx_costs): Handle CONST_WIDE_INT.
7713         (find_constant): Ditto.
7714         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
7715         using gen_int_mode.
7716         * config/i386/predicates.md (x86_64_immediate_operand)
7717         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
7718         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
7719         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
7720         (const0_operand): Also match const_wide_int.
7721         (constm1_operand): Ditto.
7722         (const1_operand): Ditto.
7724 2015-05-04  Richard Biener  <rguenther@suse.de>
7726         PR tree-optimization/65965
7727         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
7728         store groups at gaps.
7730 2015-05-04  Richard Biener  <rguenther@suse.de>
7732         PR tree-optimization/65935
7733         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
7734         then make sure to apply that swapping to the IL.
7736 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
7738         * Makefile.in (PATCHLEVEL_c): New variable.
7739         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
7740         expand the same way as if DEVPHASE_c was non-empty.
7742 2015-05-04  Kai Tietz  <ktietz@redhat.com>
7744         PR target/65559
7745         * lto-wrapper.c (run_gcc): Open filename
7746         in binary-mode.
7748 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
7750         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
7751         sections up in file, to immediately after the Function Attributes
7752         section.
7754 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
7756         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
7758 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7760         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
7761         (insert_partition_copy_on_edge): Adjust.
7762         (insert_rtx_to_part_on_edge): Likewise.
7763         (insert_part_to_rtx_on_edge): Likewise.
7765 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7767         * function.c (set_return_jump_label): Change type of argument to
7768         rtx_insn *.
7769         * function.h (set_return_jump_label): Adjust.
7771 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7773         * reload.h (struct reg_equivs_t): Change type of init to
7774         rtx_insn *.
7775         * ira.c (fix_reg_equiv_init): Adjust.
7776         * reload1.c (eliminate_regs_1): Likewise.
7777         (init_eliminable_invariants): Likewise.
7779 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7781         * cselib.c (fp_setter_insn): Take a rtx_insn *.
7782         * cselib.h (fp_setter_insn): Adjust.
7784 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7786         * recog.c (struct validate_replace_src_data): Change type of
7787         insn field to rtx_insn *.
7788         (validate_replace_src_group): Change type of argument to rtx_insn *.
7789         * recog.h (validate_replace_src_group): Adjust.
7791 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7793         * haifa-sched.c: Change the type of some variables to rtx_insn *.
7794         * sched-deps.c: Likewise.
7795         * sched-int.h: Likewise.
7796         * sched-rgn.c: Likewise.
7797         * sel-sched.c: Likewise.
7799 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7801         to rtx_insn *.
7802         * config/i386/i386.c: Change the type of some arguments to
7803         rtx_insn *.
7804         * config/arm/arm.c: Likewise.
7806 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7808         * lra-constraints.c: Change type of some arguments to rtx_insn *.
7810 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7812         * regcprop.c (kill_autoinc_value): Change type of argument to
7813         rtx_insn *.
7815 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7817         * genrecog.c (print_subroutine): Adjust.
7818         * recog.c (get_bool_attr_mask_uncached): Likewise.
7819         * recog.h (struct recog_data_d): Change the type of insn to
7820         rtx_insn *.
7822 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7824         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
7826 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7828         * df-problems.c (df_set_note): Change type of argument to
7829         rtx_insn *.
7831 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7833         * builtins.c (expand_builtin_trap): Change type of local
7834         variable to rtx_insn *.
7835         (add_sched_insns_for_speculation): Likewise.
7836         (ix86_emit_save_regs): Likewise.
7837         (get_scratch_register_on_entry): Likewise.
7838         (ix86_emit_restore_reg_using_pop): Likewise.
7839         (ix86_emit_leave): Likewise.
7840         (ix86_emit_restore_regs_using_mov): Likewise.
7841         (ix86_expand_epilogue): Likewise.
7842         Likewise.
7843         (rl78_alloc_physical_registers_umul): Likewise.
7844         * cselib.c (discard_useless_locs): Likewise.
7845         (cselib_invalidate_regno): Likewise.
7846         (cselib_invalidate_mem): Likewise.
7847         * function.c (expand_function_start): Likewise.
7848         (emit_use_return_register_into_block): Likewise.
7849         * gcse.c: Likewise.
7850         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
7851         * ifcvt.c (noce_get_alt_condition): Likewise.
7852         * loop-doloop.c (doloop_condition_get): Likewise.
7853         * lra-constraints.c (inherit_in_ebb): Likewise.
7854         * modulo-sched.c (sms_schedule_by_order): Likewise.
7855         * recog.c (next_insn_tests_no_inequality): Likewise.
7856         * reorg.c (emit_delay_sequence): Likewise.
7857         (update_reg_dead_notes): Likewise.
7858         (fix_reg_dead_note): Likewise.
7859         (fill_slots_from_thread): Likewise.
7860         (delete_computation): Likewise.
7862 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
7864         * doc/extend.texi (Variable Attributes): Add menu and proper
7865         @nodes to subsections.  Move Microsoft Windows attributes to
7866         their own subsection.
7867         (Type Attributes): Reorganize introduction to remove duplicate
7868         list of attributes.  Add menu and proper @nodes to subsections.
7869         Alphabetize the main table of common attributes.
7871 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
7873         * match.pd: New simplification patterns.
7874         (x + (x & 1))  -> ((x + 1) & ~1)
7875         (x & ~(x & y)) -> ((x & ~y))
7876         (x | ~(x | y)) -> ((x | ~y))
7878 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7880         * target.def (attribute_table): Mention that struct attribute_spec
7881         is defined in tree-core.h rather than tree.h
7882         * doc/tm.texi: Regenerate.
7884 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
7886         * genrecog.c (test): Rename to rtx_test.  Update rest of file
7887         accordingly.
7889 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7891         PR translation/65959
7892         * params.h (DEFPARAM): Rename msgid to nocmsgid.
7894 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
7896         * gcc/config/aarch64/aarch64-protos.h (tune_params):
7897         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
7898         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
7899         Return value depending on target.
7900         (generic_tunings): Initialize new target settings.
7901         (cortexa53_tunings): Likewise.
7902         (cortexa57_tunings): Likewise.
7903         (thunderx_tunings): Likewise.
7904         (xgene1_tunings): Likewise.
7906 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
7908         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
7909         Make Cortex-A53 shift costs more accurate.
7911 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7913         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
7914         UNSIGNED_FLOAT.
7916 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
7918         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
7919         Calculate cost of op0 and op1 in PLUS and MINUS cases.
7921 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7923         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
7924         Add cost of op0 in the compare-with-fpzero case.
7926 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
7928         * builtins.c (fold_builtin_1): Remove spurious second
7929         semicolon.
7930         * cgraph.h (symtab_node::get_availability): Likewise.
7931         * opts.c (common_handle_option): Remove spurious second semicolon.
7932         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
7933         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
7935 2015-04-30  Caroline Tice  <cmtice@google.com>
7937         PR gcov-profile/65929
7938         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
7939         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
7940         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
7941         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
7942         * doc/tm.texi: Regenerate.
7943         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
7944         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
7945         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
7946         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
7948 2015-04-30  Marek Polacek  <polacek@redhat.com>
7950         * varasm.c (handle_cache_entry): Fix logic.
7952 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7954         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
7955         (*extrsi5_insn_uxtw_alt): Likewise.
7956         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
7957         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
7958         operations.
7960 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7962         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
7963         fabd in ABS case.
7965 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7967         * config/aarch64/aarch64.md
7968         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
7969         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
7970         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
7971         appropriately.  Handle alternative EON form.
7973 2015-04-30  Renlin Li  <renlin.li@arm.com>
7975         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
7976         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
7978 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
7980         PR ipa/65873
7981         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
7982         -fstrict-aliasing boundaries.
7984 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7986         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
7987         and [SU]MNEGL patterns.
7989 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7991         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
7992         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
7993         combined arithmetic-shift ops.  Properly handle all shift and extend
7994         operations that can occur in combination with PLUS/MINUS.
7995         Rename maybe_fma to compound_p.
7996         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
7997         arithmetic and shift operations.
7999 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8001         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
8002         rather than arith_shift cost when costing ADD/MINUS of an
8003         extended value.
8005 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
8007         PR lto/65948
8008         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
8009         to itself.
8011 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
8013         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
8014         are for the same position.
8016 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
8018         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
8019         vectorize_loops.
8020         (vectorize_loops): Use it.
8022 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
8024         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
8025         for aggregate types.
8026         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
8027         type to be non_ODR.
8028         * tree.c (need_assembler_name_p): Compute mangled name for
8029         non-fundamental types and integer types.
8031 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
8033         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
8034         manual swaps.
8035         * expr.c (expand_expr_real_2): Likewise.
8037 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
8039         * tree.c (build_common_builtin_nodes): Do not build
8040         __builtin_alloca_with_align as equivalent of library alloca.
8042 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
8044         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
8045         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
8046         bugus variants.
8047         * tree.c: Include print-tree.h and ipa-utils.h
8048         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
8049         (free_lang_data_in_cgraph): Call verify_type.
8050         (verify_type_variant): New function.
8051         (verify_type): New function.
8052         * tree.h (verify_type): Declare.
8054 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
8056         * config/mips/mips-cpus.def: (mips4): Change default processor
8057         from PROCESSOR_R8000 to PROCESSOR_R10000.
8059 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
8061         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
8062         la/jalr instead of jal.
8064 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
8066         PR target/65871
8067         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
8068         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
8069         (setcc+movzbl peephole2): Check also clobbered reg.
8070         (setcc+andl peephole2): Ditto.
8072 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
8074         PR libgomp/65099
8075         * config/nvptx/mkoffload.c (target_ilp32): New variable.
8076         (main): Set it depending on "-foffload-abi=[...]".
8077         (compile_native, main): Use it to pass "-m32" or "-m64" to the
8078         compiler.
8080 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
8082         PR target/65770
8083         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
8084         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
8085         Flip lane index back at assembly time for bigendian.
8087 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
8089         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
8090         * gimplify.c (gimplify_omp_workshare): Use it.
8092 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
8094         * Makefile.in (build/genrecog.o): Depend on inchash.h.
8095         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
8096         build/inchash.o
8097         * genrecog.c: Rewrite most of the code except for the third page.
8099 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
8101         * inchash.h, inchash.c: Include bconfig.h for build objects.
8102         * Makefile.in (build/inchash.o): New rule.
8104 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
8106         PR target/65924
8107         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
8108         number in type attribute expression.
8110 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
8112         * loop-iv.c (canon_condition): Generalize to all types of integer
8113         constant.
8115 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
8117         * gimple-walk.c: Prune duplicate or unneeded includes.
8118         (walk_gimple_asm): Only call parse_input_constraint or
8119         parse_output_constraint if their findings are used.
8120         Honour parse_input_constraint and parse_output_constraint
8121         result.
8123 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
8125         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
8127 2015-04-29  Tom de Vries  <tom@codesourcery.com>
8129         PR tree-optimization/65893
8130         * passes.def (pass_all_optimizations): Move pass_stdarg to after
8131         pass_dce.
8133 2015-04-29  Richard Biener  <rguenther@suse.de>
8135         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
8136         compute GROUP_SIZE for basic-block SLP.
8137         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
8138         take into account gaps.
8139         (vect_get_mask_element): Properly reject references to previous
8140         vectors.
8141         (vect_transform_slp_perm_load): Likewise.
8143 2015-04-29  Christian Bruel  <christian.bruel@st.com>
8145         PR target/64835
8146         * config/i386/i386.c (ix86_default_align): New function.
8147         (ix86_override_options_after_change): Call ix86_default_align.
8148         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
8149         (ix86_override_options_after_change): New function.
8151 2015-04-28  Jeff Law  <law@redhat.com>
8153         * tree-ssa-dom.c (record_equality); Fix comment typos.
8155 2015-04-28  Tom de Vries  <tom@codesourcery.com>
8157         PR tree-optimization/65887
8158         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
8160 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
8162         * doc/extend.texi (Declaring Attributes of Functions): Split into
8163         subsections by target.  Alphabetize the table of common attributes.
8164         Rewrite some of the introductory text to reflect the new structure.
8165         Update some cross-references to point to the new subsections.
8166         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
8167         duplicate copies in the discussion of function, label, and type
8168         attributes.
8170 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
8172         PR bootstrap/65910
8173         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
8175 2015-04-28  Jason Merrill  <jason@redhat.com>
8177         PR c++/65734
8178         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
8179         (finalize_type_size): Respect TYPE_USER_ALIGN.
8180         (layout_type) [ARRAY_TYPE]: Likewise.
8182 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
8184         * config/arm/arm.md (*arm_movt): Fix type attribute.
8185         (*cmpsi_shiftsi): Likewise.
8186         (*cmpsi_shiftsi_swp): Likewise.
8187         (*movsicc_insn): Likewise.
8188         (*cond_move): Likewise.
8189         (*if_plus_move): Likewise.
8190         (*if_move_plus): Likewise.
8191         (*if_arith_move): Likewise.
8192         (*if_move_arith): Likewise.
8193         (*if_shift_move): Likewise.
8194         (*if_move_shift): Likewise.
8195         (*arm_movtas_ze): Likewise.
8196         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
8197         redundancy and type attribute.
8198         (*thumb2_movsi_insn): Fix type attribute.
8199         (*thumb2_addsi_short): Likewise.
8200         (thumb2_addsi3_compare0): Likewise.
8201         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
8202         attributes accordingly.
8204 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
8206         PR other/65911
8207         * function.c (pad_to_arg_alignment): Add parentheses.
8209 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
8211         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
8212         libgcc/config/frv/elf-lib.h.
8214 2015-04-28  Tom de Vries  <tom@codesourcery.com>
8216         * tree-call-cdce.c: Fix example in header comment.
8218 2015-04-28  Richard Biener  <rguenther@suse.de>
8220         PR tree-optimization/62283
8221         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
8222         fails fatally and we are vectorizing a basic-block simply
8223         cause the child to be constructed piecewise.
8224         (vect_analyze_slp_cost_1): Adjust.
8225         (vect_detect_hybrid_slp_stmts): Likewise.
8226         (vect_bb_slp_scalar_cost): Likewise.
8227         (vect_get_constant_vectors): For piecewise constructed
8228         constants place them after the last def.
8229         (vect_get_slp_defs): Adjust.
8230         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
8231         externals for basic-block vectorization.
8233 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8235         PR target/63503
8236         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
8237         aarch64-*-*.
8238         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
8239         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
8240         (AARCH64_TUNE_FMA_STEERING): Likewise.
8241         * config/aarch64/aarch64-cores.def: Set
8242         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
8243         FMUL/FMADD instructions.
8244         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
8245         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
8246         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
8247         * config/aarch64/cortex-a57-fma-steering.h: New file.
8248         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8250 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
8252         * gensupport.c (std_preds): Add missing codes to address_operand entry.
8254 2015-04-28  Richard Biener  <rguenther@suse.de>
8256         PR tree-optimization/65851
8257         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
8258         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
8259         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
8260         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
8261         (ccp_visit_phi_node): Adjust.
8262         (evaluate_stmt): For simplifications to SSA names return its
8263         lattice value if that isn't VARYING.  Return immediately when
8264         simplified to a constant.
8265         (visit_assignment): Adjust.
8266         (ccp_visit_stmt): Likewise.
8268 2015-04-28  Tom de Vries  <tom@codesourcery.com>
8270         PR tree-optimization/65818
8271         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
8272         evaluated.
8274 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8276         * calls.c (save_fixed_argument_area): Don't check
8277         ARGS_GROW_DOWNWARD with the preprocessor.
8278         (restore_fixed_argument_area): Likewise.
8279         (mem_overlaps_already_clobbered_arg_p): Likewise.
8280         (check_sibcall_argument_overlap): Likewise.
8281         (expand_call): Likewise.
8282         (emit_library_call_value_1): Likewise.
8283         (store_one_arg): Likewise.
8284         * function.c (assign_parms): Likewise.
8285         (locate_and_pad_parm): Likewise.
8286         (pad_to_arg_alignment): Likewise.
8287         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
8289 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8291         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
8292         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
8293         * calls.c (save_fixed_argument_area): Don't chekc if
8294         ARGS_GROW_DOWNWARD is defined.
8295         (restore_fixed_argument_area): Likewise.
8296         (mem_overlaps_already_clobbered_arg_p): Likewise.
8297         (check_sibcall_argument_overlap): Likewise.
8298         (expand_call): Likewise.
8299         (emit_library_call_value_1): Likewise.
8300         (store_one_arg): Likewise.
8301         * function.c (assign_parms): Likewise.
8302         (locate_and_pad_parm): Likewise.
8303         (pad_to_arg_alignment): Likewise.
8304         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
8306 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8308         * defaults.h (gen_epilogue): New function.
8309         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
8310         defined.
8311         * cfgrtl.c (cfg_layout_finalize): Likewise.
8312         * df-scan.c: Likewise.
8313         * function.c (thread_prologue_and_epilogue_insns): Likewise.
8314         (reposition_prologue_and_epilogue_notes): Likewise.
8315         * reorg.c (find_end_label): Likewise.
8316         * toplev.c: Likewise.
8318 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8320         * bb-reorder.c (HAVE_return): Don't check if its undefined.
8321         * defaults.h (gen_simple_return): New function.
8322         (gen_simple_return): Likewise.
8323         (HAVE_return): Add default definition to false.
8324         (HAVE_simple_return): Likewise.
8325         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
8326         HAVE_return and HAVE_simple_return are defined.
8327         * function.c (gen_return_pattern): Likewise.
8328         (convert_jumps_to_returns): Likewise.
8329         (thread_prologue_and_epilogue_insns): Likewise.
8330         * reorg.c (find_end_label): Likewise.
8331         (dbr_schedule): Likewise.
8332         * shrink-wrap.c: Likewise.
8333         * shrink-wrap.h: Likewise.
8335 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8337         * defaults.h (EPILOGUE_USES): Add default definition of false.
8338         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
8339         * resource.c (init_resource_info): Likewise.
8341 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8343         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
8344         to false.
8345         * dwarf2out.c (field_byte_offset): REmove check if
8346         PCC_BITFIELD_TYPE_MATTERS is defined.
8347         * stor-layout.c (layout_decl): Likewise.
8348         (update_alignment_for_field): Likewise.
8349         (place_field): Likewise.
8351 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8353         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
8354         true.
8355         * regrename.c (check_new_reg_p): Remove check if
8356         HARD_REGNO_RENAME_OK is defined.
8357         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
8359 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8361         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
8362         * cse.c (fold_rtx): Likewise.
8363         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
8364         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
8365         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
8366         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
8367         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
8368         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
8369         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
8370         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
8371         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
8372         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
8373         * Likewise.
8374         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
8375         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
8376         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
8377         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
8378         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
8379         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
8380         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
8381         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
8382         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
8383         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
8384         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
8385         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
8386         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
8387         * doc/tm.texi: Regenerate.
8388         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
8389         either true or false.
8391 2015-04-27  Jeff Law  <law@redhat.com>
8393         PR tree-optimization/65217
8394         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
8395         of them has a single use, make sure it is the LHS of the implied
8396         copy.
8398 2015-04-28  Alan Modra  <amodra@gmail.com>
8400         PR target/65810
8401         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
8402         (offsettable_ok_by_alignment): Use minimum of decl and toc
8403         pointer alignment.  Replace dead code with assertion.
8404         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
8405         case if size exceeds toc pointer alignment.
8406         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
8407         (rs6000_emit_move): Likewise.
8408         * configure.ac: Add linker toc pointer alignment check.
8409         * configure: Regenerate.
8410         * config.in: Regenerate.
8412 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
8414         * config.gcc: Add h8300-*-linux.
8415         * config/h8300/linux.h: New.
8416         * config/h8300/t-linux: New.
8417         * config/h8300/h8300.c (h8300_option_override): Normal mode
8418         is not supported for h8300-*-linux.
8419         (h8300_file_start): Target priority change.
8420         (get_shift_alg): Likewise.
8421         (h8300_shift_need_scratch_p): Likewise.
8422         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
8423         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
8425 2015-04-27  Caroline Tice  <cmtice@google.com>
8427         * final.c (final_scan_insn):  Output cold_function_name as function
8428         type.
8429         * varasm.c (cold_function_name):  Make global.
8430         (assemble_start_function):  Re-set cold_function_name.
8431         (assemble_end_function): Output cold partition size.
8432         * varasm.h (cold_function_name):  Declare global.
8434 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
8436         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
8437         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
8438         constraint.
8439         (*movxi_internal_avx512f): Ditto.
8440         (define_split): Check for xmm16+, when splitting scalar float_extend.
8441         (*extendsfdf2_mixed): Use "v" constraint.
8442         (define_split): Check for xmm16+, when splitting scalar float_truncate.
8443         (*truncdfsf_fast_sse): Use "v" constraint.
8444         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
8445         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
8446         (define_peephole2): Check for xmm16+, when converting scalar
8447         float_truncate.
8448         (define_peephole2): Check for xmm16+, when converting scalar
8449         float_extend.
8450         (*fop_<mode>_comm_mixed): Use "v" constraint.
8451         (*fop_<mode>_comm_sse): Ditto.
8452         (*fop_<mode>_1_mixed): Ditto.
8453         (*sqrt<mode>2_sse): Ditto.
8454         (*ieee_s<ieee_maxmin><mode>3): Ditto.
8456 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8458         * combine.c (simplify_if_then_else): Use std::swap instead
8459         of manually swapping.
8460         (known_cond): Likewise.
8461         (simplify_comparison): Likewise.
8463 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
8465         PR target/64579
8466         * config/rs6000/htm.md: Remove all define_expands.
8467         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
8468         UNSPECV_HTM_TABORTWCI): Remove.
8469         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
8470         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
8471         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
8472         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
8473         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
8474         tabortwci_internal): Remove define_insns.
8475         (tabort<wd>c, tabort<wd>ci): New define_insns.
8476         (tabort): Use gpc_reg_operand.
8477         (tcheck): Remove operand.
8478         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
8479         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
8480         expected value.
8481         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
8482         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
8483         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
8484         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
8485         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
8486         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
8487         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
8488         (tcheck): Remove builtin argument.
8489         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
8490         not TARGET_64BIT.
8491         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
8492         tabortdc and tabortdci builtins when not in 64-bit mode.
8493         Modify code to handle the loss of the HTM define_expands.
8494         Emit code to copy the CR register to TARGET.
8495         (htm_init_builtins): Modify code to handle the loss of the HTM
8496         define_expands.
8497         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
8498         (RS6000_BTC_64BIT): Likewise.
8499         (RS6000_BTC_CR): New macro.
8500         * doc/extend.texi: Update documentation for htm builtins.
8502 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8504         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
8505         of manually swapping.
8506         (simplify_associative_operation): Likewise.
8507         (simplify_binary_operation): Likewise.
8508         (simplify_plus_minus): Likewise.
8509         (simplify_relational_operation): Likewise.
8510         (simplify_ternary_operation): Likewise.
8512 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
8514         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
8515         (xs_hi_nonmemory_operand): Remove error.
8516         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
8517         general_operand rather than xs_hi_general_operand.
8519 2015-04-27  Richard Biener  <rguenther@suse.de>
8521         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
8522         (record_equivalences_from_stmt): Valueize rhs.
8523         (record_equality): Canonicalize x and y order via
8524         tree_swap_operands_p.  Do not swap operands for same loop depth.
8526 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
8528         PR target/65296
8529         PR target/65895
8530         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
8531         Add hint how to use own spec file.
8533 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
8535         PR tree-optimization/65875
8536         * tree-vrp.c (update_value_range): If in is_new case setting
8537         old_vr to VR_VARYING, also set new_vr to it.  Remove
8538         old_vr->type == VR_VARYING test.
8539         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
8540         SSA_PROP_INTERESTING if update_value_range returned true,
8541         but new range is VR_VARYING.
8543 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8545         * combine.c (sign_extend_short_imm): New.
8546         (set_nonzero_bits_and_sign_copies): Use above new function for sign
8547         extension of src short immediate.
8548         (reg_nonzero_bits_for_combine): Likewise for tem.
8550 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
8552         * stor-layout.c (self_referential_component_ref_p): New predicate.
8553         (copy_self_referential_tree_r): Use it.
8554         (self_referential_size): Punt for simple operations directly involving
8555         self-referential component references.
8556         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
8558 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
8560         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
8562 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
8564         * vec.h (vec): Make splice arguments const.  Update definitions
8565         accordingly.
8567 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
8569         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
8570         alternatives.
8572 2015-04-26  Tom de Vries  <tom@codesourcery.com>
8574         PR tree-optimization/65826
8575         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
8577 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
8579         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
8580         (*madd3<mode>): Ditto.
8581         (*msub4<mode>): Ditto.
8582         (*msub3<mode>): Ditto.
8583         (*nmadd4<mode>): Ditto.
8584         (*nmadd3<mode>): Ditto.
8585         (*nmadd4<mode>_fastmath): Ditto.
8586         (*nmadd3<mode>_fastmath): Ditto.
8587         (*nmsub4<mode>): Ditto.
8588         (*nmsub3<mode>): Ditto.
8589         (*nmsub4<mode>_fastmath): Ditto.
8590         (*nmsub3<mode>_fastmath): Ditto.
8592 2015-04-24  Jason Merrill  <jason@redhat.com>
8594         PR c++/50800
8595         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
8596         down when building TYPE_CANONICAL.
8597         (build_pointer_type_for_mode): Likewise.
8599 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
8601         * genrecog.c (validate_pattern): Check matching constraint refers
8602         to a lower numbered operand.
8604 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
8606         PR target/65849
8607         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
8608         save to independent variables use the Save attribute.  This will
8609         allow these options to be modified with the #pragma/attribute
8610         target support.
8611         (-mallow-movmisalign): Likewise.
8612         (-mallow-df-permute): Likewise.
8613         (-msched-groups): Likewise.
8614         (-malways-hint): Likewise.
8615         (-malign-branch-targets): Likewise.
8616         (-mvectorize-builtins): Likewise.
8617         (-msave-toc-indirect): Likewise.
8619         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
8620         can be set via the #pragma/attribute target support.
8621         (rs6000_opt_vars): Likewise.
8622         (rs6000_inner_target_options): If VSX was set, also set
8623         -mno-avoid-indexed-addresses.
8625 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8627         * config/arm/iterators.md (shiftable_ops): Rename to...
8628         (SHIFTABLE_OPS): ... This.  Update use in comments.
8629         (ior_xor): Rename to...
8630         (IOR_XOR): ... This.
8631         (vqh_ops): Rename to...
8632         (VQH_OPS): ... This.
8633         (vqhs_ops): Rename to...
8634         (VQHS_OPS): ... This.
8635         (rshifts): Rename to...
8636         (RSHIFTS): ... This.
8637         (returns): Rename to...
8638         (RETURNS): ... This.
8639         * config/arm/arm.md: Update uses of the above.
8640         * config/arm/neon.md: Likewise.
8642 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8644         * config.host (case ${host}): Add aarch64*-*-linux case.
8645         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
8646         fields to all the cores.
8647         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
8648         Add MCPU_MTUNE_NATIVE_SPECS.
8649         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
8650         field to all extensions.
8651         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
8652         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
8653         Adjust definition of AARCH64_OPT_EXTENSION.
8654         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
8655         (MCPU_MTUNE_NATIVE_SPECS): Define.
8656         * config/aarch64/driver-aarch64.c: New file.
8657         * config/aarch64/x-arch64: New file.
8658         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
8659         -mtune and -march.
8661 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
8662             Wei Mi  <wmi@google.com>
8664         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
8665         * config/i386/i386.c (extract_base_offset_in_addr): New function.
8666         (ix86_operands_ok_for_move_multiple): Ditto.
8667         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
8668         (movlpd/movhpd to movupd peephole2): Ditto.
8670 2015-04-24  Marek Polacek  <polacek@redhat.com>
8672         PR c/61534
8673         * input.h (from_macro_expansion_at): Define.
8675         PR c/63357
8676         * doc/invoke.texi: Update description of -Wlogical-op.
8678 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8680         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
8681         ternary operator in fprintf and harmonize spacing.
8683 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
8685         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
8686         Mark operand1 commutative.
8688 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
8690         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
8691         input operands in memory.
8692         (*vec_concatv2si_sse4_1): Ditto.
8693         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
8694         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
8695         register_operand.
8696         (vec_extract_hi_v32hi): Ditto.
8697         (vec_extract_hi_v64hi): Ditto.
8698         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
8700 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8701             Steven Bosscher <steven@gcc.gnu.org>
8703         PR rtl-optimization/34503
8704         * cprop.c (cprop_reg_p): New.
8705         (hash_scan_set): Use above function to check if register can be
8706         propagated.
8707         (find_avail_set): Return up to two sets, one whose source is a
8708         register and one whose source is a constant.  Sets are returned in an
8709         array passed as parameter rather than as a return value.
8710         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
8711         sets returned by find_avail_set, starting with the one whose source is
8712         a constant. Use cprop_reg_p to check if register can be propagated.
8713         (do_local_cprop): Use cprop_reg_p to check if register can be
8714         propagated.
8715         (implicit_set_cond_p): Likewise.
8717 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
8719         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
8720         (sem_function::equals): IGNORED_NODES parameter is now unused;
8721         update call of equals_private.
8722         (sem_function::equals_private): Do not call equals_wpa; skip
8723         gimple body matching if there is no body.
8724         (sem_function::init): Add logic to hash tthunk info.
8725         (sem_function::parse): Also parse thunks.
8726         * ipa-icf.h (equals_private): Update declaration.
8728 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8730         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
8731         asterisk from name so this can be generated directly.
8732         (*altivec_stvx_<mode>_internal): Likewise.
8733         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
8734         that this is never called during or after reload/lra.
8735         (rs6000_frame_related): Remove split_reg
8736         argument and logic that references it.
8737         (emit_frame_save): Remove last parameter from call to
8738         rs6000_frame_related.
8739         (rs6000_emit_prologue): Remove last parameter from eight calls to
8740         rs6000_frame_related.  Force generation of stvx instruction for
8741         Altivec register saves.  Remove split_reg handling, which is no
8742         longer needed.
8743         (rs6000_emit_epilogue):  Force generation of lvx instruction for
8744         Altivec register restores.
8746 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8748         * config/rs6000/rs6000.opt (mcrypto): Change option description to
8749         match category changes in ISA 2.07B.
8751 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8753         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
8754         iterators.
8755         (cmp_op, cmp_type): New code attributes.
8756         (NEON_VCMP, NEON_VACMP): New int iterators.
8757         (cmp_op_unsp): New int attribute.
8758         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
8759         (neon_vceq<mode>): Delete.
8760         (neon_vc<cmp_op><mode>_insn): New pattern.
8761         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
8762         (neon_vcgeu<mode>): Delete.
8763         (neon_vcle<mode>): Likewise.
8764         (neon_vclt<mode>: Likewise.
8765         (neon_vcage<mode>): Likewise.
8766         (neon_vcagt<mode>): Likewise.
8767         (neon_vca<cmp_op><mode>): New define_expand.
8768         (neon_vca<cmp_op><mode>_insn): New pattern.
8769         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
8771 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
8773         * tree.h (attribute_value_equal): Declare.
8774         * tree.c (attribute_value_equal): Export.
8776 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
8778         * ipa-icf.c (sem_item::compare_attributes): New function.
8779         (sem_item::compare_referenced_symbol_properties): Compare variable
8780         attributes.
8781         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
8782         (sem_function::param_used_p): New function.
8783         (sem_function::equals_wpa): Fix attribute comparsion; match
8784         parameter type codes; do not compare paremter flags when
8785         they are not used; compare edge flags; compare indirect calls.
8786         (sem_item::update_hash_by_addr_refs): Hash reference type.
8787         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
8788         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
8789         reference use type.
8790         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
8791         * ipa-icf.h (compare_attributes, param_used_p): Declare.
8793 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
8795         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
8796         cleanup.
8797         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
8798         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
8799         (sem_item::compare_referenced_symbol_properties): New.
8800         (sem_item::hash_referenced_symbol_properties): New.
8801         (sem_item::compare_cgraph_references): Rename to ...
8802         (sem_item::compare_symbol_references): ... this one; use
8803         compare_referenced_symbol_properties.
8804         (sem_function::equals_wpa): Do not compare
8805         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
8806         DECL_IS_OPERATOR_NEW; compare pointer sizes.
8807         (sem_item::update_hash_by_addr_refs): Call
8808         hash_referenced_symbol_properties.
8809         (sem_item::update_hash_by_local_refs): Cleanup.
8810         (sem_function::merge): Do not mix up symbol properties.
8811         (sem_variable::equals_wpa): Use compare_symbol_references.
8812         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
8813         (sem_item::hash_referenced_symbol_properties): New.
8814         (sem_item::compare_symbol_references): New.
8815         (sem_item::compare_cgraph_references): Remove.
8817 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
8819         PR target/26702
8820         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
8821         Emit size of local.
8823 2015-04-23  Nick Clifton  <nickc@redhat.com>
8825         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
8826         ATTRIBUTE_UNUSED to x parameter.
8827         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
8829 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8831         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
8832         TARGET_CRYPTO to TARGET_P8_VECTOR>
8833         (crypto_vpermxor_<mode>): Likewise.
8834         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
8835         (BU_CRYPTO_3A): Likewise.
8836         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
8837         (BU_CRYPTO_OVERLOAD_3A): New #define.
8838         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
8839         (VPMSUMH): Likewise.
8840         (VPMSUMW): Likewise.
8841         (VPMSUMD): Likewise.
8842         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
8843         (VPERMXOR_V4SI): Likewise.
8844         (VPERMXOR_V8HI): Likewise.
8845         (VPERMXOR_V16QI): Likewise.
8846         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
8847         BU_CRYPTO_OVERLOAD_2A.
8848         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
8849         BU_CRYPTO_OVERLOAD_3A.
8850         * config/rs6000/rs6000.opt (mcrypto): Change description of
8851         option.
8853 2015-04-23  Richard Biener  <rguenther@suse.de>
8855         * passes.def: Remove copy propagation passes run directly after CCP.
8856         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
8857         SSA names.
8858         (ccp_visit_phi_node): Rework to handle first executable edge
8859         specially.
8861 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
8863         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
8864         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
8865         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
8866         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
8867         (thumb_legimitimize_reload_address): Remove.
8868         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
8869         Remove.
8870         (thumb_legimitimize_reload_address): Remove.
8872 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8874         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
8876 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8878         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
8879         MAX_LDM_STM_OPS.
8880         (store_multiple): Likewise.
8882 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8884         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
8885         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
8886         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
8887         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
8888         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
8889         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
8890         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
8891         Specify issue_rate value.
8892         (arm_issue_rate): Look up issue rate from tuning structs. Remove
8893         large switch statement.
8894         (arm_marvell_pj4_tune): New struct.
8895         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
8896         struct.
8898 2015-04-23  Richard Biener  <rguenther@suse.de>
8900         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
8901         (vect_find_last_store_in_slp_instance): Rename to ...
8902         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
8903         (vect_analyze_slp_cost_1): Use vector_load for constant defs
8904         and vec_construct for external defs when estimating prologue cost.
8905         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
8906         Compute costs here only when vectorizing loops.
8907         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
8908         have been determined.
8909         (vect_schedule_slp_instance): Simplify vectorized code placement
8910         and prepare for in-BB external defs.
8911         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
8912         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
8913         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
8914         guard.
8915         (vect_model_load_cost): Likewise.
8916         (vectorizable_store): Instead add it here.
8917         (vectorizable_load): Likewise.
8918         (vect_is_simple_use): Dump def type textually.
8920 2015-04-23  Richard Biener  <rguenther@suse.de>
8922         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
8923         * cfgloop.c (verify_loop_structure): Verify the root loop node.
8924         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
8925         instead of get_eh_region_from_lp_number.
8926         * loop-init.c (fix_loop_structure): If we removed a loop, reset
8927         the SCEV cache.
8929 2015-04-23  Anton Blanchard  <anton@samba.org>
8931         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
8932         need for -mprofile-kernel to save LR to stack.
8934 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8936         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
8937         adjustments.
8938         (insn_is_swappable_p): Return 1 for a convert from double to
8939         single precision when all of its uses are splats of BE element
8940         zero.
8942 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
8944         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
8946 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8948         PR target/65456
8949         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
8950         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
8951         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
8952         option.
8953         (rs6000_builtin_mask_for_load): Return 0 for targets with
8954         efficient unaligned VSX accesses so that the vectorizer will use
8955         direct unaligned loads.
8956         (rs6000_builtin_support_vector_misalignment): Always return true
8957         for targets with efficient unaligned VSX accesses.
8958         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
8959         stores on targets with efficient unaligned VSX accesses is almost
8960         always the same as the cost of an aligned load or store, so model
8961         it that way.
8962         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
8963         unaligned vectors if we have efficient unaligned VSX accesses.
8964         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
8965         undocumented option.
8967 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8969         Revert:
8970         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
8972         * config.gcc (LIBC_MUSL): New tm_defines macro.
8973         * config/linux.h (OPTION_MUSL): Define.
8974         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
8975         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
8976         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
8978         * config/linux.opt (mmusl): New option.
8979         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
8980         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
8982         * configure: Regenerate.
8984 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
8986         * config.gcc (LIBC_MUSL): New tm_defines macro.
8987         * config/linux.h (OPTION_MUSL): Define.
8988         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
8989         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
8990         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
8992         * config/linux.opt (mmusl): New option.
8993         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
8994         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
8996         * configure: Regenerate.
8998 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
9000         * doc/invoke.texi (-fsanitize-sections): Update description.
9001         * asan.c (set_sanitized_sections): Parse incoming arg.
9002         (section_sanitized_p): Support wildcards.
9004 2015-04-22  Tom de Vries  <tom@codesourcery.com>
9006         PR tree-optimization/65823
9007         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
9008         equality between ap_copy and ap.
9010 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9012         PR target/47098
9013         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
9015 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9017         PR target/47122
9018         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
9020 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9022         PR target/55144
9023         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
9024         remove already contained t-files.
9026 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9028         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
9029         Remove unneeded forward declarations.
9030         (suitable_for_tail_call_opt_p): Commentary typo fix.
9032 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9034         * varasm.c (emit_bss): Remove redundant guard.
9036 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9038         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
9040 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9042         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
9044 2015-04-22  Hale Wang  <hale.wang@arm.com>
9045             Terry Guo  <terry.guo@arm.com>
9047         PR rtl-optimization/64818
9048         * combine.c (can_combine_p): Don't combine user-specified
9049         register if it is in an asm input.
9051 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
9053         PR ipa/65076
9054         * passes.def (early_optimizations): Add pass_dse.
9056 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9058         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
9059         * reorg.c (redundant_insn): Remove ifdef
9060         INSN_REFERENCES_ARE_DELAYED.
9061         * resource.c (mark_referenced_resources): Likewise.
9063 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9065         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
9066         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
9067         * resource.c (mark_set_resources): Likewise.
9069 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9071         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
9072         * cfgcleanup.c (flow_find_cross_jump): Likewise.
9073         (flow_find_head_matching_sequence): Likewise.
9074         (try_head_merge_bb): Likewise.
9075         * combine.c (can_combine_p): Likewise.
9076         (try_combine): Likewise.
9077         (distribute_notes): Likewise.
9078         * df-problems.c (can_move_insns_across): Likewise.
9079         * final.c (final): Likewise.
9080         * gcse.c (insert_insn_end_basic_block): Likewise.
9081         * ira.c (find_moveable_pseudos): Likewise.
9082         * reorg.c (try_merge_delay_insns): Likewise.
9083         (fill_simple_delay_slots): Likewise.
9084         (fill_slots_from_thread): Likewise.
9085         * sched-deps.c (sched_analyze_2): Likewise.
9087 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9089         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
9090         PIC_OFFSET_TABLE_REGNUM.
9092 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9094         * alias.c (init_alias_target): Remove ifdef
9095         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
9096         * df-scan.c (df_insn_refs_collect): Likewise.
9097         (df_get_regular_block_artificial_uses): Likewise.
9098         (df_get_eh_block_artificial_uses): Likewise.
9099         (df_get_entry_block_def_set): Likewise.
9100         (df_get_exit_block_use_set): Likewise.
9101         * emit-rtl.c (gen_rtx_REG): Likewise.
9102         * ira.c (ira_setup_eliminable_regset): Likewise.
9103         * reginfo.c (init_reg_sets_1): Likewise.
9104         * regrename.c (rename_chains): Likewise.
9105         * reload1.c (reload): Likewise.
9106         (eliminate_regs_in_insn): Likewise.
9107         * resource.c (mark_referenced_resources): Likewise.
9108         (init_resource_info): Likewise.
9110 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9112         * defaults.h (MASK_RETURN_ADDR): New definition.
9113         * except.c (expand_builtin_extract_return_addr): Remove ifdef
9114         MASK_RETURN_ADDR.
9116 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9118         * defaults.h (RETURN_ADDR_OFFSET): New definition.
9119         * except.c (expand_builtin_extract_return_addr): Remove ifdef
9120         RETURN_ADDR_OFFSET.
9121         (expand_builtin_frob_return_addr): Likewise.
9123 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9125         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
9126         (try_redirect_by_replacing_jump): Likewise.
9127         (rtl_tidy_fallthru_edge): Likewise.
9128         * combine.c (insn_a_feeds_b): Likewise.
9129         (find_split_point): Likewise.
9130         (simplify_set): Likewise.
9131         * cprop.c (cprop_jump): Likewise.
9132         * cse.c (cse_extended_basic_block): Likewise.
9133         * df-problems.c (can_move_insns_across): Likewise.
9134         * function.c (emit_use_return_register_into_block): Likewise.
9135         * haifa-sched.c (sched_init): Likewise.
9136         * ira.c (find_moveable_pseudos): Likewise.
9137         * loop-invariant.c (find_invariant_insn): Likewise.
9138         * lra-constraints.c (curr_insn_transform): Likewise.
9139         * postreload.c (reload_combine_recognize_const_pattern):
9140         * Likewise.
9141         * reload.c (find_reloads): Likewise.
9142         * reorg.c (delete_scheduled_jump): Likewise.
9143         (steal_delay_list_from_target): Likewise.
9144         (steal_delay_list_from_fallthrough): Likewise.
9145         (redundant_insn): Likewise.
9146         (fill_simple_delay_slots): Likewise.
9147         (fill_slots_from_thread): Likewise.
9148         (delete_computation): Likewise.
9149         * sched-rgn.c (add_branch_dependences): Likewise.
9151 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9153         * genconfig.c (main): Always define HAVE_cc0.
9154         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
9155         HAVE_cc0.
9156         * cfgcleanup.c (flow_find_cross_jump): Likewise.
9157         (flow_find_head_matching_sequence): Likewise.
9158         (try_head_merge_bb): Likewise.
9159         * cfgrtl.c (rtl_merge_blocks): Likewise.
9160         (try_redirect_by_replacing_jump): Likewise.
9161         (rtl_tidy_fallthru_edge): Likewise.
9162         * combine.c (do_SUBST_MODE): Likewise.
9163         (insn_a_feeds_b): Likewise.
9164         (combine_instructions): Likewise.
9165         (can_combine_p): Likewise.
9166         (try_combine): Likewise.
9167         (find_split_point): Likewise.
9168         (subst): Likewise.
9169         (simplify_set): Likewise.
9170         (distribute_notes): Likewise.
9171         * cprop.c (cprop_jump): Likewise.
9172         * cse.c (cse_extended_basic_block): Likewise.
9173         * df-problems.c (can_move_insns_across): Likewise.
9174         * final.c (final): Likewise.
9175         (final_scan_insn): Likewise.
9176         * function.c (emit_use_return_register_into_block): Likewise.
9177         * gcse.c (insert_insn_end_basic_block): Likewise.
9178         * haifa-sched.c (sched_init): Likewise.
9179         * ira.c (find_moveable_pseudos): Likewise.
9180         * loop-invariant.c (find_invariant_insn): Likewise.
9181         * lra-constraints.c (curr_insn_transform): Likewise.
9182         * optabs.c (prepare_cmp_insn): Likewise.
9183         * postreload.c (reload_combine_recognize_const_pattern):
9184         * Likewise.
9185         * reload.c (find_reloads): Likewise.
9186         (find_reloads_address_1): Likewise.
9187         * reorg.c (delete_scheduled_jump): Likewise.
9188         (steal_delay_list_from_target): Likewise.
9189         (steal_delay_list_from_fallthrough): Likewise.
9190         (try_merge_delay_insns): Likewise.
9191         (redundant_insn): Likewise.
9192         (fill_simple_delay_slots): Likewise.
9193         (fill_slots_from_thread): Likewise.
9194         (delete_computation): Likewise.
9195         (relax_delay_slots): Likewise.
9196         * sched-deps.c (sched_analyze_2): Likewise.
9197         * sched-rgn.c (add_branch_dependences): Likewise.
9199 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9201         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
9202         that is trivially ded on non cc0 targets.
9203         (simplify_set): Likewise.
9204         (mark_used_regs_combine): Likewise.
9205         * cse.c (new_basic_block): Likewise.
9206         (fold_rtx): Likewise.
9207         (cse_insn): Likewise.
9208         (cse_extended_basic_block): Likewise.
9209         (set_live_p): Likewise.
9210         * rtlanal.c (canonicalize_condition): Likewise.
9211         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9213 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9215         * conditions.h: Define macros even if HAVE_cc0 is undefined.
9216         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
9217         * final.c: Likewise.
9218         * jump.c: Likewise.
9219         * recog.c: Likewise.
9220         * recog.h: Declare functions even when HAVE_cc0 is undefined.
9221         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
9223 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9225         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
9226         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
9227         * builtins.c (expand_builtin): Remove check if
9228         EH_RETURN_DATA_REGNO is defined.
9229         * df-scan.c (df_bb_refs_collect): Likewise.
9230         (df_get_exit_block_use_set): Likewise.
9231         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
9232         * ira-lives.c (process_bb_node_lives): Likewise.
9233         * lra-lives.c (process_bb_lives): Likewise.
9235 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
9237         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
9238         FIRST_PSEUDO_REG): New.
9239         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
9240         (ARG_POINTER_REGNUM): Define to ARGP_REG.
9241         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
9242         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
9243         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
9244         (FIRST_INT_REG): New.
9245         (LAST_INT_REG): New.
9246         (FIRST_*_REG): Define using *_REG.
9247         (LAST_*_REG): Ditto.
9248         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
9249         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
9250         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
9252 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9254         * expmed.c: (synth_mult): Only assume overlapping
9255         shift with previous steps in alg_sub_t_m2 case.
9257 2015-04-21  Richard Biener  <rguenther@suse.de>
9259         PR tree-optimization/65650
9260         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
9261         transitions involving copies.
9262         (set_lattice_value): Adjust for copy lattice state.
9263         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
9264         if that doesn't dominate the merge point.
9265         (bit_value_unop): Adjust what we treat as varying mask.
9266         (bit_value_binop): Likewise.
9267         (bit_value_assume_aligned): Likewise.
9268         (evaluate_stmt): When we simplified to a SSA name record a copy
9269         instead of dropping to varying.
9270         (visit_assignment): Simplify.
9272         * gimple-match.h (gimple_simplify): Add another callback.
9273         * gimple-fold.c (fold_stmt_1): Adjust caller.
9274         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
9275         for the 2nd callback.
9276         * gimple-match-head.c (gimple_simplify): Add a callback that is
9277         used to valueize the stmt operands and use it that way.
9279 2015-04-21  Richard Biener  <rguenther@suse.de>
9281         PR tree-optimization/65788
9282         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
9284 2015-04-21  Richard Biener  <rguenther@suse.de>
9286         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
9287         vec_construct cost by vec_stmt_cost.
9289 2015-04-21  Richard Biener  <rguenther@suse.de>
9291         * cfghooks.h (create_basic_block): Replace with two overloads
9292         for RTL and GIMPLE.
9293         (split_block): Likewise.
9294         * cfghooks.c (split_block): Rename to ...
9295         (split_block_1): ... this.
9296         (split_block): Add two type-safe overloads for RTL and GIMPLE.
9297         (split_block_after_labels): Call split_block_1.
9298         (create_basic_block): Rename to ...
9299         (create_basic_block_1): ... this.
9300         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
9301         (create_empty_bb): Call create_basic_block_1.
9302         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
9303         split_block_after_labels.
9304         * omp-low.c (expand_parallel_call): Likewise.
9305         (expand_omp_target): Likewise.
9306         (simd_clone_adjust): Likewise.
9307         * tree-chkp.c (chkp_get_entry_block): Likewise.
9308         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
9309         create_basic_block overload.
9310         (cgraph_node::expand_thunk): Likewise.
9311         * tree-cfg.c (make_blocks): Likewise.
9312         (handle_abnormal_edges): Likewise.
9313         * tree-inline.c (copy_bb): Likewise.
9315 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9317         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
9318         New pattern.
9319         (*xor_one_cmplsidi3_ze): Likewise.
9321 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9323         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
9324         use df_remove_problem rather than manually removing problems, leaving
9325         holes in df->problems_in_order[].
9327 2015-04-21  Tom de Vries  <tom@codesourcery.com>
9329         PR tree-optimization/65802
9330         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
9332 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9334         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
9335         Increase to 128.
9336         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
9337         at '.'.  Assert that there's enough space for everything.
9339 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
9341         PR tree-optimization/64950
9342         Revert:
9343         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
9345         PR target/41089
9346         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
9347         as volatile.
9349 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
9351         PR rtl-optimization/64916
9352         * cfgcleanup.c (values_equal_p): New function.
9353         (can_replace_by): Use it.
9355 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
9357         PR c++/65801
9358         * doc/invoke.texi ([-Wnarrowing]): Update.
9360 2015-04-20  Jeff Law  <law@redhat.com>
9362         PR tree-optimization/65658
9363         * tree-ssa-threadupdate.c (redirection_block_p): Remove
9364         redundant test for GIMPLE_ASSIGN in last change.
9366 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
9368         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
9369         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
9370         (legitimize_tls_address): Ditto.
9371         (ix86_expand_move): Ditto.
9372         (ix86_expand_binary_operator): Remove reload_in_progress checks.
9373         (ix86_expand_unary_operator): Ditto.
9374         * config/i386/predicates.md (index_register_operand): Ditto.
9376 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
9378         * reorg.c (try_merge_delay_insns): Improve correctness checking
9379         for targets with multiple delay slots.
9381 2015-04-20  Jeff Law  <law@redhat.com>
9383         PR tree-optimization/65658
9384         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
9385         statements too.
9387 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
9389         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
9390         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
9391         Delete.
9393 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
9395         PR debug/65807
9396         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
9398 2015-04-20  Richard Biener  <rguenther@suse.de>
9400         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
9401         * gimple-fold.c (gimple_build_valueize): New function.
9402         (gimple_build): Always use gimple_build_valueize as valueize hook.
9404 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
9406         PR target/64134
9407         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
9408         and overwrite variable parts if <= 1/2 the elements are variable.
9410 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
9412         PR rtl-optimization/65805
9413         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
9414         Don't use difference of offset and previous offset if
9415         update_sp_offset is non-zero.
9416         (eliminate_regs_in_insn): Ditto.
9417         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
9418         lra_eliminate_regs_1 call.
9419         * lra-constraints.c (get_equiv_with_elimination): Ditto.
9421 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
9423         * hash-table.h: Remove version of hash_table that stored value_type *.
9424         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
9425         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
9426         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
9427         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
9428         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
9429         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
9430         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
9431         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
9432         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
9433         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
9434         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
9435         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
9436         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
9437         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
9438         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
9439         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
9441 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9442             Jakub Jelinek  <jakub@redhat.com>
9444         PR target/65787
9445         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
9446         subsequent SH_NONE operand does not overwrite an existing *special
9447         value.
9448         (adjust_extract): Handle case where a vec_extract operation is
9449         wrapped in a PARALLEL.
9451 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
9453         PR target/65780
9454         * config/i386/i386.c (ix86_binds_local_p): Define only if
9455         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
9457 2015-04-17  Jeff Law  <law@redhat.com>
9459         PR tree-optimization/47679
9460         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
9461         * tree-ssa-scopedtables.c: New file.
9462         * tree-ssa-scopedtables.h: New file.
9463         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
9464         (const_and_copies): Change name/type.
9465         (record_const_or_copy): Move into tree-ssa-scopedtables.c
9466         (record_const_or_copy_1): Similarly.
9467         (restore_vars_to_original_value): Similarly.
9468         (pass_dominator::execute): Create and destroy const_and_copies table.
9469         (thread_across_edge): Update passing of const_and_copies.
9470         (record_temporary_equivalence): Use method calls rather than
9471         manipulating const_and_copies directly.
9472         (record_equality, cprop_into_successor_phis): Similarly.
9473         (dom_opt_dom_walker::before_dom_children): Similarly.
9474         (dom_opt_dom_walker::after_dom_children): Similarly.
9475         (eliminate_redundant_computations): Similarly.
9476         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
9477         (record_temporary_equivalence): Likewise.
9478         (invalidate_equivalences): Likewise.
9479         (record_temporary_equivalences_from_phis): Update due to type
9480         change of const_and_copies.  Use method calls rather than
9481         manipulating the stack directly.
9482         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
9483         (thread_through_normal_block, thread_across_edge): Likewise.
9484         (thread_across_edge): Likewise.
9485         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
9486         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
9487         of equiv_stack.
9488         (identify_jump_threads): Update due to type change of equiv_stack.
9489         (finalize_jump_threads): Delete the equiv_stack when complete.
9491 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
9493         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
9494         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
9495         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
9497 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
9499         PR target/65535
9500         * config.gcc: Exit with a comment when we do not have a major version
9501         number for the FreeBSD target.
9503 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
9505         PR target/65689
9506         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
9507         maybe_allows_mem bitfields.
9508         (maybe_allows_none_start, maybe_allows_none_end,
9509         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
9510         maybe_allows_mem_end): New variables.
9511         (compute_maybe_allows): New function.
9512         (add_constraint): Use it to initialize maybe_allows_reg and
9513         maybe_allows_mem fields.
9514         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
9515         is_address constraints such that those that allow neither mem nor
9516         reg come first, then those that only allow reg but not mem, then
9517         those that only allow mem but not reg, then the rest.
9518         (write_allows_reg_mem_function): New function.
9519         (write_tm_preds_h): Call it.
9520         * stmt.c (parse_output_constraint, parse_input_constraint): Use
9521         the generated insn_extra_constraint_allows_reg_mem function
9522         instead of always setting *allows_reg = true; *allows_mem = true;
9523         for unknown extra constraints.
9525 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
9527         PR target/65780
9528         * output.h (default_binds_local_p_3): New.
9529         * varasm.c (default_binds_local_p_3): Make it public.  Take an
9530         argument to indicate if common symbol may be local.  If common
9531         symbol may be local, treat non-external variable as defined
9532         locally.
9533         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
9534         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
9535         * config/i386/i386.c (ix86_binds_local_p): New.
9536         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
9537         ix86_binds_local_p.
9539 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
9541         PR debug/65771
9542         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
9543         trying mem_loc_descriptor on XEXP (rtl, 0).
9545 2015-04-17  Martin Liska  <mliska@suse.cz>
9547         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
9548         Release symbol_compare_collection.
9549         * ipa-reference.c: Add TODO that a vector should be released.
9551 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
9553         PR target/65296
9554         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
9555         to new AVR-LibC file layout (bug #44574).
9556         (*avrlibc_devicelib): Same.
9557         * config/avr/avr-mcus.def: Adjust comments.
9558         * config/avr/avr.opt (nodevicelib): Adjust help.
9560 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
9562         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
9564 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
9566         PR c++/64527
9567         * gimplify.c (gimplify_init_constructor): Always emit a
9568         side-effecting constructor.
9570 2015-04-17  Tom de Vries  <tom@codesourcery.com>
9572         PR tree-optimization/64950
9573         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
9574         in cfun->curr_properties.
9575         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
9576         if we generate an IFN_VA_ARG.
9577         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
9578         function if PROP_gimple_lva is not set in src function.
9580 2015-04-17  Tom de Vries  <tom@codesourcery.com>
9581             Michael Matz  <matz@suse.de>
9583         PR tree-optimization/64950
9584         * gimple-iterator.c (update_modified_stmts): Remove static.
9585         * gimple-iterator.h (update_modified_stmts): Declare.
9586         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
9587         (gimplify_va_arg_internal): New function.
9588         (gimplify_va_arg_expr): Use IFN_VA_ARG.
9589         * gimplify.h (gimplify_va_arg_internal): Declare.
9590         * internal-fn.c (expand_VA_ARG): New unreachable function.
9591         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
9592         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
9593         (expand_ifn_va_arg): New function.
9594         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
9595         (pass_stdarg::execute): Call expand_ifn_va_arg.
9596         (pass_data_lower_vaarg): New pass_data.
9597         (pass_lower_vaarg): New gimple_opt_pass.
9598         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
9599         (make_pass_lower_vaarg): New function.
9600         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
9601         properties_required field.
9602         * passes.def (all_passes): Add pass_lower_vaarg.
9603         * tree-pass.h (PROP_gimple_lva): Add define.
9604         (make_pass_lower_vaarg): Declare.
9606 2015-04-17  Tom de Vries  <tom@codesourcery.com>
9608         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
9609         * calls.c (call_expr_flags): Same.
9611 2015-04-17  Tom de Vries  <tom@codesourcery.com>
9613         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
9614         (pass_stdarg::execute): ... here.
9616 2015-04-17  Tom de Vries  <tom@codesourcery.com>
9617             Michael Matz  <matz@suse.de>
9619         * tree-cfg.c (make_blocks_1): Factor out of ...
9620         (make_blocks): ... here.
9621         (make_edges_bb): Factor out of ...
9622         (make_edges): ... here.
9623         (gimple_find_sub_bbs): New function.
9624         * tree-cfg.h (gimple_find_sub_bbs): Declare.
9626 2015-04-17  Tom de Vries  <tom@codesourcery.com>
9628         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
9630 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
9632         * asan.c (set_sanitized_sections): New function.
9633         (section_sanitized_p): Ditto.
9634         (asan_protect_global): Optionally sanitize user-defined
9635         sections.
9636         * asan.h (set_sanitized_sections): Declare new function.
9637         * common.opt (fsanitize-sections): New option.
9638         * doc/invoke.texi (-fsanitize-sections): Document new option.
9639         * opts-global.c (handle_common_deferred_options): Handle new
9640         option.
9642 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
9644         PR debug/65771
9645         * dwarf2out.c (loc_list_from_tree): Return NULL
9646         for DEBUG_EXPR_DECL.
9648 2015-04-17  Christian Bruel  <christian.bruel@st.com>
9650         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
9651         same attributes.
9653 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
9655         * ira-color.c (setup_left_conflict_sizes_p): Do not process
9656         node itself when computing left conflict subnode size.
9658 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
9660         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
9661         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
9662         *fop_<mode>_1_sse using enabled attribute.  Use
9663         register_mixssei387nonimm_operand operand 1 predicate. Change
9664         alternative 3 constraints from "x" to "v".
9666 2015-04-16  Richard Biener  <rguenther@suse.de>
9668         PR tree-optimization/65774
9669         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
9670         bit-value tracking on.
9672 2015-04-16  Richard Biener  <rguenther@suse.de>
9674         PR tree-optimization/64277
9675         * tree-vrp.c (check_array_ref): Fix anti-range handling,
9676         simplify upper bound handling.
9677         (search_for_addr_array): Simplify.
9678         (check_array_bounds): Handle ADDR_EXPRs here.
9679         (check_all_array_refs): Simplify.
9681 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
9683         * config/i386/i386.c (print_reg): Rewrite function.
9685 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9687         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
9688         Invert the condition.
9690 2015-04-16  Renlin Li  <renlin.li@arm.com>
9692         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
9693         simplifications for UNSIGNED_FLOAT.
9695 2015-04-16  Nick Clifton  <nickc@redhat.com>
9697         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
9698         MUL_UNINIT.
9699         (enum rl78_cpu_type): New.
9700         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
9701         (umulhi3_shift_virt): Remove m constraint from operand 1.
9702         (umulqihi3_virt): Likewise.
9703         * config/rl78/rl78.c (rl78_option_override): Add code to process
9704         -mcpu and -mmul options.
9705         (rl78_alloc_physical_registers): Add code to handle divhi and
9706         divsi valloc attributes.
9707         (set_origin): Likewise.
9708         * config/rl78/rl78.h (RL78_MUL_G14): Define.
9709         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
9710         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
9711         __RL78_Gxx__.
9712         (ASM_SPEC): Pass -mcpu on to assembler.
9713         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
9714         (mulqi3_rl78): Likewise.
9715         (mulhi3_g13): Likewise.
9716         (mulhi3): Generate the G13 or G14 versions of the insn directly.
9717         (mulsi3): Likewise.
9718         (mulhi3_g14): Add clobbers of AX and BC.
9719         (mulsi3_g14): Likewise.
9720         (mulsi3_g13): Likewise.
9721         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
9722         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
9723         * config/rl78/rl78.opt (mmul): Initialise value to
9724         RL78_MUL_UNINIT.
9725         (mcpu): New option.
9726         (m13, m14, mrl78): New option aliases.
9727         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
9728         (MULTILIB_DIRNAMES): Add g13 and g14.
9729         * doc/invoke.texi: Document -mcpu and -mmul options.
9731 2015-04-16  Richard Biener  <rguenther@suse.de>
9733         * tree-ssa-ccp.c (likely_value): See if we have operands that
9734         are marked as never simulate again and return CONSTANT in this
9735         case.
9736         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
9737         not have any operands that will be simulated again as
9738         not being simulated again.
9740 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
9742         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
9743         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
9744         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
9745         attribute.
9746         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
9747         enabled attribute.
9748         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
9749         *float<SWI48:mode><MODEF:mode>2_sse.
9750         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
9751         enabled attribute.
9752         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
9753         enabled attribute.
9755 2015-04-15  Tom de Vries  <tom@codesourcery.com>
9757         PR other/65487
9758         * function.c (push_dummy_function): New function.
9759         (init_dummy_function_start): Use push_dummy_function.
9760         (pop_dummy_function): New function.  Factored out of ...
9761         (expand_dummy_function_end): ... here.
9762         * function.h (push_dummy_function, pop_dummy_function): Declare.
9763         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
9764         pop_dummy_function.
9765         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
9767 2015-04-15  Jeff Law  <law@redhat.com>
9769         PR tree-optimization/47679
9770         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
9771         need for forward declaration in upcoming changes.
9772         (record_conditions, record_edge_info): Likewise.
9774         PR rtl-optimization/42522
9775         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
9776         SIGN_EXTRACT as a whole object rather than simplifying
9777         its operand.
9779 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
9781         PR ipa/65765
9782         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
9783         and GIMPLE_PREDICT use break instead of return true. For
9784         GIMPLE_EH_DISPATCH, compare dispatch region.
9786 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
9788         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
9789         details about the implementation.  Make clear preference for
9790         __atomic builtins.  Reduce possibility of future change.
9792 2015-04-15  Nick Clifton  <nickc@redhat.com>
9794         * config/rx/rx.opt (mallow-string-insns): New option.
9795         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
9796         builtin if string instructions are denied.
9797         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
9798         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
9799         appropriate.
9800         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
9801         * config/rx/rx.md (movstr): Enable pattern only if string
9802         instructions are allowed.
9803         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
9804         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
9805         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
9806         (MULTILIB_DIRNAMES): Add no-strings.
9807         * doc/invoke.texi: Document -mno-allow-string-insns.
9809 2015-04-15  Alan Modra  <amodra@gmail.com>
9811         PR target/65408
9812         PR target/58744
9813         PR middle-end/36043
9814         * calls.c (load_register_parameters): Don't load past end of
9815         mem unless suitably aligned.
9817 2015-04-15  Nick Clifton  <nickc@redhat.com>
9819         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
9820         decrement instruction as being frame related.
9821         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
9822         based addresses.
9823         If zero extending a function address enclose the operation in
9824         %code(...).
9825         (rl78_preferred_reload_class): New function.
9826         (TARGET_PREFERRED_RELOAD_CLASS): Define.
9827         * config/rl78/rl78.md: Remove useless constraints in expanders.
9828         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
9829         (mulhi3_rl78): Likewise.
9830         (mulhi3_g13): Likewise.
9831         (mulsi3_rl78): Likewise.
9832         (es_addr): Move to before the multiply patterns.
9834 2015-04-15  Alan Modra  <amodra@gmail.com>
9836         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
9837         and sequence_stack.  Add seq.
9838         (seq_stack): Delete.
9839         * function.c (prepare_function_start): Don't access x_last_insn.
9840         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
9841         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
9842         * emit_rtl.c (start_sequence, push_topmost_sequence,
9843         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
9844         sequence accessors.
9845         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
9846         remove_insn): Likewise.  Simplify.
9847         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
9848         and pop_topmost_sequence.
9849         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
9850         debug insns.
9851         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
9853 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
9855         PR target/65729
9856         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
9857         the assertiion.
9859 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
9861         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
9862         (LEGACY_INT_REGNO_P): Ditto.
9863         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
9864         (ANY_MASK_REG_P): Remove.
9865         (BND_REG_P): Rename from ANY_BND_REG_P.
9866         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
9867         legacy integer registers.  Do not handle MMX_REG_P in a special way.
9868         Merge 64byte and 32byte SSE handling.
9870 2015-04-14  Nick Clifton  <nickc@redhat.com>
9872         * expr.c (expand_assignment): Force an address offset computation
9873         into a register before changing its mode.
9874         (expand_expr_real_1): Likewise.
9876 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
9878         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
9879         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
9880         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
9881         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
9882         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
9883         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
9884         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
9885         and __aarch64_vget_lane_any.
9887 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
9889         PR rtl-optimization/65761
9890         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
9891         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
9893 2015-04-14  Richard Biener  <rguenther@suse.de>
9895         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
9896         (graphite_can_represent_scev): Use POINTER_TYPE_P.
9898 2015-04-14  Richard Biener  <rguenther@suse.de>
9900         PR tree-optimization/65758
9901         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
9902         against -1.
9903         (ccp_lattice_meet): Likewise.
9904         (bit_value_unop): Likewise.
9905         (bit_value_binop): Likewise.
9906         (bit_value_assume_aligned): Likewise.
9908 2015-04-14  Christian Bruel  <christian.bruel@st.com>
9910         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
9911         function.
9913 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
9915         PR tree-optimization/63387
9916         * match.pd ((x unord x) | (y unord y) -> (x unord y),
9917         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
9919 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
9921         * config/i386/predicates.md (any_QIreg_operand): Rename from
9922         q_regs_operand.  Do not process subregs.
9923         (QIreg_operand): Use QI_REGNO_P predicate.
9924         (ext_QIreg_operand): Ditto.
9925         (ext_register_operand): Ditto.
9926         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
9927         (AND splitters): Ditto.
9928         (AND with -65536 splitter): Add SWI48 mode for operand 0.
9929         (AND with -256 splitter): Use any_QIreg_operand predicate and
9930         SWI248 mode for operand 0.
9931         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
9932         mode for operand 0.
9933         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
9935 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
9937         * doc/plugins.texi: Rewrite first introductory paragraph.
9939 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
9941         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
9942         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
9944 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
9946         * ipa-profie.c (ipa_profile): Check number of parameters
9947         and possible polymorphic call targets before
9948         devirtualizing.
9950 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
9952         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
9953         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
9955 2015-04-13  Richard Biener  <rguenther@suse.de>
9957         PR tree-optimization/65204
9958         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
9959         takens for bit-CCP.
9961 2015-04-13  Richard Biener  <rguenther@suse.de>
9963         PR target/65660
9964         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
9965         and cond_not_taken_branch_cost to 4 and 2.
9966         (bdver2_cost): Likewise.
9967         (bdver3_cost): Likewise.
9968         (bdver4_cost): Likewise.
9970 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
9972         * hash-table.h (hash_table constructor): Add mem stats.
9973         (alloc_entries): Likewise.
9975 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
9977         * ipa-cp.c (ipcp_driver): Relase prev_edge.
9978         * passes.c (execute_one_pass): Only add transform if pass has one.
9980 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
9982         * config/i386/i386.c (ix86_option_override_internal): Don't set
9983         -fprefetch-loop-arrays if optimizing for size.
9985 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
9986             Gerald Pfeifer  <gerald@pfeifer.com>
9988         * doc/contrib.texi (Contributors): Add Martin Jambor and
9989         Michael Matz.
9991 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
9993         * BASE-VER: Set to 6.0.0.
9995         PR tree-optimization/65747
9996         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
9997         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
9999 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
10001         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
10002         sentence.  Improve grammar.
10004 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
10006         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
10008 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
10010         PR ipa/65743
10011         * ipa-inline-transform.c (speculation_removed): Remove static var.
10012         (check_speculations): New function.
10013         (clone_inlined_nodes): Do not check spculations.
10014         (inline_call): Call check_speculations.
10015         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
10016         consider non-invariants.
10018 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
10019             Martin Liska  <mliska@suse.cz>
10021         PR ipa/65722
10022         * ipa-icf.c (sem_item::compare_cgraph_references): function and
10023         variable can not match.
10024         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
10025         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
10027 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
10029         PR tree-optimization/65735
10030         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
10031         Remove visited_phis argument, add visited_bbs, avoid recursing into the
10032         same bb rather than just into the same phi node.
10033         (thread_through_normal_block): Adjust caller.
10035 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
10037         * doc/contrib.texi (Contributors): Add Ira Rosen.
10039 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
10041         * gcov.c (find_source): Fix miswording in error message.
10042         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
10043         (ix86_expand_sse_comi_round): Fix typo in error message.
10045 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
10047         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
10049 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
10051         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
10053 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
10055         PR target/65710
10056         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
10057         Print bad_spills_num and insn_pseudos_num.
10059 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10061         PR target/65694
10062         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
10063         when creating +1 values for SImode.
10065 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
10067         PR target/65729
10068         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
10069         assert.
10071 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
10072             Iain Sandoe  <iain@codesourcery.com>
10074         PR target/65351
10075         * configure: Regenerate.
10077 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
10079         PR target/65671
10080         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
10082 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
10084         * doc/contrib.texi (Contributors): Add John Marino.
10086 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
10088         PR tree-optimization/65709
10089         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
10090         TREE_TYPE (TREE_TYPE (t)).
10092 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
10094         PR target/65710
10095         * lra-int.h (lra_bad_spill_regno_start): New.
10096         * lra.c (lra_bad_spill_regno_start): New.
10097         (lra): Set up lra_bad_spill_regno_start.  Set up
10098         lra_constraint_new_regno_start unconditionally.
10099         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
10100         spill preferences.
10102 2015-04-09  Marek Polacek  <polacek@redhat.com>
10103             Jakub Jelinek  <jakub@redhat.com>
10105         PR middle-end/65554
10106         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
10107         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
10108         of STRIP_NOPS.
10110 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
10112         PR rtl-optimization/65693
10113         * combine.c (is_parallel_of_n_reg_sets): Move outside of
10114         #ifndef HAVE_cc0.
10116 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
10118         PR target/65296
10119         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
10120         device specs file if "device-specs%s" didn't resolve to a path.
10122 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
10124         PR target/65676
10125         * config/i386/i386.c (fixup_modeless_constant): New.
10126         (ix86_expand_args_builtin): Fixup modeless constant operand.
10127         (ix86_expand_round_builtin): Ditto.
10128         (ix86_expand_special_args_builtin): Ditto.
10129         (ix86_expand_builtin): Ditto.
10131 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
10133         PR target/65693
10134         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
10135         any pow2 integer in between 2 and 0x80000000U inclusive.
10137 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
10139         PR rtl-optimization/65693
10140         * combine.c (is_parallel_of_n_reg_sets): Change first argument
10141         from an rtx_insn * to an rtx.
10142         (try_combine): Adjust both callers.  Use it once more.
10144 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
10146         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
10147         (chkp_make_static_const_bounds): Search existing
10148         symbol by assembler name.  Use make_decl_one_only.
10149         (chkp_get_zero_bounds_var): Remove node search which
10150         is now performed in chkp_make_static_const_bounds.
10151         (chkp_get_none_bounds_var): Likewise.
10153 2015-04-08  Michael Witten  <mfwitten@gmail.com>
10155         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
10156         to an example.
10158 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10160         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
10162 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
10164         * doc/extend.texi (__sync Builtins): Fix grammar.
10166 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10168         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
10170 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10172         * varasm.c (emit_local): Move definition of align.
10174 2015-04-08  Julian Brown  <julian@codesourcery.com>
10176         * config/nvptx/mkoffload.c (process): Support variable mapping.
10178 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
10180         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
10181         alpha_links **.
10182         (alpha_write_one_linkage): Correct typo.
10184 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
10186         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
10188 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
10190         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
10192 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
10194         * tree-chkp.h (chkp_insert_retbnd_call): New.
10195         * tree-chkp.c (chkp_insert_retbnd_call): New.
10196         * ipa-split.c (insert_bndret_call_after): Remove.
10197         (split_function): Use chkp_insert_retbnd_call.
10198         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
10199         bounds for instrumented functions.
10201 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
10203         PR ipa/65540
10204         * calls.c (initialize_argument_information): When producing tail
10205         call also turn SSA_NAMES passed by references to original PARM_DECLs
10207 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
10209         PR target/65648
10210         * lra-remat.c (do_remat): Process input and non-input insn
10211         registers separately.
10213 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
10215         PR debug/65678
10216         * valtrack.c (debug_lowpart_subreg): New function.
10217         (dead_debug_insert_temp): Use it.
10219         PR middle-end/65680
10220         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
10221         into signed HOST_WIDE_INT the same as negative bit_offset.
10223 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
10225         * ipa-comdats.c (ipa_comdats): Visit all thunks
10226         to set proper comdat group.
10228 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10230         PR target/65489
10231         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
10232         on constants for NEON VSTRUCT modes.
10234 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
10235             Iain Sandoe  <iain@codesourcery.com>
10237         PR target/65351
10238         * configure: Regenerate.
10240 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
10242         PR target/65614
10243         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
10244         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
10245         that LFD is used to load double constants instead of LFS.  Add
10246         defaults for all costs structures.  Add comments for missing
10247         initialization fields.
10248         (size32_cost): Likewise.
10249         (size64_cost): Likewise.
10250         (rs64a_cost): Likewise.
10251         (mpccore_cost): Likewise.
10252         (ppc403_cost): Likewise.
10253         (ppc405_cost): Likewise.
10254         (ppc440_cost): Likewise.
10255         (ppc476_cost): Likewise.
10256         (ppc601_cost): Likewise.
10257         (ppc603_cost): Likewise.
10258         (ppc604_cost): Likewise.
10259         (ppc604e_cost): Likewise.
10260         (ppc620_cost): Likewise.
10261         (ppc630_cost): Likewise.
10262         (ppccell_cost): Likewise.
10263         (ppc750_cost): Likewise.
10264         (ppc7450_cost): Likewise.
10265         (ppc8540_cost): Likewise.
10266         (ppce300c2c3_cost): Likewise.
10267         (ppce500mc_cost): Likewise.
10268         (ppce500mc64_cost): Likewise.
10269         (ppce5500_cost): Likewise.
10270         (ppce6500_cost): Likewise.
10271         (titan_cost): Likewise.
10272         (power4_cost): Likewise.
10273         (power6_cost): Likewise.
10274         (power7_cost): Likewise.
10275         (power8_cost): Likewise.
10276         (ppca2_cost): Likewise.
10277         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
10279         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
10280         instead of XXLOR to copy SFmode to clear out dirty bits created
10281         when SFmode denormals are generated.
10282         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
10283         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
10285 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
10287         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
10288         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
10289         * config/aarch64/aarch64-tune.md: Regenerate.
10291 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
10293         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
10294         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
10295         * config/arm/arm-cores.def (exynos-m1): New core.
10296         * config/arm/arm-tune.md: Regenerate.
10297         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
10298         * config/arm/bpabi.h: Likewise.
10300 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
10302         * ipa-cp (set_single_call_flag): Remove too
10303         restrictive assert.
10305 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
10307         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
10308         GOMP_offload_unregister from the destructor.
10310 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
10312         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
10313         flags for instrumentation thunk.
10314         (chkp_produce_thunks): Likewise.
10316 2015-04-05  Martin Liska  <mliska@suse.cz>
10318         PR ipa/65665
10319         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
10320         has computed data structure.
10321         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
10323 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
10325         * invoke.texi (inline-unit-growth): Increase growth to 20%
10326         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
10328 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
10330         PR target/65647
10331         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
10332         value checking.
10333         (lra_rematerialization_iter): New.
10334         * lra.c (lra): Initialize lra_rematerialization_iter.
10335         Stop updating lra_constraint_new_regno_start after switching of
10336         inheritance and rematerialization.
10337         * lra-remat.c (lra_rematerialization_iter): New.
10338         (lra_remat): Add printing pass iteration.  Do rematerialization
10339         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
10341 2015-04-04  Richard Biener  <rguenther@suse.de>
10343         PR tree-optimization/64909
10344         PR tree-optimization/65660
10345         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
10346         to take a cost vector for scalar iteration cost.
10347         (vect_get_single_scalar_iteration_cost): Likewise.
10348         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
10349         Compute the scalar iteration cost into a cost vector.
10350         (vect_get_known_peeling_cost): Use the scalar cost vector to
10351         account for the cost of the peeled iterations.
10352         (vect_estimate_min_profitable_iters): Likewise.
10353         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
10354         Likewise.
10356 2015-04-04  Alan Modra  <amodra@gmail.com>
10358         PR target/65576
10359         PR target/65240
10360         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
10361         0.0 constant unless TARGET_VSX.
10362         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
10363         alternative.
10365 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
10367         PR ipa/65654
10368         * ipa-inline-transform.c (inline_call): Skip sanity check to work
10369         around the ICE
10371 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
10373         PR ipa/65655
10374         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
10375         speculative indirect edges to avoid ordering issue.
10377 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
10379         PR ipa/65076
10380         * ipa-inline.c (edge_badness): Add combined size to the denominator.
10382 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
10384         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
10385         TYPE_ARTIFICIAL on the .omp_data* types.
10387 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
10389         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
10390         instrumentation thunks.
10392 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
10394         * config/i386/i386.c (ix86_expand_call): Avoid nested
10395         PARALLEL in returned call value.
10397 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
10399         * lto-cgraph.c (input_cgraph_1): Always link instrumented
10400         assembler name with original one.
10402 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
10404         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
10406 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
10408         Revert parts of r216820.
10409         * config/i386/i386.md (movqi_internal): Correct type calculation
10410         for alternatives 3 and 5.
10412 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
10414         PR preprocessor/61977
10415         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
10416         predefine __vector/__bool/__pixel macros nor context sensitive
10417         macros for CLK_ASM.
10418         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
10420 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
10422         * config/pa/pa.c (pa_output_move_double): Directly handle register
10423         indexed memory operand.  Simplify handling of scaled register indexed
10424         memory operands.
10426 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
10428         PR driver/65444
10429         * config/i386/linux-common.h (MPX_SPEC): New.
10430         (CHKP_SPEC): Add MPX_SPEC.
10431         * doc/invoke.texi (-fcheck-pointer-boudns): Document
10432         possible issues with '-z bndplt' support in linker.
10434 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
10436         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
10437         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
10438         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
10439         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
10440         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
10442 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
10444         * config/i386/sync.md (UNSPEC_MOVA): Remove.
10445         (atomic_load<mode>): Change operand 0 predicate to
10446         nonimmediate_operand and fix up the destination when needed.
10447         Use UNSPEC_LDA.
10448         (atomic_loaddi_fpu): Use UNSPEC_LDA.
10449         (atomic_store<mode>): Change operand 1 predicate to
10450         nonimmendate_operand and move the source to register when needed.
10451         Use UNSPEC_STA.
10452         (atomic_store<mode>_1): Use UNSPEC_STA.
10453         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
10454         Fix moves from memory operand.  Use UNSPEC_STA.
10456 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10458         * expmed.c (strict_volatile_bitfield_p): Check that the access will
10459         not cross a MODESIZE boundary.
10460         (store_bit_field, extract_bit_field): Added assertions in the
10461         strict volatile bitfields code path.
10463 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
10465         PR target/65624
10466         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
10467         Increase args array size by one to avoid buffer overflow.
10469 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
10471         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
10472         split_part.
10473         * ipa-inline.c (edge_badness): Add wrapper penalty.
10474         (sum_callers): Move up.
10475         (inline_small_functions): Set single_caller.
10476         * ipa-inline.h (inline_summary): Add single_caller.
10477         * ipa-split.c (split_function): Set split_part.
10478         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
10479         * cgraph.h (cgraph_node): Add split_part.
10481 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
10483         PR target/58945
10484         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
10485         Do not split operands 0 and operands 2 to halfmode.
10486         (atomic_compare_and_swap<mode>): Update for
10487         atomic_compare_and_swap<dwi>_doubleword changes.
10489 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
10491         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
10492         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
10493         no caching is done.
10495 2015-03-31  Martin Liska  <mliska@suse.cz>
10497         PR ipa/65557
10498         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
10499         has already filled up function summary.
10500         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
10502 2015-03-31  Richard Biener  <rguenther@suse.de>
10504         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
10505         of types.
10507 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10509         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
10510         nested functions.
10511         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
10512         (s390_asm_output_function_label): Adapt to new signature of
10513         s390_function_num_hotpatch_hw
10514         Optimise the code generating assembler output.
10515         Add comments to assembler file.
10517 2015-03-31  Richard Biener  <rguenther@suse.de>
10519         PR middle-end/65626
10520         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
10521         of the noreturn call so it is last and cleanup_control_flow_bb
10522         can do the CFG part.
10524 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
10526         PR target/65531
10527         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
10528         same_comdat_group for external symbols.
10529         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
10530         infinite same_comdat_group traversal loop.
10532 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
10534         PR plugins/61176
10535         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
10536         automatically to $headers.
10538 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
10540         PR ipa/65610
10541         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
10542         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
10543         function.
10544         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
10545         Use it.
10546         * ipa-prop.c (param_type_may_change_p): Likewise.
10547         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
10548         (remove_unused_scope_block_p): Add in_ctor_dtor_block
10549         argument.  Before inlining, preserve
10550         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
10551         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
10552         recursive calls.
10553         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
10555 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
10557         PR ipa/65076
10558         * ipa-inline.c (edge_badness): Base denominator on callee's
10559         grwoth squared.
10561 2015-03-27  Martin Jambor  <mjambor@suse.cz>
10563         PR ipa/65478
10564         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
10565         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
10566         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
10567         node_calling_single_call.
10568         * ipa-cp.c (count_callers): New function.
10569         (set_single_call_flag): Likewise.
10570         (initialize_node_lattices): Count callers and set single_flag_call if
10571         necessary.
10572         (incorporate_penalties): New function.
10573         (good_cloning_opportunity_p): Use it, dump new flags.
10574         (propagate_constants_topo): Set node_within_scc flag if appropriate.
10575         * doc/invoke.texi (ipa-cp-recursion-penalty,
10576         ipa-cp-single-call-pentalty): Document.
10578 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
10580         PR ipa/65588
10581         * symtab.c (symtab_node::get_partitioning_class): Register vars
10582         are duplicated.
10583         * varpool.c (symbol_table::output_variables) Do not assemble unefined
10584         decls for non-symbols.
10586 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
10588         PR target/65248
10589         * output.h (default_binds_local_p_2): New.
10590         * varasm.c (default_binds_local_p_2): Renamed to ...
10591         (default_binds_local_p_3): This.  Don't return true on protected
10592         data symbol if protected data may be external.
10593         (default_binds_local_p): Use default_binds_local_p_3.
10594         (default_binds_local_p_1): Likewise.
10595         (default_binds_local_p_2): New.
10596         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
10597         default_binds_local_p_2 if TARGET_MACHO is undefined.
10599 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
10601         PR target/65593
10602         * config/i386/i386.c (legitimize_pic_address): If base
10603         is SYMBOL_REF or LABEL_REF using %rip addressing, force
10604         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
10606 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
10608         PR target/65531
10609         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
10610         comdat groups.
10612 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
10614         PR ipa/65600
10615         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
10616         of optimized out indirect call.
10617         (redirect_to_unreachable): Always build symbol table node for
10618         BUILT_IN_UNREACHABLE
10620 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
10622         PR target/65407
10623         * ira-costs.c (record_reg_classes): Process all constraint string
10624         containing 0-9.
10626 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
10628         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
10629         memory_operand.
10631         PR target/65052
10632         * config/c6x/constraints.md (S3): New constraint.
10633         * config/c6x/c6x.md (real_jump): Use it.
10635 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
10637         PR middle-end/65595
10638         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
10639         do redirection if the call is not optimized out.
10641 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
10643         PR target/65495
10644         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
10645         (fchkp-check-incomplete-type): Add LTO.
10646         (fchkp-zero-input-bounds-for-main): Likewise.
10647         (fchkp-first-field-has-own-bounds): Likewise.
10648         (fchkp-narrow-bounds): Likewise.
10649         (fchkp-narrow-to-innermost-array): Likewise.
10650         (fchkp-use-static-bounds): Likewise.
10651         (fchkp-use-static-const-bounds): Likewise.
10652         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
10654 2015-03-27  Marek Polacek  <polacek@redhat.com>
10656         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
10658 2015-03-27  Marek Polacek  <polacek@redhat.com>
10660         PR sanitizer/65583
10661         * ubsan.c (ubsan_create_edge): New function.
10662         (instrument_bool_enum_load): Call it.
10663         (instrument_nonnull_arg): Likewise.
10664         (instrument_nonnull_return): Likewise.
10665         (instrument_object_size): Likewise.
10667 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
10669         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
10670         auto_vec.
10672 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
10674         PR lto/65536
10675         * lto-streamer.h (class lto_location_cache): New.
10676         (struct data_in): Add location_cache.
10677         (lto_input_location): Update prototype.
10678         (stream_input_location_now): New.
10679         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
10680         pointer to location.
10681         (stream_input_location): Update.
10682         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
10683         (warn_odr): Apply location cache before warning.
10684         (lto_input_location): Update prototype.
10685         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
10686         Use stream_input_location_now.
10687         * lto-streamer-in.c (lto_location_cache::current_cache): New static
10688         variable.
10689         (lto_location_cache::cmp_loc): New function.
10690         (lto_location_cache::apply_location_cache): New function.
10691         (lto_location_cache::accept_location_cache): New function.
10692         (lto_location_cache::revert_location_cache): New function.
10693         (lto_location_cache::input_location): New function.
10694         (lto_input_location): Do location caching.
10695         (stream_input_location_now): New function.
10696         (input_eh_region, input_struct_function_base): Use
10697         stream_input_location_now.
10698         (lto_data_in_create): use new.
10699         (lto_data_in_delete): Use delete.
10700         * tree-streamer-in.c (unpack_ts_block_value_fields,
10701         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
10702         lto_input_ts_exp_tree_pointers): Update for cached location api.
10704 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
10706         PR ipa/65076
10707         * passes.def: Add pass_nothrow.
10708         * ipa-pure-const.c: (pass_data_nothrow): New.
10709         (pass_nothrow): New.
10710         (pass_nothrow::execute): New.
10711         (make_pass_nothrow): New.
10712         * tree-pass.h (make_pass_nothrow): Declare.
10714 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
10716         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
10717         edge to change by speculation resolution or redirection.
10718         (edge_set_predicate): Likewise.
10719         (inline_summary_t::duplicate): Likewise.
10720         (remap_edge_summaries): Likewise.
10722 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
10724         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
10725         New macros.
10726         (can_inline_edge_p): Relax option matching for always inline functions.
10728 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
10730         PR target/65561
10731         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
10732         Check operand 4 and operand 0 for equality.
10733         (avx512f_vextract<shuffletype>32x4_1_maskm):
10734         Check operand 6 and operand 0 for equality.
10735         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
10736         for equality.
10737         (vec_extract_hi_<mode>_maskm): Ditto.
10739 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
10741         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
10742         dead calls back to live.
10743         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
10744         cross check to ...
10745         (cgraph_node::verify_node): ... here; verify only callee edges,
10746         not caller.
10747         * cif-code.def (CILK_SPAWN): New code.
10749 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
10751         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
10752         (edge_set_predicate): Use it to mark unreachable edges.
10753         (inline_summary_t::duplicate): Remove unnecesary code.
10754         (remap_edge_summaries): Likewise.
10755         (dump_inline_summary): Report contains_cilk_spawn.
10756         (compute_inline_parameters): Compute contains_cilk_spawn.
10757         (inline_read_section, inline_write_summary): Stream
10758         contains_cilk_spawn.
10759         * ipa-inline.c (can_inline_edge_p): Do not touch
10760         DECL_STRUCT_FUNCTION that may not be available;
10761         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
10762         remove check for callee_fun->can_throw_non_call_exceptions and
10763         replace it by optimization attribute check; check for flag_exceptions.
10764         * ipa-inline-transform.c (inline_call): Maintain
10765         DECL_FUNCTION_PERSONALITY
10766         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
10768 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
10770         PR tree-optimization/65551
10771         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
10772         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
10774 2015-03-26  Richard Biener  <rguenther@suse.de>
10776         PR middle-end/65555
10777         * tree-cfg.c (verify_gimple_call): Do not require a call to
10778         have no LHS if it wasn't recognized as control altering yet.
10780 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
10782         PR tree-optimization/64715
10783         * passes.def: Add another instance of pass_object_sizes before ccp1.
10784         * tree-object-size.c (pass_object_sizes::execute): In
10785         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
10786         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
10787         __bos result and the computed constant.  Remove redundant
10788         checks, obsoleted by gimple_call_builtin_p test.
10790         * var-tracking.c (variable_tracking_main_1): Don't track
10791         variables for targetm.no_register_allocation targets.
10793 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
10795         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
10796         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
10798 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
10800         PR target/65569
10801         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
10802         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
10803         0.0 is correctly setup.
10804         (extenddftf2_internal): Likewise.
10806 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
10808         PR tree-optimization/65177
10809         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
10810         (bb_in_bbs): New.
10811         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
10812         edges not adjacent on the path to the original code.
10814 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
10816         PR bootstrap/65537
10817         * doc/install.texi (Building a native compiler): Document new
10818         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
10819         configuration assumes that the host supports the linker plugin.
10821 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
10823         PR target/65508
10824         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
10825         chain for generated call.
10827 2015-03-25  Richard Biener  <rguenther@suse.de>
10829         * passes.c (pass_manager::execute_early_local_passes): Guard
10830         execution of pass_chkp_instrumentation_passes with
10831         flag_check_pointer_bounds.
10832         (pass_chkp_instrumentation_passes::gate): Likewise.
10834 2015-03-25  Martin Liska  <mliska@suse.cz>
10836         PR tree-optimization/65538
10837         * symbol-summary.h (function_summary::~function_summary):
10838         Relese memory for allocated summaries.
10839         (function_summary::release): New function.
10841 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
10843         PR lto/65515
10844         * lto-streamer-out.c (DFS::worklist): New struct.
10845         (DFS::worklist_vec): New data member.
10846         (DFS::next_dfs_num): Remove.
10847         (DFS::DFS): Rewritten using worklist instead of recursion,
10848         using most of code from DFS::DFS_write_tree.
10849         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
10850         pass it to DFS_write_tree calls.
10851         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
10852         quick initial checks push it into worklist_vec and return.
10854 2015-03-25  Richard Biener  <rguenther@suse.de>
10856         PR middle-end/65519
10857         * genmatch.c (expr::gen_transform): Re-write to avoid
10858         using gimple_build.
10860 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
10862         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
10864 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
10866         * config/arm/arm.opt (print_tune_info): New option.
10867         * config/arm/arm.c (arm_print_tune_info): New function.
10868         (arm_file_start): Call arm_print_tune_info.
10869         * config/arm/arm-protos.h (struct tune_params): Add comment.
10870         * doc/invoke.texi (@item -mprint-tune-info): New item.
10871         (-mtune): mention it in ARM Option Summary.
10873 2015-03-25  DJ Delorie  <dj@redhat.com>
10875         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
10876         correct clause.
10878 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
10879             Martin Liska  <mliska@suse.cz>
10881         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
10882         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
10883         (sem_item::add_type): New function.
10884         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
10885         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
10886         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
10887         (sem_function::equals_wpa): Fix typo.
10888         * ipa-icf.h (sem_item::add_type): New function.
10889         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
10890         order.
10892 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
10894         PR tree-optimization/65533
10895         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
10896         with swapped operands, call vect_free_slp_tree on
10897         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
10898         vector.
10900 2015-03-24  Richard Biener  <rguenther@suse.de>
10902         PR middle-end/65517
10903         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
10904         for fixup if necessary.
10906 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
10908         * doc/extend.texi (Function Attributes): Add @cindex entries
10909         for all attributes and regularize their format.  Delete text
10910         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
10911         information about "eightbit_data", "tiny_data", and "model"
10912         variable attributes to the Variable Attributes section.  Fix
10913         some obvious typos and copy-editing issues.
10914         (Variable Attributes, Type Attributes): Likewise add/fix
10915         @cindex entries for all attributes.
10917 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
10919         PR target/65523
10920         * tree-chkp.c (chkp_build_returned_bound): Ignore
10921         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
10923 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
10925         PR target/65505
10926         * config/sh/predicates.md (simple_mem_operand,
10927         displacement_mem_operand): Add test for reg.
10928         (short_displacement_mem_operand): Test for displacement_mem_operand
10929         before invoking sh_disp_addr_displacement.
10930         * config/sh/constraints.md (Sdd, Sra): Simplify.
10931         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
10932         Remove redundant displacement_mem_operand tests.
10934 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
10936         PR target/65296
10937         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
10938         the same -mmcu=MCU more than once.
10940 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
10942         PR bootstrap/65522
10943         * ipa-devirt.c: Remove duplicate demangle.h include.
10945         PR target/65504
10946         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
10947         on the pseudo.
10948         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
10949         REG_POINTER on *destptr after adjusting it for prologue size.
10951         PR ipa/65521
10952         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
10953         ultimate_alias_target ()->order ints instead of
10954         ultimate_alias_target () pointers.
10956 2015-03-23  Richard Biener  <rguenther@suse.de>
10958         PR tree-optimization/65518
10959         * tree-vect-stmts.c (vectorizable_load): Reject single-element
10960         interleaving cases we generate absymal code for.
10962 2015-03-23  Richard Biener  <rguenther@suse.de>
10964         PR tree-optimization/65494
10965         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
10966         matches here.
10967         (vect_analyze_slp_instance): But do that here, always and once.
10969 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10971         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
10972         adding T or multiplying by T+1 and subracting T.
10974 2015-03-22  Jeff Law  <law@redhat.com>
10976         PR rtl-optimization/64317
10977         * Makefile.in (OBJS): Add gcse-common.c
10978         * gcse.c: Include gcse-common.h
10979         (struct modify_pair_s): Move structure definition to gcse-common.h
10980         (compute_transp): Move function to gcse-common.c.
10981         (canon_list_insert): Similarly.
10982         (record_last_mem_set_info): Break out some code and put it into
10983         gcse-common.c.  Call into the new common code.
10984         (compute_local_properties): Pass additional arguments to compute_transp.
10985         * postreload-gcse.c: Include gcse-common.h and df.h
10986         (modify_mem_list_set, blocks_with_calls): New variables.
10987         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
10988         (get_bb_avail_insn): Pass in the expression index too.
10989         (alloc_mem): Allocate memory for the new bitmaps and lists.
10990         (free_mem): Free memory for the new bitmaps and lists.
10991         (insert_expr_in_table): Record a bitmap index for each entry we
10992         add to the table.
10993         (record_last_mem_set_info): Call into common code in gcse-common.c.
10994         (get_bb_avail_insn): If no available insn was found in the requested
10995         BB.  If BB has a single predecessor, see if the expression is
10996         transparent in BB and available in that single predecessor.
10997         (compute_expr_transp): New wrapper for compute_transp.
10998         (eliminate_partially_redundant_load): Pass expression's bitmap_index
10999         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
11000         (gcse_after_reload_main): If there are elements in the hash table,
11001         then compute transparency for all the elements in the hash table.
11002         * gcse-common.h: New file.
11003         * gcse-common.c: New file.
11005 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
11007         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
11008         as an adjective.
11009         (System Headers): Likewise.
11010         (Ifdef): Likewise.
11011         (Traditional macros): Likewise.
11012         (Invocation): Likewise.
11013         (Option Index): Likewise.
11014         * doc/cppopts.texi (-M): Likewise.
11015         (-finput-charset): Likewise.
11016         (--help): Likewise.
11017         * doc.invoke.texi (AVR Options): Likewise.
11018         (V850 Options): Likewise.
11020 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
11022         PR ipa/65475
11023         * ipa-devirt.c: Include demangle.h
11024         (odr_type_d): Add field rtti_broken.
11025         (odr_subtypes_equivalent_p): Do not require name to match.
11026         (compare_virtual_tables): Fix typo; if type already has ODR violation,
11027         bypass the tests; be ready for function referneces in vtables that are
11028         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
11029         (warn_odr): Give up for nameless types.
11030         (warn_types_mismatch): Report mismatch in mangled names;
11031         report mismatch in anonymous namespaces; look into component types to
11032         give useful error; report when mismatch is dragged in from other ODR
11033         type.
11034         (odr_types_equivalent_p): Match types for being polymorphic; avoid
11035         duplicated diagnostics.
11036         (add_type_duplicate): Reorder checks so more informative ones come
11037         first; fix typo; do not output "the extra base is defined here" when
11038         we did not warn.
11039         (BINFO_N_BASE_BINFOS): Relax sanity check.
11041 2015-03-22  Martin Liska  <mliska@suse.cz>
11042             Jakub Jelinek  <jakub@redhat.com>
11044         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
11045         masks that can potentially include a builtin.
11046         (ix86_add_new_builtins): Introduce fast filter for isa values
11047         that cannot trigger builtin inclusion.
11049 2015-03-22  Martin Liska  <mliska@suse.cz>
11051         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
11052         (sem_item::update_hash_by_local_refs): Likewise.
11053         (sem_variable::get_hash): Empty line is fixed.
11054         (sem_item_optimizer::execute): Include adding of hash references.
11055         (sem_item_optimizer::update_hash_by_addr_refs): New function.
11056         (sem_item_optimizer::build_hash_based_classes): Use local hash.
11057         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
11058         (sem_item::update_hash_by_local_refs): Likewise.
11060 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
11062         PR ipa/65502
11063         * ipa-comdats.c (enqueue_references): Walk through thunks.
11064         (ipa_comdats): Likewise.
11065         (set_comdat_group_1): New function.
11067 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
11069         PR ipa/65475
11070         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
11071         non-polymorphic
11073 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
11074             Gerald Pfeifer  <gerald@pfeifer.com>
11076         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
11078 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
11079             Sandra Loosemore  <sandra@codesourcery.com>
11081         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
11082         function parameter declaration.
11083         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
11084         Update arguments to nios2_adjust_call_address().
11085         (sibcall_internal): Rename from *sibcall.
11086         (sibcall_value_internal): Rename from *sibcall_value.
11087         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
11088         (nios2_large_got_address): Add target temp reg parameter.
11089         (nios2_got_address): Adjust call to nios2_large_got_address, add
11090         force_reg around it.
11091         (nios2_load_pic_address): Add target temp reg parameter, replace call
11092         to nios2_got_address with corresponding code.
11093         (nios2_legitimize_constant_address): Update call to
11094         nios2_load_pic_address.
11095         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
11096         to use temp reg for PIC loading purposes.
11097         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
11098         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
11099         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
11101 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
11103         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
11104         usage of "the @option{...}".
11105         (-Wopenmp-simd): Likewise.
11106         (-fsanitize-recover): Likewise.
11107         (-fsanitize-undefined-trap-on-error): Likewise.
11108         (-flto): Likewise.
11109         (tracer-dynamic-coverage-feedback): Likewise.
11110         (reorder-block-duplicate-feedback): Likewise.
11111         (loop-unroll-jam-size): Likewise.
11112         (-B): Likewise.
11113         (-I-): Likewise.
11114         (-mabs=legacy): Likewise.
11115         (-mupper-regs-df): Likewise.
11116         (-mupper-regs-sf): Likewise.
11117         (-mpointers-to-nested-functions): Likewise.
11119 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
11121         * doc/extend.texi (Cilk Plus Builtins): Add markup.
11123 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
11125         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
11126         additional index entries and cross-references.
11127         (-fchkp-check-incomplete-type): Likewise.
11128         (-fchkp-first-field-has-own-bounds): Likewise.
11129         (-fchkp-narrow-to-innermost-array): Likewise.
11130         (-fchkp-use-fast-string-functions): Likewise.
11131         (-fchkp-use-nochk-string-functions): Likewise.
11132         (-fchkp-use-static-const-bounds): Likewise.
11133         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
11134         (-fchkp-instrument-marked-only): Likewise.
11135         (-fchkp-use-wrappers): Likewise.
11136         (-static-libmpx): Likewise.
11137         (-static-libmpxwrappers): Likewise.
11138         * doc/extend.texi (bnd_legacy): Likewise.
11139         (bnd_instrument): Likewise.
11140         (bnd_variable_size): Likewise.
11141         (Pointer Bounds Checker builtins): Likewise.
11143 2015-03-21  Tom de Vries  <tom@codesourcery.com>
11145         PR tree-optimization/65458
11146         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
11147         * cgraph.h (cgraph_node): Add parallelized_function field.
11148         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
11149         (input_overwrite_node): Read parallelized_function field.
11150         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
11151         parallelized_function on cgraph_node for child_fn.
11152         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
11153         Remove include of gt-tree-parloops.h.
11154         (parallelized_functions): Remove static variable.
11155         (parallelized_function_p): Rewrite using parallelized_function field of
11156         cgraph_node.
11157         (create_loop_fn): Remove adding to parallelized_functions.
11158         * Makefile.in (GTFILES): Remove tree-parloops.c
11160 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
11162         PR rtl-optimization/64366
11163         * lra.c (lra_update_insn_regno_info): Consider regs in
11164         CALL_INSN_FUNCTION_USAGE memory.
11166 2015-03-20  Richard Biener  <rguenther@suse.de>
11168         PR middle-end/64715
11169         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
11170         for type comparison and gcc_checking_assert.
11171         (chrec_fold_plus_poly_poly): Likewise.
11172         (chrec_fold_multiply_poly_poly): Likewise.
11173         (chrec_convert_1): Likewise.
11174         * gimplify.c (gimplify_expr): Remove premature folding of
11175         &X + CST to &MEM[&X, CST].
11177 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
11179         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
11180         already is final.
11181         (ipa_inline): Recompute inline_failed codes.
11182         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
11183         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
11184         CIF_FINAL_ERROR.
11186 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
11188         PR rtl-optimization/60851
11189         * recog.c (constrain_operands): Accept a pseudo register before reload
11190         for LRA enabled targets.
11192 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
11194         PR target/65240
11195         * config/rs6000/predicates.md (easy_fp_constant): Remove special
11196         -ffast-math handling that kept non-0 constants live in the RTL
11197         until reload.  Remove logic testing the number of instructions it
11198         took to create a constant in a GPR that was never used, due to a
11199         test for soft-float earlier.
11200         (memory_fp_constant): Delete, no longer used.
11202         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
11203         alternatives for loading non-0 constants into GPRs for hard
11204         floating point that is no longer needed due to changes in
11205         easy_fp_constant.  Add support for loading 0.0 into GPRs.
11206         (mov<mode>_hardfloat32): Likewise.
11207         (mov<mode>_hardfloat64): Likewise.
11208         (mov<mode>_64bit_dm): Likewise.
11209         (movtd_64bit_nodm): Likewise.
11210         (pre-reload move FP constant define_split): Delete define_split,
11211         since it is no longer used.
11212         (extenddftf2_internal): Remove GHF constraints that are not valid
11213         for extenddftf2.
11215 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
11217         PR rtl-optimization/63491
11218         * lra-constraints.c (check_and_process_move): Use src instead of
11219         sreg.  Remove some dead code.
11221 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
11223         PR ipa/65380
11224         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
11225         (sem_variable::merge): Likewise.
11227 2015-03-19  Martin Liska  <mliska@suse.cz>
11229         PR ipa/65465
11230         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
11231         all fields of cgraph_thunk_info.
11233 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
11235         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
11236         clone instrumented thunks.
11238 2015-03-19  Richard Biener  <rguenther@suse.de>
11240         Revert
11241         2015-03-10  Richard Biener  <rguenther@suse.de>
11243         PR middle-end/63155
11244         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
11245         * tree-ssa-coalesce.c: Include timevar.h.
11246         (attempt_coalesce): Handle graph being NULL.
11247         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
11248         Split out abnormal coalescing to ...
11249         (perform_abnormal_coalescing): ... this function.
11250         (coalesce_ssa_name): Perform abnormal coalescing without computing
11251         live/conflict.
11252         (verify_ssa_coalescing_worker): New function.
11253         (verify_ssa_coalescing): Likewise.
11255 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11256             Jakub Jelinek  <jakub@redhat.com>
11258         PR sanitizer/65400
11259         * tsan.c (instrument_gimple): Clear tail call flag on
11260         calls.
11262 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
11264         PR sanitizer/65400
11265         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
11266         call in the return bb.
11267         (find_split_points): Add RETURN_BB argument, don't call
11268         find_return_bb.
11269         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
11270         if true append TSAN_FUNC_EXIT internal call after the call to
11271         the split off function.
11272         (execute_split_functions): Call find_return_bb here.
11273         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
11274         Adjust find_split_points and split_function calls.
11276 2015-03-18  DJ Delorie  <dj@redhat.com>
11278         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
11279         (iorqi3_virt): Likewise.
11281 2015-03-18  Tom de Vries  <tom@codesourcery.com>
11283         * tree-parloops.c (parallelize_loops): Make static.
11284         * tree-parloops.h (parallelize_loops): Remove extern declaration.
11286 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
11288         PR middle-end/64491
11289         Revert:
11290         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
11292         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
11293         condition would be removed due to undefined behaviour.
11295 2015-03-18  Martin Liska  <mliska@suse.cz>
11297         PR ipa/65432
11298         * cgraph.c (cgraph_node::get_create): Remove unnecessary
11299         xstrdup_for_dump wrapper.
11300         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
11301         sem_item::name.
11302         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
11303         with xstrdup_for_dump.
11304         (sem_variable::equals): Likewise.
11305         (sem_item_optimizer::read_section): Use symtab_node::name instead of
11306         sem_item::name.
11307         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
11308         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
11309         symtab_node::asm_name with xstrdup_for_dump.
11310         (congruence_class::dump): Use symtab_node::name instead of
11311         sem_item::name.
11312         * ipa-icf.h (symtab_node::name): Remove.
11313         (symtab_node::asm_name): Likewise.
11315 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
11317         PR tree-optimization/65450
11318         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
11319         function.
11320         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
11321         it instead of duplicate_ssa_name_ptr_info.
11323         PR target/65222
11324         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
11326 2015-03-18  Richard Biener  <rguenther@suse.de>
11328         * tree-data-ref.h (struct access_matrix): Remove.
11329         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
11330         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
11331         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
11332         (am_vector_index_for_loop): Likewise.
11333         (struct data_reference): Remove access_matrix member.
11334         (DR_ACCESS_MATRIX): Remove.
11335         (lambda_vector_new): Add comment.
11336         (lambda_matrix_new): Use XOBNEWVEC.
11338 2015-03-18  Richard Biener  <rguenther@suse.de>
11340         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
11341         (pass_ch::execute): Cleanup the CFG only if we did sth.
11342         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
11344 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11346         * expmed.c (synth_mult): Use std::swap instead of manually
11347         swapping algorithms.
11349 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
11351         PR target/65078
11352         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
11354 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
11356         PR target/65296
11357         * config/avr/avr.opt (-nodevicelib): New option.
11358         * doc/invoke.texi (AVR Options): Document it.
11359         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
11360         libgcc.a, libc.a, libm.a.
11361         * config/avr/specs.h: Same.
11362         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
11363         which don't (directly) depend on the device.  Print more help.
11364         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
11365         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
11366         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
11367         case of an error.
11368         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
11369         for specs file name.
11370         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
11371         * config/avr/avr-mcus.def: Adjust initializers and comments.
11373 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
11375         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
11376         DECL_ONE_ONLY to check if decl is one only.
11377         * ipa-split.c (consider_split): Limit splitt of one only functions.
11379 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
11381         PR tree-optimization/65427
11382         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
11383         functions.
11384         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
11386 2015-03-16  Marek Polacek  <polacek@redhat.com>
11388         * cgraph.h (add_new_static_var): Remove declaration.
11389         * varpool.c (add_new_static_var): Remove function.
11391 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
11393         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
11394         instead of vec<tree> * with vec_alloc and release for args.
11395         Adjust all users.
11397         PR middle-end/65431
11398         * omp-low.c (delete_omp_context): Only splay_tree_delete
11399         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
11400         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
11402 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
11404         PR sanitizer/64820
11405         * cfgexpand.c (align_base): New function.
11406         (alloc_stack_frame_space): Call it.
11407         (expand_stack_vars): Align prev_frame to be sure
11408         data->asan_vec elements aligned properly.
11410 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
11412         PR middle-end/65409
11413         * expr.c (store_field): Do not do a direct block copy if the source is
11414         a PARALLEL with BLKmode.
11416 2015-03-16  Tom de Vries  <tom@codesourcery.com>
11418         PR middle-end/65414
11419         Revert:
11420         2015-03-12  Tom de Vries  <tom@codesourcery.com>
11422         PR rtl-optimization/64895
11423         * lra-lives.c (check_pseudos_live_through_calls): Use
11424         actual_call_used_reg_set instead of call_used_reg_set, if available.
11426 2015-03-16  Alan Modra  <amodra@gmail.com>
11428         PR target/63150
11429         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
11430         Modify Z->r bswapdi splitter to use dest in place of scratch.
11431         In r->Z and Z->r bswapdi splitter rename word_high, word_low
11432         to word1, word2 and rearrange logic to suit.
11433         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
11434         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
11435         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
11436         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
11437         early clobber.
11439 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
11441         PR tree-optimization/65369
11442         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
11443         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
11444         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
11446         PR tree-optimization/65418
11447         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
11448         are casts in the first PLUS_EXPR operand, ensure tbias and
11449         *totallowp are in the inner type.
11451         PR rtl-optimization/65401
11452         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
11453         argument.  If true, adjust_address_nv of x with big-endian
11454         correction for the mode widening to GET_MODE (y).
11455         (make_field_assignment): Don't do MEM mode widening here.
11456         Use MEM_P instead of GET_CODE == MEM.
11458 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
11460         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
11461         the external decls.
11463 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11465         PR target/64600
11466         * config/arm/arm.c (arm_gen_constant, AND case): Use
11467         ARM_SIGN_EXTEND when constructing AND mask.
11469 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11471         * graph.c (print_graph_cfg): Make function names visible and append
11472         parenthesis to it.  Also make groups of basic blocks belonging to the
11473         same function visible.
11475 2015-03-12  Richard Biener  <rguenther@suse.de>
11477         PR middle-end/44563
11478         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
11479         to avoid quadratic behavior with inline expansion splitting blocks.
11480         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
11481         with the successor if the predecessor will be merged with it.
11482         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
11483         entry block with its successor.
11485 2015-03-13  Richard Biener  <rguenther@suse.de>
11487         PR middle-end/44563
11488         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
11489         (cleanup_tree_cfg_1): Do not call it.
11490         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
11491         (fixup_noreturn_call): Mark the stmt as control altering.
11492         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
11493         here.
11494         (pass_data_fixup_cfg): Produce a dump file.
11495         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
11496         (need_noreturn_fixup): New global.
11497         (pass_dominator::execute): Fixup queued noreturn calls.
11498         (optimize_stmt): Queue calls that became noreturn for fixup.
11499         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
11500         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
11501         (el_to_fixup): New global.
11502         (eliminate_dom_walker::before_dom_childre): Queue calls that
11503         became noreturn for fixup.
11504         (eliminate): Fixup queued noreturn calls.
11505         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
11506         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
11507         (substitute_and_fold_dom_walker::before_dom_children): Queue
11508         alls that became noreturn for fixup.
11509         (substitute_and_fold): Fixup queued noreturn calls.
11511 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
11513         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
11514         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
11515         are building; for methods check ODR type of class they belong to if
11516         they may lead to a polymorphic call.
11517         (sem_function::compare_polymorphic_p): Be bit smarter about testing
11518         when function may lead to a polymorphic call.
11519         (sem_function::compare_type_list): Remove.
11520         (sem_variable::equals): Update use of compatible_types_p.
11521         (sem_variable::parse_tree_refs): Remove.
11522         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
11523         cdtor.
11524         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
11525         matching here.
11526         (func_checker::compatible_polymorphic_types_p): Break out from ...
11527         (unc_checker::compatible_types_p): ... here.
11528         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
11529         Declare.
11530         (unc_checker::compatible_types_p): Update.
11531         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
11532         Remove.
11534 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11536         PR rtl-optimization/65235
11537         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
11538         When first element of vec_concat is const_int, calculate its size
11539         using second element.
11541 2015-03-12  Richard Biener  <rguenther@suse.de>
11543         PR middle-end/65270
11544         * fold-const.c (operand_equal_p): Fix ordering of resetting
11545         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
11547 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11549         * config/s390/s390.c (s390_reorg): Move code to output nops after label
11550         to s390_reorg ().
11551         (s390_asm_output_function_label): Likewise.
11552         * config/s390/s390.c (s390_asm_output_function_label):
11553         Fix function label alignment with -mhtopatch.
11554         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
11555         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
11556         ("nop_2_byte"): New define_insn.
11557         ("nop_4_byte"): Likewise.
11558         ("nop_6_byte"): Likewise.
11559         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
11560         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
11562 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
11564         PR target/65103
11565         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
11566         register.
11568 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
11570         PR target/65044
11571         * toplev.c (process_options): Restrict Pointer Bounds Checker
11572         usage with Address Sanitizer.
11574 2015-03-12  Richard Biener  <rguenther@suse.de>
11576         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
11577         to split on.
11578         * omp-low.c (expand_omp_taskreg): Split block before removing
11579         the stmt.
11580         (expand_omp_target): Likewise.
11581         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
11582         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
11583         stmt to split_block.
11585 2015-03-12  Tom de Vries  <tom@codesourcery.com>
11587         PR rtl-optimization/64895
11588         * lra-lives.c (check_pseudos_live_through_calls): Use
11589         actual_call_used_reg_set instead of call_used_reg_set, if available.
11591 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
11593         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
11594         (cgraph_node::remove): Likewise.
11595         (cgraph_node::get_untransformed_body): Likewise.
11596         * varpool.c (varpool_node::remove): Likewise.
11597         (varpool_node::get_constructor): Add sanity check.
11599 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
11601         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
11602         old GCC versions.
11603         (-fabi-compat-version): Likewise.
11604         (-ffriend-injection): Likewise.
11605         (-Wdeclaration-after-statement): Likewise.
11606         (-fomit-frame-pointer): Likewise.
11607         (-ftree-coalesce-inlined-vars): Likewise.
11608         (-fvisibility=): Likewise.
11609         * doc/extend.texi (Typeof): Likewise.
11610         (Zero Length): Likewise.
11611         (Escaped Newlines): Likewise.
11612         (Compound Literals): Likewise.
11613         (Function Attributes): Likewise.
11614         (Label Attributes): Likewise.
11615         (Type Attributes): Likewise.
11616         (Function Names): Likewise.
11617         (Other Builtins): Likewise.
11618         (Function Specific Option Pragmas): Likewise.
11619         (C++ Interface): Likewise.
11621 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
11623         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
11625 2015-03-11  Marek Polacek  <polacek@redhat.com>
11627         PR tree-optimization/65388
11628         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
11630 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
11632         PR target/65296
11633         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
11634         * configure: Regenerate.
11635         * config.in: Regenerate.
11636         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
11637         [-mn-flash]: Document it.
11638         [__AVR_ARCH__]: Document avrtiny.
11640         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
11641         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
11642         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
11644 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11646         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
11648 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
11650         PR target/65242
11651         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
11652         allow reloads of PLUS in floating point/VSX registers.
11654 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
11656         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
11657         crypto_sha256_fast.
11658         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
11660 2015-03-11  Richard Biener  <rguenther@suse.de>
11662         PR tree-optimization/65310
11663         * tree-sra.c (build_ref_for_offset): Also preserve larger
11664         alignment.
11666 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
11668         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
11670 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
11672         PR target/65368
11673         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
11674         new define_expand.
11675         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
11677 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
11679         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
11680         (sem_function::equals_wpa): ... here.
11682 2015-03-10  Marek Polacek  <polacek@redhat.com>
11683             Jakub Jelinek  <jakub@redhat.com>
11685         PR sanitizer/65367
11686         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
11687         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
11688         separately.
11690 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
11692         PR target/65286
11693         * config/rs6000/t-linux: For powerpc64* target set
11694         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
11696 2015-03-10  Richard Biener  <rguenther@suse.de>
11698         PR middle-end/44563
11699         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
11700         for redirect_all_calls.
11702 2015-03-10  Marek Polacek  <polacek@redhat.com>
11704         * gdbinit.in (pcfun): Define and document.
11706 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
11708         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
11709         of libgomp-plugin.h.
11710         (find_target_compiler): Support a case when the path to gcc is
11711         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
11712         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
11713         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
11714         libgomp-plugin.h.
11715         (main): Use GCC_INSTALL_NAME as target_driver_name.
11716         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
11717         define.
11718         (mkoffload.o): Remove obsolete include path and defines.
11719         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
11721 2015-03-10  Richard Biener  <rguenther@suse.de>
11723         PR middle-end/63155
11724         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
11725         * tree-ssa-coalesce.c: Include timevar.h.
11726         (attempt_coalesce): Handle graph being NULL.
11727         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
11728         Split out abnormal coalescing to ...
11729         (perform_abnormal_coalescing): ... this function.
11730         (coalesce_ssa_name): Perform abnormal coalescing without computing
11731         live/conflict.
11732         (verify_ssa_coalescing_worker): New function.
11733         (verify_ssa_coalescing): Likewise.
11735 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
11737         PR target/65296
11738         * config.gcc (extra_options) [avr]: Remove.
11739         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
11740         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
11741         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
11743         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
11744         (-mmcu=): Add Var and MissingArgError properties.
11745         (-march=): Remove.
11746         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
11747         * config/avr/t-multilib: Regenerate.
11748         * config/avr/specs.h: New file.
11749         * config/avr/driver-avr.c: New file.
11750         * config/avr/genopt.sh: Remove file.
11751         * config/avr/avr-tables.opt: Remove file.
11752         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
11753         * config/avr/avr-c.c: Same.
11754         * avr-arch.h: Same.
11755         (avr_current_device): Remove proto.
11756         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
11757         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
11758         (EXTRA_SPEC_FUNCTIONS): Define.
11759         (avr_devicespecs_file): New specs function proto.
11760         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
11761         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
11762         (avr_current_device): Remove definition and usage.
11763         (avr_set_core_architecture): New static function.
11764         (avr_option_override): Use it.
11765         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
11766         (mcu_name): New static array.
11767         (comparator, avr_archs_str, avr_mcus_str): New static functions.
11768         (avr_inform_devices, avr_inform_core_architectures): New functions.
11769         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
11770         (avrlibc.h) [WITH_AVRLIBC]: Include.
11771         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
11772         (print_mcu): Rewrite from scratch.
11773         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
11774         Forward to avr-specific specs defined in device-specs file.
11775         * config/avr/t-avr (driver-avr.o): New rule.
11776         (avr-devices.o): Depend on avr-arch.h.
11777         (avr-mcus): No more depend on avr-tables.opt.
11778         (avr-tables.opt): Remove rule.
11779         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
11781 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
11783         * c-family/c.opt (fchkp-use-wrappers): New.
11784         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
11785         (chkp_wrap_function): New.
11786         (chkp_build_instrumented_fndecl): Support wrapped
11787         functions.
11788         * doc/invoke.texi (-fcheck-pointer-bounds): New.
11789         (-fchkp-check-incomplete-type): New.
11790         (-fchkp-first-field-has-own-bounds): New.
11791         (-fchkp-narrow-bounds): New.
11792         (-fchkp-narrow-to-innermost-array): New.
11793         (-fchkp-optimize): New.
11794         (-fchkp-use-fast-string-functions): New.
11795         (-fchkp-use-nochk-string-functions): New.
11796         (-fchkp-use-static-bounds): New.
11797         (-fchkp-use-static-const-bounds): New.
11798         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
11799         (-fchkp-check-read): New.
11800         (-fchkp-check-write): New.
11801         (-fchkp-store-bounds): New.
11802         (-fchkp-instrument-calls): New.
11803         (-fchkp-instrument-marked-only): New.
11804         (-fchkp-use-wrappers): New.
11805         (-static-libmpx): New.
11806         (-static-libmpxwrappers): New.
11808 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
11810         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
11811         (CHKP_SPEC): Add wrappers library.
11812         * c-family/c.opt (static-libmpxwrappers): New.
11814 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
11816         * config/i386/linux-common.h (LIBMPX_LIBS): New.
11817         (LIBMPX_SPEC): New.
11818         (CHKP_SPEC): New.
11819         * gcc.c (CHKP_SPEC): New.
11820         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
11821         * c-family/c.opt (static-libmpx): New.
11823 2015-03-10  Richard Biener  <rguenther@suse.de>
11825         PR middle-end/44563
11826         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
11827         for compare_type.
11828         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
11829         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
11830         (cgraph_add_edge_to_call_site_hash): Likewise.
11831         (cgraph_node::get_edge): Likewise.
11832         (cgraph_edge::set_call_stmt): Likewise.
11833         (cgraph_edge::remove_caller): Likewise.
11835 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
11837         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
11838         (callee_saved_gpr_regs_size): ... this.
11839         (callee_saved_regs_first_regno): Rename to ...
11840         (callee_saved_first_gpr_regno): ... this.
11841         (callee_saved_regs_last_regno) Rename to ...
11842         (callee_saved_last_gpr_regno): ... this.
11843         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
11844         variables.
11845         (nds32_initial_elimination_offset): Likewise.
11846         (nds32_expand_prologue): Likewise.
11847         (nds32_expand_epilogue): Likewise.
11848         (nds32_expand_prologue_v3push): Likewise.
11849         (nds32_expand_epilogue_v3pop): Likewise.
11850         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
11851         Adjust renamed variables.
11852         (nds32_output_stack_pop): Likewise.
11854 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11856         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
11857         code in comment.
11859 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
11861         PR rtl-optimization/65321
11862         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
11863         than shift mode.
11864         * var-tracking.c (use_narrower_mode): Likewise.
11866 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
11868         PR tree-optimization/65355
11869         * varasm.c (notice_global_symbol): Do not produce RTL.
11870         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
11871         anchor.
11872         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
11873         check for section anchors.
11875 2015-03-10  Alan Modra  <amodra@gmail.com>
11877         PR target/65286
11878         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
11879         to be single-arch by default.  Set cpu_is_64bit for powerpc64
11880         given --with-cpu=native.
11881         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
11882         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
11883         and powerpc64le.
11884         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
11885         rs6000_isa_flags rather than TARGET_64BIT.
11887 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
11888             Kaz Kojima  <kkojima@gcc.gnu.org>
11890         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
11892 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
11894         PR lto/65361
11895         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
11896         on a TREE_BINFO, instead use BINFO_TYPE.
11898 2015-03-09  Richard Biener  <rguenther@suse.de>
11900         PR middle-end/65270
11901         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
11902         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
11903         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
11904         of that.  When comparing dereferences compare alignment.
11905         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
11907 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
11909         * ipa-inline-analysis.c (check_callers): Check
11910         node->can_remove_if_no_direct_calls_and_refs_p.
11911         (growth_likely_positive): Reorganize to call
11912         can_remove_if_no_direct_calls_p later.
11913         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
11914         will_be_removed_from_program_if_no_direct_calls_p): Add
11915         will_inline parameter.
11916         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
11917         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
11918         Handle inliner case correctly.
11920 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11922         PR tree-optimization/63743
11923         * cfgexpand.c (reorder_operands): Also reorder if only second operand
11924         had its definition forwarded by TER.
11926 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
11928         PR lto/65316
11929         * ipa-utils.h (types_odr_comparable): Add strict argument.
11930         * ipa-devirt.c: Fix whitespace;
11931         (odr_hasher): Remove.
11932         (odr_name_hasher, odr_vtable_hasher): New hashers.
11933         (can_be_name_hashed_p): New predicate.
11934         (hash_type_name): remove.
11935         (hash_odr_name): New.
11936         (odr_name_hasher::hash): new.
11937         (can_be_vtable_hashed_p): New.
11938         (hash_odr_vtable): New.
11939         (odr_vtable_hasher::hash): New.
11940         (types_same_for_odr): Add strict parameter.
11941         (types_odr_comparable): Likewise.
11942         (odr_name_hasher::equal): New.
11943         (odr_vtable_hasher::equal): New.
11944         (odr_name_hasher::remove): New.
11945         (odr_hash_type): Change to hash_table<odr_name_hasher>.
11946         (odr_vtable_hash_type): New.
11947         (odr_vtable_hash): New.
11948         (odr_subtypes_equivalent_p): Do strict comparsion.
11949         (add_type_duplicate): Merge type names; cleanup; avoid type
11950         duplicates.
11951         (register_odr_type): Initialize vtable hash.
11952         (build_type_inheritance_graph): Likewise
11953         (get_odr_type): Reorg to use two hashes.
11954         (dump_possible_polymorphic_call_targets): Move sanity check after debug
11955         output.
11956         (ipa_devirt): Dump type_inheritance_graph.
11957         (types_same_for_odr): Add strict mode.
11959 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
11961         PR ipa/65334
11962         * cgraph.h (symtab_node): Add definition_alignment,
11963         can_increase_alignment_p and increase_alignment.
11964         * symtab.c (symtab_node::can_increase_alignment_p,
11965         increase_alignment_1, symtab_node::increase_alignment,
11966         symtab_node::definition_alignment): New.
11967         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
11968         can_increase_alignment_p.
11969         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
11970         * tree-vect-stmts.c (ensure_base_align): Likewise.
11971         * varasm.c (function_section_1): Use definition_alignment.
11972         (assemble_start_function): Likewise.
11973         (emit_local): likewise.
11974         (build_constant_desc): Likewsie.
11975         (output_constant_def_contents): Likewise.
11976         (place_block_symbol): Likewise.
11977         (output_object_block): Likewise.
11979 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
11981         PR ipa/65316
11982         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
11983         when outputting debug.
11985 2015-03-07  Marek Polacek  <polacek@redhat.com>
11986             Martin Uecker  <uecker@eecs.berkeley.edu>
11988         PR sanitizer/65280
11989         * doc/invoke.texi: Update description of -fsanitize=bounds.
11991 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
11993         * tree-ssa-phiopt.c (neg_replacement): Remove.
11994         (tree_ssa_phiopt_worker): Remove negate optimization.
11996 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
11998         PR ipa/65302
11999         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
12001 2015-03-06  Richard Biener  <rguenther@suse.de>
12003         PR middle-end/64928
12004         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
12005         and liveout_obstack members.
12006         (calculate_live_on_exit): Remove.
12007         (calculate_live_ranges): Change declaration.
12008         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
12009         (new_tree_live_info): Adjust.
12010         (calculate_live_ranges): Delete livein when not wanted.
12011         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
12012         Deal with partly deleted live info.
12013         (loe_visit_block): Remove temporary bitmap by using
12014         bitmap_ior_and_compl_into.
12015         (live_worklist): Adjust accordingly.
12016         (calculate_live_on_exit): Make static.
12017         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
12018         we do not need livein.
12020 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
12022         * real.c (real_from_string): Fix typo in assertion.
12024 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
12026         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
12027         the patch.
12029 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
12031         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
12033 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
12035         PR target/64342
12036         * lra-assigns.c (find_hard_regno_for): Rename to
12037         find_hard_regno_for_1.  Add a new parameter.
12038         (find_hard_regno_for): New function using find_hard_regno_for_1.
12040 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12042         PR rtl-optimization/65067
12043         * expmed.c (store_bit_field, extract_bit_field): Reworked the
12044         strict volatile bitfield handling.
12046 2015-03-05  Martin Liska  <mliska@suse.cz>
12048         PR ipa/65318
12049         * ipa-icf.c (sem_variable::equals): Compare variables types.
12051 2015-03-05  Richard Henderson  <rth@redhat.com>
12053         PR target/65121
12054         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
12055         correctly check weak symbol binding.
12057 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
12059         PR middle-end/65315
12060         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
12061         needed alignment.
12063 2015-03-05  Martin Liska  <mliska@suse.cz>
12065         * ipa-inline.c (inline_small_functions): Set default value to
12066         prevent warning during bootstrap.
12067         * tree.h: Add pragma guard that ignores false positives during
12068         bootstrap.
12070 2015-03-05  Richard Biener  <rguenther@suse.de>
12072         PR tree-optimization/65310
12073         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
12074         Properly preserve alignment of the base of the access.
12076 2015-03-05  Richard Biener  <rguenther@suse.de>
12078         PR ipa/65270
12079         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
12080         Compare dependence info.
12082 2015-03-05  Richard Biener  <rguenther@suse.de>
12084         PR middle-end/65233
12085         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
12086         tree-into-ssa.h.
12087         (walk_ssa_copies): Revert last chage.  Instead do not walk
12088         SSA names registered for SSA update.
12090 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
12092         PR ipa/65270
12093         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
12094         vtable references for their containing type.
12095         (sem_function::equals_wpa): Compare TYPE_RESTRICT
12096         and type attributes.
12098 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
12100         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
12101         before negating it.
12102         * stor-layout.c (finalize_record_size): Revert latest change.
12104 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
12106         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
12108 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
12110         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
12111         for correct comdat handling.
12112         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
12113         Likewise.
12114         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
12115         (used_from_object_file_p_worker): Remove.
12116         (cgraph_node::only_called_directly_or_alised): Add
12117         used_from_object_file_p.
12118         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
12119         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
12120         can_remove_if_no_direct_calls_and_refs_p.
12122 2015-03-04  Nick Clifton  <nickc@redhat.com>
12124         * config/rl78/rl78.h (enum reg_class): Remove real registers from
12125         General register class.
12126         * config/rl78/rl78-real.md: Replace general register constraints
12127         with real+virtual register constraints.
12129 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12131         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
12132         from checking for -mhtm option.
12134 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
12136         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
12137         (struct ipa_sra_check_caller_data): Add has_thunk field.
12138         (ipa_sra_check_caller): Check for thunk.
12139         (ipa_sra_preliminary_function_checks): Give up on function with
12140         thunks.
12141         (ipa_early_sra): Use call_for_symbol_and_aliases.
12143 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
12145         PR target/65249
12146         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
12147         called for __stack_chk_guard symbol.
12149 2015-03-03  DJ Delorie  <dj@redhat.com>
12151         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
12152         inc/dec.
12153         (*addhi3_real): Likewise.
12154         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
12155         pattern to match incrementing memory.
12156         * config/rl78/predicates.md (rl78_1_2_operand): New.
12157         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
12158         it's the same and only mem.
12159         (rl78_alloc_physical_registers_op2): If there's effectively only
12160         one MEM, transcode it into HL.
12161         (rl78_far_p): Reject addresses that aren't legitimate.
12163 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
12165         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
12166         negating it.
12168         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
12170 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
12172         Implement call0 ABI for xtensa
12173         * config/xtensa/constraints.md ("a" constraint): Include stack
12174         pointer in case of call0 ABI.
12175         ("q" constraint): Make empty in case of call0 ABI.
12176         ("D" constraint): Include stack pointer in case of call0 ABI.
12177         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
12178         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
12179         prototypes.
12180         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
12181         variable.
12182         (xtensa_regno_to_class): Make it a local variable in the
12183         function xtensa_regno_to_class.
12184         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
12185         macro, function prototype and implementation.
12186         (reg_nonleaf_alloc_order): Make it a local variable in the
12187         function order_regs_for_local_alloc.
12188         (xtensa_conditional_register_usage): New function.
12189         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
12190         (xtensa_valid_move): Allow direct moves to stack pointer
12191         register in call0 ABI.
12192         (xtensa_setup_frame_addresses): Only spill register windows in
12193         windowed ABI.
12194         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
12195         call0 ABI respectively.
12196         (xtensa_function_arg_1): Only mark a7 register for copying in
12197         windowed ABI.
12198         (xtensa_call_save_reg): New function.
12199         (compute_frame_size): Add space for callee saved register
12200         storage to the frame size in call0 ABI.
12201         (xtensa_expand_prologue): Generate code to set up stack frame
12202         and save callee-saved registers in call0 ABI.
12203         (xtensa_expand_epilogue): New function.
12204         (xtensa_set_return_address): New function.
12205         (xtensa_return_addr): Calculate return address in call0 ABI.
12206         (xtensa_builtin_saveregs): Only mark a7 register for copying and
12207         emit copying code in windowed ABI.
12208         (order_regs_for_local_alloc): Add preferred register allocation
12209         order for non-leaf function in call0 ABI.
12210         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
12211         (xtensa_asm_trampoline_template): Add trampoline generation for
12212         call0 ABI.
12213         (xtensa_trampoline_init): Add trampoline initialization for
12214         call0 ABI.
12215         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
12216         functions.
12217         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
12218         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
12219         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
12220         ABI call-used registers.
12221         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
12222         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
12223         call0 ABI.
12224         (REG_CLASS_CONTENTS): Include all registers into the preferred
12225         reload registers set, adjust the set in the
12226         xtensa_conditional_register_usage.
12227         (xtensa_regno_to_class): Drop variable declaration.
12228         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
12229         function.
12230         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
12231         respectively.
12232         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
12233         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
12234         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
12235         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
12236         location in call0 ABI.
12237         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
12238         stack adjustment size when handling exception.
12239         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
12240         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
12241         definitions.
12242         ("return" pattern): Generate ret.n/ret in call0 ABI.
12243         ("epilogue" pattern): Expand epilogue.
12244         ("nonlocal_goto" pattern): Use default in call0 ABI.
12245         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
12246         emit eh_set_a0_* depending on ABI.
12247         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
12248         ("eh_set_a0_call0", "blockage"): New patterns.
12250 2015-03-03  Martin Liska  <mliska@suse.cz>
12252         PR ipa/65287
12253         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
12255 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
12257         PR 65138/target
12258         * config/rs6000/rs6000-tables.opt: Regenerate table.
12260 2015-03-03  Renlin Li  <renlin.li@arm.com>
12262         * doc/md.texi (@item ^): Change ? into ^.
12264 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
12266         * doc/tm.texi: Regenerated.
12268 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
12270         * builtins.c (expand_builtin_return_addr): Add
12271         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
12272         surrounding #ifdef.
12273         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
12274         definition to 1.
12275         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
12276         Likewise.
12277         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
12278         undefined.
12279         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
12280         paragraph.
12282 2015-03-03  Martin Jambor  <mjambor@suse.cz>
12283             Eric Botcazou  <ebotcazou@adacore.com>
12285         * tree-sra.c (ipa_sra_check_caller_data): New type.
12286         (has_caller_p): Removed.
12287         (ipa_sra_check_caller): New function.
12288         (ipa_sra_preliminary_function_checks): Use it.
12290 2015-03-03  Martin Liska  <mliska@suse.cz>
12292         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
12293         instead of if branch.
12295 2015-03-03  Martin Liska  <mliska@suse.cz>
12297         PR ipa/65282
12298         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
12300 2015-03-23  Jeff Law  <law@redhat.com>
12302         PR tree-optimization/65241
12303         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
12304         hash table if INSERT is true.
12306 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
12308         PR target/65296
12309         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
12311 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
12313         PR target/64331
12314         * config/avr/avr.c (context.h, tree-pass.h): Include them.
12315         (avr_pass_data_recompute_notes): New static variable.
12316         (avr_pass_recompute_notes): New class.
12317         (avr_register_passes): New static function.
12318         (avr_option_override): Call it.
12320 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
12322         Fix various problems with specs file generation.
12324         PR target/65296
12325         * config.gcc (extra_gcc_objs) [avr]: Remove.
12326         * config/avr/driver-avr.c: Remove file.
12327         * config/avr/t-avr (driver-avr.o): Remove rule.
12328         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
12329         INCLUDES to build.  Depend on TM_H.
12330         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
12331         build warnings.  Fix non-matching types and non-existing %-codes.
12332         (tm.h): Include.
12333         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
12334         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
12335         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
12336         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
12337         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
12338         (LIBGCC_SPEC): Remove definitions.
12340 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
12342         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
12343         to create a register in testing mode.
12345 2015-03-03  Martin Liska  <mliska@suse.cz>
12346             Jan Hubicka  <hubicka@ucw.cz>
12348         PR ipa/65263
12349         * cgraph.c (cgraph_node::has_thunk_p): New function.
12350         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
12351         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
12352         (sem_function::merge): Assert is changed.
12354 2015-03-03  Martin Liska  <mliska@suse.cz>
12355             Martin Jambor  <mjambor@suse.cz>
12357         PR ipa/65087
12358         * ipa-icf.c (sem_item_optimizer::execute): Change function
12359         return value to boolean.
12360         (sem_item_optimizer::merge_classes): Likewise.
12361         (ipa_icf_driver): Return TODO_remove_functions in case there's
12362         a merge operation processed.
12363         * ipa-icf.h: Change function return value to boolean.
12365 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12367         PR 65138/target
12368         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
12369         processor type for 64-bit little endian PowerPC.
12371         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
12372         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
12373         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
12374         printing built-in mask so it does not pass NULL pointers.
12376         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
12377         -mcpu=powerpc64le.
12379 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
12381         PR target/58158
12382         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
12383         !ISA_HAS_FP_CONDMOVE.
12385 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
12387         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
12388         reload_completed.
12390 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
12392         * doc/invoke.texi (Options for Code Generation Conventions):
12393         Fix URL of DSO paper.
12395 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
12397         PR ipa/65130
12398         * ipa-inline.c (check_callers): Looks for recursion.
12399         (inline_to_all_callers): Give up on uninlinable or recursive edges.
12400         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
12401         summary of inline clones.
12402         (do_estimate_growth_1): Fix recursion check.
12404 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
12406         PR ipa/64988
12407         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
12408         comdat groups.
12410 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
12411             Aldy Hernandez  <aldyh@redhat.com>
12413         PR lto/65276
12414         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
12415         when checking TYPE_BINFO.
12417 2015-03-02  Richard Biener  <rguenther@suse.de>
12419         PR ipa/65270
12420         * ipa-icf-gimple.c: Include builtins.h.
12421         (func_checker::compare_memory_operand): Compare base alignment.
12423 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
12425         PR target/65184
12426         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
12427         are never passed by reference.
12429 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
12431         PR target/65183
12432         * tree-chkp.c (chkp_check_lower): Don't check against
12433         zero bounds for already instrumented functions.
12434         (chkp_check_upper): Likewise.
12435         (chkp_fini): Clean pass local data to avoid wrong reusage.
12437 2015-02-28  Martin Liska  <mliska@suse.cz>
12438             Jan Hubicka  <hubicka@ucw.cz>
12440         * ipa-icf.c (sem_variable::equals): Improve debug output;
12441         get variable constructor.
12442         (sem_variable::parse): Do not filter out too early; give up on
12443         volatile and register vars.
12444         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
12445         variables.
12446         * ipa-icf.h (sem_variable::init): Do not set ctor.
12447         (sem_variable::ctor): Remove.
12449 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
12451         PR middle-end/65233
12452         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
12454 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
12456         * ipa-icf.c: Include stor-layout.h
12457         (sem_function::compare_cgraph_references): Rename to ...
12458         (sem_item::compare_cgraph_references): ... this one.
12459         (sem_variable::equals_wpa): New function
12460         (sem_variable::equals): Do not check stuff already verified by
12461         equals_wpa.
12462         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
12463         * ipa-icf.h (sem_item): Add compare_cgraph_references.
12464         (sem_function): Remove compare_cgraph_references.
12465         (sem_variable): Turns equals_wpa into non-inline.
12467 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
12469         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
12470         (sem_item::add_expr): New function.
12471         (sem_function::hash_stmt): Handle operands of most statements.
12472         (sem_variable::get_hash): Hash the actual constructor.
12473         * ipa-icf.h (sem_item): Add add_expr.
12474         (sem_function): Update prototype of hash_stmt
12476 2015-02-28  Martin Liska  <mliska@suse.cz>
12477             Jan Hubicka  <hubicka@ucw.cz>
12479         PR ipa/65245
12480         * ipa-icf-gimple.c (func_checker::compare_function_decl):
12481         Remove.
12482         (func_checker::compare_variable_decl): Skip symtab vars.
12483         (func_checker::compare_cst_or_decl): Update.
12484         * ipa-icf.c (sem_function::parse): Do not consider aliases.
12485         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
12486         use correct symtab predicates.
12487         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
12488         (sem_variable::parse):  Update comment.
12489         (sem_item_optimizer::build_graph): Consider ultimate aliases
12490         for references.
12492 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
12494         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
12495         of OBJ_TYPE_REF.
12497 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
12499         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
12500         (sem_variable::merge) Likewise.
12502 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
12504         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
12505         target; also match flag_ipa_devirt.
12507 2015-03-01  Martin Liska  <mliska@suse.cz>
12508             Jan Hubicka  <hubicka@ucw.cz>
12510         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
12511         Validate variable alignment.
12512         * ipa-icf.c (sem_function::equals_private): Be more precise
12513         about non-common function attributes.
12514         (sem_variable::equals): Likewise.
12516 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
12518         PR ipa/65237
12519         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
12520         across COMDAT group boundary.
12522 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
12524         PR ipa/65232
12525         * ipa-icf.c (clear_decl_rtl): New function.
12526         (sem_function::merge): Clear RTL before forming alias.
12527         (sem_variable::merge): Clear RTL before forming alias.
12529 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
12531         PR ipa/65236
12532         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
12534 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
12536         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
12537         to neon_to_gp<q>.
12539 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
12541         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
12542         a typo in the description.
12544 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
12546         PR target/64317
12547         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
12548         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
12549         * lra-constraints.c: Include "params.h".
12550         (EBB_PROBABILITY_CUTOFF): Use
12551         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
12552         (lra_inheritance): Use '<' instead of '<=' for
12553         EBB_PROBABILITY_CUTOFF.
12554         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
12555         Document change.
12557 2015-02-27  Martin Liska  <mliska@suse.cz>
12559         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
12560         vector length condition.
12562 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
12564         * doc/extend.texi (x86 transactional memory intrinsics):
12565         Reorganize discussion of _xbegin.  Clarify that the return
12566         value is a bit mask.  Expand example and move to end of section.
12568 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
12569             Aldy Hernandez  <aldyh@redhat.com>
12571         PR rtl-optimization/65220
12572         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
12574 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
12576         PR target/65032
12577         * lra-remat.c (update_scratch_ops): New.
12578         (do_remat): Call it.
12579         * lra.c (lra_register_new_scratch_op): New. Take code from ...
12580         (remove_scratches): ... here.
12581         * lra-int.h (lra_register_new_scratch_op): New prototype.
12583 2015-02-27  Marek Polacek  <polacek@redhat.com>
12585         PR c/65040
12586         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
12587         -Wformat-signedness anymore.
12589 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12591         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
12592         function.
12593         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
12595 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12597         * config/s390/s390.c (enum s390_builtin):
12598         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
12599         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
12600         (s390_init_builtins): Generate new builtin functions.
12601         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
12602         (s390_sfpc, s390_efpc): New pattern definitions.
12604 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12606         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
12607         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
12608         (s390_builtin_decls): New array.
12609         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
12610         (s390_builtin_decl): New function.
12611         (TARGET_BUILTIN_DECL): Define macro.
12613 2015-02-27  Richard Biener  <rguenther@suse.de>
12615         PR middle-end/63175
12616         * builtins.c (get_object_alignment_2): Make sure to re-apply
12617         the ANDed mask after recursing to its operand gets us a new
12618         misalignment bit position.
12620 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
12621             Martin Liska  <mliska@suse.cz>
12623         PR bootstrap/65150
12624         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
12625         Use address_matters_p.
12626         (redirect_all_callers, set_addressable): New functions.
12627         (sem_function::merge): Reorganize and fix merging issues.
12628         (sem_variable::merge): Likewise.
12629         (sem_variable::compare_sections): Remove.
12630         * common.opt (fmerge-all-constants, fmerge-constants): Remove
12631         Optimization flag.
12632         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
12633         redirect them.
12634         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
12635         decl is used.
12636         (address_matters_1): New function.
12637         (symtab_node::address_matters_p): New function.
12638         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
12639         check for merged flag.
12640         * cgraph.h (address_matters_p): Declare.
12641         (symtab_node::address_taken_from_non_vtable_p): Remove.
12642         (symtab_node::address_can_be_compared_p): New method.
12643         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
12644         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
12645         Remove.
12646         (comdat_can_be_unshared_p_1) Use address_matters_p.
12647         (update_vtable_references): Fix formating.
12648         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
12649         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
12650         * cgraphclones.c: Preserve merged and icf_merged flags.
12652 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
12654         * doc/extend.texi (Function Attributes): Fix spelling and typos.
12655         (Label Attributes): Likewise.
12656         (Cilk Plus Builtins): Likewise.
12657         (ARC SIMD Built-in Functions): Likewise.
12658         (ARM C Language Extensions (ACLE)): Likewise.
12659         (PowerPC Built-in Functions): Likewise.
12660         (PowerPC Hardware Transactional Memory Built-in Functions):
12661         Likewise.
12663 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
12665         PR tree-optimization/65216
12666         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
12667         new stmt and new SSA_NAME for lhs whenever the arguments have
12668         changed and weren't just swapped.  Fix comment typo.
12670         PR tree-optimization/65215
12671         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
12672         for PDP endian targets.
12673         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
12674         Fix up formatting issues.
12675         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
12676         size is smaller than the original, adjust MEM_REF offset by the
12677         difference of sizes.  Use is_gimple_mem_ref_addr instead of
12678         is_gimple_min_invariant test to avoid adding address temporaries.
12680 2015-02-26  Martin Liska  <mliska@suse.cz>
12681             Jan Hubicka  <hubicka@ucw.cz>
12683         PR ipa/64693
12684         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
12685         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
12686         (sem_item_optimizer::process_cong_reduction): Include division by
12687         sensitive references.
12688         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
12689         * ipa-ref.c (ipa_ref::address_matters_p): New function.
12690         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
12692 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
12694         PR target/65192
12695         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
12696         Remove.
12697         * config/avr/avr.c: Same.
12698         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
12699         Refuse any constant address not in 0..0xbf.
12700         * config/avr/avr.md (*mov<mode>, *movsf): Remove
12701         tiny_valid_direct_memory_access_range from insn conditions.
12702         (mov<mode>): Don't special-case expansion of avrtiny addresses.
12704 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
12706         PR target/61142
12707         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
12708         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
12709         * config/sh/predicates.md (const_logical_operand): New predicate.
12710         * config/sh/sh.md: Add new peephole2 patterns.
12712 2015-02-26  Marek Polacek  <polacek@redhat.com>
12714         PR ipa/65008
12715         * ipa-inline.c (early_inliner): Recompute inline parameters.
12717 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12719         PR target/65171
12720         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
12721         instructions with TImode operands are included in the analysis.
12723 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
12725         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
12726         of an EDGE_FSM_THREAD.
12728 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12730         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
12732 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
12734         PR debug/46102
12735         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
12737 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
12739         PR tree-optimization/65048
12740         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
12741         (thread_through_all_blocks): Call valid_jump_thread_path.
12742         Remove invalid FSM jump-thread paths.
12744 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
12746         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
12747         (ipa_write_optimization_summaries): Likewise.
12748         * tree-streamer.h: Include data-streamer.h.
12749         (streamer_mode_table): Declare extern variable.
12750         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
12751         * lto-streamer-out.c (lto_output_init_mode_table,
12752         lto_write_mode_table): New functions.
12753         (produce_asm_for_decls): Call lto_write_mode_table when streaming
12754         offloading LTO.
12755         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
12756         (lto_create_simple_input_block): Add mode_table argument to the
12757         lto_input_block constructors.
12758         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
12759         Likewise.
12760         * data-streamer-in.c (string_for_index): Likewise.
12761         * ipa-inline-analysis.c (inline_read_section): Likewise.
12762         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
12763         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
12764         * lto-streamer-in.c (lto_read_body_or_constructor,
12765         lto_input_toplevel_asms): Likewise.
12766         (lto_input_mode_table): New function.
12767         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
12768         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
12769         Use bp_pack_machine_mode.
12770         * real.h (struct real_format): Add name field.
12771         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
12772         (class lto_input_block): Add mode_table member.
12773         (lto_input_block::lto_input_block): Add mode_table_ argument,
12774         initialize mode_table.
12775         (struct lto_file_decl_data): Add mode_table field.
12776         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
12777         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
12778         unpack_ts_decl_common_value_fields,
12779         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
12780         * tree-streamer.c (streamer_mode_table): New variable.
12781         * real.c (ieee_single_format, mips_single_format,
12782         motorola_single_format, spu_single_format, ieee_double_format,
12783         mips_double_format, motorola_double_format,
12784         ieee_extended_motorola_format, ieee_extended_intel_96_format,
12785         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
12786         ibm_extended_format, mips_extended_format, ieee_quad_format,
12787         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
12788         decimal_single_format, decimal_double_format, decimal_quad_format,
12789         ieee_half_format, arm_half_format, real_internal_format): Add name
12790         field.
12791         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
12793 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
12795         PR target/65161
12796         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
12797         reordering for selective scheduling.
12799 2015-02-26  Terry Guo  <terry.guo@arm.com>
12801         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
12802         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
12803         (arm_arch_no_volatile_ce): Declare new global variable.
12804         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
12805         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
12806         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
12807         (TARGET_NO_VOLATILE_CE): New macro.
12808         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
12809         volatile memory access in IT block
12811 2015-02-25  Kai Tietz  <ktietz@redhat.com>
12813         PR tree-optimization/61917
12814         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
12815         that reduc_def_stmt is null.
12817 2015-02-25  Martin Liska  <mliska@suse.cz>
12819         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
12820         hard register variables.
12822 2015-02-25  Kai Tietz  <ktietz@redhat.com>
12824         PR target/64212
12825         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
12826         (symtab::noninterposable_alias): Likewise.
12828 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
12830         PR target/65167
12831         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
12832         bounds registers.
12833         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
12835 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
12837         PR target/64997
12838         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
12839         as split condition; force split via '#' in output pattern.
12841 2015-02-25  Richard Biener  <rguenther@suse.de>
12842             Kai Tietz  <ktietz@redhat.com>
12844         PR tree-optimization/61917
12845         * tree-vect-loop.c (vectorizable_reduction): Allow
12846         vect_internal_def without reduction to exit graceful.
12848 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
12850         PR target/65196
12851         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
12852         only with NONDEBUG_INSN_P.
12854 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
12856         Use variadic macros with avr-log.c.
12858         * config/avr/avr-protos.h (avr_vdump): New prototype.
12859         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
12860         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
12861         * config/avr/avr-log.c: Adjust comments.
12862         (avr_vdump): New function.
12863         (avr_vadump): Pass caller as 2nd argument instead of format string.
12864         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
12865         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
12867 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
12869         PR lto/64374
12870         * target.def (target_option_stream_in): New target hook.
12871         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
12872         targetm.target_option.post_stream_in if non-NULL.
12873         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
12874         * doc/tm.texi: Updated.
12875         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
12876         function.
12877         (TARGET_OPTION_POST_STREAM_IN): Redefine.
12879 2015-02-24  Jeff Law  <law@redhat.com>
12881         PR target/65117
12882         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
12883         of operand 0 and operand 2.
12884         (zero_cost_loop_end, loop_end): Similarly.
12886 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
12888         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
12889         CXX_MEM_STAT_INFO.
12891 2015-02-24  DJ Delorie  <dj@redhat.com>
12893         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
12894         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
12895         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
12896         instead of hardcoding SImode.
12898 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
12900         * omp-low.c (create_omp_child_function): Tag entrypoint
12901         functions with a special attribute.
12903 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
12905         PR target/65058
12906         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
12908 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
12910         PR rtl-optimization/65123
12911         * lra-remat.c (operand_to_remat): Check hard regs in insn
12912         definition too.
12914 2015-02-24  Nick Clifton  <nickc@redhat.com>
12916         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
12917         to the assembler.
12919 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
12921         PR libgomp/64625
12922         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
12923         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
12924         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
12925         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
12926         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
12927         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
12928         (BUILT_IN_GOACC_PARALLEL): Specify as
12929         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
12930         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
12931         * builtin-types.def
12932         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
12933         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
12934         Remove function types.
12935         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
12936         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
12937         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
12938         New function types.
12940 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
12942         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
12944 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
12946         PR tree-optimization/65170
12947         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
12948         if val[1] < 0, clear also val[2] and return 3.
12950 2015-02-24  Alan Modra  <amodra@gmail.com>
12952         PR target/65172
12953         * config/rs6000/rs6000.c (get_memref_parts): Only return true
12954         when *base is a reg.  Handle nested plus addresses.  Simplify
12955         pre_modify test.
12957 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
12959         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
12960         use natural alignment when optimizing for size.
12962 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
12964         PR target/65153
12965         * config/sh/sh.md (movsicc_true+3): Remove peephole.
12966         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
12967         * config/sh/sh.c (replace_n_hard_rtx): Remove.
12969 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
12971         PR fortran/63427
12972         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
12973         too big for a wide_int.  Implement missing wrapping operation.
12975 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
12977         PR target/65163
12978         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
12979         instead of const_int 4294901760.
12981 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
12983         * config/avr/t-avr: Fix typo in comment.
12985 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
12987         * doc/rtl.texi (fma): Clarify documentation.
12989 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
12991         PR debug/58123
12992         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
12993         over input_location.
12995 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
12997         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
12998         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
12999         restrict alignments to absolute_biggest_alignment.
13000         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
13001         Define.
13002         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
13003         * doc/tm.texi: Regenerate.
13004         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
13006 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
13008         PR target/64172
13009         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
13011 2015-02-20  Richard Biener  <rguenther@suse.de>
13013         PR tree-optimization/65136
13014         * tree-ssa-propagate.c: Include cfgloop.h.
13015         (replace_phi_args_in): Avoid replacing loop latch edge PHI
13016         arguments with constants.
13018 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
13019             Martin Liska  <mliska@suse.cz>
13021         PR target/63892
13022         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
13023         don't try to create_thunk if stdarg_p.  If
13024         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
13025         redirect_callers if possible.
13026         (sem_item_optimizer::execute): Call unregister_hooks here...
13027         (ipa_icf_driver): ... instead of here.
13029 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13031         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
13032         Mark operand 0 as earlyclobber in 2nd alternative.
13033         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
13034         Write negated shift amount into QI lowpart operand 0 and use it
13035         in the shift step.
13036         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
13038 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
13040         * cgraph.h (clone_function_name_1): Declare.
13041         * cgraphclones.c (clone_function_name_1): New function.
13042         (clone_function_name): Use it.
13043         * lto-partition.c: Include "stringpool.h".
13044         (must_not_rename, maybe_rewrite_identifier)
13045         (validize_symbol_for_target): New static functions.
13046         (privatize_symbol_name): Use must_not_rename.
13047         (promote_symbol): Call validize_symbol_for_target.
13048         (lto_promote_cross_file_statics): Likewise.
13049         (lto_promote_statics_nonwpa): Likewise.
13051 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
13053         PR target/64452
13054         * config/avr/avr.md (pushhi_insn): New insn.
13055         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
13057 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
13058             Jakub Jelinek  <jakub@redhat.com>
13060         * tree-streamer.c (preload_common_nodes): Don't preload
13061         TI_VA_LIST* for offloading.
13062         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
13063         in_lto_p.
13065 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
13067         * config/pa/pa.c (pa_emit_move_sequence): Always force
13068         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
13069         note on insn.
13071         * config/pa/pa.c (pa_reloc_rw_mask): New function.
13072         (TARGET_ASM_RELOC_RW_MASK): Define.
13073         (pa_cannot_force_const_mem): Revert previous change.
13075 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
13076             Jan Hubicka  <hubicka@ucw.cz>
13078         PR ipa/65028
13079         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
13080         across jump functions.
13082 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
13084         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
13086 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
13088         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
13090 2015-02-19  Richard Henderson  <rth@redhat.com>
13092         PR middle-end/65074
13093         * varasm.c (default_binds_local_p_2): Don't test node->definition;
13094         test DECL_EXTERNAL independent of symtab_node.
13096 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
13098         PR lto/65012
13099         * varpool.c (varpool_node::get_constructor): Return early
13100         if this->lto_file_data is NULL.
13102 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
13104         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
13105         (rank_for_schedule_debug): Update.
13106         (ready_sort): Make static.  Move sorting logic to ...
13107         (ready_sort_debug, ready_sort_real): New static functions.
13108         (schedule_block): Sort both debug insns and real insns in preparation
13109         for ready list trimming.  Improve debug output.
13110         * sched-int.h (ready_sort): Remove global declaration.
13112 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
13114         * ipa-icf.c (sem_function::equals_private): Adjust.
13115         (sem_function::bb_dict_test): Take a vec<int> * instead of
13116         auto_vec<int>.
13117         * ipa-icf.h (bb_dict_test): Likewise.
13119 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
13121         PR gcov-profile/64634
13122         * tree-eh.c (frob_into_branch_around): Fix up typos
13123         in function comment.
13124         (lower_catch): Put eh_seq resulting from EH lowering of
13125         the cleanup sequence after the cleanup rather than before it.
13127 2015-02-18  Tom de Vries  <tom@codesourcery.com>
13129         * common.opt (fstdarg-opt): New option.
13130         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
13131         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
13132         (@item -fstdarg-opt): New item.
13134 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
13136         PR target/65064
13137         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
13138         for common symbols.
13140 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
13142         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
13143         insn-modes.h.
13144         (ALL_HOST_OBJS): Add mkoffload.o.
13145         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
13147 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
13149         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
13150         (compare_virtual_tables): Be smarter about skipping typeinfos;
13151         do sane output on virtual table table mismatch.
13152         (warn_odr): Be ready for forward declarations of enums;
13153         output sane info on base mismatch and virtual table mismatch.
13154         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
13155         when only one type is polymorphic.
13156         (get_odr_type): Fix hashtable corruption.
13157         (dump_odr_type): Dump mangled names.
13159 2015-02-18  Richard Biener  <rguenther@suse.de>
13161         PR tree-optimization/65063
13162         * tree-predcom.c (determine_unroll_factor): Return 1 if we
13163         have replaced looparound PHIs.
13165 2015-02-18  Martin Liska  <mliska@suse.cz>
13167         * lto-streamer.c (lto_streamer_init): Encapsulate
13168         streamer_check_handled_ts_structures with checking macro.
13170 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
13172         PR ipa/65087
13173         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
13174         section if !implicit_section.
13175         (cgraph_node::create_version_clone_with_body): Likewise.
13176         * trans-mem.c (ipa_tm_create_version): Likewise.
13178 2015-02-18  Richard Biener  <rguenther@suse.de>
13180         PR tree-optimization/62217
13181         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
13182         into BIVs.
13184 2015-02-18  Marek Polacek  <polacek@redhat.com>
13186         PR sanitizer/65081
13187         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
13188         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
13189         is in range [-16K, -1].  Don't issue run-time error if
13190         (ptr > ptr + offset).
13192 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
13194         * doc/install.texi (nvptx-*-none): New section.
13195         * doc/invoke.texi (Nvidia PTX Options): Likewise.
13196         * config/nvptx/nvptx.opt: Update.
13198         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
13199         (access_check): New functions, copied from
13200         config/i386/intelmic-mkoffload.c.
13201         (main): For non-installed testing, look in all COMPILER_PATHs for
13202         GCC_INSTALL_NAME.
13204         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
13206 2015-02-18  Andrew Pinski  <apinski@cavium.com>
13207             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
13209         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
13210         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
13212 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
13214         * ipa-visibility.c (function_and_variable_visibility): Only
13215         check locality if node is not already local.
13216         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
13217         call_for_symbol_and_aliases instead of
13218         call_for_symbol_thunks_and_aliases.
13219         (ipa_inline): Likewise.
13220         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
13221         first walk aliases.
13222         * ipa.c (symbol_table::remove_unreachable_nodes): Use
13223         call_for_symbol_and_aliases.
13224         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
13225         (ipa_propagate_frequency_1): Use it; use opt_for_fn
13226         (ipa_propagate_frequency): Update.
13227         (ipa_profile): Add opt_for_fn gueards.
13229 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
13231         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
13232         * doc/invoke.texi (SH options): Document it.
13233         * config/sh/sh.c (sh_insn_length_adjustment): Check
13234         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
13236 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
13238         * common.opt (fipa-cp-alignment): New.
13239         * ipa-cp.c (ipcp_store_alignment_results): Check
13240         flag_ipa_cp_alignment.
13241         * opts.c (default_options_table): Enable -fipa-cp-alignment for
13242         -O2.
13243         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
13244         * doc/invoke.texi: Document -fipa-cp-alignment.
13246 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
13248         PR target/64793
13249         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
13250         to nil.  Adjust comments.
13252 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
13254         * ipa-visibility.c (function_and_variable_visibility): Only
13255         check locality if node is not already local.
13256         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
13257         call_for_symbol_and_aliases instead of
13258         call_for_symbol_thunks_and_aliases.
13259         (ipa_inline): Likewise.
13260         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
13261         first walk aliases.
13262         * ipa.c (symbol_table::remove_unreachable_nodes): Use
13263         call_for_symbol_and_aliases.
13264         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
13265         (ipa_propagate_frequency_1): Use it; use opt_for_fn
13266         (ipa_propagate_frequency): Update.
13267         (ipa_profile): Add opt_for_fn guards.
13269 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
13271         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
13272         skipping of "strange" tokens.
13274 2015-02-17  Jeff Law  <law@redhat.com>
13276         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
13277         obsolete comment.
13279 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
13281         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
13282         as forcing a HARD_DEP between instructions, thereby
13283         disallowing rewriting to break dependencies.
13285 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
13287         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
13288         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
13289         variables in boundary that have no inlitalizer encoded and are
13290         not aliases.
13291         * varasm.c (default_binds_local_p_2): External definitions do not
13292         count as definitions here.
13294 2015-02-16  Jeff Law  <law@redhat.com>
13296         PR tree-optimization/64823
13297         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
13298         statements.
13299         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
13300         threading through blocks with PHIs, but no statements.
13301         (thread_through_normal_block): Distinguish between blocks where
13302         we did not process all the statements and blocks with no statements.
13304 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
13305             James Greenhalgh  <james.greenhalgh@arm.com>
13307         PR ipa/64963
13308         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
13309         section if not linkonce.  Fix up formatting.
13310         (cgraph_node::create_version_clone_with_body): Copy section.
13311         * trans-mem.c (ipa_tm_create_version): Likewise.
13313 2015-02-16  Richard Biener  <rguenther@suse.de>
13315         PR tree-optimization/65077
13316         * tree-ssa-structalias.c (get_constraint_for_1): Handle
13317         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
13318         (find_func_aliases): Allow float values to carry pointers again.
13320 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
13322         * doc/install.texi (Specific): Reorder targets list to put
13323         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
13324         from the top menu.
13326 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
13327             David Edelsohn  <dje.gcc@gmail.com>
13329         PR target/65058
13330         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
13331         mapping class to external variable or function reference.
13332         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
13333         mapping class.
13335 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
13337         PR target/53348
13338         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
13339         ASM_WEAKEN_DECL if defined.
13341 2015-02-16  Richard Biener  <rguenther@suse.de>
13343         PR lto/65015
13344         * varasm.c (default_file_start): For LTO produced units
13345         emit <artificial> as file directive.
13347 2015-02-16  Richard Biener  <rguenther@suse.de>
13349         PR tree-optimization/63593
13350         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
13351         stmts and releasing SSA names until...
13352         (execute_pred_commoning): ... after processing all chains.
13354 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
13356         PR ipa/65059
13357         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
13358         external functions.
13360 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
13362         * doc/bugreport.texi: Adjust section titles throughout the file
13363         to use "Title Case".
13364         * doc/extend.texi: Likewise.
13365         * doc/gcov.texi: Likewise.
13366         * doc/implement-c.texi: Likewise.
13367         * doc/implement-cxx.texi: Likewise.
13368         * doc/invoke.texi: Likewise.
13369         * doc/objc.texi: Likewise.
13370         * doc/standards.texi: Likewise.
13371         * doc/trouble.texi: Likewise.
13373 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
13375         * cgraph.h (symtab_node::has_aliases_p): Simplify.
13376         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
13377         * tree.c (lookup_binfo_at_offset): Make static.
13378         (get_binfo_at_offset): Do not shadow offset; add explanatory
13379         comment.
13381 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
13383         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
13384         for all floading point loads and stores except those using a register
13385         index address.
13386         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
13387         to a register.
13389 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
13391         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
13392         (do_estimate_growth_1): Record if any uninlinable edge was seen.
13393         (estimate_growth): Handle uninlinable edges correctly.
13394         (check_callers): New.
13395         (growth_likely_positive): Handle aliases correctly.
13397 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
13399         * ipa-chkp.c: Use iterate_direct_aliases.
13400         * symtab.c (resolution_used_from_other_file_p): Move inline.
13401         (symtab_node::create_reference): Fix formating.
13402         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
13403         (symtab_node::iterate_reference): Move inline.
13404         (symtab_node::iterate_referring): Move inline.
13405         (symtab_node::iterate_direct_aliases): Move inline.
13406         (symtab_node::used_from_object_file_p_worker): Inline into ...
13407         (symtab_node::used_from_object_file_p): ... this one; move inline.
13408         (symtab_node::call_for_symbol_and_aliases): Move inline;
13409         use iterate_direct_aliases.
13410         (symtab_node::call_for_symbol_and_aliases_1): New method.
13411         (cgraph_node::call_for_symbol_and_aliases): Move inline;
13412         use iterate_direct_aliases.
13413         (cgraph_node::call_for_symbol_and_aliases_1): New method.
13414         (varpool_node::call_for_node_and_aliases): Rename to ...
13415         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
13416         use iterate_direct_aliases.
13417         (varpool_node::call_for_symbol_and_aliases_1): New method.
13418         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
13419         (ipa_discover_readonly_nonaddressable_var): Update.
13420         * ipa-devirt.c: Fix formating.
13421         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
13422         Move inline.
13423         (cgraph_node::call_for_symbol_and_aliases): Move inline.
13424         (cgraph_node::call_for_symbol_and_aliases_1): New function..
13425         * cgraph.h (used_from_object_file_p_worker): Remove.
13426         (resolution_used_from_other_file_p): Move inline.
13427         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
13428         (symtab_node::iterate_reference): Move inline.
13429         (symtab_node::iterate_referring): Move inline.
13430         (symtab_node::iterate_direct_aliases): Move inline.
13431         (symtab_node::used_from_object_file_p_worker): Inline into ...
13432         (symtab_node::used_from_object_file_p): Move inline.
13433         * tree-emutls.c (ipa_lower_emutls): Update.
13434         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
13435         (varpool_node::call_for_node_and_aliases): Remove.
13437 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
13439         PR tree-optimization/62209
13440         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
13441         op == range->exp, insert seq and gimplified code after labels
13442         instead of after the phi.
13444 2015-02-13  Jeff Law  <law@redhat.com>
13446         PR bootstrap/65060
13447         Revert my change for tree-optimization/64823.
13449 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
13451         PR tree-optimization/65053
13452         * tree-ssa-phiopt.c (value_replacement): When moving assign before
13453         cond, either reset VR on lhs or set it to phi result VR.
13455 2015-02-13  Jeff Law  <law@redhat.com>
13457         PR tree-optimization/64823
13458         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
13459         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
13460         threading through blocks with PHIs, but no statements.
13461         (thread_through_normal_block): Distinguish between blocks where
13462         we did not process all the statements and blocks with no statements.
13464         PR rtl-optimization/47477
13465         * match.pd (convert (plus/minus (convert @0) (convert @1): New
13466         simplifier to narrow arithmetic.
13468 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
13470         PR ipa/65028
13471         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
13472         polymorphic call info when type is not known to be preserved.
13474 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
13476         PR ipa/65028
13477         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
13478         (inline_call): Use it.
13480 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
13482         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
13483         GOMP_DEVICE_NVIDIA_PTX.
13485 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
13487         PR ipa/65034
13488         * stmt.c (emit_case_nodes): Use void_type_node instead of
13489         NULL_TREE as LABEL_DECL type.
13491 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
13493         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
13494         constraints.
13495         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
13496         symbolic references to data to be forced to constant memory on the
13497         SOM target.
13499 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
13501         PR tree-optimization/65002
13502         * tree-cfg.c (pass_data_fixup_cfg): Don't update
13503         SSA on start.
13504         * tree-sra.c (some_callers_have_no_vuse_p): New.
13505         (ipa_early_sra): Reject functions whose callers
13506         assume function is read only.
13508 2015-02-13  Richard Biener  <rguenther@suse.de>
13510         PR lto/65015
13511         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
13512         for LTO produced CUs.
13514 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
13516         PR tree-optimization/64705
13517         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
13518         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
13519         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
13520         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
13521         expand_simple_operations.
13523 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
13524             Richard Henderson  <rth@redhat.com>
13526         PR rtl/32219
13527         * cgraphunit.c (cgraph_node::finalize_function): Set definition
13528         before notice_global_symbol.
13529         (varpool_node::finalize_decl): Likewise.
13530         * varasm.c (default_binds_local_p_2): Rename from
13531         default_binds_local_p_1, add weak_dominate argument.  Use direct
13532         returns instead of assigning to local variable.  Unify varpool and
13533         cgraph paths via symtab_node.  Reject undef weak variables before
13534         testing visibility.  Reorder tests for simplicity.
13535         (default_binds_local_p): Use default_binds_local_p_2.
13536         (default_binds_local_p_1): Likewise.
13537         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
13538         via symtab_node.
13539         (default_elf_asm_output_external): Emit visibility when specified.
13541 2015-02-13  Alan Modra  <amodra@gmail.com>
13543         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
13544         code setting up r11 for out-of-line fp restore.
13546 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
13548         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
13549         (muser-mode): Likewise.
13551 2015-02-13  Alan Modra  <amodra@gmail.com>
13553         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
13554         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
13556 2015-02-12  David Howells  <dhowells@redhat.com>
13558         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
13559         warning.
13560         * tree-ssa-uninit.c (dump_predicates): Likewise.
13561         * opts.c (print_filtered_help): Likewise.
13563 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
13565         * dwarf2out.c (output_die): Use "%s", name instead of name to
13566         avoid -Wformat-security warning.
13568         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
13569         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
13570         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
13571         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
13573 2015-02-12  Jason Merrill  <jason@redhat.com>
13575         * common.opt (-flifetime-dse): New.
13577 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
13579         PR sanitizer/65019
13580         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
13582         PR tree-optimization/65014
13583         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
13584         use original second operand of arg0 or arg1 instead of
13585         that adjusted by STRIP_NOPS.
13587 2015-02-11  Jeff Law  <law@redhat.com>
13589         PR target/63347
13590         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
13591         that needs to be queued, just queue it for a single cycle.
13593 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
13595         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
13596         bodies of thunks; comment on why.
13597         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
13598         symbols are extern.
13600 2015-02-11  Richard Henderson  <rth@redhat.com>
13602         PR sanitize/65000
13603         * tree-eh.c (mark_reachable_handlers): Mark source and destination
13604         regions of __builtin_eh_copy_values.
13606 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
13608         PR middle-end/65003
13609         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
13610         ultimate alias is MEM with SYMBOL_REF satisfying
13611         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
13612         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
13614 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
13616         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
13617         "diagnostic-core.h".
13618         (main): Initialize progname, and call diagnostic_initialize.
13620         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
13621         instead of __OPENMP_TARGET__.
13623         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
13624         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
13625         hard-coding PTX_ID.
13627 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
13629         * doc/sourcebuild.texi (pie_enabled): Document.
13631 2015-02-11  Martin Liska  <mliska@suse.cz>
13633         PR ipa/64813
13634         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
13635         a return value for call to a function that is noreturn.
13637 2015-02-11  Richard Biener  <rguenther@suse.de>
13639         PR lto/65015
13640         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
13641         and -fresolution.
13643 2015-02-11  Andrew Pinski  <apinski@cavium.com>
13645         PR target/64893
13646         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
13647         Change the first argument type to size_type_node and add another
13648         size_type_node.
13649         (aarch64_simd_expand_builtin): Handle the new argument to
13650         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
13651         print an out when the first two arguments are not
13652         nonzero integer constants.
13653         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
13654         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
13656 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
13658         PR target/61925
13659         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
13660         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
13661         (ix86_set_current_function): Rewritten.
13662         (ix86_add_new_builtins): Temporarily clear current_target_pragma
13663         when creating builtin fndecls.
13665 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
13667         PR ipa/65005
13668         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
13669         function.
13670         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
13671         have no comdat group.
13672         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
13673         (lto_output_varpool_node): Always output alias info.
13674         (output_refs): Output refs of boundary aliases, too.
13675         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
13676         (output_symtab): Output call eges in thunks in boundary.
13677         (get_alias_symbol): Remove.
13678         (input_node, input_varpool_node): Do not special case weakrefs.
13679         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
13680         alias and thunks targets in the boundary; do not take removed symbols
13681         from their comdat groups.
13682         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
13683         (cgraph_node::global_info): Remove.
13684         (cgraph_node::rtl_info): Look through aliases and thunks.
13685         * cgrpah.h (global_info): Remove.
13686         (non_local_p): Remove.
13688 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
13689             Sandra Loosemore  <sandra@codesourcery.com>
13691         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
13692         to inline asm.  List dialects in proper order.
13694 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
13695             Sandra Loosemore  <sandra@codesourcery.com>
13697         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
13699 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
13701         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
13702         modified) reference to Solaris.
13704 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
13706         * doc/extend.texi (Extended Asm): Fix typos.
13708 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
13710         PR sanitizer/65004
13711         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
13713 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
13715         PR target/64661
13716         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
13717         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
13718         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
13719         * config/sh/constraints.md (Ara, Add): New constraints.
13720         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
13721         predicates.
13722         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
13723         atomic_mem_operand_0.  Don't use force_reg on the memory address.
13724         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
13725         Sra constraint.  Convert to insn_and_split.  Add workaround for
13726         PR 64974.
13727         (atomic_compare_and_swap<mode>_hard): Copy to
13728         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
13729         Use atomic_mem_operand_0 predicate.
13730         (atomic_compare_and_swap<mode>_soft_gusa,
13731         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
13732         AraAdd constraints.
13733         (atomic_compare_and_swap<mode>_soft_tcb,
13734         atomic_compare_and_swap<mode>_soft_imask,
13735         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
13736         atomic_mem_operand_0 predicate and SraSdd constraints.
13737         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
13738         constraint.
13739         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
13740         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
13741         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
13742         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
13743         force_reg on the memory address.
13744         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
13745         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
13746         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
13747         atomic_mem_operand_1 predicate and Sra constraint.
13748         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
13749         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
13750         Use atomic_mem_operand_1 predicate.
13751         (atomic_<fetchop_name><mode>_hard): Copy to
13752         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
13753         Use atomic_mem_operand_1 predicate.
13754         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
13755         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
13756         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
13757         insn_and_split.  Use atomic_mem_operand_1 predicate.
13758         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
13759         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
13760         Use atomic_mem_operand_1 predicate.
13761         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
13762         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
13763         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
13764         in generated insn with original mem operand before emitting the insn.
13765         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
13766         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
13767         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
13768         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
13769         Use atomic_mem_operand_1 predicate and AraAdd constraints.
13770         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
13771         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
13772         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
13773         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
13774         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
13775         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
13776         atomic_not_fetch<mode>_soft_tcb,
13777         atomic_<fetchop_name>_fetch<mode>_soft_imask,
13778         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
13779         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
13780         Use atomic_mem_operand_1 predicate and SraSdd constraints.
13782 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
13784         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
13785         and 3 earlyclobber operands.
13787 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
13789         * common.opt (fstack-reuse): Mark as optimization.
13791 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
13793         PR ipa/64982
13794         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
13796 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
13798         PR tree-optimization/64326
13799         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
13801 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
13803         PR gcov-profile/61889
13804         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
13806 2015-02-10  Richard Biener  <rguenther@suse.de>
13808         PR tree-optimization/64995
13809         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
13810         value we use is final.
13811         (visit_reference_op_store): Always valueize op.
13812         (visit_use): Properly valueize vuses.
13814 2015-02-10  Richard Biener  <rguenther@suse.de>
13816         PR tree-optimization/64909
13817         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
13818         pass a scalar-stmt count estimate to the cost model.
13819         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
13821 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
13823         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
13824         enabled by default together with var-tracking.
13826 2015-02-10  Nick Clifton  <nickc@redhat.com>
13828         * config/rl78/rl78.c: Remove DIV attribute code accidentally
13829         included in previous rl78 commit.
13831 2015-02-10  Richard Biener  <rguenther@suse.de>
13833         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
13834         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
13835         return the bitpack.
13837 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
13839         PR gcov-profile/61889
13840         * config.in: regenerate.
13841         * configure.in: Likewise.
13842         * configure.ac: Check for ftw.h.
13843         * gcov-tool.c: Check for ftw.h before using nftw.
13845 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
13847         PR lto/64076
13848         * ipa-visibility.c (update_visibility_by_resolution_info): Only
13849         assert when not in lto mode.
13851 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
13853         * ira-color.c (setup_left_conflict_sizes_p): Simplify
13854         initialization/assignment of conflict_size.
13856 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
13858         PR ipa/64978
13859         * ipa-cp.c (gather_caller_stats): Skip thunks.
13860         (propagate_constants_topo): Skip aliases.
13862 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
13864         PR target/64761
13865         * config/sh/sh.c (sh_option_override): Don't change
13866         -freorder-blocks-and-partition to -freorder-blocks even when
13867         unwinding is enabled.
13868         (sh_can_follow_jump): Return false if the followee jump is
13869         a crossing jump when -freorder-blocks-and-partition is specified.
13870         * config/sh/sh.md (*jump_compact_crossing): New insn.
13872 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
13873             Kaz Kojima  <kkojima@gcc.gnu.org>
13875         PR target/64761
13876         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
13877         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
13878         (sh_can_redirect_branch): Rename to ...
13879         (sh_can_follow_jump): ... this.  Constify argument types.
13880         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
13881         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
13882         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
13883         * doc/tm.texi: Regenerate.
13885 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
13887         PR sanitizer/64981
13888         * builtins.c (expand_builtin): Call targetm.expand_builtin
13889         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
13891 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
13893         PR ipa/61548
13894         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
13896 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
13898         PR ipa/63566
13899         * ipa-icf.c (set_local): New function.
13900         (sem_function::merge): Use it.
13902 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
13904         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
13905         (add_type_duplicate): Fix comparison of BINFOs.
13907 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
13909         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
13910         on getting VOID pointer.
13912 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
13914         PR target/64979
13915         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
13916         va_list escapes.
13918 2015-02-09  Richard Biener  <rguenther@suse.de>
13920         * genmatch.c (replace_id): Copy expr_type.
13922 2015-02-09  Richard Biener  <rguenther@suse.de>
13924         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
13925         (streamer_write_tree_bitfields): Declare.
13926         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
13927         properly unpack padding.
13928         (unpack_value_fields): Inline ...
13929         (streamer_read_tree_bitfields): ... here.
13930         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
13931         and properly add padding bits.
13932         (streamer_pack_tree_bitfields): Fold into ...
13933         (streamer_write_tree_bitfields): ... this new function,
13934         exposing the bitpack object.
13935         * lto-streamer-out.c (lto_write_tree_1): Call
13936         streamer_write_tree_bitfields.
13938 2015-02-09  Richard Biener  <rguenther@suse.de>
13940         PR tree-optimization/54000
13941         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
13942         (struct ivopts_data): Add loop_loc member.
13943         (tree_ssa_iv_optimize_loop): Dump loop location.
13944         (create_new_ivs): Likewise, also dump number of IVs generated.
13946 2015-02-09  Martin Liska  <mliska@suse.cz>
13948         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
13949         just if not yet registered.
13950         (ipa_icf_generate_summary): Register callgraph hooks.
13952 2015-02-08  Andrew Pinski  <apinski@cavium.com>
13954         * config/aarch64/aarch64.c (gty_dummy): Delete.
13956 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
13958         PR ipa/63566
13959         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
13960         (cgraph_node::local_p): Remove thunk related FIXME.
13962 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
13964         PR ipa/63566
13965         * i386.c (ix86_function_regparm): Look through aliases to see if callee
13966         is local and optimized.
13967         (ix86_function_sseregparm): Likewise; also use target's SSE math
13968         settings; error out instead of silently generating wrong code
13969         on mismatches.
13970         (init_cumulative_args): Look through aliases.
13972 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
13974         PR ipa/63566
13975         * ipa-split.c (execute_split_functions): Split if function has aliases.
13977 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
13979         PR ipa/63566
13980         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
13981         aliases before trying to expand it.
13982         (cgraph_node::expand_thunk): Fix formating.
13984 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
13986         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
13987         (Using Assembly Language with C): Expand introduction.
13988         (Basic Asm): Copy-edit.  Add more information about uses of
13989         basic asm.
13990         (Extended Asm): Copy-edit.  Document new escape syntax and
13991         %l[label] syntax.
13992         (Global Reg Vars): Copy-edit.
13993         (Local Reg Vars): Likewise.
13995 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
13997         PR debug/2714
13998         PR bootstrap/64256
13999         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
14000         (DBX_CONTIN_CHAR): Define.
14002 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
14003             Brian Rzycki  <b.rzycki@samsung.com>
14005         PR tree-optimization/64878
14006         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
14007         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
14008         Stop recursion at loop phi nodes after having visited a loop phi node.
14010 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
14012         * toplev.c (process_options): Change flag_ipa_ra before creating
14013         optimization_{default,current}_node.
14015         PR ipa/64896
14016         * cgraphunit.c (cgraph_node::expand_thunk): If
14017         restype is not is_gimple_reg_type nor the thunk_fndecl
14018         returns aggregate_value_p, set restmp to a temporary variable
14019         instead of resdecl.
14021 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
14023         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
14025 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
14027         PR target/64205
14028         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
14029         add a general secondary reload handler for SDmode, unless we have
14030         both read/write support for SDmode.
14032 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
14034         PR middle-end/64937
14035         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
14036         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
14037         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
14038         1 before, push it to abstract_vec.
14039         (dwarf2out_abstract_function): Adjust caller.  Don't call
14040         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
14041         DECL_ABSTRACT_P flags for all abstract_vec elts.
14043 2015-02-06  Renlin Li  <renlin.li@arm.com>
14045         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
14046         complex gimple.
14047         * tree-ssa.c (execute_update_addresses_taken): Likewise.
14049 2015-02-06  Jeff Law  <law@redhat.com>
14051         PR target/64889
14052         * config/h8300/h8300.c (push): New argument "in_prologue".
14053         Pass "in_prologue" along to "F".
14054         (h8300_push_pop): Corresponding changes.
14055         (h8300_expand_prologue): Likewise.
14056         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
14058 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
14060         PR rtl-optimization/64957
14061         PR debug/64817
14062         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
14063         IOR rather than for AND.
14065 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
14067         PR target/62631
14068         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
14069         of shift-add and (add + shift) operations.  Rename local variable.
14071 2015-02-05  Jeff Law  <law@redhat.com>
14073         PR target/17306
14074         * config/h8300/constraints.md (U): Correctly dectect
14075         "eightbit_data" memory addresses.
14076         * config/h8300/h8300.c (eightbit_constant_address_p): Also
14077         handle (const (plus (symbol_ref (x)))) where x is declared
14078         as an 8-bit data memory address.
14079         * config/h8300/h8300.md (call, call_value): Correctly detect
14080         "funcvec" functions.
14082         PR target/43264
14083         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
14084         24 to 28 bits for the H8/300.
14086 2015-02-06  Alan Modra  <amodra@gmail.com>
14088         PR target/64876
14089         * config/rs6000/rs6000.c (chain_already_loaded): New function.
14090         (rs6000_call_aix): Use it.
14092 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
14094         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
14095         check.
14097 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
14099         * config/h8300/constraints.md ("U" constraint): Use strict
14100         variant of REG_OK_FOR_BASE_P after reload has started.
14102 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
14104         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
14105         define to zero if !TARGET_NEON.
14106         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
14108 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
14109             Trevor Saunders  <tsaunders@mozilla.com>
14111         PR ipa/61548
14112         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
14114 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
14116         PR ipa/61548
14117         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
14118         when removing varpool nodes.
14120 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
14122         PR ipa/61548
14123         * varpool.c (varpool_node::remove): Fix order of variables.
14125 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
14127         PR ipa/64686
14128         * ipa-inline.c (inline_small_functions): Fix ordering issue between
14129         speculation resolution and key updates.
14131 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
14133         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
14134         about not letting any speculative edges unupdated.
14136 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
14138         PR gcov/64123
14139         * gcov-io.c (gcov_var): Export.
14141 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
14143         PR middle-end/64922
14144         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
14145         edges that become speculative.
14147 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
14149         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
14150         or DW_LANG_Fortran08.
14151         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
14152         DW_LANG_Fortran08.
14153         (gen_compile_unit_die): Handle "GNU Fortran2003" and
14154         "GNU Fortran2008" language strings.
14155         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
14156         * langhooks.h (lang_GNU_Fortran): New prototype.
14157         * langhooks.c (lang_GNU_Fortran): New function.
14158         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
14159         lang_GNU_Fortran.
14161 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
14163         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
14164         (RTX_OK_FOR_OLO10_P): Likewise.
14166 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
14168         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
14170 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
14172         PR middle-end/64922
14173         * gimple.c: Include gimple-ssa.h.
14174         (maybe_remove_unused_call_args): New function.
14175         * gimple.h (maybe_remove_unused_call_args): Declare.
14176         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
14177         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
14178         * gimple-fold.c (gimple_fold_call): Likewise.
14180 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
14182         PR rtl-optimization/64905
14183         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
14184         pointer alignment if it isn't needed.
14186 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
14188         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
14189         cortex-a72.cortex-a53.
14190         * config/aarch64/aarch64-tune.md: Regenerate.
14191         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
14193 2015-02-04  Nick Clifton  <nickc@redhat.com>
14195         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
14196         inside a MEM.
14198 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
14200         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
14201         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
14202         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
14203         of DEF_BUILTIN.
14204         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
14205         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
14206         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
14207         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
14208         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
14209         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
14210         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
14211         * tree-core.h (enum built_in_function): In between
14212         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
14213         for builtins that use DEF_BUILTIN_CHKP macro.
14215 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
14217         PR debug/64817
14218         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
14219         operands for tcc_comparison exprs.  Fix typos.
14221         PR debug/64817
14222         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
14223         of two XORs that have an intervening AND or IOR.
14225         PR debug/64817
14226         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
14227         simplification of XOR of AND to not allocate new rtx before
14228         committing to a simplification.
14230 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14232         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
14233         manual swaps in all peepholes.
14235 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14237         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
14238         of manual swapping implementation.
14239         (aarch64_expand_vec_perm_const_1): Likewise.
14241 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
14243         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
14244         (generic_addrcost_table): Remove NAMED_PARAM.
14245         (cortexa57_addrcost_table): Likewise.
14246         (xgene1_addrcost_table): Likewise.
14247         (generic_regmove_table): Likewise.
14248         (cortexa53_regmove_table): Likewise.
14249         (xgene1_regmove_table): Likewise.
14250         (generic_vector_table): Likewise.
14251         (cortexa57_vector_table): Likewise.
14252         (xgene1_vector_table): Likewise.
14253         (generic_tunings): Likewise.
14254         (cortexa53_tunings): Likewise.
14255         (cortexa57_tunings): Likewise.
14256         (xgene1_tunings): Likewise.
14258 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
14260         * config/arm/arm-cores.def: Add cortex-a72 and
14261         cortex-a72.cortex-a53.
14262         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
14263         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
14264         * config/arm/arm-tune.md: Regenerate.
14265         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
14266         "cortex-a72.cortex-a53".
14267         * doc/invoke.texi (ARM Options/-mtune): Likewise.
14269 2015-02-04  Nick Clifton  <nickc@redhat.com>
14271         PR target/64408
14272         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
14273         of accepted codes.
14274         (nonimmediate_di_operand): Likewise.
14276         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
14277         prefixes of known F5 using MSP430 MCUs.
14279 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14281         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
14282         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
14283         instead of __builtin_sqrt.
14285 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
14287         * varasm.c (do_assemble_alias): Follow transparent alias
14288         chain for target.
14289         (default_assemble_visibility): Follow transparent alias
14290         chain for decl name.
14292 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14294         PR middle-end/62103
14295         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
14296         to compute size of referenced value in the constant case.
14298 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
14300         PR rtl-optimization/64756
14301         * cse.c (invalidate_dest): New function.
14302         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
14303         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
14304         invalidate and do not record it.
14306 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
14308         PR target/64660
14309         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
14310         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
14311         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
14312         atomic_nand<mode>_soft_tcb): New insns.
14313         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
14314         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
14315         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
14316         Split into atomic_not_fetchsi_hard if operands[0] is unused.
14317         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
14318         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
14319         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
14320         atomic_not<mode>_hard if operands[0] is unused.
14321         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
14322         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
14323         if operands[0] is unused.
14324         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
14325         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
14326         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
14327         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
14328         unused.
14329         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
14330         into atomic_not<mode>_soft_tcb if operands[0] is unused.
14331         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
14332         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
14333         if operands[0] is unused.
14334         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
14335         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
14336         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
14337         atomic_nand_fetchsi_hard if operands[0] is unused.
14338         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
14339         atomic_nand<mode>_hard if operands[0] is unused.
14340         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
14341         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
14342         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
14343         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
14344         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
14345         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
14346         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
14347         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
14348         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
14349         atomic_not<mode>_hard if operands[0] is unused.
14350         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
14351         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
14352         unused.
14353         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
14354         into atomic_not<mode>_soft_tcb if operands[0] is unused.
14355         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
14356         atomic_nand<mode>_hard if operands[0] is unused.
14357         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
14358         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
14360 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
14362         PR jit/64810
14363         * Makefile.in (GCC_OBJS): Add gcc-main.o.
14364         * gcc-main.c: New file, containing "main" taken from gcc.c.
14365         * gcc.c (do_self_spec): Free decoded_options.
14366         (class driver): Move declaration to gcc.h.
14367         (main): Move declaration and implementation to new file
14368         gcc-main.c.
14369         (driver_get_configure_time_options): New function.
14370         * gcc.h (class driver): Move this declaration here, from
14371         gcc.c.
14372         (driver_get_configure_time_options): New declaration.
14374 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
14376         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
14377         cross-module inlining.
14378         * cgraph.h (cgraph_node): Add flag merged.
14379         * ipa-icf.c (sem_function::merge): Maintain it.
14381 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
14383         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
14384         instead of OBJECT_P.
14386 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
14388         PR target/62631
14389         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
14390         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
14391         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
14392         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
14394 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
14396         PR other/63504
14397         * combine.c (reg_n_sets_max): New variable.
14398         (can_change_dest_mode, reg_nonzero_bits_for_combine,
14399         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
14400         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
14401         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
14402         (rest_of_handle_combine): Initialize reg_n_sets_max.
14404 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
14406         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
14407         if some always_inline was inlined, apply changes before inlining
14408         heuristically.
14410 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
14412         PR jit/64810
14413         * config/arm/arm.c (arm_option_override): Set
14414         arm_selected_arch/cpu/tune to NULL on entry.
14416 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
14417             Andrew Pinski  <pinskia@gcc.gnu.org>
14418             Jakub Jelinek  <jakub@gcc.gnu.org>
14420         PR target/64231
14421         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
14422         integer typing for small model. Use IN_RANGE.
14424 2015-02-02  Richard Biener  <rguenther@suse.de>
14426         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
14427         * tree-vrp.c (vrp_valueize_1): Likewise.
14429 2015-02-02  Alan Modra  <amodra@gmail.com>
14431         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
14432         than mem for toc_restore.
14433         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
14434         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
14435         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
14437 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
14439         PR target/64047
14440         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
14441         explicit default options.
14443 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
14445         PR ipa/64872
14446         * ipa-utils.c (ipa_merge_profiles): Add release argument.
14447         * ipa-icf.c (sem_function::merge): Do not release body when merging.
14448         * ipa-utils.h (ipa_merge_profiles): Update prototype.
14450 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
14452         PR debug/64817
14453         * cfgexpand.c (deep_ter_debug_map): New variable.
14454         (avoid_deep_ter_for_debug): New function.
14455         (expand_debug_expr): If TERed SSA_NAME is in
14456         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
14457         instead of trying to expand SSA_NAME's def stmt.
14458         (expand_debug_locations): When expanding debug bind
14459         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
14460         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
14461         value.
14462         (pass_expand::execute): Call avoid_deep_ter_for_debug on
14463         all debug bind stmts.  Delete deep_ter_debug_map after
14464         expand_debug_location if non-NULL and clear it.
14466 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
14468         PR target/64851
14469         * config/sh/sync.md (atomic_fetch_notsi_hard,
14470         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
14471         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
14472         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
14473         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
14474         atomic_not_fetch<mode>_soft_imask): New insns.
14476 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
14478         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
14479         (rank_for_schedule_debug): Split from ...
14480         (rank_for_schedule): ... this.
14481         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
14482         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
14484 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
14486         * doc/md.texi (Machine Constraints): Alphabetize table by target.
14487         * doc/extend.texi (x86 Variable Attributes): Move section to
14488         correct alphabetization after renaming.
14489         (x86 Type Attributes): Likewise.
14490         (Target Builtins): Re-alphabetize menu.
14491         (x86 Built-in Functions): Move section to correct alphabetization
14492         after renaming.
14493         (x86 transactional memory intrinsics): Likewise.
14494         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
14495         and x86 Windows Options in table and menu.
14496         (x86 Options): Move section to correct alphabetization after
14497         renaming.
14498         (x86 Windows Options): Likewise.
14500 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
14502         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
14503         preferred names of the architecture and its 32- and 64-bit
14504         variants.
14505         * doc/invoke.texi: Likewise.
14506         * doc/md.texi: Likewise.
14508 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
14510         PR target/64882
14511         * config/i386/predicates.md (address_no_seg_operand): Reject
14512         non-CONST_INT_P operands in invalid mode.
14514 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
14516         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
14517         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
14518         * config/i386/predicates.md (address_no_seg_operand): Call
14519         address_operand with VOIDmode.
14520         (vsib_address_operand): Ditto.
14521         (address_mpx_no_base_operand): Ditto.
14522         (address_mpx_no_index_operand): Ditto.
14524 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
14526         PR target/64688
14527         * lra-constraints.c (original_subreg_reg_mode): New.
14528         (simplify_operand_subreg): Try to simplify subreg of const.  Use
14529         original_subreg_reg_mode for it.
14530         (swap_operands): Update original_subreg_reg_mode.
14531         (curr_insn_transform): Set up original_subreg_reg_mode.
14533 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
14535         PR target/64617
14536         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
14537         function.
14538         (process_alt_operands): Use it.
14539         (curr_insn_transform): Check the optional reload pseudo class is
14540         ok for the mode.
14542 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
14544         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
14545         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
14546         prototype.
14547         * toplev.h (init_asm_output): Update comment on use of
14548         UNKNOWN_LOCATION with fatal_error.
14549         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
14550         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
14551         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
14552         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
14553         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
14554         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
14555         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
14556         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
14557         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
14558         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
14559         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
14560         fatal_error changed to pass input_location as first argument.
14562 2015-01-30  Martin Liska  <mliska@suse.cz>
14564         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
14565         in #pragma GCC diagnostic guards.
14567 2015-01-30  Richard Biener  <rguenther@suse.de>
14569         PR tree-optimization/64829
14570         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
14571         not add a widening conversion pattern but hand off extra
14572         widenings to callers.
14573         (vect_recog_widen_mult_pattern): Handle extra widening produced
14574         by vect_handle_widen_op_by_const.
14575         (vect_recog_widen_shift_pattern): Likewise.
14576         (vect_pattern_recog_1): Remove excess vertical space in dumping.
14577         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
14578         (vect_init_vector_1): Likewise.
14579         (vect_get_vec_def_for_operand): Likewise.
14580         (vect_finish_stmt_generation): Likewise.
14581         (vectorizable_load): Likewise.
14582         (vect_analyze_stmt): Likewise.
14583         (vect_is_simple_use): Likewise.
14585 2015-01-29  Jeff Law  <law@redhat.com>
14587         * combine.c (try_combine): Fix typo in comment.
14589 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
14591         PR target/64580
14592         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
14593         (rs6000_stack_info): Add assert.
14594         (rs6000_output_savres_externs): New function, split off from...
14595         (rs6000_output_function_prologue): ... here.  Do not call it for
14596         thunks.
14598 2015-01-29  Jeff Law  <law@redhat.com>
14600         PR target/15184
14601         * combine.c (try_combine): If I0 is a memory load and I3 a store
14602         to a related address, increase the "goodness" of doing a 4-insn
14603         combination with I0-I3.
14604         (make_field_assignment): Handle SUBREGs in the ior+and case.
14606 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
14608         PR tree-optimization/64746
14609         * tree-if-conv.c (mask_exists): New function.
14610         (predicate_mem_writes): Save created mask with given size for further
14611         use.
14612         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
14613         (ifcvt_repair_bool_pattern): Collect all statements that are root
14614         of bool pattern and use iterative algorithm to remove multiple uses
14615         of predicates, display number of required iterations.
14617 2015-01-29  Richard Biener  <rguenther@suse.de>
14619         PR tree-optimization/64853
14620         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
14621         stmt will get simulated again.
14622         * tree-ssa-ccp.c (valueize_op_1): Likewise.
14624 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14626         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
14627         return_in_pc.  Remove redundant assignments.
14628         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
14629         (arm_expand_epilogue): Don't compare boolean with true in if condition.
14631 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
14633         * config/i386/i386.c (ix86_mode_after): Make static.
14635 2015-01-29  Richard Biener  <rguenther@suse.de>
14637         PR tree-optimization/64844
14638         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
14639         dump cost model analysis.
14640         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
14641         Do not register adjusted load/store costs here.
14643 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
14644             Uros Bizjak  <ubizjak@gmail.com>
14646         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
14647         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
14648         using x86_use_pseudo_pic_reg.
14649         * config/i386/i386.c (ix86_conditional_register_usage): Remove
14650         support for fixed PIC register.
14651         (ix86_use_pseudo_pic_reg): Not static any more.
14653 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
14655         PR middle-end/64805
14656         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
14657         to avoid error in cgraph node verification.
14659 2015-01-29  Marek Polacek  <polacek@redhat.com>
14661         * doc/standards.texi: Reflect that the default for C is gnu11.
14663 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
14665         PR target/64761
14666         * reorg.c (switch_text_sections_between_p): New function.
14667         (relax_delay_slots): Call it when testing if the jump insn
14668         is removable.  Use targetm.can_follow_jump when testing if
14669         the conditional branch can follow an unconditional jump.
14671 2015-01-27  Caroline Tice  <cmtice@google.com>
14673         Committing VTV Cywin/Ming patch for Patrick Wollgast
14674         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
14675         if -fvtable-verify=preinit/std is used.
14676         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
14677         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
14678         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
14679         if -fvtable-verify=preinit/std is used.
14680         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
14681         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
14682         if -fvtable-verify=preinit/std is used.
14683         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
14684         * config/i386/mingw32.h (LIB_SPEC): Likewise.
14685         * varasm.c (assemble_variable): Add code to properly set the comdat
14686         section and name for the .vtable_map_vars section in case the
14687         target is PE or COFF.
14689 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
14691         PR ipa/64801
14692         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
14693         make sane BB profile.
14694         (cgraph_node::expand_thunk): Make sane BB profile.
14695         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
14696         * cgraph.h (init_lowered_empty_function): Update prototype.
14697         * config/i386/i386.c (make_resolver_func): Update call.
14698         * predict.c (gate): Disable branch prediction pass if
14699         profile is already there.
14701 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
14703         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
14704         * opth-gen.awk: Likewise.
14705         * common.opt: Mark flag_fp_contract_mode as Optimization.
14707 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14709         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
14710         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
14712 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
14714         PR target/64659
14715         * config/sh/predicates.md (atomic_arith_operand,
14716         atomic_logical_operand): Remove.
14717         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
14718         (atomic_arith_operand_0): New predicate.
14719         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
14720         Use atomic_arith_operand_0 for input values.
14721         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
14722         atomic_compare_and_swap<mode>_soft_gusa,
14723         atomic_compare_and_swap<mode>_soft_tcb,
14724         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
14725         arith_reg_operand instead of register_operand.
14726         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
14727         atomic_arith_operand_0 for newval input.
14728         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
14729         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
14730         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
14731         arith_reg_operand instead of register_operand.
14732         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
14733         fetchop_predicate_1, fetchop_constraint_1_llcs,
14734         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
14735         fetchop_constraint_1_imask): New code iterator attributes.
14736         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
14737         register_operand.  Use fetchop_predicate_1.
14738         (atomic_fetch_<fetchop_name>si_hard,
14739         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
14740         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
14741         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
14742         and arith_reg_operand instead of register_operand.  Use
14743         fetchop_predicate_1, fetchop_constraint_1_gusa.
14744         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
14745         and arith_reg_operand instead of register_operand.  Use
14746         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
14747         to allow R0 usage.
14748         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
14749         and arith_reg_operand instead of register_operand.  Use
14750         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
14751         to allow R0 usage.
14752         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
14753         register_operand.  Use atomic_logical_operand_1.
14754         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
14755         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
14756         arith_reg_operand instead of register_operand.
14757         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
14758         Use arith_reg_dest and arith_reg_operand instead of register_operand.
14759         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
14760         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
14761         register_operand.  Use fetchop_predicate_1.
14762         (atomic_<fetchop_name>_fetchsi_hard,
14763         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
14764         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
14765         fetchop_constraint_1_llcs.
14766         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
14767         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
14768         fetchop_constraint_1_gusa.
14769         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
14770         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
14771         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
14772         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
14773         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
14774         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
14775         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
14776         register_operand.  Use atomic_logical_operand_1.
14777         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
14778         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
14779         arith_reg_operand instead of register_operand.
14780         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
14781         arith_reg_operand instead of register_operand.  Use logical_operand
14782         and K08.  Adjust asm sequence to allow R0 usage.
14783         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
14784         arith_reg_operand instead of register_operand.  Use logical_operand
14785         and K08.
14787 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
14789         PR other/63504
14790         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
14791         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
14792         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
14793         only get_full_len HOST_WIDE_INTs from get_val () array rather than
14794         all bits in *val_wide.
14796 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
14798         * varpool.c (tls_model_names): Fix names.
14799         (varpool_node::dump): Dump tls- prefix for tls models.
14801 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
14802             Bernd Schmidt  <bernds@codesourcery.com>
14803             Nathan Sidwell  <nathan@codesourcery.com>
14805         * config/nvptx/mkoffload.c: New file.
14806         * config/nvptx/t-nvptx: Add build rules for it.
14807         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
14808         (extra_programs): Add mkoffload.
14809         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
14810         function.
14811         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
14813 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
14815         PR middle-end/64809
14816         * cfgexpand.c (reorder_operands): Skip debug gimples.
14818 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
14820         PR tree-optimization/64277
14821         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
14822         range info when possible to refine estimation.
14824 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14826         PR tree-optimization/64718
14827         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
14828         be a 16bit unsigned integer when n->range is 16.
14829         (bswap_replace): Convert src to that type if necessary for all bswap
14830         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
14831         set in pass_optimize_bswap::execute ().
14833 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
14835         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
14836         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
14837         integer and floating point variants.
14838         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
14840 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
14842         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
14843         for all vector modes.
14845 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
14847         PR bootstrap/64612
14848         * doc/sourcebuild.texi (comdat_group): Document.
14850 2015-01-28  Terry Guo  <terry.guo@arm.com>
14852         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
14854 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
14856         * toplev.c (print_version): Add param "show_global_state", and
14857         only print GGC and plugin information if it is true.
14858         (init_asm_output): Pass in "true" for the new param when calling
14859         print_version.
14860         (process_options): Likewise.
14861         (toplev::main): Likewise.
14862         * toplev.h (print_version): Add new param to decl.
14864 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
14866         PR ipa/60871
14867         PR ipa/64139
14868         * tree.c (lookup_binfo_at_offset): New function.
14869         (get_binfo_at_offset): Use it.
14871 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
14873         PR ipa/64282
14874         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
14875         on vtable being vtable.
14877 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14879         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
14880         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
14881         -mhotpatch= option.
14882         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
14883         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
14884         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
14885         Renamed.
14886         (s390_hotpatch_trampoline_halfwords_max): Renamed.
14887         (s390_hotpatch_hw_max): New name.
14888         (s390_hotpatch_trampoline_halfwords): Renamed.
14889         (s390_hotpatch_hw_before_label): New name.
14890         (get_hotpatch_attribute): Removed.
14891         (s390_hotpatch_hw_after_label): New name.
14892         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
14893         attribute.
14894         (s390_attribute_table): Ditto.
14895         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
14896         (s390_function_num_hotpatch_hw): New name.
14897         Remove special handling of inline functions and hotpatching.
14898         Return number of nops before and after the function label.
14899         (s390_can_inline_p): Removed.
14900         (s390_asm_output_function_label): Emit a configurable number of nops
14901         after the function label.
14902         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
14903         (TARGET_CAN_INLINE_P) Removed.
14904         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
14906 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14907             Jiong Wang  <jiong.wang@arm.com>
14909         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
14910         of scratch reg.
14911         (cb<optab><mode>1): Likewise.
14912         * config/aarch64/iterators.md (bcond): New define_code_attr.
14914 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14916         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
14917         memory accesses.
14919 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14921         * config/s390/s390.c (s390_register_move_cost): Increase costs for
14922         FPR->GPR moves.
14924 2015-01-27  Richard Biener  <rguenther@suse.de>
14926         * tree-vrp.c (update_value_range): Intersect the range with
14927         old recorded SSA name range information.
14929 2015-01-27  Nick Clifton  <nickc@redhat.com>
14931         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
14932         BC, DE and HL registers directly, not via AX.
14933         When decrementing the stack pointer by a large amount, transfer SP
14934         into AX and perform the subtraction there.
14935         (rl78_expand_epilogue): Perform the inverse of the above
14936         enhancements.
14938 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14940         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
14942 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
14943             Yury Gribov  <y.gribov@samsung.com>
14945         PR ubsan/64741
14946         * ubsan.c (ubsan_source_location): Refactor code.
14947         (ubsan_type_descriptor): Update type size. Refactor code.
14949 2015-01-27  Richard Biener  <rguenther@suse.de>
14951         PR tree-optimization/56273
14952         PR tree-optimization/59124
14953         PR tree-optimization/64277
14954         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
14955         from the first VRP pass.
14957 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
14959         PR ipa/64776
14960         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
14961         handle the first argument in the same loop as all the other arguments.
14963         PR rtl-optimization/61058
14964         * jump.c (cleanup_barriers): Update basic block boundaries
14965         if BLOCK_FOR_INSN is non-NULL on PREV.
14967 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
14969         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
14970         bounds narrowing, already instrumented calls and calls to
14971         not instrumentable functions.
14973 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
14975         PR tree-optimization/64807
14976         * wide-int.cc (wi::divmod_internal): Clear
14977         b_dividend[dividend_blocks_needed].
14979 2015-01-26  DJ Delorie  <dj@redhat.com>
14981         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
14982         volatile memory references.
14984 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
14986         PR target/49263
14987         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
14988         remove_insn.
14989         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
14990         shifts if it already fits into K08.
14992 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
14994         PR ipa/64730
14995         * ipa-inline.c (inline_small_functions): Print "unknown" even
14996         if edge->call_stmt is non-NULL, but has builtins or unknown
14997         location.
14999         PR middle-end/64421
15000         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
15001         with asterisk, skip the first character.
15003 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
15005         PR target/64806
15006         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
15007         order change.
15009 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
15011         PR target/64795
15012         * config/i386/i386.md (*movdi_internal): Also check operand 0
15013         to determine TYPE_LEA operand.
15014         (*movsi_internal): Ditto.
15016 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
15018         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
15019         OPTION_MASK_QUAD_MEMORY_ATOMIC.
15021 2015-01-26  Renlin Li  <renlin.li@arm.com>
15023         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
15024         the comment.
15025         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
15026         for higher part.
15028 2015-01-26  Richard Biener  <rguenther@suse.de>
15030         PR middle-end/64764
15031         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
15032         combining two BIT_AND_EXPR predicates.
15034 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
15036         PR bootstrap/64754
15037         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
15039 2015-01-26  Terry Guo  <terry.guo@arm.com>
15041         * config/arm/arm.c (arm_file_start): Update the assignment of
15042         Tag_ABI_HardFP_use.
15044 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
15046         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
15047         pipeline model.
15048         config/arm/arm.md: Include the new Cortex-A57 model.
15049         (generic_sched): Don't use generic_sched when tuning for
15050         Cortex-A57.
15052 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
15053             Uros Bizjak  <ubizjak@gmail.com>
15055         * config/i386/i386.c (get_builtin_code_for_version): Add
15056         support for BMI and BMI2 multiversion functions.
15058 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15060         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
15061         (extract_bit_field): Likewise.
15062         (extract_low_bits): Likewise.
15063         (expand_mult): Likewise.
15064         (expand_mult_highpart_adjust): Likewise.
15066 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
15068         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
15069         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
15070         * config/i386/i386.c (processor_model): Add
15071         M_INTEL_COREI7_BROADWELL.
15072         (arch_names_table): Add "broadwell".
15074 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
15076         PR target/49263
15077         PR target/53987
15078         PR target/64345
15079         PR target/59533
15080         PR target/52933
15081         PR target/54236
15082         PR target/51244
15083         * config/sh/sh-protos.h
15084         (sh_extending_set_of_reg::can_use_as_unextended_reg,
15085         sh_extending_set_of_reg::use_as_unextended_reg,
15086         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
15087         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
15088         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
15089         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
15090         (sh_treg_insns): New class.
15091         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
15092         (scope_counter): New class.
15093         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
15094         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
15095         sh_extending_set_of_reg::can_use_as_unextended_reg,
15096         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
15097         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
15098         sh_split_treg_set_expr): New functions.
15099         (addsubcosts): Handle treg_set_expr.
15100         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
15101         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
15102         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
15103         (sh_insn_operands_modified_between_p): Make non-static.
15104         * config/sh/predicates.md (zero_extend_movu_operand): Allow
15105         simple_mem_operand in addition to displacement_mem_operand.
15106         (zero_extend_operand): Don't allow zero_extend_movu_operand.
15107         (treg_set_expr, treg_set_expr_not_const01,
15108         arith_reg_or_treg_set_expr): New predicates.
15109         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
15110         arith_or_int_operand instead of logical_operand.  Convert to
15111         insn_and_split.  Try to optimize constant operand in splitter.
15112         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
15113         (*tstqi_t_zero): Delete.
15114         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
15115         (tstsi_t_and_not): Delete.
15116         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
15117         Convert to insn_and_split.
15118         (unnamed split, tstsi_t_zero_extract_xor,
15119         tstsi_t_zero_extract_subreg_xor_little,
15120         tstsi_t_zero_extract_subreg_xor_big): Delete.
15121         (*tstsi_t_shift_mask): New insn_and_split.
15122         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
15123         to recombine with surrounding insns when splitting.
15124         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
15125         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
15126         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
15127         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
15128         (*cbranch_div0s: Delete.
15129         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
15130         Try to recombine with surrounding insns when splitting.  Add operand
15131         order variants.
15132         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
15133         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
15134         *addc_r_r_msb, *addc_2r_msb): Delete.
15135         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
15136         order variant.
15137         (*addc_negreg_t): New insn_and_split.
15138         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
15139         Try to recombine with surrounding insns when splitting.
15140         Add operand order variants.
15141         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
15142         insn_and_split patterns.
15143         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
15144         surrounding insns when splitting.
15145         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
15146         (*rotcl): Likewise.  Add zero_extract variant.
15147         (*ashrsi2_31): New insn_and_split.
15148         (*negc): Convert to insn_and_split.  Use treg_set_expr.
15149         (*zero_extend<mode>si2_disp_mem): Update comment.
15150         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
15151         condition.
15152         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
15153         with surrounding insns when splitting.
15154         (any_treg_expr_to_reg): New insn_and_split.
15155         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
15156         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
15157         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
15158         *zero_extract_2): New single bit zero extract patterns.
15159         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
15160         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
15161         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
15162         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
15163         set destination.
15164         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
15165         register_operand for set source.
15167 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
15169         * i386.opt (prefetch_sse): New targetsave.
15170         * i386.c (ix86_function_specific_save): Save prefetch_sse.
15171         (ix86_function_specific_restore): Restore prefetch_sse and initialize
15172         ix86_cost/ix86_tune_cost.
15174 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
15176         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
15177         Support the JIT by using 0 as the language type.
15179 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
15181         PR target/64317
15182         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
15183         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
15184         (mark_regno_live, process_bb_lives): Pass new parameter value to
15185         make_hard_regno_born.
15187 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
15189         PR rtl-optimization/63637
15190         PR rtl-optimization/60663
15191         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
15192         if elt->cost is MAX_COST for ASM_OPERANDS.
15193         (find_sets_in_insn): Fix up comment typo.
15194         (cse_insn): Don't set src_volatile for all non-volatile
15195         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
15196         or with "memory" clobber.  Set elt->cost to MAX_COST
15197         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
15198         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
15200 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
15202         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
15203         alternative 1.
15205 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
15207         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
15208         libgcc/config/i386/elf-lib.h.
15210 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
15212         PR driver/64737
15213         * gcc.c (print_configuration): Don't print a blank line at the end
15214         here...
15215         (run_attempt): ... but here unstead.
15217         PR middle-end/64734
15218         * omp-low.c (scan_sharing_clauses): Don't ignore
15219         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
15220         on target data/update constructs.
15222 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15224         PR target/50928
15225         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
15226         (DEBUG_RELOAD): Removed define.
15227         (m32c_limit_reload_class): Enable traces with if DEBUG0.
15228         (m32c_function_arg): Added a type cast.
15229         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
15230         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
15231         * config/m32c/bitops.md (andqi3_16): Likewise.
15232         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
15233         (push_a01_l): Likewise.
15235 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
15237         PR jit/64721
15238         * main.c (main): Construct toplev instances with init_signals=true.
15239         * toplev.c (general_init): Add param "init_signals", and use it to
15240         conditionalize the calls to signal and host_hooks.extra_signals.
15241         (toplev::toplev): Add param "init_signals".
15242         (toplev::main): When invoking general_init, pass m_init_signals
15243         to control whether signal-handlers are installed.
15244         * toplev.h (toplev::toplev): Add param "init_signals".
15245         (toplev::m_init_signals): New field.
15247 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
15249         PR jit/64722
15250         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
15251         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
15252         latter may be affected by the former (e.g. on i686).
15254 2015-01-23  Martin Liska  <mliska@suse.cz>
15256         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
15257         false positive during profiledbootstrap.
15259 2015-01-23  Tom de Vries  <tom@codesourcery.com>
15261         PR libgomp/64672
15262         * lto-opts.c (lto_write_options): Output non-explicit conservative
15263         -fno-openacc.
15264         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
15265         (append_compiler_options): Pass -fopenacc through.
15267 2015-01-23  Tom de Vries  <tom@codesourcery.com>
15269         PR libgomp/64707
15270         * lto-opts.c (lto_write_options): Output non-explicit conservative
15271         -fno-openmp.
15272         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
15273         (append_compiler_options): Pass -fopenmp through.
15275 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
15277         PR debug/64511
15278         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
15279         GTY markup.
15281         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
15282         * diagnostic.def (DK_ICE_NOBT): New kind.
15283         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
15284         like DK_ICE, but never print backtrace.
15285         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
15286         (internal_error_no_backtrace): New function.
15287         * gcc.c (execute): Use internal_error_no_backtrace instead of
15288         internal_error.
15290 2015-01-22  Jeff Law  <law@redhat.com>
15292         PR target/52076
15293         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
15294         improve code density for small immediate to memory case.
15295         (insv): Better handle bitfield assignments when the field is
15296         being set to all ones.
15297         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
15298         operand predicate.
15300 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15301             Jakub Jelinek  <jakub@redhat.com>
15303         PR middle-end/64729
15304         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
15305         for !TARGET_LIBC_PROVIDES_SSP version and
15306         -fstack-protector-{all,strong,explicit} otherwise.
15307         * config/freebsd.h (LINK_SSP_SPEC): Handle
15308         -fstack-protector-{strong,explicit}.
15310 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
15311             H.J. Lu  <hongjiu.lu@intel.com>
15313         PR ipa/64694
15314         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
15315         heap.
15317 2015-01-22  Wei Mi  <wmi@google.com>
15319         PR rtl-optimization/64557
15320         * dse.c (record_store): Call get_addr for mem_addr.
15321         (check_mem_read_rtx): Likewise.
15323 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
15325         * fold-const.c (const_binop): Add early return for non-tcc_binary.
15327 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
15329         * toplev.c (init_local_tick): Process the failure when read
15330         fails for random_seed.
15332         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
15333         'pretty_name' to avoid memory overflow.
15335 2015-01-22  Richard Biener  <rguenther@suse.de>
15337         PR middle-end/64728
15338         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
15339         abnormal coalescing on undefined SSA names.
15341 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
15343         PR target/64688
15344         PR target/64477
15345         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
15346         for alternative 3.
15347         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
15349 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
15351         PR middle-end/63325
15352         * fold-const.c (fold_checksum_tree): Don't include value of
15353         expr->decl_with_vis.symtab_node in the checksum.
15355 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15357         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
15359 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
15361         PR driver/64690
15362         * gcc.c (insert_comments): New function.
15363         (try_generate_repro): Call it.
15364         (append_text): Removed.
15366 2015-01-22  Richard Biener  <rguenther@suse.de>
15368         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
15369         with IL incompatible options.  Properly honor user optimize
15370         attributes.
15372 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
15374         PR rtl-optimization/64682
15375         * combine.c (distribute_notes): When moving a death note for
15376         a register that is set in the new I2, make sure to put it
15377         before that new I2.
15379 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
15381         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
15382         not TARGET_DEFAULT.
15384 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
15386         PR debug/64511
15387         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
15388         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
15389         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
15391         PR sanitizer/64706
15392         * doc/invoke.texi (-fsanitize=vptr): Document.
15394         PR rtl-optimization/62078
15395         * dse.c: Include cfgcleanup.h.
15396         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
15397         anything call purge_all_dead_edges and cleanup_cfg at the end
15398         of the pass.
15400 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
15402         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
15403         edges.
15405 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15407         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
15408         decl attribute.
15410 2015-01-21  David Sherwood  <david.sherwood@arm.com>
15411             Tejas Belagod <Tejas.Belagod@arm.com>
15413         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
15414         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
15415         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
15416         Removed.
15418 2015-01-21  David Sherwood  <david.sherwood@arm.com>
15419             Tejas Belagod <Tejas.Belagod@arm.com>
15421         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
15422         (aarch64_reverse_mask): New decls.
15423         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
15424         (insn_count): New mode_attr.
15425         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
15426         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
15427         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
15428         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
15429         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
15430         (aarch64_simd_st4): New patterns.
15431         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
15432         (aarch64_reverse_mask): New functions.
15434 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
15436         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
15437         Declare.
15438         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
15439         addressing modes for BE.
15440         (aarch64_print_operand): Add 'R' specifier.
15441         (aarch64_simd_disambiguate_copy): Delete.
15442         (aarch64_simd_emit_reg_reg_move): New function.
15443         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
15444         in define_splits for structural moves.
15445         (mov<mode>): Use less restrictive predicates.
15446         (*aarch64_mov<mode>): Simplify and only allow for LE.
15447         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
15449 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
15451         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
15453 2015-01-21  Richard Henderson  <rth@redhat.com>
15455         PR target/64669
15456         * ccmp.c (used_in_cond_stmt_p): Remove.
15457         (expand_ccmp_expr): Don't use it.
15459 2015-01-21  Nick Clifton  <nickc@redhat.com>
15461         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
15462         PARALLELs.
15464 2015-01-21  Richard Biener  <rguenther@suse.de>
15466         PR middle-end/64313
15467         * tree-core.h (builtin_info, builtin_info_type): Turn from
15468         an object with two arrays into an array of an object with
15469         decl and two flags, implicit_p and declared_p.
15470         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
15471         set_builtin_decl, set_builtin_decl_implicit_p,
15472         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
15473         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
15474         * builtins.c (builtin_info): Adjust.
15475         * gimplify.c (gimplify_addr_expr): References to builtins
15476         that have been declared by the user makes them eligible for
15477         use by the compiler.  Call set_builtin_decl_implicit_p on them.
15479 2015-01-20  Jeff Law  <law@redhat.com>
15481         PR target/59946
15482         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
15483         allow pc-relative addresses in operand predicates or constraints.
15485 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
15487         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
15488         neon on aarch32 processors for stringops.
15490 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
15492         PR ipa/63576
15493         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
15495 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
15497         PR lto/45375
15498         * ipa-inline.c: Include lto-streamer.h
15499         (report_inline_failed_reason): Output source file differences and
15500         flags on optimization/target node mismatch.
15501         (can_inline_edge_p): Consider caller to be the outer inline function;
15502         be less restrictive about matching opimize and optimize_size attributes.
15503         (inline_account_function_p): Break out from ...
15504         (inline_small_functions): ... here.
15505         * ipa-inline-transform.c (clone_inlined_nodes): Use
15506         inline_account_function_p.
15507         (inline_call): Use optimize attribution; use inline_account_function_p.
15508         (inline_transform): Use opt_for_fn.
15509         * ipa-inline.h (inline_account_function_p): Declare.
15511 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
15513         PR debug/64663
15514         * dwarf2out.c (decl_piece_node): Don't put bitsize into
15515         mode if bitsize <= 0.
15516         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
15517         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
15518         sizes and positions.
15520 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
15522         * config/nios2/nios2.c (nios2_asm_file_end): Implement
15523         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
15524         needed.
15525         (TARGET_ASM_FILE_END): Define.
15527 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
15529         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
15530         (struct tune_params): Use the enum.
15531         * arm.c (arm_*_tune): Update.
15532         (arm_option_override): Update.
15534 2015-01-20  Richard Biener  <rguenther@suse.de>
15536         PR ipa/64684
15537         * ipa-reference.c (add_static_var): Inline ...
15538         (analyze_function): ... here after splitting out from ...
15539         (is_proper_for_analysis): ... this.
15541 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
15543         PR target/64149
15544         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
15545         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
15546         replace the conditional with it's true branch.
15547         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
15548         (arm_lra_p): Remove.
15550 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
15552         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
15554 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15556         * config/tilegx/mul-tables.c: Move symtab.h include after
15557         coretypes.h include.
15558         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
15559         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
15560         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
15561         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
15562         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
15564 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
15566         PR bootstrap/64676
15567         Revert:
15568         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
15570         PR rtl-optimization/64081
15571         * loop-iv.c (def_pred_latch_p): New function.
15572         (latch_dominating_def): Allow specific cases with non-single
15573         definitions.
15574         (iv_get_reaching_def): Likewise.
15575         (check_complex_exit_p): New function.
15576         (check_simple_exit): Use check_complex_exit_p to allow certain cases
15577         with exits not executing on any iteration.
15579 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
15581         PR lto/45375
15582         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
15583         to set branch cost.
15585 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
15587         PR lto/45375
15588         * i386.c (gate): Check flag_expensive_optimizations and
15589         optimize_size.
15590         (ix86_option_override_internal): Drop optimize_size condition
15591         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
15592         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
15593         MASK_PREFER_AVX128.
15594         (ix86_avx256_split_vector_move_misalign,
15595         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
15596         * sse.md (all uses of TARGET_PREFER_AVX128): Add
15597         optimize_insn_for_speed_p check.
15599 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
15601         * config/mips/mips.h (FP_ASM_SPEC): New define.
15602         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
15603         instead.
15605 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
15607         PR target/53988
15608         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
15609         nullptr for insn when reaching the first insn.
15610         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
15611         (sh_insn_operands_modified_between_p): Add nullptr check.
15612         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
15613         sign extending mem load if the insn contains any UNSPEC or
15614         UNSPEC_VOLATILE.
15616 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
15618         * params.def (inline-unit-growth): Drop to 15%.
15619         * invoke.texi (inline-unit-growth): Document change.
15621 2015-01-19  Martin Liska  <mliska@suse.cz>
15623         PR ipa/64668
15624         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
15625         function for second argument of OBJ_TYPE_REF.
15627 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
15629         PR ipa/64218
15630         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
15631         whether function is an alias.
15633 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
15635         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
15636         cases.
15638 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
15640         PR rtl-optimization/64671
15641         * lra-remat.c (operand_to_remat): Don't consider jump and call
15642         insns.
15644 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
15646         PR target/59828
15647         * config/rs6000/default64.h: Include rs6000-cpus.def.
15648         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
15649         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
15650         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
15651         and POWER8.
15652         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
15653         POWER8.
15654         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
15655         pseudo-op to specify assembler dialect.
15657 2015-01-19  Martin Liska  <mliska@suse.cz>
15659         PR ipa/64664
15660         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
15661         Handle safe potentially removed nodes during filtering.
15663 2015-01-19  Martin Liska  <mliska@suse.cz>
15665         * doc/extend.texi (no_icf): Add new attribute description.
15666         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
15667         where the pass attempts to merge a function with no_icf attribute.
15669 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15671         PR target/64532
15672         * doc/md.texi (ARM Options): Document register constraints.
15674 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
15675             Andrew Pinski  <apinski@cavium.com>
15677         PR target/64304
15678         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
15679         (ashl<mode>3): Don't expand if operands[2] is not constant.
15681 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15683         PR target/64448
15684         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
15685         Match xor-and-xor RTL pattern.
15687 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
15689         PR rtl-optimization/64081
15690         * loop-iv.c (def_pred_latch_p): New function.
15691         (latch_dominating_def): Allow specific cases with non-single
15692         definitions.
15693         (iv_get_reaching_def): Likewise.
15694         (check_complex_exit_p): New function.
15695         (check_simple_exit): Use check_complex_exit_p to allow certain cases
15696         with exits not executing on any iteration.
15698 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
15700         * common.opt (fgraphite): Fix a typo.
15702 2015-01-19  Felix Yang  <felix.yang@huawei.com>
15704         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
15705         pattern.
15706         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
15707         uminp, smax_nanp, smin_nanp): New builtins.
15708         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
15709         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
15710         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
15711         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
15712         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
15713         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
15714         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
15715         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
15716         vpminnms_f32): Rewrite using builtin functions.
15718 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
15720         PR libgomp/64625
15721         * omp-low.c (offload_symbol_decl): Remove variable.
15722         (get_offload_symbol_decl): Remove function.
15723         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
15724         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
15725         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
15726         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
15727         BUILT_IN_GOACC_UPDATE don't pass it at all.
15729 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
15731         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
15732         callers.
15734 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
15736         * ipa-chkp.c (chkp_produce_thunks): Add early param
15737         to split thunks production into two passes.  Keep
15738         'always_inline' function bodies after the first pass.
15739         (pass_data_ipa_chkp_early_produce_thunks): New.
15740         (pass_ipa_chkp_early_produce_thunks): New.
15741         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
15742         chkp_produce_thunks signature.
15743         (make_pass_ipa_chkp_early_produce_thunks): New.
15744         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
15745         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
15746         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
15748 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
15750         * cgraph.c (cgraph_node::dump): Dump profile flags.
15752 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
15754         PR target/64652
15755         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
15756         reg appear first in the parallel.
15758 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
15760         * ipa-reference.c (set_reference_optimization_summary,
15761         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
15762         disabled.
15763         (ignore_module_statics): New static var.
15764         (propagate_bits): If ipa-reference is disabled, do not look into local
15765         properties.
15766         (analyze_function): Disable analysis when ipa_reference is disabled.
15767         (generate_summary): Do not dump when reference is disabled;
15768         collect vars accessed from functions with ipa-reference disabled.
15769         (get_read_write_all_from_node): When ipa-reference is disabled, use the
15770         node flags.
15771         (gate): Enable for LTO.
15772         (ignore_edge_p): New function.
15773         (propagate): Skip functions w/o ipa-reference analysis.
15774         * optc-save-gen.awk: Handle optimize_debug correctly.
15775         * opth-gen.awk: Likewise.
15776         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
15777         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
15778         fira-share-save-slots, fira-share-spill-slots,
15779         fmodulo-sched-allow-regmoves, fpartial-inlining,
15780         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
15781         ftracer, ftree-parallelize-loops, fassociative-math,
15782         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
15783         Optimization
15784         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
15785         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
15786         Optimization.
15787         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
15788         Fix for IPA.
15790 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
15792         PR ipa/64378
15793         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
15794         flag correctly.
15795         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
15797 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
15799         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
15800         Remove duplicate option listings.
15802 2015-01-18  Felix Yang  <felix.yang@huawei.com>
15804         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
15805         (autofdo_source_profile::get_callsite_total_count,
15806         function_instance::get_function_instance_by_decl,
15807         string_table::get_index, string_table::get_index_by_decl,
15808         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
15809         Fix comment typos. Reformatting and minor code rearrangement.
15811 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
15813         * config/rs6000/rs6000.md (probe_stack): Delete.
15814         (probe_stack_address): New.
15816 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
15818         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
15819         to test for 32-bit ABIs, not !TARGET_POWERPC64.
15821 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
15823         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
15824         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
15825         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
15826         snafu.
15827         (rs6000_libcall_value): Use the new function.
15829 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
15831         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
15833 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
15835         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
15836         implement a more precise life analysis for it during backward scan.
15838 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
15840         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
15842 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
15844         PR rtl-optimization/52773
15845         * calls.c (emit_library_call_value): When pushing arguments use
15846         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
15847         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
15848         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
15850 2015-01-17  Jeff Law  <law@redhat.com>
15852         PR rtl-optimization/32790
15853         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
15854         not ZERO_EXTEND in SET_DESTs.
15856 2015-01-17  Alan Modra  <amodra@gmail.com>
15858         * cprop.c (do_local_cprop): Revert last change.
15860 2015-01-16  DJ Delorie  <dj@redhat.com>
15861             Nick Clifton  <nickc@redhat.com>
15863         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
15864         (addhi3_real): Likewise.  Fix [HL+0] syntax.
15865         (subqi3_real): Likewise.
15866         (subhi3_real): Likewise.
15867         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
15868         (cbranchhi4_real): Likewise.
15869         (cbranchhi4_real_inverted): Likewise.
15870         (cbranchsi4_real_lt): Likewise.
15871         (cbranchsi4_real_ge): Likewise.
15872         (cbranchsi4_real_ge): Likewise.
15873         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
15874         (sub<mode>3_virt): Likewise.
15875         (cbranchqi4_virt): Likewise.
15876         (cbranchhi4_virt): Likewise.
15877         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
15878         always use '[reg+imm]' even when imm is zero.
15879         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
15880         (rl78_general_operand): New.
15881         (rl78_nonimmediate_operand): New.
15882         (rl78_nonfar_operand): Use them.
15883         (rl78_nonfar_nonimm_operand): Likewise.
15884         (rl78_stack_based_mem): Fix.
15885         * config/rl78/constraints.md (Ibqi): New.
15886         (IBqi): New.
15887         (Wsa): New.
15888         (Wsf): New.
15889         (Cs1): Fix.
15890         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
15891         (iorqi3): Likewise.
15892         (xorqi3): Likewise.
15893         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
15895         * config/rl78/constrains (Qs8): New constraint.
15896         * config/rl78/rl78.c (rl78_flags_already_set): New function.
15897         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
15898         * config/rl78/rl78-real.md (update_Z): New attribute.
15899         Update patterns to set it.
15900         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
15901         shorter compare and branch sequence can be used.
15902         (cbranchhi4_real): Likewise.
15903         (cbranchhi4_real_inverted): Likewise.
15905         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
15906         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
15907         address space.
15908         * config/rl78/rl78.c (rl78_get_name_encoding): New.
15909         (rl78_option_override): Allow -mes0 only if C.
15910         (characterize_address): Support subregs of symbol_refs.
15911         (rl78_addr_space_address_mode): Move.  Add __near.
15912         (rl78_far_p): Likewise.
15913         (rl78_addr_space_pointer_mode): Likewise.
15914         (rl78_as_legitimate_address): Likewise.
15915         (rl78_addr_space_subset_p): Likewise.
15916         (rl78_addr_space_convert): Likewise.
15917         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
15918         symbols with -mes0.
15919         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
15920         addressing.
15921         (rl78_alloc_physical_registers_op1): Change logic to prefer
15922         symbol[BC] addressing.
15923         (frodata_section): New.
15924         (rl78_asm_init_sections): Initialize it.
15925         (rl78_select_section): Put __far readonly symbols in .frodata.
15926         (rl78_make_type_far): New.
15927         (rl78_insert_attributes): Force all readonly symbols to be
15928         __far when -mes0.
15929         (rl78_asm_out_integer): New.
15930         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
15931         * config/rl78/rl78.opt (-mes0): New.
15933         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
15934         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
15935         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
15936         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
15937         (rl78_saddr_p): New.
15938         (rl78_output_aligned_common): New.
15939         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
15940         (rl78_handle_saddr_attribute): New.
15941         (rl78_handle_naked_attribute): New.
15942         (rl78_attribute_table): Add saddr.
15943         (rl78_print_operand_1): Don't print '!' on saddr operands.
15944         (rl78_print_operand_1): Strip encodings.
15945         (rl78_sfr_p): New.
15946         (rl78_strip_name_encoding): New.
15947         (rl78_attrlist_to_encoding): New.
15948         (rl78_encode_section_info): New.
15949         (rl78_asm_init_sections): New.
15950         (rl78_select_section): New.
15951         (rl78_output_labelref): New.
15952         (rl78_output_aligned_common): New.
15953         (rl78_asm_out_integer): New.
15954         (rl78_asm_ctor_dtor): New.
15955         (rl78_asm_constructor): New.
15956         (rl78_asm_destructor): New.
15958         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
15959         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
15960         (transcode_memory_rtx): Update.
15961         (rl78_expand_epilogue): Use A_REG instead of 0.
15963 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
15965         * config/arm/arm-protos.h (struct tune_params): New field
15966         sched_autopref_queue_depth.
15967         * config/arm/arm.c (sched-int.h): Include header.
15968         (arm_first_cycle_multipass_dfa_lookahead_guard,)
15969         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
15970         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
15971         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
15972         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
15973         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
15974         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
15975         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
15976         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
15977         * config/arm/t-arm (arm.o): Update.
15978         * haifa-sched.c (update_insn_after_change): Update.
15979         (rank_for_schedule): Use auto-prefetcher model, if requested.
15980         (autopref_multipass_init): New static function.
15981         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
15982         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
15983         variable for debug dumps.
15984         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
15985         (autopref_multipass_dfa_lookahead_guard): New global function that
15986         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
15987         (init_h_i_d): Update.
15988         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
15989         * sched-int.h (enum autopref_multipass_data_status): New const enum.
15990         (autopref_multipass_data_): Structure for auto-prefetcher data.
15991         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
15992         (struct _haifa_insn_data:autopref_multipass_data): New field.
15993         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
15994         (autopref_multipass_dfa_lookahead_guard): Declare.
15996 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
15998         * rtlanal.c (get_base_term): Handle SCRATCH.
16000 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16002         * config/aarch64/aarch64.c
16003         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
16004         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
16005         * config/arm/arm.c
16006         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
16007         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
16009 2015-01-17  Alan Modra  <amodra@gmail.com>
16011         * cprop.c (do_local_cprop): Disallow replacement of fixed
16012         hard registers.
16014 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16016         PR target/62066
16017         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
16018         early return 0.
16020 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16022         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
16023         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
16025 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16027         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
16028         * config/arm/thumb1.md: ... Here.
16030 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
16032         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
16033         TImode for TARGET_32BIT.
16035 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
16037         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
16038         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
16039         as ...
16040         (rs6000_abi_word_mode): New function.
16042 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
16044         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
16045         instead of UNITS_PER_WORD to describe the size of stack slots.
16047 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
16049         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
16050         as rs6000_promote_function_mode.  Move comment to there.
16051         (rs6000_promote_function_mode): New function.
16053 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
16055         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
16056         -mpowerpc64 is active.
16058 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
16060         PR middle-end/64353
16061         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
16062         virtuals on start.
16064 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
16066         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
16067         introduced in revision 219724.
16069 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16070             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16072         PR target/64263
16073         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
16074         destination is not a GP reg.
16075         (*movdi_aarch64): Likewise.
16077 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
16079         PR target/64623
16080         * config/rs6000/default64.h: Revert ISA change.
16082 2015-01-16  Richard Biener  <rguenther@suse.de>
16084         PR middle-end/64614
16085         * tree-ssa-uninit.c: Include tree-cfg.h.
16086         (MAX_SWITCH_CASES): New define.
16087         (convert_control_dep_chain_into_preds): Handle switch statements.
16088         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
16089         (normalize_one_pred_1): Do not split bit-manipulations.
16090         Record (x & CST).
16092 2015-01-16  Richard Biener  <rguenther@suse.de>
16094         PR tree-optimization/64568
16095         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
16096         complex load rewriting for TARGET_MEM_REFs.
16098 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
16100         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
16102 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
16104         PR target/64149
16105         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
16106         variable.
16107         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
16108         (aarch64_lra_p): Remove.
16110 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
16112         PR target/64363
16113         * ipa-chkp.h (chkp_instrumentable_p): New.
16114         * ipa-chkp.c: Include tree-inline.h.
16115         (chkp_instrumentable_p): New.
16116         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
16117         Fix processing of not instrumentable functions.
16118         (chkp_versioning): Use chkp_instrumentable_p. Warn about
16119         not instrumentable functions.
16120         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
16121         chkp_instrumentable_p.
16122         * tree-inline.h (copy_forbidden): New.
16123         * tree-inline.c (copy_forbidden): Not static anymore.
16125 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16127         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
16128         ptr1, ptr2 unused.
16130 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
16132         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
16133         type OP_OUT to OP_INOUT.
16135 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
16137         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
16138         (high x) y) to y if x and y have the same base.
16140 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
16142         * config/arm/cortex-a57.md: New.
16143         * config/aarch64/aarch64.md: Include it.
16144         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
16145         * config/aarch64/aarch64-tune.md: Regenerate.
16147 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
16149         PR target/64015
16150         * ccmp.c (expand_ccmp_next): New function.
16151         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
16152         and compare insn sequence.
16153         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
16154         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
16155         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
16156         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
16157         (*ccmp_ior): Changed to ccmp_ior<mode>.
16158         (cmp<mode>): New pattern.
16159         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
16160         parameters.
16161         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
16163 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
16165         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
16166         _mm256_bsrli_epi128): New.
16167         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
16169 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
16171         * expmed.c (store_bit_field_using_insv): Improve warning message.
16172         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
16174 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
16176         PR rtl-optimization/64011
16177         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
16178         there is partial overflow.
16180 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
16182         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
16183         prototype.
16184         (nds32_expand_epilogue_v3pop): Likewise.
16185         * config/nds32/nds32.md (sibcall): Define this for sibling call
16186         optimization.
16187         (sibcall_register): Likewise.
16188         (sibcall_immediate): Likewise.
16189         (sibcall_value): Likewise.
16190         (sibcall_value_register): Likewise.
16191         (sibcall_value_immediate): Likewise.
16192         (sibcall_epilogue): Likewise.
16193         (epilogue): Pass false to indicate this is not a sibcall epilogue.
16194         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
16195         (nds32_expand_epilogue_v3pop): Likewise.
16197 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
16199         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
16200         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
16201         (return_internal): New.
16202         (return): Define this named pattern.
16203         (simple_return): Define this named pattern.
16204         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
16205         pattern instead of unspec_volatile_func_return.
16206         (nds32_expand_epilogue_v3pop): Likewise.
16207         (nds32_can_use_return_insn): New function.
16209 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
16211         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
16212         * config/nds32/nds32.md (pop25return): New.
16213         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
16214         pop25return pattern.
16216 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
16218         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
16219         -mforbid-fp-as-gp, and -mex9 options.
16221 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
16223         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
16224         remove -mgp-direct option.
16226 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
16228         * doc/invoke.texi (--param early-inlining-insns): Update default value.
16229         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
16231 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
16233         * ipa-inline.c (inline_small_functions): Work around hints
16234         cache issue.
16236 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
16238         PR target/59710
16239         * doc/invoke.texi (Option Summary): Document new Nios II
16240         -mgpopt= syntax.
16241         (Nios II Options): Likewise.
16242         * config/nios2/nios2.opt: Add -mgpopt= option support.
16243         Modify existing -mgpopt and -mno-gpopt options to be aliases.
16244         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
16245         * config/nios2/nios2.c (nios2_option_override): Adjust
16246         -mgpopt defaulting.
16247         (nios2_in_small_data_p): Return true for explicit small data
16248         sections even with -G0.
16249         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
16250         option choices.
16252 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
16254         PR ipa/64612
16255         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
16256         of comdat locals.
16257         (inline_call): Fix removal of aliases.
16259 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
16261         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
16262         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
16263         * opts.c (common_handle_option): Add -fsanitize=vptr.
16264         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
16265         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
16266         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
16267         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
16268         (ubsan_expand_vptr_ifn): New prototype.
16269         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
16270         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
16271         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
16272         expand_LOOP_VECTORIZED): Make argument nameless, remove
16273         ATTRIBUTE_UNUSED.
16274         (expand_UBSAN_VPTR): New function.
16275         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
16276         in fn spec.
16277         (UBSAN_VPTR): New internal function.
16278         * sanopt.c (tree_map_traits): Renamed to ...
16279         (sanopt_tree_map_traits): ... this.
16280         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
16281         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
16282         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
16283         (maybe_optimize_ubsan_vptr_ifn): New function.
16284         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
16285         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
16286         -fsanitize=vptr.
16287         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
16288         internal calls like pure functions for aliasing, even when they
16289         have other side-effects that prevent making them ECF_PURE.
16290         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
16291         (ubsan_expand_vptr_ifn): New function.
16293 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
16295         PR rtl-optimization/64110
16296         * stmt.c (parse_output_constraint): Process '^' and '$'.
16297         (parse_input_constraint): Ditto.
16298         * lra-constraints.c (process_alt_operands): Process the new
16299         constraints.
16300         * ira-costs.c (record_reg_classes): Process the new constraint
16301         '^'.
16302         * genoutput.c (indep_constraints): Add '^' and '$'.
16303         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
16304         * doc/md.texi: Add description of the new constraints.
16306 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
16307             Bernd Schmidt  <bernds@codesourcery.com>
16308             Cesar Philippidis  <cesar@codesourcery.com>
16309             James Norris  <jnorris@codesourcery.com>
16310             Tom de Vries  <tom@codesourcery.com>
16311             Ilmir Usmanov  <i.usmanov@samsung.com>
16312             Dmitry Bocharnikov  <dmitry.b@samsung.com>
16313             Evgeny Gavrin  <e.gavrin@samsung.com>
16314             Jakub Jelinek  <jakub@redhat.com>
16316         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
16317         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
16318         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
16319         New function types.
16320         * builtins.c: Include "gomp-constants.h".
16321         (expand_builtin_acc_on_device): New function.
16322         (expand_builtin, is_inexpensive_builtin): Handle
16323         BUILT_IN_ACC_ON_DEVICE.
16324         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
16325         New macros.
16326         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
16327         flag_openmp.
16328         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
16329         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
16330         i386/intelmic-offload.h.
16331         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
16332         to libgomp and its dependencies.
16333         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
16334         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
16335         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
16336         * config/ia64/hpux.h (LIB_SPEC): Likewise.
16337         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
16338         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
16339         * doc/generic.texi: Update for OpenACC changes.
16340         * doc/gimple.texi: Likewise.
16341         * doc/invoke.texi: Likewise.
16342         * doc/sourcebuild.texi: Likewise.
16343         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
16344         GF_OMP_FOR_KIND_OACC_LOOP.
16345         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
16346         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
16347         GF_OMP_TARGET_KIND_OACC_UPDATE,
16348         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
16349         Dump more data.
16350         * gimple.c: Update comments for OpenACC changes.
16351         * gimple.def: Likewise.
16352         * gimple.h: Likewise.
16353         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
16354         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
16355         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
16356         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
16357         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
16358         appropriate place.
16359         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
16360         * gimplify.c: Include "gomp-constants.h".
16361         Update comments for OpenACC changes.
16362         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
16363         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
16364         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
16365         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
16366         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
16367         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
16368         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
16369         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
16370         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
16371         OMP_CLAUSE_SEQ.
16372         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
16373         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
16374         OMP_CLAUSE_SET_MAP_KIND.
16375         (gimplify_oacc_cache): New function.
16376         (gimplify_omp_for): Handle OACC_LOOP.
16377         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
16378         OACC_DATA.
16379         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
16380         OACC_EXIT_DATA, OACC_UPDATE.
16381         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
16382         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
16383         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
16384         (gimplify_body): Consider flag_openacc next to flag_openmp.
16385         * lto-streamer-out.c: Include "gomp-constants.h".
16386         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
16387         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
16388         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
16389         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
16390         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
16391         (BUILT_IN_ACC_ON_DEVICE): New builtins.
16392         * omp-low.c: Include "gomp-constants.h".
16393         Update comments for OpenACC changes.
16394         (struct omp_context): Add reduction_map, gwv_below, gwv_this
16395         members.
16396         (extract_omp_for_data, use_pointer_for_field, install_var_field)
16397         (new_omp_context, delete_omp_context, scan_sharing_clauses)
16398         (create_omp_child_function, scan_omp_for, scan_omp_target)
16399         (check_omp_nesting_restrictions, lower_reduction_clauses)
16400         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
16401         Update for OpenACC changes.
16402         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
16403         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
16404         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
16405         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
16406         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
16407         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
16408         OMP_CLAUSE_MAP_*.
16409         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
16410         Handle GF_OMP_FOR_KIND_OACC_LOOP.
16411         (expand_omp_target, lower_omp_target): Handle
16412         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
16413         GF_OMP_TARGET_KIND_OACC_UPDATE,
16414         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
16415         GF_OMP_TARGET_KIND_OACC_DATA.
16416         (pass_expand_omp::execute, execute_lower_omp)
16417         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
16418         flag_openmp.
16419         (offload_symbol_decl): New variable.
16420         (oacc_get_reduction_array_id, oacc_max_threads)
16421         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
16422         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
16423         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
16424         (oacc_gimple_assign, oacc_initialize_reduction_data)
16425         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
16426         functions.
16427         (is_targetreg_ctx): Remove function.
16428         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
16429         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
16430         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
16431         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
16432         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
16433         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
16434         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
16435         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
16436         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
16437         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
16438         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
16439         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
16440         * tree-core.h: Update comments for OpenACC changes.
16441         (enum omp_clause_map_kind): Remove.
16442         (struct tree_omp_clause): Change type of map_kind member from enum
16443         omp_clause_map_kind to unsigned char.
16444         * tree-inline.c: Update comments for OpenACC changes.
16445         * tree-nested.c: Likewise.  Include "gomp-constants.h".
16446         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
16447         (convert_tramp_reference_stmt, convert_gimple_call): Update for
16448         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
16449         OMP_CLAUSE_SET_MAP_KIND.
16450         * tree-pretty-print.c: Include "gomp-constants.h".
16451         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
16452         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
16453         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
16454         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
16455         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
16456         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
16457         instead of OMP_CLAUSE_MAP_*.
16458         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
16459         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
16460         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
16461         * tree-streamer-in.c: Include "gomp-constants.h".
16462         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
16463         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
16464         * tree-streamer-out.c: Include "gomp-constants.h".
16465         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
16466         OMP_CLAUSE_MAP_*.
16467         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
16468         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
16469         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
16470         * tree.c (omp_clause_num_ops): Update accordingly.
16471         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
16472         Likewise.
16473         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
16474         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
16475         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
16476         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
16477         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
16478         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
16479         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
16480         (OMP_CLAUSE_SET_MAP_KIND): New macro.
16481         * varpool.c (varpool_node::get_create): Consider flag_openacc next
16482         to flag_openmp.
16483         * config/i386/intelmic-offload.h: New file.
16484         * config/nvptx/offload.h: Likewise.
16486 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16488         * explow.h: Remove duplicate contents.
16489         * dojump.h: Likewise.
16491 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
16493         * arm.c (arm_xgene_tune): Add default initializer for instruction
16494         fusion.
16496 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
16498         PR ipa/64068
16499         PR ipa/64559
16500         * ipa.c (symbol_table::remove_unreachable_nodes):
16501         Do not put abstract origins into boundary.
16503 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
16505         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
16506         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
16508 2015-01-15  Steve Ellcey  <sellcey@mips.com>
16510         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
16511         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
16512         builtins.def, and chkp-builtins.def.
16514 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
16516         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
16517         ISA 2.7 (POWER8).
16519 2015-01-15  Richard Biener  <rguenther@suse.de>
16521         PR tree-optimization/61743
16522         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
16523         information on PHIs for some simple cases.
16525 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
16527         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
16528         Include xgene1.md.
16529         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
16530         * config/arm/arm-cores.def (xgene1): New entry.
16531         * config/arm/arm-tables.opt: Regenerate.
16532         * config/arm/arm-tune.md: Regenerate.
16533         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
16535 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
16537         * tree-if-conv.c: Include hash-map.h.
16538         (aggressive_if_conv): New variable.
16539         (fold_build_cond_expr): Add simplification of non-zero condition.
16540         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
16541         destination block is not always executed.
16542         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
16543         than two predecessors if AGGRESSIVE_IF_CONV is true.
16544         (if_convertible_stmt_p): Fix commentary.
16545         (all_preds_critical_p): New function.
16546         (has_pred_critical_p): New function.
16547         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
16548         BB can have more than two predecessors and all incoming edges can be
16549         critical.
16550         (predicate_bbs): Skip predication for loop exit block, use build2_loc
16551         to compute predicate for true edge.
16552         (find_phi_replacement_condition): Delete this function.
16553         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
16554         Allow interchange PHI arguments if EXTENDED is false.
16555         Change check that block containing reduction statement candidate
16556         is predecessor of phi-block since phi may have more than two arguments.
16557         (phi_args_hash_traits): New helper structure.
16558         (struct phi_args_hash_traits): New type.
16559         (phi_args_hash_traits::hash): New function.
16560         (phi_args_hash_traits::equal_keys): New function.
16561         (gen_phi_arg_condition): New function.
16562         (predicate_scalar_phi): Add handling of phi nodes with more than two
16563         arguments, delete COND and TRUE_BB arguments, insert body of
16564         find_phi_replacement_condition to predicate ordinary phi nodes.
16565         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
16566         delete call of find_phi_replacement_condition and invoke
16567         predicate_scalar_phi with two arguments.
16568         (insert_gimplified_predicates): Add assert that non-predicated block
16569         don't have statements to insert.
16570         (ifcvt_split_critical_edges): New function.
16571         (ifcvt_split_def_stmt): Likewise.
16572         (ifcvt_walk_pattern_tree): Likewise.
16573         (stmt_is_root_of_bool_pattern): Likewise.
16574         (ifcvt_repair_bool_pattern): Likewise.
16575         (ifcvt_local_dce): Likewise.
16576         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
16577         is copy of inner or outer loop force_vectorize field, invoke
16578         ifcvt_split_critical_edges, ifcvt_local_dce and
16579         ifcvt_repair_bool_pattern for aggressive if-conversion.
16581 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
16583         * config/aarch64/aarch64.md: Include xgene1.md.
16584         * config/aarch64/xgene1.md: New file.
16586 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
16588         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
16589         xgene1 (APM XGene-1) core definition.
16590         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
16591         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
16592         * doc/invoke.texi: Document -mcpu=xgene1.
16594 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16596         * dojump.h: New header file.
16597         * explow.h: Likewise.
16598         * expr.h: Remove includes.
16599         Move expmed.c prototypes to expmed.h.
16600         Move dojump.c prototypes to dojump.h.
16601         Move alias.c prototypes to alias.h.
16602         Move explow.c prototypes to explow.h.
16603         Move calls.c prototypes to calls.h.
16604         Move emit-rtl.c prototypes to emit-rtl.h.
16605         Move varasm.c prototypes to varasm.h.
16606         Move stmt.c prototypes to stmt.h.
16607         (saved_pending_stack_adjust): Move to dojump.h.
16608         (adjust_address): Move to explow.h.
16609         (adjust_address_nv): Move to emit-rtl.h.
16610         (adjust_bitfield_address): Likewise.
16611         (adjust_bitfield_address_size): Likewise.
16612         (adjust_bitfield_address_nv): Likewise.
16613         (adjust_automodify_address_nv): Likewise.
16614         * explow.c (expr_size): Move to expr.c.
16615         (int_expr_size): Likewise.
16616         (tree_expr_size): Likewise.
16617         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16618         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
16619         * genemit.c (main): Generate includes statistics.h, real.h,
16620         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
16621         stmt.h.
16622         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
16623         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
16624         explow.h, emit-rtl.h, stmt.h.
16625         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
16626         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
16627         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
16628         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
16629         emit-rtl.h, varasm.h, stmt.h.
16630         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
16631         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
16632         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
16633         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
16634         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
16635         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
16636         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
16637         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
16638         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
16639         tm.h tree.h varasm.h vec.h wide-int.h.
16640         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
16641         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
16642         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
16643         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
16644         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
16645         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
16646         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
16647         * loop-iv.c: Likewise.
16648         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
16649         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
16650         statistics.h stmt.h tree.h varasm.h wide-int.h.
16651         * lra-constraints.c: Likewise.
16652         * lra-eliminations.c: Likewise.
16653         * lra-lives.c: Likewise.
16654         * lra-remat.c: Likewise.
16655         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
16656         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
16657         statistics.h stmt.h tree.h varasm.h wide-int.h.
16658         * hw-doloop.c: Likewise.
16659         * ira-color.c: Likewise.
16660         * ira-emit.c: Likewise.
16661         * loop-doloop.c: Likewise.
16662         * loop-invariant.c: Likewise.
16663         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
16664         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
16665         statistics.h stmt.h tree.h varasm.h wide-int.h.
16666         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
16667         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
16668         statistics.h stmt.h tree.h varasm.h wide-int.h.
16669         * combine-stack-adj.c: Likewise.
16670         * cse.c: Likewise.
16671         * ddg.c: Likewise.
16672         * ifcvt.c: Likewise.
16673         * ira-costs.c: Likewise.
16674         * jump.c: Likewise.
16675         * lra-coalesce.c: Likewise.
16676         * lra-spills.c: Likewise.
16677         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
16678         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
16679         stmt.h varasm.h wide-int.h.
16680         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
16681         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
16682         varasm.h.
16683         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
16684         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
16685         statistics.h stmt.h varasm.h wide-int.h.
16686         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
16687         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
16688         varasm.h wide-int.h.
16689         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
16690         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
16691         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
16692         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
16693         statistics.h stmt.h.
16694         * config/tilepro/tilepro.c: Likewise.
16695         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
16696         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
16697         * config/pdp11/pdp11.c: Likewise.
16698         * config/xtensa/xtensa.c: Likewise.
16699         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
16700         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
16701         varasm.h.
16702         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16703         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
16704         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
16705         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16706         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
16707         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
16708         * rtl-chkp.c: Likewise.
16709         * tree-chkp-opt.c: Likewise.
16710         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
16711         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
16712         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
16713         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16714         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
16715         statistics.h stmt.h.
16716         * tree-vect-data-refs.c: Likewise.
16717         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
16718         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
16719         rtl.h statistics.h stmt.h varasm.h.
16720         * internal-fn.c: Likewise.
16721         * ipa-icf-gimple.c: Likewise.
16722         * lto-section-out.c: Likewise.
16723         * tree-data-ref.c: Likewise.
16724         * tree-nested.c: Likewise.
16725         * tree-outof-ssa.c: Likewise.
16726         * tree-predcom.c: Likewise.
16727         * tree-pretty-print.c: Likewise.
16728         * tree-scalar-evolution.c: Likewise.
16729         * tree-ssa-strlen.c: Likewise.
16730         * tree-vect-loop.c: Likewise.
16731         * tree-vect-patterns.c: Likewise.
16732         * tree-vect-slp.c: Likewise.
16733         * tree-vect-stmts.c: Likewise.
16734         * tsan.c: Likewise.
16735         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16736         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
16737         stmt.h.
16738         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
16739         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
16740         statistics.h stmt.h varasm.h.
16741         * loop-unroll.c: Likewise.
16742         * ubsan.c: Likewise.
16743         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
16744         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
16745         stmt.h varasm.h.
16746         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16747         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
16748         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
16749         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
16750         statistics.h stmt.h.
16751         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
16752         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
16753         statistics.h stmt.h varasm.h.
16754         * gimple-match-head.c: Likewise.
16755         * lto-cgraph.c: Likewise.
16756         * lto-section-in.c: Likewise.
16757         * lto-streamer-in.c: Likewise.
16758         * lto-streamer-out.c: Likewise.
16759         * tree-affine.c: Likewise.
16760         * tree-cfg.c: Likewise.
16761         * tree-cfgcleanup.c: Likewise.
16762         * tree-if-conv.c: Likewise.
16763         * tree-into-ssa.c: Likewise.
16764         * tree-ssa-alias.c: Likewise.
16765         * tree-ssa-copyrename.c: Likewise.
16766         * tree-ssa-dse.c: Likewise.
16767         * tree-ssa-forwprop.c: Likewise.
16768         * tree-ssa-live.c: Likewise.
16769         * tree-ssa-math-opts.c: Likewise.
16770         * tree-ssa-pre.c: Likewise.
16771         * tree-ssa-sccvn.c: Likewise.
16772         * tree-tailcall.c: Likewise.
16773         * tree-vect-generic.c: Likewise.
16774         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16775         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
16776         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16777         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
16778         * varasm.c: Likewise.
16779         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16780         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
16781         varasm.h.
16782         * init-regs.c: Likewise.
16783         * ira.c: Likewise.
16784         * omp-low.c: Likewise.
16785         * stack-ptr-mod.c: Likewise.
16786         * tree-ssa-reassoc.c: Likewise.
16787         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16788         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
16789         varasm.h.
16790         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16791         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
16792         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16793         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
16794         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16795         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
16796         * tree-ssa-phiopt.c: Likewise.
16797         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16798         fixed-value.h hashtab.h real.h statistics.h stmt.h.
16799         * config/fr30/fr30.c: Likewise.
16800         * config/frv/frv.c: Likewise.
16801         * expr.c: Likewise.
16802         * final.c: Likewise.
16803         * optabs.c: Likewise.
16804         * passes.c: Likewise.
16805         * simplify-rtx.c: Likewise.
16806         * stmt.c: Likewise.
16807         * toplev.c: Likewise.
16808         * var-tracking.c: Likewise.
16809         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16810         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
16811         * lower-subreg.c: Likewise.
16812         * postreload-gcse.c: Likewise.
16813         * ree.c: Likewise.
16814         * reginfo.c: Likewise.
16815         * store-motion.c: Likewise.
16816         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16817         fixed-value.h hashtab.h real.h stmt.h varasm.h.
16818         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16819         fixed-value.h hashtab.h statistics.h stmt.h.
16820         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16821         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
16822         * except.c: Likewise.
16823         * explow.c: Likewise.
16824         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16825         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
16826         varasm.h.
16827         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16828         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
16829         * tree-ssa-structalias.c: Likewise.
16830         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16831         fixed-value.h insn-config.h real.h statistics.h.
16832         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16833         fixed-value.h insn-config.h real.h statistics.h stmt.h.
16834         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16835         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
16836         * cfgbuild.c: Likewise.
16837         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16838         fixed-value.h real.h rtl.h statistics.h stmt.h.
16839         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16840         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
16841         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16842         fixed-value.h real.h statistics.h stmt.h.
16843         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16844         fixed-value.h real.h statistics.h stmt.h varasm.h.
16845         * cprop.c: Likewise.
16846         * modulo-sched.c: Likewise.
16847         * postreload.c: Likewise.
16848         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
16849         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
16850         statistics.h stmt.h varasm.h.
16851         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
16852         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
16853         rtl.h statistics.h stmt.h varasm.h.
16854         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
16855         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
16856         varasm.h.
16857         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
16858         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
16859         varasm.h.
16860         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
16861         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
16862         varasm.h.
16863         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
16864         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
16865         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
16866         function.h real.h statistics.h stmt.h varasm.h.
16867         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
16868         insn-config.h real.h statistics.h stmt.h.
16869         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
16870         statistics.h stmt.h.
16871         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
16872         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
16873         statistics.h stmt.h varasm.h.
16874         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
16875         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
16876         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
16877         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
16878         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
16879         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
16880         statistics.h stmt.h varasm.h.
16881         * ipa-polymorphic-call.c: Likewise.
16882         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
16883         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
16884         statistics.h stmt.h.
16885         * config/c6x/c6x.c: Likewise.
16886         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
16887         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
16888         statistics.h stmt.h varasm.h.
16889         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
16890         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
16891         stmt.h varasm.h.
16892         * ipa-split.c: Likewise.
16893         * tree-eh.c: Likewise.
16894         * tree-ssa-dce.c: Likewise.
16895         * tree-ssa-loop-niter.c: Likewise.
16896         * tree-vrp.c: Likewise.
16897         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
16898         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
16899         stmt.h.
16900         * config/nds32/nds32-fp-as-gp.c: Likewise.
16901         * config/nds32/nds32-intrinsic.c: Likewise.
16902         * config/nds32/nds32-isr.c: Likewise.
16903         * config/nds32/nds32-md-auxiliary.c: Likewise.
16904         * config/nds32/nds32-memory-manipulation.c: Likewise.
16905         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16906         * config/nds32/nds32-predicates.c: Likewise.
16907         * config/nds32/nds32.c: Likewise.
16908         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
16909         fixed-value.h hashtab.h real.h statistics.h.
16910         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
16911         fixed-value.h hashtab.h real.h statistics.h stmt.h.
16912         * config/arm/arm.c: Likewise.
16913         * config/avr/avr.c: Likewise.
16914         * config/bfin/bfin.c: Likewise.
16915         * config/h8300/h8300.c: Likewise.
16916         * config/i386/i386.c: Likewise.
16917         * config/ia64/ia64.c: Likewise.
16918         * config/iq2000/iq2000.c: Likewise.
16919         * config/m32c/m32c.c: Likewise.
16920         * config/m32r/m32r.c: Likewise.
16921         * config/m68k/m68k.c: Likewise.
16922         * config/mcore/mcore.c: Likewise.
16923         * config/mep/mep.c: Likewise.
16924         * config/mips/mips.c: Likewise.
16925         * config/mn10300/mn10300.c: Likewise.
16926         * config/moxie/moxie.c: Likewise.
16927         * config/pa/pa.c: Likewise.
16928         * config/rl78/rl78.c: Likewise.
16929         * config/rx/rx.c: Likewise.
16930         * config/s390/s390.c: Likewise.
16931         * config/sh/sh.c: Likewise.
16932         * config/sparc/sparc.c: Likewise.
16933         * config/spu/spu.c: Likewise.
16934         * config/stormy16/stormy16.c: Likewise.
16935         * config/v850/v850.c: Likewise.
16936         * config/vax/vax.c: Likewise.
16937         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
16938         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
16939         * config/msp430/msp430.c: Likewise.
16940         * predict.c: Likewise.
16941         * value-prof.c: Likewise.
16942         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
16943         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
16944         * config/microblaze/microblaze.c: Likewise.
16945         * config/nios2/nios2.c: Likewise.
16946         * config/rs6000/rs6000.c: Likewise.
16947         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
16948         insn-config.h real.h rtl.h statistics.h stmt.h.
16949         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
16950         insn-config.h real.h statistics.h stmt.h.
16951         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
16952         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
16953         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
16954         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
16955         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
16956         fixed-value.h real.h statistics.h stmt.h.
16957         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
16958         fixed-value.h statistics.h stmt.h.
16959         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
16960         stmt.h.
16962 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
16964         * gengtype.c (create_user_defined_type): Workaround
16965         -Wmaybe-uninitialized false positives.
16966         * cse.c (fold_rtx): Likewise.
16967         * loop-invariant.c (gain_for_invariant): Likewise.
16969 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
16971         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
16972         set the memory attributes in all cases but clear MEM_EXPR if need be.
16974 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
16976         PR tree-optimization/64434
16977         * cfgexpand.c (reorder_operands): New function.
16978         (expand_gimple_basic_block): Insert call of reorder_operands if
16979         optimized is true.
16981 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
16983         * config/mips/micromips.md (*swp): Remove explicit parallel.
16984         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
16985         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
16986         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
16987         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
16988         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
16989         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
16990         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
16991         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
16992         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
16993         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
16994         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
16995         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
16996         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
16997         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
16998         (mips_wrdsp): Likewise.
16999         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
17000         parallel.
17001         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
17002         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
17003         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
17004         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
17005         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
17006         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
17007         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
17008         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
17009         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
17011 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
17013         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
17014         (mips_print_operand): Support 'y' to print exact log2 in decimal
17015         of a const_int.
17016         * config/mips/mips.h (ISA_HAS_LSA): New define.
17017         (ISA_HAS_DLSA): Likewise.
17018         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
17019         * config/mips/predicates.md (const_immlsa_operand): New predicate.
17021 2015-01-15  Martin Liska  <mliska@suse.cz>
17023         PR target/64377
17024         * optc-save-gen.awk: Add support for array types.
17026 2015-01-15  Richard Biener  <rguenther@suse.de>
17028         PR middle-end/64365
17029         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
17030         for MEM_REF access functions with the same base can never partially
17031         overlap.
17033 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
17035         * common.opt: New option -fstack-protector-explicit.
17036         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
17037         (stack_protect_decl_phase): Handle stack_protect attribute for
17038         explicit stack protection requests.
17039         (expand_used_vars): Similarly.
17040         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
17041         * doc/extend.texi: Add documentation for "stack_protect" attribute.
17042         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
17044 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
17046         PR target/53988
17047         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
17048         reg-reg copies.
17049         (sh_extending_set_of_reg): New struct.
17050         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
17051         sh_remove_reg_dead_or_unused_notes): New Declarations.
17052         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
17053         sh_find_extending_set_of_reg, sh_split_tst_subregs,
17054         sh_extending_set_of_reg::use_as_extended_reg): New functions.
17055         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
17056         convert to insn_and_split and use new function sh_split_tst_subregs.
17058 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
17060         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
17061         option.
17062         (Optimization Options): Move -fuse-ld documentation to...
17063         (Link Options): ...here.
17065 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
17067         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
17068         offsets.
17069         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
17070         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
17071         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
17072         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
17073         instead of ZR for the memory operand of LL/SC.
17074         (compare_and_swap_12, sync_add<mode>): Likewise.
17075         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
17076         (sync_new_<optab>_12, sync_nand_12): Likewise.
17077         (sync_old_nand_12, sync_new_nand_12): Likewise.
17078         (sync_sub<mode>, sync_old_add<mode>): Likewise.
17079         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
17080         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
17081         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
17082         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
17083         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
17084         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
17085         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
17086         * doc/md.texi (ZC): Update description.
17088 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
17090         * builtins.c (expand_builtin_atomic_exchange): Remove error when
17091         memory model is CONSUME.
17092         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
17093         expand_builtin_atomic_store): Change invalid memory model errors to
17094         warnings.
17095         (expand_builtin_atomic_clear): Change invalid model errors to warnings
17096         and issue warning for CONSUME.
17098 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
17100         * lto-cgraph: Update function comments for
17101         lto_symtab_encoder_encode_*.
17103 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
17105         * Makefile.in (site.exp): Do not set ENABLE_LTO.
17107 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
17109         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
17110         * lto-cgraph.c (select_what_to_stream): Remove argument, use
17111         lto_stream_offload_p instead.
17112         * lto-streamer.h (select_what_to_stream): Remove argument.
17113         * passes.c (ipa_write_summaries): Likewise.
17114         * tree-pass.h (ipa_write_summaries): Likewise.
17116 2015-01-14  Richard Biener  <rguenther@suse.de>
17118         PR tree-optimization/59354
17119         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
17120         groups larger than the slp group size as having gaps.
17122 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
17124         PR middle-end/59448
17125         * builtins.c (get_memmodel): Promote consume to acquire always.
17127 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
17129         PR target/64386
17130         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
17131         V32HImode.
17133 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
17135         PR target/64393
17136         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
17137         Enable AVX512BW.
17138         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
17139         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
17140         AVX512VBMI, as it implies AVX512BW.
17142 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
17144         PR target/64387
17145         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
17146         (vec_unpacks_hi_v16sf): Ditto.
17148 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17150         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
17151         is not available.
17153 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17155         * doc/invoke.texi (mapcs): Mention deprecation.
17156         (mapcs-frame): Likewise.
17158 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17160         PR target/64453
17161         * config/arm/arm.c (callee_saved_reg_p): Define.
17162         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
17163         register is callee saved instead of !call_used_regs[reg].
17164         (thumb1_compute_save_reg_mask): Likewise.
17166 2015-01-14  Hale Wang  <hale.wang@arm.com>
17168         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
17169         Cortex-M7.
17171 2015-01-14  Richard Biener  <rguenther@suse.de>
17173         PR lto/64415
17174         * tree-inline.c (insert_debug_decl_map): Check destination
17175         function MAY_HAVE_DEBUG_STMTS.
17176         (insert_init_debug_bind): Likewise.
17177         (insert_init_stmt): Remove redundant check.
17178         (remap_gimple_stmt): Drop debug stmts if the destination
17179         function has var-tracking assignments disabled.
17181 2015-01-14  Martin Liska  <mliska@suse.cz>
17183         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
17184         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
17186 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17188         PR target/64460
17189         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
17190         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
17192 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
17194         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
17195         level from an ARCH; do not inject the default.
17196         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
17197         MIPS_ISA_LEVEL_SPEC.
17198         (MIPS_ISA_NAN2008_SPEC): Update comment.
17199         (BASE_DRIVER_SELF_SPECS): Likewise.
17200         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
17201         MIPS_DEFAULT_ISA_LEVEL_SPEC.
17202         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
17203         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
17204         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
17206 2015-01-14  Richard Biener  <rguenther@suse.de>
17208         PR tree-optimization/64493
17209         PR tree-optimization/64495
17210         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
17211         assign the proper vectorized PHI to the inner loop exit PHIs.
17213 2015-01-14  Joey Ye  <joey.ye@arm.com>
17215         * config/arm/arm.c (arm_compute_save_reg_mask):
17216         Do not save lr in case of tail call.
17217         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
17219 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
17221         * tree-vrp.c (check_array_ref): Emit more warnings
17222         for warn_array_bounds >= 2.
17223         * common.opt: New option -Warray-bounds=.
17224         * doc/invoke.texi: Document -Warray-bounds=.
17226 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
17228         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
17229         (mforbid-fp-as-gp): Remove.
17230         (mex9): Remove.
17231         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
17232         (nds32_symbol_load_store_p): Remove.
17233         (nds32_fp_as_gp_check_available): Clean up implementation.
17234         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
17235         cases.
17236         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
17237         fp-as-gp and ex9 cases.
17239 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
17241         * tree-profile.c (init_ic_make_global_vars): Drop workaround
17242         for bintuils bug 14342.
17243         (init_ic_make_global_vars): Likewise.
17244         (gimple_init_edge_profiler): Likewise.
17245         (gimple_gen_ic_func_profiler): Likewise.
17247 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
17249         * ipa-inline.c (inline_small_functions): Swap the operands in
17250         enum.
17252 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
17254         PR ipa/64481
17255         * ipa-inline-analysis.c (node_growth_cache): Remove.
17256         (initialize_growth_caches): Do not initialize it.
17257         (free_growth_caches): Do not free it.
17258         (do_estimate_growth): Rename to ...
17259         (estimate_growth): ... this one; drop growth cache code.
17260         (growth_likely_positive): Always go the heuristics way.
17261         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
17262         (reset_edge_caches): Do not reset node growth.
17263         (heap_edge_removal_hook): Do not maintain cache.
17264         (inline_small_functions): Likewise; strenghten sanity check.
17265         (ipa_inline): Do not maintain caches.
17266         * ipa-inline.h (node_growth_cache): Remove.
17267         (do_estimate_growth): Remove to ...
17268         (estimate_growth): this one; remove inline version.
17269         (reset_node_growth_cache): Remove.
17271 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
17273         PR ipa/64565
17274         * ipa-inline.c (inline_small_functions): Update callee keys after
17275         resolving speculation
17276         (inline_small_functions): Always check monotonicity of the queue.
17278 2015-01-13  Marek Polacek  <polacek@redhat.com>
17280         PR middle-end/64391
17281         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
17283 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
17285         PR rtl-optimization/64286
17286         * ree.c (combine_reaching_defs): Move part of comment earlier,
17287         remove !SCALAR_INT_MODE_P check.
17288         (add_removable_extension): Don't add vector mode
17289         extensions if all uses of the source register aren't the same
17290         vector extensions.
17292 2015-01-13  Renlin Li  <renlin.li@arm.com>
17294         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
17295         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
17297 2015-01-13  Martin Liska  <mliska@suse.cz>
17299         * ipa-icf.c (sem_function::equals_private): Call new functions
17300         cl_target_option_print_diff and cl_optimization_print_diff.
17301         * optc-save-gen.awk (cl_target_option_print_diff): New function.
17302         (cl_optimization_print_diff): Likewise.
17303         * opth-gen.awk: Likewise.
17305 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
17307         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
17308         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
17309         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
17310         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
17311         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
17312         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
17314 2015-01-13  Andrew Pinski  <apinski@cavium.com>
17316         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
17317         instead of src mode.
17319 2015-01-13  Richard Biener  <rguenther@suse.de>
17321         PR lto/64373
17322         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
17323         DECL_CONTEXT.
17325 2015-01-13  Andrew Pinski  <apinski@cavium.com>
17327         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
17328         volatile mems.
17329         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
17331 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
17333         PR middle-end/63974
17334         * cfgexpand.c (expand_computed_goto): Don't call
17335         convert_memory_address here.
17337 2015-01-13  Richard Biener  <rguenther@suse.de>
17339         PR tree-optimization/64406
17340         * tree-loop-distibution.c (pass_loop_distribution::execute):
17341         Reset the SCEV hashtable if we distributed anything.
17343 2015-01-13  Richard Biener  <rguenther@suse.de>
17345         PR tree-optimization/64404
17346         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
17347         SLP types for CSEd loads.
17349 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17351         PR tree-optimization/64436
17352         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
17353         merge of two symbolic numbers for a bitwise OR to ...
17354         (perform_symbolic_merge): This. Also fix computation of the range and
17355         end of the symbolic number corresponding to the result of a bitwise OR.
17357 2015-01-13  Richard Biener  <rguenther@suse.de>
17359         PR tree-optimization/64568
17360         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
17361         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
17363 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
17365         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
17366         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
17368 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
17370         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
17371         target-specific symbol_ref flag.
17372         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
17373         resides in rodata section.
17374         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
17375         (nds32_encode_section_info): New function.
17377 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
17379         * config/nds32/nds32.md (call): Use pseudo instruction bal which
17380         clobbers TA_REGNUM if large code model is specified.
17381         (call_register): Likewise.
17382         (call_immediate): Likewise.
17383         (call_value): Likewise.
17384         (call_value_register): Likewise.
17385         (call_value_immediate): Likewise.
17387 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
17389         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
17390         (TARGET_CMODEL_MEDIUM): New macro.
17391         (TARGET_CMODEL_LARGE): New macro.
17392         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
17393         code model setting in assembly code.
17395 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
17397         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
17398         Remove MASK_GP_DIRECT flag.
17399         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
17400         one of the multilib default options.
17401         * config/nds32/nds32.opt (mgp-direct): Remove.
17402         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
17403         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
17405 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
17407         * config/nds32/nds32.opt (mcmodel): Add new option.
17408         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
17409         to describe code model.
17411 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
17413         PR target/64479
17414         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
17416 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
17418         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
17419         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
17420         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
17421         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
17422         __builtin_sh_set_fpscr.
17424 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
17426         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
17427         after a funtion name just to indicate it is a function.
17428         ([-fsanitize-undefined-trap-on-error]): Likewise.
17429         ([-fdbg-cnt=]): Likewise.
17430         ([-mmemcpy]): Likewise.
17431         ([-mflush-func]): Likewise.
17432         ([-msynci]): Likewise.
17434 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
17436         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
17437         example.
17439 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
17441         PR tree-optimization/64563
17442         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
17443         instead of != VR_VARYING.
17445         PR target/64513
17446         * config/i386/i386.c (ix86_expand_prologue): Add
17447         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
17449         PR tree-optimization/64454
17450         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
17451         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
17452         for signed or [0, op1 - 1] for unsigned modulo.
17453         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
17454         even if op1 does not satisfy integer_pow2p.
17456         PR other/64370
17457         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
17459 2015-01-12  Jeff Law  <law@redhat.com>
17461         PR target/64461
17462         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
17463         (trunchiqi2, truncsihi2): Similarly.
17465         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
17466         rather than calling F.
17468 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17470         * tsan.c (instrument_expr): Use force_gimple_operand.
17471         Use may_be_nonaddressable_p instead of is_gimple_addressable.
17473 2015-01-12  Richard Biener  <rguenther@suse.de>
17475         PR tree-optimization/64530
17476         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
17477         back dr1.
17479 2015-01-12  Richard Biener  <rguenther@suse.de>
17481         PR middle-end/64357
17482         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
17483         latches properly.
17485 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17487         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
17488         Cortex-A17 tuning parameters.
17489         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
17491 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17493         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
17494         * config/arm/arm.c (arm_macro_fusion_p): New function.
17495         (arm_macro_fusion_pair_p): Likewise.
17496         (TARGET_SCHED_MACRO_FUSION_P): Define.
17497         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
17498         (ARM_FUSE_NOTHING): Likewise.
17499         (ARM_FUSE_MOVW_MOVT): Likewise.
17500         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
17501         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
17502         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
17503         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
17504         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
17505         arm_cortex_a5_tune): Specify fuseable_ops value.
17507 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
17509         PR bootstrap/64561
17510         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
17511         test for PIE with copy reloc.
17512         * configure: Regenerated.
17514 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17516         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
17517         in gen_rtx_REG.
17518         (arm_tls_descseq_addr): Likewise.
17519         (arm_gen_movmemqi): Likewise.
17520         (arm_expand_epilogue_apcs_frame): Likewise.
17521         (arm_expand_epilogue): Likewise.
17522         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
17523         in gen_rtx_REG.
17525 2015-01-12  Martin Liska  <mliska@suse.cz>
17527         PR ipa/64550
17528         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
17529         volatility for correct operands.
17531 2015-01-12  Martin Liska  <mliska@suse.cz>
17533         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
17534         indication that a function is not leaf.
17535         (sem_function::compare_polymorphic_p): Likewise.
17537 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17539         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
17540         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
17541         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
17542         fold-const.h, tree-check.h.
17544 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
17546         PR ipa/63967
17547         PR ipa/64425
17548         * ipa-inline.c (compute_uninlined_call_time,
17549         compute_inlined_call_time): Use counts for extra precision when
17550         needed possible.
17551         (big_speedup_p): Fix formating.
17552         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
17553         (relative_time_benefit): Remove.
17554         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
17555         merge guessed and read profile paths.
17556         (inline_small_functions): Count only !optimize_size functions into
17557         initial size; be more lax about sanity check when profile is used;
17558         be sure to update inlined function profile when profile is read.
17560 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
17562         PR ipa/63470
17563         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
17564         cost when edge becomes direct.
17565         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
17566         is resolved or when introducing new speculation.
17568 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
17570         PR ipa/64551
17571         PR ipa/64552
17572         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
17573         '||' to fix typo issue.
17575         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
17576         accept and return NULL.
17578 2015-01-12  Martin Liska  <mliska@suse.cz>
17580         * cgraph.c (cgraph_edge::remove_callee): Move function to header
17581         file for being inlined.
17582         (cgraph_set_edge_callee): Delete.
17583         (cgraph_edge::redirect_callee): Move function to header file
17584         for being inlined.
17585         (cgraph_edge::make_direct): Use new function.
17586         (cgraph_edge::dump_edge_flags): New function created from
17587         static dump_edge_flags function.
17588         (cgraph_node::dump): Use new function.
17589         (cgraph_edge::verify_count_and_frequency): New function created
17590         from verify_edge_count_and_frequency.
17591         (cgraph_edge::verify_corresponds_to_fndecl): New function created
17592         from verify_edge_corresponds_to_fndecl.
17593         (verify_edge_corresponds_to_fndecl): Delete.
17594         (cgraph_node::verify_node): Use new function.
17595         * cgraph.h (cgraph_edge::set_callee): New function.
17596         (cgraph_edge::dump_edge_flags): Likewise.
17597         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
17599 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
17601         * ipa-utils.c (estimate_function_body_sizes): Do not
17602         free node params when called late with early=true.
17604 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
17606         * doc/md.texi (Instruction Patterns): Rewrite text for
17607         clarity.
17608         (Example): Likewise.
17610 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
17612         * doc/invoke.texi (Option Summary): Break long lines.
17613         [(-fdiagnostics-color)]: Put long literal in @smallexample
17614         instead of inline.
17615         [(-fsanitize-recover)]: Likewise.
17616         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
17617         [(-ffast-math)]: Likewise.
17618         [(--param max-inline-insns-recursive)]: Likewise.
17619         [(--param max-inline-recursive-depth)]: Likewise.
17620         [(-mno-text-section-literals)]: Likewise.
17622 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
17624         * doc/install.texi: Update for libgomp being renamed from "GNU
17625         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
17626         Runtime Library".
17627         * doc/sourcebuild.texi: Likewise.
17629 2015-01-10  Anthony Green  <green@moxielogic.com>
17631         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
17632         mul.x availability for moxiebox configuration.
17634 2015-01-09  Anthony Green  <green@moxielogic.com>
17636         * config/moxie/moxie.md: Tabify assembly output.
17638 2015-01-09  Anthony Green  <green@moxielogic.com>
17640         * config/moxie/moxie.md (CC_REG): Correct register definition.
17642 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
17644         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
17645         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
17646         of log files.
17648 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
17650         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
17652 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
17653             Jakub Jelinek  <jakub@redhat.com>
17655         PR middle-end/64412
17656         * lto-streamer.h (lto_stream_offload_p): New declaration.
17657         * lto-streamer.c (lto_stream_offload_p): New variable.
17658         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
17659         at the same time as section_name_prefix.
17660         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
17661         if lto_stream_offload_p.
17662         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
17663         stream TREE_TARGET_OPTION if lto_stream_offload_p.
17664         (write_ts_function_decl_tree_pointers): Don't
17665         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
17666         * tree-streamer-in.c (unpack_value_fields): Don't stream
17667         TREE_TARGET_OPTION in if ACCEL_COMPILER.
17668         (lto_input_ts_function_decl_tree_pointers): Don't stream
17669         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
17670         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
17671         instead of section_name_prefix string comparisons.
17673 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
17675         PR rtl-optimization/64536
17676         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
17677         tablejumps.
17679 2015-01-09  Michael Collison  <michael.collison@linaro.org>
17681         PR tree-optimization/64322
17682         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
17683         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
17685 2015-01-09  Tom de Vries  <tom@codesourcery.com>
17687         PR rtl-optimization/64539
17688         * regcprop.c (kill_clobbered_values): Factor out of ...
17689         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
17690         instead of note_stores with kill_clobbered_value.
17692 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
17694          * ginclude/unwind-arm-common.h: Revert previous commit.
17696 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
17698         * config.gcc (arm*-*-freebsd*): New configuration.
17699         * config/arm/freebsd.h: New file.
17700         * config.host: Add extra components for arm*-*-freebsd*.
17701         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
17702         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
17704 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17706         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
17707         for -mcpu=e6500.
17708         * config/rs6000/t-rtems: Add e6500 multilibs.
17710 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17712         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
17713         MPC8540.
17715 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17717         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
17718         MULTILIB_EXCEPTIONS.
17720 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17722         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
17723         MULTILIB_EXCEPTIONS.
17725 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17727         * config/arm/t-rtems-eabi: Rename to...
17728         * config/arm/t-rtems: ...this.
17729         * config/arm/rtems-eabi.h: Rename to...
17730         * config/arm/rtems.h: ...this.
17731         * config.gcc (arm*-*-rtems*): Reflect changes above.
17733 2015-01-09  Richard Biener  <rguenther@suse.de>
17735         PR tree-optimization/64410
17736         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
17737         on the LHS.
17738         (execute_update_addresses_taken): Deal with that.
17739         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
17740         loads/stores for complex variables.
17742 2015-01-09  Martin Liska  <mliska@suse.cz>
17744         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
17745         name comparison.
17746         (func_checker::compare_memory_operand): New function.
17747         (func_checker::compare_operand): Split case to newly
17748         added functions.
17749         (func_checker::compare_cst_or_decl): New function.
17750         (func_checker::compare_gimple_call): Identify
17751         memory operands.
17752         (func_checker::compare_gimple_assign): Likewise.
17753         * ipa-icf-gimple.h: New function.
17755 2015-01-09  Martin Liska  <mliska@suse.cz>
17757         PR ipa/64503
17758         * sreal.c (sreal::dump): Change unsigned format to signed for
17759         m_exp value.
17760         (sreal::to_double): Replace exp2 with scalbln.
17762 2015-01-09  Martin Liska  <mliska@suse.cz>
17764         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
17765         * ipa-icf.c (sem_function::equals_private): Add support for target and
17766         (sem_item_optimizer::merge_classes): Remove redundant function
17767         optimization flags comparison.
17768         * tree.h (target_opts_for_fn): New function.
17770 2015-01-09  Tom de Vries  <tom@codesourcery.com>
17772         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
17774 2015-01-09  Kito Cheng  <kito@0xlab.org>
17776         PR rtl-optimization/64348
17777         * lra-constraints.c (split_reg): Fix caller-save store/restore
17778         instruction generation.
17780 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
17782         PR gcov-profile/61790
17783         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
17784         long long.  Fallback to int64_t if host doesn't have long long and
17785         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
17787 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
17789         PR tree-optimization/63989
17790         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
17791         from 1000 to 10000.
17792         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
17793         (get_stridx): If we don't have a record for certain SSA_NAME,
17794         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
17795         constant offset, call get_stridx_plus_constant.
17796         (get_stridx_plus_constant): New function.
17797         (zero_length_string): Don't use get_stridx here.
17799         PR target/55023
17800         PR middle-end/64388
17801         * dse.c (struct insn_info): Mention frame_read set also
17802         before reload for tail calls on some targets.
17803         (scan_insn): Revert 2014-12-22 change.  Set frame_read
17804         also before reload for tail calls if
17805         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
17806         instead of add_non_frame_wild_read for non-const/memset
17807         tail calls after reload.
17809 2015-01-08  Jason Merrill  <jason@redhat.com>
17811         * ubsan.c (do_ubsan_in_current_function): New.
17812         (pass_ubsan::gate): Use it.
17813         * ubsan.h: Declare it.
17814         * convert.c (convert_to_integer): Use it.
17816 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
17818         PR target/64338
17819         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
17820         compare_code when it is unconditionally overwritten afterwards.
17821         Use ix86_reverse_condition instead of reverse_condition.  Don't
17822         change code if *reverse_condition* returned UNKNOWN and don't
17823         swap ct/cf and negate diff in that case.
17825 2015-01-08  Mike Stump  <mikestump@comcast.net>
17827         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
17828         (pass_tsan_O0::gate): Likewise.
17829         * extend.texi (Function Attributes): Add no_sanitize_thread
17830         documentation.
17832 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
17834         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
17835         for registering builtins.
17836         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
17837         add -fopenmp to the argv_obstack used when invoking
17838         compile_for_target.
17840         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
17841         add "-m32" or "-m64" to argv_obstack.
17842         (generate_host_descr_file): Likewise, when invoking host_compiler.
17843         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
17844         ld.
17846 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
17848         * config/sh/sh-mem.cc: Use constant as second operand when emitting
17849         tstsi_t insns.
17851 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
17853         PR target/55212
17854         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
17855         constant load if constant operand fits into I08.
17857 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
17859         PR sanitizer/64336
17860         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
17861         and TREE_THIS_VOLATILE for MEM_REFs.
17862         (build5_stat): Fix up initialization of TREE_READONLY and
17863         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
17865 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
17867         PR target/64533
17868         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
17869         of r for the second alternative of the destination operand.
17871 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
17873         PR target/36557
17874         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
17876 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
17878         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
17879         keywords.
17880         ([-fivar-visibility], [-fvisibility]): Likewise.
17882 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
17884         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
17885         the file where @code, @command, etc is more appropriate.
17887 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
17889         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
17890         of -mrecip= documentation.
17892 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
17894         PR target/64505
17895         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
17896         correct reload handler if -m32 -mpowerpc64 is used.
17898 2015-01-06  Tom de Vries  <tom@codesourcery.com>
17900         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
17902 2015-01-08  Christian Bruel  <christian.bruel@st.com>
17904         PR target/64507
17905         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
17907 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17909         PR tree-optimization/63259
17910         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
17911         if optab exists for 16bit byteswap.
17913 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
17915         * opts.c (common_handle_option): Add support for
17916         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
17917         * doc/invoke.texi: Document -fno-sanitize=all,
17918         -f{,no-}sanitize-recover=all.  Document that
17919         -fsanitize=float-cast-overflow is not enabled
17920         by -fsanitize=undefined.  Fix up documentation
17921         of -f{,no-}sanitize-recover.
17923 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
17925         * config.gcc: Add Visium support.
17926         * configure.ac: Likewise.
17927         * configure: Regenerate.
17928         * doc/extend.texi (interrupt attribute): Add Visium.
17929         * doc/invoke.texi: Document Visium options.
17930         * doc/install.texi: Document Visium target.
17931         * doc/md.texi: Document Visium constraints.
17932         * common/config/visium: New directory.
17933         * config/visium: Likewise.
17935 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
17937         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
17938         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
17940 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
17942         * combine.c (combine_validate_cost): Do not count the cost of a
17943         split I2 twice.  Do not display it twice in the dump, either.
17945 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
17947         Revert parts of r219199.
17948         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
17949         <inttypes.h>.
17950         ([-Wtraditional]): Restore markup on <limits.h>.
17952 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
17954         PR c++/31397
17955         * doc/invoke.texi: Document -Wsuggest-override.
17957 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
17959         PR rtl-optimization/64287
17960         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
17961         (process_options): Disable flag_ipa_ra if profiling.
17963 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
17965         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
17967 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
17969         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
17970         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
17971         put under #if TARGET_LOOPS guard.
17973 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
17975         * config/i386/i386.c (output_387_binary_op): Use std::swap.
17977 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
17979         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
17980         * rtl.h (refers_to_regno_p): Add overload.
17981         * cse.c: Use it.
17982         * bt-load.c: Likewise.
17983         * combine.c: Likewise.
17984         * df-scan.c: Likewise.
17985         * sched-deps.c: Likewise.
17986         * config/s390/s390.c: Likewise.
17987         * config/m32r/m32r.c: Likewise.
17988         * config/rs6000/spe.md: Likewise.
17989         * config/rs6000/rs6000.c: Likewise.
17990         * config/pa/pa.c: Likewise.
17991         * config/stormy16/stormy16.c: Likewise.
17992         * config/cris/cris.c: Likewise.
17993         * config/arc/arc.md: Likewise.
17994         * config/arc/arc.c: Likewise.
17995         * config/sh/sh.md: Likewise.
17996         * config/sh/sh.c: Likewise.
17997         * config/frv/frv.c: Likewise.
17999 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
18001         PR sanitizer/64265
18002         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
18003         call as cleanup of the whole body.
18004         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
18005         * tsan.c (replace_func_exit): New function.
18006         (instrument_func_exit): Moved earlier.
18007         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
18008         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
18009         been found.
18010         (tsan_pass): Don't call instrument_func_exit.
18011         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
18012         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
18013         inlining.
18015         PR sanitizer/64344
18016         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
18017         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
18018         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
18019         if the result is integer_zerop, return NULL_TREE.
18020         * convert.c (convert_to_integer): Pass expr as ARG.
18022         PR tree-optimization/64465
18023         * tree-inline.c (redirect_all_calls): During inlining
18024         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
18025         changed the stmt to a non-throwing call.
18027 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
18029         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
18030         etc markup throughout the file.
18032 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18034         Enable experimental TSAN support for Ada.
18035         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
18037 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
18039         PR tree-optimization/64494
18040         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
18041         clear SSA_NAME_ANTI_RANGE_P flag.
18043 2015-01-05  Marek Polacek  <polacek@redhat.com>
18045         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
18047 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
18049         Update copyright years.
18051         * gcc.c (process_command): Update copyright notice dates.
18052         * gcov-dump.c: Ditto.
18053         * gcov.c: Ditto.
18054         * doc/cpp.texi: Bump @copying's copyright year.
18055         * doc/cppinternals.texi: Ditto.
18056         * doc/gcc.texi: Ditto.
18057         * doc/gccint.texi: Ditto.
18058         * doc/gcov.texi: Ditto.
18059         * doc/install.texi: Ditto.
18060         * doc/invoke.texi: Ditto.
18062         * auto-profile.c, auto-profile.h: Fix up Copyright line.
18064 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
18066         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
18067         verb tense, etc.
18068         ([-fvtable-verify], [-fvtv-debug]): Likewise.
18069         ([-Wabi]): Likewise.
18070         ([-fmessage-length]): Likewise.
18071         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
18072         ([-Wno-discarded-qualifiers]): Likewise.
18073         ([-Wnodiscarded-array-qualifiers]): Likewise.
18074         ([-Wno-virtual-move-assign]): Likewise.
18075         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
18076         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
18077         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
18078         ([-fsanitize-undefined-trap-on-error]): Likewise.
18079         ([-floop-interchange]): Likewise.
18080         ([-ftree-coalesce-inlined-vars]): Likewise.
18081         ([-fvect-cost-model]): Likewise.
18082         ([-flto]): Likewise.
18083         ([--param]): Likewise.
18084         (Spec Files): Likewise.
18085         ([-mstrict-align]): Likewise.
18086         ([-mfix-cortex-a53-835769]): Likewise.
18087         ([-march], [-mtune]): Likewise.
18088         ([-mpic-register]): Likewise.
18089         ([-munaligned-access]): Likewise.
18090         ([-msp8]): Likewise.
18091         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
18092         (AVR Built-in Macros): Likewise.
18093         ([-mpreferred-stack-boundary]): Likewise.
18094         ([-mtune-crtl]): Likewise.
18095         ([-mashf]): Likewise.
18096         ([-mmcu=]): Likewise.
18097         ([-minrt]): Likewise.
18098         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
18099         ([-mupper-regs]): Likewise.
18100         ([-matomic-model]): Likewise.
18101         ([-mdiv]): Likewise.
18102         ([-mzdcbranch]): Likewise.
18103         ([-mdisable-callt]): Likewise.
18104         ([-msoft-float]): Likewise.
18105         ([-m8byte-align]): Likewise.
18106         ([-fstack-reuse]): Likewise.
18108 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
18110         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
18111         Fix markup, light copy-editing.
18112         ([-fauto-profile]): Rewrite to fix formatting and content
18113         problems.
18115 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
18117         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
18118         Copy-edit description.
18119         ([-fisolate-erroneous-paths-attribute]): Likewise.
18120         * common.opt (fisolate-erroneous-paths-dereference):
18121         Copy-edit description.
18122         (fisolate-erroneous-paths-attribute): Likewise.
18124 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
18126         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
18127         tidy grammar.
18129 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
18131         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
18132         ([-fvtv-debug]): Likewise.
18133         ([-Wc++-compat]): Likewise.
18134         ([-Wc++11-compat]): Likewise.
18135         ([-Wc++14-compat]): Likewise.
18136         ([-Wno-sized-deallocation]): Likewise.
18137         ([-femit-class-debug-always]): Likewise.
18138         ([-femit-struct-debug-detailed]): Likewise.
18139         ([-fno-keep-inline-dllexport]): Likewise.
18140         ([-fira-algorithm]): Likewise.
18141         ([-fira-region]): Likewise.
18142         ([-flra-remat]): Likewise.
18143         ([-fipa-ra]): Likewise.
18144         ([-fhoist-adjacent-loads]): Likewise.
18145         ([-fisolate-erroneous-paths-dereference]): Likewise.
18146         ([-fisolate-erroneous-paths-attribute]): Likewise.
18147         ([-ftree-switch-conversion]): Likewise.
18148         ([-ftree-tail-merge]): Likewise.
18149         ([-ftree-loop-if-convert]): Likewise.
18150         ([-ftree-loop-if-convert-stores]): Likewise.
18151         ([-ftree-loop-distribution]): Likewise.
18152         ([-ftree-loop-distribute-patterns]): Likewise.
18153         ([-flto-compression-level]): Likewise.
18154         ([-flto-report]): Likewise.
18155         ([-flto-report-wpa]): Likewise.
18156         ([-fuse-linker-plugin]): Likewise.
18157         ([-mfix-cortex-a53-835769]): Likewise.
18158         ([-mno-fix-cortex-a53-835769]): Likewise.
18159         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
18160         explicit listing; add a note to the discussion indicating they
18161         exist.  Reorder table to group similar options.  Add missing
18162         @opindex entries.  Add @need commands throughout the table to
18163         allow it to be split across multiple pages.
18164         ([-m8bit-idiv]): Fix @opindex.
18165         ([-mavx256-split-unaligned-load]): Likewise.
18166         ([-mavx256-split-unaligned-store]): Likewise.
18167         ([-mstack-protector-guard]): Likewise.
18168         ([-mcpu=]): Likewise.
18169         ([-mcpu]): Likewise.
18170         ([-mpointer-size=]): Likewise.
18172 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
18174         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
18175         instead of `m' constraint.  Likewise for unnamed movb comparison
18176         patterns using reg_before_reload_operand predicate.
18177         * config/pa/predicates.md (reg_before_reload_operand): Tighten
18178         predicate to reject register index and LO_SUM DLT memory forms
18179         after reload.
18181 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
18183         * doc/invoke.texi (Option Summary): Fix spelling of
18184         -fdevirtualize-at-ltrans.
18185         ([-fdevirtualize]): Fix markup.
18186         ([-fdevirtualize-speculatively]): Fix typo.
18187         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
18188         implementor-speaky.
18189         * common.opt (fdevirtualize-at-ltrans): Likewise.
18190         * ipa-devirt.c: Fix typos in comments throughout the file.
18191         (ipa_devirt): Fix typos in format strings for dump output.
18193 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
18195         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
18196         discussion of defaults, light copy-editing.
18198 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18200         * tsan.c (instrument_expr): corrected previous checkin.
18202 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18204         Instrument bit field and unaligned accesses for TSAN.
18205         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
18206         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
18207         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
18208         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
18209         unaligned memory regions.
18211 2015-01-01  Anthony Green  <green@moxielogic.com>
18213         * config/moxie/predicates.md (moxie_general_movsrc_operand):
18214         Restrict move source register offsets to 16 bits.
18216 Copyright (C) 2015 Free Software Foundation, Inc.
18218 Copying and distribution of this file, with or without modification,
18219 are permitted in any medium without royalty provided the copyright
18220 notice and this notice are preserved.