1 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
3 * tree-hash-traits.h (tree_hash): New class.
4 * except.c: Include tree-hash-traits.h.
5 (tree_hash_traits): Use tree_hash.
7 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
10 * sese.c: Include tree-hash-traits.h.
11 (rename_map_hasher): Use tree_ssa_name_hasher.
13 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15 * tree-hash-traits.h (tree_decl_hash): New class.
16 * tree-ssa-strlen.c: Include tree-hash-traits.h.
17 (stridxlist_hash_traits): Use tree_decl_hash.
19 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
21 * tree-hash-traits.h: New file.
22 (tree_operand_hash): New class.
23 * sanopt.c: Include tree-hash-traits.h.
24 (sanopt_tree_map_traits): Use tree_operand_hash.
25 * tree-if-conv.c: Include tree-hash-traits.h.
26 (phi_args_hash_traits): Use tree_operand_hash.
27 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
28 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
30 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
32 * hash-map-traits.h: Include hash-traits.h.
33 (simple_hashmap_traits): New class.
34 * mem-stats.h (hash_map): Change the default traits to
35 simple_hashmap_traits<default_hash_traits<Key> >.
37 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
39 * hash-table.h: Update comments.
41 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
43 * hash-traits.h (default_hash_traits): New structure.
44 * hash-set.h (default_hashset_traits): Delete.
45 (hash_set): Use default_hash_traits<Key> instead of
46 default_hashset_traits. Delete hash_entry type and use Key directly.
47 * ipa-devirt.c (pair_traits): Delete.
48 (default_hash_traits <type_pair>): Override.
49 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
50 (odr_types_equivalent_p, add_type_duplicate): Likewise.
52 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
54 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
56 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
58 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
59 (has_is_empty, is_empty_helper): Delete.
60 (has_mark_deleted, mark_deleted_helper): Delete.
61 (has_mark_empty, mark_empty_helper): Delete.
62 (hash_table::is_deleted): Call the Descriptor unconditionally.
63 (hash_table::is_empty): Likewise.
64 (hash_table::mark_deleted): Likewise.
65 (hash_table::mark_empty): Likewise.
67 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
69 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
70 redundant typedefs and members.
71 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
73 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
74 * ipa-devirt.c (odr_name_hasher): Likewise.
75 (polymorphic_call_target_hasher): Likewise.
76 * ira-costs.c (cost_classes_hasher): Likewise.
77 * statistics.c (stats_counter_hasher): Likewise.
78 * trans-mem.c (log_entry_hasher): Likewise.
79 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
80 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
81 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
82 * var-tracking.c (variable_hasher): Likewise.
83 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
84 Remove redundant typedefs and members.
86 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
88 * hash-traits.h (ggc_cache_hasher): Rename to...
89 (ggc_cache_remove): ...this and remove typedefs.
90 (ggc_cache_ptr_hash): New class.
91 * hash-table.h: Update commentary.
92 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
93 rather than ggc_cache_hasher.
94 (const_wide_int_hasher, reg_attr_hasher): Likewise.
95 (const_double_hasher, const_fixed_hasher): Likewise.
96 * function.c (insn_cache_hasher): Likewise.
97 * trans-mem.c (tm_wrapper_hasher): Likewise.
98 * tree.h (tree_decl_map_cache_hasher): Likewise.
99 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
100 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
101 * ubsan.c (tree_type_map_cache_hasher): Likewise.
102 * varasm.c (tm_clone_hasher): Likewise.
103 * config/i386/i386.c (dllimport_hasher): Likewise.
104 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
105 (tree_hasher): Likewise.
107 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
109 * hash-traits.h (ggc_hasher): Rename to...
110 (ggc_remover): ...this and remove typedefs.
111 (ggc_cache_hasher): Update accordingly. Add typedefs.
112 (ggc_ptr_hash): New class.
113 * hash-table.h: Update comment.
114 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
116 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
117 (tree_descriptor_hasher): Likewise.
118 * cgraph.c (function_version_hasher): Likewise.
119 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
120 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
121 (dw_loc_list_hasher, addr_hasher): Likewise.
122 * function.h (used_type_hasher): Likewise.
123 * function.c (temp_address_hasher): Likewise.
124 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
125 * libfuncs.h (libfunc_hasher): Likewise.
126 * lto-streamer.h (decl_state_hasher): Likewise.
127 * optabs.c (libfunc_decl_hasher): Likewise.
128 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
129 * varasm.c (section_hasher, object_block_hasher): Likewise.
130 (const_rtx_desc_hasher): Likewise.
131 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
132 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
134 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
136 * hash-traits.h (free_ptr_hash): New class.
137 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
138 rather than typed_free_remove. Remove redudant typedefs.
139 (external_ref_hasher): Likewise.
140 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
141 (ehspec_hasher): Likewise.
142 * ggc-common.c (saving_hasher): Likewise.
143 * gimplify.c (gimplify_hasher): Likewise.
144 * haifa-sched.c (delay_i2_hasher): Likewise.
145 * loop-invariant.c (invariant_expr_hasher): Likewise.
146 * loop-iv.c (biv_entry_hasher): Likewise.
147 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
148 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
149 * tree-cfg.c (locus_discrim_hasher): Likewise.
150 * tree-eh.c (finally_tree_hasher): Likewise.
151 * tree-into-ssa.c (var_info_hasher): Likewise.
152 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
153 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
154 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
155 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
156 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
157 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
158 (shared_bitmap_hasher): Likewise.
159 * tree-ssa-threadupdate.c (redirection_data): Likewise.
160 * tree-vectorizer.h (peel_info_hasher): Likewise.
161 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
162 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
164 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
166 * hash-table.h: Update comments.
167 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
168 (nofree_ptr_hash): New class.
169 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
170 than typed_noop_remove. Remove redudant typedefs.
171 * attribs.c (attribute_hasher): Likewise.
172 * cfg.c (bb_copy_hasher): Likewise.
173 * cselib.c (cselib_hasher): Likewise.
174 * dse.c (invariant_group_base_hasher): Likewise.
175 * dwarf2cfi.c (trace_info_hasher): Likewise.
176 * dwarf2out.c (macinfo_entry_hasher): Likewise.
177 (comdat_type_hasher, loc_list_hasher): Likewise.
178 * gcse.c (pre_ldst_expr_hasher): Likewise.
179 * genmatch.c (id_base): Likewise.
180 * genrecog.c (test_pattern_hasher): Likewise.
181 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
182 * haifa-sched.c (delay_i1_hasher): Likewise.
183 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
184 * ipa-icf.h (congruence_class_group_hash): Likewise.
185 * ipa-profile.c (histogram_hash): Likewise.
186 * ira-color.c (allocno_hard_regs_hasher): Likewise.
187 * lto-streamer.h (string_slot_hasher): Likewise.
188 * lto-streamer.c (tree_entry_hasher): Likewise.
189 * plugin.c (event_hasher): Likewise.
190 * postreload-gcse.c (expr_hasher): Likewise.
191 * store-motion.c (st_expr_hasher): Likewise.
192 * tree-sra.c (uid_decl_hasher): Likewise.
193 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
194 (ssa_name_var_hash): Likewise.
195 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
196 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
197 * tree-ssa-pre.c (pre_expr_d): Likewise.
198 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
199 * vtable-verify.h (registration_hasher): Likewise.
200 * vtable-verify.c (vtbl_map_hasher): Likewise.
201 * config/arm/arm.c (libcall_hasher): Likewise.
202 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
203 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
204 * config/sol2.c (comdat_entry_hasher): Likewise.
205 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
206 (print_fold_checksum, fold_checksum_tree): Likewise.
207 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
208 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
209 (fold_build_call_array_loc): Likewise.
210 * tree-ssa-ccp.c (gimple_htab): Likewise.
211 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
212 rather than pointer_type.
214 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
216 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
217 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
219 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
221 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
222 (ggc_hasher::ggc_mx): Likewise.
223 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
224 that duplicate ggc_hasher ones.
226 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
228 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
229 (gt_cleare_cache): Check here for deleted and empty entries.
230 Replace handle_cache_entry with a call to keep_cache_entry.
231 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
232 (ggc_cache_hasher::keep_cache_entry): New function.
233 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
234 (tm_wrapper_hasher::keep_cache_entry): New function.
235 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
236 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
237 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
238 (type_cache_hasher::keep_cache_entry): New function.
239 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
240 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
241 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
242 (tree_type_map_cache_hasher::keep_cache_entry): New function.
243 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
244 (tm_clone_hasher::keep_cache_entry): New function.
245 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
246 (dllimport_hasher::keep_cache_entry): New function.
248 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
250 * hash-table.h: Include hash-traits.h.
251 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
252 (ggc_cache_hasher): Move to...
253 * hash-traits.h: ...this new file.
255 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
257 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
258 struct cl_optimization.
259 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
260 * tree.c (make_node_stat): Allocate cl_optimization struct.
261 (copy_node_stat): Allocate and copy cl_optimization struct.
263 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
265 * function.h (struct incoming_args): Move struct.
266 (pass_by_reference, reference_callee_copied): Remove prototypes.
267 * emit-rtl.h (struct incoming_args): Relocate struct here.
268 * calls.h (pass_by_reference, reference_callee_copied): Relocate
270 * function.c (pass_by_reference, reference_callee_copied): Move.
271 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
272 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
273 * ipa-chkp.c: Include calls.h.
275 2015-06-25 Andrew Macleod <amacleod@redhat.com>
277 * alias.h (alias_set_type): Move typedef.
278 * coretypes.h (alias_set_type): Relocate typedef here.
279 * rtl.h: Don't include alias.h.
281 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
283 * cgraph.h (cgraph_rtl_info): Move to rtl.h
284 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
286 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
287 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
289 * calls.c: Include hard-reg-set.h before rtl.h.
292 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
293 Vladimir Makarov <vmakarov@redhat.com>
295 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
298 2015-06-25 Richard Biener <rguenther@suse.de>
300 * fold-const.c (fold_binary_loc): Move simplification of
302 * match.pd: ... here.
304 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
306 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
308 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
310 * match.pd: Add patterns for vec_conds between 1 and 0.
312 2015-06-25 Richard Biener <rguenther@suse.de>
314 * tree-vect-stmts.c (vectorizable_conversion): Do not set
315 STMT_VINFO_VEC_STMT for SLP.
316 (vectorizable_store): Likewise.
317 (vectorizable_load): Likewise.
318 (vect_transform_stmt): Catch SLP vectorization clobbering
321 2015-06-25 Richard Biener <rguenther@suse.de>
323 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
325 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
326 cleanup resulting dead code and parameters.
327 (vect_transform_slp_perm_load): Adjust.
329 2015-06-25 Nick Clifton <nickc@redhat.com>
331 * config/bfin/bfin.c (bfin_expand_prologue): Set
332 current_function_static_stack_size if flag_stack_usage_info is
334 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
335 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
336 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
337 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
339 2015-06-25 Tom de Vries <tom@codesourcery.com>
341 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
342 comment that the generated IV is unsigned.
344 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
347 * config/arm/arm.c (arm_dbx_register_number): Return
348 DWARF_FRAME_REGISTERS by default.
350 2015-06-25 Tom de Vries <tom@codesourcery.com>
352 * dominance.c (calculate_dominance_info): Fix verify_dominators call
353 argument. Call verify_dominator when reusing dominator info.
355 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
358 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
359 an additional element of the unspec vector. Modify indices
361 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
362 * config/sh/sh.c (prepare_move_operands): Pass incremented
363 const_int to gen_GOTaddr2picreg.
364 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
366 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
368 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
369 Condition on TARGET_FLOAT.
371 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
373 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
376 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
378 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
380 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
381 aarch64_err_no_fpadvsimd.
383 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
384 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
385 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
386 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
387 Turn error into assert, test TARGET_FLOAT.
388 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
391 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
394 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
396 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
398 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
400 2015-06-24 Renlin Li <renlin.li@arm.com>
402 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
403 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
405 2015-06-24 Richard Biener <rguenther@suse.de>
407 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
409 (lower_opt_convert): Support lowering of conditional view_convert.
410 (parser::parse_operation): Likewise.
411 (parser::parse_for): Likewise.
413 2015-06-24 Renlin Li <renlin.li@arm.com>
415 * varasm.c (emit_local): Use unsigned int for align variable.
417 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
420 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
421 for negative numbers.
423 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
425 PR rtl-optimization/66306
426 * reload.c (find_reloads): Swap the match_dup info for
427 commutative operands.
429 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
431 * config/s390/vx-builtins.md
432 ("vec_scatter_element<mode>_<non_vec_int>")
433 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
434 attribute with bhfgq.
436 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
438 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
440 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
442 * config/s390/s390-builtin-types.def: Add flag to indicate the
443 options under which the function type is needed.
444 * config/s390/s390-builtins.def: Add flag to indicate the options
445 under which the builtin is enabled.
446 * config/s390/s390-builtins.h: Add flags parameter to macro
448 (bflags_for_builtin): New function.
449 (flags_for_builtin): Renamed to ...
450 (opflags_for_builtin): ... this.
451 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
452 flags_for_builtin to bflags_for_builtin and
453 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
454 * config/s390/s390.c: Add initialization of bflags_builtin and
455 opflags_builtin arrays.
456 Remove code for flags_builtin.
457 (s390_init_builtins): Only create builtin function types if one of
458 their flags is active.
459 Only create builtins if all of their flags are active.
460 (s390_expand_builtin): Rename flags_for_builtin to
463 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
465 * config/s390/vecintrin.h: Remove internal builtins.
467 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
469 * config/s390/s390.c (s390_secondary_reload): Fix check for
470 GENERAL_REGS register class.
472 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
474 * config/s390/s390.c (s390_support_vector_misalignment): Call
475 default implementation for !TARGET_VX.
477 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
479 * config/s390/s390.c (s390_legitimate_constant_p): Add
482 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
484 * config/s390/s390.c (s390_vector_abi): New variable definition.
485 (s390_check_type_for_vector_abi): New function.
486 (TARGET_ASM_FILE_END): New macro definition.
487 (s390_asm_file_end): New function.
488 (s390_function_arg): Call s390_check_type_for_vector_abi.
489 (s390_gimplify_va_arg): Likewise.
490 * configure: Regenerate.
491 * configure.ac: Check for .gnu_attribute Binutils feature.
493 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
496 * config/bfin/bfin.c (hwloop_optimize): Initialize
497 JUMP_LABEL for newly created jump.
499 2015-06-23 Tristan Gingold <gingold@adacore.com>
501 * collect-utils.c (collect_wait): Unlink the response file here
504 (utils_cleanup): ...and here.
506 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
508 * df-scan.c: Don't include target-def.h.
509 * targhooks.c: Likewise.
510 * config/arm/arm-c.c: Likewise.
511 * config/i386/i386-c.c: Likewise.
512 * config/nds32/nds32-cost.c: Likewise.
513 * config/nds32/nds32-fp-as-gp.c: Likewise.
514 * config/nds32/nds32-intrinsic.c: Likewise.
515 * config/nds32/nds32-isr.c: Likewise.
516 * config/nds32/nds32-md-auxiliary.c: Likewise.
517 * config/nds32/nds32-memory-manipulation.c: Likewise.
518 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
519 * config/nds32/nds32-predicates.c: Likewise.
521 2015-06-23 Richard Biener <rguenther@suse.de>
523 PR tree-optimization/66636
524 * tree-vect-stmts.c (vectorizable_store): Properly compute the
525 def type for further defs for strided stores.
527 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
529 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
531 (setcc_int<mode>, setcc_float<mode>): Reformat.
533 2015-06-23 Marek Polacek <polacek@redhat.com>
535 * match.pd ((x + y) - (x | y) -> x & y,
536 (x + y) - (x & y) -> x | y): New patterns.
538 2015-06-23 Ludovic Courtès <ludo@gnu.org>
541 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
542 '-dynamic-linker' within %{!shared: ...}.
544 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
547 * config/i386/predicates.md (addsub_vm_operator): New predicate.
548 (addsub_vs_operator): Ditto.
549 (addsub_vs_parallel): Ditto.
550 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
551 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
552 Put minus RTX before plus and adjust vec_merge selector.
553 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
554 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
555 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
556 (addsub vec_merge splitters): New combiner splitters.
557 (addsub vec_select/vec_concat splitters): Ditto.
559 2015-06-23 Bin Cheng <bin.cheng@arm.com>
561 PR tree-optimization/66449
562 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
563 POINTER_PLUS_EXPR for pointers.
565 2015-06-23 Alan Modra <amodra@gmail.com>
567 * rtlanal.c (commutative_operand_precedence): Correct comments.
568 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
569 declaration. Return an int. Distinguish REG,REG return from
571 (struct simplify_plus_minus_op_data): Make local to function.
572 (simplify_plus_minus): Don't set canonicalized if merely sorting
573 registers. Avoid packing ops if nothing changes. White space fixes.
575 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
577 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
578 -fdump-ada-spec is passed but not if -fsyntax-only is.
580 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
583 * lra-lives.c (process_bb_lives): Check insn copying the same
584 reload pseudo and don't create a copy for it.
586 2015-06-22 Tom de Vries <tom@codesourcery.com>
588 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
591 2015-06-22 Tom de Vries <tom@codesourcery.com>
593 * builtins.def (DEF_GOMP_BUILTIN): Test
594 'flag_tree_parallelize_loops > 1' instead of
595 'flag_tree_parallelize_loops'. Test flag_cilkplus.
597 2015-06-22 Tom de Vries <tom@codesourcery.com>
599 * dominance.c (calculate_dominance_info): Verify dominators if
602 2015-06-22 Marek Polacek <polacek@redhat.com>
604 * match.pd ((x ^ y) ^ (x | y) -> x & y,
605 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
606 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
607 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
609 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
612 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
613 cost of embedded comparison.
615 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
618 * config/rs6000/predicates.md (altivec_register_operand): Permit
619 virtual stack registers.
620 (vsx_register_operand): Likewise.
621 (vfloat_operand): Likewise.
622 (vint_operand): Likewise.
623 (vlogical_operand): Likewise.
625 2015-06-22 Richard Biener <rguenther@suse.de>
627 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
628 and single_scalar_iteration_cost members.
629 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
630 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
631 (vect_get_single_scalar_iteration_cost): Remove.
632 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
633 Use LOOP_VINFO_SCALAR_ITERATION_COST.
634 * tree-vect-loop.c (destroy_loop_vec_info): Free
636 (vect_get_single_scalar_iteration_cost): Compute result into
637 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
638 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
639 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
640 (vect_estimate_min_profitable_iters): Use them.
642 2015-06-22 Christian Bruel <christian.bruel@st.com>
645 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
646 (TARGET_INSERT_ATTRIBUTES): Define.
647 (thumb_flipper): New var.
648 * config/arm/arm.opt (-mflip-thumb): New switch.
650 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
651 Martin Liska <mliska@suse.cz>
654 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
655 construction of arg_types.
656 (sem_function::sem_function): Likewise.
657 (sem_function::~sem_function): Remove destruction of arg_types.
658 (sem_function::compatible_parm_types_p): New function.
659 (sem_function::equals_wpa): Reorg matching of return values
661 (sem_function::equals_private): Reorg mathcing of argument types.
662 (sem_function::parse_tree_args): Remove.
663 * ipa-icf.h (init_wpa): Do not call it.
664 (parse_tree_args): Remove.
665 (compatible_parm_types_p): Declare.
666 (result_type): Remove.
669 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
672 * ipa-polymorphic-call.c
673 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
674 initializing alias oracle; fix formating; set base_alias_set if it
677 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
679 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
680 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
681 (find_inc): Likewise.
682 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
684 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
685 * df-scan.c (df_swap_refs): Remove.
686 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
687 * dominance.c (link_roots): Use std::swap instead of manually swapping.
688 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
689 * fold-const.c (fold_relational_const): Likewise.
690 * genattrtab.c (simplify_test_exp): Likewise.
691 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
692 gimple_simplify): Likewise.
693 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
694 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
695 * ipa-devirt.c (add_type_duplicate): Likewise.
696 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
697 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
698 * lra.c (lra_create_copy): Likewise.
699 * lto-streamer-out.c (DFS::DFS): Likewise.
700 * modulo-sched.c (get_sched_window): Likewise.
701 * omega.c (omega_pretty_print_problem): Likewise.
702 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
703 * reload1.c (reloads_unique_chain_p): Likewise.
704 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
705 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
707 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
709 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
710 predicate_mem_writes): Likewise.
711 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
712 * tree-predcom.c (combine_chains): Likewise.
713 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
714 refs_may_alias_p_1): Likewise.
715 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
716 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
717 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
718 number_of_iterations_cond): Likewise.
719 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
720 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
721 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
722 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
723 * tree-vrp.c (extract_range_from_binary_expr_1,
724 extract_range_from_unary_expr_1): Likewise.
726 2015-06-20 Marek Polacek <polacek@redhat.com>
728 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
730 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
733 * config/sh/sh.c (prepare_move_operands): Replace subreg
734 index term with R0 for base and index addressing.
736 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
738 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
740 (movsf_aarch64): Change condition from register_operand to
741 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
742 load1. Change type for alternative 7 to store1.
743 (movdf_aarch64): Likewise.
745 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
747 * config/vax/vax.md: Adjust sign/zero extend patterns to
748 handle SUBREGs in operands[1].
750 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
752 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
753 of manually swapping.
754 (expand_vec_perm_interleave2): Likewise.
756 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
758 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
759 reuse bounds created for abnormal ssa names.
761 2015-06-19 Jakub Jelinek <jakub@redhat.com>
763 * config/nvptx/nvptx.md (allocate_stack): Rename to...
764 (allocate_stack_<mode>): ... this, and add :P on both
765 match_operand and unspec.
766 (allocate_stack): New expander.
768 2015-06-19 Christian Bruel <christian.bruel@st.com>
772 * config/arm/arm.c (arm_set_current_function): Handle
773 explicit default options.
775 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
777 * config/i386/i386.md (*movsicc_noc_zext): New insn.
778 (zero-extended cmove with mem peephole2): New pattern.
779 (cmove with mem peephole2): Merge patterns.
781 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
783 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
785 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
787 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
788 * config/mips/mips.md (*madd4<mode>): Ditto.
789 (*nmadd3<mode>) Ditto.
790 (*nmadd4<mode>_fastmath): Ditto.
791 (*nmadd3<mode>_fastmath): Ditto.
792 (*nmsub4<mode>): Ditto.
793 (*nmsub3<mode>): Ditto.
794 (*nmsub4<mode>_fastmath): Ditto.
795 (*nmsub3<mode>_fastmath): Ditto.
797 2015-06-18 Michael Matz <matz@suse.de>
800 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
801 grouped strided stores.
802 (vectorizable_load): Don't use the DR from first_stmt in
803 the non-SLP grouped strided case.
805 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
808 * function.c (assign_bounds): Add arguments assign_regs,
809 assign_special, assign_bt.
810 (assign_parms): For vararg functions handle bounds in BT
811 and special slots after incoming vararg bounds.
813 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
816 * cfgexpand.c (expand_return): Handle missing bounds.
817 (expand_gimple_stmt_1): Likewise.
818 * tree-chkp.c (chkp_expand_zero_bounds): New.
819 * tree-chkp.h (chkp_expand_zero_bounds): New.
821 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
824 * ipa-chkp.c (chkp_maybe_create_clone): Require
825 functions to be instrumentable.
826 * tree-chkp.c (chkp_replace_function_pointer): Use
827 chkp_instrumentable_p instead of attribute check.
829 2015-06-18 Richard Biener <rguenther@suse.de>
831 PR tree-optimization/66510
832 * tree-vect-stmts.c (vectorizable_load): Properly compute the
833 number of vector loads for SLP permuted loads.
834 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
835 check the stride for loop vectorization.
836 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
837 vectorization factor.
838 (vect_analyze_group_access): If the group size is not a power
839 of two require a epilogue loop.
840 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
841 compute and optimizing and alias test pruning after final
842 vectorization factor computation.
843 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
845 (vect_transform_slp_perm_load): Properly compute the original
846 number of vector load stmts.
848 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
850 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
851 "unlikely character , in @var" warning.
853 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
855 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
856 (ix86_function_arg_advance): Ditto.
857 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
859 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
861 * function.h (struct rtl_data): Remove struct and accessor macros.
862 * emit-rtl.h (struct rtl_data): Relocate to here.
863 * Makefile.in (GTFILES): Add emit-rtl.h.
864 * df-core.c: Include emit-rtl.h.
865 * genattrtab.c: Likewise.
866 * genconditions.c: Likewise.
867 * genpreds.c: Likewise.
868 * genrecog.c: Likewise.
869 * regcprop.c: Likewise.
870 * resource.c: Likewise.
871 * sched-rgn.c: Likewise.
872 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
873 * config/i386/winnt.c: Likewise.
875 2015-06-17 Jakub Jelinek <jakub@redhat.com>
878 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
879 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
880 and has_force_vectorize_loops flags from cfun into
882 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
883 if simduid is non-NULL.
884 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
885 * passes.def (pass_simduid_cleanup): Add new pass after loop
887 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
888 indirection from htab argument's type.
889 (shrink_simd_arrays): New function.
890 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
891 Don't call adjust_simduid_builtins if there are no loops.
892 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
893 (pass_simduid_cleanup::execute): New method.
894 (make_pass_simduid_cleanup): New function.
896 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
898 * tree-core.h (tree_target_option): Make opts field a pointer to a
899 cl_target_option instead of an instance of the struct.
900 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
902 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
904 (copy_node_stat): Allocate and copy struct cl_target_option.
906 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
908 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
909 Remove conditional exposure of prototypes.
910 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
911 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
912 definitions in tree.h with functions.
913 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
915 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
917 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
919 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
920 (*cmp<mode>_signed): ... this.
921 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
922 (*cmp<mode>_unsigned): ... this. Remove %b.
924 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
926 * coretypes.h: Include input.h and as-a.h.
927 * rtl.h: Include input.h and as-a.h for generator files.
928 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
929 * vec.c: Don't include diagnostic-core.h.
930 * alias.c: Do not include input.h, line-map.h or is-a.h.
932 * attribs.c: Likewise.
933 * auto-inc-dec.c: Likewise.
934 * auto-profile.c: Likewise.
935 * bb-reorder.c: Likewise.
936 * bt-load.c: Likewise.
937 * builtins.c: Likewise.
938 * caller-save.c: Likewise.
942 * cfganal.c: Likewise.
943 * cfgbuild.c: Likewise.
944 * cfgcleanup.c: Likewise.
945 * cfgexpand.c: Likewise.
946 * cfghooks.c: Likewise.
947 * cfgloop.c: Likewise.
948 * cfgloop.h: Likewise.
949 * cfgloopanal.c: Likewise.
950 * cfgloopmanip.c: Likewise.
951 * cfgrtl.c: Likewise.
952 * cgraph.c: Likewise.
953 * cgraphbuild.c: Likewise.
954 * cgraphclones.c: Likewise.
955 * cgraphunit.c: Likewise.
956 * cilk-common.c: Likewise.
957 * combine-stack-adj.c: Likewise.
958 * combine.c: Likewise.
959 * compare-elim.c: Likewise.
960 * convert.c: Likewise.
961 * coverage.c: Likewise.
962 * cppbuiltin.c: Likewise.
965 * cselib.c: Likewise.
966 * data-streamer-in.c: Likewise.
967 * data-streamer-out.c: Likewise.
968 * data-streamer.c: Likewise.
969 * dbxout.c: Likewise.
973 * df-core.c: Likewise.
974 * df-problems.c: Likewise.
975 * df-scan.c: Likewise.
978 * diagnostic-core.h: Likewise.
979 * diagnostic.c: Likewise.
980 * dojump.c: Likewise.
981 * dominance.c: Likewise.
982 * domwalk.c: Likewise.
983 * double-int.c: Likewise.
985 * dumpfile.c: Likewise.
986 * dumpfile.h: Likewise.
987 * dwarf2asm.c: Likewise.
988 * dwarf2cfi.c: Likewise.
989 * dwarf2out.c: Likewise.
990 * emit-rtl.c: Likewise.
991 * et-forest.c: Likewise.
992 * except.c: Likewise.
993 * explow.c: Likewise.
994 * expmed.c: Likewise.
997 * fixed-value.c: Likewise.
998 * fold-const.c: Likewise.
999 * function.c: Likewise.
1000 * fwprop.c: Likewise.
1001 * gcc-plugin.h: Likewise.
1003 * generic-match-head.c: Likewise.
1004 * ggc-page.c: Likewise.
1005 * gimple-builder.c: Likewise.
1006 * gimple-expr.c: Likewise.
1007 * gimple-fold.c: Likewise.
1008 * gimple-iterator.c: Likewise.
1009 * gimple-low.c: Likewise.
1010 * gimple-match-head.c: Likewise.
1011 * gimple-pretty-print.c: Likewise.
1012 * gimple-ssa-isolate-paths.c: Likewise.
1013 * gimple-ssa-strength-reduction.c: Likewise.
1014 * gimple-streamer-in.c: Likewise.
1015 * gimple-streamer-out.c: Likewise.
1016 * gimple-streamer.h: Likewise.
1017 * gimple-walk.c: Likewise.
1018 * gimple.c: Likewise.
1019 * gimplify-me.c: Likewise.
1020 * gimplify.c: Likewise.
1021 * godump.c: Likewise.
1022 * graph.c: Likewise.
1023 * graphite-blocking.c: Likewise.
1024 * graphite-dependences.c: Likewise.
1025 * graphite-interchange.c: Likewise.
1026 * graphite-isl-ast-to-gimple.c: Likewise.
1027 * graphite-optimize-isl.c: Likewise.
1028 * graphite-poly.c: Likewise.
1029 * graphite-scop-detection.c: Likewise.
1030 * graphite-sese-to-poly.c: Likewise.
1031 * graphite.c: Likewise.
1032 * haifa-sched.c: Likewise.
1033 * hw-doloop.c: Likewise.
1034 * ifcvt.c: Likewise.
1035 * init-regs.c: Likewise.
1036 * input.c: Likewise.
1037 * internal-fn.c: Likewise.
1038 * ipa-chkp.c: Likewise.
1039 * ipa-comdats.c: Likewise.
1040 * ipa-cp.c: Likewise.
1041 * ipa-devirt.c: Likewise.
1042 * ipa-icf-gimple.c: Likewise.
1043 * ipa-icf.c: Likewise.
1044 * ipa-inline-analysis.c: Likewise.
1045 * ipa-inline-transform.c: Likewise.
1046 * ipa-inline.c: Likewise.
1047 * ipa-polymorphic-call.c: Likewise.
1048 * ipa-profile.c: Likewise.
1049 * ipa-prop.c: Likewise.
1050 * ipa-pure-const.c: Likewise.
1051 * ipa-ref.c: Likewise.
1052 * ipa-reference.c: Likewise.
1053 * ipa-split.c: Likewise.
1054 * ipa-utils.c: Likewise.
1055 * ipa-visibility.c: Likewise.
1057 * ira-build.c: Likewise.
1058 * ira-color.c: Likewise.
1059 * ira-conflicts.c: Likewise.
1060 * ira-costs.c: Likewise.
1061 * ira-emit.c: Likewise.
1062 * ira-lives.c: Likewise.
1065 * langhooks.c: Likewise.
1067 * loop-doloop.c: Likewise.
1068 * loop-init.c: Likewise.
1069 * loop-invariant.c: Likewise.
1070 * loop-iv.c: Likewise.
1071 * loop-unroll.c: Likewise.
1072 * lower-subreg.c: Likewise.
1073 * lra-assigns.c: Likewise.
1074 * lra-coalesce.c: Likewise.
1075 * lra-constraints.c: Likewise.
1076 * lra-eliminations.c: Likewise.
1077 * lra-lives.c: Likewise.
1078 * lra-remat.c: Likewise.
1079 * lra-spills.c: Likewise.
1081 * lto-cgraph.c: Likewise.
1082 * lto-compress.c: Likewise.
1083 * lto-opts.c: Likewise.
1084 * lto-section-in.c: Likewise.
1085 * lto-section-out.c: Likewise.
1086 * lto-streamer-in.c: Likewise.
1087 * lto-streamer-out.c: Likewise.
1088 * lto-streamer.c: Likewise.
1090 * mode-switching.c: Likewise.
1091 * modulo-sched.c: Likewise.
1092 * omega.c: Likewise.
1093 * omp-low.c: Likewise.
1094 * optabs.c: Likewise.
1095 * opts-global.c: Likewise.
1097 * passes.c: Likewise.
1098 * plugin.c: Likewise.
1099 * postreload-gcse.c: Likewise.
1100 * postreload.c: Likewise.
1101 * predict.c: Likewise.
1102 * pretty-print.h: Likewise.
1103 * print-rtl.c: Likewise.
1104 * print-tree.c: Likewise.
1105 * profile.c: Likewise.
1107 * realmpfr.c: Likewise.
1108 * recog.c: Likewise.
1110 * reg-stack.c: Likewise.
1111 * regcprop.c: Likewise.
1112 * reginfo.c: Likewise.
1113 * regrename.c: Likewise.
1114 * regstat.c: Likewise.
1115 * reload.c: Likewise.
1116 * reload1.c: Likewise.
1117 * reorg.c: Likewise.
1118 * resource.c: Likewise.
1119 * rtl-chkp.c: Likewise.
1120 * rtl-error.c: Likewise.
1121 * rtlanal.c: Likewise.
1122 * rtlhooks.c: Likewise.
1123 * sanopt.c: Likewise.
1124 * sched-deps.c: Likewise.
1125 * sched-ebb.c: Likewise.
1126 * sched-rgn.c: Likewise.
1127 * sched-vis.c: Likewise.
1128 * sdbout.c: Likewise.
1129 * sel-sched-dump.c: Likewise.
1130 * sel-sched-ir.c: Likewise.
1131 * sel-sched.c: Likewise.
1133 * shrink-wrap.c: Likewise.
1134 * simplify-rtx.c: Likewise.
1135 * stack-ptr-mod.c: Likewise.
1136 * statistics.c: Likewise.
1138 * stor-layout.c: Likewise.
1139 * store-motion.c: Likewise.
1140 * streamer-hooks.c: Likewise.
1141 * stringpool.c: Likewise.
1142 * symtab.c: Likewise.
1143 * target-globals.c: Likewise.
1144 * targhooks.c: Likewise.
1145 * toplev.c: Likewise.
1146 * tracer.c: Likewise.
1147 * trans-mem.c: Likewise.
1148 * tree-affine.c: Likewise.
1149 * tree-browser.c: Likewise.
1150 * tree-call-cdce.c: Likewise.
1151 * tree-cfg.c: Likewise.
1152 * tree-cfgcleanup.c: Likewise.
1153 * tree-chkp-opt.c: Likewise.
1154 * tree-chkp.c: Likewise.
1155 * tree-chrec.c: Likewise.
1156 * tree-complex.c: Likewise.
1157 * tree-data-ref.c: Likewise.
1158 * tree-dfa.c: Likewise.
1159 * tree-diagnostic.c: Likewise.
1160 * tree-dump.c: Likewise.
1161 * tree-eh.c: Likewise.
1162 * tree-emutls.c: Likewise.
1163 * tree-if-conv.c: Likewise.
1164 * tree-inline.c: Likewise.
1165 * tree-into-ssa.c: Likewise.
1166 * tree-iterator.c: Likewise.
1167 * tree-loop-distribution.c: Likewise.
1168 * tree-nested.c: Likewise.
1169 * tree-nrv.c: Likewise.
1170 * tree-object-size.c: Likewise.
1171 * tree-outof-ssa.c: Likewise.
1172 * tree-parloops.c: Likewise.
1173 * tree-phinodes.c: Likewise.
1174 * tree-predcom.c: Likewise.
1175 * tree-pretty-print.c: Likewise.
1176 * tree-profile.c: Likewise.
1177 * tree-scalar-evolution.c: Likewise.
1178 * tree-sra.c: Likewise.
1179 * tree-ssa-address.c: Likewise.
1180 * tree-ssa-alias.c: Likewise.
1181 * tree-ssa-ccp.c: Likewise.
1182 * tree-ssa-coalesce.c: Likewise.
1183 * tree-ssa-copy.c: Likewise.
1184 * tree-ssa-copyrename.c: Likewise.
1185 * tree-ssa-dce.c: Likewise.
1186 * tree-ssa-dom.c: Likewise.
1187 * tree-ssa-dse.c: Likewise.
1188 * tree-ssa-forwprop.c: Likewise.
1189 * tree-ssa-ifcombine.c: Likewise.
1190 * tree-ssa-live.c: Likewise.
1191 * tree-ssa-loop-ch.c: Likewise.
1192 * tree-ssa-loop-im.c: Likewise.
1193 * tree-ssa-loop-ivcanon.c: Likewise.
1194 * tree-ssa-loop-ivopts.c: Likewise.
1195 * tree-ssa-loop-manip.c: Likewise.
1196 * tree-ssa-loop-niter.c: Likewise.
1197 * tree-ssa-loop-prefetch.c: Likewise.
1198 * tree-ssa-loop-unswitch.c: Likewise.
1199 * tree-ssa-loop.c: Likewise.
1200 * tree-ssa-math-opts.c: Likewise.
1201 * tree-ssa-operands.c: Likewise.
1202 * tree-ssa-phiopt.c: Likewise.
1203 * tree-ssa-phiprop.c: Likewise.
1204 * tree-ssa-pre.c: Likewise.
1205 * tree-ssa-propagate.c: Likewise.
1206 * tree-ssa-reassoc.c: Likewise.
1207 * tree-ssa-sccvn.c: Likewise.
1208 * tree-ssa-scopedtables.c: Likewise.
1209 * tree-ssa-sink.c: Likewise.
1210 * tree-ssa-strlen.c: Likewise.
1211 * tree-ssa-structalias.c: Likewise.
1212 * tree-ssa-tail-merge.c: Likewise.
1213 * tree-ssa-ter.c: Likewise.
1214 * tree-ssa-threadedge.c: Likewise.
1215 * tree-ssa-threadupdate.c: Likewise.
1216 * tree-ssa-uncprop.c: Likewise.
1217 * tree-ssa-uninit.c: Likewise.
1218 * tree-ssa.c: Likewise.
1219 * tree-ssanames.c: Likewise.
1220 * tree-stdarg.c: Likewise.
1221 * tree-streamer-in.c: Likewise.
1222 * tree-streamer-out.c: Likewise.
1223 * tree-streamer.c: Likewise.
1224 * tree-switch-conversion.c: Likewise.
1225 * tree-tailcall.c: Likewise.
1226 * tree-vect-data-refs.c: Likewise.
1227 * tree-vect-generic.c: Likewise.
1228 * tree-vect-loop-manip.c: Likewise.
1229 * tree-vect-loop.c: Likewise.
1230 * tree-vect-patterns.c: Likewise.
1231 * tree-vect-slp.c: Likewise.
1232 * tree-vect-stmts.c: Likewise.
1233 * tree-vectorizer.c: Likewise.
1234 * tree-vrp.c: Likewise.
1237 * ubsan.c: Likewise.
1238 * valtrack.c: Likewise.
1239 * value-prof.c: Likewise.
1240 * var-tracking.c: Likewise.
1241 * varasm.c: Likewise.
1242 * varpool.c: Likewise.
1243 * vmsdbgout.c: Likewise.
1244 * vtable-verify.c: Likewise.
1246 * wide-int.cc: Likewise.
1247 * xcoffout.c: Likewise.
1248 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
1249 * common/common-targhooks.c: Likewise.
1250 * config/aarch64/aarch64-builtins.c: Likewise.
1251 * config/aarch64/aarch64.c: Likewise.
1252 * config/alpha/alpha.c: Likewise.
1253 * config/arc/arc.c: Likewise.
1254 * config/arm/aarch-common.c: Likewise.
1255 * config/arm/arm-builtins.c: Likewise.
1256 * config/arm/arm-c.c: Likewise.
1257 * config/arm/arm.c: Likewise.
1258 * config/avr/avr-c.c: Likewise.
1259 * config/avr/avr-log.c: Likewise.
1260 * config/avr/avr.c: Likewise.
1261 * config/bfin/bfin.c: Likewise.
1262 * config/c6x/c6x.c: Likewise.
1263 * config/cr16/cr16.c: Likewise.
1264 * config/cris/cris.c: Likewise.
1265 * config/darwin-c.c: Likewise.
1266 * config/darwin.c: Likewise.
1267 * config/default-c.c: Likewise.
1268 * config/epiphany/epiphany.c: Likewise.
1269 * config/epiphany/mode-switch-use.c: Likewise.
1270 * config/epiphany/resolve-sw-modes.c: Likewise.
1271 * config/fr30/fr30.c: Likewise.
1272 * config/frv/frv.c: Likewise.
1273 * config/ft32/ft32.c: Likewise.
1274 * config/glibc-c.c: Likewise.
1275 * config/h8300/h8300.c: Likewise.
1276 * config/i386/i386-c.c: Likewise.
1277 * config/i386/i386.c: Likewise.
1278 * config/i386/msformat-c.c: Likewise.
1279 * config/i386/winnt-cxx.c: Likewise.
1280 * config/i386/winnt-stubs.c: Likewise.
1281 * config/i386/winnt.c: Likewise.
1282 * config/ia64/ia64-c.c: Likewise.
1283 * config/ia64/ia64.c: Likewise.
1284 * config/iq2000/iq2000.c: Likewise.
1285 * config/lm32/lm32.c: Likewise.
1286 * config/m32c/m32c-pragma.c: Likewise.
1287 * config/m32c/m32c.c: Likewise.
1288 * config/m32r/m32r.c: Likewise.
1289 * config/m68k/m68k.c: Likewise.
1290 * config/mcore/mcore.c: Likewise.
1291 * config/mep/mep-pragma.c: Likewise.
1292 * config/mep/mep.c: Likewise.
1293 * config/microblaze/microblaze-c.c: Likewise.
1294 * config/microblaze/microblaze.c: Likewise.
1295 * config/mips/mips.c: Likewise.
1296 * config/mmix/mmix.c: Likewise.
1297 * config/mn10300/mn10300.c: Likewise.
1298 * config/moxie/moxie.c: Likewise.
1299 * config/msp430/msp430-c.c: Likewise.
1300 * config/msp430/msp430.c: Likewise.
1301 * config/nds32/nds32-cost.c: Likewise.
1302 * config/nds32/nds32-fp-as-gp.c: Likewise.
1303 * config/nds32/nds32-intrinsic.c: Likewise.
1304 * config/nds32/nds32-isr.c: Likewise.
1305 * config/nds32/nds32-md-auxiliary.c: Likewise.
1306 * config/nds32/nds32-memory-manipulation.c: Likewise.
1307 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1308 * config/nds32/nds32-predicates.c: Likewise.
1309 * config/nds32/nds32.c: Likewise.
1310 * config/nios2/nios2.c: Likewise.
1311 * config/nvptx/nvptx.c: Likewise.
1312 * config/pa/pa.c: Likewise.
1313 * config/pdp11/pdp11.c: Likewise.
1314 * config/rl78/rl78-c.c: Likewise.
1315 * config/rl78/rl78.c: Likewise.
1316 * config/rs6000/rs6000-c.c: Likewise.
1317 * config/rs6000/rs6000.c: Likewise.
1318 * config/rx/rx.c: Likewise.
1319 * config/s390/s390-c.c: Likewise.
1320 * config/s390/s390.c: Likewise.
1321 * config/sh/sh-c.c: Likewise.
1322 * config/sh/sh-mem.cc: Likewise.
1323 * config/sh/sh.c: Likewise.
1324 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
1325 * config/sh/sh_treg_combine.cc: Likewise.
1326 * config/sol2-c.c: Likewise.
1327 * config/sol2-cxx.c: Likewise.
1328 * config/sol2-stubs.c: Likewise.
1329 * config/sol2.c: Likewise.
1330 * config/sparc/sparc-c.c: Likewise.
1331 * config/sparc/sparc.c: Likewise.
1332 * config/spu/spu-c.c: Likewise.
1333 * config/spu/spu.c: Likewise.
1334 * config/stormy16/stormy16.c: Likewise.
1335 * config/tilegx/mul-tables.c: Likewise.
1336 * config/tilegx/tilegx-c.c: Likewise.
1337 * config/tilegx/tilegx.c: Likewise.
1338 * config/tilepro/mul-tables.c: Likewise.
1339 * config/tilepro/tilepro-c.c: Likewise.
1340 * config/tilepro/tilepro.c: Likewise.
1341 * config/v850/v850-c.c: Likewise.
1342 * config/v850/v850.c: Likewise.
1343 * config/vax/vax.c: Likewise.
1344 * config/visium/visium.c: Likewise.
1345 * config/vms/vms-c.c: Likewise.
1346 * config/vms/vms.c: Likewise.
1347 * config/vxworks.c: Likewise.
1348 * config/winnt-c.c: Likewise.
1349 * config/xtensa/xtensa.c: Likewise.
1351 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
1353 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
1355 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
1357 2015-06-17 Richard Biener <rguenther@suse.de>
1359 PR tree-optimization/66251
1360 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
1361 stmts for SLP strided stores.
1364 2015-05-22 Richard Biener <rguenther@suse.de>
1366 PR tree-optimization/66251
1367 * tree-vect-stmts.c (vectorizable_conversion): Properly
1368 set STMT_VINFO_VEC_STMT even for the SLP case.
1370 2015-05-26 Michael Matz <matz@suse.de>
1373 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
1374 STMT_VINFO_VEC_STMT, also with SLP.
1376 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
1379 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
1380 (*avx_addsubv4df3_1s): Ditto.
1381 (*sse3_addsubv2df3_1): Ditto.
1382 (*sse3_addsubv2df3_1s): Ditto.
1383 (*avx_addsubv8sf3_1): Ditto.
1384 (*avx_addsubv8sf3_1s): Ditto.
1385 (*sse3_addsubv4sf3_1): Ditto.
1386 (*sse3_addsubv4sf3_1s): Ditto.
1388 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
1390 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
1391 (SYSROOT_SUFFIX_SPEC): Update.
1392 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
1393 (STARTFILE_PREFIX_SPEC): Update.
1394 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
1395 (MULTILIB_REQUIRED): New.
1396 (MULTILIB_OSDIRNAMES): New.
1397 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
1398 (MULTILIB_REQUIRED): New.
1399 (MULTILIB_OSDIRNAMES): New.
1401 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
1403 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
1404 * config/aarch64/aarch64-options-extensions.def: Update "fP",
1405 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
1406 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
1407 (AARCH64_FL_PAN): New.
1408 (AARCH64_FL_LOR): New.
1409 (AARCH64_FL_RDMA): New.
1410 (AARCH64_FL_FOR_ARCH8_1): New.
1411 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
1412 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
1414 2015-06-16 Martin Liska <mliska@suse.cz>
1416 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
1417 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
1420 2015-06-16 Richard Biener <rguenther@suse.de>
1422 * tree-vect-stmts.c (vectorizable_store): Adjust.
1423 (vectorizable_load): Likewise.
1424 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1426 (vect_create_data_ref_ptr): Likewise.
1427 (bump_vector_ptr): Adjust.
1429 2015-06-16 Richard Biener <rguenther@suse.de>
1431 * tree-vect-stmts.c (vectorizable_load): Properly start loads
1432 with the first element if this is grouped loads.
1434 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
1436 * config/arm/arm-protos.h (struct tune_params): Rename
1437 log_op_non_sc to log_op_non_short_circuit, and rename enum
1438 values to expand SC to SHORT_CIRCUIT.
1439 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
1440 to LOG_OP_NON_SHORT_CIRCUIT.
1441 (arm_fastmul_tune):Likewise
1442 (arm_strongarm_tune): Likewise.
1443 (arm_xscale_tune): Likewise.
1444 (arm_9e_tune): Likewise.
1445 (arm_marvell_pj4_tune): Likewise.
1446 (arm_v6t2_tune): Likewise.
1447 (arm_cortex_tune): Likewise.
1448 (arm_cortex_a8_tune): Likewise.
1449 (arm_cortex_a7_tune): Likewise.
1450 (arm_cortex_a15_tune): Likewise.
1451 (arm_cortex_a53_tune): Likewise.
1452 (arm_cortex_a57_tune): Likewise.
1453 (arm_xgene1_tune): Likewise.
1454 (arm_cortex_a5_tune): Likewise.
1455 (arm_cortex_a9_tune): Likewise.
1456 (arm_cortex_a12_tune): Likewise.
1457 (arm_v7m_tune): Likewise.
1458 (arm_cortex_m7_tune): Likewise.
1459 (arm_v6m_tune): Likewise.
1460 (arm_fa726te_tune): Likewise.
1462 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
1464 * altivec.md: Delete UNSPEC_VMLADDUHM.
1465 (mulv4si3_p8): New pattern.
1466 (mulv4si3): Use it for POWER8.
1467 (mulv8hi3): Use vmladduhm with zero addend.
1468 (altivec_vmladduhm): Descriptive RTL.
1470 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
1472 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
1473 to use neon_move instead of mov_imm.
1474 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
1475 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
1477 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
1478 aarch64_float_const_zero_rtx_p check before TFmode check.
1479 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
1481 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
1482 code and attributes to match. Change condition from register_operand
1483 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
1484 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
1487 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
1490 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
1493 2015-06-14 Shiva Chen <shiva0217@gmail.com>
1495 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
1496 HOST_WIDE_INT parameter.
1498 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
1501 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
1502 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
1504 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
1506 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
1508 * rtl.h (classify_insn): Declare.
1509 * emit-rtl.c (classify_insn): Move to...
1510 * rtl.c: ...here and add generator support.
1511 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
1512 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
1513 * genemit.c (gen_emit_seq): New function.
1514 (gen_expand, gen_split): Use it.
1516 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
1518 * tree.c (make_vector_stat): Fix comment to state that the
1519 function returns a VECTOR_CST.
1521 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
1523 * gensupport.h (add_implicit_parallel): Declare.
1524 * genrecog.c (add_implicit_parallel): Move to...
1525 * gensupport.c (add_implicit_parallel): ...here.
1526 (process_one_cond_exec): Use it.
1527 * genemit.c (gen_insn): Likewise.
1529 2015-06-13 Iain Sandoe <iain@codesourcery.com>
1532 * passes.c (rest_of_decl_compilation): Do not register globals for
1533 early debug if they are declared in built-ins.
1535 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
1537 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
1539 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1541 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
1543 (noce_try_cmove_arith): Likewise.
1544 (noce_get_alt_condition): Likewise.
1546 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
1548 * common/config/i386/i386-common.c
1549 (OPTION_MASK_ISA_MWAITX_SET): New.
1550 (ix86_handle_option): Handle mwaitx.
1551 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
1552 (x86_64-*-*): Likewise.
1553 * config/i386/mwaitxintrin.h: New header.
1554 * config/i386/cpuid.h (bit_MWAITX): Define.
1555 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1557 * config/i386/i386.opt (mwaitx): New.
1558 * config/i386/i386-builtin-types.def
1559 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
1560 * config/i386/i386-c.c: Define __MWAITX__ if needed.
1561 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
1563 (ix86_option_override_internal): Handle new option.
1564 (processor_alias_table): Added PTA_MWAITX.
1565 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
1566 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
1567 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
1568 IX86_BUILTIN_MONITORX built-ins.
1569 * config/i386/i386.h (TARGET_MWAITX): New.
1570 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
1572 (mwaitx): New pattern.
1573 (monitorx_<mode>): New pattern.
1574 * config/i386/x86intrin.h: Include mwaitxintrin.h.
1575 * doc/extend.texi: Document monitorx and mwaitx builtins.
1576 * doc/invoke.texi: Document -mmwaitx option.
1578 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
1580 * emit-rtl.c (need_atomic_barrier_p): Mask model with
1581 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
1583 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
1585 * dbxout.c (xcoff_debug_hooks): Provide a function for
1586 register_main_translation_unit hook.
1588 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
1590 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
1591 variants cases from switch.
1592 (rs6000_post_atomic_barrier): Same.
1593 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
1594 (rs6000_expand_atomic_exchange): Same.
1595 (rs6000_expand_atomic_op): Same.
1596 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
1597 SYNC variants cases from switch.
1598 (atomic_load): Same.
1599 (atomic_store): Same.
1601 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
1603 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
1606 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
1609 * dwarf2out.c (check_die): Check for common duplicate attributes.
1610 (add_location_or_const_value_attribute): Do not add duplicate
1612 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
1614 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
1615 (gen_type_die_with_usage): Call check_die.
1616 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
1618 2015-06-11 Jason Merrill <jason@redhat.com>
1620 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
1623 2015-06-11 Marek Polacek <polacek@redhat.com>
1625 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
1627 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
1630 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
1631 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
1632 (*addx_extend_sp32): Fix pasto.
1633 (*subx_extend): Rename into...
1634 (*subx_extend_sp32): ...this.
1635 (*adddi3_extend_sp32): Add earlyclobber.
1636 (*subdi3_insn_sp32): Likewise.
1637 (*subdi3_extend_sp32): Likewise.
1638 (*and_not_di_sp32): Likewise.
1639 (*or_not_di_sp32): Likewise.
1640 (*xor_not_di_sp32): Likewise.
1641 (*negdi2_sp32): Likewise.
1642 (*one_cmpldi2_sp32): Likewise.
1644 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
1646 * debug.h (struct gcc_debug_hooks): Add a
1647 register_main_translation_unit hook.
1648 * debug.c (do_nothing_debug_hooks): Provide a function for this
1650 * dbxout.c (dbx_debug_hooks): Likewise.
1651 * sdbout.c (sdb_debug_hooks): Likewise.
1652 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
1653 * dwarf2out.c (main_translation_unit): New global variable.
1654 (dwarf2out_register_main_translation_unit): New function
1655 implementing the new hook.
1656 (dwarf2_debug_hooks): Assign
1657 dwarf2out_register_main_translation_unit to this new hook.
1658 (dwarf2out_init): Associate any main translation unit to
1661 2015-06-11 Marek Polacek <polacek@redhat.com>
1663 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
1665 2015-06-11 Marek Polacek <polacek@redhat.com>
1667 * match.pd: Use single_use throughout.
1669 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1671 * config/arm/arm.c (arm_option_params_internal): When optimising
1672 for speed set max_insns_skipped when arm_restrict_it.
1674 2015-06-11 Christian Bruel <christian.bruel@st.com>
1677 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
1679 (arm_cpu_builtins): New function.
1680 (arm_pragma_target_parse): Call arm_cpu_builtins.
1681 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
1682 (arm_register_target_pragmas): Likewise.
1683 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
1684 Call arm_register_target_pragmas.
1685 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
1686 (arm_pragma_target_parse): Likewise.
1688 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
1690 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
1691 of the second operand.
1693 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
1696 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
1697 to prepare mask operand for AVX512 modes.
1699 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1702 * doc/md.texi (Machine Constraints): Document that on the PowerPC
1703 if you use a constraint that targets a VSX register, you must use
1704 %x<n> in the template.
1706 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
1708 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
1709 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
1710 (define_insn "trap"): New definition.
1712 2015-06-10 Richard Biener <rguenther@suse.de>
1714 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
1716 (vect_supported_load_permutation_p): ... here. Handle
1717 supportable permutations in reductions.
1718 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
1719 for vectorizing strided group loads.
1721 2015-06-10 Jakub Jelinek <jakub@redhat.com>
1724 * config/i386/i386.c (ix86_split_long_move): For collisions
1725 involving direct tls segment refs, move the UNSPEC_TP possibly
1726 wrapped in ZERO_EXTEND out of the address for lea, to each of
1729 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1731 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
1732 dmb sy. Adjust tabs.
1734 2015-06-10 Tom de Vries <tom@codesourcery.com>
1736 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
1738 2015-06-10 Martin Liska <mliska@suse.cz>
1741 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
1742 all enum values in mem_alloc_origin.
1743 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
1745 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
1746 * bitmap.c (bitmap_register): Likewise.
1747 (dump_bitmap_statistics): Likewise.
1748 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
1749 (ggc_record_overhead): Likewise.
1750 * hash-map.h: Likewise.
1751 * hash-set.h: Likewise.
1752 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
1753 * hash-table.h: Likewise.
1754 * vec.c (vec_prefix::register_overhead): Likewise.
1755 (vec_prefix::release_overhead): Likewise.
1756 (dump_vec_loc_statistics): Likewise.
1758 2015-06-09 Christian Bruel <christian.bruel@st.com>
1761 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
1762 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
1763 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
1764 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
1765 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
1766 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
1767 (arm_valid_target_attribute_p): Likewise.
1768 (arm_set_current_function, arm_can_inline_p): Likewise.
1769 (arm_valid_target_attribute_rec): Likewise.
1770 (arm_previous_fndecl): New variable.
1771 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
1772 (TARGET_CAN_INLINE_P): Define.
1773 (arm_asm_trampoline_template): Emit mode.
1774 (arm_file_start): Don't set unified syntax.
1775 (arm_declare_function_name): Set unified syntax and mode.
1776 (arm_option_override): Init target_option_default_node.
1777 and target_option_current_node.
1778 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
1779 (*call_symbol): Likewise.
1780 * doc/extend.texi: Document ARM/Thumb target attribute.
1781 * doc/invoke.texi: Likewise.
1783 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
1786 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
1787 PR rtl-optimization/64164
1788 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
1789 * tree-ssa-copyrename.c: Removed.
1790 * opts.c (default_options_table): Drop -ftree-copyrename. Add
1791 -ftree-coalesce-vars.
1792 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
1793 * common.opt (ftree-copyrename): Ignore.
1794 (ftree-coalesce-inlined-vars): Likewise.
1795 * doc/invoke.texi: Remove the ignored options above.
1796 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
1797 * tree-ssa-coalesce.h: ... here.
1798 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
1799 headers required by it.
1800 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
1801 across variables when flag_tree_coalesce_vars. Check register
1802 use and promoted modes to allow coalescing. Moved to
1803 tree-ssa-coalesce.c.
1804 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
1805 with its member functions to tree-ssa-coalesce.c.
1806 (var_map_base_init): Likewise. Renamed to
1807 compute_samebase_partition_bases.
1808 (partition_view_normal): Drop want_bases parameter.
1809 (partition_view_bitmap): Likewise.
1810 * tree-ssa-live.h: Adjust declarations.
1811 * tree-ssa-coalesce.c: Include explow.h.
1812 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
1813 default defs at the entry point.
1814 (dump_part_var_map): New.
1815 (compute_optimized_partition_bases): New, called by...
1816 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
1817 of compute_samebase_partition_bases. Adjust.
1818 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
1819 * cfgexpand.c (leader_merge): New.
1820 (get_rtl_for_parm_ssa_default_def): New.
1821 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
1822 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
1823 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
1824 redundant MEM attr setting.
1825 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
1827 (expand_one_stack_var): ... this. New wrapper to check and
1828 skip already expanded SSA partitions.
1829 (record_alignment_for_reg_var): New, factored out of...
1830 (expand_one_var): ... this.
1831 (expand_one_ssa_partition): New.
1832 (adjust_one_expanded_partition_var): New.
1833 (expand_one_register_var): Check and skip already expanded SSA
1835 (expand_used_vars): Don't create DECLs for anonymous SSA
1836 names. Expand all SSA partitions, then adjust all SSA names.
1837 (pass::execute): Replace the loops that set
1838 SA.partition_to_pseudo from partition leaders and cleared
1839 DECL_RTL for multi-location variables, and that which used to
1840 rename vars and set attrs, with one that clears DECL_RTL and
1841 checks that PARMs and RESULTs default_defs match DECL_RTL.
1842 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
1843 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
1844 * explow.c (promote_ssa_mode): New.
1845 * explow.h (promote_ssa_mode): Declare.
1846 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
1847 * function.c: Include cfgexpand.h.
1848 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
1849 (use_register_for_parm_decl): Wrapper for the above to
1850 special-case the result_ptr.
1851 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
1852 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
1854 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
1855 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
1856 (assign_parm_setup_block): Prefer SSA-assigned location.
1857 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
1858 if stack_parm is NULL.
1859 (assign_parm_setup_stack): Prefer SSA-assigned location.
1860 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
1861 rtl before testing for pointer bounds. Special-case result_ptr.
1862 (expand_function_start): Maybe reset DECL_RTL of result.
1863 Prefer SSA-assigned location for result and static chain.
1864 Factor out DECL_RESULT and SET_DECL_RTL.
1865 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
1866 anonymous SSA names. Use promote_ssa_mode.
1867 (get_temp_reg): Likewise.
1868 (remove_ssa_form): Adjust.
1869 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
1870 and get its reg_usage for reg invalidation.
1871 (compute_bb_dataflow): Pass it insn.
1872 (emit_notes_in_bb): Likewise.
1873 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
1874 fail assert on conversion between unsigned types.
1876 2015-06-09 Tom de Vries <tom@codesourcery.com>
1878 PR tree-optimization/65460
1879 * omp-low.c (expand_omp_target): Set parallelized_function on
1880 cgraph_node for child_fn.
1882 2015-06-09 Tom de Vries <tom@codesourcery.com>
1884 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
1885 parallelized_function before add_new_function.
1887 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
1889 * gcc-plugin.h: Move decls to plugin.h and include it.
1890 * plugin.h: Relocate decls from gcc-plugin.h
1891 * ggc-page.c: Include required header files.
1892 * passes.c: Likewise.
1893 * cgraphunit.c: Likewise.
1895 2015-06-09 Tom de Vries <tom@codesourcery.com>
1897 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
1899 2015-06-09 Jason Merrill <jason@redhat.com>
1902 * toplev.c (check_global_declaration): Don't warn about a clone.
1904 2015-06-09 Marek Polacek <polacek@redhat.com>
1906 PR tree-optimization/66299
1907 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
1908 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
1911 2015-06-09 Richard Biener <rguenther@suse.de>
1913 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
1914 (vect_analyze_slp_instance): Instead do not falsely drop
1917 2015-06-09 Richard Biener <rguenther@suse.de>
1920 * match.pd: Handle A % (unsigned)(1 << B).
1922 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
1924 * varasm.c (output_object_block_htab): Remove.
1925 (output_object_block_compare): New.
1926 (output_object_blocks): Sort named object_blocks before outputting
1929 2015-06-09 Richard Biener <rguenther@suse.de>
1931 PR tree-optimization/66419
1932 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
1933 consider GROUP_GAP when detecting a perfect subchain.
1935 2015-06-09 Nick Clifton <nickc@redhat.com>
1937 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
1938 place read only data in the .frodata section.
1940 2015-06-09 Shiva Chen <shiva0217@gmail.com>
1942 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
1943 (atomic_store<mode>): Likewise.
1945 2015-06-09 Richard Biener <rguenther@suse.de>
1947 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
1949 2015-06-09 Richard Biener <rguenther@suse.de>
1952 * tree-inline.c (insert_init_debug_bind): Unshare value.
1954 2015-06-09 Richard Biener <rguenther@suse.de>
1956 PR tree-optimization/66396
1957 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
1958 Rename virtual operands.
1960 2015-06-09 Tom de Vries <tom@codesourcery.com>
1962 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
1963 always return false.
1965 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
1967 PR rtl-optimization/64164
1968 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
1969 * tree-ssa-copyrename.c: Removed.
1970 * opts.c (default_options_table): Drop -ftree-copyrename. Add
1971 -ftree-coalesce-vars.
1972 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
1973 * common.opt (ftree-copyrename): Ignore.
1974 (ftree-coalesce-inlined-vars): Likewise.
1975 * doc/invoke.texi: Remove the ignored options above.
1976 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
1977 * tree-ssa-coalesce.h: ... here.
1978 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
1979 headers required by it.
1980 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
1981 across variables when flag_tree_coalesce_vars. Check register
1982 use and promoted modes to allow coalescing. Moved to
1983 tree-ssa-coalesce.c.
1984 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
1985 with its member functions to tree-ssa-coalesce.c.
1986 (var_map_base_init): Likewise. Renamed to
1987 compute_samebase_partition_bases.
1988 (partition_view_normal): Drop want_bases parameter.
1989 (partition_view_bitmap): Likewise.
1990 * tree-ssa-live.h: Adjust declarations.
1991 * tree-ssa-coalesce.c: Include explow.h.
1992 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
1993 default defs at the entry point.
1994 (dump_part_var_map): New.
1995 (compute_optimized_partition_bases): New, called by...
1996 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
1997 of compute_samebase_partition_bases. Adjust.
1998 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
1999 * cfgexpand.c (leader_merge): New.
2000 (get_rtl_for_parm_ssa_default_def): New.
2001 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
2002 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
2003 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
2004 redundant MEM attr setting.
2005 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
2007 (expand_one_stack_var): ... this. New wrapper to check and
2008 skip already expanded SSA partitions.
2009 (record_alignment_for_reg_var): New, factored out of...
2010 (expand_one_var): ... this.
2011 (expand_one_ssa_partition): New.
2012 (adjust_one_expanded_partition_var): New.
2013 (expand_one_register_var): Check and skip already expanded SSA
2015 (expand_used_vars): Don't create DECLs for anonymous SSA
2016 names. Expand all SSA partitions, then adjust all SSA names.
2017 (pass::execute): Replace the loops that set
2018 SA.partition_to_pseudo from partition leaders and cleared
2019 DECL_RTL for multi-location variables, and that which used to
2020 rename vars and set attrs, with one that clears DECL_RTL and
2021 checks that PARMs and RESULTs default_defs match DECL_RTL.
2022 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
2023 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
2024 * explow.c (promote_ssa_mode): New.
2025 * explow.h (promote_ssa_mode): Declare.
2026 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
2027 * function.c: Include cfgexpand.h.
2028 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
2029 (use_register_for_parm_decl): Wrapper for the above to
2030 special-case the result_ptr.
2031 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
2032 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
2034 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
2035 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
2036 (assign_parm_setup_block): Prefer SSA-assigned location.
2037 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
2038 if stack_parm is NULL.
2039 (assign_parm_setup_stack): Prefer SSA-assigned location.
2040 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
2041 rtl before testing for pointer bounds. Special-case result_ptr.
2042 (expand_function_start): Maybe reset DECL_RTL of result.
2043 Prefer SSA-assigned location for result and static chain.
2044 Factor out DECL_RESULT and SET_DECL_RTL.
2045 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
2046 anonymous SSA names. Use promote_ssa_mode.
2047 (get_temp_reg): Likewise.
2048 (remove_ssa_form): Adjust.
2049 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
2050 and get its reg_usage for reg invalidation.
2051 (compute_bb_dataflow): Pass it insn.
2052 (emit_notes_in_bb): Likewise.
2053 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
2054 fail assert on conversion between unsigned types.
2056 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
2059 * tree-inline.c (reset_debug_binding): New.
2060 (reset_debug_bindings): Likewise.
2061 (expand_call_inline): Call it.
2063 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
2065 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
2068 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
2070 * lto-streamer-out.c (lto_output_location): Stream
2071 reserved locations correctly.
2072 * lto-streamer-in.c (lto_output_location): Likewise.
2074 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
2076 * coretypes.h: Include hash-table.h and hash-set.h for host files.
2077 * ggc.h: Don't include statistics.h>
2078 * hash-map.h: Remove all includes.
2079 * hash-set.h: Likewise.
2080 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
2081 the include list. Remove <new>.
2082 * inchash.h: Remove all includes.
2083 * mem-stats.h: Likewise.
2084 * vec.h: No special processing for generators or ggc.
2085 * alias.c : Adjust include files.
2086 * alloc-pool.c : Likewise.
2087 * alloc-pool.h : Likewise.
2088 * asan.c : Likewise.
2089 * attribs.c : Likewise.
2090 * auto-inc-dec.c : Likewise.
2091 * auto-profile.c : Likewise.
2092 * bb-reorder.c : Likewise.
2093 * bitmap.c : Likewise.
2094 * bitmap.h : Likewise.
2095 * bt-load.c : Likewise.
2096 * builtins.c : Likewise.
2097 * caller-save.c : Likewise.
2098 * calls.c : Likewise.
2099 * ccmp.c : Likewise.
2101 * cfganal.c : Likewise.
2102 * cfgbuild.c : Likewise.
2103 * cfgcleanup.c : Likewise.
2104 * cfgexpand.c : Likewise.
2105 * cfghooks.c : Likewise.
2106 * cfgloop.c : Likewise.
2107 * cfgloop.h : Likewise.
2108 * cfgloopanal.c : Likewise.
2109 * cfgloopmanip.c : Likewise.
2110 * cfgrtl.c : Likewise.
2111 * cgraph.c : Likewise.
2112 * cgraphbuild.c : Likewise.
2113 * cgraphclones.c : Likewise.
2114 * cgraphunit.c : Likewise.
2115 * cilk-common.c : Likewise.
2116 * combine-stack-adj.c : Likewise.
2117 * combine.c : Likewise.
2118 * compare-elim.c : Likewise.
2119 * context.c : Likewise.
2120 * convert.c : Likewise.
2121 * coverage.c : Likewise.
2122 * cppbuiltin.c : Likewise.
2123 * cprop.c : Likewise.
2125 * cselib.c : Likewise.
2126 * data-streamer-in.c : Likewise.
2127 * data-streamer-out.c : Likewise.
2128 * data-streamer.c : Likewise.
2129 * data-streamer.h : Likewise.
2130 * dbxout.c : Likewise.
2133 * debug.c : Likewise.
2134 * df-core.c : Likewise.
2135 * df-problems.c : Likewise.
2136 * df-scan.c : Likewise.
2139 * dojump.c : Likewise.
2140 * dominance.c : Likewise.
2141 * domwalk.c : Likewise.
2142 * double-int.c : Likewise.
2144 * dumpfile.c : Likewise.
2145 * dwarf2asm.c : Likewise.
2146 * dwarf2cfi.c : Likewise.
2147 * dwarf2out.c : Likewise.
2148 * emit-rtl.c : Likewise.
2149 * et-forest.c : Likewise.
2150 * except.c : Likewise.
2151 * except.h : Likewise.
2152 * explow.c : Likewise.
2153 * expmed.c : Likewise.
2154 * expr.c : Likewise.
2155 * final.c : Likewise.
2156 * fixed-value.c : Likewise.
2157 * fold-const.c : Likewise.
2158 * function.c : Likewise.
2159 * fwprop.c : Likewise.
2160 * gcc-plugin.h : Likewise.
2162 * gcse-common.c : Likewise.
2163 * gcse.c : Likewise.
2164 * genattrtab.c : Likewise.
2165 * genautomata.c : Likewise.
2166 * genconditions.c : Likewise.
2167 * genemit.c : Likewise.
2168 * generic-match-head.c : Likewise.
2169 * genextract.c : Likewise.
2170 * gengtype-state.c : Likewise.
2171 * gengtype.c : Likewise.
2172 * genhooks.c : Likewise.
2173 * genmatch.c : Likewise.
2174 * genmodes.c : Likewise.
2175 * genrecog.c : Likewise.
2176 * gensupport.c : Likewise.
2177 * ggc-common.c : Likewise.
2178 * ggc-internal.h : Likewise.
2179 * ggc-none.c : Likewise.
2180 * ggc-page.c : Likewise.
2181 * gimple-builder.c : Likewise.
2182 * gimple-expr.c : Likewise.
2183 * gimple-fold.c : Likewise.
2184 * gimple-iterator.c : Likewise.
2185 * gimple-low.c : Likewise.
2186 * gimple-match-head.c : Likewise.
2187 * gimple-pretty-print.c : Likewise.
2188 * gimple-ssa-isolate-paths.c : Likewise.
2189 * gimple-ssa-strength-reduction.c : Likewise.
2190 * gimple-ssa.h : Likewise.
2191 * gimple-streamer-in.c : Likewise.
2192 * gimple-streamer-out.c : Likewise.
2193 * gimple-streamer.h : Likewise.
2194 * gimple-walk.c : Likewise.
2195 * gimple.c : Likewise.
2196 * gimplify-me.c : Likewise.
2197 * gimplify.c : Likewise.
2198 * godump.c : Likewise.
2199 * graph.c : Likewise.
2200 * graphds.c : Likewise.
2201 * graphite-blocking.c : Likewise.
2202 * graphite-dependences.c : Likewise.
2203 * graphite-interchange.c : Likewise.
2204 * graphite-isl-ast-to-gimple.c : Likewise.
2205 * graphite-optimize-isl.c : Likewise.
2206 * graphite-poly.c : Likewise.
2207 * graphite-scop-detection.c : Likewise.
2208 * graphite-sese-to-poly.c : Likewise.
2209 * graphite.c : Likewise.
2210 * haifa-sched.c : Likewise.
2211 * hard-reg-set.h : Likewise.
2212 * hw-doloop.c : Likewise.
2213 * ifcvt.c : Likewise.
2214 * inchash.c : Likewise.
2215 * incpath.c : Likewise.
2216 * init-regs.c : Likewise.
2217 * input.c : Likewise.
2218 * internal-fn.c : Likewise.
2219 * ipa-chkp.c : Likewise.
2220 * ipa-comdats.c : Likewise.
2221 * ipa-cp.c : Likewise.
2222 * ipa-devirt.c : Likewise.
2223 * ipa-icf-gimple.c : Likewise.
2224 * ipa-icf.c : Likewise.
2225 * ipa-inline-analysis.c : Likewise.
2226 * ipa-inline-transform.c : Likewise.
2227 * ipa-inline.c : Likewise.
2228 * ipa-polymorphic-call.c : Likewise.
2229 * ipa-profile.c : Likewise.
2230 * ipa-prop.c : Likewise.
2231 * ipa-pure-const.c : Likewise.
2232 * ipa-ref.c : Likewise.
2233 * ipa-reference.c : Likewise.
2234 * ipa-split.c : Likewise.
2235 * ipa-utils.c : Likewise.
2236 * ipa-visibility.c : Likewise.
2238 * ira-build.c : Likewise.
2239 * ira-color.c : Likewise.
2240 * ira-conflicts.c : Likewise.
2241 * ira-costs.c : Likewise.
2242 * ira-emit.c : Likewise.
2243 * ira-lives.c : Likewise.
2245 * jump.c : Likewise.
2246 * langhooks.c : Likewise.
2248 * libfuncs.h : Likewise.
2249 * lists.c : Likewise.
2250 * loop-doloop.c : Likewise.
2251 * loop-init.c : Likewise.
2252 * loop-invariant.c : Likewise.
2253 * loop-iv.c : Likewise.
2254 * loop-unroll.c : Likewise.
2255 * lower-subreg.c : Likewise.
2256 * lra-assigns.c : Likewise.
2257 * lra-coalesce.c : Likewise.
2258 * lra-constraints.c : Likewise.
2259 * lra-eliminations.c : Likewise.
2260 * lra-lives.c : Likewise.
2261 * lra-remat.c : Likewise.
2262 * lra-spills.c : Likewise.
2264 * lto-cgraph.c : Likewise.
2265 * lto-compress.c : Likewise.
2266 * lto-opts.c : Likewise.
2267 * lto-section-in.c : Likewise.
2268 * lto-section-out.c : Likewise.
2269 * lto-streamer-in.c : Likewise.
2270 * lto-streamer-out.c : Likewise.
2271 * lto-streamer.c : Likewise.
2272 * lto-streamer.h : Likewise.
2274 * mode-switching.c : Likewise.
2275 * modulo-sched.c : Likewise.
2276 * omega.c : Likewise.
2277 * omp-low.c : Likewise.
2278 * optabs.c : Likewise.
2279 * opts-global.c : Likewise.
2280 * opts.h : Likewise.
2281 * passes.c : Likewise.
2282 * plugin.c : Likewise.
2283 * postreload-gcse.c : Likewise.
2284 * postreload.c : Likewise.
2285 * predict.c : Likewise.
2286 * print-rtl.c : Likewise.
2287 * print-tree.c : Likewise.
2288 * profile.c : Likewise.
2289 * read-md.c : Likewise.
2290 * read-md.h : Likewise.
2291 * read-rtl.c : Likewise.
2292 * real.c : Likewise.
2293 * realmpfr.c : Likewise.
2294 * recog.c : Likewise.
2296 * reg-stack.c : Likewise.
2297 * regcprop.c : Likewise.
2298 * reginfo.c : Likewise.
2299 * regrename.c : Likewise.
2300 * regstat.c : Likewise.
2301 * reload.c : Likewise.
2302 * reload1.c : Likewise.
2303 * reorg.c : Likewise.
2304 * resource.c : Likewise.
2305 * rtl-chkp.c : Likewise.
2308 * rtlanal.c : Likewise.
2309 * rtlhash.c : Likewise.
2310 * rtlhash.h : Likewise.
2311 * rtlhooks.c : Likewise.
2312 * sanopt.c : Likewise.
2313 * sched-deps.c : Likewise.
2314 * sched-ebb.c : Likewise.
2315 * sched-rgn.c : Likewise.
2316 * sched-vis.c : Likewise.
2317 * sdbout.c : Likewise.
2318 * sel-sched-dump.c : Likewise.
2319 * sel-sched-ir.c : Likewise.
2320 * sel-sched-ir.h : Likewise.
2321 * sel-sched.c : Likewise.
2322 * sese.c : Likewise.
2323 * shrink-wrap.c : Likewise.
2324 * shrink-wrap.h : Likewise.
2325 * simplify-rtx.c : Likewise.
2326 * stack-ptr-mod.c : Likewise.
2327 * statistics.c : Likewise.
2328 * stmt.c : Likewise.
2329 * stor-layout.c : Likewise.
2330 * store-motion.c : Likewise.
2331 * stringpool.c : Likewise.
2332 * symtab.c : Likewise.
2333 * target-globals.c : Likewise.
2334 * targhooks.c : Likewise.
2335 * tlink.c : Likewise.
2336 * toplev.c : Likewise.
2337 * tracer.c : Likewise.
2338 * trans-mem.c : Likewise.
2339 * tree-affine.c : Likewise.
2340 * tree-affine.h : Likewise.
2341 * tree-browser.c : Likewise.
2342 * tree-call-cdce.c : Likewise.
2343 * tree-cfg.c : Likewise.
2344 * tree-cfgcleanup.c : Likewise.
2345 * tree-chkp-opt.c : Likewise.
2346 * tree-chkp.c : Likewise.
2347 * tree-chrec.c : Likewise.
2348 * tree-complex.c : Likewise.
2349 * tree-data-ref.c : Likewise.
2350 * tree-dfa.c : Likewise.
2351 * tree-diagnostic.c : Likewise.
2352 * tree-dump.c : Likewise.
2353 * tree-eh.c : Likewise.
2354 * tree-eh.h : Likewise.
2355 * tree-emutls.c : Likewise.
2356 * tree-hasher.h : Likewise.
2357 * tree-if-conv.c : Likewise.
2358 * tree-inline.c : Likewise.
2359 * tree-inline.h : Likewise.
2360 * tree-into-ssa.c : Likewise.
2361 * tree-iterator.c : Likewise.
2362 * tree-loop-distribution.c : Likewise.
2363 * tree-nested.c : Likewise.
2364 * tree-nrv.c : Likewise.
2365 * tree-object-size.c : Likewise.
2366 * tree-outof-ssa.c : Likewise.
2367 * tree-parloops.c : Likewise.
2368 * tree-phinodes.c : Likewise.
2369 * tree-predcom.c : Likewise.
2370 * tree-pretty-print.c : Likewise.
2371 * tree-profile.c : Likewise.
2372 * tree-scalar-evolution.c : Likewise.
2373 * tree-sra.c : Likewise.
2374 * tree-ssa-address.c : Likewise.
2375 * tree-ssa-alias.c : Likewise.
2376 * tree-ssa-ccp.c : Likewise.
2377 * tree-ssa-coalesce.c : Likewise.
2378 * tree-ssa-copy.c : Likewise.
2379 * tree-ssa-copyrename.c : Likewise.
2380 * tree-ssa-dce.c : Likewise.
2381 * tree-ssa-dom.c : Likewise.
2382 * tree-ssa-dse.c : Likewise.
2383 * tree-ssa-forwprop.c : Likewise.
2384 * tree-ssa-ifcombine.c : Likewise.
2385 * tree-ssa-live.c : Likewise.
2386 * tree-ssa-loop-ch.c : Likewise.
2387 * tree-ssa-loop-im.c : Likewise.
2388 * tree-ssa-loop-ivcanon.c : Likewise.
2389 * tree-ssa-loop-ivopts.c : Likewise.
2390 * tree-ssa-loop-manip.c : Likewise.
2391 * tree-ssa-loop-niter.c : Likewise.
2392 * tree-ssa-loop-prefetch.c : Likewise.
2393 * tree-ssa-loop-unswitch.c : Likewise.
2394 * tree-ssa-loop.c : Likewise.
2395 * tree-ssa-math-opts.c : Likewise.
2396 * tree-ssa-operands.c : Likewise.
2397 * tree-ssa-phiopt.c : Likewise.
2398 * tree-ssa-phiprop.c : Likewise.
2399 * tree-ssa-pre.c : Likewise.
2400 * tree-ssa-propagate.c : Likewise.
2401 * tree-ssa-reassoc.c : Likewise.
2402 * tree-ssa-sccvn.c : Likewise.
2403 * tree-ssa-scopedtables.c : Likewise.
2404 * tree-ssa-sink.c : Likewise.
2405 * tree-ssa-strlen.c : Likewise.
2406 * tree-ssa-structalias.c : Likewise.
2407 * tree-ssa-tail-merge.c : Likewise.
2408 * tree-ssa-ter.c : Likewise.
2409 * tree-ssa-threadedge.c : Likewise.
2410 * tree-ssa-threadupdate.c : Likewise.
2411 * tree-ssa-uncprop.c : Likewise.
2412 * tree-ssa-uninit.c : Likewise.
2413 * tree-ssa.c : Likewise.
2414 * tree-ssanames.c : Likewise.
2415 * tree-stdarg.c : Likewise.
2416 * tree-streamer-in.c : Likewise.
2417 * tree-streamer-out.c : Likewise.
2418 * tree-streamer.c : Likewise.
2419 * tree-streamer.h : Likewise.
2420 * tree-switch-conversion.c : Likewise.
2421 * tree-tailcall.c : Likewise.
2422 * tree-vect-data-refs.c : Likewise.
2423 * tree-vect-generic.c : Likewise.
2424 * tree-vect-loop-manip.c : Likewise.
2425 * tree-vect-loop.c : Likewise.
2426 * tree-vect-patterns.c : Likewise.
2427 * tree-vect-slp.c : Likewise.
2428 * tree-vect-stmts.c : Likewise.
2429 * tree-vectorizer.c : Likewise.
2430 * tree-vectorizer.h : Likewise.
2431 * tree-vrp.c : Likewise.
2432 * tree.c : Likewise.
2433 * tsan.c : Likewise.
2434 * ubsan.c : Likewise.
2435 * valtrack.c : Likewise.
2436 * valtrack.h : Likewise.
2437 * value-prof.c : Likewise.
2438 * var-tracking.c : Likewise.
2439 * varasm.c : Likewise.
2440 * varpool.c : Likewise.
2442 * vmsdbgout.c : Likewise.
2443 * vtable-verify.c : Likewise.
2444 * vtable-verify.h : Likewise.
2446 * wide-int.cc : Likewise.
2447 * xcoffout.c : Likewise.
2448 * config/aarch64/aarch64-builtins.c : Likewise.
2449 * config/aarch64/aarch64.c : Likewise.
2450 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
2451 * config/alpha/alpha.c : Likewise.
2452 * config/arc/arc.c : Likewise.
2453 * config/arm/aarch-common.c : Likewise.
2454 * config/arm/arm-builtins.c : Likewise.
2455 * config/arm/arm-c.c : Likewise.
2456 * config/arm/arm.c : Likewise.
2457 * config/avr/avr-c.c : Likewise.
2458 * config/avr/avr-log.c : Likewise.
2459 * config/avr/avr.c : Likewise.
2460 * config/bfin/bfin.c : Likewise.
2461 * config/c6x/c6x.c : Likewise.
2462 * config/cr16/cr16.c : Likewise.
2463 * config/cris/cris.c : Likewise.
2464 * config/darwin-c.c : Likewise.
2465 * config/darwin.c : Likewise.
2466 * config/default-c.c : Likewise.
2467 * config/epiphany/epiphany.c : Likewise.
2468 * config/epiphany/mode-switch-use.c : Likewise.
2469 * config/epiphany/resolve-sw-modes.c : Likewise.
2470 * config/fr30/fr30.c : Likewise.
2471 * config/frv/frv.c : Likewise.
2472 * config/ft32/ft32.c : Likewise.
2473 * config/glibc-c.c : Likewise.
2474 * config/h8300/h8300.c : Likewise.
2475 * config/i386/i386-c.c : Likewise.
2476 * config/i386/i386.c : Likewise.
2477 * config/i386/msformat-c.c : Likewise.
2478 * config/i386/winnt-cxx.c : Likewise.
2479 * config/i386/winnt-stubs.c : Likewise.
2480 * config/i386/winnt.c : Likewise.
2481 * config/ia64/ia64-c.c : Likewise.
2482 * config/ia64/ia64.c : Likewise.
2483 * config/iq2000/iq2000.c : Likewise.
2484 * config/lm32/lm32.c : Likewise.
2485 * config/m32c/m32c-pragma.c : Likewise.
2486 * config/m32c/m32c.c : Likewise.
2487 * config/m32r/m32r.c : Likewise.
2488 * config/m68k/m68k.c : Likewise.
2489 * config/mcore/mcore.c : Likewise.
2490 * config/mep/mep-pragma.c : Likewise.
2491 * config/mep/mep.c : Likewise.
2492 * config/microblaze/microblaze-c.c : Likewise.
2493 * config/microblaze/microblaze.c : Likewise.
2494 * config/mips/mips.c : Likewise.
2495 * config/mmix/mmix.c : Likewise.
2496 * config/mn10300/mn10300.c : Likewise.
2497 * config/moxie/moxie.c : Likewise.
2498 * config/msp430/msp430-c.c : Likewise.
2499 * config/msp430/msp430.c : Likewise.
2500 * config/nds32/nds32-cost.c : Likewise.
2501 * config/nds32/nds32-fp-as-gp.c : Likewise.
2502 * config/nds32/nds32-intrinsic.c : Likewise.
2503 * config/nds32/nds32-isr.c : Likewise.
2504 * config/nds32/nds32-md-auxiliary.c : Likewise.
2505 * config/nds32/nds32-memory-manipulation.c : Likewise.
2506 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
2507 * config/nds32/nds32-predicates.c : Likewise.
2508 * config/nds32/nds32.c : Likewise.
2509 * config/nios2/nios2.c : Likewise.
2510 * config/nvptx/nvptx.c : Likewise.
2511 * config/pa/pa.c : Likewise.
2512 * config/pdp11/pdp11.c : Likewise.
2513 * config/rl78/rl78-c.c : Likewise.
2514 * config/rl78/rl78.c : Likewise.
2515 * config/rs6000/rs6000-c.c : Likewise.
2516 * config/rs6000/rs6000.c : Likewise.
2517 * config/rx/rx.c : Likewise.
2518 * config/s390/s390-c.c : Likewise.
2519 * config/s390/s390.c : Likewise.
2520 * config/sh/sh-c.c : Likewise.
2521 * config/sh/sh-mem.cc : Likewise.
2522 * config/sh/sh.c : Likewise.
2523 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
2524 * config/sh/sh_treg_combine.cc : Likewise.
2525 * config/sol2-c.c : Likewise.
2526 * config/sol2-cxx.c : Likewise.
2527 * config/sol2-stubs.c : Likewise.
2528 * config/sol2.c : Likewise.
2529 * config/sparc/sparc-c.c : Likewise.
2530 * config/sparc/sparc.c : Likewise.
2531 * config/spu/spu-c.c : Likewise.
2532 * config/spu/spu.c : Likewise.
2533 * config/stormy16/stormy16.c : Likewise.
2534 * config/tilegx/mul-tables.c : Likewise.
2535 * config/tilegx/tilegx-c.c : Likewise.
2536 * config/tilegx/tilegx.c : Likewise.
2537 * config/tilepro/mul-tables.c : Likewise.
2538 * config/tilepro/tilepro-c.c : Likewise.
2539 * config/tilepro/tilepro.c : Likewise.
2540 * config/v850/v850-c.c : Likewise.
2541 * config/v850/v850.c : Likewise.
2542 * config/vax/vax.c : Likewise.
2543 * config/visium/visium.c : Likewise.
2544 * config/vms/vms-c.c : Likewise.
2545 * config/vms/vms.c : Likewise.
2546 * config/vxworks.c : Likewise.
2547 * config/winnt-c.c : Likewise.
2548 * config/xtensa/xtensa.c : Likewise.
2550 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
2553 * ipa-utils.h (warn_types_mismatch): Update prototype.
2554 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
2556 (type_mismatch_p): New function.
2557 (warn_types_mismatch): Reorg to work better on non-C++ types.
2558 (odr_types_equivalent_p): Add loc1/loc2 parameters.
2559 (add_type_duplicate): Update.
2561 2015-06-08 Tom de Vries <tom@codesourcery.com>
2563 PR rtl-optimization/66444
2564 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
2567 2015-06-08 Richard Biener <rguenther@suse.de>
2569 PR tree-optimization/66422
2570 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
2571 block after inserted gcc_unreachable.
2573 2015-06-08 Nick Clifton <nickc@redhat.com>
2575 * config/rx/rx.c (rx_function_value): Do not promote vector types.
2576 (rx_promote_function_mode): Likewise.
2577 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
2579 2015-06-08 Jakub Jelinek <jakub@redhat.com>
2581 * genattrtab.c (insn_alternatives): Change type from int *
2583 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
2584 (get_attr_value): Change type of num_alt to uint64_t.
2585 (compute_alternative_mask): Change return type from
2586 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
2587 (make_alternative_compare, mk_attr_alt): Change argument type
2588 from int to uint64_t.
2589 (simplify_test_exp): Change type of i from int to uint64_t.
2590 Shift ((uint64_t) 1) instead of 1 up.
2591 (main): Adjust oballocvec first argument from int to uint64_t.
2592 Shift ((uint64_t) 1) instead of 1 up.
2594 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2597 * gdbhooks.py: Import sys.
2598 (intptr): New function. Replace int(...) by intptr(...).
2600 2015-06-08 Richard Biener <rguenther@suse.de>
2602 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
2603 adjustment for gaps at the end of a SLP load group properly.
2604 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
2605 all permutations we can generate.
2606 (vect_transform_slp_perm_load): Use the correct group-size.
2608 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
2610 * genmatch.c (expr::gen_transform): For conditions, guess the type
2611 from the second operand.
2613 2015-06-08 Tom de Vries <tom@codesourcery.com>
2615 PR tree-optimization/66442
2616 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
2617 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
2618 if the loop latch is not a singleton. Use
2619 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
2621 2015-06-08 Marek Polacek <polacek@redhat.com>
2624 * toplev.c (check_global_declaration): Don't warn about artificial
2627 2015-06-08 Tom de Vries <tom@codesourcery.com>
2629 PR tree-optimization/66436
2630 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
2632 * gimplify.c: Add tree-dump.h include.
2633 (gimplify_function_tree): Dump function to gimple dump file.
2634 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
2637 2015-06-08 Tom de Vries <tom@codesourcery.com>
2639 PR tree-optimization/66435
2640 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
2643 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
2645 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
2646 of ptr_type_node to not be ptr_to_node.
2647 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
2648 TREE_TYPE of pointers.
2649 * gimple-expr.c (useless_type_conversion): Reorder the check for
2650 function pointers and TYPE_CANONICAL.
2652 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
2655 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
2656 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
2657 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
2659 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
2660 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
2661 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
2662 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
2663 and non iso if unix2003.
2665 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
2667 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
2669 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
2671 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
2672 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
2673 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
2674 except.c, final.c, function.c, gcse-common.c, genemit.c,
2675 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
2676 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
2677 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
2678 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
2681 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
2683 * combine.c (combine_split_insns): Remove cast.
2684 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
2685 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
2686 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
2687 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
2688 * genemit.c (gen_split): Change return type of generated functions to
2690 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
2691 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
2692 gen_peephole2_* functions.
2693 (print_subroutine, main): Likewise.
2694 * recog.c (peephole2_optimize): Remove cast.
2695 (peep2_next_insn): Promote return type to rtx_insn.
2696 * recog.h (peep2_next_insn): Fix prototype.
2697 * rtl.h (try_split, split_insns): Likewise.
2699 2015-06-06 DJ Delorie <dj@redhat.com>
2701 * config/msp430/msp430.c (msp430_asm_integer): Support addition
2702 and subtraction too.
2704 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
2707 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
2708 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
2709 instead of Snd. Disparage Sid/z alternative with '^'.
2711 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
2713 * dwarf2out.c: Remove deferred_locations*.
2714 (dwarf2_debug_hooks): Add early_finish hook.
2715 Remove global_decl hook.
2716 Add early_global_decl and late_global_decl hook.
2717 New global early_dwarf.
2718 New structure set_early_dwarf.
2719 (output_die): Indicate whether a DIE was generated early
2720 when generating assembly with -dA.
2721 (struct limbo_die_struct): Document created_for field.
2722 Remove file_table_last_lookup.
2723 (remove_AT): Return TRUE if successful.
2724 (remove_child_TAG): Clear die_parent.
2725 (reparent_child): New function abstracted from...
2726 (splice_child_die): ...here.
2727 (new_die): ICE if a DIE ends up in limbo too late.
2729 (defer_location): Remove.
2730 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
2731 (fill_variable_array_bounds): New.
2732 (decl_start_label): Call fill_variable_array_bounds.
2733 (gen_formal_parameter_die): Rewrite to reuse previously generated
2735 (gen_subprogram_die): Same.
2736 (gen_variable_die): Same.
2737 (gen_const_die): Same.
2738 (gen_label_die): Same.
2739 (gen_lexical_block_die): Same.
2740 (decl_will_get_specification_p): New.
2741 (local_function_static): New.
2742 (gen_struct_or_union_type_die): Fill in variable-length fields.
2743 (gen_typedef_die): Fill in variable-length typedefs.
2744 (gen_tagged_type_die): Gracefully return on error_mark_node.
2746 (gen_type_die_with_usage): Handle variable-length types.
2747 Remove duplicate code for ARRAY_TYPE case.
2748 (process_scope_var): Only process imported modules during early
2750 (dwarf2out_early_global_decl): New.
2751 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
2752 (dwarf2out_type_decl): Set early_dwarf while calling
2754 (dwarf2out_decl): Verify that we did not recreate a previously
2756 Do not return on DECL_EXTERNALs in VAR_DECLs.
2757 Abstract some code to local_function_static.
2758 (lookup_filename): Remove use of file_table_last_lookup.
2759 Gracefully exit on missing file_name.
2760 (dwarf2out_finish): Verify limbo list.
2761 Remove deferred_locations_list use.
2762 Move deferred_asm_name and limbo flushing to...
2763 (dwarf2out_early_finish): ...here. New.
2764 (dwarf2out_c_finalize): Remove set of deferred_location_list,
2765 deferred_asm_name, and file_table_last_lookup.
2766 * cgraph.h (referred_to_p): Add default argument.
2767 * cgraphunit.c (referred_to_p): Add and handle include_self
2769 (analyze_functions): Add first_time argument.
2770 Call check_global_declaration for all symbols.
2771 Call late_global_decl for nodes for moribund nodes.
2772 (finalize_compilation_unit): Add new argument to
2774 Call early_global_decl for functions.
2775 Call early_finish debug hook.
2776 * dbxout.c (dbxout_early_global_decl): New.
2777 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
2778 (dbx_debug_hooks): Add new hooks.
2779 (xcoff_debug_hooks): Same.
2780 * debug.c (do_nothing_debug_hooks): Add early_finish field.
2781 Add early and late debug hooks.
2782 Remove global_decl hook.
2783 * debug.h (struct gcc_debug_hooks): Add early_finish,
2784 early_global_decl, and late_global_decl fields.
2785 Remove global_decl field.
2786 Document gcc_debug_hooks.
2787 * gengtype.c (output_typename): Remove.
2788 * godump.c (go_early_global_decl): New.
2789 (go_late_global_decl): New.
2790 (go_global_decl): Remove.
2791 (dump_go_spec_init): Remove global_decl. Add
2792 {early,late}_global_decl.
2793 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
2794 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
2795 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
2796 (write_global_declarations): Remove.
2797 (global_decl_processing): New.
2798 * langhooks.h (struct lang_hooks_for_decls): Remove
2799 final_write_globals field.
2800 Add post_compilation_parsing_cleanups field.
2801 * passes.c (rest_of_decl_compilation): Call early_global_decl.
2802 * sdbout.c: Add early and late_global_decl hooks. Remove
2803 sdbout_global_decl hook.
2804 Add early_finish field for sdb_debug_hooks.
2805 (sdbout_global_decl): Remove.
2806 (sdbout_early_global_decl): New.
2807 (sdbout_late_global_decl): New.
2808 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
2809 * toplev.c (check_global_declaration): Rename from
2810 check_global_declaration_1.
2811 Adapt to use symtab infrastructure.
2812 (check_global_declarations): Remove.
2813 (emit_debug_global_declarations): Remove.
2814 (compile_file): Remove call to final_write_globals langhook.
2815 Run the actual compilation process.
2816 Perform any post compilation parser cleanups.
2817 Generate late debug info.
2818 * toplev.h (check_global_declaration): New.
2819 (check_global_declaration_1): Remove.
2820 (check_global_declarations): Remove.
2821 (write_global_declarations): Remove.
2822 (emit_debug_global_declarations): Remove.
2823 (global_decl_processing): New.
2824 * tree-core.h (struct tree_block): Add DIE field.
2825 * tree.h (BLOCK_DIE): New.
2826 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
2828 (vmsdbgout_early_global_decl): New.
2829 (vmsdbgout_late_global_decl): New.
2830 Add early_finish debug hook field to vmsdbg_debug_hooks.
2831 Remove vmsdbgout_decl to vmsdbgout_function_decl.
2832 Add early and late_global_decl debug hooks.
2834 2015-06-05 Julian Brown <julian@codesourcery.com>
2835 Sandra Loosemore <sandra@codesourcery.com>
2837 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
2838 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
2839 to print-sysroot-suffix.sh script.
2841 2015-06-05 Tom de Vries <tom@codesourcery.com>
2843 merge from gomp4 branch:
2844 2015-05-28 Tom de Vries <tom@codesourcery.com>
2846 PR tree-optimization/65443
2847 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
2848 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
2849 (try_transform_to_exit_first_loop_alt): New function.
2850 (transform_to_exit_first_loop): Use
2851 try_transform_to_exit_first_loop_alt.
2853 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
2855 * builtins.c (expand_builtin_atomic_compare_exchange): Call
2856 emit_cmp_and_jump_insns with the mode of target.
2858 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2860 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
2862 2015-06-04 DJ Delorie <dj@redhat.com>
2864 * config/msp430/msp430.md (movsi_s): New. Special case for
2865 storing a 20-bit symbol into a 32-bit register.
2866 * config/msp430/msp430.c (msp430_subreg): Add support for it.
2867 * config/msp430/predicates.md (msp430_symbol_operand): New.
2869 2015-06-04 Sriraman Tallam <tmsriram@google.com>
2871 * c-family/c-common.c (noplt): New attribute.
2872 (handle_noplt_attribute): New handler.
2873 * calls.c (prepare_call_address): Check for noplt
2875 * config/i386/i386.c (ix86_expand_call): Check
2876 for noplt attribute.
2877 (ix86_nopic_noplt_attribute_p): New function.
2878 (ix86_output_call_insn): Output indirect call for non-pic
2880 * doc/extend.texi (noplt): Document new attribute.
2881 * doc/invoke.texi: Document new attribute.
2883 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
2885 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
2886 real.h, and fixed-value.h when included in host source files.
2887 * double-int.h: Remove redundant #includes listed above.
2888 * fixed-value.h: Likewise.
2890 * wide-int.h: Likewise.
2891 * inchash.h: Likewise.
2892 * rtl.h: Add some include files When included from a generator file.
2893 * target.h: Remove wide-int.h and insn-modes.h from the include list.
2894 * internal-fn.h: Don't include coretypes.h.
2895 * alias.c: Adjust includes for restructured coretypes.h.
2897 * attribs.c: Likewise.
2898 * auto-inc-dec.c: Likewise.
2899 * auto-profile.c: Likewise.
2900 * bb-reorder.c: Likewise.
2901 * bt-load.c: Likewise.
2902 * builtins.c: Likewise.
2903 * caller-save.c: Likewise.
2904 * calls.c: Likewise.
2907 * cfganal.c: Likewise.
2908 * cfgbuild.c: Likewise.
2909 * cfgcleanup.c: Likewise.
2910 * cfgexpand.c: Likewise.
2911 * cfghooks.c: Likewise.
2912 * cfgloop.c: Likewise.
2913 * cfgloop.h: Likewise.
2914 * cfgloopanal.c: Likewise.
2915 * cfgloopmanip.c: Likewise.
2916 * cfgrtl.c: Likewise.
2917 * cgraph.c: Likewise.
2918 * cgraphbuild.c: Likewise.
2919 * cgraphclones.c: Likewise.
2920 * cgraphunit.c: Likewise.
2921 * cilk-common.c: Likewise.
2922 * combine-stack-adj.c: Likewise.
2923 * combine.c: Likewise.
2924 * compare-elim.c: Likewise.
2925 * convert.c: Likewise.
2926 * coverage.c: Likewise.
2927 * cppbuiltin.c: Likewise.
2928 * cprop.c: Likewise.
2930 * cselib.c: Likewise.
2931 * data-streamer-in.c: Likewise.
2932 * data-streamer-out.c: Likewise.
2933 * data-streamer.c: Likewise.
2934 * dbxout.c: Likewise.
2937 * debug.c: Likewise.
2938 * df-core.c: Likewise.
2939 * df-problems.c: Likewise.
2940 * df-scan.c: Likewise.
2943 * dojump.c: Likewise.
2944 * dominance.c: Likewise.
2945 * domwalk.c: Likewise.
2946 * double-int.c: Likewise.
2948 * dumpfile.c: Likewise.
2949 * dwarf2asm.c: Likewise.
2950 * dwarf2cfi.c: Likewise.
2951 * dwarf2out.c: Likewise.
2952 * dwarf2out.h: Likewise.
2953 * emit-rtl.c: Likewise.
2954 * et-forest.c: Likewise.
2955 * except.c: Likewise.
2956 * explow.c: Likewise.
2957 * expmed.c: Likewise.
2959 * final.c: Likewise.
2960 * fixed-value.c: Likewise.
2961 * fold-const.c: Likewise.
2962 * function.c: Likewise.
2963 * fwprop.c: Likewise.
2964 * gcc-plugin.h: Likewise.
2966 * generic-match-head.c: Likewise.
2967 * ggc-page.c: Likewise.
2968 * gimple-builder.c: Likewise.
2969 * gimple-expr.c: Likewise.
2970 * gimple-fold.c: Likewise.
2971 * gimple-iterator.c: Likewise.
2972 * gimple-low.c: Likewise.
2973 * gimple-match-head.c: Likewise.
2974 * gimple-pretty-print.c: Likewise.
2975 * gimple-ssa-isolate-paths.c: Likewise.
2976 * gimple-ssa-strength-reduction.c: Likewise.
2977 * gimple-streamer-in.c: Likewise.
2978 * gimple-streamer-out.c: Likewise.
2979 * gimple-streamer.h: Likewise.
2980 * gimple-walk.c: Likewise.
2981 * gimple.c: Likewise.
2982 * gimplify-me.c: Likewise.
2983 * gimplify.c: Likewise.
2984 * godump.c: Likewise.
2985 * graph.c: Likewise.
2986 * graphite-blocking.c: Likewise.
2987 * graphite-dependences.c: Likewise.
2988 * graphite-interchange.c: Likewise.
2989 * graphite-isl-ast-to-gimple.c: Likewise.
2990 * graphite-optimize-isl.c: Likewise.
2991 * graphite-poly.c: Likewise.
2992 * graphite-scop-detection.c: Likewise.
2993 * graphite-sese-to-poly.c: Likewise.
2994 * graphite.c: Likewise.
2995 * haifa-sched.c: Likewise.
2996 * hooks.h: Likewise.
2997 * hw-doloop.c: Likewise.
2998 * ifcvt.c: Likewise.
2999 * incpath.c: Likewise.
3000 * init-regs.c: Likewise.
3001 * internal-fn.c: Likewise.
3002 * ipa-chkp.c: Likewise.
3003 * ipa-comdats.c: Likewise.
3004 * ipa-cp.c: Likewise.
3005 * ipa-devirt.c: Likewise.
3006 * ipa-icf-gimple.c: Likewise.
3007 * ipa-icf.c: Likewise.
3008 * ipa-inline-analysis.c: Likewise.
3009 * ipa-inline-transform.c: Likewise.
3010 * ipa-inline.c: Likewise.
3011 * ipa-polymorphic-call.c: Likewise.
3012 * ipa-profile.c: Likewise.
3013 * ipa-prop.c: Likewise.
3014 * ipa-pure-const.c: Likewise.
3015 * ipa-ref.c: Likewise.
3016 * ipa-reference.c: Likewise.
3017 * ipa-split.c: Likewise.
3018 * ipa-utils.c: Likewise.
3019 * ipa-visibility.c: Likewise.
3021 * ira-build.c: Likewise.
3022 * ira-color.c: Likewise.
3023 * ira-conflicts.c: Likewise.
3024 * ira-costs.c: Likewise.
3025 * ira-emit.c: Likewise.
3026 * ira-lives.c: Likewise.
3029 * langhooks.c: Likewise.
3031 * loop-doloop.c: Likewise.
3032 * loop-init.c: Likewise.
3033 * loop-invariant.c: Likewise.
3034 * loop-iv.c: Likewise.
3035 * loop-unroll.c: Likewise.
3036 * lower-subreg.c: Likewise.
3037 * lra-assigns.c: Likewise.
3038 * lra-coalesce.c: Likewise.
3039 * lra-constraints.c: Likewise.
3040 * lra-eliminations.c: Likewise.
3041 * lra-lives.c: Likewise.
3042 * lra-remat.c: Likewise.
3043 * lra-spills.c: Likewise.
3045 * lto-cgraph.c: Likewise.
3046 * lto-compress.c: Likewise.
3047 * lto-opts.c: Likewise.
3048 * lto-section-in.c: Likewise.
3049 * lto-section-out.c: Likewise.
3050 * lto-streamer-in.c: Likewise.
3051 * lto-streamer-out.c: Likewise.
3052 * lto-streamer.c: Likewise.
3054 * mode-switching.c: Likewise.
3055 * modulo-sched.c: Likewise.
3056 * omega.c: Likewise.
3057 * omp-low.c: Likewise.
3058 * optabs.c: Likewise.
3059 * opts-global.c: Likewise.
3060 * passes.c: Likewise.
3061 * plugin.c: Likewise.
3062 * postreload-gcse.c: Likewise.
3063 * postreload.c: Likewise.
3064 * predict.c: Likewise.
3065 * print-rtl.c: Likewise.
3066 * print-tree.c: Likewise.
3067 * profile.c: Likewise.
3069 * realmpfr.c: Likewise.
3070 * realmpfr.h: Likewise.
3071 * recog.c: Likewise.
3073 * reg-stack.c: Likewise.
3074 * regcprop.c: Likewise.
3075 * reginfo.c: Likewise.
3076 * regrename.c: Likewise.
3078 * regstat.c: Likewise.
3079 * reload.c: Likewise.
3080 * reload1.c: Likewise.
3081 * reorg.c: Likewise.
3082 * resource.c: Likewise.
3083 * rtl-chkp.c: Likewise.
3084 * rtlanal.c: Likewise.
3085 * rtlhooks.c: Likewise.
3086 * sanopt.c: Likewise.
3087 * sched-deps.c: Likewise.
3088 * sched-ebb.c: Likewise.
3089 * sched-rgn.c: Likewise.
3090 * sched-vis.c: Likewise.
3091 * sdbout.c: Likewise.
3092 * sel-sched-dump.c: Likewise.
3093 * sel-sched-ir.c: Likewise.
3094 * sel-sched.c: Likewise.
3096 * shrink-wrap.c: Likewise.
3097 * shrink-wrap.h: Likewise.
3098 * simplify-rtx.c: Likewise.
3099 * stack-ptr-mod.c: Likewise.
3100 * statistics.c: Likewise.
3102 * stor-layout.c: Likewise.
3103 * store-motion.c: Likewise.
3104 * stringpool.c: Likewise.
3105 * symtab.c: Likewise.
3106 * target-globals.c: Likewise.
3107 * targhooks.c: Likewise.
3108 * toplev.c: Likewise.
3109 * tracer.c: Likewise.
3110 * trans-mem.c: Likewise.
3111 * tree-affine.c: Likewise.
3112 * tree-affine.h: Likewise.
3113 * tree-browser.c: Likewise.
3114 * tree-call-cdce.c: Likewise.
3115 * tree-cfg.c: Likewise.
3116 * tree-cfgcleanup.c: Likewise.
3117 * tree-chkp-opt.c: Likewise.
3118 * tree-chkp.c: Likewise.
3119 * tree-chrec.c: Likewise.
3120 * tree-complex.c: Likewise.
3121 * tree-data-ref.c: Likewise.
3122 * tree-dfa.c: Likewise.
3123 * tree-diagnostic.c: Likewise.
3124 * tree-dump.c: Likewise.
3125 * tree-eh.c: Likewise.
3126 * tree-emutls.c: Likewise.
3127 * tree-if-conv.c: Likewise.
3128 * tree-inline.c: Likewise.
3129 * tree-into-ssa.c: Likewise.
3130 * tree-iterator.c: Likewise.
3131 * tree-loop-distribution.c: Likewise.
3132 * tree-nested.c: Likewise.
3133 * tree-nrv.c: Likewise.
3134 * tree-object-size.c: Likewise.
3135 * tree-outof-ssa.c: Likewise.
3136 * tree-parloops.c: Likewise.
3137 * tree-phinodes.c: Likewise.
3138 * tree-predcom.c: Likewise.
3139 * tree-pretty-print.c: Likewise.
3140 * tree-pretty-print.h: Likewise.
3141 * tree-profile.c: Likewise.
3142 * tree-scalar-evolution.c: Likewise.
3143 * tree-sra.c: Likewise.
3144 * tree-ssa-address.c: Likewise.
3145 * tree-ssa-alias.c: Likewise.
3146 * tree-ssa-ccp.c: Likewise.
3147 * tree-ssa-coalesce.c: Likewise.
3148 * tree-ssa-copy.c: Likewise.
3149 * tree-ssa-copyrename.c: Likewise.
3150 * tree-ssa-dce.c: Likewise.
3151 * tree-ssa-dom.c: Likewise.
3152 * tree-ssa-dse.c: Likewise.
3153 * tree-ssa-forwprop.c: Likewise.
3154 * tree-ssa-ifcombine.c: Likewise.
3155 * tree-ssa-live.c: Likewise.
3156 * tree-ssa-loop-ch.c: Likewise.
3157 * tree-ssa-loop-im.c: Likewise.
3158 * tree-ssa-loop-ivcanon.c: Likewise.
3159 * tree-ssa-loop-ivopts.c: Likewise.
3160 * tree-ssa-loop-manip.c: Likewise.
3161 * tree-ssa-loop-niter.c: Likewise.
3162 * tree-ssa-loop-prefetch.c: Likewise.
3163 * tree-ssa-loop-unswitch.c: Likewise.
3164 * tree-ssa-loop.c: Likewise.
3165 * tree-ssa-loop.h: Likewise.
3166 * tree-ssa-math-opts.c: Likewise.
3167 * tree-ssa-operands.c: Likewise.
3168 * tree-ssa-phiopt.c: Likewise.
3169 * tree-ssa-phiprop.c: Likewise.
3170 * tree-ssa-pre.c: Likewise.
3171 * tree-ssa-propagate.c: Likewise.
3172 * tree-ssa-reassoc.c: Likewise.
3173 * tree-ssa-sccvn.c: Likewise.
3174 * tree-ssa-scopedtables.c: Likewise.
3175 * tree-ssa-sink.c: Likewise.
3176 * tree-ssa-strlen.c: Likewise.
3177 * tree-ssa-structalias.c: Likewise.
3178 * tree-ssa-tail-merge.c: Likewise.
3179 * tree-ssa-ter.c: Likewise.
3180 * tree-ssa-threadedge.c: Likewise.
3181 * tree-ssa-threadupdate.c: Likewise.
3182 * tree-ssa-uncprop.c: Likewise.
3183 * tree-ssa-uninit.c: Likewise.
3184 * tree-ssa.c: Likewise.
3185 * tree-ssanames.c: Likewise.
3186 * tree-stdarg.c: Likewise.
3187 * tree-streamer-in.c: Likewise.
3188 * tree-streamer-out.c: Likewise.
3189 * tree-streamer.c: Likewise.
3190 * tree-switch-conversion.c: Likewise.
3191 * tree-tailcall.c: Likewise.
3192 * tree-vect-data-refs.c: Likewise.
3193 * tree-vect-generic.c: Likewise.
3194 * tree-vect-loop-manip.c: Likewise.
3195 * tree-vect-loop.c: Likewise.
3196 * tree-vect-patterns.c: Likewise.
3197 * tree-vect-slp.c: Likewise.
3198 * tree-vect-stmts.c: Likewise.
3199 * tree-vectorizer.c: Likewise.
3200 * tree-vrp.c: Likewise.
3203 * ubsan.c: Likewise.
3204 * valtrack.c: Likewise.
3205 * value-prof.c: Likewise.
3206 * var-tracking.c: Likewise.
3207 * varasm.c: Likewise.
3208 * varpool.c: Likewise.
3209 * vmsdbgout.c: Likewise.
3210 * vtable-verify.c: Likewise.
3212 * wide-int-print.cc: Likewise.
3213 * wide-int-print.h: Likewise.
3214 * wide-int.cc: Likewise.
3215 * xcoffout.c: Likewise.
3216 * config/aarch64/aarch64-builtins.c: Likewise.
3217 * config/aarch64/aarch64.c: Likewise.
3218 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
3219 * config/alpha/alpha.c: Likewise.
3220 * config/arc/arc.c: Likewise.
3221 * config/arm/aarch-common.c: Likewise.
3222 * config/arm/arm-builtins.c: Likewise.
3223 * config/arm/arm-c.c: Likewise.
3224 * config/arm/arm.c: Likewise.
3225 * config/avr/avr-c.c: Likewise.
3226 * config/avr/avr-log.c: Likewise.
3227 * config/avr/avr.c: Likewise.
3228 * config/bfin/bfin.c: Likewise.
3229 * config/c6x/c6x.c: Likewise.
3230 * config/cr16/cr16.c: Likewise.
3231 * config/cris/cris.c: Likewise.
3232 * config/darwin-c.c: Likewise.
3233 * config/darwin.c: Likewise.
3234 * config/default-c.c: Likewise.
3235 * config/epiphany/epiphany.c: Likewise.
3236 * config/epiphany/mode-switch-use.c: Likewise.
3237 * config/epiphany/resolve-sw-modes.c: Likewise.
3238 * config/fr30/fr30.c: Likewise.
3239 * config/frv/frv.c: Likewise.
3240 * config/ft32/ft32.c: Likewise.
3241 * config/glibc-c.c: Likewise.
3242 * config/h8300/h8300.c: Likewise.
3243 * config/i386/i386-c.c: Likewise.
3244 * config/i386/i386.c: Likewise.
3245 * config/i386/msformat-c.c: Likewise.
3246 * config/i386/winnt-cxx.c: Likewise.
3247 * config/i386/winnt-stubs.c: Likewise.
3248 * config/i386/winnt.c: Likewise.
3249 * config/ia64/ia64-c.c: Likewise.
3250 * config/ia64/ia64.c: Likewise.
3251 * config/iq2000/iq2000.c: Likewise.
3252 * config/lm32/lm32.c: Likewise.
3253 * config/m32c/m32c-pragma.c: Likewise.
3254 * config/m32c/m32c.c: Likewise.
3255 * config/m32r/m32r.c: Likewise.
3256 * config/m68k/m68k.c: Likewise.
3257 * config/mcore/mcore.c: Likewise.
3258 * config/mep/mep-pragma.c: Likewise.
3259 * config/mep/mep.c: Likewise.
3260 * config/microblaze/microblaze-c.c: Likewise.
3261 * config/microblaze/microblaze.c: Likewise.
3262 * config/mips/mips.c: Likewise.
3263 * config/mmix/mmix.c: Likewise.
3264 * config/mn10300/mn10300.c: Likewise.
3265 * config/moxie/moxie.c: Likewise.
3266 * config/msp430/msp430-c.c: Likewise.
3267 * config/msp430/msp430.c: Likewise.
3268 * config/nds32/nds32-cost.c: Likewise.
3269 * config/nds32/nds32-fp-as-gp.c: Likewise.
3270 * config/nds32/nds32-intrinsic.c: Likewise.
3271 * config/nds32/nds32-isr.c: Likewise.
3272 * config/nds32/nds32-md-auxiliary.c: Likewise.
3273 * config/nds32/nds32-memory-manipulation.c: Likewise.
3274 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3275 * config/nds32/nds32-predicates.c: Likewise.
3276 * config/nds32/nds32.c: Likewise.
3277 * config/nios2/nios2.c: Likewise.
3278 * config/nvptx/nvptx.c: Likewise.
3279 * config/pa/pa.c: Likewise.
3280 * config/pdp11/pdp11.c: Likewise.
3281 * config/rl78/rl78-c.c: Likewise.
3282 * config/rl78/rl78.c: Likewise.
3283 * config/rs6000/rs6000-c.c: Likewise.
3284 * config/rs6000/rs6000.c: Likewise.
3285 * config/rx/rx.c: Likewise.
3286 * config/s390/s390-c.c: Likewise.
3287 * config/s390/s390.c: Likewise.
3288 * config/sh/sh-c.c: Likewise.
3289 * config/sh/sh-mem.cc: Likewise.
3290 * config/sh/sh.c: Likewise.
3291 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
3292 * config/sh/sh_treg_combine.cc: Likewise.
3293 * config/sol2-c.c: Likewise.
3294 * config/sol2-cxx.c: Likewise.
3295 * config/sol2-stubs.c: Likewise.
3296 * config/sol2.c: Likewise.
3297 * config/sparc/sparc-c.c: Likewise.
3298 * config/sparc/sparc.c: Likewise.
3299 * config/spu/spu-c.c: Likewise.
3300 * config/spu/spu.c: Likewise.
3301 * config/stormy16/stormy16.c: Likewise.
3302 * config/tilegx/mul-tables.c: Likewise.
3303 * config/tilegx/tilegx-c.c: Likewise.
3304 * config/tilegx/tilegx.c: Likewise.
3305 * config/tilepro/mul-tables.c: Likewise.
3306 * config/tilepro/tilepro-c.c: Likewise.
3307 * config/tilepro/tilepro.c: Likewise.
3308 * config/v850/v850-c.c: Likewise.
3309 * config/v850/v850.c: Likewise.
3310 * config/vax/vax.c: Likewise.
3311 * config/visium/visium.c: Likewise.
3312 * config/vms/vms-c.c: Likewise.
3313 * config/vms/vms.c: Likewise.
3314 * config/vxworks.c: Likewise.
3315 * config/winnt-c.c: Likewise.
3316 * config/xtensa/xtensa.c: Likewise.
3317 * common/config/bfin/bfin-common.c: Likewise.
3319 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
3321 * tree.h (tree_code_for_canonical_type_merging): New function.
3322 * tree.c (gimple_canonical_types_compatible_p): Use
3323 tree_code_for_canonical_type_merging..
3325 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3329 * doc/tm.texi: Regenerate.
3330 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
3331 * target.def (TARGET_RELAXED_ORDERING): Likewise.
3332 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
3333 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
3334 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
3335 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
3336 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
3337 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
3338 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
3340 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3342 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
3343 register fma steering pass.
3344 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
3345 AARCH64_TUNE_FMA_STEERING.
3347 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
3349 * tree.c (verify_type_variant): Verify that type and variant is
3351 (gimple_canonical_types_compatible_p): Look for main variants.
3353 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
3355 * config.gcc (powerpc*-*-*): Add support for a new configure
3356 option --with-advance-toolchain=<xxx> which overrides using the
3357 default header files, libraries and dynamic linker.
3359 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
3360 specs to support the configure --with-advance-toolchain=<xxx>
3362 (INCLUDE_EXTRA_SPEC): Likewise.
3363 (LINK_OS_EXTRA_SPEC32): Likewise.
3364 (LINK_OK_EXTRA_SPEC64): Likewise.
3365 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
3366 (DYNAMIC_LINKER_PREFIX): Likewise.
3367 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
3369 (GLIBC_DYNAMIC_LINKER32): Likewise.
3370 (GLIBC_DYNAMIC_LINKER64): Likewise.
3371 (LINK_OS_LINUX_SPEC32): Likewise.
3372 (LINK_OS_LINUX_SPEC64): Likewise.
3374 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
3375 configuration option.
3377 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
3380 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
3381 to determine current function ABI.
3382 (ix86_function_value_regno_p): Ditto.
3384 2015-06-03 Martin Liska <mliska@suse.cz>
3386 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
3387 * bitmap.h (struct bitmap_usage): Likewise.
3388 * ggc-common.c (struct ggc_usage): Likewise.
3389 * mem-stats.h (struct mem_location): Likewise.
3390 (struct mem_usage): Likewise.
3391 * vec.c (struct vec_usage): Likewise.
3393 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
3395 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
3398 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
3400 * doc/plugins.texi (enum plugin_event): New event.
3401 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
3402 and PLUGIN_FINISH_FUNCTION.
3403 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
3404 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
3406 2015-06-03 Richard Biener <rguenther@suse.de>
3408 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
3409 compute GROUP_GAP for the first element.
3410 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
3413 2015-06-03 Nick Clifton <nickc@redhat.com>
3415 * config/rl78/rl78-real.md: Add peepholes to avoid a register
3416 copy when calling a function.
3417 * config/rl78/rl78.c (need_to_save): Do not push the frame
3418 pointer in an interrupt handler prologue if it is never used.
3420 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3422 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
3424 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
3426 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
3427 reference when cloning alias node.
3429 2015-06-03 Martin Liska <mliska@suse.cz>
3431 * alloc-pool.h (struct pool_usage): Correct space padding.
3432 * ggc-page.c (ggc_print_statistics): Align columns in a report.
3433 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
3434 * tree.c (dump_tree_statistics): Align columns in a report.
3436 2015-06-03 Martin Liska <mliska@suse.cz>
3438 * alloc-pool.c (allocate_pool_descriptor): Remove.
3439 (struct pool_output_info): Likewise.
3440 (print_alloc_pool_statistics): Likewise.
3441 (dump_alloc_pool_statistics): Likewise.
3442 * alloc-pool.h (struct pool_usage): New struct.
3443 (pool_allocator::initialize): Change usage of memory statistics
3445 (pool_allocator::release): Likewise.
3446 (pool_allocator::allocate): Likewise.
3447 (pool_allocator::remove): Likewise.
3448 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
3449 for a pool allocator.
3450 * mem-stats.h (struct mem_location): Add new ctor.
3451 (struct mem_usage): Add counter for number of
3453 (mem_alloc_description::register_descriptor): New overload of
3454 * mem-stats.h (mem_location::to_string): New function.
3455 * bitmap.h (struct bitmap_usage): Use this new function.
3456 * ggc-common.c (struct ggc_usage): Likewise.
3459 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
3461 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
3462 of GCC_INSN_FLAGS_H block.
3464 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
3466 * explow.c (plus_constant): Update check after force_const_mem call
3467 to see if the value returned is not a NULL_RTX.
3469 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
3471 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
3472 remove instumentation thunks calling reachable functions.
3473 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
3474 * lto/lto-partition.c (privatize_symbol_name_1): New.
3475 (privatize_symbol_name): Privatize both decl and orig_decl
3476 names for instrumented functions.
3477 * cgraph.c (cgraph_node::verify_node): Add transparent
3478 alias chain check for instrumented node.
3480 2015-06-03 Marek Polacek <polacek@redhat.com>
3484 * tree.c (attribute_value_equal): Handle attribute format.
3485 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
3487 2015-06-03 Richard Biener <rguenther@suse.de>
3489 PR tree-optimization/63916
3490 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
3491 Forward-propagate non-invariant addresses by splicing their
3492 reference ops if the result isn't going to be used by PRE.
3493 (vn_reference_lookup_3): Remove pointless assert.
3495 2015-06-03 Richard Biener <rguenther@suse.de>
3497 PR tree-optimization/66375
3498 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
3499 add to the evolution before following SSA edges.
3501 2015-06-03 Bin Cheng <bin.cheng@arm.com>
3503 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
3504 (dump_use, dump_cand, find_induction_variables): Pass new argument
3506 (record_use): Preserve the ssa name information in IV.
3508 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
3510 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
3512 (add_mode_tests): Don't add mode tests if the predicate only
3513 accepts scalar constant integers. Otherwise, allow the mode
3514 of "op" to be VOIDmode if the predicate does accept such integers.
3516 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
3519 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
3520 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
3521 (aarch64_secondary_reload): Likewise
3522 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
3524 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
3527 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
3528 Zhenqiang Chen <zhenqiang.chen@linaro.org>
3531 * cprop.c (try_replace_reg): Check cost of constants before propagating.
3533 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
3535 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
3536 provide access to the IBM extended double floating point mode if
3537 long double is IEEE 128-bit floating point.
3538 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
3539 point if long double is the IBM extended double type.
3541 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
3542 enable adding IEEE 128-bit floating point support.
3543 (-mfloat128-software): Likewise.
3544 (-mfloat128-sw): Likewise.
3546 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
3547 128-bit floating point types to occupy any register if
3548 -mlong-double-64. Do not allow use of IFmode/KFmode unless
3549 -mfloat128-software is enabled.
3550 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
3552 (rs6000_option_override_internal): Add -mfloat128-* support.
3553 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
3555 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
3556 and float128 type nodes.
3557 (ieee128_float_type_node): Likewise.
3558 (ibm128_float_type_node): Likewise.
3560 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
3563 * config/aarch64/geniterators.sh: Rewrite in awk.
3565 2015-06-02 Martin Liska <mliska@suse.cz>
3567 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
3568 values to avoid -Wmaybe-uninitialized errors.
3570 2015-06-02 Richard Biener <rguenther@suse.de>
3573 * dwarf2out.c (lookup_context_die): New function.
3574 (resolve_addr): Avoid forcing a full DIE for the
3575 target of a DW_TAG_GNU_call_site during late compilation.
3576 Instead create a stub DIE without a type if we have a
3577 context DIE present.
3579 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
3581 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
3583 2015-06-02 Bin Cheng <bin.cheng@arm.com>
3585 PR tree-optimization/48052
3586 * cfgloop.h (struct control_iv): New.
3587 (struct loop): New field control_ivs.
3588 * tree-ssa-loop-niter.c : Include "stor-layout.h".
3589 (number_of_iterations_lt): Set no_overflow information.
3590 (number_of_iterations_exit): Init control iv in niter struct.
3591 (record_control_iv): New.
3592 (estimate_numbers_of_iterations_loop): Call record_control_iv.
3593 (loop_exits_before_overflow): New. Interface factored out of
3594 scev_probably_wraps_p.
3595 (scev_probably_wraps_p): Factor loop niter related code into
3596 loop_exits_before_overflow.
3597 (free_numbers_of_iterations_estimates_loop): Free control ivs.
3598 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
3600 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
3602 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
3603 the target doesn't belong to the current function.
3605 2015-06-02 Marek Polacek <polacek@redhat.com>
3608 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
3609 get_maxval_strlen does not produce an INTEGER_CST.
3611 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
3613 * config/arc/constraints.md: Use lower-case names in match_code.
3614 * config/mmix/constraints.md: Likewise.
3616 2015-06-02 Richard Biener <rguenther@suse.de>
3618 PR tree-optimization/65961
3619 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
3620 check and clarify dump message.
3621 (vect_build_slp_tree): If all children are built up from scalars
3622 build up the parent from scalars instead.
3623 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
3625 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3628 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
3629 instead of print ... .
3631 2015-06-02 Alan Modra <amodra@gmail.com>
3633 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
3636 2015-06-02 Bin Cheng <bin.cheng@arm.com>
3638 PR tree-optimization/52563
3639 PR tree-optimization/62173
3640 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
3641 (alloc_iv, set_iv): New parameter.
3642 (determine_biv_step): Delete.
3643 (find_bivs): Inline original determine_biv_step. Pass new
3645 (idx_find_step): Use no_overflow information for conversion.
3646 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
3647 resolve_mixers handle folded_casts.
3648 (instantiate_scev_name): Change bool parameter to bool pointer.
3649 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
3650 (instantiate_array_ref, instantiate_scev_not): Ditto.
3651 (instantiate_scev_3, instantiate_scev_2): Ditto.
3652 (instantiate_scev_1, instantiate_scev_r): Ditto.
3653 (instantiate_scev_convert, ): Change parameter. Pass argument
3654 to chrec_convert_aggressive.
3655 (instantiate_scev): Change argument.
3656 (resolve_mixers): New parameter and set it.
3657 (scev_const_prop): New argument.
3658 * tree-scalar-evolution.h (resolve_mixers): New parameter.
3659 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
3661 (chrec_convert): New parameter. Move definition below.
3662 (chrec_convert_aggressive): New parameter and set it. Call
3663 convert_affine_scev.
3664 * tree-chrec.h (chrec_convert): New parameter.
3665 (chrec_convert_aggressive): Ditto.
3667 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
3669 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
3670 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
3671 the LHS of a no-return call if its type has variable size.
3672 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
3673 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
3675 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
3677 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
3678 * config.in: Regenerate.
3680 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
3682 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
3683 consecutive accesses within outer-loop with force_vectorize
3684 for references with zero step in inner-loop.
3686 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
3688 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
3689 rather than from gcc/build directory.
3691 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
3694 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
3695 for __sync memory models, emit initial loads and final barriers as
3698 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
3701 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
3702 (aarch64_split_atomic_op): Check for __sync memory models, emit
3703 appropriate initial loads and final barriers.
3705 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
3707 * Makefile.in: Fix gcov dependencies that should
3708 not point to a build folder.
3710 2015-06-01 Richard Biener <rguenther@suse.de>
3713 2015-05-29 Richard Biener <rguenther@suse.de>
3715 PR tree-optimization/66314
3716 * tree-ssa-threadupdate.c (create_block_for_threading): Add
3717 parameter that says which loop the new block belongs to.
3718 (ssa_create_duplicates): Blocks duplicated for the threaded
3719 path belong to the loop of the thread destination.
3721 2015-06-01 Martin Liska <mliska@suse.cz>
3723 * sched-deps.c: Include pool-alloc.h before
3724 cselib.h header file is included.
3726 2015-06-01 Richard Biener <rguenther@suse.de>
3728 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
3731 2015-06-01 Martin Liska <mliska@suse.cz>
3733 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
3734 a function local variable.
3736 2015-06-01 Martin Liska <mliska@suse.cz>
3738 * alloc-pool.c (create_alloc_pool): Remove.
3739 (empty_alloc_pool): Likewise.
3740 (free_alloc_pool): Likewise.
3741 (free_alloc_pool_if_empty): Likewise.
3742 (pool_alloc): Likewise.
3743 (pool_free): Likewise.
3744 * alloc-pool.h: Remove old declarations.
3746 2015-06-01 Martin Liska <mliska@suse.cz>
3748 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
3749 (ira_create_object): Likewise.
3750 (ira_create_allocno): Likewise.
3751 (ira_create_live_range): Likewise.
3752 (copy_live_range): Likewise.
3753 (ira_finish_live_range): Likewise.
3754 (ira_free_allocno_costs): Likewise.
3755 (finish_allocno): Likewise.
3756 (finish_allocnos): Likewise.
3757 (initiate_prefs): Likewise.
3758 (ira_create_pref): Likewise.
3759 (finish_pref): Likewise.
3760 (finish_prefs): Likewise.
3761 (initiate_copies): Likewise.
3762 (ira_create_copy): Likewise.
3763 (finish_copy): Likewise.
3764 (finish_copies): Likewise.
3765 (finish_prefs): Likewise.
3767 2015-06-01 Martin Liska <mliska@suse.cz>
3769 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
3770 (allocate_and_init_ipcp_value): Likewise.
3771 (ipcp_lattice::add_value): Likewise.
3772 (merge_agg_lats_step): Likewise.
3773 (ipcp_driver): Likewise.
3774 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
3775 (ipa_free_all_structures_after_iinln): Likewise.
3776 * ipa-prop.h: Likewise.
3778 2015-06-01 Martin Liska <mliska@suse.cz>
3780 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
3782 (set_hint_predicate): Likewise.
3783 (inline_summary_alloc): Likewise.
3784 (reset_inline_edge_summary): Likewise.
3785 (reset_inline_summary): Likewise.
3786 (set_cond_stmt_execution_predicate): Likewise.
3787 (set_switch_stmt_execution_predicate): Likewise.
3788 (compute_bb_predicates): Likewise.
3789 (estimate_function_body_sizes): Likewise.
3790 (inline_free_summary): Likewise.
3792 2015-06-01 Martin Liska <mliska@suse.cz>
3794 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
3795 (ipa_edge_duplication_hook): Likewise.
3796 (ipa_free_all_structures_after_ipa_cp): Likewise.
3797 (ipa_free_all_structures_after_iinln): Likewise.
3799 2015-06-01 Martin Liska <mliska@suse.cz>
3801 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
3802 (ipa_profile_generate_summary): Likewise.
3803 (ipa_profile_read_summary): Likewise.
3804 (ipa_profile): Likewise.
3806 2015-06-01 Martin Liska <mliska@suse.cz>
3808 * tree-ssa-structalias.c (new_var_info): Use new type-based
3810 (new_constraint): Likewise.
3811 (init_alias_vars): Likewise.
3812 (delete_points_to_sets): Likewise.
3814 2015-06-01 Martin Liska <mliska@suse.cz>
3816 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
3817 (free_strinfo): Likewise.
3818 (pass_strlen::execute): Likewise.
3820 2015-06-01 Martin Liska <mliska@suse.cz>
3822 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
3824 (vn_reference_insert_pieces): Likewise.
3825 (vn_phi_insert): Likewise.
3826 (visit_reference_op_call): Likewise.
3827 (copy_phi): Likewise.
3828 (copy_reference): Likewise.
3829 (process_scc): Likewise.
3830 (allocate_vn_table): Likewise.
3831 (free_vn_table): Likewise.
3833 2015-06-01 Martin Liska <mliska@suse.cz>
3835 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
3837 (add_repeat_to_ops_vec): Likewise.
3838 (get_ops): Likewise.
3839 (maybe_optimize_range_tests): Likewise.
3840 (init_reassoc): Likewise.
3841 (fini_reassoc): Likewise.
3843 2015-06-01 Martin Liska <mliska@suse.cz>
3845 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
3847 (bitmap_set_new): Likewise.
3848 (get_or_alloc_expr_for_constant): Likewise.
3849 (get_or_alloc_expr_for): Likewise.
3850 (phi_translate_1): Likewise.
3851 (compute_avail): Likewise.
3852 (init_pre): Likewise.
3853 (fini_pre): Likewise.
3855 2015-06-01 Martin Liska <mliska@suse.cz>
3857 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
3858 (delete_dep_node): Likewise.
3859 (create_deps_list): Likewise.
3860 (free_deps_list): Likewise.
3861 (sched_deps_init): Likewise.
3862 (sched_deps_finish): Likewise.
3864 2015-06-01 Martin Liska <mliska@suse.cz>
3866 * regcprop.c (free_debug_insn_changes): Use new type-based
3868 (replace_oldest_value_reg): Likewise.
3869 (pass_cprop_hardreg::execute): Likewise.
3871 2015-06-01 Martin Liska <mliska@suse.cz>
3873 * ira-build.c (initiate_cost_vectors): Use new type-based
3875 (ira_allocate_cost_vector): Likewise.
3876 (ira_free_cost_vector): Likewise.
3877 (finish_cost_vectors): Likewise.
3879 2015-06-01 Martin Liska <mliska@suse.cz>
3881 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
3883 (free_sched_pools): Likewise.
3884 * sel-sched-ir.h (_list_alloc): Likewise.
3885 (_list_remove): Likewise.
3887 2015-06-01 Martin Liska <mliska@suse.cz>
3889 * stmt.c (add_case_node): Use new type-based pool allocator.
3890 (expand_case): Likewise.
3891 (expand_sjlj_dispatch_table): Likewise.
3893 2015-06-01 Martin Liska <mliska@suse.cz>
3895 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
3896 (free_bb): Likewise.
3897 (pass_cse_reciprocals::execute): Likewise.
3899 2015-06-01 Martin Liska <mliska@suse.cz>
3901 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
3902 (sra_deinitialize) Likewise.
3903 (create_access_1) Likewise.
3904 (build_accesses_from_assign) Likewise.
3905 (create_artificial_child_access) Likewise.
3907 2015-06-01 Martin Liska <mliska@suse.cz>
3909 * dse.c (get_group_info):Use new type-based pool allocator.
3910 (dse_step0) Likewise.
3911 (free_store_info) Likewise.
3912 (delete_dead_store_insn) Likewise.
3913 (free_read_records) Likewise.
3914 (record_store) Likewise.
3915 (replace_read) Likewise.
3916 (check_mem_read_rtx) Likewise.
3917 (scan_insn) Likewise.
3918 (dse_step1) Likewise.
3919 (dse_step7) Likewise.
3921 2015-06-01 Martin Liska <mliska@suse.cz>
3923 * df-scan.c (struct df_scan_problem_data):Use new type-based
3925 (df_scan_free_internal) Likewise.
3926 (df_scan_alloc) Likewise.
3927 (df_grow_reg_info) Likewise.
3928 (df_free_ref) Likewise.
3929 (df_insn_create_insn_record) Likewise.
3930 (df_mw_hardreg_chain_delete) Likewise.
3931 (df_insn_info_delete) Likewise.
3932 (df_free_collection_rec) Likewise.
3933 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
3934 (df_sort_and_compress_mws) Likewise.
3935 (df_ref_create_structure) Likewise.
3936 (df_ref_record) Likewise.
3938 2015-06-01 Martin Liska <mliska@suse.cz>
3940 * df-problems.c (df_chain_create):Use new type-based pool allocator.
3941 (df_chain_unlink_1) Likewise.
3942 (df_chain_unlink) Likewise.
3943 (df_chain_remove_problem) Likewise.
3944 (df_chain_alloc) Likewise.
3945 (df_chain_free) Likewise.
3946 * df.h (struct dataflow) Likewise.
3948 2015-06-01 Martin Liska <mliska@suse.cz>
3950 * cselib.c (new_elt_list):Use new type-based pool allocator.
3951 (new_elt_loc_list) Likewise.
3952 (unchain_one_elt_list) Likewise.
3953 (unchain_one_elt_loc_list) Likewise.
3954 (unchain_one_value) Likewise.
3955 (new_cselib_val) Likewise.
3956 (cselib_init) Likewise.
3957 (cselib_finish) Likewise.
3959 2015-06-01 Martin Liska <mliska@suse.cz>
3961 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
3962 (sh_reorg) Likewise.
3964 2015-06-01 Martin Liska <mliska@suse.cz>
3966 * cfg.c (initialize_original_copy_tables):Use new type-based
3968 (free_original_copy_tables) Likewise.
3969 (copy_original_table_clear) Likewise.
3970 (copy_original_table_set) Likewise.
3972 2015-06-01 Martin Liska <mliska@suse.cz>
3974 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
3976 (asan_mem_ref_new) Likewise.
3977 (free_mem_ref_resources) Likewise.
3979 2015-06-01 Martin Liska <mliska@suse.cz>
3981 * var-tracking.c (variable_htab_free):Use new type-based
3983 (attrs_list_clear) Likewise.
3984 (attrs_list_insert) Likewise.
3985 (attrs_list_copy) Likewise.
3986 (shared_hash_unshare) Likewise.
3987 (shared_hash_destroy) Likewise.
3988 (unshare_variable) Likewise.
3989 (var_reg_delete_and_set) Likewise.
3990 (var_reg_delete) Likewise.
3991 (var_regno_delete) Likewise.
3992 (drop_overlapping_mem_locs) Likewise.
3993 (variable_union) Likewise.
3994 (insert_into_intersection) Likewise.
3995 (canonicalize_values_star) Likewise.
3996 (variable_merge_over_cur) Likewise.
3997 (dataflow_set_merge) Likewise.
3998 (remove_duplicate_values) Likewise.
3999 (variable_post_merge_new_vals) Likewise.
4000 (dataflow_set_preserve_mem_locs) Likewise.
4001 (dataflow_set_remove_mem_locs) Likewise.
4002 (variable_from_dropped) Likewise.
4003 (variable_was_changed) Likewise.
4004 (set_slot_part) Likewise.
4005 (clobber_slot_part) Likewise.
4006 (delete_slot_part) Likewise.
4007 (loc_exp_insert_dep) Likewise.
4008 (notify_dependents_of_changed_value) Likewise.
4009 (emit_notes_for_differences_1) Likewise.
4010 (vt_emit_notes) Likewise.
4011 (vt_initialize) Likewise.
4012 (vt_finalize) Likewise.
4014 2015-06-01 Martin Liska <mliska@suse.cz>
4016 * ira-color.c (init_update_cost_records):Use new type-based
4018 (get_update_cost_record) Likewise.
4019 (free_update_cost_record_list) Likewise.
4020 (finish_update_cost_records) Likewise.
4021 (initiate_cost_update) Likewise.
4023 2015-06-01 Martin Liska <mliska@suse.cz>
4025 * lra.c (init_insn_regs): Use new type-based pool allocator.
4026 (new_insn_reg) Likewise.
4027 (free_insn_reg) Likewise.
4028 (free_insn_regs) Likewise.
4029 (finish_insn_regs) Likewise.
4030 (init_insn_recog_data) Likewise.
4031 (init_reg_info) Likewise.
4032 (finish_reg_info) Likewise.
4033 (lra_free_copies) Likewise.
4034 (lra_create_copy) Likewise.
4035 (invalidate_insn_data_regno_info) Likewise.
4037 2015-06-01 Martin Liska <mliska@suse.cz>
4039 * lra-lives.c (free_live_range): Use new type-based pool allocator.
4040 (free_live_range_list) Likewise.
4041 (create_live_range) Likewise.
4042 (copy_live_range) Likewise.
4043 (lra_merge_live_ranges) Likewise.
4044 (remove_some_program_points_and_update_live_ranges) Likewise.
4045 (lra_live_ranges_init) Likewise.
4046 (lra_live_ranges_finish) Likewise.
4048 2015-06-01 Martin Liska <mliska@suse.cz>
4050 * et-forest.c (et_new_occ): Use new type-based pool allocator.
4051 (et_new_tree): Likewise.
4052 (et_free_tree): Likewise.
4053 (et_free_tree_force): Likewise.
4054 (et_free_pools): Likewise.
4055 (et_split): Likewise.
4057 2015-06-01 Martin Liska <mliska@suse.cz>
4059 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
4061 * alloc-pool.h (pool_allocator::pool_allocator): New function.
4062 (pool_allocator::release): Likewise.
4063 (inline pool_allocator::release_if_empty): Likewise.
4064 (inline pool_allocator::~pool_allocator): Likewise.
4065 (pool_allocator::allocate): Likewise.
4066 (pool_allocator::remove): Likewise.
4068 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
4070 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
4073 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
4075 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
4077 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
4078 (arm_macro_fusion_p): Likewise.
4079 (arm_macro_fusion_pair_p): Likewise.
4081 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
4083 * config/aarch64/aarch64-protos.h (tune_params): Rename
4084 fuseable_ops to fusible_ops.
4085 * config/aarch64/aarch64.c (generic_tunings): Rename
4086 fuseable_ops to fusible_ops.
4087 (cortexa53_tunings): Likewise.
4088 (cortexa57_tunings): Likewise.
4089 (thunderx_tunings): Likewise.
4090 (xgene1_tunings): Likewise.
4091 (aarch64_macro_fusion_p): Likewise.
4092 (aarch64_macro_fusion_pair_p): Likewise.
4094 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
4096 * config/s390/driver-native.c: New file.
4097 * config/s390/x-native: New file.
4098 * config.host: Add new files for s390.
4099 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
4101 * config.gcc: Likewise.
4102 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
4103 * config/s390/s390-opts.h (enum processor_type): Ditto.
4104 * config/s390/s390.c (s390_option_override): Catch unhandled
4107 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
4110 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
4111 redirection for instrumented calls.
4112 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
4113 (append_compiler_options): Append -fcheck-pointer-bounds.
4114 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
4115 (chkp_redirect_edge): New.
4116 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
4117 (chkp_redirect_edge): New.
4119 2015-06-01 Richard Biener <rguenther@suse.de>
4121 PR tree-optimization/66280
4122 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
4125 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4127 * config/aarch64/aarch64.md
4128 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
4131 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
4133 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
4134 Remove obsolete kludge.
4136 2015-06-01 Richard Biener <rguenther@suse.de>
4138 * tree-ssa-reassoc.c (get_rank): Simplify.
4140 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
4142 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
4143 * configure: Regenerated.
4145 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
4147 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
4148 issue (add space between string literal and macro).
4149 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
4151 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
4153 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
4154 implict or explicit -fPIE or -fpie.
4156 2015-05-30 Mike Frysinger <vapier@gentoo.org>
4158 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
4160 2015-05-28 DJ Delorie <dj@redhat.com>
4162 * expmed.c (extract_bit_field_1): Avoid clobbering a
4163 yet-to-be-used base/index register.
4165 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
4167 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
4168 (alias_stats): Add num_universal.
4169 (alias_set_subset_of): Special case pointers; be ready for NULL
4171 (alias_sets_conflict_p): Special case pointers; be ready for NULL
4173 (init_alias_set_entry): Break out from ...
4174 (record_alias_subset): ... here; propagate new fields;
4175 allocate children only when really needed.
4176 (get_alias_set): Do less generous pointer globbing.
4177 (dump_alias_stats_in_alias_c): Update statistics.
4179 2015-05-30 Alan Modra <amodra@gmail.com>
4181 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
4182 correct block for use of r12.
4183 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
4185 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
4188 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
4191 2015-05-29 Jakub Jelinek <jakub@redhat.com>
4193 PR tree-optimization/66142
4194 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
4195 virtual phis that feed themselves.
4197 2015-05-29 Richard Biener <rguenther@suse.de>
4199 PR tree-optimization/66314
4200 * tree-ssa-threadupdate.c (create_block_for_threading): Add
4201 parameter that says which loop the new block belongs to.
4202 (ssa_create_duplicates): Blocks duplicated for the threaded
4203 path belong to the loop of the thread destination.
4205 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4207 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
4208 to cleanup-saved-temps.
4209 * doc/sourcebuild.texi (Clean up generated test files): Expand
4211 (dg-keep-saved-temps): Document new proc.
4212 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
4213 cleanup-saved-temps): Remove.
4215 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
4217 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
4219 * configure: Regenerate.
4221 2015-05-28 Mike Frysinger <vapier@gentoo.org>
4223 * config/nios2/linux.h (CPP_SPEC): Define.
4225 2015-05-28 Mike Frysinger <vapier@gentoo.org>
4227 * config/microblaze/linux.h (CPP_SPEC): Define.
4229 2015-05-28 Mike Frysinger <vapier@gentoo.org>
4231 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
4232 -pthread is specified.
4234 2015-05-28 Richard Biener <rguenther@suse.de>
4236 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
4237 (vect_fixup_scalar_cycles_with_patterns): Likewise.
4238 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
4239 after pattern recog.
4240 (vect_create_epilog_for_reduction): Properly handle reductions
4242 (vectorizable_reduction): Likewise.
4243 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
4245 (vect_get_constant_vectors): Create the correct number of
4246 initial values for reductions.
4247 (vect_schedule_slp_instance): Handle reduction chains that are
4248 type changing properly.
4249 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
4251 2015-05-28 Richard Biener <rguenther@suse.de>
4253 PR tree-optimization/66142
4254 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
4255 values better in memcpy destination handling. Handle non-aliasing
4258 2015-05-28 Lawrence Velázquez <vq@larryv.me>
4261 * config/darwin-c.c (version_components): New global enum.
4262 (parse_version, version_as_legacy_macro)
4263 (version_as_modern_macro, macosx_version_as_macro): New functions.
4264 (version_as_macro): Remove.
4265 (darwin_cpp_builtins): Use new function.
4267 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
4269 * builtins.c (expand_builtin_acc_on_device): Mark parameters
4270 with ATTRIBUTE_UNUSED.
4272 2015-05-28 Julian Brown <julian@codesourcery.com>
4276 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
4277 sequence for !ACCEL_COMPILER.
4279 2015-05-28 Nick Clifton <nickc@redhat.com>
4281 * config/rx/rx.c (push_regs): New function. Extracts code from...
4282 (rx_expand_prologue): ... here. Use push_regs to push even small
4284 (pop_regs): New function.
4285 (rx_expand_epilogue): Use pop_regs to pop even small spans of
4288 2015-05-28 Richard Biener <rguenther@suse.de>
4290 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
4292 (SLP_INSTANCE_BODY_COST_VEC): Remove.
4293 (vect_update_slp_costs_according_to_vf): Likewise.
4294 (vect_slp_analyze_operations): Update prototype.
4295 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
4296 vect_update_slp_costs_according_to_vf, adjust.
4297 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
4298 (vect_analyze_slp_cost_1): Likewise.
4299 (vect_analyze_slp_cost): Likewise. Properly deal with
4300 widening reduction ops. Commit body costs.
4301 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
4302 cost for loops from here.
4303 (vect_slp_analyze_operations): But do it from here when
4304 the vectorization factor is known and stmts are analyzed.
4305 (vect_bb_vectorization_profitable_p): Simplify.
4306 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
4307 (vect_update_slp_costs_according_to_vf): Remove.
4309 2015-05-27 Magnus Granberg <zorry@gentoo.org>
4310 H.J. Lu <hongjiu.lu@intel.com>
4312 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
4313 (BUILD_CFLAGS): Likewise.
4314 (BUILD_CXXFLAGS): Likewise.
4315 (LINKER): Add @NO_PIE_FLAG@.
4316 (BUILD_LDFLAGS): Likewise.
4317 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
4318 --enable-default-pie.
4319 * common.opt (fPIE): Initialize to -1.
4321 (no-pie): New option.
4322 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
4323 * configure.ac: Add --enable-default-pie.
4324 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
4325 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
4326 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
4327 * gcc.c (NO_PIE_SPEC): New.
4328 (PIE_SPEC): Likewise.
4329 (NO_FPIE1_SPEC): Likewise.
4330 (FPIE1_SPEC): Likewise.
4331 (NO_FPIE2_SPEC): Likewise.
4332 (FPIE2_SPEC): Likewise.
4333 (NO_FPIE2_SPEC): Likewise.
4334 (FPIE_SPEC): Likewise.
4335 (NO_FPIE_SPEC): Likewise.
4336 (NO_FPIC1_SPEC): Likewise.
4337 (FPIC1_SPEC): Likewise.
4338 (NO_FPIC2_SPEC): Likewise.
4339 (FPIC2_SPEC): Likewise.
4340 (NO_FPIC2_SPEC): Likewise.
4341 (FPIC_SPEC): Likewise.
4342 (NO_FPIC_SPEC): Likewise.
4343 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
4344 (FPIE1_OR_FPIC1_SPEC): Likewise.
4345 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
4346 (FPIE2_OR_FPIC2_SPEC): Likewise.
4347 (NO_FPIE_AND_FPIC_SPEC): Likewise.
4348 (FPIE_OR_FPIC_SPEC): Likewise.
4349 (LD_PIE_SPEC): Likewise.
4350 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
4351 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
4352 * config/darwin.h (PIE_SPEC): Renamed to ...
4353 (DARWIN_PIE_SPEC): This.
4354 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
4355 * config/darwin9.h (PIE_SPEC): Renamed to ...
4356 (DARWIN_PIE_SPEC): This.
4357 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
4358 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
4359 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
4360 FPIE2_OR_FPIC2_SPEC.
4361 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
4362 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
4363 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
4364 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
4365 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
4366 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
4367 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
4368 * config/m32r/m32r.h (ASM_SPEC): Likewise.
4369 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
4370 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
4371 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
4372 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
4373 * config/sparc/linux.h (ASM_SPEC): Likewise.
4374 * config/sparc/linux64.h (ASM_SPEC): Likewise.
4375 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
4376 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
4377 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
4378 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
4379 * config/sparc/sparc.h (ASM_SPEC): Likewise.
4380 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
4381 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
4382 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
4383 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
4384 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
4385 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
4386 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
4387 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
4388 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
4389 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
4390 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
4391 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
4392 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
4393 * config/vax/linux.h (ASM_SPEC): Likewise.
4394 * doc/install.texi: Document --enable-default-pie.
4395 * doc/invoke.texi: Document -no-pie.
4396 * config.in: Regenerated.
4397 * configure: Likewise.
4399 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
4401 PR rtl-optimization/66168
4402 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
4403 can_move_invariant_reg.
4405 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
4408 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
4409 REG_EQUAL note when doing insert.
4411 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
4412 instead of "%d" for 'o' operand.
4414 2015-05-27 Nathan Sidwell <nathan@acm.org>
4417 * tree.c (build_pointer_type_for_mode): Canonical type does not
4418 inherit can_alias_all.
4419 (build_reference_type_for_mode): Likewise.
4421 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
4423 * expr.h (array_at_struct_end_p): Move to...
4424 (array_ref_element_size): Likewise.
4425 (component_ref_field_offset): Likewise.
4426 * tree.h (array_ref_element_size): ...here.
4427 (array_at_struct_end_p): Likewise.
4428 (component_ref_field_offset): Likewise.
4429 * expr.c (array_ref_element_size): Move to...
4430 (array_ref_low_bound): Likewise.
4431 (array_at_struct_end_p): Likewise.
4432 (array_ref_up_bound): Likewise.
4433 (component_ref_field_offset): Likewise.
4434 * tree.c (array_ref_element_size): ...here.
4435 (array_ref_low_bound): Likewise.
4436 (array_ref_up_bound): Likewise.
4437 (array_at_struct_end_p): Likewise.
4438 (component_ref_field_offset): Likewise.
4440 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
4441 Szabolcs Nagy <szabolcs.nagy@arm.com>
4443 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
4445 2015-05-27 Jason Merrill <jason@redhat.com>
4448 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
4449 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
4450 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
4452 2015-05-22 Aditya Kumar <hiraditya@msn.com>
4454 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
4457 * statistics.c (statistics_fini_pass): Print pass name.
4459 2015-05-27 Richard Biener <rguenther@suse.de>
4461 PR tree-optimization/66272
4463 2014-08-15 Richard Biener <rguenther@suse.de>
4465 PR tree-optimization/62031
4466 * tree-data-ref.c (dr_analyze_indices): Do not set
4467 DR_UNCONSTRAINED_BASE.
4468 (dr_may_alias_p): All indirect accesses have to go the
4469 formerly DR_UNCONSTRAINED_BASE path.
4470 * tree-data-ref.h (struct indices): Remove
4471 unconstrained_base member.
4472 (DR_UNCONSTRAINED_BASE): Remove.
4474 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
4476 * dwarf2out.c: Remove block_map.
4477 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
4478 (gen_lexical_block_die): Same.
4479 (dwarf2out_function_decl): Remove block_map use.
4480 (dwarf2out_c_finalize): Same.
4481 * tree-core.h (struct tree_block): Add die field.
4482 * tree.h (BLOCK_DIE): New.
4484 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4487 * expr.c (memory_load_overlap): New function.
4488 (emit_push_insn): When pushing partial args to the stack would
4489 clobber the register part load the overlapping part into a pseudo
4490 and put it into the hard reg after pushing. Change return type
4491 to bool. Add bool argument.
4492 * expr.h (emit_push_insn): Change return type to bool.
4494 * calls.c (expand_call): Cancel sibcall optimization when encountering
4495 partial argument on targets with ARGS_GROW_DOWNWARD and
4496 !STACK_GROWS_DOWNWARD.
4497 (emit_library_call_value_1): Update callsite of emit_push_insn.
4498 (store_one_arg): Likewise.
4500 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
4502 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
4504 2015-05-27 Martin Liska <mliska@suse.cz>
4506 * Makefile.in: Add additional dependencies related to memory report
4508 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
4509 * bitmap.c (struct bitmap_descriptor_d): Remove.
4510 (struct loc): Likewise.
4511 (struct bitmap_desc_hasher): Likewise.
4512 (bitmap_desc_hasher::hash): Likewise.
4513 (bitmap_desc_hasher::equal): Likewise.
4514 (get_bitmap_descriptor): Likewise.
4515 (bitmap_register): User new memory descriptor API.
4516 (register_overhead): Likewise.
4517 (bitmap_find_bit): Register nsearches and search_iter statistics.
4518 (struct bitmap_output_info): Remove.
4519 (print_statistics): Likewise.
4520 (dump_bitmap_statistics): Use new memory descriptor.
4521 * bitmap.h (struct bitmap_usage): New class.
4522 * genmatch.c: Extend header file inclusion.
4523 * genpreds.c: Likewise.
4524 * ggc-common.c (struct ggc_usage): New class.
4525 (struct ggc_loc_desc_hasher): Remove.
4526 (ggc_loc_desc_hasher::hash): Likewise.
4527 (ggc_loc_desc_hasher::equal): Likewise.
4528 (struct ggc_ptr_hash_entry): Likewise.
4529 (struct ptr_hash_hasher): Likewise.
4530 (ptr_hash_hasher::hash): Likewise.
4531 (ptr_hash_hasher::equal): Likewise.
4532 (make_loc_descriptor): Likewise.
4533 (ggc_prune_ptr): Likewise.
4534 (dump_ggc_loc_statistics): Use new memory descriptor.
4535 (ggc_record_overhead): Likewise.
4536 (ggc_free_overhead): Likewise.
4537 (final_cmp_statistic): Remove.
4538 (cmp_statistic): Likewise.
4539 (ggc_add_statistics): Liekwise.
4540 (ggc_prune_overhead_list): Likewise.
4541 * hash-map-traits.h: New file.
4542 * hash-map.h (struct default_hashmap_traits): Move the traits to a
4543 separate header file.
4544 * hash-set.h: Pass memory statistics info to ctor.
4545 * hash-table.c (void dump_hash_table_loc_statistics): New function.
4546 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
4547 (hash_table::~hash_table): Register memory release operation.
4548 (hash_table::alloc_entries): Handle memory allocation operation.
4549 (hash_table::expand): Likewise.
4550 * inchash.c (iterative_hash_hashval_t): Move implementation to header
4552 (iterative_hash_host_wide_int): Likewise.
4553 * inchash.h (class hash): Likewise.
4554 * mem-stats-traits.h: New file.
4555 * mem-stats.h: New file.
4556 (mem_location): Add new class.
4557 (mem_usage): Likewise.
4558 (mem_alloc_description): Likewise.
4559 * sese.c: Add new header file inclusision.
4560 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
4562 * tree-sra.c: Add new header file inclusision.
4563 * vec.c (struct vec_descriptor): Remove.
4564 (hash_descriptor): Likewise.
4565 (struct vec_usage): Likewise.
4566 (struct ptr_hash_entry): Likewise.
4567 (hash_ptr): Likewise.
4569 (vec_prefix::register_overhead): Use new memory descriptor API.
4570 (vec_prefix::release_overhead): Likewise.
4571 (add_statistics): Remove.
4572 (dump_vec_loc_statistics): Use new memory descriptor API.
4573 * vec.h (struct vec_prefix): Likewise.
4574 (va_heap::reserve): Likewise.
4575 (va_heap::release): Likewise.
4576 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
4578 2015-05-27 Richard Biener <rguenther@suse.de>
4580 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
4581 earlier and remove ??? comment.
4582 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
4583 and got called from loop analysis bail out. Always pass the SLP
4584 node to the vectorizable_* functions.
4585 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
4586 the premature SLP check here.
4587 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
4589 (vect_detect_hybrid_slp_1): Likewise.
4591 2015-05-26 Jeff Law <law@redhat.com>
4593 * combine.c (find_split_point): Verify that the shift count is a
4594 constant when choosing (plus (ashift ...)) as a split point.
4596 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
4597 No functional changes.
4599 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
4601 * ipa-polymorphic-call.c
4602 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
4603 case when call target is already known.
4605 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
4608 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
4609 take into account the case that operands[1] and operands[2]
4610 are the same register.
4612 2015-05-26 Michael Matz <matz@suse.de>
4616 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
4618 (vect_create_vectorized_demotion_stmts): Always set
4619 STMT_VINFO_VEC_STMT, also with SLP.
4620 (vectorizable_store): Handle strided group stores.
4622 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4625 * config/aarch64/aarch64.md
4626 (*adds_shift_imm_<mode>): New pattern.
4627 (*subs_shift_imm_<mode>): Likewise.
4628 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
4629 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
4630 (*add_uxt<mode>_shift2): Likewise.
4631 (*add_uxtsi_shift2_uxtw): Likewise.
4632 (*sub_uxt<mode>_shift2): Likewise.
4633 (*sub_uxtsi_shift2_uxtw): Likewise.
4635 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
4637 * config/rs6000/constraints.md (Y, U): Use match_test.
4639 2015-05-26 Christian Bruel <christian.bruel@st.com>
4642 * config/arm/arm.c (arm_option_check_internal)
4643 (arm_option_params_internal): Check opts->target_flags to set macros.
4644 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
4645 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
4646 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
4647 (builtin_define): Replaced with def_or_undef_macro.
4648 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
4649 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
4650 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
4651 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
4652 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
4653 (TARGET_ARM_FEATURE_LDREX_P)
4654 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
4655 * config/arm/arm-c.c (def_or_undef_macro): New function.
4656 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
4658 2015-05-26 Christian Bruel <christian.bruel@st.com>
4660 * c-common.h (builtin_define_with_int_value)
4661 (builtin_define_type_sizeof): Declare.
4662 * c-cppbuiltin.c (builtin_define_with_int_value)
4663 (builtin_define_type_sizeof): Externalize.
4664 (builtin_define_std): Cleanup declaration.
4665 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
4666 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
4667 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
4668 (builtin_define, builtin_assert): New macros.
4670 2015-05-26 Richard Biener <rguenther@suse.de>
4672 PR tree-optimization/66142
4673 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
4674 MEM_REFs for the same base address.
4676 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4679 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
4681 2015-05-26 Jason Merrill <jason@redhat.com>
4683 * configure.ac: Set CXXFLAGS for ISL test.
4684 * configure: Regenerate.
4686 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
4687 strstr and basename.
4688 * configure: Regenerate.
4690 2015-05-26 Richard Biener <rguenther@suse.de>
4692 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
4693 X % C -> X & (C - 1) for C being a power-of two to ...
4694 * match.pd: ... patterns.
4696 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
4698 * match.pd (swapped_tcc_comparison): New operator list.
4699 (-A CMP -B): New simplification.
4700 * fold-const.c (fold_comparison): Remove corresponding code.
4702 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
4704 * caller-save.c (init_caller_save): Base temporary register numbers
4705 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
4706 * cfgloopanal.c (init_set_costs): Likewise.
4707 * dojump.c (prefer_and_bit_test): Likewise.
4708 * expr.c (init_expr_target): Likewise.
4709 * ira.c (setup_prohibited_mode_move_regs): Likewise.
4710 * lower-subreg.c (init_lower_subreg): Likewise.
4711 * postreload.c (reload_cse_regs_1): Likewise.
4713 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
4715 * gensupport.h (compute_test_codes): Declare.
4716 * gensupport.c (compute_predicate_codes): Rename to...
4717 (compute_test_codes): ...this. Generalize error message.
4718 (process_define_predicate): Update accordingly.
4719 * genpreds.c (compute_maybe_allows): Delete.
4720 (add_constraint): Use compute_test_codes to determine whether
4721 something can accept a SUBREG, REG or MEM.
4723 2015-05-26 Torvald Riegel <triegel@redhat.com>
4725 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
4726 'memory model' to align with C++11; fix description of memory orders;
4729 2015-05-26 Richard Biener <rguenther@suse.de>
4731 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
4732 (vect_analyze_loop_operations): ... here. Remove slp parameter,
4733 detect whether we apply SLP. Remove call to
4734 vect_update_slp_costs_according_to_vf.
4735 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
4736 vect_update_slp_costs_according_to_vf from here. Dispatch
4737 to vect_slp_analyze_operations to analyze SLP stmts.
4738 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
4739 unused bb_vec_info parameter, adjust assert.
4740 (vect_slp_analyze_operations): Pass in the slp instance tree
4741 instead of bb_vec_info.
4742 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
4743 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
4745 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
4747 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
4748 Q_REGS. Expand comment.
4749 (REG_CLASS_NAMES): Ditto.
4750 (REG_CLASS_CONTENTS): Ditto.
4752 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
4755 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
4756 when LEGACY_INT_REGNO_P is processed.
4758 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
4760 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
4762 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4764 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
4765 register if not marked dead/unused, before return.
4767 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
4770 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
4771 is set; check for assembler name at LTO time.
4772 (type_in_anonymous_namespace): Remove hacks, check that all
4773 anonymous types are called "<anon>"
4774 (odr_type_p): Simplify; add check for "<anon>"
4775 (odr_subtypes_equivalent): Add odr_type_p check.
4776 * tree.c (need_assembler_name_p): Even anonymous namespace needs
4779 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
4781 * ipa-utils.h (method_class_type): Remove.
4782 * cgraphunit.c (walk_polymorphic_call_targets): Use
4783 TYPE_METHOD_BASETYPE.
4784 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
4785 on main variants only.
4786 (method_class_type): Remove.
4787 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
4788 (build_type_inheritance_graph): Likewise.
4789 * ipa-icf.c (sem_function::equals_wpa): Likewise.
4790 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
4791 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
4793 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
4795 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
4796 is_typedef_decl, typedef_variant_p): Constify.
4797 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
4798 is_typedef_decl, typedef_variant_p): Constify.
4800 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4802 * defaults.h (gen_tablejump): New function.
4803 (HAVE_tablejump): Add default value.
4807 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4809 * defaults.h (gen_store_multiple): New function.
4810 (HAVE_store_multiple): Add default value.
4811 * expr.c (move_block_from_reg): Adjust.
4813 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4815 * defaults.h (gen_load_multiple): New function.
4816 (HAVE_load_multiple): Add default value.
4817 * expr.c (move_block_to_reg): Adjust.
4819 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4821 * defaults.h (gen_mem_signal_fence): New function.
4822 (HAVE_mem_signal_fence): Add default value.
4825 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4827 * defaults.h (gen_memory_barrier): New function.
4828 (HAVE_memory_barrier): Add default value.
4831 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4833 * defaults.h (gen_mem_thread_fence): New function.
4834 (HAVE_mem_thread_fence): Add default definition.
4837 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4839 * combine.c (find_split_point): Check the value of HAVE_lo_sum
4840 instead of if it is defined.
4841 (combine_simplify_rtx): Likewise.
4842 * lra-constraints.c (process_address_1): Likewise.
4843 * config/darwin.c: Adjust.
4844 * genconfig.c (main): Always define HAVE_lo_sum.
4846 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4848 * genmatch.c (parser::parse_operation): Reject expanding
4849 operator-list inside 'for'.
4851 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4853 * genmatch.c (parser::parse_for): Reject iterator if used as
4856 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4858 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
4859 after end of id-list.
4861 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
4863 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
4864 we do not try to compute canonical type for type that does not need
4866 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
4868 * tree.h (type_with_alias_set_p): New.
4870 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
4872 * tree.c (gimple_canonical_types_compatible_p): Do not compare
4873 function attributes.
4874 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
4876 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
4878 * Makefile.in (check_gcc_parallelize): Delete.
4879 (lang_checks_parallelized): Update comment.
4881 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
4883 PR rtl-optimization/66237
4884 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
4885 location of an "as_a" cast.
4887 2015-05-22 Jeff Law <law@redhat.com>
4889 * config/pa/pa.md (non-canonical shift-add insns): Remove.
4890 (peepholes with non-canonical RTL sources): Remove.
4891 (peepholes for indexed stores of FP regs in integer modes): Match and
4892 generate canonical RTL.
4894 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
4896 PR tree-optimization/63387
4897 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
4898 ((x ord x) & (y ord y) -> (x ord y),
4899 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
4900 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
4901 vectors like scalars.
4903 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
4905 * convert.c (convert_to_integer, convert_to_vector): Include the
4906 types in the error message.
4908 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
4910 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
4913 2015-05-22 Jeff Law <law@redhat.com>
4915 * config/pa/pa.md (integer_indexed_store splitters): Use
4916 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
4917 insns -- adjusting the constant 2nd operand accordingly.
4919 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
4920 (plus (ashift X log2) Y) if it is a split point.
4922 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
4923 out of hppa_legitimize_address to handle both forms of a multiply
4925 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
4926 Always generate the ASHIFT variant as the result is not directly
4927 used in a MEM. Update comments and refactor slightly to improve
4930 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4933 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
4934 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
4935 (aarch64_composite_type_p): Return false if given type and mode are
4938 2015-05-22 Richard Biener <rguenther@suse.de>
4940 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
4942 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
4943 patterns when determining whether SLP is pure.
4944 (vect_is_slp_reduction): Remove check for pattern stmts.
4945 (vect_is_simple_reduction_1): Remove dead code.
4946 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
4947 (vect_get_and_check_slp_defs): Pass in the stmt number.
4948 Allow the first def in a reduction to be not a pattern stmt when
4949 the rest of the stmts def are patterns.
4950 (vect_build_slp_tree_1): Allow tcc_expression codes like
4951 SAD_EXPR and DOT_PROD_EXPR.
4952 (vect_build_slp_tree): Adjust.
4953 (vect_analyze_slp): Refactor and move BB vect error message ...
4954 (vect_slp_analyze_bb_1): ... here.
4956 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
4958 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
4959 for CSWTCH temporary.
4961 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4963 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
4964 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
4967 2015-05-22 Richard Biener <rguenther@suse.de>
4969 PR tree-optimization/66251
4970 * tree-vect-stmts.c (vectorizable_conversion): Properly
4971 set STMT_VINFO_VEC_STMT even for the SLP case.
4973 2015-05-22 Marek Polacek <polacek@redhat.com>
4975 * doc/extend.texi: Use @pxref instead of @xref.
4977 2015-05-22 hiraditya <hiraditya@msn.com>
4979 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
4982 2015-05-22 Richard Biener <rguenther@suse.de>
4984 PR tree-optimization/65701
4985 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4986 Move peeling cost models into one place. Peel for alignment
4987 for single loads only if an aligned load is cheaper than
4990 2015-05-22 Marek Polacek <polacek@redhat.com>
4993 * doc/extend.texi (Enumerator Attributes): New section.
4994 Document syntax of enumerator attributes.
4996 2015-05-22 Richard Biener <rguenther@suse.de>
4998 * tree-vect-loop.c (get_reduction_op): New function.
4999 (vect_model_reduction_cost): Use it, add reduc_index parameter.
5000 Make ready for BB reductions.
5001 (vect_create_epilog_for_reduction): Use get_reduction_op.
5002 (vectorizable_reduction): Init reduc_index to a valid value.
5003 Adjust vect_model_reduction_cost call.
5004 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
5005 operand for reduction defaults. Add SAD_EXPR support.
5006 Assert we have a neutral op for SLP reductions.
5007 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
5008 walking pattern stmt ops only recurse to SSA names.
5010 2015-05-22 Richard Biener <rguenther@suse.de>
5012 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
5013 assert with guard, remove check on detected reduction.
5014 (vect_recog_sad_pattern): Likewise.
5015 (vect_recog_widen_sum_pattern): Likewise.
5017 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5019 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
5020 __always_inline__ attribute.
5021 (vaesdq_u8): Likewise.
5022 (vaesmcq_u8): Likewise.
5023 (vaesimcq_u8): Likewise.
5024 (vsha1cq_u32): Likewise.
5025 (vsha1mq_u32): Likewise.
5026 (vsha1pq_u32): Likewise.
5027 (vsha1h_u32): Likewise.
5028 (vsha1su0q_u32): Likewise.
5029 (vsha1su1q_u32): Likewise.
5030 (vsha256hq_u32): Likewise.
5031 (vsha256h2q_u32): Likewise.
5032 (vsha256su0q_u32): Likewise.
5033 (vsha256su1q_u32): Likewise.
5034 (vmull_p64): Likewise.
5035 (vmull_high_p64): Likewise.
5037 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5039 * final.c (final_scan_insn): Don't check HAVE_peephole with the
5041 * output.h: Likewise.
5042 * genconfig.c (main): Alwways define HAVE_peephole.
5043 * genpeep.c: Don't emit checks of HAVE_peephole.
5045 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5047 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
5048 check HAVE_conditional_move with the preprocessor.
5050 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5052 * genconfig.c (main): Always define HAVE_conditional_move.
5053 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
5054 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
5057 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5059 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
5060 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
5061 and FRAME_POINTER_REGNUM with the preprocessor.
5063 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5065 * defaults.h: Add default for STACK_PUSH_CODE.
5066 * expr.c: Don't redefine STACK_PUSH_CODE.
5067 * recog.c: Likewise.
5069 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5071 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
5072 sched-deps.c: Use if instead of preprocessor checks with
5073 STACK_GROWS_DOWNWARD.
5075 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5077 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
5079 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
5080 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
5081 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
5082 * doc/tm.texi: Regenerate.
5084 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
5087 * config/i386/constraints.md (Bg): New constraint for GOT memory
5089 * config/i386/i386.md (*call_got_x32): New pattern.
5090 (*call_value_got_x32): Likewise.
5091 * config/i386/predicates.md (GOT_memory_operand): New predicate.
5093 2015-05-21 Jakub Jelinek <jakub@redhat.com>
5095 PR tree-optimization/66233
5096 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
5099 2015-05-21 Jeff Law <law@redhat.com>
5101 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
5102 than MULT for shadd sequences.
5104 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
5106 * alias.c (alias_stats): New static var.
5107 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
5108 (dump_alias_stats_in_alias_c): New function.
5109 * alias.h (dump_alias_stats_in_alias_c): Declare.
5110 * tree-ssa-alias.c (dump_alias_stats): Call it.
5112 2015-05-08 Michael Matz <matz@suse.de>
5114 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
5116 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
5117 (STMT_VINFO_STRIDED_P): ... this.
5118 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
5119 (vect_verify_datarefs_alignment): Likewise.
5120 (vect_enhance_data_refs_alignment): Likewise.
5121 (vect_analyze_data_ref_access): Likewise.
5122 (vect_analyze_data_refs): Accept strided stores.
5123 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
5124 (vect_model_load_cost): Adjust for macro rename.
5125 (vectorizable_mask_load_store): Likewise.
5126 (vectorizable_load): Likewise.
5127 (vectorizable_store): Open code strided stores.
5129 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5131 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
5134 2015-05-21 Richard Biener <rguenther@suse.de>
5137 * match.pd: Guard pattern optimzing (int)(float)int
5138 conversions to apply only on GIMPLE.
5140 2015-05-21 Jeff Law <law@redhat.com>
5142 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
5143 multiply-accumulate/shift-add insn generation.
5145 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
5148 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
5149 operands[1] are the same.
5151 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
5154 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
5155 build_distinct_type_copy to copy bounds.
5157 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
5159 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
5160 Change to unsigned int.
5162 2015-05-20 Jeff Law <law@redhat.com>
5164 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
5165 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
5166 (pa_shadd_constant_p): Allow constants for shadd insns rather
5167 than valid scaling constants for memory addresses.
5168 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
5169 * config/pa/predicates.md (mem_shadd_operand): New predicate.
5170 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
5171 (shift-add insns using ASHIFT): New patterns.
5173 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
5175 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
5177 (fix_up_fall_thru_edges): Likewise.
5178 (fix_crossing_conditional_branches): Likewise. Promote jump targets
5179 from to rtx_insn to rtx_code_label where feasible.
5180 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
5181 gen_move_insn (returned type changed to rtx_insn).
5182 * builtins.c (expand_errno_check): Fix arguments of
5183 do_compare_rtx_and_jump (now expects rtx_code_label).
5184 (expand_builtin_acc_on_device): Likewise.
5185 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
5186 invert_jump (now exprects rtx_jump_insn).
5187 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
5188 (construct_init_block): Use rtx_code_label.
5189 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
5190 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
5191 calling redirect_jump.
5192 (patch_jump_insn): Likewise.
5193 (redirect_branch_edge): Likewise.
5194 (force_nonfallthru_and_redirect): Likewise.
5195 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
5197 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
5198 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
5199 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
5200 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
5201 to store the value retured by gen_label_rtx.
5202 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
5204 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
5205 (split_branches): Fix calls of redirect_jump.
5206 * dojump.c (jumpifnot): Promote argument type from rtx to
5208 (jumpifnot_1): Likewise.
5210 (jumpif_1): Likewise.
5211 (do_jump_1): Likewise.
5212 (do_jump): Likewise. Use rtx_code_label when feasible.
5213 (do_jump_by_parts_greater_rtx): Likewise.
5214 (do_jump_by_parts_zero_rtx): Likewise.
5215 (do_jump_by_parts_equality_rtx): Likewise.
5216 (do_compare_rtx_and_jump): Likewise.
5217 * dojump.h: Update function prototypes.
5218 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
5220 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
5222 (emit_label_before): Likewise.
5223 (emit_jump_insn_after_noloc): Likewise.
5224 (emit_jump_insn_after_setloc): Likewise.
5225 (emit_jump_insn_after): Likewise
5226 (emit_jump_insn_before_setloc): Likewise.
5227 (emit_jump_insn_before): Likewise.
5228 (emit_label_before): Promote return type to rtx_code_label.
5229 (emit_label): Likewise.
5230 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
5231 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
5233 (emit_stack_restore): Likewise.
5234 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
5235 (do_cmp_and_jump): Likewise.
5236 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
5237 from rtx to rtx_code_label.
5238 (gen_move_insn_uncast): New function.
5239 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
5240 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
5241 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
5242 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
5243 invert_jump_1 and redirect_jump_1.
5244 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
5245 do_compare_rtx_and_jump.
5246 (expand_addsub_overflow): Likewise.
5247 (expand_neg_overflow): Likewise.
5248 (expand_mul_overflow): Likewise.
5249 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
5250 return value of gen_move_insn.
5251 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
5252 * loop-doloop.c (add_test): Use rtx_code_label.
5253 (doloop_modify): Likewise.
5254 (doloop_optimize): Likewise.
5255 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
5256 * lra-constraints.c (emit_spill_move): Remove cast of value returned
5258 (inherit_reload_reg): Add cast when calling dump_insn_slim.
5259 (split_reg): Likewise.
5260 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
5262 * optabs.c (expand_binop_directly): Remove casts of values returned by
5264 (expand_unop_direct): Likewise.
5265 (expand_abs): Likewise.
5266 (maybe_emit_unop_insn): Likewise.
5267 (maybe_gen_insn): Promote return type to rtx_insn.
5268 * optabs.h: Update prototype of maybe_gen_insn.
5269 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
5271 * recog.c (struct peep2_insn_data): Promote type of insn field to
5273 (peep2_reinit_state): Use NULL instead of NULL_RTX.
5274 (peep2_attempt): Remove casts of insn in peep2_insn_data.
5275 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
5276 * recog.h (struct insn_gen_fn): Promote return types of function
5277 pointers and operator ().from rtx to rtx_insn.
5278 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
5279 (fill_eager_delay_slots): Likewise.
5280 (relax_delay_slots): Likewise.
5281 (make_return_insns): Likewise.
5282 (dbr_schedule): Likewise.
5283 (optimize_skips): Likewise.
5284 (reorg_redirect_jump): Likewise.
5285 (fill_slots_from_thread): Likewise.
5286 * reorg.h: Update prototypes.
5287 * resource.c (find_dead_or_set_registers): Use dyn_cast to
5288 rtx_jump_insn instead of check. Use it's jump_target method.
5289 * rtl.h (rtx_jump_insn::jump_label): Define new method.
5290 (rtx_jump_insn::jump_target): Define new method.
5291 (rtx_jump_insn::set_jump_target): Define new method.
5292 * rtlanal.c (tablejump_p): Promote type of one local variable.
5293 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
5294 (sched_analyze_insn): Likewise.
5295 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
5296 (print_insn): Likewise.
5297 * stmt.c (label_rtx): Promote return type to rtx_insn.
5298 (force_label_rtx): Likewise.
5299 (jump_target_rtx): Define new function.
5300 (expand_label): Use it, get rid of one cast.
5301 (expand_naked_return): Promote rtx to rtx_code_label.
5302 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
5303 (expand_case): Use rtx_code_label instread of rtx where feasible.
5304 (expand_sjlj_dispatch_table): Likewise.
5305 (emit_case_nodes): Likewise.
5306 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
5307 * store-motion.c (insert_store): Make use of new return type of
5308 gen_move_insn and remove a cast.
5309 (replace_store_insn): Likewise.
5311 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
5313 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
5314 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
5316 2015-05-20 Jeff Law <law@redhat.com>
5318 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
5319 dispose of the jump thread path when the jump threading
5320 opportunity is cancelled.
5322 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5324 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
5325 when printing the caret character.
5327 2015-05-20 Marek Polacek <polacek@redhat.com>
5329 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
5331 2015-05-20 Marek Polacek <polacek@redhat.com>
5333 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
5334 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
5335 * gimple-fold.c (canonicalize_bool): Likewise.
5336 (same_bool_result_p): Likewise.
5337 * tree-if-conv.c (parse_predicate): Likewise.
5339 2015-05-20 Marek Polacek <polacek@redhat.com>
5341 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
5342 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
5344 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5346 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
5347 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
5350 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
5352 * config/mips/mips.h (micromips_globals): Declare.
5354 2015-05-20 David Malcolm <dmalcolm@redhat.com>
5356 * timevar.def (TV_INITIALIZE_RTL): New.
5357 * toplev.c (initialize_rtl): Use an auto_timevar to account this
5358 function's time to TV_INITIALIZE_RTL.
5360 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
5362 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
5363 gimple_build_nop calls.
5364 (chkp_find_bounds_for_elem): Likewise.
5365 (chkp_get_zero_bounds): Likewise.
5366 (chkp_get_none_bounds): Likewise.
5367 (chkp_get_bounds_by_definition): Likewise.
5368 (chkp_generate_extern_var_bounds): Likewise.
5369 (chkp_get_bounds_for_decl_addr): Likewise.
5370 (chkp_get_bounds_for_string_cst): Likewise.
5372 2015-05-20 Bin Cheng <bin.cheng@arm.com>
5374 PR tree-optimization/65447
5375 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
5376 (dump_use, dump_uses): Support to dump sub use.
5377 (record_use): New parameters to support sub use. Remove call to
5379 (record_sub_use, record_group_use): New functions.
5380 (compute_max_addr_offset, split_all_small_groups): New functions.
5381 (group_address_uses, rewrite_use_address): New functions.
5382 (strip_offset): New declaration.
5383 (find_interesting_uses_address): Call record_group_use.
5384 (add_candidate): New assertion.
5385 (infinite_cost_p): Move definition forward.
5386 (add_costs): Check INFTY cost and return immediately.
5387 (get_computation_cost_at): Clear setup cost and dependent bitmap
5389 (determine_use_iv_cost_address): Compute cost for sub uses.
5390 (rewrite_use_address_1): Rename from old rewrite_use_address.
5391 (free_loop_data): Free sub uses.
5392 (tree_ssa_iv_optimize_loop): Call group_address_uses.
5394 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
5395 Jim Wilson <jim.wilson@linaro.org>
5397 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
5398 new fields loadv and storev.
5399 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
5400 Initialize loadv and storev.
5401 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
5402 (cortexa53_extra_costs): Likewise.
5403 (cortexa57_extra_costs): Likewise.
5404 (xgene1_extra_costs): Likewise.
5405 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
5408 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
5410 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
5412 (cortexa8_extra_costs): Likewise.
5413 (cortexa5_extra_costs): Likewise.
5414 (cortexa7_extra_costs): Likewise.
5415 (cortexa12_extra_costs): Likewise.
5416 (cortexa15_extra_costs): Likewise.
5417 (v7m_extra_costs): Likewise.
5419 2015-05-20 Jeff Law <law@redhat.com>
5421 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
5422 instead of open-coded version. Also delete the jump thread created
5423 within this function.
5425 2015-05-20 Alan Modra <amodra@gmail.com>
5427 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
5428 stack adjusting insn. Formatting.
5429 (rs6000_emit_prologue): Track stack adjusting insn, and use of
5430 r12. If possible, emit first -fsplit-stack arg pointer insn
5431 before stack adjust. Don't use r12 to save cr if split-stack.
5433 2015-05-20 Alan Modra <amodra@gmail.com>
5435 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
5437 (rs6000_supports_split_stack): New function.
5438 * gcc/config/rs6000/rs6000.c (machine_function): Add
5439 split_stack_arg_pointer.
5440 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
5441 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
5442 rather than virtual_incoming_args_rtx.
5443 (rs6000_va_start): Likewise.
5444 (split_stack_arg_pointer_used_p): New function.
5445 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
5446 (morestack_ref): New var.
5447 (gen_add3_const, rs6000_expand_split_stack_prologue,
5448 rs6000_internal_arg_pointer, rs6000_live_on_entry,
5449 rs6000_split_stack_space_check): New functions.
5450 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
5451 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
5452 (UNSPECV_SPLIT_STACK_RETURN): Define.
5453 (split_stack_prologue, load_split_stack_limit,
5454 load_split_stack_limit_di, load_split_stack_limit_si,
5455 split_stack_return, split_stack_space_check): New expands and insns.
5456 * gcc/config/rs6000/rs6000-protos.h
5457 (rs6000_expand_split_stack_prologue): Declare.
5458 (rs6000_split_stack_space_check): Declare.
5460 2015-05-20 Alan Modra <amodra@gmail.com>
5462 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
5463 (rs6000_stack_info): Don't zero offsets when not saving registers.
5464 (debug_stack_info): Adjust to omit printing unused offsets,
5466 (direct_return): Test vrsave_size rather than vrsave_mask.
5467 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
5468 (rs6000_emit_epilogue): Likewise.
5470 2015-05-20 Alan Modra <amodra@gmail.com>
5472 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
5473 when not saving registers.
5474 (debug_stack_info): Adjust to omit printing unused offsets,
5476 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
5479 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5482 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
5483 value_type to const char *.
5485 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
5487 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
5488 to build a biarch toolchain again.
5490 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
5492 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
5493 or implicit declarations.
5494 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
5496 (get_odr_type): Check type has linkage before adding bases.
5497 (register_odr_type): Check that type has linkage before adding it.
5498 (type_known_to_have_no_deriavations_p): Rename to ..
5499 (type_known_to_have_no_derivations_p): This one.
5500 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
5501 (type_known_to_have_no_derivations_p): This one.
5502 * ipa-polymorphic-call.c
5503 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
5506 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
5508 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
5509 (layout_type): Use RECORD_OR_UNION_TYPE_P.
5511 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5513 * config/s390/s390.c (s390_vector_bool_type_p): New function.
5514 (s390_invalid_binary_op): New function.
5515 (TARGET_INVALID_BINARY_OP): Define macro.
5517 2015-05-19 David Sherwood <david.sherwood@arm.com>
5519 * loop-invariant.c (create_new_invariant): Don't calculate address cost
5520 if mode is not a scalar integer.
5521 (get_inv_cost): Increase computational cost for unused invariants.
5523 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5525 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
5526 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
5527 * config/s390/s390-builtin-types.def: New file.
5528 * config/s390/s390-builtins.def: New file.
5529 * config/s390/s390-builtins.h: New file.
5530 * config/s390/s390-c.c: New file.
5531 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
5532 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
5533 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
5534 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
5536 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
5538 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
5539 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
5540 variable definitions.
5541 (s390_const_operand_ok): New function.
5542 (s390_expand_builtin): Rewrite.
5543 (s390_init_builtins): New function.
5544 (s390_handle_vectorbool_attribute): New function.
5545 (s390_attribute_table): Add s390_vector_bool attribute.
5546 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
5547 (s390_branch_condition_mask): Generate masks for new modes.
5548 (s390_expand_vec_compare_cc): New function.
5549 (s390_mangle_type): Add mangling for vector bool types.
5550 (enum s390_builtin): Remove.
5551 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
5553 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
5554 s390_cpu_cpp_builtins.
5555 (REGISTER_TARGET_PRAGMAS): New macro.
5556 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
5557 (insn_cmp mode attribute): Add new CC modes.
5558 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
5559 (lcbb): New pattern definition.
5560 * config/s390/s390intrin.h: Include vecintrin.h.
5561 * config/s390/t-s390: New file.
5562 * config/s390/vecintrin.h: New file.
5563 * config/s390/vector.md: Include vx-builtins.md.
5564 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
5567 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5569 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
5571 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
5572 (s390_select_ccmode): Likewise.
5573 (s390_canonicalize_comparison): Swap operands if necessary.
5574 (s390_expand_vec_compare_scalar): Expand DFmode compare using
5575 single element vector instructions.
5576 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
5577 (s390_branch_condition_mask): Generate CC masks for the new modes.
5578 * config/s390/s390.md (v0, vf, vd): New mode attributes.
5579 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
5580 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
5581 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
5582 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
5583 (*extend<DSF:mode><BFP:mode>2): New insn definition.
5584 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
5585 (extend<DSF:mode><BFP:mode>2): Turn into expander.
5586 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
5587 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
5588 (sqrt<mode>2): Add vector instruction.
5590 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5592 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
5594 * config/s390/predicates.md (const0_operand, constm1_operand)
5595 (constable_operand): Accept vector operands.
5596 * config/s390/s390-modes.def: Add supported vector modes.
5597 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
5598 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
5599 (s390_bytemask_vector_p, s390_expand_vec_strlen)
5600 (s390_expand_vec_compare, s390_expand_vcond)
5601 (s390_expand_vec_init): Add prototypes.
5602 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
5603 (s390_vector_mode_supported_p): New function.
5604 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
5605 (s390_contiguous_bitmask_vector_p): New function.
5606 (s390_bytemask_vector_p): New function.
5607 (s390_split_ok_p): Vector regs don't work either.
5608 (regclass_map): Add VEC_REGS.
5609 (s390_legitimate_constant_p): Handle vector constants.
5610 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
5611 (legitimate_reload_vector_constant_p): New function.
5612 (s390_preferred_reload_class): Handle CONST_VECTOR.
5613 (s390_reload_symref_address): Likewise.
5614 (s390_secondary_reload): Vector memory instructions only support
5615 short displacements. Rename reload*_nonoffmem* to reload*_la*.
5616 (s390_emit_ccraw_jump): New function.
5617 (s390_expand_vec_strlen): New function.
5618 (s390_expand_vec_compare): New function.
5619 (s390_expand_vcond): New function.
5620 (s390_expand_vec_init): New function.
5621 (s390_dwarf_frame_reg_mode): New function.
5622 (print_operand): Handle addresses with 'O' and 'R' constraints.
5623 (NR_C_MODES, constant_modes): Add vector modes.
5624 (s390_output_pool_entry): Handle vector constants.
5625 (s390_hard_regno_mode_ok): Handle vector registers.
5626 (s390_class_max_nregs): Likewise.
5627 (s390_cannot_change_mode_class): New function.
5628 (s390_invalid_arg_for_unprototyped_fn): New function.
5629 (s390_function_arg_vector): New function.
5630 (s390_function_arg_float): Remove size variable.
5631 (s390_pass_by_reference): Handle vector arguments.
5632 (s390_function_arg_advance): Likewise.
5633 (s390_function_arg): Likewise.
5634 (s390_return_in_memory): Vector values are returned in a VR if
5636 (s390_function_and_libcall_value): Handle vector arguments.
5637 (s390_gimplify_va_arg): Likewise.
5638 (s390_call_saved_register_used): Consider the arguments named.
5639 (s390_conditional_register_usage): Disable v16-v31 for non-vec
5641 (s390_preferred_simd_mode): New function.
5642 (s390_support_vector_misalignment): New function.
5643 (s390_vector_alignment): New function.
5644 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
5645 (TARGET_VECTOR_MODE_SUPPORTED_P)
5646 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
5647 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
5648 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
5649 (TARGET_VECTOR_ALIGNMENT): Define target macro.
5650 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
5651 (FIRST_PSEUDO_REGISTER): Increase value.
5652 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
5653 (VECTOR_REG_P): Define macros.
5654 (FIXED_REGISTERS, CALL_USED_REGISTERS)
5655 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
5656 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
5657 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
5658 Add vector registers.
5659 (CANNOT_CHANGE_MODE_CLASS): Call C function.
5660 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
5661 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
5663 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
5664 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
5665 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
5666 (VR*_REGNUM): New constants.
5667 (ALL): New mode iterator.
5668 (INTALL): Remove mode iterator.
5670 (movti): Implement TImode moves for VRs.
5671 Disable TImode splitter for VR targets.
5672 Implement splitting TImode GPR<->VR moves.
5673 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
5674 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
5675 reload<mode>_la_in, reload<mode>_la_out.
5676 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
5677 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
5678 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
5679 (mov<mode> SF SD): Prefer lder, lde for loading.
5680 Add lrl and strl instructions.
5681 Add vector instructions.
5682 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
5683 Call s390_expand_vec_strlen on z13.
5684 (*cc_to_int): Change predicate to nonimmediate_operand.
5685 (addti3): Rename to *addti3. New expander.
5686 (subti3): Rename to *subti3. New expander.
5687 * config/s390/vector.md: New file.
5689 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5691 * common/config/s390/s390-common.c (processor_flags_table): Add
5693 * config.gcc: Add z13.
5694 * config/s390/s390-opts.h (enum processor_type): Add
5696 * config/s390/s390.c (s390_adjust_priority): Check for
5698 (s390_reorg): Likewise.
5699 (s390_sched_reorder): Likewise.
5700 (s390_sched_variable_issue): Likewise.
5701 (s390_loop_unroll_adjust): Likewise.
5702 (s390_option_override): Likewise. Default to -mvx when available.
5703 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
5704 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
5705 (TARGET_VX_ABI): Define macros.
5707 (TARGET_DEFAULT): Add MASK_OPT_VX.
5708 * config/s390/s390.md ("cpu" attribute): Add z13.
5709 ("cpu_facility" attribute): Add vec.
5710 * config/s390/s390.opt (processor_type): Add z13.
5712 * doc/invoke.texi: Add z13 option for -march.
5714 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5716 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
5717 mode check to make sure that only scalar integer values are
5720 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
5722 * tree.c (verify_type_variant): Fix #undef.
5723 (gimple_canonical_types_compatible_p): Move here from lto.c
5724 (verify_type): Verify TYPE_CANONICAL compatibility.
5725 * tree.h (gimple_canonical_types_compatible_p): Declare.
5727 2015-05-19 Jakub Jelinek <jakub@redhat.com>
5730 * tree.h (OMP_TEAMS_COMBINED): Define.
5731 * gimplify.c (enum gimplify_omp_var_data): Add
5732 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
5733 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
5734 (omp_notice_variable): Accept both ORT_TEAMS
5735 and ORT_COMBINED_TEAMS. Don't recurse if
5736 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
5737 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
5739 (omp_no_lastprivate): New function.
5740 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
5741 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
5742 notice_outer and set appropriate bits, otherwise make
5743 sure default(none) combined constructs won't complain.
5744 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
5745 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
5746 omp_no_lastprivate either remove the clause or turn it
5747 into OMP_CLAUSE_PRIVATE.
5748 (gimplify_omp_for): Fix up handling of implicit
5749 lastprivate or linear iterators.
5750 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
5752 * omp-low.c (lower_omp_for_lastprivate): For combined
5753 for simd use fd.loop.n2 from the for rather than simd.
5755 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
5757 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
5758 instead of gen_rtx_raw_REG.
5759 (cris_expand_epilogue): Likewise.
5760 * config/microblaze/microblaze.c (microblaze_classify_address):
5762 * config/sparc/sparc.md: Likewise.
5764 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
5766 * config/alpha/alpha.c (alpha_legitimize_reload_address)
5767 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
5768 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
5769 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
5770 Use CASE_CONST_SCALAR_INT.
5771 (print_operand) <case 'M'>: Use mode_width_operand to check the
5772 value of the constant.
5773 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
5774 * config/alpha/predicates.md (input_operand): Use general_operand
5775 instead of match_code as operand check.
5776 (symbolic_operand): Use match_code with subexpression digits.
5777 * config/alpha/constraints.md (Q): Ditto.
5779 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5781 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
5783 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5785 * config/s390/s390.c (s390_secondary_reload): Fix check for
5786 load/store relative.
5788 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5790 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
5791 alternative_mask to uint64_t.
5793 2015-05-19 Jakub Jelinek <jakub@redhat.com>
5795 PR tree-optimization/66187
5796 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
5797 Pass TYPE_SIGN to tree_int_cst_min_precision. If
5798 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
5800 2015-05-19 David Malcolm <dmalcolm@redhat.com>
5802 * diagnostic.c (diagnostic_report_current_module): Strengthen
5803 local "new_map" from const line_map * to
5804 const line_map_ordinary *.
5805 * genmatch.c (error_cb): Likewise for local "map".
5806 (output_line_directive): Likewise for local "map".
5807 * input.c (expand_location_1): Likewise for local "map".
5808 Pass NULL rather than &map to
5809 linemap_unwind_to_first_non_reserved_loc, since the value is never
5810 read from there, and the value written back not read from here.
5811 (is_location_from_builtin_token): Strengthen local "map" from
5812 const line_map * to const line_map_ordinary *.
5813 (dump_location_info): Strengthen locals "map" from
5814 line_map *, one to const line_map_ordinary *, the other
5815 to const line_map_macro *.
5816 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
5817 const line_map * to const line_map_macro *.
5818 (maybe_unwind_expanded_macro_loc): Add a call to
5819 linemap_check_macro when writing to the "map" field of the
5821 Introduce local const line_map_ordinary * "ord_map", using it in
5822 place of "map" in the part of the function where we know we have
5823 an ordinary map. Strengthen local "m" from const line_map * to
5824 const line_map_ordinary *.
5826 2015-05-19 Nick Clifton <nickc@redhat.com>
5829 * config/msp430/msp430.md (zero_extendhisi2): Add support for
5830 separate source and destination registers.
5832 2015-05-19 Richard Biener <rguenther@suse.de>
5834 PR tree-optimization/66165
5835 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
5836 for no load permutation.
5838 PR tree-optimization/66185
5839 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
5840 when building the SLP node from scalars.
5842 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
5843 Tristan Gingold <gingold@adacore.com>
5845 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
5846 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
5847 (expand_stack_restore): Call record_new_stack_level.
5848 (expand_stack_save): Do not call do_pending_stack_adjust.
5849 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
5850 * calls.c (expand_call): Call record_new_stack_level for alloca.
5851 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
5852 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
5853 (update_sjlj_context): New global function.
5854 * except.h (update_sjlj_context): Declare.
5855 * explow.c (record_new_stack_level): New global function.
5856 (allocate_dynamic_stack_space): Call record_new_stack_level.
5857 * explow.h (record_new_stack_level): Declare.
5858 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
5859 * cfgrtl.c (duplicate_insn_chain): Likewise.
5861 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5863 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
5864 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
5865 STACK_GROWS_DOWNWARD as normal if.
5866 (expand_call): Likewise.
5868 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
5871 * config/sh/sh.md (*round_int_even): New insn_and_split and
5872 accompanying new unnamed split.
5874 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
5876 * bitmap.c (bitmap_set_range): Handle count==1 specially.
5877 (bitmap_clear_range): Likewise.
5878 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
5879 bitmap_set_range unconditionally.
5880 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
5881 * df-scan.c (df_mark_reg): Likewise.
5882 * haifa-sched.c (setup_ref_regs): Likewise.
5883 * sched-rgn.c (update_live_1): Likewise.
5885 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
5887 * regs.h (END_HARD_REGNO): Delete.
5888 (END_REGNO): Move to...
5890 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
5891 * caller-save.c (mark_set_regs): Likewise.
5892 * combine.c (move_deaths, distribute_notes): Likewise.
5893 * cse.c (invalidate, invalidate_for_call): Likewise.
5894 * df-scan.c (df_ref_record): Likewise.
5895 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
5896 (record_last_reg_set_info): Likewise.
5897 * reg-stack.c (convert_regs_exit): Likewise.
5898 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
5899 * resource.c (update_live_status): Likewise.
5900 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
5902 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
5904 * rtl.h (reg_info): Add an nregs field.
5905 (REG_NREGS): Use it.
5906 (SET_REGNO_RAW): Delete.
5907 (set_regno_raw): New function.
5908 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
5909 (END_REGNO): Redefine in terms of REG_NREGS.
5910 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
5912 * emit-rtl.c (set_mode_and_regno): Likewise.
5913 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
5914 instead of SET_REGNO_RAW.
5916 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
5918 * rtl.h (PUT_MODE_RAW): New macro.
5919 (PUT_REG_NOTE_KIND): Use it.
5920 (set_mode_and_regno): Declare.
5921 (gen_raw_REG): Change regno to "unsigned int".
5922 (gen_rtx_REG): Change "unsigned" to "unsigned int".
5923 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
5924 use set_mode_and_regno to change the mode of registers.
5925 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
5926 * emit-rtl.c (set_mode_and_regno): New function.
5927 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
5928 * caller-save.c (reg_save_code): Use set_mode_and_regno.
5929 * expr.c (init_expr_target): Likewise.
5930 * ira.c (setup_prohibited_mode_move_regs): Likewise.
5931 * postreload.c (reload_cse_simplify_operands): Likewise.
5933 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
5935 * caller-save.c (init_caller_save): Use word_mode and
5936 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
5937 * expr.c (init_expr_target): Likewise.
5938 * ira.c (setup_prohibited_mode_move_regs): Likewise.
5939 * postreload.c (reload_cse_regs_1): Likewise.
5941 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
5943 * rtl.def (REG): Change format to "r".
5944 * rtl.h (rtunion): Remove rt_reg.
5945 (reg_info): New structure.
5946 (rtx_def): Add reg field to main union.
5947 (X0REGATTR): Delete.
5948 (REG_CHECK): New macro.
5949 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
5950 * rtl.c (rtx_format): Document "r".
5951 (rtx_code_size): Handle REG specially.
5952 * gengenrtl.c (special_format): Return true for formats
5954 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
5955 Deal with REG_ATTRS after the field loop.
5956 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
5957 * expmed.c (init_expmed): Call gen_raw_REG instead of
5959 * expr.c (init_expr_target): Likewise.
5960 * regcprop.c (maybe_mode_change): Likewise.
5961 * varasm.c (make_decl_rtl): Likewise.
5962 * final.c (leaf_renumber_regs_insn): Return early after
5964 * genemit.c (gen_exp): Handle 'r' fields.
5965 * genpeep.c (match_rtx): Likewise.
5966 * gensupport.c (subst_pattern_match): Likewise.
5967 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
5968 (alter_constraints, subst_dup): Likewise.
5969 * read-rtl.c (read_rtx_code): Likewise.
5970 * print-rtl.c (print_rtx): Likewise.
5971 * genrecog.c (find_operand, find_matching_operand): Likewise.
5972 (validate_pattern, match_pattern_2): Likewise.
5973 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
5974 (rtx_test::regno_field): New function.
5975 (operator ==, safe_to_hoist_p, transition_parameter_type)
5976 (parameter_type_string, print_parameter_value)
5977 (print_nonbool_test, print_test): Handle new enum values.
5978 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
5979 * lra-constraints.c (operands_match_p): Likewise.
5981 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
5983 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
5984 Change type of new_regno to unsigned int.
5985 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
5986 new_regno to unsigned int.
5987 (df_ref_change_reg_with_loc): Remove old_regno parameter.
5988 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
5989 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
5990 (SET_REGNO_RAW): Add space after ",".
5992 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
5994 * rtl.h (REG_NREGS): New macro
5995 * alias.c (record_set): Use it.
5996 * cfgcleanup.c (mark_effect): Likewise.
5997 * combine.c (likely_spilled_retval_1): Likewise.
5998 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
5999 (move_deaths, distribute_notes): Likewise.
6000 * cselib.c (cselib_record_set): Likewise.
6001 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
6002 * df-scan.c (df_mark_reg): Likewise.
6003 * dse.c (look_for_hardregs): Likewise.
6004 * dwarf2out.c (reg_loc_descriptor): Likewise.
6005 (multiple_reg_loc_descriptor): Likewise.
6006 * expr.c (write_complex_part, read_complex_part): Likewise.
6007 (emit_move_complex): Likewise.
6008 * haifa-sched.c (setup_ref_regs): Likewise.
6009 * ira-lives.c (mark_hard_reg_live): Likewise.
6010 * lra.c (lra_set_insn_recog_data): Likewise.
6011 * mode-switching.c (create_pre_exit): Likewise.
6012 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
6013 (reload_combine_recognize_pattern): Likewise.
6014 (reload_combine_note_use, move2add_record_mode): Likewise.
6015 (reload_cse_move2add): Likewise.
6016 * reg-stack.c (subst_stack_regs_pat): Likewise.
6017 * regcprop.c (kill_value, copy_value): Likewise.
6018 (copyprop_hardreg_forward_1): Likewise.
6019 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
6020 (build_def_use): Likewise.
6021 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
6022 (deps_analyze_insn): Likewise.
6023 * sched-rgn.c (check_live_1, update_live_1): Likewise.
6024 * sel-sched.c (count_occurrences_equiv): Likewise.
6025 * valtrack.c (dead_debug_insert_temp): Likewise.
6027 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
6029 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
6030 * dse.c (note_add_store): Likewise.
6031 * ira-lives.c (mark_hard_reg_dead): Likewise.
6032 * loop-invariant.c (mark_reg_store): Likewise.
6033 (mark_reg_death): Likewise.
6034 * postreload.c (reload_combine): Likewise.
6035 (reload_combine_note_store): Likewise.
6036 (reload_combine_note_use): Likewise.
6037 * recog.c (peep2_reg_dead_p): Likewise.
6039 2015-05-19 Alan Modra <amodra@gmail.com>
6041 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
6042 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
6043 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
6045 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
6046 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
6047 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
6048 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
6050 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
6052 * config/mips/mips.md (JOIN_MODE): New mode iterator.
6053 (join2_load_Store<JOIN_MODE:mode>): New pattern.
6054 (join2_loadhi): Likewise.
6055 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
6056 load-load and store-stores.
6057 * config/mips/mips.opt (mload-store-pairs): New option.
6058 (TARGET_LOAD_STORE_PAIRS): New macro.
6059 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
6060 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
6061 * config/mips/mips.c (mips_load_store_bonding_p): New function.
6063 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
6065 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
6067 * dojump.c (do_compare_rtx_and_jump): Likewise.
6068 * expmed.c (emit_store_flag_1): Likewise.
6069 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
6070 * final.c (sprint_ul): Use std::reverse for reversing a string.
6071 * fold-const.c (extract_muldiv_1): Use std::swap.
6072 * genmodes.c (emit_mode_int_n): Likewise.
6073 * ifcvt.c (dead_or_predicable): Likewise.
6074 * ira-build.c (ira_merge_live_ranges): Likewise.
6075 (swap_allocno_copy_ends_if_necessary): Likewise.
6076 * ira.c (ira_setup_alts): Likewise.
6077 * loop-iv.c (iv_analyze_expr): Likewise.
6078 (implies_p): Likewise.
6079 (canon_condition): Likewise.
6080 * lra-constraints.c (swap_operands): Likewise.
6081 * lra-lives.c (lra_merge_live_ranges): Likewise.
6082 * omega.c (swap): Remove.
6084 (omega_unprotect_1): Use std::swap.
6085 (omega_solve_geq): Likewise.
6086 * optabs.c (expand_binop_directly): Likewise.
6087 (expand_binop): Likewise.
6088 (emit_conditional_move): Likewise.
6089 (emit_conditional_add): Likewise.
6090 * postreload.c (reload_cse_simplify_operands): Likewise.
6091 * reg-stack.c (emit_swap_insn): Likewise.
6092 (swap_to_top): Likewise.
6093 (compare_for_stack_reg): Likewise.
6094 (subst_asm_stack_regs): Likewise.
6095 * reload.c (find_reloads): Likewise.
6096 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
6097 * sel-sched.c (invoke_reorder_hooks): Likewise.
6098 (create_block_for_bookkeeping): Likewise.
6099 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
6100 (lambda_matrix_right_hermite): Use std::swap.
6101 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
6102 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
6103 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
6104 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
6105 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
6106 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
6107 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
6108 * tree-vrp.c (compare_ranges): Likewise.
6109 * var-tracking.c (add_with_sets): Likewise.
6110 (vt_find_locations): Likewise.
6112 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
6114 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
6116 (FBSD_ENDFILE_SPEC): Likewise.
6117 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
6118 config/freebsd-spec.h.
6119 (ENDFILE_SPEC): Likewise.
6121 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
6122 Richard Henderson <rth@redhat.com>
6125 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
6126 Check for a memory location that is not a reference (using an AND)
6127 to an unaligned location here.
6128 * config/alpha/predicates.md (normal_memory_operand): Remove.
6130 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
6132 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
6133 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
6135 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
6137 * config/mips/mips.c (micromips_globals): New variable.
6138 (mips_set_compression_mode): Save and reinitialize target-dependent
6139 state for microMIPS.
6141 2015-05-18 Martin Liska <mliska@suse.cz>
6143 * dbgcnt.def: Add new counter.
6144 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
6146 2015-05-18 Martin Liska <mliska@suse.cz>
6148 * dbgcnt.def: Sort counters.
6149 * opts.c (common_handle_option): Do not compile if
6150 -fdbg-cnt-list is enabled.
6152 2015-05-18 Tom de Vries <tom@codesourcery.com>
6154 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
6155 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
6156 address operator to va_list operand.
6157 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
6159 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
6161 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
6162 * config/s390/s390.c (s390_gimplify_va_arg): Same.
6163 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
6165 2015-05-18 Tom de Vries <tom@codesourcery.com>
6167 * tree-ssa-tail-merge.c: Fix whitespace.
6169 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
6171 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
6172 cortex-a17, and cortex-a17.cortex-a7.
6174 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
6177 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
6179 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
6182 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
6183 QImode inner modes for TARGET_AVX512BW. Force mask operand
6184 to a register for AVX512F modes.
6186 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
6188 * toplev.c (emit_debug_global_declarations): Do not output debug info
6189 when doing slim LTO objects.
6191 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
6193 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
6194 odr_types_equivalent_p): Declare.
6195 (odr_type_p): Use gcc_checking_assert.
6196 (type_in_anonymous_namespace_p) Declare.
6197 (type_with_linkage_p): Declare.
6198 * common.opt (Wlto-type-mismatch): New warning.
6199 * ipa-devirt.c (compound_type_base): New function.
6200 (odr_or_derived_type_p): New function.
6201 (odr_types_equivalent_p): New function.
6202 (add_type_duplicate): Simplify.
6203 (type_with_linkage_p): Add hack to prevent false positives on C types
6204 (type_in_anonymous_namespace_p): Likewise.
6205 * tree.c (need_assembler_name_p): Use type_with_linkage.
6206 * tree.h (type_in_anonymous_namespace_p): Remove.
6207 * doc/invoke.texi (-Wlto-type-mismatch): Document
6209 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
6211 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
6212 (verify_type): Verify STRING_FLAG.
6214 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6217 * tree-pretty-print.c (percent_K_format): Replace locus pointer
6218 with accessor function.
6219 * tree-diagnostic.c (diagnostic_report_current_function): Use
6220 diagnostic_location function.
6221 (maybe_unwind_expanded_macro_loc): Likewise.
6222 (virt_loc_aware_diagnostic_finalizer): Likewise.
6223 (default_tree_printer): Replace locus pointer with accessor function.
6224 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
6225 (diagnostic_set_info_translated): Initialize second location.
6226 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
6227 (diagnostic_show_locus): Handle two locations. Call
6228 diagnostic_print_caret_line.
6229 (diagnostic_print_caret_line): New.
6230 (default_diagnostic_starter): Use diagnostic_location function.
6231 (diagnostic_report_diagnostic): Use diagnostic_location function.
6232 (verbatim): Do not set text.locus.
6233 * diagnostic.h (struct diagnostic_info): Remove location field.
6234 (struct diagnostic_context): Make caret_chars an array of two.
6235 (diagnostic_location): New inline.
6236 (diagnostic_expand_location): Handle two locations.
6237 (diagnostic_same_line): New inline.
6238 (diagnostic_print_caret_line): Declare.
6239 (CARET_LINE_MARGIN): New constant.
6240 * pretty-print.c (pp_printf): Do not set text.locus.
6241 (pp_verbatim): Do not set text.locus.
6242 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
6243 (struct text_info): Replace locus pointer with locations
6244 array. Add accessor functions.
6246 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
6247 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6250 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
6251 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
6252 large constants in register instead of splitting them.
6254 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
6257 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
6258 replacements in memory addresses.
6259 (get_unaligned_address): Ditto.
6261 2015-05-16 James Bowman <james.bowman@ftdichip.com>
6263 * config/ft32/*: New files for FT32 port.
6264 * doc/install.texi: Add FT32 information.
6265 * doc/invoke.texi: Add FT32 information.
6266 * doc/md.texi: Add FT32 information.
6267 * doc/contrib.texi: Self added.
6269 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
6271 PR tree-optimization/64454
6272 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
6273 (-1 - A -> ~A): Remove unnecessary condition.
6275 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
6277 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
6278 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
6279 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
6281 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
6283 * ipa-chkp.h (chkp_wrap_function): New.
6284 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
6285 (chkp_wrap_function_name): New.
6286 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
6287 to get wrapper name.
6288 * lto-cgraph.c: Include ipa-chkp.h.
6289 (input_cgraph_1): Avoid alias chain for wrappers.
6291 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
6294 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
6295 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
6297 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6299 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
6300 (AARCH64_FL_SLOWMUL): Delete.
6301 (AARCH64_FL_CRC): Redefine to 1<<3.
6302 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
6304 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6306 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
6309 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
6311 * config/alpha/alpha.md (extendqidi2): Use general_operand
6312 instead of some_operand for operand[1] predicate.
6313 (extendhidi2): Ditto.
6314 (cbranchdi4): Use general_operand instead of some_operand
6315 for operand[1] and operands[2] predicates.
6317 * config/alpha/predicates.md (some_operand): Remove unused predicate.
6318 (some_ni_operand): Ditto.
6320 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
6322 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
6323 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
6324 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
6325 low part of the constant using alpha_emit_set_const_1.
6326 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
6328 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
6330 * varasm.c (output_constant_pool_1): Pass down alignment from
6331 constant pool entry's descriptor to output_constant_pool_2.
6332 (output_object_block): Add comment prior to call to
6333 output_constant_pool_1.
6335 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
6337 PR rtl-optimization/65862
6338 * target.def (ira_change_pseudo_allocno_class): New hook.
6339 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
6341 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
6342 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
6344 * ira-costs.c (find_costs_and_classes): Call the hook and change
6345 classes when it is necessary.
6346 * doc/tm.texi: Update.
6348 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
6350 * config/i386/i386.md (sibcall_memory): Check that register with
6351 callee address is not also used as one of the arguments, instead
6352 of checking that it is not live after the sibcall.
6353 (sibcall_pop_memory): Ditto.
6354 (sibcall_value_memory): Ditto.
6355 (sibcall_value_pop_memory): Ditto.
6357 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
6359 * generic-match-head.c (types_match): Handle non-types.
6360 * gimple-match-head.c (types_match): Likewise.
6361 * match.pd: Remove unnecessary TREE_TYPE for types_match.
6363 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
6365 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
6366 (csneg3<mode>_insn): Enable expansion of pattern.
6368 2015-05-14 Nick Clifton <nickc@redhat.com>
6370 * config/rl78/rl78.c (rl78_select_section): Select the correct
6371 default section based upon the category of the decl.
6373 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
6375 PR rtl-optimization/30967
6376 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
6377 destination mode for the cost of scc patterns.
6379 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
6381 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
6382 using SWIM248 mode iterator.
6383 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
6384 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
6385 for operand[2] constraint.
6386 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
6388 2015-05-13 Jakub Jelinek <jakub@redhat.com>
6391 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
6392 make sure it is never noreturn, even when the task body does not
6394 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
6395 right before GIMPLE_OMP_RETURN.
6396 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
6397 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
6398 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
6400 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6402 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
6403 * tree-ssa-math-opts.c: Include params.h
6404 (pow_synth_sqrt_info): New struct.
6405 (representable_as_half_series_p): New function.
6406 (get_fn_chain): Likewise.
6407 (print_nested_fn): Likewise.
6408 (dump_fractional_sqrt_sequence): Likewise.
6409 (dump_integer_part): Likewise.
6410 (expand_pow_as_sqrts): Likewise.
6411 (gimple_expand_builtin_pow): Use above to attempt to expand
6412 pow as series of square roots. Removed now unused variables.
6414 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
6416 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
6417 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
6418 Remove *p0 and *p1 arguments. Rewrite function.
6419 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
6420 (alpha_split_const_mov): Update calls to alpha_extract_integer and
6421 alpha_emit_set_long_const.
6422 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
6423 (alpha_output_mi_thunk_osf): Ditto.
6424 * config/alpha/alpha.md (movti): Do not check operands[1]
6427 2015-05-13 Richard Biener <rguenther@suse.de>
6429 PR tree-optimization/66129
6430 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
6432 (vect_schedule_slp_instance): Fix typo.
6434 2015-05-13 David Malcolm <dmalcolm@redhat.com>
6436 * common.opt (fdump-internal-locations): New option.
6437 * input.c: Include diagnostic-core.h.
6438 (get_end_location): New function.
6439 (write_digit): New function.
6440 (write_digit_row): New function.
6441 (dump_location_range): New function.
6442 (dump_labelled_location_range): New function.
6443 (dump_location_info): New function.
6444 * input.h (dump_location_info): New prototype.
6445 * toplev.c (compile_file): Handle flag_dump_locations.
6447 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
6449 * gimple-expr.h (is_gimple_constant): Reorder.
6450 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
6452 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
6454 * combine.c (simplify_set): When generating a CC set, if the
6455 source already is in the correct mode, do not wrap it in a
6456 compare. Simplify the rest of that code.
6458 2015-05-13 Richard Biener <rguenther@suse.de>
6460 PR tree-optimization/66123
6461 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
6464 2015-05-13 Richard Biener <rguenther@suse.de>
6467 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
6469 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
6471 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
6473 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
6474 * aclocal.m4: Regenerated with automake-1.11.6.
6476 2015-05-13 Tom de Vries <tom@codesourcery.com>
6478 PR tree-optimization/66010
6479 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
6480 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
6481 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
6482 and rval based on do_deref.
6484 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
6487 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
6488 link time constants into adress expressions and therefore set
6491 2015-05-13 Jakub Jelinek <jakub@redhat.com>
6494 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
6495 Use SWI248 iterator instead of SWI.
6496 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
6497 Use eq_attr "alternative" "0" instead of match_test in
6498 length_immediate attribute computation.
6499 (*mulvhi4, *mulvhi4_1): New define_insns.
6502 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
6503 SIGNED to get precision of non-negative value.
6505 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
6508 * function.c (diddle_return_value_1): Process bounds first.
6509 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
6512 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
6514 PR rtl-optimization/64616
6515 * loop-invariant.c (can_move_invariant_reg): New.
6516 (move_invariant_reg): Call above new function to decide whether
6517 instruction can just be moved, skipping creation of temporary
6520 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
6523 * i386.c (ix86_function_sseregparm): Only return -1 if local function
6524 with implied regparm is called from -mno-sse function.
6525 (init_cumulative_args): Output error if ix86_function_sseregparm
6526 return -1 and SSE register would be needed.
6527 (function_arg_advance_32): Likewise.
6528 (function_arg_32): Likewise.
6529 * i386.h (ix86_args): Add decl field.
6531 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
6534 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
6535 inlines across optimization boundary.
6537 2015-05-12 Jason Merrill <jason@redhat.com>
6539 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
6540 string literal and macro name.
6542 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
6544 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
6545 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
6546 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
6548 2015-05-12 David Malcolm <dmalcolm@redhat.com>
6550 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
6551 (-Wmisleading-indentation): New option.
6552 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
6554 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
6556 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
6557 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
6558 (alpha_extract_integer): Ditto.
6559 (alpha_legitimate_constant_p): Ditto.
6560 (alpha_split_tmode_pair): Ditto.
6561 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
6562 (alpha_expand_mov): Ditto.
6563 (print_operand): Remove handling of 'H' modifier.
6564 <case 'm'>: Remove CONST_DOUBLE handling.
6565 (summarize_insn): Handle CONST_WIDE_INT.
6566 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
6568 (movti): Handle CONST_WIDE_INT.
6569 * config/alpha/constraints.md ('H'): Remove constraint definition.
6570 ('G'): Do not match MODE_FLOAT class.
6571 * config/alpha/predicates.md (const0_operand): Also match
6573 (non_add_const_operand): Ditto.
6574 (non_zero_const_operand): Ditto.
6575 (some_operand): Ditto.
6576 (input_operand): Ditto. Handle CONST_WIDE_INT.
6577 (and_operand): Do not match const_double.
6578 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
6580 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
6583 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
6584 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
6585 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
6586 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
6587 is_mm_seq_cst, is_mm_sync): New accessor functions.
6588 * builtins.c (expand_builtin_sync_operation,
6589 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
6590 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
6591 (get_memmodel, expand_builtin_atomic_compare_exchange,
6592 expand_builtin_atomic_load, expand_builtin_atomic_store,
6593 expand_builtin_atomic_clear): Use new accessor routines.
6594 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
6595 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
6596 (maybe_emit_sync_lock_test_and_set): Use new accessors and
6597 MEMMODEL_SYNC_ACQUIRE.
6598 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
6599 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
6600 expand_atomic_store): Use new accessors.
6601 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
6602 * tsan.c (instrument_builtin_call): Update check for memory model beyond
6603 final enum to use MEMMODEL_LAST.
6604 * c-family/c-common.c: Use new accessor for memmodel_base.
6605 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
6607 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
6608 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
6609 mem_thread_fence, *dmb): Likewise.
6610 * config/alpha/alpha.c (alpha_split_compare_and_swap,
6611 alpha_split_compare_and_swap_12): Likewise.
6612 * config/arm/arm.c (arm_expand_compare_and_swap,
6613 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
6614 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
6615 atomic_loaddi): Likewise.
6616 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
6618 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
6619 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
6621 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
6622 atomic_store<mode>, atomic_compare_and_swap<mode>,
6623 atomic_exchange<mode>): Use new accessors.
6624 * config/mips/mips.c (mips_process_sync_loop): Likewise.
6625 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
6626 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
6627 rs6000_post_atomic_barrier): Add new cases.
6628 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
6629 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
6630 (atomic_load<mode>): Add new cases and use new accessors.
6631 (store_quadpti): Add new cases.
6632 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
6634 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
6635 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
6638 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
6640 * ipa-devirt.c (type_with_linkage_p): New function.
6641 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
6643 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
6644 (can_be_name_hashed_p): Simplify.
6645 (hash_odr_name): Check that type has linkage before checking if it is
6647 (types_same_for_odr): Likewise.
6648 (odr_name_hasher::equal): Likewise.
6649 (odr_subtypes_equivalent_p): Likewise.
6650 (warn_types_mismatch): Likewise.
6651 (get_odr_type): Likewise.
6652 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
6653 * ipa-utils.h (odr_type_p): Move offline.
6654 * tree.c (need_assembler_name_p): Fix handling of types
6656 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
6658 2015-05-12 David Malcolm <dmalcolm@redhat.com>
6660 * timevar.c (timevar_enable): Delete in favor of...
6661 (g_timer): New global.
6662 (struct timevar_def): Move to timevar.h inside class timer.
6663 (struct timevar_stack_def): Likewise.
6664 (timevars): Delete global in favor of field "m_timevars" within
6665 class timer in timevar.h
6666 (stack): Likewise, in favor of field "m_stack".
6667 (unused_stack_instances): Likewise, in favor of field
6668 "m_unused_stack_instances".
6669 (start_time): Likewise, in favor of field "m_start_time".
6670 (get_time): Eliminate check for timevar_enable.
6671 (timer::timer): New function, built from part of timevar_init.
6672 (timevar_init): Rewrite idempotency test from using
6673 "timevar_enable" bool to using dynamic allocation of "g_timer".
6674 Move rest of implementation into timer's constructor.
6675 (timevar_push_1): Rename to...
6676 (timer::push): ...this, adding "m_" prefixes to variables that
6677 are now fields of timer.
6678 (timevar_pop_1): Likewise, rename to...
6679 (timer::pop): ...this, and add "m_" prefixes.
6680 (timevar_start): Replace test for "timevar_enable" with one for
6681 "g_timer", and move bulk of implementation to...
6682 (timer::start): ...here, adding "m_" prefixes.
6683 (timevar_stop): Likewise, from here...
6684 (timer::stop): ...to here.
6685 (timevar_cond_start): Likewise, from here...
6686 (timer::cond_start): ...to here.
6687 (timevar_cond_stop): Likewise, from here...
6688 (timer::cond_stop): ...to here.
6689 (validate_phases): Rename to...
6690 (timer::validate_phases): ...this, and add "m_" prefixes. Make
6691 locals "total" and "tv" const.
6692 (timevar_print): Rename to...
6693 (timer::print): ...this, and add "m_" prefixes. Make locals
6694 "total" and "tv" const. Eliminate test for timevar_enable.
6695 * timevar.h (timevar_enable): Eliminate.
6696 (g_timer): New declaration.
6697 (timevar_push_1): Eliminate.
6698 (timevar_pop_1): Eliminate.
6699 (timevar_print): Eliminate.
6700 (class timer): New class.
6701 (timevar_push): Rewrite to use g_timer.
6702 (timevar_pop): Likewise.
6703 * toplev.c (toplev::~toplev): Likewise.
6705 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
6707 * arm-protos.h (arm_sched_autopref): Delete.
6708 (tune_params): Re-organize, use enums for flag values.
6709 (FUSE_OPS): New macro.
6710 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
6711 (ARM_PREFETCH_BENEFICIAL): Likewise.
6712 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
6713 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
6714 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
6715 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
6716 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
6717 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
6718 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
6719 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
6721 (arm_option_override, thumb2_reorg, arm_print_tune_info)
6722 (aarch_macro_fusion_pair_p): Update uses of current_tune.
6723 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
6725 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
6727 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
6730 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
6731 Sandra Loosemore <sandra@codesourcery.com>
6733 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
6735 (REG_CLASS_NAMES): Add "IJMP_REGS".
6736 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
6737 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
6738 use new "c" register constraint.
6739 * config/nios2/constraint.md (c): New register constraint
6740 corresponding to IJMP_REGS.
6742 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
6744 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
6745 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
6746 define_splits): Delete, revamp, transmogrify into ...
6747 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
6748 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
6749 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
6752 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
6754 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
6755 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
6757 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
6759 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
6760 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
6761 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
6762 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
6763 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
6764 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
6765 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
6766 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
6767 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
6768 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
6769 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
6770 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
6771 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
6772 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
6773 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
6774 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
6775 and 30 corresponding splitters): Delete.
6777 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
6779 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
6782 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
6784 * combine.c (recog_for_combine_1): New function, factored out
6785 from recog_for_combine.
6786 (change_zero_ext): New function.
6787 (recog_for_combine): If recog fails, try again with the pattern
6788 modified by change_zero_ext; if that still fails, restore the
6791 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
6793 * combine.c (get_undo_marker): New function.
6794 (undo_to_marker): New function, largely factored out from ...
6795 (undo_all): ... this. Adjust.
6797 2015-05-12 Richard Biener <rguenther@suse.de>
6799 PR tree-optimization/66101
6800 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
6801 fixup if we turn a loop exit edge to a fallthru edge.
6803 2015-05-12 Richard Biener <rguenther@suse.de>
6805 PR tree-optimization/37021
6806 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
6807 (SLP_TREE_TWO_OPERATORS): New define.
6808 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
6809 SLP_TREE_TWO_OPERATORS.
6810 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
6812 (vect_build_slp_tree): Adjust.
6813 (vect_analyze_slp_cost_1): Likewise.
6814 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
6815 emitting two vector stmts and mixing the results.
6817 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
6819 * call.c (print_z_candidates): Remove dead code.
6821 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6823 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
6824 and zEC12_simple_fp.
6825 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
6828 2015-05-12 Tom de Vries <tom@codesourcery.com>
6830 PR tree-optimization/66010
6831 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
6833 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
6834 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
6835 va_lists are passed, and remove corresponding handling.
6836 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
6837 do_deref argument to ifn_va_arg.
6838 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
6841 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6844 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
6845 REG before taking its REGNO.
6847 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
6849 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
6850 rsp->sign_bit_copies and rsp->nonzero_bits into ...
6851 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
6852 present to get more accurate information about the number of sign bit
6853 copies and non zero bits.
6855 2015-05-12 Richard Biener <rguenther@suse.de>
6857 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
6858 do not allow unrolling.
6860 2015-05-11 Richard Henderson <rth@redhat.com>
6862 * config/i386/i386-modes.def (CCP): New.
6863 * config/i386/i386.c (put_condition_code): Handle it.
6864 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
6866 2015-05-11 Richard Henderson <rth@redhat.com>
6868 * target.def (md_asm_clobbers): Replace with...
6869 (md_asm_adjust): this.
6870 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
6871 (TARGET_MD_ASM_ADJUST): New.
6873 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
6874 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
6875 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
6877 * cfgexpand.c (check_operand_nalternatives): Accept vector of
6878 constraints instead of lists of outputs and inputs.
6879 (expand_asm_stmt): Save and restore input_location around the
6880 body of the function. Move asm data into vectors instead of
6881 building tree lists. Generate cleanup sequences as needed,
6882 rather than waiting til the end. Use new md_asm_adjust hook.
6884 * config/vxworks.c: Include vec.h before target.h.
6885 * gimple.c: Likewise.
6886 * incpath.c: Likewise.
6887 * mode-switching.c: Likewise.
6889 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
6890 (cris_md_asm_adjust): this.
6891 (TARGET_MD_ASM_CLOBBERS): Remove.
6892 (TARGET_MD_ASM_ADJUST): New.
6893 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
6894 (ix86_md_asm_adjust): this.
6895 (TARGET_MD_ASM_CLOBBERS): Remove.
6896 (TARGET_MD_ASM_ADJUST): New.
6897 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
6898 (mn10300_md_asm_adjust): this.
6899 (TARGET_MD_ASM_CLOBBERS): Remove.
6900 (TARGET_MD_ASM_ADJUST): New.
6901 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
6902 (rs6000_md_asm_adjust): this.
6903 (TARGET_MD_ASM_CLOBBERS): Remove.
6904 (TARGET_MD_ASM_ADJUST): New.
6905 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
6906 (visium_md_asm_adjust): this.
6907 (TARGET_MD_ASM_CLOBBERS): Remove.
6908 (TARGET_MD_ASM_ADJUST): New.
6910 2015-05-11 Richard Henderson <rth@redhat.com>
6912 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
6913 if noutputs is zero.
6914 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
6916 * cfgexpand.c (expand_asm_operands): Merge into...
6917 (expand_asm_stmt): ... here.
6919 * cfgexpand.c (expand_asm_operands): Don't call
6920 resolve_asm_operand_names.
6921 * stmt.c (resolve_asm_operand_names): Clarify block comment.
6923 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
6925 * dwarf2out.c (gen_member_die): Sanity check that we access
6926 TYPE_MAIN_VARIANT for TYPE_METHODS.
6927 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
6928 checking TYPE_METHODS.
6929 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
6931 (build_distinct_type_copy): Clear TYPE_METHODS.
6932 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
6933 (verify_type): Allow TYPE_METHODS to be error_mark_node.
6934 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
6936 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
6938 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
6939 (emit_pattern_before_setloc): Likewise.
6941 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
6943 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
6944 for define_peephole2s.
6945 (get_peephole2_pattern): New function.
6946 (main): Use it. Call validate_pattern.
6948 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
6950 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
6951 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
6952 (Last callee saved reg is different for AVR_TINY architecture)
6954 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
6956 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
6957 when looking for memory references.
6959 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
6962 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
6963 via function pointers.
6965 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
6967 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
6968 indirect call by forcing address into a pseudo with -fno-plt.
6969 * common.opt (flag_plt): New option.
6970 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
6971 ([-fno-plt]): Document.
6973 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
6976 * config/rs6000/option-defaults.h: Add space between string literal
6979 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
6981 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
6982 accross ARM targets.
6984 2015-05-11 Christian Bruel <christian.bruel@st.com>
6986 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
6987 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
6989 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
6991 PR rtl-optimization/66076
6992 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
6993 Don't grow the heap array if it is already big enough from a
6996 2015-05-11 Christian Bruel <christian.bruel@st.com>
6998 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
6999 (is_called_in_ARM_mode): Remove.
7000 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
7001 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
7002 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
7003 arm_declare_function_name.
7005 2015-05-11 Christian Bruel <christian.bruel@st.com>
7007 * config/arm/arm.c (arm_option_override): Reoganized and split into :
7008 (arm_option_params_internal); New function.
7009 (arm_option_check_internal): New function.
7010 (arm_option_override_internal): New function.
7011 (thumb_code, thumb1_code): Remove.
7012 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
7013 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
7014 (thumb_code, thumb1_code): Remove.
7015 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
7017 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
7019 * config/alpha/alpha.c (alpha_emit_set_const_1)
7020 (alpha_emit_set_long_const, alpha_extract_integer)
7021 (alpha_legitimate_constant_p, alpha_split_const_mov)
7022 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
7023 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
7024 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
7026 * config/alpha/predicates.md (mode_mask_operand): Do not match
7028 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
7029 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
7030 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
7031 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
7032 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
7034 2015-05-11 Jakub Jelinek <jakub@redhat.com>
7037 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
7038 default_binds_local_p_2.
7039 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
7040 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
7042 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
7044 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
7046 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
7048 Patch by Richard Biener
7049 * coverage.c (coverage_obj_init): Delay building of type variant
7050 until the type is finished.
7052 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
7054 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
7055 mismatch between C and C++ type; compoare correctly ARG_TYPES
7056 for non-prototypes and output correctly parameter index for METHOD_TYPE.
7057 (odr_types_equivalent_p): Fix wording of warning about attributes;
7058 it is OK to match prototype and non-prototype.
7060 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
7062 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
7063 TYPE_ARG_TYPES list.
7064 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
7065 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
7067 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
7069 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
7070 * tree.h (is_lang_specific): Constify.
7072 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
7074 PR tree-optimization/64454
7075 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
7078 2015-05-08 Jason Merrill <jason@redhat.com>
7080 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
7081 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
7082 config/darwin.h, config/darwin9.h, config/elfos.h,
7083 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
7084 config/microblaze/microblaze.h, config/mips/mips.h,
7085 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
7086 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
7087 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
7088 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
7089 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
7090 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
7091 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
7092 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
7093 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
7094 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
7095 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
7096 between string literal and macro name.
7098 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7100 * jump.c: Change argument types to rtx_insn *.
7103 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7105 * lra-constraints.c: Change argument type to rtx_insn *.
7107 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7109 * df-problems.c: Change argument type to rtx_insn *.
7111 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7113 * combine.c: Change argument type to rtx_insn *.
7115 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7118 * rtlanal.c: Change argument type to rtx_insn *.
7120 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7122 * sched-deps.c: Change argument types to rtx_insn *.
7123 * sched-int.h: Adjust.
7125 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7127 * dwarf2cfi.c: Change argument type to rtx_insn *.
7129 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7131 * ira.c (decrease_live_ranges_number): Changetype of local
7132 variable to rtx_insn *.
7133 * recog.c: Change argument types to rtx_insn *.
7136 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7138 * reorg.c: Change argument types to rtx_insn *.
7140 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7142 * ira-color.c: Change argument types to rtx_insn *.
7143 * lra-eliminations.c: Likewise.
7146 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7148 * gcse.c: Change argument types to rtx_insn *.
7150 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7152 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
7154 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7156 * emit-rtl.c (emit_debug_insn_before): Change argument type to
7160 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7162 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
7165 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7167 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
7170 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7172 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
7175 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7177 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
7180 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7182 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
7186 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7188 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
7192 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7194 * except.c (can_nonlocal_goto): Change type of argument to
7198 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7200 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
7203 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7205 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
7206 * cfgrtl.c (can_delete_label_p): Adjust.
7209 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7211 * reorg.c (stop_search_p): Change argument to rtx_insn *.
7213 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7215 * except.c (make_reg_eh_region_note): Change argument to
7217 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
7220 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7222 * mode-switching.c (commit_mode_sets): Change type of local
7223 variable from rtx to rtx_insn *.
7225 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
7227 * doc/install.texi (--enable-languages): Add missing jit and lto info.
7228 Add ^ to grep command.
7229 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
7230 arg to last gimple_simplify declaration. Add missing gimple_build
7231 declaration for built-in function case with four tree args.
7233 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
7234 Szabolcs Nagy <szabolcs.nagy@arm.com>
7236 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
7237 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
7238 (GNU_USER_DYNAMIC_LINKERN32): Update.
7240 2015-05-08 Richard Biener <rguenther@suse.de>
7242 PR tree-optimization/66036
7243 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
7244 Handle strided group loads.
7245 (vect_verify_datarefs_alignment): Likewise.
7246 (vect_enhance_data_refs_alignment): Likewise.
7247 (vect_analyze_group_access): Likewise.
7248 (vect_analyze_data_ref_access): Likewise.
7249 (vect_analyze_data_ref_accesses): Likewise.
7250 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
7251 (vectorizable_load): Likewise.
7253 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
7255 * config/rs6000/rs6000.md: Require operand inequality in one
7258 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
7259 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7261 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
7263 * config/rx/rx.md (movdi, movdf): Likewise.
7264 Likewise for define_peephole2s.
7266 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
7268 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
7269 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
7270 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
7271 vtst_u64): Rewrite using gcc vector extensions.
7273 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
7275 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
7276 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
7278 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
7280 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
7282 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
7284 * config/glibc-stdint.h (OPTION_MUSL): Define.
7285 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
7286 Change the definition based on OPTION_MUSL for 64 bit targets.
7287 * config/linux.h (OPTION_MUSL): Redefine.
7288 * config/alpha/linux.h (OPTION_MUSL): Redefine.
7289 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
7290 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
7292 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
7293 Szabolcs Nagy <szabolcs.nagy@arm.com>
7295 * config.gcc (LIBC_MUSL): New tm_defines macro.
7296 * config/linux.h (OPTION_MUSL): Define.
7297 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
7298 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
7299 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
7300 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
7301 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
7302 * config/linux.opt (mmusl): New option.
7303 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
7304 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
7305 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
7306 * configure: Regenerate.
7308 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
7309 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7312 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
7313 * config/i386/knetbsd-gnu64.h: New file.
7315 2015-05-08 Marek Polacek <polacek@redhat.com>
7318 * doc/invoke.texi: Document -Woverride-init-side-effects.
7320 2015-05-07 Marek Polacek <polacek@redhat.com>
7323 * doc/invoke.texi: Document -Wshift-negative-value.
7325 2015-05-06 Aditya Kumar <hiraditya@msn.com>
7327 * gcov-tool.c (do_merge): Refactore to remove int ret.
7328 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
7329 !type == FUNC to type != FUNC.
7330 * reload.h (struct target_reload): Changee to type of
7331 x_spill_indirect_levels from bool to unsigned char.
7333 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
7335 * rtl.h (always_void_p): New function.
7336 * gengenrtl.c (always_void_p): Likewise.
7337 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
7338 with code foo are always VOIDmode.
7339 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
7340 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
7341 compare-elim.c, config/aarch64/aarch64.c,
7342 config/aarch64/aarch64.md, config/alpha/alpha.c,
7343 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
7344 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
7345 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
7346 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
7347 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
7348 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
7349 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
7350 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
7351 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
7352 config/ia64/vect.md, config/iq2000/iq2000.c,
7353 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
7354 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
7355 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
7356 config/mep/mep.c, config/microblaze/microblaze.c,
7357 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
7358 config/mn10300/mn10300.c, config/msp430/msp430.c,
7359 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
7360 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
7361 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
7362 config/rs6000/altivec.md, config/rs6000/rs6000.c,
7363 config/rs6000/rs6000.md, config/rs6000/vector.md,
7364 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
7365 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
7366 config/sh/sh.md, config/sh/sh_treg_combine.cc,
7367 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
7368 config/spu/spu.md, config/stormy16/stormy16.c,
7369 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
7370 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
7371 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
7372 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
7373 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
7374 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
7375 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
7376 var-tracking.c: Update calls accordingly.
7378 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
7382 * varasm.c (function_mergeable_rodata_prefix): New function.
7383 (mergeable_string_section): Use it.
7384 (mergeable_constant_section): Use it.
7386 2015-05-07 Jeff Law <law@redhat.com>
7389 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
7390 simplifier to narrow arithmetic.
7391 * generic-match-head.c: (types_match, single_use): New functions.
7392 * gimple-match-head.c: (types_match, single_use): New functions.
7394 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7396 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
7399 2015-05-07 Richard Biener <rguenther@suse.de>
7401 PR tree-optimization/66002
7402 * passes.def: Schedule another pass_merge_phi after ifcombine, right
7405 2015-05-07 Marek Polacek <polacek@redhat.com>
7406 Martin Uecker <uecker@eecs.berkeley.edu>
7408 * doc/invoke.texi: Document -fsanitize=bounds-strict.
7409 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
7410 into SANITIZE_NONDEFAULT.
7411 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
7413 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
7416 * config/alpha/alpha.c (alpha_override_options_after_change): New.
7417 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
7418 (alpha_override_options): Move align_loops, align_jumps and
7419 align_functions handling into alpha_override_options_after_change.
7421 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
7422 Chris Jones <chrisj@nvidia.com>
7423 Joshua Conner <jconner@nvidia.com>
7425 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
7426 linking of crtfastmath.o.
7427 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
7429 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
7431 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
7432 (cstore<mode>4_unsigned_imm): New expander.
7433 (cstore<mode>4): Remove empty constraint strings. Use the new
7436 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
7439 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
7442 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
7444 * config/aarch64/geniterators.sh: Use standard BRE in sed.
7446 2015-05-06 Alan Modra <amodra@gmail.com>
7449 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
7450 (UNSPEC_NOP): Define.
7451 (reload_vsx_from_gpr<mode>): Add missing DONE.
7452 (reload_gpr_from_vsx<mode>): Likewise.
7453 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
7454 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
7456 2015-05-06 Christian Bruel <christian.bruel@st.com>
7459 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
7460 align_jumps, align_functions into aarch64_override_options_after_change.
7462 2015-05-06 Richard Biener <rguenther@suse.de>
7464 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
7465 vect_transform_slp_perm_load to check if we support a permutation
7466 for basic-block vectorization.
7468 2015-05-06 Nick Clifton <nickc@redhat.com>
7470 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
7471 used, even if it is not being used as a frame pointer.
7473 2015-05-05 Jason Merrill <jason@redhat.com>
7475 * dwarf2out.c (gen_member_die): Don't emit anything for an
7476 anonymous class constructor.
7478 2015-05-05 David Malcolm <dmalcolm@redhat.com>
7480 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
7481 that it reflects the block structure.
7482 (afdo_propagate_edge): Likewise.
7483 (afdo_calculate_branch_prob): Likewise.
7484 (afdo_annotate_cfg): Likewise.
7485 * cfgcleanup.c (equal_different_set_p): Likewise.
7486 (try_crossjump_to_edge): Likewise.
7487 * cgraph.c (cgraph_node::verify_node): Likewise.
7488 * cgraphunit.c (expand_all_functions): Likewise.
7489 * config/i386/i386.c (ix86_expand_copysign): Likewise.
7490 (exact_dependency_1): Likewise.
7491 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
7492 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
7493 * gensupport.c (process_define_subst): Likewise.
7494 * lto-wrapper.c (merge_and_complain): Likewise.
7495 * tree-if-conv.c (if_convertible_bb_p): Likewise.
7496 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
7497 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
7498 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
7499 * tree-vect-loop.c (vectorizable_reduction): Likewise.
7500 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
7501 * tree-vect-stmts.c (vectorizable_shift): Likewise.
7502 * tree-vrp.c (vrp_finalize): Likewise.
7503 * tree.c (variably_modified_type_p): Likewise.
7505 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
7507 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
7508 on darwin12 and later.
7509 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
7510 file to pass -rdynamic on darwin12 and later.
7511 * config/darwin.opt (rdynamic): Add.
7513 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
7515 * doc/extend.texi (C Extensions): Update menu for moved Variable
7516 Attributes and Type Attributes sections.
7518 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
7521 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
7522 if rep_8byte stringop strategy was specified for 32-bit target.
7524 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
7527 * config/i386/i386.md (vector convert to float spltiter): Check for
7528 xmm16+, when splitting scalar float conversion.
7529 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
7531 2015-05-05 Nick Clifton <nickc@redhat.com>
7533 * config/msp430/msp430-opts.h (enum msp430_regions): New.
7534 * config/msp430/msp430.c (msp430_override_options): Complain if
7535 -mcode-region or -mdata-region is used on a non MSP430X.
7536 (msp430_section_attr): New function. Checks lower, upper and
7538 (msp430_attribute_table): Add lower, upper and either.
7539 (gen_prefix): New function. Generates a prefix for a section
7541 (msp430_select_section): New function - handles the choice of
7542 section for an object. Takes into account memory region
7543 attributes and options.
7544 (msp430_function_section): Use gen_prefix.
7545 (TARGET_SECTION_TYPE_FLAGS): Define.
7546 (msp430_section_type_flags): New function.
7547 (TARGET_ASM_UNIQUE_SECTION): Define.
7548 (msp430_unique_section): New function.
7549 (msp430_output_aligned_decl_common): New function.
7550 (msp430_do_not_relax_short_jumps): New function.
7551 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
7553 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
7554 * config/msp430/msp430-protos.h
7555 (msp430_do_not_relax_short_jumps): New prototype.
7556 (msp430_output_aligned_decl_common): New prototype.
7557 * config/msp430/msp430.md (length): New attribute.
7558 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
7559 then use a long code sequence for short jumps.
7560 * config/msp430/msp430.opt (mcode-region): New.
7561 (mdata-region): New.
7562 * doc/invoke.texi: Document new options.
7563 * doc/extend.texi: Document new attributes.
7565 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
7567 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
7568 (tune_params): Add field branch_costs.
7569 (aarch64_branch_cost): Declare.
7570 * gcc/config/aarch64.c (generic_branch_cost): New.
7571 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
7572 (cortexa53_tunings): Likewise.
7573 (cortexa57_tunings): Likewise.
7574 (thunderx_tunings): Likewise.
7575 (xgene1_tunings): Likewise.
7576 (aarch64_branch_cost): Define.
7577 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
7579 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
7581 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
7582 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
7583 * config/i386/i386.md: Ditto.
7584 * config/i386/winnt.c: Ditto.
7586 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
7588 * doc/extend.texi (__atomic Builtins): Move implementation details
7589 to the end of the description, rewrite opening paragraphs, state
7590 difference with __sync builtins, state C11/C++11 assumptions,
7591 weaken itemized descriptions, add explanation of memory model
7592 behaviour, expand description of compare-exchange, simplify text.
7594 2015-05-05 Renlin Li <renlin.li@arm.com>
7596 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
7598 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
7600 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
7601 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
7602 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
7603 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
7604 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
7605 * configure: Regenerate.
7606 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
7607 * doc/install.texi (aarch64*-*-*): Document new
7608 --enable-fix-cortex-a53-843419 option.
7609 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
7610 and -mno-fix-cortex-a53-843419 options.
7612 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
7615 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
7617 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
7619 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
7620 fix overactive TYPE_MIN_VALUE check and add FIXME for type
7621 compatibility problems.
7623 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
7625 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
7627 (cbranchsi4_reg): New.
7628 * config/microblaze/microblaze.c
7629 (microblaze_expand_conditional_branch_reg): New.
7630 * config/microblaze/microblaze-protos.h
7631 (microblaze_expand_conditional_branch_reg): New prototype.
7633 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
7635 * config/microblaze/microblaze.md (peephole2): New.
7637 2015-05-04 Jeff Law <law@redhat.com>
7640 2015-05-04 Jeff Law <law@redhat.com>
7642 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
7643 simplifier to narrow arithmetic.
7644 * generic-match-head.c: (types_match, single_use): New functions.
7645 * gimple-match-head.c: (types_match, single_use): New functions.
7647 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
7650 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
7651 (split_branches): Likewise.
7653 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
7655 * common.opt (fdelete-null-pointer-checks): Init to -1.
7656 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
7657 override flag_delete_null_pointer_checks default.
7658 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
7659 behavior re address zero. Better document target-specific behavior.
7660 (-fisolate-errneous-paths-dereference): Mention relationship to
7661 -fdelete-null-pointer-checks.
7663 2015-05-04 Jakub Jelinek <jakub@redhat.com>
7665 PR tree-optimization/65984
7666 * ubsan.c: Include tree-cfg.h.
7667 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
7668 stmt_could_throw_p test, rename can_throw variable to ends_bb.
7670 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
7672 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
7673 to CONST_DOUBLE_P predicate.
7674 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
7675 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
7676 allow only operands that satisfy standard_sse_constant_p predicate.
7677 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
7678 to CONST_DOUBLE_P predicate.
7680 2015-05-04 Jeff Law <law@redhat.com>
7682 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
7683 simplifier to narrow arithmetic.
7684 * generic-match-head.c: (types_match, single_use): New functions.
7685 * gimple-match-head.c: (types_match, single_use): New functions.
7687 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
7689 * config/arm/arm.c: Restore bootstrap.
7691 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
7693 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
7694 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
7695 as CONST_WIDE_INT, not CONST_DOUBLE.
7696 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
7697 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
7698 (ix86_find_base_term): Do not check for CONST_DOUBLE.
7699 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
7700 (ix86_build_signbit_mask): Rewrite using wide ints.
7701 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
7702 (ix86_rtx_costs): Handle CONST_WIDE_INT.
7703 (find_constant): Ditto.
7704 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
7706 * config/i386/predicates.md (x86_64_immediate_operand)
7707 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
7708 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
7709 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
7710 (const0_operand): Also match const_wide_int.
7711 (constm1_operand): Ditto.
7712 (const1_operand): Ditto.
7714 2015-05-04 Richard Biener <rguenther@suse.de>
7716 PR tree-optimization/65965
7717 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
7718 store groups at gaps.
7720 2015-05-04 Richard Biener <rguenther@suse.de>
7722 PR tree-optimization/65935
7723 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
7724 then make sure to apply that swapping to the IL.
7726 2015-05-04 Jakub Jelinek <jakub@redhat.com>
7728 * Makefile.in (PATCHLEVEL_c): New variable.
7729 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
7730 expand the same way as if DEVPHASE_c was non-empty.
7732 2015-05-04 Kai Tietz <ktietz@redhat.com>
7735 * lto-wrapper.c (run_gcc): Open filename
7738 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
7740 * doc/extend.texi (Variable Attributes, Type Attributes): Move
7741 sections up in file, to immediately after the Function Attributes
7744 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
7746 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
7748 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7750 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
7751 (insert_partition_copy_on_edge): Adjust.
7752 (insert_rtx_to_part_on_edge): Likewise.
7753 (insert_part_to_rtx_on_edge): Likewise.
7755 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7757 * function.c (set_return_jump_label): Change type of argument to
7759 * function.h (set_return_jump_label): Adjust.
7761 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7763 * reload.h (struct reg_equivs_t): Change type of init to
7765 * ira.c (fix_reg_equiv_init): Adjust.
7766 * reload1.c (eliminate_regs_1): Likewise.
7767 (init_eliminable_invariants): Likewise.
7769 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7771 * cselib.c (fp_setter_insn): Take a rtx_insn *.
7772 * cselib.h (fp_setter_insn): Adjust.
7774 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7776 * recog.c (struct validate_replace_src_data): Change type of
7777 insn field to rtx_insn *.
7778 (validate_replace_src_group): Change type of argument to rtx_insn *.
7779 * recog.h (validate_replace_src_group): Adjust.
7781 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7783 * haifa-sched.c: Change the type of some variables to rtx_insn *.
7784 * sched-deps.c: Likewise.
7785 * sched-int.h: Likewise.
7786 * sched-rgn.c: Likewise.
7787 * sel-sched.c: Likewise.
7789 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7792 * config/i386/i386.c: Change the type of some arguments to
7794 * config/arm/arm.c: Likewise.
7796 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7798 * lra-constraints.c: Change type of some arguments to rtx_insn *.
7800 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7802 * regcprop.c (kill_autoinc_value): Change type of argument to
7805 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7807 * genrecog.c (print_subroutine): Adjust.
7808 * recog.c (get_bool_attr_mask_uncached): Likewise.
7809 * recog.h (struct recog_data_d): Change the type of insn to
7812 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7814 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
7816 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7818 * df-problems.c (df_set_note): Change type of argument to
7821 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7823 * builtins.c (expand_builtin_trap): Change type of local
7824 variable to rtx_insn *.
7825 (add_sched_insns_for_speculation): Likewise.
7826 (ix86_emit_save_regs): Likewise.
7827 (get_scratch_register_on_entry): Likewise.
7828 (ix86_emit_restore_reg_using_pop): Likewise.
7829 (ix86_emit_leave): Likewise.
7830 (ix86_emit_restore_regs_using_mov): Likewise.
7831 (ix86_expand_epilogue): Likewise.
7833 (rl78_alloc_physical_registers_umul): Likewise.
7834 * cselib.c (discard_useless_locs): Likewise.
7835 (cselib_invalidate_regno): Likewise.
7836 (cselib_invalidate_mem): Likewise.
7837 * function.c (expand_function_start): Likewise.
7838 (emit_use_return_register_into_block): Likewise.
7840 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
7841 * ifcvt.c (noce_get_alt_condition): Likewise.
7842 * loop-doloop.c (doloop_condition_get): Likewise.
7843 * lra-constraints.c (inherit_in_ebb): Likewise.
7844 * modulo-sched.c (sms_schedule_by_order): Likewise.
7845 * recog.c (next_insn_tests_no_inequality): Likewise.
7846 * reorg.c (emit_delay_sequence): Likewise.
7847 (update_reg_dead_notes): Likewise.
7848 (fix_reg_dead_note): Likewise.
7849 (fill_slots_from_thread): Likewise.
7850 (delete_computation): Likewise.
7852 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
7854 * doc/extend.texi (Variable Attributes): Add menu and proper
7855 @nodes to subsections. Move Microsoft Windows attributes to
7856 their own subsection.
7857 (Type Attributes): Reorganize introduction to remove duplicate
7858 list of attributes. Add menu and proper @nodes to subsections.
7859 Alphabetize the main table of common attributes.
7861 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
7863 * match.pd: New simplification patterns.
7864 (x + (x & 1)) -> ((x + 1) & ~1)
7865 (x & ~(x & y)) -> ((x & ~y))
7866 (x | ~(x | y)) -> ((x | ~y))
7868 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7870 * target.def (attribute_table): Mention that struct attribute_spec
7871 is defined in tree-core.h rather than tree.h
7872 * doc/tm.texi: Regenerate.
7874 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
7876 * genrecog.c (test): Rename to rtx_test. Update rest of file
7879 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
7881 PR translation/65959
7882 * params.h (DEFPARAM): Rename msgid to nocmsgid.
7884 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
7886 * gcc/config/aarch64/aarch64-protos.h (tune_params):
7887 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
7888 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
7889 Return value depending on target.
7890 (generic_tunings): Initialize new target settings.
7891 (cortexa53_tunings): Likewise.
7892 (cortexa57_tunings): Likewise.
7893 (thunderx_tunings): Likewise.
7894 (xgene1_tunings): Likewise.
7896 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
7898 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
7899 Make Cortex-A53 shift costs more accurate.
7901 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7903 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
7906 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
7908 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
7909 Calculate cost of op0 and op1 in PLUS and MINUS cases.
7911 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7913 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
7914 Add cost of op0 in the compare-with-fpzero case.
7916 2015-04-30 David Malcolm <dmalcolm@redhat.com>
7918 * builtins.c (fold_builtin_1): Remove spurious second
7920 * cgraph.h (symtab_node::get_availability): Likewise.
7921 * opts.c (common_handle_option): Remove spurious second semicolon.
7922 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
7923 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
7925 2015-04-30 Caroline Tice <cmtice@google.com>
7927 PR gcov-profile/65929
7928 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
7929 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
7930 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
7931 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
7932 * doc/tm.texi: Regenerate.
7933 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
7934 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
7935 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
7936 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
7938 2015-04-30 Marek Polacek <polacek@redhat.com>
7940 * varasm.c (handle_cache_entry): Fix logic.
7942 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7944 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
7945 (*extrsi5_insn_uxtw_alt): Likewise.
7946 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
7947 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
7950 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7952 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
7955 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7957 * config/aarch64/aarch64.md
7958 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
7959 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
7960 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
7961 appropriately. Handle alternative EON form.
7963 2015-04-30 Renlin Li <renlin.li@arm.com>
7965 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
7966 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
7968 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
7971 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
7972 -fstrict-aliasing boundaries.
7974 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7976 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
7977 and [SU]MNEGL patterns.
7979 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7981 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
7982 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
7983 combined arithmetic-shift ops. Properly handle all shift and extend
7984 operations that can occur in combination with PLUS/MINUS.
7985 Rename maybe_fma to compound_p.
7986 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
7987 arithmetic and shift operations.
7989 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7991 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
7992 rather than arith_shift cost when costing ADD/MINUS of an
7995 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
7998 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
8001 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
8003 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
8004 are for the same position.
8006 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
8008 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
8010 (vectorize_loops): Use it.
8012 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
8014 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
8015 for aggregate types.
8016 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
8018 * tree.c (need_assembler_name_p): Compute mangled name for
8019 non-fundamental types and integer types.
8021 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
8023 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
8025 * expr.c (expand_expr_real_2): Likewise.
8027 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
8029 * tree.c (build_common_builtin_nodes): Do not build
8030 __builtin_alloca_with_align as equivalent of library alloca.
8032 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
8034 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
8035 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
8037 * tree.c: Include print-tree.h and ipa-utils.h
8038 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
8039 (free_lang_data_in_cgraph): Call verify_type.
8040 (verify_type_variant): New function.
8041 (verify_type): New function.
8042 * tree.h (verify_type): Declare.
8044 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
8046 * config/mips/mips-cpus.def: (mips4): Change default processor
8047 from PROCESSOR_R8000 to PROCESSOR_R10000.
8049 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
8051 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
8052 la/jalr instead of jal.
8054 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
8057 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
8058 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
8059 (setcc+movzbl peephole2): Check also clobbered reg.
8060 (setcc+andl peephole2): Ditto.
8062 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
8065 * config/nvptx/mkoffload.c (target_ilp32): New variable.
8066 (main): Set it depending on "-foffload-abi=[...]".
8067 (compile_native, main): Use it to pass "-m32" or "-m64" to the
8070 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
8073 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
8074 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
8075 Flip lane index back at assembly time for bigendian.
8077 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
8079 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
8080 * gimplify.c (gimplify_omp_workshare): Use it.
8082 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
8084 * Makefile.in (build/genrecog.o): Depend on inchash.h.
8085 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
8087 * genrecog.c: Rewrite most of the code except for the third page.
8089 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
8091 * inchash.h, inchash.c: Include bconfig.h for build objects.
8092 * Makefile.in (build/inchash.o): New rule.
8094 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
8097 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
8098 number in type attribute expression.
8100 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
8102 * loop-iv.c (canon_condition): Generalize to all types of integer
8105 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
8107 * gimple-walk.c: Prune duplicate or unneeded includes.
8108 (walk_gimple_asm): Only call parse_input_constraint or
8109 parse_output_constraint if their findings are used.
8110 Honour parse_input_constraint and parse_output_constraint
8113 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
8115 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
8117 2015-04-29 Tom de Vries <tom@codesourcery.com>
8119 PR tree-optimization/65893
8120 * passes.def (pass_all_optimizations): Move pass_stdarg to after
8123 2015-04-29 Richard Biener <rguenther@suse.de>
8125 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
8126 compute GROUP_SIZE for basic-block SLP.
8127 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
8128 take into account gaps.
8129 (vect_get_mask_element): Properly reject references to previous
8131 (vect_transform_slp_perm_load): Likewise.
8133 2015-04-29 Christian Bruel <christian.bruel@st.com>
8136 * config/i386/i386.c (ix86_default_align): New function.
8137 (ix86_override_options_after_change): Call ix86_default_align.
8138 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
8139 (ix86_override_options_after_change): New function.
8141 2015-04-28 Jeff Law <law@redhat.com>
8143 * tree-ssa-dom.c (record_equality); Fix comment typos.
8145 2015-04-28 Tom de Vries <tom@codesourcery.com>
8147 PR tree-optimization/65887
8148 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
8150 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
8152 * doc/extend.texi (Declaring Attributes of Functions): Split into
8153 subsections by target. Alphabetize the table of common attributes.
8154 Rewrite some of the introductory text to reflect the new structure.
8155 Update some cross-references to point to the new subsections.
8156 (Attribute Syntax): Put paragraph about "__" naming here. Remove
8157 duplicate copies in the discussion of function, label, and type
8160 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
8163 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
8165 2015-04-28 Jason Merrill <jason@redhat.com>
8168 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
8169 (finalize_type_size): Respect TYPE_USER_ALIGN.
8170 (layout_type) [ARRAY_TYPE]: Likewise.
8172 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
8174 * config/arm/arm.md (*arm_movt): Fix type attribute.
8175 (*cmpsi_shiftsi): Likewise.
8176 (*cmpsi_shiftsi_swp): Likewise.
8177 (*movsicc_insn): Likewise.
8178 (*cond_move): Likewise.
8179 (*if_plus_move): Likewise.
8180 (*if_move_plus): Likewise.
8181 (*if_arith_move): Likewise.
8182 (*if_move_arith): Likewise.
8183 (*if_shift_move): Likewise.
8184 (*if_move_shift): Likewise.
8185 (*arm_movtas_ze): Likewise.
8186 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
8187 redundancy and type attribute.
8188 (*thumb2_movsi_insn): Fix type attribute.
8189 (*thumb2_addsi_short): Likewise.
8190 (thumb2_addsi3_compare0): Likewise.
8191 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
8192 attributes accordingly.
8194 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
8197 * function.c (pad_to_arg_alignment): Add parentheses.
8199 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
8201 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
8202 libgcc/config/frv/elf-lib.h.
8204 2015-04-28 Tom de Vries <tom@codesourcery.com>
8206 * tree-call-cdce.c: Fix example in header comment.
8208 2015-04-28 Richard Biener <rguenther@suse.de>
8210 PR tree-optimization/62283
8211 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
8212 fails fatally and we are vectorizing a basic-block simply
8213 cause the child to be constructed piecewise.
8214 (vect_analyze_slp_cost_1): Adjust.
8215 (vect_detect_hybrid_slp_stmts): Likewise.
8216 (vect_bb_slp_scalar_cost): Likewise.
8217 (vect_get_constant_vectors): For piecewise constructed
8218 constants place them after the last def.
8219 (vect_get_slp_defs): Adjust.
8220 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
8221 externals for basic-block vectorization.
8223 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
8226 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
8228 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
8229 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
8230 (AARCH64_TUNE_FMA_STEERING): Likewise.
8231 * config/aarch64/aarch64-cores.def: Set
8232 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
8233 FMUL/FMADD instructions.
8234 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
8235 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
8236 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
8237 * config/aarch64/cortex-a57-fma-steering.h: New file.
8238 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8240 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
8242 * gensupport.c (std_preds): Add missing codes to address_operand entry.
8244 2015-04-28 Richard Biener <rguenther@suse.de>
8246 PR tree-optimization/65851
8247 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
8248 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
8249 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
8250 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
8251 (ccp_visit_phi_node): Adjust.
8252 (evaluate_stmt): For simplifications to SSA names return its
8253 lattice value if that isn't VARYING. Return immediately when
8254 simplified to a constant.
8255 (visit_assignment): Adjust.
8256 (ccp_visit_stmt): Likewise.
8258 2015-04-28 Tom de Vries <tom@codesourcery.com>
8260 PR tree-optimization/65818
8261 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
8264 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8266 * calls.c (save_fixed_argument_area): Don't check
8267 ARGS_GROW_DOWNWARD with the preprocessor.
8268 (restore_fixed_argument_area): Likewise.
8269 (mem_overlaps_already_clobbered_arg_p): Likewise.
8270 (check_sibcall_argument_overlap): Likewise.
8271 (expand_call): Likewise.
8272 (emit_library_call_value_1): Likewise.
8273 (store_one_arg): Likewise.
8274 * function.c (assign_parms): Likewise.
8275 (locate_and_pad_parm): Likewise.
8276 (pad_to_arg_alignment): Likewise.
8277 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
8279 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8281 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
8282 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
8283 * calls.c (save_fixed_argument_area): Don't chekc if
8284 ARGS_GROW_DOWNWARD is defined.
8285 (restore_fixed_argument_area): Likewise.
8286 (mem_overlaps_already_clobbered_arg_p): Likewise.
8287 (check_sibcall_argument_overlap): Likewise.
8288 (expand_call): Likewise.
8289 (emit_library_call_value_1): Likewise.
8290 (store_one_arg): Likewise.
8291 * function.c (assign_parms): Likewise.
8292 (locate_and_pad_parm): Likewise.
8293 (pad_to_arg_alignment): Likewise.
8294 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
8296 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8298 * defaults.h (gen_epilogue): New function.
8299 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
8301 * cfgrtl.c (cfg_layout_finalize): Likewise.
8302 * df-scan.c: Likewise.
8303 * function.c (thread_prologue_and_epilogue_insns): Likewise.
8304 (reposition_prologue_and_epilogue_notes): Likewise.
8305 * reorg.c (find_end_label): Likewise.
8306 * toplev.c: Likewise.
8308 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8310 * bb-reorder.c (HAVE_return): Don't check if its undefined.
8311 * defaults.h (gen_simple_return): New function.
8312 (gen_simple_return): Likewise.
8313 (HAVE_return): Add default definition to false.
8314 (HAVE_simple_return): Likewise.
8315 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
8316 HAVE_return and HAVE_simple_return are defined.
8317 * function.c (gen_return_pattern): Likewise.
8318 (convert_jumps_to_returns): Likewise.
8319 (thread_prologue_and_epilogue_insns): Likewise.
8320 * reorg.c (find_end_label): Likewise.
8321 (dbr_schedule): Likewise.
8322 * shrink-wrap.c: Likewise.
8323 * shrink-wrap.h: Likewise.
8325 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8327 * defaults.h (EPILOGUE_USES): Add default definition of false.
8328 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
8329 * resource.c (init_resource_info): Likewise.
8331 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8333 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
8335 * dwarf2out.c (field_byte_offset): REmove check if
8336 PCC_BITFIELD_TYPE_MATTERS is defined.
8337 * stor-layout.c (layout_decl): Likewise.
8338 (update_alignment_for_field): Likewise.
8339 (place_field): Likewise.
8341 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8343 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
8345 * regrename.c (check_new_reg_p): Remove check if
8346 HARD_REGNO_RENAME_OK is defined.
8347 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
8349 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8351 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
8352 * cse.c (fold_rtx): Likewise.
8353 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
8354 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
8355 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
8356 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
8357 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
8358 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
8359 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
8360 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
8361 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
8362 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
8364 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
8365 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
8366 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
8367 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
8368 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
8369 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
8370 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
8371 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
8372 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
8373 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
8374 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
8375 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
8376 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
8377 * doc/tm.texi: Regenerate.
8378 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
8379 either true or false.
8381 2015-04-27 Jeff Law <law@redhat.com>
8383 PR tree-optimization/65217
8384 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
8385 of them has a single use, make sure it is the LHS of the implied
8388 2015-04-28 Alan Modra <amodra@gmail.com>
8391 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
8392 (offsettable_ok_by_alignment): Use minimum of decl and toc
8393 pointer alignment. Replace dead code with assertion.
8394 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
8395 case if size exceeds toc pointer alignment.
8396 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
8397 (rs6000_emit_move): Likewise.
8398 * configure.ac: Add linker toc pointer alignment check.
8399 * configure: Regenerate.
8400 * config.in: Regenerate.
8402 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
8404 * config.gcc: Add h8300-*-linux.
8405 * config/h8300/linux.h: New.
8406 * config/h8300/t-linux: New.
8407 * config/h8300/h8300.c (h8300_option_override): Normal mode
8408 is not supported for h8300-*-linux.
8409 (h8300_file_start): Target priority change.
8410 (get_shift_alg): Likewise.
8411 (h8300_shift_need_scratch_p): Likewise.
8412 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
8413 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
8415 2015-04-27 Caroline Tice <cmtice@google.com>
8417 * final.c (final_scan_insn): Output cold_function_name as function
8419 * varasm.c (cold_function_name): Make global.
8420 (assemble_start_function): Re-set cold_function_name.
8421 (assemble_end_function): Output cold partition size.
8422 * varasm.h (cold_function_name): Declare global.
8424 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
8426 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
8427 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
8429 (*movxi_internal_avx512f): Ditto.
8430 (define_split): Check for xmm16+, when splitting scalar float_extend.
8431 (*extendsfdf2_mixed): Use "v" constraint.
8432 (define_split): Check for xmm16+, when splitting scalar float_truncate.
8433 (*truncdfsf_fast_sse): Use "v" constraint.
8434 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
8435 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
8436 (define_peephole2): Check for xmm16+, when converting scalar
8438 (define_peephole2): Check for xmm16+, when converting scalar
8440 (*fop_<mode>_comm_mixed): Use "v" constraint.
8441 (*fop_<mode>_comm_sse): Ditto.
8442 (*fop_<mode>_1_mixed): Ditto.
8443 (*sqrt<mode>2_sse): Ditto.
8444 (*ieee_s<ieee_maxmin><mode>3): Ditto.
8446 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8448 * combine.c (simplify_if_then_else): Use std::swap instead
8449 of manually swapping.
8450 (known_cond): Likewise.
8451 (simplify_comparison): Likewise.
8453 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
8456 * config/rs6000/htm.md: Remove all define_expands.
8457 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
8458 UNSPECV_HTM_TABORTWCI): Remove.
8459 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
8460 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
8461 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
8462 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
8463 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
8464 tabortwci_internal): Remove define_insns.
8465 (tabort<wd>c, tabort<wd>ci): New define_insns.
8466 (tabort): Use gpc_reg_operand.
8467 (tcheck): Remove operand.
8468 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
8469 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
8471 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
8472 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
8473 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
8474 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
8475 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
8476 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
8477 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
8478 (tcheck): Remove builtin argument.
8479 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
8481 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
8482 tabortdc and tabortdci builtins when not in 64-bit mode.
8483 Modify code to handle the loss of the HTM define_expands.
8484 Emit code to copy the CR register to TARGET.
8485 (htm_init_builtins): Modify code to handle the loss of the HTM
8487 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
8488 (RS6000_BTC_64BIT): Likewise.
8489 (RS6000_BTC_CR): New macro.
8490 * doc/extend.texi: Update documentation for htm builtins.
8492 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8494 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
8495 of manually swapping.
8496 (simplify_associative_operation): Likewise.
8497 (simplify_binary_operation): Likewise.
8498 (simplify_plus_minus): Likewise.
8499 (simplify_relational_operation): Likewise.
8500 (simplify_ternary_operation): Likewise.
8502 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
8504 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
8505 (xs_hi_nonmemory_operand): Remove error.
8506 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
8507 general_operand rather than xs_hi_general_operand.
8509 2015-04-27 Richard Biener <rguenther@suse.de>
8511 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
8512 (record_equivalences_from_stmt): Valueize rhs.
8513 (record_equality): Canonicalize x and y order via
8514 tree_swap_operands_p. Do not swap operands for same loop depth.
8516 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
8520 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
8521 Add hint how to use own spec file.
8523 2015-04-27 Jakub Jelinek <jakub@redhat.com>
8525 PR tree-optimization/65875
8526 * tree-vrp.c (update_value_range): If in is_new case setting
8527 old_vr to VR_VARYING, also set new_vr to it. Remove
8528 old_vr->type == VR_VARYING test.
8529 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
8530 SSA_PROP_INTERESTING if update_value_range returned true,
8531 but new range is VR_VARYING.
8533 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
8535 * combine.c (sign_extend_short_imm): New.
8536 (set_nonzero_bits_and_sign_copies): Use above new function for sign
8537 extension of src short immediate.
8538 (reg_nonzero_bits_for_combine): Likewise for tem.
8540 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
8542 * stor-layout.c (self_referential_component_ref_p): New predicate.
8543 (copy_self_referential_tree_r): Use it.
8544 (self_referential_size): Punt for simple operations directly involving
8545 self-referential component references.
8546 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
8548 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
8550 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
8552 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
8554 * vec.h (vec): Make splice arguments const. Update definitions
8557 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
8559 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
8562 2015-04-26 Tom de Vries <tom@codesourcery.com>
8564 PR tree-optimization/65826
8565 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
8567 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
8569 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
8570 (*madd3<mode>): Ditto.
8571 (*msub4<mode>): Ditto.
8572 (*msub3<mode>): Ditto.
8573 (*nmadd4<mode>): Ditto.
8574 (*nmadd3<mode>): Ditto.
8575 (*nmadd4<mode>_fastmath): Ditto.
8576 (*nmadd3<mode>_fastmath): Ditto.
8577 (*nmsub4<mode>): Ditto.
8578 (*nmsub3<mode>): Ditto.
8579 (*nmsub4<mode>_fastmath): Ditto.
8580 (*nmsub3<mode>_fastmath): Ditto.
8582 2015-04-24 Jason Merrill <jason@redhat.com>
8585 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
8586 down when building TYPE_CANONICAL.
8587 (build_pointer_type_for_mode): Likewise.
8589 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
8591 * genrecog.c (validate_pattern): Check matching constraint refers
8592 to a lower numbered operand.
8594 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
8597 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
8598 save to independent variables use the Save attribute. This will
8599 allow these options to be modified with the #pragma/attribute
8601 (-mallow-movmisalign): Likewise.
8602 (-mallow-df-permute): Likewise.
8603 (-msched-groups): Likewise.
8604 (-malways-hint): Likewise.
8605 (-malign-branch-targets): Likewise.
8606 (-mvectorize-builtins): Likewise.
8607 (-msave-toc-indirect): Likewise.
8609 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
8610 can be set via the #pragma/attribute target support.
8611 (rs6000_opt_vars): Likewise.
8612 (rs6000_inner_target_options): If VSX was set, also set
8613 -mno-avoid-indexed-addresses.
8615 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8617 * config/arm/iterators.md (shiftable_ops): Rename to...
8618 (SHIFTABLE_OPS): ... This. Update use in comments.
8619 (ior_xor): Rename to...
8620 (IOR_XOR): ... This.
8621 (vqh_ops): Rename to...
8622 (VQH_OPS): ... This.
8623 (vqhs_ops): Rename to...
8624 (VQHS_OPS): ... This.
8625 (rshifts): Rename to...
8626 (RSHIFTS): ... This.
8627 (returns): Rename to...
8628 (RETURNS): ... This.
8629 * config/arm/arm.md: Update uses of the above.
8630 * config/arm/neon.md: Likewise.
8632 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8634 * config.host (case ${host}): Add aarch64*-*-linux case.
8635 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
8636 fields to all the cores.
8637 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
8638 Add MCPU_MTUNE_NATIVE_SPECS.
8639 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
8640 field to all extensions.
8641 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
8642 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
8643 Adjust definition of AARCH64_OPT_EXTENSION.
8644 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
8645 (MCPU_MTUNE_NATIVE_SPECS): Define.
8646 * config/aarch64/driver-aarch64.c: New file.
8647 * config/aarch64/x-arch64: New file.
8648 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
8651 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
8652 Wei Mi <wmi@google.com>
8654 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
8655 * config/i386/i386.c (extract_base_offset_in_addr): New function.
8656 (ix86_operands_ok_for_move_multiple): Ditto.
8657 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
8658 (movlpd/movhpd to movupd peephole2): Ditto.
8660 2015-04-24 Marek Polacek <polacek@redhat.com>
8663 * input.h (from_macro_expansion_at): Define.
8666 * doc/invoke.texi: Update description of -Wlogical-op.
8668 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
8670 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
8671 ternary operator in fprintf and harmonize spacing.
8673 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
8675 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
8676 Mark operand1 commutative.
8678 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
8680 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
8681 input operands in memory.
8682 (*vec_concatv2si_sse4_1): Ditto.
8683 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
8684 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
8686 (vec_extract_hi_v32hi): Ditto.
8687 (vec_extract_hi_v64hi): Ditto.
8688 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
8690 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
8691 Steven Bosscher <steven@gcc.gnu.org>
8693 PR rtl-optimization/34503
8694 * cprop.c (cprop_reg_p): New.
8695 (hash_scan_set): Use above function to check if register can be
8697 (find_avail_set): Return up to two sets, one whose source is a
8698 register and one whose source is a constant. Sets are returned in an
8699 array passed as parameter rather than as a return value.
8700 (cprop_insn): Use a do while loop rather than a goto. Try each of the
8701 sets returned by find_avail_set, starting with the one whose source is
8702 a constant. Use cprop_reg_p to check if register can be propagated.
8703 (do_local_cprop): Use cprop_reg_p to check if register can be
8705 (implicit_set_cond_p): Likewise.
8707 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
8709 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
8710 (sem_function::equals): IGNORED_NODES parameter is now unused;
8711 update call of equals_private.
8712 (sem_function::equals_private): Do not call equals_wpa; skip
8713 gimple body matching if there is no body.
8714 (sem_function::init): Add logic to hash tthunk info.
8715 (sem_function::parse): Also parse thunks.
8716 * ipa-icf.h (equals_private): Update declaration.
8718 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8720 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
8721 asterisk from name so this can be generated directly.
8722 (*altivec_stvx_<mode>_internal): Likewise.
8723 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
8724 that this is never called during or after reload/lra.
8725 (rs6000_frame_related): Remove split_reg
8726 argument and logic that references it.
8727 (emit_frame_save): Remove last parameter from call to
8728 rs6000_frame_related.
8729 (rs6000_emit_prologue): Remove last parameter from eight calls to
8730 rs6000_frame_related. Force generation of stvx instruction for
8731 Altivec register saves. Remove split_reg handling, which is no
8733 (rs6000_emit_epilogue): Force generation of lvx instruction for
8734 Altivec register restores.
8736 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8738 * config/rs6000/rs6000.opt (mcrypto): Change option description to
8739 match category changes in ISA 2.07B.
8741 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8743 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
8745 (cmp_op, cmp_type): New code attributes.
8746 (NEON_VCMP, NEON_VACMP): New int iterators.
8747 (cmp_op_unsp): New int attribute.
8748 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
8749 (neon_vceq<mode>): Delete.
8750 (neon_vc<cmp_op><mode>_insn): New pattern.
8751 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
8752 (neon_vcgeu<mode>): Delete.
8753 (neon_vcle<mode>): Likewise.
8754 (neon_vclt<mode>: Likewise.
8755 (neon_vcage<mode>): Likewise.
8756 (neon_vcagt<mode>): Likewise.
8757 (neon_vca<cmp_op><mode>): New define_expand.
8758 (neon_vca<cmp_op><mode>_insn): New pattern.
8759 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
8761 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
8763 * tree.h (attribute_value_equal): Declare.
8764 * tree.c (attribute_value_equal): Export.
8766 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
8768 * ipa-icf.c (sem_item::compare_attributes): New function.
8769 (sem_item::compare_referenced_symbol_properties): Compare variable
8771 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
8772 (sem_function::param_used_p): New function.
8773 (sem_function::equals_wpa): Fix attribute comparsion; match
8774 parameter type codes; do not compare paremter flags when
8775 they are not used; compare edge flags; compare indirect calls.
8776 (sem_item::update_hash_by_addr_refs): Hash reference type.
8777 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
8778 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
8780 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
8781 * ipa-icf.h (compare_attributes, param_used_p): Declare.
8783 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
8785 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
8787 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
8788 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
8789 (sem_item::compare_referenced_symbol_properties): New.
8790 (sem_item::hash_referenced_symbol_properties): New.
8791 (sem_item::compare_cgraph_references): Rename to ...
8792 (sem_item::compare_symbol_references): ... this one; use
8793 compare_referenced_symbol_properties.
8794 (sem_function::equals_wpa): Do not compare
8795 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
8796 DECL_IS_OPERATOR_NEW; compare pointer sizes.
8797 (sem_item::update_hash_by_addr_refs): Call
8798 hash_referenced_symbol_properties.
8799 (sem_item::update_hash_by_local_refs): Cleanup.
8800 (sem_function::merge): Do not mix up symbol properties.
8801 (sem_variable::equals_wpa): Use compare_symbol_references.
8802 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
8803 (sem_item::hash_referenced_symbol_properties): New.
8804 (sem_item::compare_symbol_references): New.
8805 (sem_item::compare_cgraph_references): Remove.
8807 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
8810 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
8813 2015-04-23 Nick Clifton <nickc@redhat.com>
8815 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
8816 ATTRIBUTE_UNUSED to x parameter.
8817 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
8819 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8821 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
8822 TARGET_CRYPTO to TARGET_P8_VECTOR>
8823 (crypto_vpermxor_<mode>): Likewise.
8824 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
8825 (BU_CRYPTO_3A): Likewise.
8826 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
8827 (BU_CRYPTO_OVERLOAD_3A): New #define.
8828 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
8829 (VPMSUMH): Likewise.
8830 (VPMSUMW): Likewise.
8831 (VPMSUMD): Likewise.
8832 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
8833 (VPERMXOR_V4SI): Likewise.
8834 (VPERMXOR_V8HI): Likewise.
8835 (VPERMXOR_V16QI): Likewise.
8836 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
8837 BU_CRYPTO_OVERLOAD_2A.
8838 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
8839 BU_CRYPTO_OVERLOAD_3A.
8840 * config/rs6000/rs6000.opt (mcrypto): Change description of
8843 2015-04-23 Richard Biener <rguenther@suse.de>
8845 * passes.def: Remove copy propagation passes run directly after CCP.
8846 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
8848 (ccp_visit_phi_node): Rework to handle first executable edge
8851 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
8853 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
8854 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
8855 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
8856 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
8857 (thumb_legimitimize_reload_address): Remove.
8858 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
8860 (thumb_legimitimize_reload_address): Remove.
8862 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8864 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
8866 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8868 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
8870 (store_multiple): Likewise.
8872 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8874 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
8875 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
8876 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
8877 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
8878 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
8879 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
8880 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
8881 Specify issue_rate value.
8882 (arm_issue_rate): Look up issue rate from tuning structs. Remove
8883 large switch statement.
8884 (arm_marvell_pj4_tune): New struct.
8885 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
8888 2015-04-23 Richard Biener <rguenther@suse.de>
8890 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
8891 (vect_find_last_store_in_slp_instance): Rename to ...
8892 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
8893 (vect_analyze_slp_cost_1): Use vector_load for constant defs
8894 and vec_construct for external defs when estimating prologue cost.
8895 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
8896 Compute costs here only when vectorizing loops.
8897 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
8898 have been determined.
8899 (vect_schedule_slp_instance): Simplify vectorized code placement
8900 and prepare for in-BB external defs.
8901 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
8902 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
8903 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
8905 (vect_model_load_cost): Likewise.
8906 (vectorizable_store): Instead add it here.
8907 (vectorizable_load): Likewise.
8908 (vect_is_simple_use): Dump def type textually.
8910 2015-04-23 Richard Biener <rguenther@suse.de>
8912 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
8913 * cfgloop.c (verify_loop_structure): Verify the root loop node.
8914 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
8915 instead of get_eh_region_from_lp_number.
8916 * loop-init.c (fix_loop_structure): If we removed a loop, reset
8919 2015-04-23 Anton Blanchard <anton@samba.org>
8921 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
8922 need for -mprofile-kernel to save LR to stack.
8924 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8926 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
8928 (insn_is_swappable_p): Return 1 for a convert from double to
8929 single precision when all of its uses are splats of BE element
8932 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
8934 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
8936 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8939 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
8940 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
8941 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
8943 (rs6000_builtin_mask_for_load): Return 0 for targets with
8944 efficient unaligned VSX accesses so that the vectorizer will use
8945 direct unaligned loads.
8946 (rs6000_builtin_support_vector_misalignment): Always return true
8947 for targets with efficient unaligned VSX accesses.
8948 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
8949 stores on targets with efficient unaligned VSX accesses is almost
8950 always the same as the cost of an aligned load or store, so model
8952 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
8953 unaligned vectors if we have efficient unaligned VSX accesses.
8954 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
8955 undocumented option.
8957 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8960 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
8962 * config.gcc (LIBC_MUSL): New tm_defines macro.
8963 * config/linux.h (OPTION_MUSL): Define.
8964 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
8965 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
8966 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
8968 * config/linux.opt (mmusl): New option.
8969 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
8970 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
8972 * configure: Regenerate.
8974 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
8976 * config.gcc (LIBC_MUSL): New tm_defines macro.
8977 * config/linux.h (OPTION_MUSL): Define.
8978 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
8979 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
8980 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
8982 * config/linux.opt (mmusl): New option.
8983 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
8984 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
8986 * configure: Regenerate.
8988 2015-04-22 Yury Gribov <y.gribov@samsung.com>
8990 * doc/invoke.texi (-fsanitize-sections): Update description.
8991 * asan.c (set_sanitized_sections): Parse incoming arg.
8992 (section_sanitized_p): Support wildcards.
8994 2015-04-22 Tom de Vries <tom@codesourcery.com>
8996 PR tree-optimization/65823
8997 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
8998 equality between ap_copy and ap.
9000 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9003 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
9005 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9008 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
9010 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9013 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
9014 remove already contained t-files.
9016 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9018 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
9019 Remove unneeded forward declarations.
9020 (suitable_for_tail_call_opt_p): Commentary typo fix.
9022 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9024 * varasm.c (emit_bss): Remove redundant guard.
9026 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9028 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
9030 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9032 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
9034 2015-04-22 Hale Wang <hale.wang@arm.com>
9035 Terry Guo <terry.guo@arm.com>
9037 PR rtl-optimization/64818
9038 * combine.c (can_combine_p): Don't combine user-specified
9039 register if it is in an asm input.
9041 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
9044 * passes.def (early_optimizations): Add pass_dse.
9046 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9048 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
9049 * reorg.c (redundant_insn): Remove ifdef
9050 INSN_REFERENCES_ARE_DELAYED.
9051 * resource.c (mark_referenced_resources): Likewise.
9053 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9055 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
9056 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
9057 * resource.c (mark_set_resources): Likewise.
9059 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9061 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
9062 * cfgcleanup.c (flow_find_cross_jump): Likewise.
9063 (flow_find_head_matching_sequence): Likewise.
9064 (try_head_merge_bb): Likewise.
9065 * combine.c (can_combine_p): Likewise.
9066 (try_combine): Likewise.
9067 (distribute_notes): Likewise.
9068 * df-problems.c (can_move_insns_across): Likewise.
9069 * final.c (final): Likewise.
9070 * gcse.c (insert_insn_end_basic_block): Likewise.
9071 * ira.c (find_moveable_pseudos): Likewise.
9072 * reorg.c (try_merge_delay_insns): Likewise.
9073 (fill_simple_delay_slots): Likewise.
9074 (fill_slots_from_thread): Likewise.
9075 * sched-deps.c (sched_analyze_2): Likewise.
9077 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9079 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
9080 PIC_OFFSET_TABLE_REGNUM.
9082 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9084 * alias.c (init_alias_target): Remove ifdef
9085 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
9086 * df-scan.c (df_insn_refs_collect): Likewise.
9087 (df_get_regular_block_artificial_uses): Likewise.
9088 (df_get_eh_block_artificial_uses): Likewise.
9089 (df_get_entry_block_def_set): Likewise.
9090 (df_get_exit_block_use_set): Likewise.
9091 * emit-rtl.c (gen_rtx_REG): Likewise.
9092 * ira.c (ira_setup_eliminable_regset): Likewise.
9093 * reginfo.c (init_reg_sets_1): Likewise.
9094 * regrename.c (rename_chains): Likewise.
9095 * reload1.c (reload): Likewise.
9096 (eliminate_regs_in_insn): Likewise.
9097 * resource.c (mark_referenced_resources): Likewise.
9098 (init_resource_info): Likewise.
9100 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9102 * defaults.h (MASK_RETURN_ADDR): New definition.
9103 * except.c (expand_builtin_extract_return_addr): Remove ifdef
9106 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9108 * defaults.h (RETURN_ADDR_OFFSET): New definition.
9109 * except.c (expand_builtin_extract_return_addr): Remove ifdef
9111 (expand_builtin_frob_return_addr): Likewise.
9113 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9115 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
9116 (try_redirect_by_replacing_jump): Likewise.
9117 (rtl_tidy_fallthru_edge): Likewise.
9118 * combine.c (insn_a_feeds_b): Likewise.
9119 (find_split_point): Likewise.
9120 (simplify_set): Likewise.
9121 * cprop.c (cprop_jump): Likewise.
9122 * cse.c (cse_extended_basic_block): Likewise.
9123 * df-problems.c (can_move_insns_across): Likewise.
9124 * function.c (emit_use_return_register_into_block): Likewise.
9125 * haifa-sched.c (sched_init): Likewise.
9126 * ira.c (find_moveable_pseudos): Likewise.
9127 * loop-invariant.c (find_invariant_insn): Likewise.
9128 * lra-constraints.c (curr_insn_transform): Likewise.
9129 * postreload.c (reload_combine_recognize_const_pattern):
9131 * reload.c (find_reloads): Likewise.
9132 * reorg.c (delete_scheduled_jump): Likewise.
9133 (steal_delay_list_from_target): Likewise.
9134 (steal_delay_list_from_fallthrough): Likewise.
9135 (redundant_insn): Likewise.
9136 (fill_simple_delay_slots): Likewise.
9137 (fill_slots_from_thread): Likewise.
9138 (delete_computation): Likewise.
9139 * sched-rgn.c (add_branch_dependences): Likewise.
9141 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9143 * genconfig.c (main): Always define HAVE_cc0.
9144 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
9146 * cfgcleanup.c (flow_find_cross_jump): Likewise.
9147 (flow_find_head_matching_sequence): Likewise.
9148 (try_head_merge_bb): Likewise.
9149 * cfgrtl.c (rtl_merge_blocks): Likewise.
9150 (try_redirect_by_replacing_jump): Likewise.
9151 (rtl_tidy_fallthru_edge): Likewise.
9152 * combine.c (do_SUBST_MODE): Likewise.
9153 (insn_a_feeds_b): Likewise.
9154 (combine_instructions): Likewise.
9155 (can_combine_p): Likewise.
9156 (try_combine): Likewise.
9157 (find_split_point): Likewise.
9159 (simplify_set): Likewise.
9160 (distribute_notes): Likewise.
9161 * cprop.c (cprop_jump): Likewise.
9162 * cse.c (cse_extended_basic_block): Likewise.
9163 * df-problems.c (can_move_insns_across): Likewise.
9164 * final.c (final): Likewise.
9165 (final_scan_insn): Likewise.
9166 * function.c (emit_use_return_register_into_block): Likewise.
9167 * gcse.c (insert_insn_end_basic_block): Likewise.
9168 * haifa-sched.c (sched_init): Likewise.
9169 * ira.c (find_moveable_pseudos): Likewise.
9170 * loop-invariant.c (find_invariant_insn): Likewise.
9171 * lra-constraints.c (curr_insn_transform): Likewise.
9172 * optabs.c (prepare_cmp_insn): Likewise.
9173 * postreload.c (reload_combine_recognize_const_pattern):
9175 * reload.c (find_reloads): Likewise.
9176 (find_reloads_address_1): Likewise.
9177 * reorg.c (delete_scheduled_jump): Likewise.
9178 (steal_delay_list_from_target): Likewise.
9179 (steal_delay_list_from_fallthrough): Likewise.
9180 (try_merge_delay_insns): Likewise.
9181 (redundant_insn): Likewise.
9182 (fill_simple_delay_slots): Likewise.
9183 (fill_slots_from_thread): Likewise.
9184 (delete_computation): Likewise.
9185 (relax_delay_slots): Likewise.
9186 * sched-deps.c (sched_analyze_2): Likewise.
9187 * sched-rgn.c (add_branch_dependences): Likewise.
9189 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9191 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
9192 that is trivially ded on non cc0 targets.
9193 (simplify_set): Likewise.
9194 (mark_used_regs_combine): Likewise.
9195 * cse.c (new_basic_block): Likewise.
9196 (fold_rtx): Likewise.
9197 (cse_insn): Likewise.
9198 (cse_extended_basic_block): Likewise.
9199 (set_live_p): Likewise.
9200 * rtlanal.c (canonicalize_condition): Likewise.
9201 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9203 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9205 * conditions.h: Define macros even if HAVE_cc0 is undefined.
9206 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
9207 * final.c: Likewise.
9209 * recog.c: Likewise.
9210 * recog.h: Declare functions even when HAVE_cc0 is undefined.
9211 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
9213 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9215 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
9216 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
9217 * builtins.c (expand_builtin): Remove check if
9218 EH_RETURN_DATA_REGNO is defined.
9219 * df-scan.c (df_bb_refs_collect): Likewise.
9220 (df_get_exit_block_use_set): Likewise.
9221 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
9222 * ira-lives.c (process_bb_node_lives): Likewise.
9223 * lra-lives.c (process_bb_lives): Likewise.
9225 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
9227 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
9228 FIRST_PSEUDO_REG): New.
9229 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
9230 (ARG_POINTER_REGNUM): Define to ARGP_REG.
9231 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
9232 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
9233 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
9234 (FIRST_INT_REG): New.
9235 (LAST_INT_REG): New.
9236 (FIRST_*_REG): Define using *_REG.
9237 (LAST_*_REG): Ditto.
9238 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
9239 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
9240 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
9242 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9244 * expmed.c: (synth_mult): Only assume overlapping
9245 shift with previous steps in alg_sub_t_m2 case.
9247 2015-04-21 Richard Biener <rguenther@suse.de>
9249 PR tree-optimization/65650
9250 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
9251 transitions involving copies.
9252 (set_lattice_value): Adjust for copy lattice state.
9253 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
9254 if that doesn't dominate the merge point.
9255 (bit_value_unop): Adjust what we treat as varying mask.
9256 (bit_value_binop): Likewise.
9257 (bit_value_assume_aligned): Likewise.
9258 (evaluate_stmt): When we simplified to a SSA name record a copy
9259 instead of dropping to varying.
9260 (visit_assignment): Simplify.
9262 * gimple-match.h (gimple_simplify): Add another callback.
9263 * gimple-fold.c (fold_stmt_1): Adjust caller.
9264 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
9265 for the 2nd callback.
9266 * gimple-match-head.c (gimple_simplify): Add a callback that is
9267 used to valueize the stmt operands and use it that way.
9269 2015-04-21 Richard Biener <rguenther@suse.de>
9271 PR tree-optimization/65788
9272 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
9274 2015-04-21 Richard Biener <rguenther@suse.de>
9276 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
9277 vec_construct cost by vec_stmt_cost.
9279 2015-04-21 Richard Biener <rguenther@suse.de>
9281 * cfghooks.h (create_basic_block): Replace with two overloads
9283 (split_block): Likewise.
9284 * cfghooks.c (split_block): Rename to ...
9285 (split_block_1): ... this.
9286 (split_block): Add two type-safe overloads for RTL and GIMPLE.
9287 (split_block_after_labels): Call split_block_1.
9288 (create_basic_block): Rename to ...
9289 (create_basic_block_1): ... this.
9290 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
9291 (create_empty_bb): Call create_basic_block_1.
9292 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
9293 split_block_after_labels.
9294 * omp-low.c (expand_parallel_call): Likewise.
9295 (expand_omp_target): Likewise.
9296 (simd_clone_adjust): Likewise.
9297 * tree-chkp.c (chkp_get_entry_block): Likewise.
9298 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
9299 create_basic_block overload.
9300 (cgraph_node::expand_thunk): Likewise.
9301 * tree-cfg.c (make_blocks): Likewise.
9302 (handle_abnormal_edges): Likewise.
9303 * tree-inline.c (copy_bb): Likewise.
9305 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9307 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
9309 (*xor_one_cmplsidi3_ze): Likewise.
9311 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
9313 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
9314 use df_remove_problem rather than manually removing problems, leaving
9315 holes in df->problems_in_order[].
9317 2015-04-21 Tom de Vries <tom@codesourcery.com>
9319 PR tree-optimization/65802
9320 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
9322 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9324 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
9326 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
9327 at '.'. Assert that there's enough space for everything.
9329 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
9331 PR tree-optimization/64950
9333 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
9336 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
9339 2015-04-20 Shiva Chen <shiva0217@gmail.com>
9341 PR rtl-optimization/64916
9342 * cfgcleanup.c (values_equal_p): New function.
9343 (can_replace_by): Use it.
9345 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
9348 * doc/invoke.texi ([-Wnarrowing]): Update.
9350 2015-04-20 Jeff Law <law@redhat.com>
9352 PR tree-optimization/65658
9353 * tree-ssa-threadupdate.c (redirection_block_p): Remove
9354 redundant test for GIMPLE_ASSIGN in last change.
9356 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
9358 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
9359 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
9360 (legitimize_tls_address): Ditto.
9361 (ix86_expand_move): Ditto.
9362 (ix86_expand_binary_operator): Remove reload_in_progress checks.
9363 (ix86_expand_unary_operator): Ditto.
9364 * config/i386/predicates.md (index_register_operand): Ditto.
9366 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
9368 * reorg.c (try_merge_delay_insns): Improve correctness checking
9369 for targets with multiple delay slots.
9371 2015-04-20 Jeff Law <law@redhat.com>
9373 PR tree-optimization/65658
9374 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
9377 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
9379 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
9380 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
9383 2015-04-20 Jakub Jelinek <jakub@redhat.com>
9386 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
9388 2015-04-20 Richard Biener <rguenther@suse.de>
9390 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
9391 * gimple-fold.c (gimple_build_valueize): New function.
9392 (gimple_build): Always use gimple_build_valueize as valueize hook.
9394 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
9397 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
9398 and overwrite variable parts if <= 1/2 the elements are variable.
9400 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
9402 PR rtl-optimization/65805
9403 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
9404 Don't use difference of offset and previous offset if
9405 update_sp_offset is non-zero.
9406 (eliminate_regs_in_insn): Ditto.
9407 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
9408 lra_eliminate_regs_1 call.
9409 * lra-constraints.c (get_equiv_with_elimination): Ditto.
9411 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
9413 * hash-table.h: Remove version of hash_table that stored value_type *.
9414 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
9415 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
9416 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
9417 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
9418 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
9419 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
9420 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
9421 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
9422 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
9423 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
9424 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
9425 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
9426 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
9427 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
9428 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
9429 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
9431 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9432 Jakub Jelinek <jakub@redhat.com>
9435 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
9436 subsequent SH_NONE operand does not overwrite an existing *special
9438 (adjust_extract): Handle case where a vec_extract operation is
9439 wrapped in a PARALLEL.
9441 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
9444 * config/i386/i386.c (ix86_binds_local_p): Define only if
9445 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
9447 2015-04-17 Jeff Law <law@redhat.com>
9449 PR tree-optimization/47679
9450 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
9451 * tree-ssa-scopedtables.c: New file.
9452 * tree-ssa-scopedtables.h: New file.
9453 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
9454 (const_and_copies): Change name/type.
9455 (record_const_or_copy): Move into tree-ssa-scopedtables.c
9456 (record_const_or_copy_1): Similarly.
9457 (restore_vars_to_original_value): Similarly.
9458 (pass_dominator::execute): Create and destroy const_and_copies table.
9459 (thread_across_edge): Update passing of const_and_copies.
9460 (record_temporary_equivalence): Use method calls rather than
9461 manipulating const_and_copies directly.
9462 (record_equality, cprop_into_successor_phis): Similarly.
9463 (dom_opt_dom_walker::before_dom_children): Similarly.
9464 (dom_opt_dom_walker::after_dom_children): Similarly.
9465 (eliminate_redundant_computations): Similarly.
9466 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
9467 (record_temporary_equivalence): Likewise.
9468 (invalidate_equivalences): Likewise.
9469 (record_temporary_equivalences_from_phis): Update due to type
9470 change of const_and_copies. Use method calls rather than
9471 manipulating the stack directly.
9472 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
9473 (thread_through_normal_block, thread_across_edge): Likewise.
9474 (thread_across_edge): Likewise.
9475 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
9476 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
9478 (identify_jump_threads): Update due to type change of equiv_stack.
9479 (finalize_jump_threads): Delete the equiv_stack when complete.
9481 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
9483 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
9484 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
9485 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
9487 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
9490 * config.gcc: Exit with a comment when we do not have a major version
9491 number for the FreeBSD target.
9493 2015-04-17 Jakub Jelinek <jakub@redhat.com>
9496 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
9497 maybe_allows_mem bitfields.
9498 (maybe_allows_none_start, maybe_allows_none_end,
9499 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
9500 maybe_allows_mem_end): New variables.
9501 (compute_maybe_allows): New function.
9502 (add_constraint): Use it to initialize maybe_allows_reg and
9503 maybe_allows_mem fields.
9504 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
9505 is_address constraints such that those that allow neither mem nor
9506 reg come first, then those that only allow reg but not mem, then
9507 those that only allow mem but not reg, then the rest.
9508 (write_allows_reg_mem_function): New function.
9509 (write_tm_preds_h): Call it.
9510 * stmt.c (parse_output_constraint, parse_input_constraint): Use
9511 the generated insn_extra_constraint_allows_reg_mem function
9512 instead of always setting *allows_reg = true; *allows_mem = true;
9513 for unknown extra constraints.
9515 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
9518 * output.h (default_binds_local_p_3): New.
9519 * varasm.c (default_binds_local_p_3): Make it public. Take an
9520 argument to indicate if common symbol may be local. If common
9521 symbol may be local, treat non-external variable as defined
9523 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
9524 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
9525 * config/i386/i386.c (ix86_binds_local_p): New.
9526 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
9529 2015-04-17 Jakub Jelinek <jakub@redhat.com>
9532 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
9533 trying mem_loc_descriptor on XEXP (rtl, 0).
9535 2015-04-17 Martin Liska <mliska@suse.cz>
9537 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
9538 Release symbol_compare_collection.
9539 * ipa-reference.c: Add TODO that a vector should be released.
9541 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
9544 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
9545 to new AVR-LibC file layout (bug #44574).
9546 (*avrlibc_devicelib): Same.
9547 * config/avr/avr-mcus.def: Adjust comments.
9548 * config/avr/avr.opt (nodevicelib): Adjust help.
9550 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
9552 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
9554 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
9557 * gimplify.c (gimplify_init_constructor): Always emit a
9558 side-effecting constructor.
9560 2015-04-17 Tom de Vries <tom@codesourcery.com>
9562 PR tree-optimization/64950
9563 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
9564 in cfun->curr_properties.
9565 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
9566 if we generate an IFN_VA_ARG.
9567 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
9568 function if PROP_gimple_lva is not set in src function.
9570 2015-04-17 Tom de Vries <tom@codesourcery.com>
9571 Michael Matz <matz@suse.de>
9573 PR tree-optimization/64950
9574 * gimple-iterator.c (update_modified_stmts): Remove static.
9575 * gimple-iterator.h (update_modified_stmts): Declare.
9576 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
9577 (gimplify_va_arg_internal): New function.
9578 (gimplify_va_arg_expr): Use IFN_VA_ARG.
9579 * gimplify.h (gimplify_va_arg_internal): Declare.
9580 * internal-fn.c (expand_VA_ARG): New unreachable function.
9581 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
9582 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
9583 (expand_ifn_va_arg): New function.
9584 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
9585 (pass_stdarg::execute): Call expand_ifn_va_arg.
9586 (pass_data_lower_vaarg): New pass_data.
9587 (pass_lower_vaarg): New gimple_opt_pass.
9588 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
9589 (make_pass_lower_vaarg): New function.
9590 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
9591 properties_required field.
9592 * passes.def (all_passes): Add pass_lower_vaarg.
9593 * tree-pass.h (PROP_gimple_lva): Add define.
9594 (make_pass_lower_vaarg): Declare.
9596 2015-04-17 Tom de Vries <tom@codesourcery.com>
9598 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
9599 * calls.c (call_expr_flags): Same.
9601 2015-04-17 Tom de Vries <tom@codesourcery.com>
9603 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
9604 (pass_stdarg::execute): ... here.
9606 2015-04-17 Tom de Vries <tom@codesourcery.com>
9607 Michael Matz <matz@suse.de>
9609 * tree-cfg.c (make_blocks_1): Factor out of ...
9610 (make_blocks): ... here.
9611 (make_edges_bb): Factor out of ...
9612 (make_edges): ... here.
9613 (gimple_find_sub_bbs): New function.
9614 * tree-cfg.h (gimple_find_sub_bbs): Declare.
9616 2015-04-17 Tom de Vries <tom@codesourcery.com>
9618 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
9620 2015-04-17 Yury Gribov <y.gribov@samsung.com>
9622 * asan.c (set_sanitized_sections): New function.
9623 (section_sanitized_p): Ditto.
9624 (asan_protect_global): Optionally sanitize user-defined
9626 * asan.h (set_sanitized_sections): Declare new function.
9627 * common.opt (fsanitize-sections): New option.
9628 * doc/invoke.texi (-fsanitize-sections): Document new option.
9629 * opts-global.c (handle_common_deferred_options): Handle new
9632 2015-04-17 Jakub Jelinek <jakub@redhat.com>
9635 * dwarf2out.c (loc_list_from_tree): Return NULL
9636 for DEBUG_EXPR_DECL.
9638 2015-04-17 Christian Bruel <christian.bruel@st.com>
9640 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
9643 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
9645 * ira-color.c (setup_left_conflict_sizes_p): Do not process
9646 node itself when computing left conflict subnode size.
9648 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
9650 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
9651 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
9652 *fop_<mode>_1_sse using enabled attribute. Use
9653 register_mixssei387nonimm_operand operand 1 predicate. Change
9654 alternative 3 constraints from "x" to "v".
9656 2015-04-16 Richard Biener <rguenther@suse.de>
9658 PR tree-optimization/65774
9659 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
9660 bit-value tracking on.
9662 2015-04-16 Richard Biener <rguenther@suse.de>
9664 PR tree-optimization/64277
9665 * tree-vrp.c (check_array_ref): Fix anti-range handling,
9666 simplify upper bound handling.
9667 (search_for_addr_array): Simplify.
9668 (check_array_bounds): Handle ADDR_EXPRs here.
9669 (check_all_array_refs): Simplify.
9671 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
9673 * config/i386/i386.c (print_reg): Rewrite function.
9675 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9677 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
9678 Invert the condition.
9680 2015-04-16 Renlin Li <renlin.li@arm.com>
9682 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
9683 simplifications for UNSIGNED_FLOAT.
9685 2015-04-16 Nick Clifton <nickc@redhat.com>
9687 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
9689 (enum rl78_cpu_type): New.
9690 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
9691 (umulhi3_shift_virt): Remove m constraint from operand 1.
9692 (umulqihi3_virt): Likewise.
9693 * config/rl78/rl78.c (rl78_option_override): Add code to process
9694 -mcpu and -mmul options.
9695 (rl78_alloc_physical_registers): Add code to handle divhi and
9696 divsi valloc attributes.
9697 (set_origin): Likewise.
9698 * config/rl78/rl78.h (RL78_MUL_G14): Define.
9699 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
9700 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
9702 (ASM_SPEC): Pass -mcpu on to assembler.
9703 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
9704 (mulqi3_rl78): Likewise.
9705 (mulhi3_g13): Likewise.
9706 (mulhi3): Generate the G13 or G14 versions of the insn directly.
9708 (mulhi3_g14): Add clobbers of AX and BC.
9709 (mulsi3_g14): Likewise.
9710 (mulsi3_g13): Likewise.
9711 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
9712 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
9713 * config/rl78/rl78.opt (mmul): Initialise value to
9716 (m13, m14, mrl78): New option aliases.
9717 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
9718 (MULTILIB_DIRNAMES): Add g13 and g14.
9719 * doc/invoke.texi: Document -mcpu and -mmul options.
9721 2015-04-16 Richard Biener <rguenther@suse.de>
9723 * tree-ssa-ccp.c (likely_value): See if we have operands that
9724 are marked as never simulate again and return CONSTANT in this
9726 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
9727 not have any operands that will be simulated again as
9728 not being simulated again.
9730 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
9732 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
9733 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
9734 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
9736 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
9738 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
9739 *float<SWI48:mode><MODEF:mode>2_sse.
9740 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
9742 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
9745 2015-04-15 Tom de Vries <tom@codesourcery.com>
9748 * function.c (push_dummy_function): New function.
9749 (init_dummy_function_start): Use push_dummy_function.
9750 (pop_dummy_function): New function. Factored out of ...
9751 (expand_dummy_function_end): ... here.
9752 * function.h (push_dummy_function, pop_dummy_function): Declare.
9753 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
9755 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
9757 2015-04-15 Jeff Law <law@redhat.com>
9759 PR tree-optimization/47679
9760 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
9761 need for forward declaration in upcoming changes.
9762 (record_conditions, record_edge_info): Likewise.
9764 PR rtl-optimization/42522
9765 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
9766 SIGN_EXTRACT as a whole object rather than simplifying
9769 2015-04-15 Jakub Jelinek <jakub@redhat.com>
9772 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
9773 and GIMPLE_PREDICT use break instead of return true. For
9774 GIMPLE_EH_DISPATCH, compare dispatch region.
9776 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
9778 * doc/extend.texi (__sync Builtins): Simplify some text. Update
9779 details about the implementation. Make clear preference for
9780 __atomic builtins. Reduce possibility of future change.
9782 2015-04-15 Nick Clifton <nickc@redhat.com>
9784 * config/rx/rx.opt (mallow-string-insns): New option.
9785 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
9786 builtin if string instructions are denied.
9787 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
9788 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
9790 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
9791 * config/rx/rx.md (movstr): Enable pattern only if string
9792 instructions are allowed.
9793 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
9794 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
9795 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
9796 (MULTILIB_DIRNAMES): Add no-strings.
9797 * doc/invoke.texi: Document -mno-allow-string-insns.
9799 2015-04-15 Alan Modra <amodra@gmail.com>
9804 * calls.c (load_register_parameters): Don't load past end of
9805 mem unless suitably aligned.
9807 2015-04-15 Nick Clifton <nickc@redhat.com>
9809 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
9810 decrement instruction as being frame related.
9811 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
9813 If zero extending a function address enclose the operation in
9815 (rl78_preferred_reload_class): New function.
9816 (TARGET_PREFERRED_RELOAD_CLASS): Define.
9817 * config/rl78/rl78.md: Remove useless constraints in expanders.
9818 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
9819 (mulhi3_rl78): Likewise.
9820 (mulhi3_g13): Likewise.
9821 (mulsi3_rl78): Likewise.
9822 (es_addr): Move to before the multiply patterns.
9824 2015-04-15 Alan Modra <amodra@gmail.com>
9826 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
9827 and sequence_stack. Add seq.
9828 (seq_stack): Delete.
9829 * function.c (prepare_function_start): Don't access x_last_insn.
9830 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
9831 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
9832 * emit_rtl.c (start_sequence, push_topmost_sequence,
9833 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
9835 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
9836 remove_insn): Likewise. Simplify.
9837 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
9838 and pop_topmost_sequence.
9839 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
9841 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
9843 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
9846 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
9849 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
9851 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
9852 (LEGACY_INT_REGNO_P): Ditto.
9853 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
9854 (ANY_MASK_REG_P): Remove.
9855 (BND_REG_P): Rename from ANY_BND_REG_P.
9856 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
9857 legacy integer registers. Do not handle MMX_REG_P in a special way.
9858 Merge 64byte and 32byte SSE handling.
9860 2015-04-14 Nick Clifton <nickc@redhat.com>
9862 * expr.c (expand_assignment): Force an address offset computation
9863 into a register before changing its mode.
9864 (expand_expr_real_1): Likewise.
9866 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
9868 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
9869 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
9870 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
9871 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
9872 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
9873 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
9874 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
9875 and __aarch64_vget_lane_any.
9877 2015-04-14 Jakub Jelinek <jakub@redhat.com>
9879 PR rtl-optimization/65761
9880 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
9881 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
9883 2015-04-14 Richard Biener <rguenther@suse.de>
9885 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
9886 (graphite_can_represent_scev): Use POINTER_TYPE_P.
9888 2015-04-14 Richard Biener <rguenther@suse.de>
9890 PR tree-optimization/65758
9891 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
9893 (ccp_lattice_meet): Likewise.
9894 (bit_value_unop): Likewise.
9895 (bit_value_binop): Likewise.
9896 (bit_value_assume_aligned): Likewise.
9898 2015-04-14 Christian Bruel <christian.bruel@st.com>
9900 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
9903 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
9905 PR tree-optimization/63387
9906 * match.pd ((x unord x) | (y unord y) -> (x unord y),
9907 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
9909 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
9911 * config/i386/predicates.md (any_QIreg_operand): Rename from
9912 q_regs_operand. Do not process subregs.
9913 (QIreg_operand): Use QI_REGNO_P predicate.
9914 (ext_QIreg_operand): Ditto.
9915 (ext_register_operand): Ditto.
9916 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
9917 (AND splitters): Ditto.
9918 (AND with -65536 splitter): Add SWI48 mode for operand 0.
9919 (AND with -256 splitter): Use any_QIreg_operand predicate and
9920 SWI248 mode for operand 0.
9921 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
9923 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
9925 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
9927 * doc/plugins.texi: Rewrite first introductory paragraph.
9929 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
9931 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
9932 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
9934 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
9936 * ipa-profie.c (ipa_profile): Check number of parameters
9937 and possible polymorphic call targets before
9940 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
9942 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
9943 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
9945 2015-04-13 Richard Biener <rguenther@suse.de>
9947 PR tree-optimization/65204
9948 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
9951 2015-04-13 Richard Biener <rguenther@suse.de>
9954 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
9955 and cond_not_taken_branch_cost to 4 and 2.
9956 (bdver2_cost): Likewise.
9957 (bdver3_cost): Likewise.
9958 (bdver4_cost): Likewise.
9960 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
9962 * hash-table.h (hash_table constructor): Add mem stats.
9963 (alloc_entries): Likewise.
9965 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
9967 * ipa-cp.c (ipcp_driver): Relase prev_edge.
9968 * passes.c (execute_one_pass): Only add transform if pass has one.
9970 2015-04-12 Joseph Myers <joseph@codesourcery.com>
9972 * config/i386/i386.c (ix86_option_override_internal): Don't set
9973 -fprefetch-loop-arrays if optimizing for size.
9975 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
9976 Gerald Pfeifer <gerald@pfeifer.com>
9978 * doc/contrib.texi (Contributors): Add Martin Jambor and
9981 2015-04-12 Jakub Jelinek <jakub@redhat.com>
9983 * BASE-VER: Set to 6.0.0.
9985 PR tree-optimization/65747
9986 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
9987 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
9989 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
9991 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
9992 sentence. Improve grammar.
9994 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
9996 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
9998 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
10001 * ipa-inline-transform.c (speculation_removed): Remove static var.
10002 (check_speculations): New function.
10003 (clone_inlined_nodes): Do not check spculations.
10004 (inline_call): Call check_speculations.
10005 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
10006 consider non-invariants.
10008 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
10009 Martin Liska <mliska@suse.cz>
10012 * ipa-icf.c (sem_item::compare_cgraph_references): function and
10013 variable can not match.
10014 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
10015 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
10017 2015-04-11 Jakub Jelinek <jakub@redhat.com>
10019 PR tree-optimization/65735
10020 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
10021 Remove visited_phis argument, add visited_bbs, avoid recursing into the
10022 same bb rather than just into the same phi node.
10023 (thread_through_normal_block): Adjust caller.
10025 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
10027 * doc/contrib.texi (Contributors): Add Ira Rosen.
10029 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
10031 * gcov.c (find_source): Fix miswording in error message.
10032 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
10033 (ix86_expand_sse_comi_round): Fix typo in error message.
10035 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
10037 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
10039 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
10041 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
10043 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
10046 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
10047 Print bad_spills_num and insn_pseudos_num.
10049 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10052 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
10053 when creating +1 values for SImode.
10055 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
10058 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
10061 2015-04-10 Jakub Jelinek <jakub@redhat.com>
10062 Iain Sandoe <iain@codesourcery.com>
10065 * configure: Regenerate.
10067 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
10070 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
10072 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
10074 * doc/contrib.texi (Contributors): Add John Marino.
10076 2015-04-09 Jakub Jelinek <jakub@redhat.com>
10078 PR tree-optimization/65709
10079 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
10080 TREE_TYPE (TREE_TYPE (t)).
10082 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
10085 * lra-int.h (lra_bad_spill_regno_start): New.
10086 * lra.c (lra_bad_spill_regno_start): New.
10087 (lra): Set up lra_bad_spill_regno_start. Set up
10088 lra_constraint_new_regno_start unconditionally.
10089 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
10092 2015-04-09 Marek Polacek <polacek@redhat.com>
10093 Jakub Jelinek <jakub@redhat.com>
10095 PR middle-end/65554
10096 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
10097 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
10100 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
10102 PR rtl-optimization/65693
10103 * combine.c (is_parallel_of_n_reg_sets): Move outside of
10106 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
10109 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
10110 device specs file if "device-specs%s" didn't resolve to a path.
10112 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
10115 * config/i386/i386.c (fixup_modeless_constant): New.
10116 (ix86_expand_args_builtin): Fixup modeless constant operand.
10117 (ix86_expand_round_builtin): Ditto.
10118 (ix86_expand_special_args_builtin): Ditto.
10119 (ix86_expand_builtin): Ditto.
10121 2015-04-09 Jakub Jelinek <jakub@redhat.com>
10124 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
10125 any pow2 integer in between 2 and 0x80000000U inclusive.
10127 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
10129 PR rtl-optimization/65693
10130 * combine.c (is_parallel_of_n_reg_sets): Change first argument
10131 from an rtx_insn * to an rtx.
10132 (try_combine): Adjust both callers. Use it once more.
10134 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
10136 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
10137 (chkp_make_static_const_bounds): Search existing
10138 symbol by assembler name. Use make_decl_one_only.
10139 (chkp_get_zero_bounds_var): Remove node search which
10140 is now performed in chkp_make_static_const_bounds.
10141 (chkp_get_none_bounds_var): Likewise.
10143 2015-04-08 Michael Witten <mfwitten@gmail.com>
10145 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
10148 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
10150 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
10152 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
10154 * doc/extend.texi (__sync Builtins): Fix grammar.
10156 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
10158 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
10160 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
10162 * varasm.c (emit_local): Move definition of align.
10164 2015-04-08 Julian Brown <julian@codesourcery.com>
10166 * config/nvptx/mkoffload.c (process): Support variable mapping.
10168 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
10170 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
10172 (alpha_write_one_linkage): Correct typo.
10174 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
10176 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
10178 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
10180 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
10182 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
10184 * tree-chkp.h (chkp_insert_retbnd_call): New.
10185 * tree-chkp.c (chkp_insert_retbnd_call): New.
10186 * ipa-split.c (insert_bndret_call_after): Remove.
10187 (split_function): Use chkp_insert_retbnd_call.
10188 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
10189 bounds for instrumented functions.
10191 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
10194 * calls.c (initialize_argument_information): When producing tail
10195 call also turn SSA_NAMES passed by references to original PARM_DECLs
10197 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
10200 * lra-remat.c (do_remat): Process input and non-input insn
10201 registers separately.
10203 2015-04-07 Jakub Jelinek <jakub@redhat.com>
10206 * valtrack.c (debug_lowpart_subreg): New function.
10207 (dead_debug_insert_temp): Use it.
10209 PR middle-end/65680
10210 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
10211 into signed HOST_WIDE_INT the same as negative bit_offset.
10213 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
10215 * ipa-comdats.c (ipa_comdats): Visit all thunks
10216 to set proper comdat group.
10218 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10221 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
10222 on constants for NEON VSTRUCT modes.
10224 2015-04-07 Jakub Jelinek <jakub@redhat.com>
10225 Iain Sandoe <iain@codesourcery.com>
10228 * configure: Regenerate.
10230 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
10233 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
10234 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
10235 that LFD is used to load double constants instead of LFS. Add
10236 defaults for all costs structures. Add comments for missing
10237 initialization fields.
10238 (size32_cost): Likewise.
10239 (size64_cost): Likewise.
10240 (rs64a_cost): Likewise.
10241 (mpccore_cost): Likewise.
10242 (ppc403_cost): Likewise.
10243 (ppc405_cost): Likewise.
10244 (ppc440_cost): Likewise.
10245 (ppc476_cost): Likewise.
10246 (ppc601_cost): Likewise.
10247 (ppc603_cost): Likewise.
10248 (ppc604_cost): Likewise.
10249 (ppc604e_cost): Likewise.
10250 (ppc620_cost): Likewise.
10251 (ppc630_cost): Likewise.
10252 (ppccell_cost): Likewise.
10253 (ppc750_cost): Likewise.
10254 (ppc7450_cost): Likewise.
10255 (ppc8540_cost): Likewise.
10256 (ppce300c2c3_cost): Likewise.
10257 (ppce500mc_cost): Likewise.
10258 (ppce500mc64_cost): Likewise.
10259 (ppce5500_cost): Likewise.
10260 (ppce6500_cost): Likewise.
10261 (titan_cost): Likewise.
10262 (power4_cost): Likewise.
10263 (power6_cost): Likewise.
10264 (power7_cost): Likewise.
10265 (power8_cost): Likewise.
10266 (ppca2_cost): Likewise.
10267 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
10269 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
10270 instead of XXLOR to copy SFmode to clear out dirty bits created
10271 when SFmode denormals are generated.
10272 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
10273 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
10275 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
10277 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
10278 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
10279 * config/aarch64/aarch64-tune.md: Regenerate.
10281 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
10283 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
10284 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
10285 * config/arm/arm-cores.def (exynos-m1): New core.
10286 * config/arm/arm-tune.md: Regenerate.
10287 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
10288 * config/arm/bpabi.h: Likewise.
10290 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
10292 * ipa-cp (set_single_call_flag): Remove too
10293 restrictive assert.
10295 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
10297 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
10298 GOMP_offload_unregister from the destructor.
10300 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
10302 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
10303 flags for instrumentation thunk.
10304 (chkp_produce_thunks): Likewise.
10306 2015-04-05 Martin Liska <mliska@suse.cz>
10309 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
10310 has computed data structure.
10311 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
10313 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
10315 * invoke.texi (inline-unit-growth): Increase growth to 20%
10316 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
10318 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
10321 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
10323 (lra_rematerialization_iter): New.
10324 * lra.c (lra): Initialize lra_rematerialization_iter.
10325 Stop updating lra_constraint_new_regno_start after switching of
10326 inheritance and rematerialization.
10327 * lra-remat.c (lra_rematerialization_iter): New.
10328 (lra_remat): Add printing pass iteration. Do rematerialization
10329 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
10331 2015-04-04 Richard Biener <rguenther@suse.de>
10333 PR tree-optimization/64909
10334 PR tree-optimization/65660
10335 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
10336 to take a cost vector for scalar iteration cost.
10337 (vect_get_single_scalar_iteration_cost): Likewise.
10338 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
10339 Compute the scalar iteration cost into a cost vector.
10340 (vect_get_known_peeling_cost): Use the scalar cost vector to
10341 account for the cost of the peeled iterations.
10342 (vect_estimate_min_profitable_iters): Likewise.
10343 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
10346 2015-04-04 Alan Modra <amodra@gmail.com>
10350 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
10351 0.0 constant unless TARGET_VSX.
10352 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
10355 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
10358 * ipa-inline-transform.c (inline_call): Skip sanity check to work
10361 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
10364 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
10365 speculative indirect edges to avoid ordering issue.
10367 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
10370 * ipa-inline.c (edge_badness): Add combined size to the denominator.
10372 2015-04-03 Jakub Jelinek <jakub@redhat.com>
10374 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
10375 TYPE_ARTIFICIAL on the .omp_data* types.
10377 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
10379 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
10380 instrumentation thunks.
10382 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
10384 * config/i386/i386.c (ix86_expand_call): Avoid nested
10385 PARALLEL in returned call value.
10387 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
10389 * lto-cgraph.c (input_cgraph_1): Always link instrumented
10390 assembler name with original one.
10392 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
10394 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
10396 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
10398 Revert parts of r216820.
10399 * config/i386/i386.md (movqi_internal): Correct type calculation
10400 for alternatives 3 and 5.
10402 2015-04-02 Jakub Jelinek <jakub@redhat.com>
10404 PR preprocessor/61977
10405 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
10406 predefine __vector/__bool/__pixel macros nor context sensitive
10407 macros for CLK_ASM.
10408 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
10410 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
10412 * config/pa/pa.c (pa_output_move_double): Directly handle register
10413 indexed memory operand. Simplify handling of scaled register indexed
10416 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
10419 * config/i386/linux-common.h (MPX_SPEC): New.
10420 (CHKP_SPEC): Add MPX_SPEC.
10421 * doc/invoke.texi (-fcheck-pointer-boudns): Document
10422 possible issues with '-z bndplt' support in linker.
10424 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
10426 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
10427 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
10428 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
10429 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
10430 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
10432 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
10434 * config/i386/sync.md (UNSPEC_MOVA): Remove.
10435 (atomic_load<mode>): Change operand 0 predicate to
10436 nonimmediate_operand and fix up the destination when needed.
10438 (atomic_loaddi_fpu): Use UNSPEC_LDA.
10439 (atomic_store<mode>): Change operand 1 predicate to
10440 nonimmendate_operand and move the source to register when needed.
10442 (atomic_store<mode>_1): Use UNSPEC_STA.
10443 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
10444 Fix moves from memory operand. Use UNSPEC_STA.
10446 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10448 * expmed.c (strict_volatile_bitfield_p): Check that the access will
10449 not cross a MODESIZE boundary.
10450 (store_bit_field, extract_bit_field): Added assertions in the
10451 strict volatile bitfields code path.
10453 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
10456 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
10457 Increase args array size by one to avoid buffer overflow.
10459 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
10461 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
10463 * ipa-inline.c (edge_badness): Add wrapper penalty.
10464 (sum_callers): Move up.
10465 (inline_small_functions): Set single_caller.
10466 * ipa-inline.h (inline_summary): Add single_caller.
10467 * ipa-split.c (split_function): Set split_part.
10468 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
10469 * cgraph.h (cgraph_node): Add split_part.
10471 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
10474 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
10475 Do not split operands 0 and operands 2 to halfmode.
10476 (atomic_compare_and_swap<mode>): Update for
10477 atomic_compare_and_swap<dwi>_doubleword changes.
10479 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
10481 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
10482 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
10483 no caching is done.
10485 2015-03-31 Martin Liska <mliska@suse.cz>
10488 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
10489 has already filled up function summary.
10490 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
10492 2015-03-31 Richard Biener <rguenther@suse.de>
10494 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
10497 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
10499 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
10501 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
10502 (s390_asm_output_function_label): Adapt to new signature of
10503 s390_function_num_hotpatch_hw
10504 Optimise the code generating assembler output.
10505 Add comments to assembler file.
10507 2015-03-31 Richard Biener <rguenther@suse.de>
10509 PR middle-end/65626
10510 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
10511 of the noreturn call so it is last and cleanup_control_flow_bb
10512 can do the CFG part.
10514 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
10517 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
10518 same_comdat_group for external symbols.
10519 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
10520 infinite same_comdat_group traversal loop.
10522 2015-03-31 Jakub Jelinek <jakub@redhat.com>
10525 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
10526 automatically to $headers.
10528 2015-03-30 Jakub Jelinek <jakub@redhat.com>
10531 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
10532 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
10534 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
10536 * ipa-prop.c (param_type_may_change_p): Likewise.
10537 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
10538 (remove_unused_scope_block_p): Add in_ctor_dtor_block
10539 argument. Before inlining, preserve
10540 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
10541 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
10543 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
10545 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
10548 * ipa-inline.c (edge_badness): Base denominator on callee's
10551 2015-03-27 Martin Jambor <mjambor@suse.cz>
10554 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
10555 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
10556 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
10557 node_calling_single_call.
10558 * ipa-cp.c (count_callers): New function.
10559 (set_single_call_flag): Likewise.
10560 (initialize_node_lattices): Count callers and set single_flag_call if
10562 (incorporate_penalties): New function.
10563 (good_cloning_opportunity_p): Use it, dump new flags.
10564 (propagate_constants_topo): Set node_within_scc flag if appropriate.
10565 * doc/invoke.texi (ipa-cp-recursion-penalty,
10566 ipa-cp-single-call-pentalty): Document.
10568 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
10571 * symtab.c (symtab_node::get_partitioning_class): Register vars
10573 * varpool.c (symbol_table::output_variables) Do not assemble unefined
10574 decls for non-symbols.
10576 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
10579 * output.h (default_binds_local_p_2): New.
10580 * varasm.c (default_binds_local_p_2): Renamed to ...
10581 (default_binds_local_p_3): This. Don't return true on protected
10582 data symbol if protected data may be external.
10583 (default_binds_local_p): Use default_binds_local_p_3.
10584 (default_binds_local_p_1): Likewise.
10585 (default_binds_local_p_2): New.
10586 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
10587 default_binds_local_p_2 if TARGET_MACHO is undefined.
10589 2015-03-27 Jakub Jelinek <jakub@redhat.com>
10592 * config/i386/i386.c (legitimize_pic_address): If base
10593 is SYMBOL_REF or LABEL_REF using %rip addressing, force
10594 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
10596 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
10599 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
10602 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
10605 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
10606 of optimized out indirect call.
10607 (redirect_to_unreachable): Always build symbol table node for
10608 BUILT_IN_UNREACHABLE
10610 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
10613 * ira-costs.c (record_reg_classes): Process all constraint string
10616 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
10618 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
10622 * config/c6x/constraints.md (S3): New constraint.
10623 * config/c6x/c6x.md (real_jump): Use it.
10625 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
10627 PR middle-end/65595
10628 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
10629 do redirection if the call is not optimized out.
10631 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
10634 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
10635 (fchkp-check-incomplete-type): Add LTO.
10636 (fchkp-zero-input-bounds-for-main): Likewise.
10637 (fchkp-first-field-has-own-bounds): Likewise.
10638 (fchkp-narrow-bounds): Likewise.
10639 (fchkp-narrow-to-innermost-array): Likewise.
10640 (fchkp-use-static-bounds): Likewise.
10641 (fchkp-use-static-const-bounds): Likewise.
10642 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
10644 2015-03-27 Marek Polacek <polacek@redhat.com>
10646 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
10648 2015-03-27 Marek Polacek <polacek@redhat.com>
10651 * ubsan.c (ubsan_create_edge): New function.
10652 (instrument_bool_enum_load): Call it.
10653 (instrument_nonnull_arg): Likewise.
10654 (instrument_nonnull_return): Likewise.
10655 (instrument_object_size): Likewise.
10657 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
10659 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
10662 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
10665 * lto-streamer.h (class lto_location_cache): New.
10666 (struct data_in): Add location_cache.
10667 (lto_input_location): Update prototype.
10668 (stream_input_location_now): New.
10669 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
10670 pointer to location.
10671 (stream_input_location): Update.
10672 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
10673 (warn_odr): Apply location cache before warning.
10674 (lto_input_location): Update prototype.
10675 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
10676 Use stream_input_location_now.
10677 * lto-streamer-in.c (lto_location_cache::current_cache): New static
10679 (lto_location_cache::cmp_loc): New function.
10680 (lto_location_cache::apply_location_cache): New function.
10681 (lto_location_cache::accept_location_cache): New function.
10682 (lto_location_cache::revert_location_cache): New function.
10683 (lto_location_cache::input_location): New function.
10684 (lto_input_location): Do location caching.
10685 (stream_input_location_now): New function.
10686 (input_eh_region, input_struct_function_base): Use
10687 stream_input_location_now.
10688 (lto_data_in_create): use new.
10689 (lto_data_in_delete): Use delete.
10690 * tree-streamer-in.c (unpack_ts_block_value_fields,
10691 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
10692 lto_input_ts_exp_tree_pointers): Update for cached location api.
10694 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
10697 * passes.def: Add pass_nothrow.
10698 * ipa-pure-const.c: (pass_data_nothrow): New.
10699 (pass_nothrow): New.
10700 (pass_nothrow::execute): New.
10701 (make_pass_nothrow): New.
10702 * tree-pass.h (make_pass_nothrow): Declare.
10704 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
10706 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
10707 edge to change by speculation resolution or redirection.
10708 (edge_set_predicate): Likewise.
10709 (inline_summary_t::duplicate): Likewise.
10710 (remap_edge_summaries): Likewise.
10712 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
10714 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
10716 (can_inline_edge_p): Relax option matching for always inline functions.
10718 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
10721 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
10722 Check operand 4 and operand 0 for equality.
10723 (avx512f_vextract<shuffletype>32x4_1_maskm):
10724 Check operand 6 and operand 0 for equality.
10725 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
10727 (vec_extract_hi_<mode>_maskm): Ditto.
10729 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
10731 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
10732 dead calls back to live.
10733 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
10735 (cgraph_node::verify_node): ... here; verify only callee edges,
10737 * cif-code.def (CILK_SPAWN): New code.
10739 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
10741 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
10742 (edge_set_predicate): Use it to mark unreachable edges.
10743 (inline_summary_t::duplicate): Remove unnecesary code.
10744 (remap_edge_summaries): Likewise.
10745 (dump_inline_summary): Report contains_cilk_spawn.
10746 (compute_inline_parameters): Compute contains_cilk_spawn.
10747 (inline_read_section, inline_write_summary): Stream
10748 contains_cilk_spawn.
10749 * ipa-inline.c (can_inline_edge_p): Do not touch
10750 DECL_STRUCT_FUNCTION that may not be available;
10751 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
10752 remove check for callee_fun->can_throw_non_call_exceptions and
10753 replace it by optimization attribute check; check for flag_exceptions.
10754 * ipa-inline-transform.c (inline_call): Maintain
10755 DECL_FUNCTION_PERSONALITY
10756 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
10758 2015-03-26 Jakub Jelinek <jakub@redhat.com>
10760 PR tree-optimization/65551
10761 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
10762 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
10764 2015-03-26 Richard Biener <rguenther@suse.de>
10766 PR middle-end/65555
10767 * tree-cfg.c (verify_gimple_call): Do not require a call to
10768 have no LHS if it wasn't recognized as control altering yet.
10770 2015-03-26 Jakub Jelinek <jakub@redhat.com>
10772 PR tree-optimization/64715
10773 * passes.def: Add another instance of pass_object_sizes before ccp1.
10774 * tree-object-size.c (pass_object_sizes::execute): In
10775 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
10776 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
10777 __bos result and the computed constant. Remove redundant
10778 checks, obsoleted by gimple_call_builtin_p test.
10780 * var-tracking.c (variable_tracking_main_1): Don't track
10781 variables for targetm.no_register_allocation targets.
10783 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
10785 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
10786 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
10788 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
10791 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
10792 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
10793 0.0 is correctly setup.
10794 (extenddftf2_internal): Likewise.
10796 2015-03-25 Sebastian Pop <s.pop@samsung.com>
10798 PR tree-optimization/65177
10799 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
10801 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
10802 edges not adjacent on the path to the original code.
10804 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
10807 * doc/install.texi (Building a native compiler): Document new
10808 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
10809 configuration assumes that the host supports the linker plugin.
10811 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
10814 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
10815 chain for generated call.
10817 2015-03-25 Richard Biener <rguenther@suse.de>
10819 * passes.c (pass_manager::execute_early_local_passes): Guard
10820 execution of pass_chkp_instrumentation_passes with
10821 flag_check_pointer_bounds.
10822 (pass_chkp_instrumentation_passes::gate): Likewise.
10824 2015-03-25 Martin Liska <mliska@suse.cz>
10826 PR tree-optimization/65538
10827 * symbol-summary.h (function_summary::~function_summary):
10828 Relese memory for allocated summaries.
10829 (function_summary::release): New function.
10831 2015-03-25 Jakub Jelinek <jakub@redhat.com>
10834 * lto-streamer-out.c (DFS::worklist): New struct.
10835 (DFS::worklist_vec): New data member.
10836 (DFS::next_dfs_num): Remove.
10837 (DFS::DFS): Rewritten using worklist instead of recursion,
10838 using most of code from DFS::DFS_write_tree.
10839 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
10840 pass it to DFS_write_tree calls.
10841 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
10842 quick initial checks push it into worklist_vec and return.
10844 2015-03-25 Richard Biener <rguenther@suse.de>
10846 PR middle-end/65519
10847 * genmatch.c (expr::gen_transform): Re-write to avoid
10848 using gimple_build.
10850 2015-03-25 Bin Cheng <bin.cheng@arm.com>
10852 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
10854 2015-03-25 Bin Cheng <bin.cheng@arm.com>
10856 * config/arm/arm.opt (print_tune_info): New option.
10857 * config/arm/arm.c (arm_print_tune_info): New function.
10858 (arm_file_start): Call arm_print_tune_info.
10859 * config/arm/arm-protos.h (struct tune_params): Add comment.
10860 * doc/invoke.texi (@item -mprint-tune-info): New item.
10861 (-mtune): mention it in ARM Option Summary.
10863 2015-03-25 DJ Delorie <dj@redhat.com>
10865 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
10868 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
10869 Martin Liska <mliska@suse.cz>
10871 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
10872 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
10873 (sem_item::add_type): New function.
10874 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
10875 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
10876 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
10877 (sem_function::equals_wpa): Fix typo.
10878 * ipa-icf.h (sem_item::add_type): New function.
10879 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
10882 2015-03-24 Jakub Jelinek <jakub@redhat.com>
10884 PR tree-optimization/65533
10885 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
10886 with swapped operands, call vect_free_slp_tree on
10887 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
10890 2015-03-24 Richard Biener <rguenther@suse.de>
10892 PR middle-end/65517
10893 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
10894 for fixup if necessary.
10896 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
10898 * doc/extend.texi (Function Attributes): Add @cindex entries
10899 for all attributes and regularize their format. Delete text
10900 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
10901 information about "eightbit_data", "tiny_data", and "model"
10902 variable attributes to the Variable Attributes section. Fix
10903 some obvious typos and copy-editing issues.
10904 (Variable Attributes, Type Attributes): Likewise add/fix
10905 @cindex entries for all attributes.
10907 2015-03-23 Jakub Jelinek <jakub@redhat.com>
10910 * tree-chkp.c (chkp_build_returned_bound): Ignore
10911 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
10913 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
10916 * config/sh/predicates.md (simple_mem_operand,
10917 displacement_mem_operand): Add test for reg.
10918 (short_displacement_mem_operand): Test for displacement_mem_operand
10919 before invoking sh_disp_addr_displacement.
10920 * config/sh/constraints.md (Sdd, Sra): Simplify.
10921 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
10922 Remove redundant displacement_mem_operand tests.
10924 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
10927 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
10928 the same -mmcu=MCU more than once.
10930 2015-03-23 Jakub Jelinek <jakub@redhat.com>
10933 * ipa-devirt.c: Remove duplicate demangle.h include.
10936 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
10938 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
10939 REG_POINTER on *destptr after adjusting it for prologue size.
10942 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
10943 ultimate_alias_target ()->order ints instead of
10944 ultimate_alias_target () pointers.
10946 2015-03-23 Richard Biener <rguenther@suse.de>
10948 PR tree-optimization/65518
10949 * tree-vect-stmts.c (vectorizable_load): Reject single-element
10950 interleaving cases we generate absymal code for.
10952 2015-03-23 Richard Biener <rguenther@suse.de>
10954 PR tree-optimization/65494
10955 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
10957 (vect_analyze_slp_instance): But do that here, always and once.
10959 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10961 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
10962 adding T or multiplying by T+1 and subracting T.
10964 2015-03-22 Jeff Law <law@redhat.com>
10966 PR rtl-optimization/64317
10967 * Makefile.in (OBJS): Add gcse-common.c
10968 * gcse.c: Include gcse-common.h
10969 (struct modify_pair_s): Move structure definition to gcse-common.h
10970 (compute_transp): Move function to gcse-common.c.
10971 (canon_list_insert): Similarly.
10972 (record_last_mem_set_info): Break out some code and put it into
10973 gcse-common.c. Call into the new common code.
10974 (compute_local_properties): Pass additional arguments to compute_transp.
10975 * postreload-gcse.c: Include gcse-common.h and df.h
10976 (modify_mem_list_set, blocks_with_calls): New variables.
10977 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
10978 (get_bb_avail_insn): Pass in the expression index too.
10979 (alloc_mem): Allocate memory for the new bitmaps and lists.
10980 (free_mem): Free memory for the new bitmaps and lists.
10981 (insert_expr_in_table): Record a bitmap index for each entry we
10983 (record_last_mem_set_info): Call into common code in gcse-common.c.
10984 (get_bb_avail_insn): If no available insn was found in the requested
10985 BB. If BB has a single predecessor, see if the expression is
10986 transparent in BB and available in that single predecessor.
10987 (compute_expr_transp): New wrapper for compute_transp.
10988 (eliminate_partially_redundant_load): Pass expression's bitmap_index
10989 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
10990 (gcse_after_reload_main): If there are elements in the hash table,
10991 then compute transparency for all the elements in the hash table.
10992 * gcse-common.h: New file.
10993 * gcse-common.c: New file.
10995 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
10997 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
10999 (System Headers): Likewise.
11001 (Traditional macros): Likewise.
11002 (Invocation): Likewise.
11003 (Option Index): Likewise.
11004 * doc/cppopts.texi (-M): Likewise.
11005 (-finput-charset): Likewise.
11006 (--help): Likewise.
11007 * doc.invoke.texi (AVR Options): Likewise.
11008 (V850 Options): Likewise.
11010 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
11013 * ipa-devirt.c: Include demangle.h
11014 (odr_type_d): Add field rtti_broken.
11015 (odr_subtypes_equivalent_p): Do not require name to match.
11016 (compare_virtual_tables): Fix typo; if type already has ODR violation,
11017 bypass the tests; be ready for function referneces in vtables that are
11018 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
11019 (warn_odr): Give up for nameless types.
11020 (warn_types_mismatch): Report mismatch in mangled names;
11021 report mismatch in anonymous namespaces; look into component types to
11022 give useful error; report when mismatch is dragged in from other ODR
11024 (odr_types_equivalent_p): Match types for being polymorphic; avoid
11025 duplicated diagnostics.
11026 (add_type_duplicate): Reorder checks so more informative ones come
11027 first; fix typo; do not output "the extra base is defined here" when
11029 (BINFO_N_BASE_BINFOS): Relax sanity check.
11031 2015-03-22 Martin Liska <mliska@suse.cz>
11032 Jakub Jelinek <jakub@redhat.com>
11034 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
11035 masks that can potentially include a builtin.
11036 (ix86_add_new_builtins): Introduce fast filter for isa values
11037 that cannot trigger builtin inclusion.
11039 2015-03-22 Martin Liska <mliska@suse.cz>
11041 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
11042 (sem_item::update_hash_by_local_refs): Likewise.
11043 (sem_variable::get_hash): Empty line is fixed.
11044 (sem_item_optimizer::execute): Include adding of hash references.
11045 (sem_item_optimizer::update_hash_by_addr_refs): New function.
11046 (sem_item_optimizer::build_hash_based_classes): Use local hash.
11047 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
11048 (sem_item::update_hash_by_local_refs): Likewise.
11050 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
11053 * ipa-comdats.c (enqueue_references): Walk through thunks.
11054 (ipa_comdats): Likewise.
11055 (set_comdat_group_1): New function.
11057 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
11060 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
11063 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
11064 Gerald Pfeifer <gerald@pfeifer.com>
11066 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
11068 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11069 Sandra Loosemore <sandra@codesourcery.com>
11071 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
11072 function parameter declaration.
11073 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
11074 Update arguments to nios2_adjust_call_address().
11075 (sibcall_internal): Rename from *sibcall.
11076 (sibcall_value_internal): Rename from *sibcall_value.
11077 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
11078 (nios2_large_got_address): Add target temp reg parameter.
11079 (nios2_got_address): Adjust call to nios2_large_got_address, add
11080 force_reg around it.
11081 (nios2_load_pic_address): Add target temp reg parameter, replace call
11082 to nios2_got_address with corresponding code.
11083 (nios2_legitimize_constant_address): Update call to
11084 nios2_load_pic_address.
11085 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
11086 to use temp reg for PIC loading purposes.
11087 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
11088 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
11089 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
11091 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
11093 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
11094 usage of "the @option{...}".
11095 (-Wopenmp-simd): Likewise.
11096 (-fsanitize-recover): Likewise.
11097 (-fsanitize-undefined-trap-on-error): Likewise.
11099 (tracer-dynamic-coverage-feedback): Likewise.
11100 (reorder-block-duplicate-feedback): Likewise.
11101 (loop-unroll-jam-size): Likewise.
11104 (-mabs=legacy): Likewise.
11105 (-mupper-regs-df): Likewise.
11106 (-mupper-regs-sf): Likewise.
11107 (-mpointers-to-nested-functions): Likewise.
11109 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
11111 * doc/extend.texi (Cilk Plus Builtins): Add markup.
11113 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
11115 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
11116 additional index entries and cross-references.
11117 (-fchkp-check-incomplete-type): Likewise.
11118 (-fchkp-first-field-has-own-bounds): Likewise.
11119 (-fchkp-narrow-to-innermost-array): Likewise.
11120 (-fchkp-use-fast-string-functions): Likewise.
11121 (-fchkp-use-nochk-string-functions): Likewise.
11122 (-fchkp-use-static-const-bounds): Likewise.
11123 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
11124 (-fchkp-instrument-marked-only): Likewise.
11125 (-fchkp-use-wrappers): Likewise.
11126 (-static-libmpx): Likewise.
11127 (-static-libmpxwrappers): Likewise.
11128 * doc/extend.texi (bnd_legacy): Likewise.
11129 (bnd_instrument): Likewise.
11130 (bnd_variable_size): Likewise.
11131 (Pointer Bounds Checker builtins): Likewise.
11133 2015-03-21 Tom de Vries <tom@codesourcery.com>
11135 PR tree-optimization/65458
11136 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
11137 * cgraph.h (cgraph_node): Add parallelized_function field.
11138 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
11139 (input_overwrite_node): Read parallelized_function field.
11140 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
11141 parallelized_function on cgraph_node for child_fn.
11142 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
11143 Remove include of gt-tree-parloops.h.
11144 (parallelized_functions): Remove static variable.
11145 (parallelized_function_p): Rewrite using parallelized_function field of
11147 (create_loop_fn): Remove adding to parallelized_functions.
11148 * Makefile.in (GTFILES): Remove tree-parloops.c
11150 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
11152 PR rtl-optimization/64366
11153 * lra.c (lra_update_insn_regno_info): Consider regs in
11154 CALL_INSN_FUNCTION_USAGE memory.
11156 2015-03-20 Richard Biener <rguenther@suse.de>
11158 PR middle-end/64715
11159 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
11160 for type comparison and gcc_checking_assert.
11161 (chrec_fold_plus_poly_poly): Likewise.
11162 (chrec_fold_multiply_poly_poly): Likewise.
11163 (chrec_convert_1): Likewise.
11164 * gimplify.c (gimplify_expr): Remove premature folding of
11165 &X + CST to &MEM[&X, CST].
11167 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
11169 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
11171 (ipa_inline): Recompute inline_failed codes.
11172 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
11173 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
11176 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
11178 PR rtl-optimization/60851
11179 * recog.c (constrain_operands): Accept a pseudo register before reload
11180 for LRA enabled targets.
11182 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
11185 * config/rs6000/predicates.md (easy_fp_constant): Remove special
11186 -ffast-math handling that kept non-0 constants live in the RTL
11187 until reload. Remove logic testing the number of instructions it
11188 took to create a constant in a GPR that was never used, due to a
11189 test for soft-float earlier.
11190 (memory_fp_constant): Delete, no longer used.
11192 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
11193 alternatives for loading non-0 constants into GPRs for hard
11194 floating point that is no longer needed due to changes in
11195 easy_fp_constant. Add support for loading 0.0 into GPRs.
11196 (mov<mode>_hardfloat32): Likewise.
11197 (mov<mode>_hardfloat64): Likewise.
11198 (mov<mode>_64bit_dm): Likewise.
11199 (movtd_64bit_nodm): Likewise.
11200 (pre-reload move FP constant define_split): Delete define_split,
11201 since it is no longer used.
11202 (extenddftf2_internal): Remove GHF constraints that are not valid
11205 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
11207 PR rtl-optimization/63491
11208 * lra-constraints.c (check_and_process_move): Use src instead of
11209 sreg. Remove some dead code.
11211 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
11214 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
11215 (sem_variable::merge): Likewise.
11217 2015-03-19 Martin Liska <mliska@suse.cz>
11220 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
11221 all fields of cgraph_thunk_info.
11223 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
11225 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
11226 clone instrumented thunks.
11228 2015-03-19 Richard Biener <rguenther@suse.de>
11231 2015-03-10 Richard Biener <rguenther@suse.de>
11233 PR middle-end/63155
11234 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
11235 * tree-ssa-coalesce.c: Include timevar.h.
11236 (attempt_coalesce): Handle graph being NULL.
11237 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
11238 Split out abnormal coalescing to ...
11239 (perform_abnormal_coalescing): ... this function.
11240 (coalesce_ssa_name): Perform abnormal coalescing without computing
11242 (verify_ssa_coalescing_worker): New function.
11243 (verify_ssa_coalescing): Likewise.
11245 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
11246 Jakub Jelinek <jakub@redhat.com>
11249 * tsan.c (instrument_gimple): Clear tail call flag on
11252 2015-03-19 Jakub Jelinek <jakub@redhat.com>
11255 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
11256 call in the return bb.
11257 (find_split_points): Add RETURN_BB argument, don't call
11259 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
11260 if true append TSAN_FUNC_EXIT internal call after the call to
11261 the split off function.
11262 (execute_split_functions): Call find_return_bb here.
11263 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
11264 Adjust find_split_points and split_function calls.
11266 2015-03-18 DJ Delorie <dj@redhat.com>
11268 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
11269 (iorqi3_virt): Likewise.
11271 2015-03-18 Tom de Vries <tom@codesourcery.com>
11273 * tree-parloops.c (parallelize_loops): Make static.
11274 * tree-parloops.h (parallelize_loops): Remove extern declaration.
11276 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
11278 PR middle-end/64491
11280 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
11282 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
11283 condition would be removed due to undefined behaviour.
11285 2015-03-18 Martin Liska <mliska@suse.cz>
11288 * cgraph.c (cgraph_node::get_create): Remove unnecessary
11289 xstrdup_for_dump wrapper.
11290 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
11292 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
11293 with xstrdup_for_dump.
11294 (sem_variable::equals): Likewise.
11295 (sem_item_optimizer::read_section): Use symtab_node::name instead of
11297 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
11298 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
11299 symtab_node::asm_name with xstrdup_for_dump.
11300 (congruence_class::dump): Use symtab_node::name instead of
11302 * ipa-icf.h (symtab_node::name): Remove.
11303 (symtab_node::asm_name): Likewise.
11305 2015-03-18 Jakub Jelinek <jakub@redhat.com>
11307 PR tree-optimization/65450
11308 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
11310 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
11311 it instead of duplicate_ssa_name_ptr_info.
11314 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
11316 2015-03-18 Richard Biener <rguenther@suse.de>
11318 * tree-data-ref.h (struct access_matrix): Remove.
11319 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
11320 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
11321 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
11322 (am_vector_index_for_loop): Likewise.
11323 (struct data_reference): Remove access_matrix member.
11324 (DR_ACCESS_MATRIX): Remove.
11325 (lambda_vector_new): Add comment.
11326 (lambda_matrix_new): Use XOBNEWVEC.
11328 2015-03-18 Richard Biener <rguenther@suse.de>
11330 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
11331 (pass_ch::execute): Cleanup the CFG only if we did sth.
11332 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
11334 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11336 * expmed.c (synth_mult): Use std::swap instead of manually
11337 swapping algorithms.
11339 2015-03-18 Jakub Jelinek <jakub@redhat.com>
11342 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
11344 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
11347 * config/avr/avr.opt (-nodevicelib): New option.
11348 * doc/invoke.texi (AVR Options): Document it.
11349 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
11350 libgcc.a, libc.a, libm.a.
11351 * config/avr/specs.h: Same.
11352 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
11353 which don't (directly) depend on the device. Print more help.
11354 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
11355 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
11356 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
11358 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
11359 for specs file name.
11360 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
11361 * config/avr/avr-mcus.def: Adjust initializers and comments.
11363 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
11365 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
11366 DECL_ONE_ONLY to check if decl is one only.
11367 * ipa-split.c (consider_split): Limit splitt of one only functions.
11369 2015-03-16 Jakub Jelinek <jakub@redhat.com>
11371 PR tree-optimization/65427
11372 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
11374 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
11376 2015-03-16 Marek Polacek <polacek@redhat.com>
11378 * cgraph.h (add_new_static_var): Remove declaration.
11379 * varpool.c (add_new_static_var): Remove function.
11381 2015-03-16 Jakub Jelinek <jakub@redhat.com>
11383 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
11384 instead of vec<tree> * with vec_alloc and release for args.
11387 PR middle-end/65431
11388 * omp-low.c (delete_omp_context): Only splay_tree_delete
11389 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
11390 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
11392 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
11395 * cfgexpand.c (align_base): New function.
11396 (alloc_stack_frame_space): Call it.
11397 (expand_stack_vars): Align prev_frame to be sure
11398 data->asan_vec elements aligned properly.
11400 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
11402 PR middle-end/65409
11403 * expr.c (store_field): Do not do a direct block copy if the source is
11404 a PARALLEL with BLKmode.
11406 2015-03-16 Tom de Vries <tom@codesourcery.com>
11408 PR middle-end/65414
11410 2015-03-12 Tom de Vries <tom@codesourcery.com>
11412 PR rtl-optimization/64895
11413 * lra-lives.c (check_pseudos_live_through_calls): Use
11414 actual_call_used_reg_set instead of call_used_reg_set, if available.
11416 2015-03-16 Alan Modra <amodra@gmail.com>
11419 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
11420 Modify Z->r bswapdi splitter to use dest in place of scratch.
11421 In r->Z and Z->r bswapdi splitter rename word_high, word_low
11422 to word1, word2 and rearrange logic to suit.
11423 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
11424 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
11425 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
11426 Add one '?' on r->r. Modify Z->r splitter to avoid need for
11429 2015-03-14 Jakub Jelinek <jakub@redhat.com>
11431 PR tree-optimization/65369
11432 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
11433 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
11434 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
11436 PR tree-optimization/65418
11437 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
11438 are casts in the first PLUS_EXPR operand, ensure tbias and
11439 *totallowp are in the inner type.
11441 PR rtl-optimization/65401
11442 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
11443 argument. If true, adjust_address_nv of x with big-endian
11444 correction for the mode widening to GET_MODE (y).
11445 (make_field_assignment): Don't do MEM mode widening here.
11446 Use MEM_P instead of GET_CODE == MEM.
11448 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
11450 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
11451 the external decls.
11453 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11456 * config/arm/arm.c (arm_gen_constant, AND case): Use
11457 ARM_SIGN_EXTEND when constructing AND mask.
11459 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
11461 * graph.c (print_graph_cfg): Make function names visible and append
11462 parenthesis to it. Also make groups of basic blocks belonging to the
11463 same function visible.
11465 2015-03-12 Richard Biener <rguenther@suse.de>
11467 PR middle-end/44563
11468 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
11469 to avoid quadratic behavior with inline expansion splitting blocks.
11470 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
11471 with the successor if the predecessor will be merged with it.
11472 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
11473 entry block with its successor.
11475 2015-03-13 Richard Biener <rguenther@suse.de>
11477 PR middle-end/44563
11478 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
11479 (cleanup_tree_cfg_1): Do not call it.
11480 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
11481 (fixup_noreturn_call): Mark the stmt as control altering.
11482 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
11484 (pass_data_fixup_cfg): Produce a dump file.
11485 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
11486 (need_noreturn_fixup): New global.
11487 (pass_dominator::execute): Fixup queued noreturn calls.
11488 (optimize_stmt): Queue calls that became noreturn for fixup.
11489 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
11490 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
11491 (el_to_fixup): New global.
11492 (eliminate_dom_walker::before_dom_childre): Queue calls that
11493 became noreturn for fixup.
11494 (eliminate): Fixup queued noreturn calls.
11495 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
11496 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
11497 (substitute_and_fold_dom_walker::before_dom_children): Queue
11498 alls that became noreturn for fixup.
11499 (substitute_and_fold): Fixup queued noreturn calls.
11501 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
11503 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
11504 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
11505 are building; for methods check ODR type of class they belong to if
11506 they may lead to a polymorphic call.
11507 (sem_function::compare_polymorphic_p): Be bit smarter about testing
11508 when function may lead to a polymorphic call.
11509 (sem_function::compare_type_list): Remove.
11510 (sem_variable::equals): Update use of compatible_types_p.
11511 (sem_variable::parse_tree_refs): Remove.
11512 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
11514 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
11516 (func_checker::compatible_polymorphic_types_p): Break out from ...
11517 (unc_checker::compatible_types_p): ... here.
11518 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
11520 (unc_checker::compatible_types_p): Update.
11521 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
11524 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11526 PR rtl-optimization/65235
11527 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
11528 When first element of vec_concat is const_int, calculate its size
11529 using second element.
11531 2015-03-12 Richard Biener <rguenther@suse.de>
11533 PR middle-end/65270
11534 * fold-const.c (operand_equal_p): Fix ordering of resetting
11535 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
11537 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
11539 * config/s390/s390.c (s390_reorg): Move code to output nops after label
11541 (s390_asm_output_function_label): Likewise.
11542 * config/s390/s390.c (s390_asm_output_function_label):
11543 Fix function label alignment with -mhtopatch.
11544 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
11545 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
11546 ("nop_2_byte"): New define_insn.
11547 ("nop_4_byte"): Likewise.
11548 ("nop_6_byte"): Likewise.
11549 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
11550 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
11552 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
11555 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
11558 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
11561 * toplev.c (process_options): Restrict Pointer Bounds Checker
11562 usage with Address Sanitizer.
11564 2015-03-12 Richard Biener <rguenther@suse.de>
11566 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
11568 * omp-low.c (expand_omp_taskreg): Split block before removing
11570 (expand_omp_target): Likewise.
11571 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
11572 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
11573 stmt to split_block.
11575 2015-03-12 Tom de Vries <tom@codesourcery.com>
11577 PR rtl-optimization/64895
11578 * lra-lives.c (check_pseudos_live_through_calls): Use
11579 actual_call_used_reg_set instead of call_used_reg_set, if available.
11581 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
11583 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
11584 (cgraph_node::remove): Likewise.
11585 (cgraph_node::get_untransformed_body): Likewise.
11586 * varpool.c (varpool_node::remove): Likewise.
11587 (varpool_node::get_constructor): Add sanity check.
11589 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
11591 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
11593 (-fabi-compat-version): Likewise.
11594 (-ffriend-injection): Likewise.
11595 (-Wdeclaration-after-statement): Likewise.
11596 (-fomit-frame-pointer): Likewise.
11597 (-ftree-coalesce-inlined-vars): Likewise.
11598 (-fvisibility=): Likewise.
11599 * doc/extend.texi (Typeof): Likewise.
11600 (Zero Length): Likewise.
11601 (Escaped Newlines): Likewise.
11602 (Compound Literals): Likewise.
11603 (Function Attributes): Likewise.
11604 (Label Attributes): Likewise.
11605 (Type Attributes): Likewise.
11606 (Function Names): Likewise.
11607 (Other Builtins): Likewise.
11608 (Function Specific Option Pragmas): Likewise.
11609 (C++ Interface): Likewise.
11611 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
11613 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
11615 2015-03-11 Marek Polacek <polacek@redhat.com>
11617 PR tree-optimization/65388
11618 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
11620 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
11623 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
11624 * configure: Regenerate.
11625 * config.in: Regenerate.
11626 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
11627 [-mn-flash]: Document it.
11628 [__AVR_ARCH__]: Document avrtiny.
11630 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
11631 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
11632 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
11634 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11636 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
11638 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
11641 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
11642 allow reloads of PLUS in floating point/VSX registers.
11644 2015-03-11 Junmo Park <junmoz.park@samsung.com>
11646 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
11647 crypto_sha256_fast.
11648 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
11650 2015-03-11 Richard Biener <rguenther@suse.de>
11652 PR tree-optimization/65310
11653 * tree-sra.c (build_ref_for_offset): Also preserve larger
11656 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
11658 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
11660 2015-03-10 Jakub Jelinek <jakub@redhat.com>
11663 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
11665 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
11667 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
11669 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
11670 (sem_function::equals_wpa): ... here.
11672 2015-03-10 Marek Polacek <polacek@redhat.com>
11673 Jakub Jelinek <jakub@redhat.com>
11676 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
11677 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
11680 2015-03-10 Jakub Jelinek <jakub@redhat.com>
11683 * config/rs6000/t-linux: For powerpc64* target set
11684 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
11686 2015-03-10 Richard Biener <rguenther@suse.de>
11688 PR middle-end/44563
11689 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
11690 for redirect_all_calls.
11692 2015-03-10 Marek Polacek <polacek@redhat.com>
11694 * gdbinit.in (pcfun): Define and document.
11696 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
11698 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
11699 of libgomp-plugin.h.
11700 (find_target_compiler): Support a case when the path to gcc is
11701 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
11702 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
11703 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
11705 (main): Use GCC_INSTALL_NAME as target_driver_name.
11706 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
11708 (mkoffload.o): Remove obsolete include path and defines.
11709 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
11711 2015-03-10 Richard Biener <rguenther@suse.de>
11713 PR middle-end/63155
11714 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
11715 * tree-ssa-coalesce.c: Include timevar.h.
11716 (attempt_coalesce): Handle graph being NULL.
11717 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
11718 Split out abnormal coalescing to ...
11719 (perform_abnormal_coalescing): ... this function.
11720 (coalesce_ssa_name): Perform abnormal coalescing without computing
11722 (verify_ssa_coalescing_worker): New function.
11723 (verify_ssa_coalescing): Likewise.
11725 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
11728 * config.gcc (extra_options) [avr]: Remove.
11729 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
11730 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
11731 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
11733 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
11734 (-mmcu=): Add Var and MissingArgError properties.
11736 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
11737 * config/avr/t-multilib: Regenerate.
11738 * config/avr/specs.h: New file.
11739 * config/avr/driver-avr.c: New file.
11740 * config/avr/genopt.sh: Remove file.
11741 * config/avr/avr-tables.opt: Remove file.
11742 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
11743 * config/avr/avr-c.c: Same.
11744 * avr-arch.h: Same.
11745 (avr_current_device): Remove proto.
11746 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
11747 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
11748 (EXTRA_SPEC_FUNCTIONS): Define.
11749 (avr_devicespecs_file): New specs function proto.
11750 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
11751 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
11752 (avr_current_device): Remove definition and usage.
11753 (avr_set_core_architecture): New static function.
11754 (avr_option_override): Use it.
11755 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
11756 (mcu_name): New static array.
11757 (comparator, avr_archs_str, avr_mcus_str): New static functions.
11758 (avr_inform_devices, avr_inform_core_architectures): New functions.
11759 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
11760 (avrlibc.h) [WITH_AVRLIBC]: Include.
11761 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
11762 (print_mcu): Rewrite from scratch.
11763 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
11764 Forward to avr-specific specs defined in device-specs file.
11765 * config/avr/t-avr (driver-avr.o): New rule.
11766 (avr-devices.o): Depend on avr-arch.h.
11767 (avr-mcus): No more depend on avr-tables.opt.
11768 (avr-tables.opt): Remove rule.
11769 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
11771 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
11773 * c-family/c.opt (fchkp-use-wrappers): New.
11774 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
11775 (chkp_wrap_function): New.
11776 (chkp_build_instrumented_fndecl): Support wrapped
11778 * doc/invoke.texi (-fcheck-pointer-bounds): New.
11779 (-fchkp-check-incomplete-type): New.
11780 (-fchkp-first-field-has-own-bounds): New.
11781 (-fchkp-narrow-bounds): New.
11782 (-fchkp-narrow-to-innermost-array): New.
11783 (-fchkp-optimize): New.
11784 (-fchkp-use-fast-string-functions): New.
11785 (-fchkp-use-nochk-string-functions): New.
11786 (-fchkp-use-static-bounds): New.
11787 (-fchkp-use-static-const-bounds): New.
11788 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
11789 (-fchkp-check-read): New.
11790 (-fchkp-check-write): New.
11791 (-fchkp-store-bounds): New.
11792 (-fchkp-instrument-calls): New.
11793 (-fchkp-instrument-marked-only): New.
11794 (-fchkp-use-wrappers): New.
11795 (-static-libmpx): New.
11796 (-static-libmpxwrappers): New.
11798 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
11800 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
11801 (CHKP_SPEC): Add wrappers library.
11802 * c-family/c.opt (static-libmpxwrappers): New.
11804 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
11806 * config/i386/linux-common.h (LIBMPX_LIBS): New.
11807 (LIBMPX_SPEC): New.
11809 * gcc.c (CHKP_SPEC): New.
11810 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
11811 * c-family/c.opt (static-libmpx): New.
11813 2015-03-10 Richard Biener <rguenther@suse.de>
11815 PR middle-end/44563
11816 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
11818 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
11819 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
11820 (cgraph_add_edge_to_call_site_hash): Likewise.
11821 (cgraph_node::get_edge): Likewise.
11822 (cgraph_edge::set_call_stmt): Likewise.
11823 (cgraph_edge::remove_caller): Likewise.
11825 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
11827 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
11828 (callee_saved_gpr_regs_size): ... this.
11829 (callee_saved_regs_first_regno): Rename to ...
11830 (callee_saved_first_gpr_regno): ... this.
11831 (callee_saved_regs_last_regno) Rename to ...
11832 (callee_saved_last_gpr_regno): ... this.
11833 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
11835 (nds32_initial_elimination_offset): Likewise.
11836 (nds32_expand_prologue): Likewise.
11837 (nds32_expand_epilogue): Likewise.
11838 (nds32_expand_prologue_v3push): Likewise.
11839 (nds32_expand_epilogue_v3pop): Likewise.
11840 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
11841 Adjust renamed variables.
11842 (nds32_output_stack_pop): Likewise.
11844 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
11846 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
11849 2015-03-10 Jakub Jelinek <jakub@redhat.com>
11851 PR rtl-optimization/65321
11852 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
11854 * var-tracking.c (use_narrower_mode): Likewise.
11856 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
11858 PR tree-optimization/65355
11859 * varasm.c (notice_global_symbol): Do not produce RTL.
11860 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
11862 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
11863 check for section anchors.
11865 2015-03-10 Alan Modra <amodra@gmail.com>
11868 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
11869 to be single-arch by default. Set cpu_is_64bit for powerpc64
11870 given --with-cpu=native.
11871 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
11872 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
11874 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
11875 rs6000_isa_flags rather than TARGET_64BIT.
11877 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
11878 Kaz Kojima <kkojima@gcc.gnu.org>
11880 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
11882 2015-03-09 Jakub Jelinek <jakub@redhat.com>
11885 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
11886 on a TREE_BINFO, instead use BINFO_TYPE.
11888 2015-03-09 Richard Biener <rguenther@suse.de>
11890 PR middle-end/65270
11891 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
11892 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
11893 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
11894 of that. When comparing dereferences compare alignment.
11895 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
11897 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
11899 * ipa-inline-analysis.c (check_callers): Check
11900 node->can_remove_if_no_direct_calls_and_refs_p.
11901 (growth_likely_positive): Reorganize to call
11902 can_remove_if_no_direct_calls_p later.
11903 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
11904 will_be_removed_from_program_if_no_direct_calls_p): Add
11905 will_inline parameter.
11906 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
11907 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
11908 Handle inliner case correctly.
11910 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
11912 PR tree-optimization/63743
11913 * cfgexpand.c (reorder_operands): Also reorder if only second operand
11914 had its definition forwarded by TER.
11916 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
11919 * ipa-utils.h (types_odr_comparable): Add strict argument.
11920 * ipa-devirt.c: Fix whitespace;
11921 (odr_hasher): Remove.
11922 (odr_name_hasher, odr_vtable_hasher): New hashers.
11923 (can_be_name_hashed_p): New predicate.
11924 (hash_type_name): remove.
11925 (hash_odr_name): New.
11926 (odr_name_hasher::hash): new.
11927 (can_be_vtable_hashed_p): New.
11928 (hash_odr_vtable): New.
11929 (odr_vtable_hasher::hash): New.
11930 (types_same_for_odr): Add strict parameter.
11931 (types_odr_comparable): Likewise.
11932 (odr_name_hasher::equal): New.
11933 (odr_vtable_hasher::equal): New.
11934 (odr_name_hasher::remove): New.
11935 (odr_hash_type): Change to hash_table<odr_name_hasher>.
11936 (odr_vtable_hash_type): New.
11937 (odr_vtable_hash): New.
11938 (odr_subtypes_equivalent_p): Do strict comparsion.
11939 (add_type_duplicate): Merge type names; cleanup; avoid type
11941 (register_odr_type): Initialize vtable hash.
11942 (build_type_inheritance_graph): Likewise
11943 (get_odr_type): Reorg to use two hashes.
11944 (dump_possible_polymorphic_call_targets): Move sanity check after debug
11946 (ipa_devirt): Dump type_inheritance_graph.
11947 (types_same_for_odr): Add strict mode.
11949 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
11952 * cgraph.h (symtab_node): Add definition_alignment,
11953 can_increase_alignment_p and increase_alignment.
11954 * symtab.c (symtab_node::can_increase_alignment_p,
11955 increase_alignment_1, symtab_node::increase_alignment,
11956 symtab_node::definition_alignment): New.
11957 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
11958 can_increase_alignment_p.
11959 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
11960 * tree-vect-stmts.c (ensure_base_align): Likewise.
11961 * varasm.c (function_section_1): Use definition_alignment.
11962 (assemble_start_function): Likewise.
11963 (emit_local): likewise.
11964 (build_constant_desc): Likewsie.
11965 (output_constant_def_contents): Likewise.
11966 (place_block_symbol): Likewise.
11967 (output_object_block): Likewise.
11969 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
11972 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
11973 when outputting debug.
11975 2015-03-07 Marek Polacek <polacek@redhat.com>
11976 Martin Uecker <uecker@eecs.berkeley.edu>
11979 * doc/invoke.texi: Update description of -fsanitize=bounds.
11981 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
11983 * tree-ssa-phiopt.c (neg_replacement): Remove.
11984 (tree_ssa_phiopt_worker): Remove negate optimization.
11986 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
11989 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
11991 2015-03-06 Richard Biener <rguenther@suse.de>
11993 PR middle-end/64928
11994 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
11995 and liveout_obstack members.
11996 (calculate_live_on_exit): Remove.
11997 (calculate_live_ranges): Change declaration.
11998 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
11999 (new_tree_live_info): Adjust.
12000 (calculate_live_ranges): Delete livein when not wanted.
12001 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
12002 Deal with partly deleted live info.
12003 (loe_visit_block): Remove temporary bitmap by using
12004 bitmap_ior_and_compl_into.
12005 (live_worklist): Adjust accordingly.
12006 (calculate_live_on_exit): Make static.
12007 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
12008 we do not need livein.
12010 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
12012 * real.c (real_from_string): Fix typo in assertion.
12014 2015-03-06 Alex Velenko <alex.velenko@arm.com>
12016 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
12019 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
12021 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
12023 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
12026 * lra-assigns.c (find_hard_regno_for): Rename to
12027 find_hard_regno_for_1. Add a new parameter.
12028 (find_hard_regno_for): New function using find_hard_regno_for_1.
12030 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
12032 PR rtl-optimization/65067
12033 * expmed.c (store_bit_field, extract_bit_field): Reworked the
12034 strict volatile bitfield handling.
12036 2015-03-05 Martin Liska <mliska@suse.cz>
12039 * ipa-icf.c (sem_variable::equals): Compare variables types.
12041 2015-03-05 Richard Henderson <rth@redhat.com>
12044 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
12045 correctly check weak symbol binding.
12047 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
12049 PR middle-end/65315
12050 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
12053 2015-03-05 Martin Liska <mliska@suse.cz>
12055 * ipa-inline.c (inline_small_functions): Set default value to
12056 prevent warning during bootstrap.
12057 * tree.h: Add pragma guard that ignores false positives during
12060 2015-03-05 Richard Biener <rguenther@suse.de>
12062 PR tree-optimization/65310
12063 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
12064 Properly preserve alignment of the base of the access.
12066 2015-03-05 Richard Biener <rguenther@suse.de>
12069 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
12070 Compare dependence info.
12072 2015-03-05 Richard Biener <rguenther@suse.de>
12074 PR middle-end/65233
12075 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
12077 (walk_ssa_copies): Revert last chage. Instead do not walk
12078 SSA names registered for SSA update.
12080 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
12083 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
12084 vtable references for their containing type.
12085 (sem_function::equals_wpa): Compare TYPE_RESTRICT
12086 and type attributes.
12088 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
12090 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
12091 before negating it.
12092 * stor-layout.c (finalize_record_size): Revert latest change.
12094 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
12096 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
12098 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
12100 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
12101 for correct comdat handling.
12102 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
12104 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
12105 (used_from_object_file_p_worker): Remove.
12106 (cgraph_node::only_called_directly_or_alised): Add
12107 used_from_object_file_p.
12108 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
12109 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
12110 can_remove_if_no_direct_calls_and_refs_p.
12112 2015-03-04 Nick Clifton <nickc@redhat.com>
12114 * config/rl78/rl78.h (enum reg_class): Remove real registers from
12115 General register class.
12116 * config/rl78/rl78-real.md: Replace general register constraints
12117 with real+virtual register constraints.
12119 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12121 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
12122 from checking for -mhtm option.
12124 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
12126 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
12127 (struct ipa_sra_check_caller_data): Add has_thunk field.
12128 (ipa_sra_check_caller): Check for thunk.
12129 (ipa_sra_preliminary_function_checks): Give up on function with
12131 (ipa_early_sra): Use call_for_symbol_and_aliases.
12133 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
12136 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
12137 called for __stack_chk_guard symbol.
12139 2015-03-03 DJ Delorie <dj@redhat.com>
12141 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
12143 (*addhi3_real): Likewise.
12144 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
12145 pattern to match incrementing memory.
12146 * config/rl78/predicates.md (rl78_1_2_operand): New.
12147 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
12148 it's the same and only mem.
12149 (rl78_alloc_physical_registers_op2): If there's effectively only
12150 one MEM, transcode it into HL.
12151 (rl78_far_p): Reject addresses that aren't legitimate.
12153 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
12155 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
12158 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
12160 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
12162 Implement call0 ABI for xtensa
12163 * config/xtensa/constraints.md ("a" constraint): Include stack
12164 pointer in case of call0 ABI.
12165 ("q" constraint): Make empty in case of call0 ABI.
12166 ("D" constraint): Include stack pointer in case of call0 ABI.
12167 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
12168 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
12170 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
12172 (xtensa_regno_to_class): Make it a local variable in the
12173 function xtensa_regno_to_class.
12174 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
12175 macro, function prototype and implementation.
12176 (reg_nonleaf_alloc_order): Make it a local variable in the
12177 function order_regs_for_local_alloc.
12178 (xtensa_conditional_register_usage): New function.
12179 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
12180 (xtensa_valid_move): Allow direct moves to stack pointer
12181 register in call0 ABI.
12182 (xtensa_setup_frame_addresses): Only spill register windows in
12184 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
12185 call0 ABI respectively.
12186 (xtensa_function_arg_1): Only mark a7 register for copying in
12188 (xtensa_call_save_reg): New function.
12189 (compute_frame_size): Add space for callee saved register
12190 storage to the frame size in call0 ABI.
12191 (xtensa_expand_prologue): Generate code to set up stack frame
12192 and save callee-saved registers in call0 ABI.
12193 (xtensa_expand_epilogue): New function.
12194 (xtensa_set_return_address): New function.
12195 (xtensa_return_addr): Calculate return address in call0 ABI.
12196 (xtensa_builtin_saveregs): Only mark a7 register for copying and
12197 emit copying code in windowed ABI.
12198 (order_regs_for_local_alloc): Add preferred register allocation
12199 order for non-leaf function in call0 ABI.
12200 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
12201 (xtensa_asm_trampoline_template): Add trampoline generation for
12203 (xtensa_trampoline_init): Add trampoline initialization for
12205 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
12207 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
12208 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
12209 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
12210 ABI call-used registers.
12211 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
12212 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
12214 (REG_CLASS_CONTENTS): Include all registers into the preferred
12215 reload registers set, adjust the set in the
12216 xtensa_conditional_register_usage.
12217 (xtensa_regno_to_class): Drop variable declaration.
12218 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
12220 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
12222 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
12223 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
12224 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
12225 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
12226 location in call0 ABI.
12227 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
12228 stack adjustment size when handling exception.
12229 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
12230 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
12232 ("return" pattern): Generate ret.n/ret in call0 ABI.
12233 ("epilogue" pattern): Expand epilogue.
12234 ("nonlocal_goto" pattern): Use default in call0 ABI.
12235 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
12236 emit eh_set_a0_* depending on ABI.
12237 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
12238 ("eh_set_a0_call0", "blockage"): New patterns.
12240 2015-03-03 Martin Liska <mliska@suse.cz>
12243 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
12245 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
12248 * config/rs6000/rs6000-tables.opt: Regenerate table.
12250 2015-03-03 Renlin Li <renlin.li@arm.com>
12252 * doc/md.texi (@item ^): Change ? into ^.
12254 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
12256 * doc/tm.texi: Regenerated.
12258 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
12260 * builtins.c (expand_builtin_return_addr): Add
12261 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
12262 surrounding #ifdef.
12263 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
12265 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
12267 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
12269 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
12272 2015-03-03 Martin Jambor <mjambor@suse.cz>
12273 Eric Botcazou <ebotcazou@adacore.com>
12275 * tree-sra.c (ipa_sra_check_caller_data): New type.
12276 (has_caller_p): Removed.
12277 (ipa_sra_check_caller): New function.
12278 (ipa_sra_preliminary_function_checks): Use it.
12280 2015-03-03 Martin Liska <mliska@suse.cz>
12282 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
12283 instead of if branch.
12285 2015-03-03 Martin Liska <mliska@suse.cz>
12288 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
12290 2015-03-23 Jeff Law <law@redhat.com>
12292 PR tree-optimization/65241
12293 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
12294 hash table if INSERT is true.
12296 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
12299 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
12301 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
12304 * config/avr/avr.c (context.h, tree-pass.h): Include them.
12305 (avr_pass_data_recompute_notes): New static variable.
12306 (avr_pass_recompute_notes): New class.
12307 (avr_register_passes): New static function.
12308 (avr_option_override): Call it.
12310 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
12312 Fix various problems with specs file generation.
12315 * config.gcc (extra_gcc_objs) [avr]: Remove.
12316 * config/avr/driver-avr.c: Remove file.
12317 * config/avr/t-avr (driver-avr.o): Remove rule.
12318 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
12319 INCLUDES to build. Depend on TM_H.
12320 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
12321 build warnings. Fix non-matching types and non-existing %-codes.
12323 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
12324 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
12325 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
12326 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
12327 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
12328 (LIBGCC_SPEC): Remove definitions.
12330 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
12332 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
12333 to create a register in testing mode.
12335 2015-03-03 Martin Liska <mliska@suse.cz>
12336 Jan Hubicka <hubicka@ucw.cz>
12339 * cgraph.c (cgraph_node::has_thunk_p): New function.
12340 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
12341 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
12342 (sem_function::merge): Assert is changed.
12344 2015-03-03 Martin Liska <mliska@suse.cz>
12345 Martin Jambor <mjambor@suse.cz>
12348 * ipa-icf.c (sem_item_optimizer::execute): Change function
12349 return value to boolean.
12350 (sem_item_optimizer::merge_classes): Likewise.
12351 (ipa_icf_driver): Return TODO_remove_functions in case there's
12352 a merge operation processed.
12353 * ipa-icf.h: Change function return value to boolean.
12355 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12358 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
12359 processor type for 64-bit little endian PowerPC.
12361 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
12362 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
12363 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
12364 printing built-in mask so it does not pass NULL pointers.
12366 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
12369 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
12372 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
12373 !ISA_HAS_FP_CONDMOVE.
12375 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
12377 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
12380 2015-03-02 Ulrich Drepper <drepper@gmail.com>
12382 * doc/invoke.texi (Options for Code Generation Conventions):
12383 Fix URL of DSO paper.
12385 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
12388 * ipa-inline.c (check_callers): Looks for recursion.
12389 (inline_to_all_callers): Give up on uninlinable or recursive edges.
12390 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
12391 summary of inline clones.
12392 (do_estimate_growth_1): Fix recursion check.
12394 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
12397 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
12400 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
12401 Aldy Hernandez <aldyh@redhat.com>
12404 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
12405 when checking TYPE_BINFO.
12407 2015-03-02 Richard Biener <rguenther@suse.de>
12410 * ipa-icf-gimple.c: Include builtins.h.
12411 (func_checker::compare_memory_operand): Compare base alignment.
12413 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
12416 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
12417 are never passed by reference.
12419 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
12422 * tree-chkp.c (chkp_check_lower): Don't check against
12423 zero bounds for already instrumented functions.
12424 (chkp_check_upper): Likewise.
12425 (chkp_fini): Clean pass local data to avoid wrong reusage.
12427 2015-02-28 Martin Liska <mliska@suse.cz>
12428 Jan Hubicka <hubicka@ucw.cz>
12430 * ipa-icf.c (sem_variable::equals): Improve debug output;
12431 get variable constructor.
12432 (sem_variable::parse): Do not filter out too early; give up on
12433 volatile and register vars.
12434 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
12436 * ipa-icf.h (sem_variable::init): Do not set ctor.
12437 (sem_variable::ctor): Remove.
12439 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
12441 PR middle-end/65233
12442 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
12444 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
12446 * ipa-icf.c: Include stor-layout.h
12447 (sem_function::compare_cgraph_references): Rename to ...
12448 (sem_item::compare_cgraph_references): ... this one.
12449 (sem_variable::equals_wpa): New function
12450 (sem_variable::equals): Do not check stuff already verified by
12452 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
12453 * ipa-icf.h (sem_item): Add compare_cgraph_references.
12454 (sem_function): Remove compare_cgraph_references.
12455 (sem_variable): Turns equals_wpa into non-inline.
12457 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
12459 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
12460 (sem_item::add_expr): New function.
12461 (sem_function::hash_stmt): Handle operands of most statements.
12462 (sem_variable::get_hash): Hash the actual constructor.
12463 * ipa-icf.h (sem_item): Add add_expr.
12464 (sem_function): Update prototype of hash_stmt
12466 2015-02-28 Martin Liska <mliska@suse.cz>
12467 Jan Hubicka <hubicka@ucw.cz>
12470 * ipa-icf-gimple.c (func_checker::compare_function_decl):
12472 (func_checker::compare_variable_decl): Skip symtab vars.
12473 (func_checker::compare_cst_or_decl): Update.
12474 * ipa-icf.c (sem_function::parse): Do not consider aliases.
12475 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
12476 use correct symtab predicates.
12477 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
12478 (sem_variable::parse): Update comment.
12479 (sem_item_optimizer::build_graph): Consider ultimate aliases
12482 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
12484 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
12487 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
12489 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
12490 (sem_variable::merge) Likewise.
12492 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
12494 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
12495 target; also match flag_ipa_devirt.
12497 2015-03-01 Martin Liska <mliska@suse.cz>
12498 Jan Hubicka <hubicka@ucw.cz>
12500 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
12501 Validate variable alignment.
12502 * ipa-icf.c (sem_function::equals_private): Be more precise
12503 about non-common function attributes.
12504 (sem_variable::equals): Likewise.
12506 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
12509 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
12510 across COMDAT group boundary.
12512 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
12515 * ipa-icf.c (clear_decl_rtl): New function.
12516 (sem_function::merge): Clear RTL before forming alias.
12517 (sem_variable::merge): Clear RTL before forming alias.
12519 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
12522 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
12524 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
12526 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
12529 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
12531 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
12532 a typo in the description.
12534 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
12537 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
12538 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
12539 * lra-constraints.c: Include "params.h".
12540 (EBB_PROBABILITY_CUTOFF): Use
12541 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
12542 (lra_inheritance): Use '<' instead of '<=' for
12543 EBB_PROBABILITY_CUTOFF.
12544 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
12547 2015-02-27 Martin Liska <mliska@suse.cz>
12549 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
12550 vector length condition.
12552 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
12554 * doc/extend.texi (x86 transactional memory intrinsics):
12555 Reorganize discussion of _xbegin. Clarify that the return
12556 value is a bit mask. Expand example and move to end of section.
12558 2015-02-26 Jakub Jelinek <jakub@redhat.com>
12559 Aldy Hernandez <aldyh@redhat.com>
12561 PR rtl-optimization/65220
12562 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
12564 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
12567 * lra-remat.c (update_scratch_ops): New.
12568 (do_remat): Call it.
12569 * lra.c (lra_register_new_scratch_op): New. Take code from ...
12570 (remove_scratches): ... here.
12571 * lra-int.h (lra_register_new_scratch_op): New prototype.
12573 2015-02-27 Marek Polacek <polacek@redhat.com>
12576 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
12577 -Wformat-signedness anymore.
12579 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12581 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
12583 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
12585 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12587 * config/s390/s390.c (enum s390_builtin):
12588 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
12589 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
12590 (s390_init_builtins): Generate new builtin functions.
12591 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
12592 (s390_sfpc, s390_efpc): New pattern definitions.
12594 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12596 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
12597 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
12598 (s390_builtin_decls): New array.
12599 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
12600 (s390_builtin_decl): New function.
12601 (TARGET_BUILTIN_DECL): Define macro.
12603 2015-02-27 Richard Biener <rguenther@suse.de>
12605 PR middle-end/63175
12606 * builtins.c (get_object_alignment_2): Make sure to re-apply
12607 the ANDed mask after recursing to its operand gets us a new
12608 misalignment bit position.
12610 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
12611 Martin Liska <mliska@suse.cz>
12614 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
12615 Use address_matters_p.
12616 (redirect_all_callers, set_addressable): New functions.
12617 (sem_function::merge): Reorganize and fix merging issues.
12618 (sem_variable::merge): Likewise.
12619 (sem_variable::compare_sections): Remove.
12620 * common.opt (fmerge-all-constants, fmerge-constants): Remove
12622 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
12624 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
12626 (address_matters_1): New function.
12627 (symtab_node::address_matters_p): New function.
12628 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
12629 check for merged flag.
12630 * cgraph.h (address_matters_p): Declare.
12631 (symtab_node::address_taken_from_non_vtable_p): Remove.
12632 (symtab_node::address_can_be_compared_p): New method.
12633 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
12634 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
12636 (comdat_can_be_unshared_p_1) Use address_matters_p.
12637 (update_vtable_references): Fix formating.
12638 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
12639 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
12640 * cgraphclones.c: Preserve merged and icf_merged flags.
12642 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
12644 * doc/extend.texi (Function Attributes): Fix spelling and typos.
12645 (Label Attributes): Likewise.
12646 (Cilk Plus Builtins): Likewise.
12647 (ARC SIMD Built-in Functions): Likewise.
12648 (ARM C Language Extensions (ACLE)): Likewise.
12649 (PowerPC Built-in Functions): Likewise.
12650 (PowerPC Hardware Transactional Memory Built-in Functions):
12653 2015-02-26 Jakub Jelinek <jakub@redhat.com>
12655 PR tree-optimization/65216
12656 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
12657 new stmt and new SSA_NAME for lhs whenever the arguments have
12658 changed and weren't just swapped. Fix comment typo.
12660 PR tree-optimization/65215
12661 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
12662 for PDP endian targets.
12663 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
12664 Fix up formatting issues.
12665 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
12666 size is smaller than the original, adjust MEM_REF offset by the
12667 difference of sizes. Use is_gimple_mem_ref_addr instead of
12668 is_gimple_min_invariant test to avoid adding address temporaries.
12670 2015-02-26 Martin Liska <mliska@suse.cz>
12671 Jan Hubicka <hubicka@ucw.cz>
12674 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
12675 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
12676 (sem_item_optimizer::process_cong_reduction): Include division by
12677 sensitive references.
12678 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
12679 * ipa-ref.c (ipa_ref::address_matters_p): New function.
12680 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
12682 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
12685 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
12687 * config/avr/avr.c: Same.
12688 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
12689 Refuse any constant address not in 0..0xbf.
12690 * config/avr/avr.md (*mov<mode>, *movsf): Remove
12691 tiny_valid_direct_memory_access_range from insn conditions.
12692 (mov<mode>): Don't special-case expansion of avrtiny addresses.
12694 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
12697 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
12698 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
12699 * config/sh/predicates.md (const_logical_operand): New predicate.
12700 * config/sh/sh.md: Add new peephole2 patterns.
12702 2015-02-26 Marek Polacek <polacek@redhat.com>
12705 * ipa-inline.c (early_inliner): Recompute inline parameters.
12707 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12710 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
12711 instructions with TImode operands are included in the analysis.
12713 2015-02-26 Sebastian Pop <s.pop@samsung.com>
12715 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
12716 of an EDGE_FSM_THREAD.
12718 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
12720 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
12722 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
12725 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
12727 2015-02-26 Sebastian Pop <s.pop@samsung.com>
12729 PR tree-optimization/65048
12730 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
12731 (thread_through_all_blocks): Call valid_jump_thread_path.
12732 Remove invalid FSM jump-thread paths.
12734 2015-02-26 Jakub Jelinek <jakub@redhat.com>
12736 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
12737 (ipa_write_optimization_summaries): Likewise.
12738 * tree-streamer.h: Include data-streamer.h.
12739 (streamer_mode_table): Declare extern variable.
12740 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
12741 * lto-streamer-out.c (lto_output_init_mode_table,
12742 lto_write_mode_table): New functions.
12743 (produce_asm_for_decls): Call lto_write_mode_table when streaming
12745 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
12746 (lto_create_simple_input_block): Add mode_table argument to the
12747 lto_input_block constructors.
12748 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
12750 * data-streamer-in.c (string_for_index): Likewise.
12751 * ipa-inline-analysis.c (inline_read_section): Likewise.
12752 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
12753 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
12754 * lto-streamer-in.c (lto_read_body_or_constructor,
12755 lto_input_toplevel_asms): Likewise.
12756 (lto_input_mode_table): New function.
12757 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
12758 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
12759 Use bp_pack_machine_mode.
12760 * real.h (struct real_format): Add name field.
12761 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
12762 (class lto_input_block): Add mode_table member.
12763 (lto_input_block::lto_input_block): Add mode_table_ argument,
12764 initialize mode_table.
12765 (struct lto_file_decl_data): Add mode_table field.
12766 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
12767 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
12768 unpack_ts_decl_common_value_fields,
12769 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
12770 * tree-streamer.c (streamer_mode_table): New variable.
12771 * real.c (ieee_single_format, mips_single_format,
12772 motorola_single_format, spu_single_format, ieee_double_format,
12773 mips_double_format, motorola_double_format,
12774 ieee_extended_motorola_format, ieee_extended_intel_96_format,
12775 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
12776 ibm_extended_format, mips_extended_format, ieee_quad_format,
12777 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
12778 decimal_single_format, decimal_double_format, decimal_quad_format,
12779 ieee_half_format, arm_half_format, real_internal_format): Add name
12781 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
12783 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
12786 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
12787 reordering for selective scheduling.
12789 2015-02-26 Terry Guo <terry.guo@arm.com>
12791 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
12792 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
12793 (arm_arch_no_volatile_ce): Declare new global variable.
12794 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
12795 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
12796 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
12797 (TARGET_NO_VOLATILE_CE): New macro.
12798 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
12799 volatile memory access in IT block
12801 2015-02-25 Kai Tietz <ktietz@redhat.com>
12803 PR tree-optimization/61917
12804 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
12805 that reduc_def_stmt is null.
12807 2015-02-25 Martin Liska <mliska@suse.cz>
12809 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
12810 hard register variables.
12812 2015-02-25 Kai Tietz <ktietz@redhat.com>
12815 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
12816 (symtab::noninterposable_alias): Likewise.
12818 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
12821 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
12823 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
12825 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
12828 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
12829 as split condition; force split via '#' in output pattern.
12831 2015-02-25 Richard Biener <rguenther@suse.de>
12832 Kai Tietz <ktietz@redhat.com>
12834 PR tree-optimization/61917
12835 * tree-vect-loop.c (vectorizable_reduction): Allow
12836 vect_internal_def without reduction to exit graceful.
12838 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
12841 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
12842 only with NONDEBUG_INSN_P.
12844 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
12846 Use variadic macros with avr-log.c.
12848 * config/avr/avr-protos.h (avr_vdump): New prototype.
12849 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
12850 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
12851 * config/avr/avr-log.c: Adjust comments.
12852 (avr_vdump): New function.
12853 (avr_vadump): Pass caller as 2nd argument instead of format string.
12854 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
12855 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
12857 2015-02-25 Jakub Jelinek <jakub@redhat.com>
12860 * target.def (target_option_stream_in): New target hook.
12861 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
12862 targetm.target_option.post_stream_in if non-NULL.
12863 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
12864 * doc/tm.texi: Updated.
12865 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
12867 (TARGET_OPTION_POST_STREAM_IN): Redefine.
12869 2015-02-24 Jeff Law <law@redhat.com>
12872 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
12873 of operand 0 and operand 2.
12874 (zero_cost_loop_end, loop_end): Similarly.
12876 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
12878 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
12881 2015-02-24 DJ Delorie <dj@redhat.com>
12883 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
12884 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
12885 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
12886 instead of hardcoding SImode.
12888 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
12890 * omp-low.c (create_omp_child_function): Tag entrypoint
12891 functions with a special attribute.
12893 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
12896 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
12898 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
12900 PR rtl-optimization/65123
12901 * lra-remat.c (operand_to_remat): Check hard regs in insn
12904 2015-02-24 Nick Clifton <nickc@redhat.com>
12906 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
12909 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
12912 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
12913 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
12914 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
12915 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
12916 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
12917 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
12918 (BUILT_IN_GOACC_PARALLEL): Specify as
12919 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
12920 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
12921 * builtin-types.def
12922 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
12923 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
12924 Remove function types.
12925 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
12926 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
12927 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
12928 New function types.
12930 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
12932 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
12934 2015-02-24 Jakub Jelinek <jakub@redhat.com>
12936 PR tree-optimization/65170
12937 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
12938 if val[1] < 0, clear also val[2] and return 3.
12940 2015-02-24 Alan Modra <amodra@gmail.com>
12943 * config/rs6000/rs6000.c (get_memref_parts): Only return true
12944 when *base is a reg. Handle nested plus addresses. Simplify
12947 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
12949 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
12950 use natural alignment when optimizing for size.
12952 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
12955 * config/sh/sh.md (movsicc_true+3): Remove peephole.
12956 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
12957 * config/sh/sh.c (replace_n_hard_rtx): Remove.
12959 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
12962 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
12963 too big for a wide_int. Implement missing wrapping operation.
12965 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
12968 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
12969 instead of const_int 4294901760.
12971 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
12973 * config/avr/t-avr: Fix typo in comment.
12975 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
12977 * doc/rtl.texi (fma): Clarify documentation.
12979 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
12982 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
12983 over input_location.
12985 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
12987 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
12988 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
12989 restrict alignments to absolute_biggest_alignment.
12990 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
12992 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
12993 * doc/tm.texi: Regenerate.
12994 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
12996 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
12999 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
13001 2015-02-20 Richard Biener <rguenther@suse.de>
13003 PR tree-optimization/65136
13004 * tree-ssa-propagate.c: Include cfgloop.h.
13005 (replace_phi_args_in): Avoid replacing loop latch edge PHI
13006 arguments with constants.
13008 2015-02-20 Jakub Jelinek <jakub@redhat.com>
13009 Martin Liska <mliska@suse.cz>
13012 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
13013 don't try to create_thunk if stdarg_p. If
13014 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
13015 redirect_callers if possible.
13016 (sem_item_optimizer::execute): Call unregister_hooks here...
13017 (ipa_icf_driver): ... instead of here.
13019 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13021 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
13022 Mark operand 0 as earlyclobber in 2nd alternative.
13023 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
13024 Write negated shift amount into QI lowpart operand 0 and use it
13026 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
13028 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
13030 * cgraph.h (clone_function_name_1): Declare.
13031 * cgraphclones.c (clone_function_name_1): New function.
13032 (clone_function_name): Use it.
13033 * lto-partition.c: Include "stringpool.h".
13034 (must_not_rename, maybe_rewrite_identifier)
13035 (validize_symbol_for_target): New static functions.
13036 (privatize_symbol_name): Use must_not_rename.
13037 (promote_symbol): Call validize_symbol_for_target.
13038 (lto_promote_cross_file_statics): Likewise.
13039 (lto_promote_statics_nonwpa): Likewise.
13041 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
13044 * config/avr/avr.md (pushhi_insn): New insn.
13045 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
13047 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
13048 Jakub Jelinek <jakub@redhat.com>
13050 * tree-streamer.c (preload_common_nodes): Don't preload
13051 TI_VA_LIST* for offloading.
13052 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
13055 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
13057 * config/pa/pa.c (pa_emit_move_sequence): Always force
13058 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
13061 * config/pa/pa.c (pa_reloc_rw_mask): New function.
13062 (TARGET_ASM_RELOC_RW_MASK): Define.
13063 (pa_cannot_force_const_mem): Revert previous change.
13065 2015-02-19 Martin Jambor <mjmabor@suse.cz>
13066 Jan Hubicka <hubicka@ucw.cz>
13069 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
13070 across jump functions.
13072 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
13074 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
13076 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
13078 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
13080 2015-02-19 Richard Henderson <rth@redhat.com>
13082 PR middle-end/65074
13083 * varasm.c (default_binds_local_p_2): Don't test node->definition;
13084 test DECL_EXTERNAL independent of symtab_node.
13086 2015-02-19 Jakub Jelinek <jakub@redhat.com>
13089 * varpool.c (varpool_node::get_constructor): Return early
13090 if this->lto_file_data is NULL.
13092 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
13094 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
13095 (rank_for_schedule_debug): Update.
13096 (ready_sort): Make static. Move sorting logic to ...
13097 (ready_sort_debug, ready_sort_real): New static functions.
13098 (schedule_block): Sort both debug insns and real insns in preparation
13099 for ready list trimming. Improve debug output.
13100 * sched-int.h (ready_sort): Remove global declaration.
13102 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
13104 * ipa-icf.c (sem_function::equals_private): Adjust.
13105 (sem_function::bb_dict_test): Take a vec<int> * instead of
13107 * ipa-icf.h (bb_dict_test): Likewise.
13109 2015-02-18 Jakub Jelinek <jakub@redhat.com>
13111 PR gcov-profile/64634
13112 * tree-eh.c (frob_into_branch_around): Fix up typos
13113 in function comment.
13114 (lower_catch): Put eh_seq resulting from EH lowering of
13115 the cleanup sequence after the cleanup rather than before it.
13117 2015-02-18 Tom de Vries <tom@codesourcery.com>
13119 * common.opt (fstdarg-opt): New option.
13120 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
13121 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
13122 (@item -fstdarg-opt): New item.
13124 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
13127 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
13128 for common symbols.
13130 2015-02-18 Jakub Jelinek <jakub@redhat.com>
13132 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
13134 (ALL_HOST_OBJS): Add mkoffload.o.
13135 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
13137 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
13139 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
13140 (compare_virtual_tables): Be smarter about skipping typeinfos;
13141 do sane output on virtual table table mismatch.
13142 (warn_odr): Be ready for forward declarations of enums;
13143 output sane info on base mismatch and virtual table mismatch.
13144 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
13145 when only one type is polymorphic.
13146 (get_odr_type): Fix hashtable corruption.
13147 (dump_odr_type): Dump mangled names.
13149 2015-02-18 Richard Biener <rguenther@suse.de>
13151 PR tree-optimization/65063
13152 * tree-predcom.c (determine_unroll_factor): Return 1 if we
13153 have replaced looparound PHIs.
13155 2015-02-18 Martin Liska <mliska@suse.cz>
13157 * lto-streamer.c (lto_streamer_init): Encapsulate
13158 streamer_check_handled_ts_structures with checking macro.
13160 2015-02-18 Jakub Jelinek <jakub@redhat.com>
13163 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
13164 section if !implicit_section.
13165 (cgraph_node::create_version_clone_with_body): Likewise.
13166 * trans-mem.c (ipa_tm_create_version): Likewise.
13168 2015-02-18 Richard Biener <rguenther@suse.de>
13170 PR tree-optimization/62217
13171 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
13174 2015-02-18 Marek Polacek <polacek@redhat.com>
13177 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
13178 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
13179 is in range [-16K, -1]. Don't issue run-time error if
13180 (ptr > ptr + offset).
13182 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
13184 * doc/install.texi (nvptx-*-none): New section.
13185 * doc/invoke.texi (Nvidia PTX Options): Likewise.
13186 * config/nvptx/nvptx.opt: Update.
13188 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
13189 (access_check): New functions, copied from
13190 config/i386/intelmic-mkoffload.c.
13191 (main): For non-installed testing, look in all COMPILER_PATHs for
13194 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
13196 2015-02-18 Andrew Pinski <apinski@cavium.com>
13197 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13199 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
13200 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
13202 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
13204 * ipa-visibility.c (function_and_variable_visibility): Only
13205 check locality if node is not already local.
13206 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
13207 call_for_symbol_and_aliases instead of
13208 call_for_symbol_thunks_and_aliases.
13209 (ipa_inline): Likewise.
13210 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
13211 first walk aliases.
13212 * ipa.c (symbol_table::remove_unreachable_nodes): Use
13213 call_for_symbol_and_aliases.
13214 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
13215 (ipa_propagate_frequency_1): Use it; use opt_for_fn
13216 (ipa_propagate_frequency): Update.
13217 (ipa_profile): Add opt_for_fn gueards.
13219 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
13221 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
13222 * doc/invoke.texi (SH options): Document it.
13223 * config/sh/sh.c (sh_insn_length_adjustment): Check
13224 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
13226 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
13228 * common.opt (fipa-cp-alignment): New.
13229 * ipa-cp.c (ipcp_store_alignment_results): Check
13230 flag_ipa_cp_alignment.
13231 * opts.c (default_options_table): Enable -fipa-cp-alignment for
13233 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
13234 * doc/invoke.texi: Document -fipa-cp-alignment.
13236 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
13239 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
13240 to nil. Adjust comments.
13242 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
13244 * ipa-visibility.c (function_and_variable_visibility): Only
13245 check locality if node is not already local.
13246 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
13247 call_for_symbol_and_aliases instead of
13248 call_for_symbol_thunks_and_aliases.
13249 (ipa_inline): Likewise.
13250 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
13251 first walk aliases.
13252 * ipa.c (symbol_table::remove_unreachable_nodes): Use
13253 call_for_symbol_and_aliases.
13254 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
13255 (ipa_propagate_frequency_1): Use it; use opt_for_fn
13256 (ipa_propagate_frequency): Update.
13257 (ipa_profile): Add opt_for_fn guards.
13259 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
13261 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
13262 skipping of "strange" tokens.
13264 2015-02-17 Jeff Law <law@redhat.com>
13266 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
13269 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
13271 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
13272 as forcing a HARD_DEP between instructions, thereby
13273 disallowing rewriting to break dependencies.
13275 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
13277 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
13278 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
13279 variables in boundary that have no inlitalizer encoded and are
13281 * varasm.c (default_binds_local_p_2): External definitions do not
13282 count as definitions here.
13284 2015-02-16 Jeff Law <law@redhat.com>
13286 PR tree-optimization/64823
13287 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
13289 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
13290 threading through blocks with PHIs, but no statements.
13291 (thread_through_normal_block): Distinguish between blocks where
13292 we did not process all the statements and blocks with no statements.
13294 2015-02-16 Jakub Jelinek <jakub@redhat.com>
13295 James Greenhalgh <james.greenhalgh@arm.com>
13298 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
13299 section if not linkonce. Fix up formatting.
13300 (cgraph_node::create_version_clone_with_body): Copy section.
13301 * trans-mem.c (ipa_tm_create_version): Likewise.
13303 2015-02-16 Richard Biener <rguenther@suse.de>
13305 PR tree-optimization/65077
13306 * tree-ssa-structalias.c (get_constraint_for_1): Handle
13307 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
13308 (find_func_aliases): Allow float values to carry pointers again.
13310 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
13312 * doc/install.texi (Specific): Reorder targets list to put
13313 aarch64 in alphabetical order. Add a link to aarch64*-*-*
13316 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
13317 David Edelsohn <dje.gcc@gmail.com>
13320 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
13321 mapping class to external variable or function reference.
13322 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
13325 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
13328 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
13329 ASM_WEAKEN_DECL if defined.
13331 2015-02-16 Richard Biener <rguenther@suse.de>
13334 * varasm.c (default_file_start): For LTO produced units
13335 emit <artificial> as file directive.
13337 2015-02-16 Richard Biener <rguenther@suse.de>
13339 PR tree-optimization/63593
13340 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
13341 stmts and releasing SSA names until...
13342 (execute_pred_commoning): ... after processing all chains.
13344 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
13347 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
13348 external functions.
13350 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
13352 * doc/bugreport.texi: Adjust section titles throughout the file
13353 to use "Title Case".
13354 * doc/extend.texi: Likewise.
13355 * doc/gcov.texi: Likewise.
13356 * doc/implement-c.texi: Likewise.
13357 * doc/implement-cxx.texi: Likewise.
13358 * doc/invoke.texi: Likewise.
13359 * doc/objc.texi: Likewise.
13360 * doc/standards.texi: Likewise.
13361 * doc/trouble.texi: Likewise.
13363 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
13365 * cgraph.h (symtab_node::has_aliases_p): Simplify.
13366 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
13367 * tree.c (lookup_binfo_at_offset): Make static.
13368 (get_binfo_at_offset): Do not shadow offset; add explanatory
13371 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
13373 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
13374 for all floading point loads and stores except those using a register
13376 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
13379 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
13381 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
13382 (do_estimate_growth_1): Record if any uninlinable edge was seen.
13383 (estimate_growth): Handle uninlinable edges correctly.
13384 (check_callers): New.
13385 (growth_likely_positive): Handle aliases correctly.
13387 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
13389 * ipa-chkp.c: Use iterate_direct_aliases.
13390 * symtab.c (resolution_used_from_other_file_p): Move inline.
13391 (symtab_node::create_reference): Fix formating.
13392 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
13393 (symtab_node::iterate_reference): Move inline.
13394 (symtab_node::iterate_referring): Move inline.
13395 (symtab_node::iterate_direct_aliases): Move inline.
13396 (symtab_node::used_from_object_file_p_worker): Inline into ...
13397 (symtab_node::used_from_object_file_p): ... this one; move inline.
13398 (symtab_node::call_for_symbol_and_aliases): Move inline;
13399 use iterate_direct_aliases.
13400 (symtab_node::call_for_symbol_and_aliases_1): New method.
13401 (cgraph_node::call_for_symbol_and_aliases): Move inline;
13402 use iterate_direct_aliases.
13403 (cgraph_node::call_for_symbol_and_aliases_1): New method.
13404 (varpool_node::call_for_node_and_aliases): Rename to ...
13405 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
13406 use iterate_direct_aliases.
13407 (varpool_node::call_for_symbol_and_aliases_1): New method.
13408 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
13409 (ipa_discover_readonly_nonaddressable_var): Update.
13410 * ipa-devirt.c: Fix formating.
13411 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
13413 (cgraph_node::call_for_symbol_and_aliases): Move inline.
13414 (cgraph_node::call_for_symbol_and_aliases_1): New function..
13415 * cgraph.h (used_from_object_file_p_worker): Remove.
13416 (resolution_used_from_other_file_p): Move inline.
13417 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
13418 (symtab_node::iterate_reference): Move inline.
13419 (symtab_node::iterate_referring): Move inline.
13420 (symtab_node::iterate_direct_aliases): Move inline.
13421 (symtab_node::used_from_object_file_p_worker): Inline into ...
13422 (symtab_node::used_from_object_file_p): Move inline.
13423 * tree-emutls.c (ipa_lower_emutls): Update.
13424 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
13425 (varpool_node::call_for_node_and_aliases): Remove.
13427 2015-02-14 Jakub Jelinek <jakub@redhat.com>
13429 PR tree-optimization/62209
13430 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
13431 op == range->exp, insert seq and gimplified code after labels
13432 instead of after the phi.
13434 2015-02-13 Jeff Law <law@redhat.com>
13437 Revert my change for tree-optimization/64823.
13439 2015-02-13 Jakub Jelinek <jakub@redhat.com>
13441 PR tree-optimization/65053
13442 * tree-ssa-phiopt.c (value_replacement): When moving assign before
13443 cond, either reset VR on lhs or set it to phi result VR.
13445 2015-02-13 Jeff Law <law@redhat.com>
13447 PR tree-optimization/64823
13448 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
13449 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
13450 threading through blocks with PHIs, but no statements.
13451 (thread_through_normal_block): Distinguish between blocks where
13452 we did not process all the statements and blocks with no statements.
13454 PR rtl-optimization/47477
13455 * match.pd (convert (plus/minus (convert @0) (convert @1): New
13456 simplifier to narrow arithmetic.
13458 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
13461 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
13462 polymorphic call info when type is not known to be preserved.
13464 2015-02-13 Maritn Jambor <mjambor@suse.cz>
13467 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
13468 (inline_call): Use it.
13470 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
13472 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
13473 GOMP_DEVICE_NVIDIA_PTX.
13475 2015-02-13 Jakub Jelinek <jakub@redhat.com>
13478 * stmt.c (emit_case_nodes): Use void_type_node instead of
13479 NULL_TREE as LABEL_DECL type.
13481 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
13483 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
13485 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
13486 symbolic references to data to be forced to constant memory on the
13489 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
13491 PR tree-optimization/65002
13492 * tree-cfg.c (pass_data_fixup_cfg): Don't update
13494 * tree-sra.c (some_callers_have_no_vuse_p): New.
13495 (ipa_early_sra): Reject functions whose callers
13496 assume function is read only.
13498 2015-02-13 Richard Biener <rguenther@suse.de>
13501 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
13502 for LTO produced CUs.
13504 2015-02-13 Bin Cheng <bin.cheng@arm.com>
13506 PR tree-optimization/64705
13507 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
13508 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
13509 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
13510 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
13511 expand_simple_operations.
13513 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
13514 Richard Henderson <rth@redhat.com>
13517 * cgraphunit.c (cgraph_node::finalize_function): Set definition
13518 before notice_global_symbol.
13519 (varpool_node::finalize_decl): Likewise.
13520 * varasm.c (default_binds_local_p_2): Rename from
13521 default_binds_local_p_1, add weak_dominate argument. Use direct
13522 returns instead of assigning to local variable. Unify varpool and
13523 cgraph paths via symtab_node. Reject undef weak variables before
13524 testing visibility. Reorder tests for simplicity.
13525 (default_binds_local_p): Use default_binds_local_p_2.
13526 (default_binds_local_p_1): Likewise.
13527 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
13529 (default_elf_asm_output_external): Emit visibility when specified.
13531 2015-02-13 Alan Modra <amodra@gmail.com>
13533 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
13534 code setting up r11 for out-of-line fp restore.
13536 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
13538 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
13539 (muser-mode): Likewise.
13541 2015-02-13 Alan Modra <amodra@gmail.com>
13543 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
13544 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
13546 2015-02-12 David Howells <dhowells@redhat.com>
13548 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
13550 * tree-ssa-uninit.c (dump_predicates): Likewise.
13551 * opts.c (print_filtered_help): Likewise.
13553 2015-02-12 Jakub Jelinek <jakub@redhat.com>
13555 * dwarf2out.c (output_die): Use "%s", name instead of name to
13556 avoid -Wformat-security warning.
13558 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
13559 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
13560 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
13561 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
13563 2015-02-12 Jason Merrill <jason@redhat.com>
13565 * common.opt (-flifetime-dse): New.
13567 2015-02-12 Jakub Jelinek <jakub@redhat.com>
13570 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
13572 PR tree-optimization/65014
13573 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
13574 use original second operand of arg0 or arg1 instead of
13575 that adjusted by STRIP_NOPS.
13577 2015-02-11 Jeff Law <law@redhat.com>
13580 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
13581 that needs to be queued, just queue it for a single cycle.
13583 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
13585 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
13586 bodies of thunks; comment on why.
13587 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
13588 symbols are extern.
13590 2015-02-11 Richard Henderson <rth@redhat.com>
13593 * tree-eh.c (mark_reachable_handlers): Mark source and destination
13594 regions of __builtin_eh_copy_values.
13596 2015-02-11 Jakub Jelinek <jakub@redhat.com>
13598 PR middle-end/65003
13599 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
13600 ultimate alias is MEM with SYMBOL_REF satisfying
13601 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
13602 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
13604 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
13606 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
13607 "diagnostic-core.h".
13608 (main): Initialize progname, and call diagnostic_initialize.
13610 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
13611 instead of __OPENMP_TARGET__.
13613 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
13614 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
13615 hard-coding PTX_ID.
13617 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
13619 * doc/sourcebuild.texi (pie_enabled): Document.
13621 2015-02-11 Martin Liska <mliska@suse.cz>
13624 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
13625 a return value for call to a function that is noreturn.
13627 2015-02-11 Richard Biener <rguenther@suse.de>
13630 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
13633 2015-02-11 Andrew Pinski <apinski@cavium.com>
13636 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
13637 Change the first argument type to size_type_node and add another
13639 (aarch64_simd_expand_builtin): Handle the new argument to
13640 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
13641 print an out when the first two arguments are not
13642 nonzero integer constants.
13643 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
13644 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
13646 2015-02-11 Jakub Jelinek <jakub@redhat.com>
13649 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
13650 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
13651 (ix86_set_current_function): Rewritten.
13652 (ix86_add_new_builtins): Temporarily clear current_target_pragma
13653 when creating builtin fndecls.
13655 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
13658 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
13660 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
13661 have no comdat group.
13662 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
13663 (lto_output_varpool_node): Always output alias info.
13664 (output_refs): Output refs of boundary aliases, too.
13665 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
13666 (output_symtab): Output call eges in thunks in boundary.
13667 (get_alias_symbol): Remove.
13668 (input_node, input_varpool_node): Do not special case weakrefs.
13669 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
13670 alias and thunks targets in the boundary; do not take removed symbols
13671 from their comdat groups.
13672 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
13673 (cgraph_node::global_info): Remove.
13674 (cgraph_node::rtl_info): Look through aliases and thunks.
13675 * cgrpah.h (global_info): Remove.
13676 (non_local_p): Remove.
13678 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
13679 Sandra Loosemore <sandra@codesourcery.com>
13681 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
13682 to inline asm. List dialects in proper order.
13684 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
13685 Sandra Loosemore <sandra@codesourcery.com>
13687 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
13689 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
13691 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
13692 modified) reference to Solaris.
13694 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
13696 * doc/extend.texi (Extended Asm): Fix typos.
13698 2015-02-10 Jakub Jelinek <jakub@redhat.com>
13701 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
13703 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
13706 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
13707 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
13708 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
13709 * config/sh/constraints.md (Ara, Add): New constraints.
13710 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
13712 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
13713 atomic_mem_operand_0. Don't use force_reg on the memory address.
13714 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
13715 Sra constraint. Convert to insn_and_split. Add workaround for
13717 (atomic_compare_and_swap<mode>_hard): Copy to
13718 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
13719 Use atomic_mem_operand_0 predicate.
13720 (atomic_compare_and_swap<mode>_soft_gusa,
13721 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
13722 AraAdd constraints.
13723 (atomic_compare_and_swap<mode>_soft_tcb,
13724 atomic_compare_and_swap<mode>_soft_imask,
13725 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
13726 atomic_mem_operand_0 predicate and SraSdd constraints.
13727 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
13729 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
13730 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
13731 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
13732 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
13733 force_reg on the memory address.
13734 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
13735 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
13736 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
13737 atomic_mem_operand_1 predicate and Sra constraint.
13738 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
13739 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
13740 Use atomic_mem_operand_1 predicate.
13741 (atomic_<fetchop_name><mode>_hard): Copy to
13742 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
13743 Use atomic_mem_operand_1 predicate.
13744 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
13745 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
13746 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
13747 insn_and_split. Use atomic_mem_operand_1 predicate.
13748 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
13749 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
13750 Use atomic_mem_operand_1 predicate.
13751 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
13752 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
13753 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
13754 in generated insn with original mem operand before emitting the insn.
13755 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
13756 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
13757 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
13758 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
13759 Use atomic_mem_operand_1 predicate and AraAdd constraints.
13760 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
13761 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
13762 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
13763 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
13764 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
13765 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
13766 atomic_not_fetch<mode>_soft_tcb,
13767 atomic_<fetchop_name>_fetch<mode>_soft_imask,
13768 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
13769 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
13770 Use atomic_mem_operand_1 predicate and SraSdd constraints.
13772 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
13774 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
13775 and 3 earlyclobber operands.
13777 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
13779 * common.opt (fstack-reuse): Mark as optimization.
13781 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
13784 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
13786 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
13788 PR tree-optimization/64326
13789 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
13791 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
13793 PR gcov-profile/61889
13794 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
13796 2015-02-10 Richard Biener <rguenther@suse.de>
13798 PR tree-optimization/64995
13799 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
13800 value we use is final.
13801 (visit_reference_op_store): Always valueize op.
13802 (visit_use): Properly valueize vuses.
13804 2015-02-10 Richard Biener <rguenther@suse.de>
13806 PR tree-optimization/64909
13807 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
13808 pass a scalar-stmt count estimate to the cost model.
13809 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
13811 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
13813 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
13814 enabled by default together with var-tracking.
13816 2015-02-10 Nick Clifton <nickc@redhat.com>
13818 * config/rl78/rl78.c: Remove DIV attribute code accidentally
13819 included in previous rl78 commit.
13821 2015-02-10 Richard Biener <rguenther@suse.de>
13823 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
13824 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
13825 return the bitpack.
13827 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
13829 PR gcov-profile/61889
13830 * config.in: regenerate.
13831 * configure.in: Likewise.
13832 * configure.ac: Check for ftw.h.
13833 * gcov-tool.c: Check for ftw.h before using nftw.
13835 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
13838 * ipa-visibility.c (update_visibility_by_resolution_info): Only
13839 assert when not in lto mode.
13841 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
13843 * ira-color.c (setup_left_conflict_sizes_p): Simplify
13844 initialization/assignment of conflict_size.
13846 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
13849 * ipa-cp.c (gather_caller_stats): Skip thunks.
13850 (propagate_constants_topo): Skip aliases.
13852 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
13855 * config/sh/sh.c (sh_option_override): Don't change
13856 -freorder-blocks-and-partition to -freorder-blocks even when
13857 unwinding is enabled.
13858 (sh_can_follow_jump): Return false if the followee jump is
13859 a crossing jump when -freorder-blocks-and-partition is specified.
13860 * config/sh/sh.md (*jump_compact_crossing): New insn.
13862 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
13863 Kaz Kojima <kkojima@gcc.gnu.org>
13866 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
13867 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
13868 (sh_can_redirect_branch): Rename to ...
13869 (sh_can_follow_jump): ... this. Constify argument types.
13870 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
13871 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
13872 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
13873 * doc/tm.texi: Regenerate.
13875 2015-02-09 Jakub Jelinek <jakub@redhat.com>
13878 * builtins.c (expand_builtin): Call targetm.expand_builtin
13879 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
13881 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
13884 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
13886 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
13889 * ipa-icf.c (set_local): New function.
13890 (sem_function::merge): Use it.
13892 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
13894 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
13895 (add_type_duplicate): Fix comparison of BINFOs.
13897 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
13899 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
13900 on getting VOID pointer.
13902 2015-02-09 Jakub Jelinek <jakub@redhat.com>
13905 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
13908 2015-02-09 Richard Biener <rguenther@suse.de>
13910 * genmatch.c (replace_id): Copy expr_type.
13912 2015-02-09 Richard Biener <rguenther@suse.de>
13914 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
13915 (streamer_write_tree_bitfields): Declare.
13916 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
13917 properly unpack padding.
13918 (unpack_value_fields): Inline ...
13919 (streamer_read_tree_bitfields): ... here.
13920 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
13921 and properly add padding bits.
13922 (streamer_pack_tree_bitfields): Fold into ...
13923 (streamer_write_tree_bitfields): ... this new function,
13924 exposing the bitpack object.
13925 * lto-streamer-out.c (lto_write_tree_1): Call
13926 streamer_write_tree_bitfields.
13928 2015-02-09 Richard Biener <rguenther@suse.de>
13930 PR tree-optimization/54000
13931 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
13932 (struct ivopts_data): Add loop_loc member.
13933 (tree_ssa_iv_optimize_loop): Dump loop location.
13934 (create_new_ivs): Likewise, also dump number of IVs generated.
13936 2015-02-09 Martin Liska <mliska@suse.cz>
13938 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
13939 just if not yet registered.
13940 (ipa_icf_generate_summary): Register callgraph hooks.
13942 2015-02-08 Andrew Pinski <apinski@cavium.com>
13944 * config/aarch64/aarch64.c (gty_dummy): Delete.
13946 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
13949 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
13950 (cgraph_node::local_p): Remove thunk related FIXME.
13952 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
13955 * i386.c (ix86_function_regparm): Look through aliases to see if callee
13956 is local and optimized.
13957 (ix86_function_sseregparm): Likewise; also use target's SSE math
13958 settings; error out instead of silently generating wrong code
13960 (init_cumulative_args): Look through aliases.
13962 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
13965 * ipa-split.c (execute_split_functions): Split if function has aliases.
13967 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
13970 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
13971 aliases before trying to expand it.
13972 (cgraph_node::expand_thunk): Fix formating.
13974 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
13976 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
13977 (Using Assembly Language with C): Expand introduction.
13978 (Basic Asm): Copy-edit. Add more information about uses of
13980 (Extended Asm): Copy-edit. Document new escape syntax and
13982 (Global Reg Vars): Copy-edit.
13983 (Local Reg Vars): Likewise.
13985 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
13989 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
13990 (DBX_CONTIN_CHAR): Define.
13992 2015-02-06 Sebastian Pop <s.pop@samsung.com>
13993 Brian Rzycki <b.rzycki@samsung.com>
13995 PR tree-optimization/64878
13996 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
13997 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
13998 Stop recursion at loop phi nodes after having visited a loop phi node.
14000 2015-02-06 Jakub Jelinek <jakub@redhat.com>
14002 * toplev.c (process_options): Change flag_ipa_ra before creating
14003 optimization_{default,current}_node.
14006 * cgraphunit.c (cgraph_node::expand_thunk): If
14007 restype is not is_gimple_reg_type nor the thunk_fndecl
14008 returns aggregate_value_p, set restmp to a temporary variable
14009 instead of resdecl.
14011 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
14013 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
14015 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
14018 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
14019 add a general secondary reload handler for SDmode, unless we have
14020 both read/write support for SDmode.
14022 2015-02-06 Jakub Jelinek <jakub@redhat.com>
14024 PR middle-end/64937
14025 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
14026 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
14027 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
14028 1 before, push it to abstract_vec.
14029 (dwarf2out_abstract_function): Adjust caller. Don't call
14030 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
14031 DECL_ABSTRACT_P flags for all abstract_vec elts.
14033 2015-02-06 Renlin Li <renlin.li@arm.com>
14035 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
14037 * tree-ssa.c (execute_update_addresses_taken): Likewise.
14039 2015-02-06 Jeff Law <law@redhat.com>
14042 * config/h8300/h8300.c (push): New argument "in_prologue".
14043 Pass "in_prologue" along to "F".
14044 (h8300_push_pop): Corresponding changes.
14045 (h8300_expand_prologue): Likewise.
14046 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
14048 2015-02-06 Jakub Jelinek <jakub@redhat.com>
14050 PR rtl-optimization/64957
14052 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
14053 IOR rather than for AND.
14055 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
14058 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
14059 of shift-add and (add + shift) operations. Rename local variable.
14061 2015-02-05 Jeff Law <law@redhat.com>
14064 * config/h8300/constraints.md (U): Correctly dectect
14065 "eightbit_data" memory addresses.
14066 * config/h8300/h8300.c (eightbit_constant_address_p): Also
14067 handle (const (plus (symbol_ref (x)))) where x is declared
14068 as an 8-bit data memory address.
14069 * config/h8300/h8300.md (call, call_value): Correctly detect
14070 "funcvec" functions.
14073 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
14074 24 to 28 bits for the H8/300.
14076 2015-02-06 Alan Modra <amodra@gmail.com>
14079 * config/rs6000/rs6000.c (chain_already_loaded): New function.
14080 (rs6000_call_aix): Use it.
14082 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
14084 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
14087 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
14089 * config/h8300/constraints.md ("U" constraint): Use strict
14090 variant of REG_OK_FOR_BASE_P after reload has started.
14092 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
14094 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
14095 define to zero if !TARGET_NEON.
14096 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
14098 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
14099 Trevor Saunders <tsaunders@mozilla.com>
14102 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
14104 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
14107 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
14108 when removing varpool nodes.
14110 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
14113 * varpool.c (varpool_node::remove): Fix order of variables.
14115 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
14118 * ipa-inline.c (inline_small_functions): Fix ordering issue between
14119 speculation resolution and key updates.
14121 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
14123 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
14124 about not letting any speculative edges unupdated.
14126 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
14129 * gcov-io.c (gcov_var): Export.
14131 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
14133 PR middle-end/64922
14134 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
14135 edges that become speculative.
14137 2015-02-04 Jakub Jelinek <jakub@redhat.com>
14139 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
14140 or DW_LANG_Fortran08.
14141 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
14143 (gen_compile_unit_die): Handle "GNU Fortran2003" and
14144 "GNU Fortran2008" language strings.
14145 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
14146 * langhooks.h (lang_GNU_Fortran): New prototype.
14147 * langhooks.c (lang_GNU_Fortran): New function.
14148 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
14151 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
14153 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
14154 (RTX_OK_FOR_OLO10_P): Likewise.
14156 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
14158 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
14160 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
14162 PR middle-end/64922
14163 * gimple.c: Include gimple-ssa.h.
14164 (maybe_remove_unused_call_args): New function.
14165 * gimple.h (maybe_remove_unused_call_args): Declare.
14166 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
14167 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
14168 * gimple-fold.c (gimple_fold_call): Likewise.
14170 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
14172 PR rtl-optimization/64905
14173 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
14174 pointer alignment if it isn't needed.
14176 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
14178 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
14179 cortex-a72.cortex-a53.
14180 * config/aarch64/aarch64-tune.md: Regenerate.
14181 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
14183 2015-02-04 Nick Clifton <nickc@redhat.com>
14185 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
14188 2015-02-04 Jakub Jelinek <jakub@redhat.com>
14190 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
14191 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
14192 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
14194 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
14195 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
14196 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
14197 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
14198 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
14199 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
14200 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
14201 * tree-core.h (enum built_in_function): In between
14202 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
14203 for builtins that use DEF_BUILTIN_CHKP macro.
14205 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
14208 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
14209 operands for tcc_comparison exprs. Fix typos.
14212 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
14213 of two XORs that have an intervening AND or IOR.
14216 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
14217 simplification of XOR of AND to not allocate new rtx before
14218 committing to a simplification.
14220 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14222 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
14223 manual swaps in all peepholes.
14225 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14227 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
14228 of manual swapping implementation.
14229 (aarch64_expand_vec_perm_const_1): Likewise.
14231 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
14233 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
14234 (generic_addrcost_table): Remove NAMED_PARAM.
14235 (cortexa57_addrcost_table): Likewise.
14236 (xgene1_addrcost_table): Likewise.
14237 (generic_regmove_table): Likewise.
14238 (cortexa53_regmove_table): Likewise.
14239 (xgene1_regmove_table): Likewise.
14240 (generic_vector_table): Likewise.
14241 (cortexa57_vector_table): Likewise.
14242 (xgene1_vector_table): Likewise.
14243 (generic_tunings): Likewise.
14244 (cortexa53_tunings): Likewise.
14245 (cortexa57_tunings): Likewise.
14246 (xgene1_tunings): Likewise.
14248 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
14250 * config/arm/arm-cores.def: Add cortex-a72 and
14251 cortex-a72.cortex-a53.
14252 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
14253 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
14254 * config/arm/arm-tune.md: Regenerate.
14255 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
14256 "cortex-a72.cortex-a53".
14257 * doc/invoke.texi (ARM Options/-mtune): Likewise.
14259 2015-02-04 Nick Clifton <nickc@redhat.com>
14262 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
14264 (nonimmediate_di_operand): Likewise.
14266 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
14267 prefixes of known F5 using MSP430 MCUs.
14269 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14271 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
14272 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
14273 instead of __builtin_sqrt.
14275 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
14277 * varasm.c (do_assemble_alias): Follow transparent alias
14279 (default_assemble_visibility): Follow transparent alias
14280 chain for decl name.
14282 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
14284 PR middle-end/62103
14285 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
14286 to compute size of referenced value in the constant case.
14288 2015-02-03 Jakub Jelinek <jakub@redhat.com>
14290 PR rtl-optimization/64756
14291 * cse.c (invalidate_dest): New function.
14292 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
14293 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
14294 invalidate and do not record it.
14296 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
14299 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
14300 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
14301 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
14302 atomic_nand<mode>_soft_tcb): New insns.
14303 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
14304 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
14305 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
14306 Split into atomic_not_fetchsi_hard if operands[0] is unused.
14307 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
14308 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
14309 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
14310 atomic_not<mode>_hard if operands[0] is unused.
14311 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
14312 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
14313 if operands[0] is unused.
14314 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
14315 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
14316 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
14317 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
14319 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
14320 into atomic_not<mode>_soft_tcb if operands[0] is unused.
14321 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
14322 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
14323 if operands[0] is unused.
14324 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
14325 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
14326 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
14327 atomic_nand_fetchsi_hard if operands[0] is unused.
14328 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
14329 atomic_nand<mode>_hard if operands[0] is unused.
14330 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
14331 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
14332 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
14333 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
14334 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
14335 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
14336 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
14337 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
14338 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
14339 atomic_not<mode>_hard if operands[0] is unused.
14340 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
14341 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
14343 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
14344 into atomic_not<mode>_soft_tcb if operands[0] is unused.
14345 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
14346 atomic_nand<mode>_hard if operands[0] is unused.
14347 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
14348 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
14350 2015-02-03 David Malcolm <dmalcolm@redhat.com>
14353 * Makefile.in (GCC_OBJS): Add gcc-main.o.
14354 * gcc-main.c: New file, containing "main" taken from gcc.c.
14355 * gcc.c (do_self_spec): Free decoded_options.
14356 (class driver): Move declaration to gcc.h.
14357 (main): Move declaration and implementation to new file
14359 (driver_get_configure_time_options): New function.
14360 * gcc.h (class driver): Move this declaration here, from
14362 (driver_get_configure_time_options): New declaration.
14364 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
14366 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
14367 cross-module inlining.
14368 * cgraph.h (cgraph_node): Add flag merged.
14369 * ipa-icf.c (sem_function::merge): Maintain it.
14371 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
14373 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
14374 instead of OBJECT_P.
14376 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
14379 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
14380 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
14381 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
14382 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
14384 2015-02-03 Jakub Jelinek <jakub@redhat.com>
14387 * combine.c (reg_n_sets_max): New variable.
14388 (can_change_dest_mode, reg_nonzero_bits_for_combine,
14389 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
14390 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
14391 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
14392 (rest_of_handle_combine): Initialize reg_n_sets_max.
14394 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
14396 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
14397 if some always_inline was inlined, apply changes before inlining
14400 2015-02-02 David Malcolm <dmalcolm@redhat.com>
14403 * config/arm/arm.c (arm_option_override): Set
14404 arm_selected_arch/cpu/tune to NULL on entry.
14406 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
14407 Andrew Pinski <pinskia@gcc.gnu.org>
14408 Jakub Jelinek <jakub@gcc.gnu.org>
14411 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
14412 integer typing for small model. Use IN_RANGE.
14414 2015-02-02 Richard Biener <rguenther@suse.de>
14416 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
14417 * tree-vrp.c (vrp_valueize_1): Likewise.
14419 2015-02-02 Alan Modra <amodra@gmail.com>
14421 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
14422 than mem for toc_restore.
14423 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
14424 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
14425 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
14427 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
14430 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
14431 explicit default options.
14433 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
14436 * ipa-utils.c (ipa_merge_profiles): Add release argument.
14437 * ipa-icf.c (sem_function::merge): Do not release body when merging.
14438 * ipa-utils.h (ipa_merge_profiles): Update prototype.
14440 2015-02-01 Jakub Jelinek <jakub@redhat.com>
14443 * cfgexpand.c (deep_ter_debug_map): New variable.
14444 (avoid_deep_ter_for_debug): New function.
14445 (expand_debug_expr): If TERed SSA_NAME is in
14446 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
14447 instead of trying to expand SSA_NAME's def stmt.
14448 (expand_debug_locations): When expanding debug bind
14449 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
14450 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
14452 (pass_expand::execute): Call avoid_deep_ter_for_debug on
14453 all debug bind stmts. Delete deep_ter_debug_map after
14454 expand_debug_location if non-NULL and clear it.
14456 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
14459 * config/sh/sync.md (atomic_fetch_notsi_hard,
14460 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
14461 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
14462 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
14463 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
14464 atomic_not_fetch<mode>_soft_imask): New insns.
14466 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14468 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
14469 (rank_for_schedule_debug): Split from ...
14470 (rank_for_schedule): ... this.
14471 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
14472 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
14474 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
14476 * doc/md.texi (Machine Constraints): Alphabetize table by target.
14477 * doc/extend.texi (x86 Variable Attributes): Move section to
14478 correct alphabetization after renaming.
14479 (x86 Type Attributes): Likewise.
14480 (Target Builtins): Re-alphabetize menu.
14481 (x86 Built-in Functions): Move section to correct alphabetization
14483 (x86 transactional memory intrinsics): Likewise.
14484 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
14485 and x86 Windows Options in table and menu.
14486 (x86 Options): Move section to correct alphabetization after
14488 (x86 Windows Options): Likewise.
14490 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
14492 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
14493 preferred names of the architecture and its 32- and 64-bit
14495 * doc/invoke.texi: Likewise.
14496 * doc/md.texi: Likewise.
14498 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
14501 * config/i386/predicates.md (address_no_seg_operand): Reject
14502 non-CONST_INT_P operands in invalid mode.
14504 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
14506 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
14507 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
14508 * config/i386/predicates.md (address_no_seg_operand): Call
14509 address_operand with VOIDmode.
14510 (vsib_address_operand): Ditto.
14511 (address_mpx_no_base_operand): Ditto.
14512 (address_mpx_no_index_operand): Ditto.
14514 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
14517 * lra-constraints.c (original_subreg_reg_mode): New.
14518 (simplify_operand_subreg): Try to simplify subreg of const. Use
14519 original_subreg_reg_mode for it.
14520 (swap_operands): Update original_subreg_reg_mode.
14521 (curr_insn_transform): Set up original_subreg_reg_mode.
14523 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
14526 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
14528 (process_alt_operands): Use it.
14529 (curr_insn_transform): Check the optional reload pseudo class is
14532 2015-01-30 Joseph Myers <joseph@codesourcery.com>
14534 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
14535 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
14537 * toplev.h (init_asm_output): Update comment on use of
14538 UNKNOWN_LOCATION with fatal_error.
14539 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
14540 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
14541 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
14542 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
14543 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
14544 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
14545 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
14546 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
14547 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
14548 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
14549 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
14550 fatal_error changed to pass input_location as first argument.
14552 2015-01-30 Martin Liska <mliska@suse.cz>
14554 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
14555 in #pragma GCC diagnostic guards.
14557 2015-01-30 Richard Biener <rguenther@suse.de>
14559 PR tree-optimization/64829
14560 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
14561 not add a widening conversion pattern but hand off extra
14562 widenings to callers.
14563 (vect_recog_widen_mult_pattern): Handle extra widening produced
14564 by vect_handle_widen_op_by_const.
14565 (vect_recog_widen_shift_pattern): Likewise.
14566 (vect_pattern_recog_1): Remove excess vertical space in dumping.
14567 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
14568 (vect_init_vector_1): Likewise.
14569 (vect_get_vec_def_for_operand): Likewise.
14570 (vect_finish_stmt_generation): Likewise.
14571 (vectorizable_load): Likewise.
14572 (vect_analyze_stmt): Likewise.
14573 (vect_is_simple_use): Likewise.
14575 2015-01-29 Jeff Law <law@redhat.com>
14577 * combine.c (try_combine): Fix typo in comment.
14579 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
14582 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
14583 (rs6000_stack_info): Add assert.
14584 (rs6000_output_savres_externs): New function, split off from...
14585 (rs6000_output_function_prologue): ... here. Do not call it for
14588 2015-01-29 Jeff Law <law@redhat.com>
14591 * combine.c (try_combine): If I0 is a memory load and I3 a store
14592 to a related address, increase the "goodness" of doing a 4-insn
14593 combination with I0-I3.
14594 (make_field_assignment): Handle SUBREGs in the ior+and case.
14596 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
14598 PR tree-optimization/64746
14599 * tree-if-conv.c (mask_exists): New function.
14600 (predicate_mem_writes): Save created mask with given size for further
14602 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
14603 (ifcvt_repair_bool_pattern): Collect all statements that are root
14604 of bool pattern and use iterative algorithm to remove multiple uses
14605 of predicates, display number of required iterations.
14607 2015-01-29 Richard Biener <rguenther@suse.de>
14609 PR tree-optimization/64853
14610 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
14611 stmt will get simulated again.
14612 * tree-ssa-ccp.c (valueize_op_1): Likewise.
14614 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14616 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
14617 return_in_pc. Remove redundant assignments.
14618 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
14619 (arm_expand_epilogue): Don't compare boolean with true in if condition.
14621 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
14623 * config/i386/i386.c (ix86_mode_after): Make static.
14625 2015-01-29 Richard Biener <rguenther@suse.de>
14627 PR tree-optimization/64844
14628 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
14629 dump cost model analysis.
14630 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
14631 Do not register adjusted load/store costs here.
14633 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
14634 Uros Bizjak <ubizjak@gmail.com>
14636 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
14637 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
14638 using x86_use_pseudo_pic_reg.
14639 * config/i386/i386.c (ix86_conditional_register_usage): Remove
14640 support for fixed PIC register.
14641 (ix86_use_pseudo_pic_reg): Not static any more.
14643 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
14645 PR middle-end/64805
14646 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
14647 to avoid error in cgraph node verification.
14649 2015-01-29 Marek Polacek <polacek@redhat.com>
14651 * doc/standards.texi: Reflect that the default for C is gnu11.
14653 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
14656 * reorg.c (switch_text_sections_between_p): New function.
14657 (relax_delay_slots): Call it when testing if the jump insn
14658 is removable. Use targetm.can_follow_jump when testing if
14659 the conditional branch can follow an unconditional jump.
14661 2015-01-27 Caroline Tice <cmtice@google.com>
14663 Committing VTV Cywin/Ming patch for Patrick Wollgast
14664 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
14665 if -fvtable-verify=preinit/std is used.
14666 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
14667 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
14668 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
14669 if -fvtable-verify=preinit/std is used.
14670 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
14671 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
14672 if -fvtable-verify=preinit/std is used.
14673 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
14674 * config/i386/mingw32.h (LIB_SPEC): Likewise.
14675 * varasm.c (assemble_variable): Add code to properly set the comdat
14676 section and name for the .vtable_map_vars section in case the
14677 target is PE or COFF.
14679 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
14682 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
14683 make sane BB profile.
14684 (cgraph_node::expand_thunk): Make sane BB profile.
14685 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
14686 * cgraph.h (init_lowered_empty_function): Update prototype.
14687 * config/i386/i386.c (make_resolver_func): Update call.
14688 * predict.c (gate): Disable branch prediction pass if
14689 profile is already there.
14691 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
14693 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
14694 * opth-gen.awk: Likewise.
14695 * common.opt: Mark flag_fp_contract_mode as Optimization.
14697 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
14699 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
14700 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
14702 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
14705 * config/sh/predicates.md (atomic_arith_operand,
14706 atomic_logical_operand): Remove.
14707 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
14708 (atomic_arith_operand_0): New predicate.
14709 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
14710 Use atomic_arith_operand_0 for input values.
14711 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
14712 atomic_compare_and_swap<mode>_soft_gusa,
14713 atomic_compare_and_swap<mode>_soft_tcb,
14714 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
14715 arith_reg_operand instead of register_operand.
14716 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
14717 atomic_arith_operand_0 for newval input.
14718 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
14719 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
14720 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
14721 arith_reg_operand instead of register_operand.
14722 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
14723 fetchop_predicate_1, fetchop_constraint_1_llcs,
14724 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
14725 fetchop_constraint_1_imask): New code iterator attributes.
14726 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
14727 register_operand. Use fetchop_predicate_1.
14728 (atomic_fetch_<fetchop_name>si_hard,
14729 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
14730 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
14731 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
14732 and arith_reg_operand instead of register_operand. Use
14733 fetchop_predicate_1, fetchop_constraint_1_gusa.
14734 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
14735 and arith_reg_operand instead of register_operand. Use
14736 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
14738 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
14739 and arith_reg_operand instead of register_operand. Use
14740 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
14742 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
14743 register_operand. Use atomic_logical_operand_1.
14744 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
14745 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
14746 arith_reg_operand instead of register_operand.
14747 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
14748 Use arith_reg_dest and arith_reg_operand instead of register_operand.
14749 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
14750 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
14751 register_operand. Use fetchop_predicate_1.
14752 (atomic_<fetchop_name>_fetchsi_hard,
14753 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
14754 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
14755 fetchop_constraint_1_llcs.
14756 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
14757 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
14758 fetchop_constraint_1_gusa.
14759 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
14760 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
14761 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
14762 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
14763 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
14764 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
14765 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
14766 register_operand. Use atomic_logical_operand_1.
14767 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
14768 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
14769 arith_reg_operand instead of register_operand.
14770 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
14771 arith_reg_operand instead of register_operand. Use logical_operand
14772 and K08. Adjust asm sequence to allow R0 usage.
14773 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
14774 arith_reg_operand instead of register_operand. Use logical_operand
14777 2015-01-28 Jakub Jelinek <jakub@redhat.com>
14780 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
14781 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
14782 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
14783 only get_full_len HOST_WIDE_INTs from get_val () array rather than
14784 all bits in *val_wide.
14786 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
14788 * varpool.c (tls_model_names): Fix names.
14789 (varpool_node::dump): Dump tls- prefix for tls models.
14791 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
14792 Bernd Schmidt <bernds@codesourcery.com>
14793 Nathan Sidwell <nathan@codesourcery.com>
14795 * config/nvptx/mkoffload.c: New file.
14796 * config/nvptx/t-nvptx: Add build rules for it.
14797 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
14798 (extra_programs): Add mkoffload.
14799 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
14801 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
14803 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
14805 PR middle-end/64809
14806 * cfgexpand.c (reorder_operands): Skip debug gimples.
14808 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
14810 PR tree-optimization/64277
14811 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
14812 range info when possible to refine estimation.
14814 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
14816 PR tree-optimization/64718
14817 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
14818 be a 16bit unsigned integer when n->range is 16.
14819 (bswap_replace): Convert src to that type if necessary for all bswap
14820 sizes. Fix rotation right notation in nearby comment. Use bswap_type
14821 set in pass_optimize_bswap::execute ().
14823 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
14825 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
14826 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
14827 integer and floating point variants.
14828 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
14830 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
14832 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
14833 for all vector modes.
14835 2015-01-28 Jakub Jelinek <jakub@redhat.com>
14838 * doc/sourcebuild.texi (comdat_group): Document.
14840 2015-01-28 Terry Guo <terry.guo@arm.com>
14842 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
14844 2015-01-27 David Malcolm <dmalcolm@redhat.com>
14846 * toplev.c (print_version): Add param "show_global_state", and
14847 only print GGC and plugin information if it is true.
14848 (init_asm_output): Pass in "true" for the new param when calling
14850 (process_options): Likewise.
14851 (toplev::main): Likewise.
14852 * toplev.h (print_version): Add new param to decl.
14854 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
14858 * tree.c (lookup_binfo_at_offset): New function.
14859 (get_binfo_at_offset): Use it.
14861 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
14864 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
14865 on vtable being vtable.
14867 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
14869 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
14870 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
14871 -mhotpatch= option.
14872 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
14873 -mno-hotpatch options. Change syntax of -mhotpatch= option.
14874 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
14876 (s390_hotpatch_trampoline_halfwords_max): Renamed.
14877 (s390_hotpatch_hw_max): New name.
14878 (s390_hotpatch_trampoline_halfwords): Renamed.
14879 (s390_hotpatch_hw_before_label): New name.
14880 (get_hotpatch_attribute): Removed.
14881 (s390_hotpatch_hw_after_label): New name.
14882 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
14884 (s390_attribute_table): Ditto.
14885 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
14886 (s390_function_num_hotpatch_hw): New name.
14887 Remove special handling of inline functions and hotpatching.
14888 Return number of nops before and after the function label.
14889 (s390_can_inline_p): Removed.
14890 (s390_asm_output_function_label): Emit a configurable number of nops
14891 after the function label.
14892 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
14893 (TARGET_CAN_INLINE_P) Removed.
14894 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
14896 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14897 Jiong Wang <jiong.wang@arm.com>
14899 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
14901 (cb<optab><mode>1): Likewise.
14902 * config/aarch64/iterators.md (bcond): New define_code_attr.
14904 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14906 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
14909 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14911 * config/s390/s390.c (s390_register_move_cost): Increase costs for
14914 2015-01-27 Richard Biener <rguenther@suse.de>
14916 * tree-vrp.c (update_value_range): Intersect the range with
14917 old recorded SSA name range information.
14919 2015-01-27 Nick Clifton <nickc@redhat.com>
14921 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
14922 BC, DE and HL registers directly, not via AX.
14923 When decrementing the stack pointer by a large amount, transfer SP
14924 into AX and perform the subtraction there.
14925 (rl78_expand_epilogue): Perform the inverse of the above
14928 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14930 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
14932 2015-01-27 Jakub Jelinek <jakub@redhat.com>
14933 Yury Gribov <y.gribov@samsung.com>
14936 * ubsan.c (ubsan_source_location): Refactor code.
14937 (ubsan_type_descriptor): Update type size. Refactor code.
14939 2015-01-27 Richard Biener <rguenther@suse.de>
14941 PR tree-optimization/56273
14942 PR tree-optimization/59124
14943 PR tree-optimization/64277
14944 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
14945 from the first VRP pass.
14947 2015-01-27 Jakub Jelinek <jakub@redhat.com>
14950 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
14951 handle the first argument in the same loop as all the other arguments.
14953 PR rtl-optimization/61058
14954 * jump.c (cleanup_barriers): Update basic block boundaries
14955 if BLOCK_FOR_INSN is non-NULL on PREV.
14957 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
14959 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
14960 bounds narrowing, already instrumented calls and calls to
14961 not instrumentable functions.
14963 2015-01-27 Jakub Jelinek <jakub@redhat.com>
14965 PR tree-optimization/64807
14966 * wide-int.cc (wi::divmod_internal): Clear
14967 b_dividend[dividend_blocks_needed].
14969 2015-01-26 DJ Delorie <dj@redhat.com>
14971 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
14972 volatile memory references.
14974 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
14977 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
14979 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
14980 shifts if it already fits into K08.
14982 2015-01-26 Jakub Jelinek <jakub@redhat.com>
14985 * ipa-inline.c (inline_small_functions): Print "unknown" even
14986 if edge->call_stmt is non-NULL, but has builtins or unknown
14989 PR middle-end/64421
14990 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
14991 with asterisk, skip the first character.
14993 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
14996 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
14999 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
15002 * config/i386/i386.md (*movdi_internal): Also check operand 0
15003 to determine TYPE_LEA operand.
15004 (*movsi_internal): Ditto.
15006 2015-01-26 Jakub Jelinek <jakub@redhat.com>
15008 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
15009 OPTION_MASK_QUAD_MEMORY_ATOMIC.
15011 2015-01-26 Renlin Li <renlin.li@arm.com>
15013 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
15015 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
15018 2015-01-26 Richard Biener <rguenther@suse.de>
15020 PR middle-end/64764
15021 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
15022 combining two BIT_AND_EXPR predicates.
15024 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
15027 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
15029 2015-01-26 Terry Guo <terry.guo@arm.com>
15031 * config/arm/arm.c (arm_file_start): Update the assignment of
15032 Tag_ABI_HardFP_use.
15034 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
15036 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
15038 config/arm/arm.md: Include the new Cortex-A57 model.
15039 (generic_sched): Don't use generic_sched when tuning for
15042 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
15043 Uros Bizjak <ubizjak@gmail.com>
15045 * config/i386/i386.c (get_builtin_code_for_version): Add
15046 support for BMI and BMI2 multiversion functions.
15048 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15050 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
15051 (extract_bit_field): Likewise.
15052 (extract_low_bits): Likewise.
15053 (expand_mult): Likewise.
15054 (expand_mult_highpart_adjust): Likewise.
15056 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
15058 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
15059 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
15060 * config/i386/i386.c (processor_model): Add
15061 M_INTEL_COREI7_BROADWELL.
15062 (arch_names_table): Add "broadwell".
15064 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
15073 * config/sh/sh-protos.h
15074 (sh_extending_set_of_reg::can_use_as_unextended_reg,
15075 sh_extending_set_of_reg::use_as_unextended_reg,
15076 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
15077 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
15078 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
15079 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
15080 (sh_treg_insns): New class.
15081 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
15082 (scope_counter): New class.
15083 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
15084 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
15085 sh_extending_set_of_reg::can_use_as_unextended_reg,
15086 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
15087 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
15088 sh_split_treg_set_expr): New functions.
15089 (addsubcosts): Handle treg_set_expr.
15090 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
15091 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
15092 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
15093 (sh_insn_operands_modified_between_p): Make non-static.
15094 * config/sh/predicates.md (zero_extend_movu_operand): Allow
15095 simple_mem_operand in addition to displacement_mem_operand.
15096 (zero_extend_operand): Don't allow zero_extend_movu_operand.
15097 (treg_set_expr, treg_set_expr_not_const01,
15098 arith_reg_or_treg_set_expr): New predicates.
15099 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
15100 arith_or_int_operand instead of logical_operand. Convert to
15101 insn_and_split. Try to optimize constant operand in splitter.
15102 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
15103 (*tstqi_t_zero): Delete.
15104 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
15105 (tstsi_t_and_not): Delete.
15106 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
15107 Convert to insn_and_split.
15108 (unnamed split, tstsi_t_zero_extract_xor,
15109 tstsi_t_zero_extract_subreg_xor_little,
15110 tstsi_t_zero_extract_subreg_xor_big): Delete.
15111 (*tstsi_t_shift_mask): New insn_and_split.
15112 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
15113 to recombine with surrounding insns when splitting.
15114 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
15115 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
15116 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
15117 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
15118 (*cbranch_div0s: Delete.
15119 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
15120 Try to recombine with surrounding insns when splitting. Add operand
15122 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
15123 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
15124 *addc_r_r_msb, *addc_2r_msb): Delete.
15125 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
15127 (*addc_negreg_t): New insn_and_split.
15128 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
15129 Try to recombine with surrounding insns when splitting.
15130 Add operand order variants.
15131 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
15132 insn_and_split patterns.
15133 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
15134 surrounding insns when splitting.
15135 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
15136 (*rotcl): Likewise. Add zero_extract variant.
15137 (*ashrsi2_31): New insn_and_split.
15138 (*negc): Convert to insn_and_split. Use treg_set_expr.
15139 (*zero_extend<mode>si2_disp_mem): Update comment.
15140 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
15142 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
15143 with surrounding insns when splitting.
15144 (any_treg_expr_to_reg): New insn_and_split.
15145 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
15146 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
15147 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
15148 *zero_extract_2): New single bit zero extract patterns.
15149 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
15150 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
15151 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
15152 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
15154 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
15155 register_operand for set source.
15157 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
15159 * i386.opt (prefetch_sse): New targetsave.
15160 * i386.c (ix86_function_specific_save): Save prefetch_sse.
15161 (ix86_function_specific_restore): Restore prefetch_sse and initialize
15162 ix86_cost/ix86_tune_cost.
15164 2015-01-23 David Malcolm <dmalcolm@redhat.com>
15166 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
15167 Support the JIT by using 0 as the language type.
15169 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
15172 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
15173 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
15174 (mark_regno_live, process_bb_lives): Pass new parameter value to
15175 make_hard_regno_born.
15177 2015-01-23 Jakub Jelinek <jakub@redhat.com>
15179 PR rtl-optimization/63637
15180 PR rtl-optimization/60663
15181 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
15182 if elt->cost is MAX_COST for ASM_OPERANDS.
15183 (find_sets_in_insn): Fix up comment typo.
15184 (cse_insn): Don't set src_volatile for all non-volatile
15185 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
15186 or with "memory" clobber. Set elt->cost to MAX_COST
15187 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
15188 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
15190 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
15192 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
15195 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
15197 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
15198 libgcc/config/i386/elf-lib.h.
15200 2015-01-23 Jakub Jelinek <jakub@redhat.com>
15203 * gcc.c (print_configuration): Don't print a blank line at the end
15205 (run_attempt): ... but here unstead.
15207 PR middle-end/64734
15208 * omp-low.c (scan_sharing_clauses): Don't ignore
15209 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
15210 on target data/update constructs.
15212 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
15215 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
15216 (DEBUG_RELOAD): Removed define.
15217 (m32c_limit_reload_class): Enable traces with if DEBUG0.
15218 (m32c_function_arg): Added a type cast.
15219 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
15220 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
15221 * config/m32c/bitops.md (andqi3_16): Likewise.
15222 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
15223 (push_a01_l): Likewise.
15225 2015-01-23 David Malcolm <dmalcolm@redhat.com>
15228 * main.c (main): Construct toplev instances with init_signals=true.
15229 * toplev.c (general_init): Add param "init_signals", and use it to
15230 conditionalize the calls to signal and host_hooks.extra_signals.
15231 (toplev::toplev): Add param "init_signals".
15232 (toplev::main): When invoking general_init, pass m_init_signals
15233 to control whether signal-handlers are installed.
15234 * toplev.h (toplev::toplev): Add param "init_signals".
15235 (toplev::m_init_signals): New field.
15237 2015-01-23 David Malcolm <dmalcolm@redhat.com>
15240 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
15241 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
15242 latter may be affected by the former (e.g. on i686).
15244 2015-01-23 Martin Liska <mliska@suse.cz>
15246 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
15247 false positive during profiledbootstrap.
15249 2015-01-23 Tom de Vries <tom@codesourcery.com>
15252 * lto-opts.c (lto_write_options): Output non-explicit conservative
15254 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
15255 (append_compiler_options): Pass -fopenacc through.
15257 2015-01-23 Tom de Vries <tom@codesourcery.com>
15260 * lto-opts.c (lto_write_options): Output non-explicit conservative
15262 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
15263 (append_compiler_options): Pass -fopenmp through.
15265 2015-01-23 Jakub Jelinek <jakub@redhat.com>
15268 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
15271 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
15272 * diagnostic.def (DK_ICE_NOBT): New kind.
15273 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
15274 like DK_ICE, but never print backtrace.
15275 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
15276 (internal_error_no_backtrace): New function.
15277 * gcc.c (execute): Use internal_error_no_backtrace instead of
15280 2015-01-22 Jeff Law <law@redhat.com>
15283 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
15284 improve code density for small immediate to memory case.
15285 (insv): Better handle bitfield assignments when the field is
15286 being set to all ones.
15287 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
15290 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15291 Jakub Jelinek <jakub@redhat.com>
15293 PR middle-end/64729
15294 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
15295 for !TARGET_LIBC_PROVIDES_SSP version and
15296 -fstack-protector-{all,strong,explicit} otherwise.
15297 * config/freebsd.h (LINK_SSP_SPEC): Handle
15298 -fstack-protector-{strong,explicit}.
15300 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
15301 H.J. Lu <hongjiu.lu@intel.com>
15304 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
15307 2015-01-22 Wei Mi <wmi@google.com>
15309 PR rtl-optimization/64557
15310 * dse.c (record_store): Call get_addr for mem_addr.
15311 (check_mem_read_rtx): Likewise.
15313 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
15315 * fold-const.c (const_binop): Add early return for non-tcc_binary.
15317 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
15319 * toplev.c (init_local_tick): Process the failure when read
15320 fails for random_seed.
15322 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
15323 'pretty_name' to avoid memory overflow.
15325 2015-01-22 Richard Biener <rguenther@suse.de>
15327 PR middle-end/64728
15328 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
15329 abnormal coalescing on undefined SSA names.
15331 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
15335 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
15337 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
15339 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
15341 PR middle-end/63325
15342 * fold-const.c (fold_checksum_tree): Don't include value of
15343 expr->decl_with_vis.symtab_node in the checksum.
15345 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15347 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
15349 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
15352 * gcc.c (insert_comments): New function.
15353 (try_generate_repro): Call it.
15354 (append_text): Removed.
15356 2015-01-22 Richard Biener <rguenther@suse.de>
15358 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
15359 with IL incompatible options. Properly honor user optimize
15362 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
15364 PR rtl-optimization/64682
15365 * combine.c (distribute_notes): When moving a death note for
15366 a register that is set in the new I2, make sure to put it
15367 before that new I2.
15369 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
15371 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
15372 not TARGET_DEFAULT.
15374 2015-01-21 Jakub Jelinek <jakub@redhat.com>
15377 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
15378 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
15379 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
15382 * doc/invoke.texi (-fsanitize=vptr): Document.
15384 PR rtl-optimization/62078
15385 * dse.c: Include cfgcleanup.h.
15386 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
15387 anything call purge_all_dead_edges and cleanup_cfg at the end
15390 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
15392 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
15395 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
15397 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
15400 2015-01-21 David Sherwood <david.sherwood@arm.com>
15401 Tejas Belagod <Tejas.Belagod@arm.com>
15403 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
15404 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
15405 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
15408 2015-01-21 David Sherwood <david.sherwood@arm.com>
15409 Tejas Belagod <Tejas.Belagod@arm.com>
15411 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
15412 (aarch64_reverse_mask): New decls.
15413 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
15414 (insn_count): New mode_attr.
15415 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
15416 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
15417 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
15418 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
15419 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
15420 (aarch64_simd_st4): New patterns.
15421 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
15422 (aarch64_reverse_mask): New functions.
15424 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
15426 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
15428 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
15429 addressing modes for BE.
15430 (aarch64_print_operand): Add 'R' specifier.
15431 (aarch64_simd_disambiguate_copy): Delete.
15432 (aarch64_simd_emit_reg_reg_move): New function.
15433 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
15434 in define_splits for structural moves.
15435 (mov<mode>): Use less restrictive predicates.
15436 (*aarch64_mov<mode>): Simplify and only allow for LE.
15437 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
15439 2015-01-21 Alan Hayward <alan.hayward@arm.com>
15441 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
15443 2015-01-21 Richard Henderson <rth@redhat.com>
15446 * ccmp.c (used_in_cond_stmt_p): Remove.
15447 (expand_ccmp_expr): Don't use it.
15449 2015-01-21 Nick Clifton <nickc@redhat.com>
15451 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
15454 2015-01-21 Richard Biener <rguenther@suse.de>
15456 PR middle-end/64313
15457 * tree-core.h (builtin_info, builtin_info_type): Turn from
15458 an object with two arrays into an array of an object with
15459 decl and two flags, implicit_p and declared_p.
15460 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
15461 set_builtin_decl, set_builtin_decl_implicit_p,
15462 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
15463 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
15464 * builtins.c (builtin_info): Adjust.
15465 * gimplify.c (gimplify_addr_expr): References to builtins
15466 that have been declared by the user makes them eligible for
15467 use by the compiler. Call set_builtin_decl_implicit_p on them.
15469 2015-01-20 Jeff Law <law@redhat.com>
15472 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
15473 allow pc-relative addresses in operand predicates or constraints.
15475 2015-01-21 Bin Cheng <bin.cheng@arm.com>
15477 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
15478 neon on aarch32 processors for stringops.
15480 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
15483 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
15485 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
15488 * ipa-inline.c: Include lto-streamer.h
15489 (report_inline_failed_reason): Output source file differences and
15490 flags on optimization/target node mismatch.
15491 (can_inline_edge_p): Consider caller to be the outer inline function;
15492 be less restrictive about matching opimize and optimize_size attributes.
15493 (inline_account_function_p): Break out from ...
15494 (inline_small_functions): ... here.
15495 * ipa-inline-transform.c (clone_inlined_nodes): Use
15496 inline_account_function_p.
15497 (inline_call): Use optimize attribution; use inline_account_function_p.
15498 (inline_transform): Use opt_for_fn.
15499 * ipa-inline.h (inline_account_function_p): Declare.
15501 2015-01-20 Jakub Jelinek <jakub@redhat.com>
15504 * dwarf2out.c (decl_piece_node): Don't put bitsize into
15505 mode if bitsize <= 0.
15506 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
15507 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
15508 sizes and positions.
15510 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
15512 * config/nios2/nios2.c (nios2_asm_file_end): Implement
15513 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
15515 (TARGET_ASM_FILE_END): Define.
15517 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15519 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
15520 (struct tune_params): Use the enum.
15521 * arm.c (arm_*_tune): Update.
15522 (arm_option_override): Update.
15524 2015-01-20 Richard Biener <rguenther@suse.de>
15527 * ipa-reference.c (add_static_var): Inline ...
15528 (analyze_function): ... here after splitting out from ...
15529 (is_proper_for_analysis): ... this.
15531 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
15534 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
15535 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
15536 replace the conditional with it's true branch.
15537 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
15538 (arm_lra_p): Remove.
15540 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
15542 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
15544 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15546 * config/tilegx/mul-tables.c: Move symtab.h include after
15547 coretypes.h include.
15548 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
15549 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
15550 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
15551 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
15552 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
15554 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
15558 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
15560 PR rtl-optimization/64081
15561 * loop-iv.c (def_pred_latch_p): New function.
15562 (latch_dominating_def): Allow specific cases with non-single
15564 (iv_get_reaching_def): Likewise.
15565 (check_complex_exit_p): New function.
15566 (check_simple_exit): Use check_complex_exit_p to allow certain cases
15567 with exits not executing on any iteration.
15569 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
15572 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
15573 to set branch cost.
15575 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
15578 * i386.c (gate): Check flag_expensive_optimizations and
15580 (ix86_option_override_internal): Drop optimize_size condition
15581 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
15582 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
15583 MASK_PREFER_AVX128.
15584 (ix86_avx256_split_vector_move_misalign,
15585 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
15586 * sse.md (all uses of TARGET_PREFER_AVX128): Add
15587 optimize_insn_for_speed_p check.
15589 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
15591 * config/mips/mips.h (FP_ASM_SPEC): New define.
15592 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
15595 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
15598 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
15599 nullptr for insn when reaching the first insn.
15600 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
15601 (sh_insn_operands_modified_between_p): Add nullptr check.
15602 (sh_find_extending_set_of_reg): Fix log message. Don't accept
15603 sign extending mem load if the insn contains any UNSPEC or
15606 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
15608 * params.def (inline-unit-growth): Drop to 15%.
15609 * invoke.texi (inline-unit-growth): Document change.
15611 2015-01-19 Martin Liska <mliska@suse.cz>
15614 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
15615 function for second argument of OBJ_TYPE_REF.
15617 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
15620 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
15621 whether function is an alias.
15623 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
15625 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
15628 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
15630 PR rtl-optimization/64671
15631 * lra-remat.c (operand_to_remat): Don't consider jump and call
15634 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
15637 * config/rs6000/default64.h: Include rs6000-cpus.def.
15638 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
15639 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
15640 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
15642 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
15644 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
15645 pseudo-op to specify assembler dialect.
15647 2015-01-19 Martin Liska <mliska@suse.cz>
15650 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
15651 Handle safe potentially removed nodes during filtering.
15653 2015-01-19 Martin Liska <mliska@suse.cz>
15655 * doc/extend.texi (no_icf): Add new attribute description.
15656 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
15657 where the pass attempts to merge a function with no_icf attribute.
15659 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15662 * doc/md.texi (ARM Options): Document register constraints.
15664 2015-01-19 Jiong Wang <jiong.wang@arm.com>
15665 Andrew Pinski <apinski@cavium.com>
15668 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
15669 (ashl<mode>3): Don't expand if operands[2] is not constant.
15671 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15674 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
15675 Match xor-and-xor RTL pattern.
15677 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
15679 PR rtl-optimization/64081
15680 * loop-iv.c (def_pred_latch_p): New function.
15681 (latch_dominating_def): Allow specific cases with non-single
15683 (iv_get_reaching_def): Likewise.
15684 (check_complex_exit_p): New function.
15685 (check_simple_exit): Use check_complex_exit_p to allow certain cases
15686 with exits not executing on any iteration.
15688 2015-01-19 Jakub Jelinek <jakub@redhat.com>
15690 * common.opt (fgraphite): Fix a typo.
15692 2015-01-19 Felix Yang <felix.yang@huawei.com>
15694 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
15696 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
15697 uminp, smax_nanp, smin_nanp): New builtins.
15698 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
15699 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
15700 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
15701 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
15702 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
15703 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
15704 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
15705 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
15706 vpminnms_f32): Rewrite using builtin functions.
15708 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
15711 * omp-low.c (offload_symbol_decl): Remove variable.
15712 (get_offload_symbol_decl): Remove function.
15713 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
15714 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
15715 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
15716 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
15717 BUILT_IN_GOACC_UPDATE don't pass it at all.
15719 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
15721 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
15724 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
15726 * ipa-chkp.c (chkp_produce_thunks): Add early param
15727 to split thunks production into two passes. Keep
15728 'always_inline' function bodies after the first pass.
15729 (pass_data_ipa_chkp_early_produce_thunks): New.
15730 (pass_ipa_chkp_early_produce_thunks): New.
15731 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
15732 chkp_produce_thunks signature.
15733 (make_pass_ipa_chkp_early_produce_thunks): New.
15734 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
15735 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
15736 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
15738 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
15740 * cgraph.c (cgraph_node::dump): Dump profile flags.
15742 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
15745 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
15746 reg appear first in the parallel.
15748 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
15750 * ipa-reference.c (set_reference_optimization_summary,
15751 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
15753 (ignore_module_statics): New static var.
15754 (propagate_bits): If ipa-reference is disabled, do not look into local
15756 (analyze_function): Disable analysis when ipa_reference is disabled.
15757 (generate_summary): Do not dump when reference is disabled;
15758 collect vars accessed from functions with ipa-reference disabled.
15759 (get_read_write_all_from_node): When ipa-reference is disabled, use the
15761 (gate): Enable for LTO.
15762 (ignore_edge_p): New function.
15763 (propagate): Skip functions w/o ipa-reference analysis.
15764 * optc-save-gen.awk: Handle optimize_debug correctly.
15765 * opth-gen.awk: Likewise.
15766 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
15767 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
15768 fira-share-save-slots, fira-share-spill-slots,
15769 fmodulo-sched-allow-regmoves, fpartial-inlining,
15770 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
15771 ftracer, ftree-parallelize-loops, fassociative-math,
15772 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
15774 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
15775 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
15777 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
15780 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
15783 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
15785 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
15787 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
15789 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
15790 Remove duplicate option listings.
15792 2015-01-18 Felix Yang <felix.yang@huawei.com>
15794 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
15795 (autofdo_source_profile::get_callsite_total_count,
15796 function_instance::get_function_instance_by_decl,
15797 string_table::get_index, string_table::get_index_by_decl,
15798 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
15799 Fix comment typos. Reformatting and minor code rearrangement.
15801 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
15803 * config/rs6000/rs6000.md (probe_stack): Delete.
15804 (probe_stack_address): New.
15806 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
15808 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
15809 to test for 32-bit ABIs, not !TARGET_POWERPC64.
15811 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
15813 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
15814 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
15815 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
15817 (rs6000_libcall_value): Use the new function.
15819 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
15821 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
15823 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
15825 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
15826 implement a more precise life analysis for it during backward scan.
15828 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
15830 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
15832 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
15834 PR rtl-optimization/52773
15835 * calls.c (emit_library_call_value): When pushing arguments use
15836 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
15837 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
15838 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
15840 2015-01-17 Jeff Law <law@redhat.com>
15842 PR rtl-optimization/32790
15843 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
15844 not ZERO_EXTEND in SET_DESTs.
15846 2015-01-17 Alan Modra <amodra@gmail.com>
15848 * cprop.c (do_local_cprop): Revert last change.
15850 2015-01-16 DJ Delorie <dj@redhat.com>
15851 Nick Clifton <nickc@redhat.com>
15853 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
15854 (addhi3_real): Likewise. Fix [HL+0] syntax.
15855 (subqi3_real): Likewise.
15856 (subhi3_real): Likewise.
15857 (cbranchqi4_real): Likewise. Allow saddr,#imm.
15858 (cbranchhi4_real): Likewise.
15859 (cbranchhi4_real_inverted): Likewise.
15860 (cbranchsi4_real_lt): Likewise.
15861 (cbranchsi4_real_ge): Likewise.
15862 (cbranchsi4_real_ge): Likewise.
15863 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
15864 (sub<mode>3_virt): Likewise.
15865 (cbranchqi4_virt): Likewise.
15866 (cbranchhi4_virt): Likewise.
15867 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
15868 always use '[reg+imm]' even when imm is zero.
15869 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
15870 (rl78_general_operand): New.
15871 (rl78_nonimmediate_operand): New.
15872 (rl78_nonfar_operand): Use them.
15873 (rl78_nonfar_nonimm_operand): Likewise.
15874 (rl78_stack_based_mem): Fix.
15875 * config/rl78/constraints.md (Ibqi): New.
15880 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
15881 (iorqi3): Likewise.
15882 (xorqi3): Likewise.
15883 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
15885 * config/rl78/constrains (Qs8): New constraint.
15886 * config/rl78/rl78.c (rl78_flags_already_set): New function.
15887 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
15888 * config/rl78/rl78-real.md (update_Z): New attribute.
15889 Update patterns to set it.
15890 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
15891 shorter compare and branch sequence can be used.
15892 (cbranchhi4_real): Likewise.
15893 (cbranchhi4_real_inverted): Likewise.
15895 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
15896 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
15898 * config/rl78/rl78.c (rl78_get_name_encoding): New.
15899 (rl78_option_override): Allow -mes0 only if C.
15900 (characterize_address): Support subregs of symbol_refs.
15901 (rl78_addr_space_address_mode): Move. Add __near.
15902 (rl78_far_p): Likewise.
15903 (rl78_addr_space_pointer_mode): Likewise.
15904 (rl78_as_legitimate_address): Likewise.
15905 (rl78_addr_space_subset_p): Likewise.
15906 (rl78_addr_space_convert): Likewise.
15907 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
15908 symbols with -mes0.
15909 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
15911 (rl78_alloc_physical_registers_op1): Change logic to prefer
15912 symbol[BC] addressing.
15913 (frodata_section): New.
15914 (rl78_asm_init_sections): Initialize it.
15915 (rl78_select_section): Put __far readonly symbols in .frodata.
15916 (rl78_make_type_far): New.
15917 (rl78_insert_attributes): Force all readonly symbols to be
15919 (rl78_asm_out_integer): New.
15920 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
15921 * config/rl78/rl78.opt (-mes0): New.
15923 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
15924 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
15925 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
15926 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
15927 (rl78_saddr_p): New.
15928 (rl78_output_aligned_common): New.
15929 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
15930 (rl78_handle_saddr_attribute): New.
15931 (rl78_handle_naked_attribute): New.
15932 (rl78_attribute_table): Add saddr.
15933 (rl78_print_operand_1): Don't print '!' on saddr operands.
15934 (rl78_print_operand_1): Strip encodings.
15936 (rl78_strip_name_encoding): New.
15937 (rl78_attrlist_to_encoding): New.
15938 (rl78_encode_section_info): New.
15939 (rl78_asm_init_sections): New.
15940 (rl78_select_section): New.
15941 (rl78_output_labelref): New.
15942 (rl78_output_aligned_common): New.
15943 (rl78_asm_out_integer): New.
15944 (rl78_asm_ctor_dtor): New.
15945 (rl78_asm_constructor): New.
15946 (rl78_asm_destructor): New.
15948 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
15949 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
15950 (transcode_memory_rtx): Update.
15951 (rl78_expand_epilogue): Use A_REG instead of 0.
15953 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15955 * config/arm/arm-protos.h (struct tune_params): New field
15956 sched_autopref_queue_depth.
15957 * config/arm/arm.c (sched-int.h): Include header.
15958 (arm_first_cycle_multipass_dfa_lookahead_guard,)
15959 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
15960 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
15961 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
15962 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
15963 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
15964 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
15965 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
15966 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
15967 * config/arm/t-arm (arm.o): Update.
15968 * haifa-sched.c (update_insn_after_change): Update.
15969 (rank_for_schedule): Use auto-prefetcher model, if requested.
15970 (autopref_multipass_init): New static function.
15971 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
15972 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
15973 variable for debug dumps.
15974 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
15975 (autopref_multipass_dfa_lookahead_guard): New global function that
15976 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
15977 (init_h_i_d): Update.
15978 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
15979 * sched-int.h (enum autopref_multipass_data_status): New const enum.
15980 (autopref_multipass_data_): Structure for auto-prefetcher data.
15981 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
15982 (struct _haifa_insn_data:autopref_multipass_data): New field.
15983 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
15984 (autopref_multipass_dfa_lookahead_guard): Declare.
15986 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15988 * rtlanal.c (get_base_term): Handle SCRATCH.
15990 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15992 * config/aarch64/aarch64.c
15993 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
15994 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
15996 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
15997 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
15999 2015-01-17 Alan Modra <amodra@gmail.com>
16001 * cprop.c (do_local_cprop): Disallow replacement of fixed
16004 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16007 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
16010 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
16012 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
16013 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
16015 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16017 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
16018 * config/arm/thumb1.md: ... Here.
16020 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
16022 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
16023 TImode for TARGET_32BIT.
16025 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
16027 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
16028 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
16030 (rs6000_abi_word_mode): New function.
16032 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
16034 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
16035 instead of UNITS_PER_WORD to describe the size of stack slots.
16037 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
16039 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
16040 as rs6000_promote_function_mode. Move comment to there.
16041 (rs6000_promote_function_mode): New function.
16043 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
16045 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
16046 -mpowerpc64 is active.
16048 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
16050 PR middle-end/64353
16051 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
16054 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
16056 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
16057 introduced in revision 219724.
16059 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16060 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16063 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
16064 destination is not a GP reg.
16065 (*movdi_aarch64): Likewise.
16067 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
16070 * config/rs6000/default64.h: Revert ISA change.
16072 2015-01-16 Richard Biener <rguenther@suse.de>
16074 PR middle-end/64614
16075 * tree-ssa-uninit.c: Include tree-cfg.h.
16076 (MAX_SWITCH_CASES): New define.
16077 (convert_control_dep_chain_into_preds): Handle switch statements.
16078 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
16079 (normalize_one_pred_1): Do not split bit-manipulations.
16082 2015-01-16 Richard Biener <rguenther@suse.de>
16084 PR tree-optimization/64568
16085 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
16086 complex load rewriting for TARGET_MEM_REFs.
16088 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
16090 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
16092 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
16095 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
16097 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
16098 (aarch64_lra_p): Remove.
16100 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
16103 * ipa-chkp.h (chkp_instrumentable_p): New.
16104 * ipa-chkp.c: Include tree-inline.h.
16105 (chkp_instrumentable_p): New.
16106 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
16107 Fix processing of not instrumentable functions.
16108 (chkp_versioning): Use chkp_instrumentable_p. Warn about
16109 not instrumentable functions.
16110 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
16111 chkp_instrumentable_p.
16112 * tree-inline.h (copy_forbidden): New.
16113 * tree-inline.c (copy_forbidden): Not static anymore.
16115 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16117 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
16120 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
16122 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
16123 type OP_OUT to OP_INOUT.
16125 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
16127 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
16128 (high x) y) to y if x and y have the same base.
16130 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
16132 * config/arm/cortex-a57.md: New.
16133 * config/aarch64/aarch64.md: Include it.
16134 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
16135 * config/aarch64/aarch64-tune.md: Regenerate.
16137 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
16140 * ccmp.c (expand_ccmp_next): New function.
16141 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
16142 and compare insn sequence.
16143 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
16144 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
16145 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
16146 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
16147 (*ccmp_ior): Changed to ccmp_ior<mode>.
16148 (cmp<mode>): New pattern.
16149 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
16151 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
16153 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
16155 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
16156 _mm256_bsrli_epi128): New.
16157 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
16159 2015-01-15 Jiong Wang <jiong.wang@arm.com>
16161 * expmed.c (store_bit_field_using_insv): Improve warning message.
16162 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
16164 2015-01-15 Jiong Wang <jiong.wang@arm.com>
16166 PR rtl-optimization/64011
16167 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
16168 there is partial overflow.
16170 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
16172 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
16174 (nds32_expand_epilogue_v3pop): Likewise.
16175 * config/nds32/nds32.md (sibcall): Define this for sibling call
16177 (sibcall_register): Likewise.
16178 (sibcall_immediate): Likewise.
16179 (sibcall_value): Likewise.
16180 (sibcall_value_register): Likewise.
16181 (sibcall_value_immediate): Likewise.
16182 (sibcall_epilogue): Likewise.
16183 (epilogue): Pass false to indicate this is not a sibcall epilogue.
16184 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
16185 (nds32_expand_epilogue_v3pop): Likewise.
16187 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
16189 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
16190 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
16191 (return_internal): New.
16192 (return): Define this named pattern.
16193 (simple_return): Define this named pattern.
16194 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
16195 pattern instead of unspec_volatile_func_return.
16196 (nds32_expand_epilogue_v3pop): Likewise.
16197 (nds32_can_use_return_insn): New function.
16199 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
16201 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
16202 * config/nds32/nds32.md (pop25return): New.
16203 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
16204 pop25return pattern.
16206 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
16208 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
16209 -mforbid-fp-as-gp, and -mex9 options.
16211 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
16213 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
16214 remove -mgp-direct option.
16216 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
16218 * doc/invoke.texi (--param early-inlining-insns): Update default value.
16219 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
16221 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
16223 * ipa-inline.c (inline_small_functions): Work around hints
16226 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
16229 * doc/invoke.texi (Option Summary): Document new Nios II
16231 (Nios II Options): Likewise.
16232 * config/nios2/nios2.opt: Add -mgpopt= option support.
16233 Modify existing -mgpopt and -mno-gpopt options to be aliases.
16234 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
16235 * config/nios2/nios2.c (nios2_option_override): Adjust
16236 -mgpopt defaulting.
16237 (nios2_in_small_data_p): Return true for explicit small data
16238 sections even with -G0.
16239 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
16242 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
16245 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
16247 (inline_call): Fix removal of aliases.
16249 2015-01-15 Jakub Jelinek <jakub@redhat.com>
16251 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
16252 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
16253 * opts.c (common_handle_option): Add -fsanitize=vptr.
16254 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
16255 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
16256 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
16257 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
16258 (ubsan_expand_vptr_ifn): New prototype.
16259 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
16260 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
16261 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
16262 expand_LOOP_VECTORIZED): Make argument nameless, remove
16264 (expand_UBSAN_VPTR): New function.
16265 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
16267 (UBSAN_VPTR): New internal function.
16268 * sanopt.c (tree_map_traits): Renamed to ...
16269 (sanopt_tree_map_traits): ... this.
16270 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
16271 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
16272 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
16273 (maybe_optimize_ubsan_vptr_ifn): New function.
16274 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
16275 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
16277 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
16278 internal calls like pure functions for aliasing, even when they
16279 have other side-effects that prevent making them ECF_PURE.
16280 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
16281 (ubsan_expand_vptr_ifn): New function.
16283 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
16285 PR rtl-optimization/64110
16286 * stmt.c (parse_output_constraint): Process '^' and '$'.
16287 (parse_input_constraint): Ditto.
16288 * lra-constraints.c (process_alt_operands): Process the new
16290 * ira-costs.c (record_reg_classes): Process the new constraint
16292 * genoutput.c (indep_constraints): Add '^' and '$'.
16293 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
16294 * doc/md.texi: Add description of the new constraints.
16296 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
16297 Bernd Schmidt <bernds@codesourcery.com>
16298 Cesar Philippidis <cesar@codesourcery.com>
16299 James Norris <jnorris@codesourcery.com>
16300 Tom de Vries <tom@codesourcery.com>
16301 Ilmir Usmanov <i.usmanov@samsung.com>
16302 Dmitry Bocharnikov <dmitry.b@samsung.com>
16303 Evgeny Gavrin <e.gavrin@samsung.com>
16304 Jakub Jelinek <jakub@redhat.com>
16306 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
16307 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
16308 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
16309 New function types.
16310 * builtins.c: Include "gomp-constants.h".
16311 (expand_builtin_acc_on_device): New function.
16312 (expand_builtin, is_inexpensive_builtin): Handle
16313 BUILT_IN_ACC_ON_DEVICE.
16314 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
16316 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
16318 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
16319 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
16320 i386/intelmic-offload.h.
16321 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
16322 to libgomp and its dependencies.
16323 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
16324 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
16325 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
16326 * config/ia64/hpux.h (LIB_SPEC): Likewise.
16327 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
16328 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
16329 * doc/generic.texi: Update for OpenACC changes.
16330 * doc/gimple.texi: Likewise.
16331 * doc/invoke.texi: Likewise.
16332 * doc/sourcebuild.texi: Likewise.
16333 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
16334 GF_OMP_FOR_KIND_OACC_LOOP.
16335 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
16336 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
16337 GF_OMP_TARGET_KIND_OACC_UPDATE,
16338 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
16340 * gimple.c: Update comments for OpenACC changes.
16341 * gimple.def: Likewise.
16342 * gimple.h: Likewise.
16343 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
16344 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
16345 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
16346 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
16347 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
16349 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
16350 * gimplify.c: Include "gomp-constants.h".
16351 Update comments for OpenACC changes.
16352 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
16353 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
16354 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
16355 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
16356 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
16357 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
16358 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
16359 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
16360 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
16362 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
16363 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
16364 OMP_CLAUSE_SET_MAP_KIND.
16365 (gimplify_oacc_cache): New function.
16366 (gimplify_omp_for): Handle OACC_LOOP.
16367 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
16369 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
16370 OACC_EXIT_DATA, OACC_UPDATE.
16371 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
16372 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
16373 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
16374 (gimplify_body): Consider flag_openacc next to flag_openmp.
16375 * lto-streamer-out.c: Include "gomp-constants.h".
16376 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
16377 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
16378 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
16379 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
16380 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
16381 (BUILT_IN_ACC_ON_DEVICE): New builtins.
16382 * omp-low.c: Include "gomp-constants.h".
16383 Update comments for OpenACC changes.
16384 (struct omp_context): Add reduction_map, gwv_below, gwv_this
16386 (extract_omp_for_data, use_pointer_for_field, install_var_field)
16387 (new_omp_context, delete_omp_context, scan_sharing_clauses)
16388 (create_omp_child_function, scan_omp_for, scan_omp_target)
16389 (check_omp_nesting_restrictions, lower_reduction_clauses)
16390 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
16391 Update for OpenACC changes.
16392 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
16393 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
16394 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
16395 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
16396 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
16397 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
16399 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
16400 Handle GF_OMP_FOR_KIND_OACC_LOOP.
16401 (expand_omp_target, lower_omp_target): Handle
16402 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
16403 GF_OMP_TARGET_KIND_OACC_UPDATE,
16404 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
16405 GF_OMP_TARGET_KIND_OACC_DATA.
16406 (pass_expand_omp::execute, execute_lower_omp)
16407 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
16409 (offload_symbol_decl): New variable.
16410 (oacc_get_reduction_array_id, oacc_max_threads)
16411 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
16412 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
16413 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
16414 (oacc_gimple_assign, oacc_initialize_reduction_data)
16415 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
16417 (is_targetreg_ctx): Remove function.
16418 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
16419 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
16420 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
16421 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
16422 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
16423 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
16424 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
16425 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
16426 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
16427 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
16428 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
16429 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
16430 * tree-core.h: Update comments for OpenACC changes.
16431 (enum omp_clause_map_kind): Remove.
16432 (struct tree_omp_clause): Change type of map_kind member from enum
16433 omp_clause_map_kind to unsigned char.
16434 * tree-inline.c: Update comments for OpenACC changes.
16435 * tree-nested.c: Likewise. Include "gomp-constants.h".
16436 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
16437 (convert_tramp_reference_stmt, convert_gimple_call): Update for
16438 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
16439 OMP_CLAUSE_SET_MAP_KIND.
16440 * tree-pretty-print.c: Include "gomp-constants.h".
16441 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
16442 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
16443 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
16444 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
16445 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
16446 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
16447 instead of OMP_CLAUSE_MAP_*.
16448 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
16449 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
16450 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
16451 * tree-streamer-in.c: Include "gomp-constants.h".
16452 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
16453 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
16454 * tree-streamer-out.c: Include "gomp-constants.h".
16455 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
16457 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
16458 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
16459 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
16460 * tree.c (omp_clause_num_ops): Update accordingly.
16461 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
16463 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
16464 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
16465 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
16466 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
16467 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
16468 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
16469 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
16470 (OMP_CLAUSE_SET_MAP_KIND): New macro.
16471 * varpool.c (varpool_node::get_create): Consider flag_openacc next
16473 * config/i386/intelmic-offload.h: New file.
16474 * config/nvptx/offload.h: Likewise.
16476 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16478 * explow.h: Remove duplicate contents.
16479 * dojump.h: Likewise.
16481 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
16483 * arm.c (arm_xgene_tune): Add default initializer for instruction
16486 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
16490 * ipa.c (symbol_table::remove_unreachable_nodes):
16491 Do not put abstract origins into boundary.
16493 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
16495 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
16496 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
16498 2015-01-15 Steve Ellcey <sellcey@mips.com>
16500 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
16501 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
16502 builtins.def, and chkp-builtins.def.
16504 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
16506 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
16509 2015-01-15 Richard Biener <rguenther@suse.de>
16511 PR tree-optimization/61743
16512 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
16513 information on PHIs for some simple cases.
16515 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16517 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
16519 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
16520 * config/arm/arm-cores.def (xgene1): New entry.
16521 * config/arm/arm-tables.opt: Regenerate.
16522 * config/arm/arm-tune.md: Regenerate.
16523 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
16525 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
16527 * tree-if-conv.c: Include hash-map.h.
16528 (aggressive_if_conv): New variable.
16529 (fold_build_cond_expr): Add simplification of non-zero condition.
16530 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
16531 destination block is not always executed.
16532 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
16533 than two predecessors if AGGRESSIVE_IF_CONV is true.
16534 (if_convertible_stmt_p): Fix commentary.
16535 (all_preds_critical_p): New function.
16536 (has_pred_critical_p): New function.
16537 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
16538 BB can have more than two predecessors and all incoming edges can be
16540 (predicate_bbs): Skip predication for loop exit block, use build2_loc
16541 to compute predicate for true edge.
16542 (find_phi_replacement_condition): Delete this function.
16543 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
16544 Allow interchange PHI arguments if EXTENDED is false.
16545 Change check that block containing reduction statement candidate
16546 is predecessor of phi-block since phi may have more than two arguments.
16547 (phi_args_hash_traits): New helper structure.
16548 (struct phi_args_hash_traits): New type.
16549 (phi_args_hash_traits::hash): New function.
16550 (phi_args_hash_traits::equal_keys): New function.
16551 (gen_phi_arg_condition): New function.
16552 (predicate_scalar_phi): Add handling of phi nodes with more than two
16553 arguments, delete COND and TRUE_BB arguments, insert body of
16554 find_phi_replacement_condition to predicate ordinary phi nodes.
16555 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
16556 delete call of find_phi_replacement_condition and invoke
16557 predicate_scalar_phi with two arguments.
16558 (insert_gimplified_predicates): Add assert that non-predicated block
16559 don't have statements to insert.
16560 (ifcvt_split_critical_edges): New function.
16561 (ifcvt_split_def_stmt): Likewise.
16562 (ifcvt_walk_pattern_tree): Likewise.
16563 (stmt_is_root_of_bool_pattern): Likewise.
16564 (ifcvt_repair_bool_pattern): Likewise.
16565 (ifcvt_local_dce): Likewise.
16566 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
16567 is copy of inner or outer loop force_vectorize field, invoke
16568 ifcvt_split_critical_edges, ifcvt_local_dce and
16569 ifcvt_repair_bool_pattern for aggressive if-conversion.
16571 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
16573 * config/aarch64/aarch64.md: Include xgene1.md.
16574 * config/aarch64/xgene1.md: New file.
16576 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16578 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
16579 xgene1 (APM XGene-1) core definition.
16580 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
16581 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
16582 * doc/invoke.texi: Document -mcpu=xgene1.
16584 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16586 * dojump.h: New header file.
16587 * explow.h: Likewise.
16588 * expr.h: Remove includes.
16589 Move expmed.c prototypes to expmed.h.
16590 Move dojump.c prototypes to dojump.h.
16591 Move alias.c prototypes to alias.h.
16592 Move explow.c prototypes to explow.h.
16593 Move calls.c prototypes to calls.h.
16594 Move emit-rtl.c prototypes to emit-rtl.h.
16595 Move varasm.c prototypes to varasm.h.
16596 Move stmt.c prototypes to stmt.h.
16597 (saved_pending_stack_adjust): Move to dojump.h.
16598 (adjust_address): Move to explow.h.
16599 (adjust_address_nv): Move to emit-rtl.h.
16600 (adjust_bitfield_address): Likewise.
16601 (adjust_bitfield_address_size): Likewise.
16602 (adjust_bitfield_address_nv): Likewise.
16603 (adjust_automodify_address_nv): Likewise.
16604 * explow.c (expr_size): Move to expr.c.
16605 (int_expr_size): Likewise.
16606 (tree_expr_size): Likewise.
16607 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16608 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
16609 * genemit.c (main): Generate includes statistics.h, real.h,
16610 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
16612 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
16613 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
16614 explow.h, emit-rtl.h, stmt.h.
16615 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
16616 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
16617 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
16618 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
16619 emit-rtl.h, varasm.h, stmt.h.
16620 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
16621 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
16622 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
16623 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
16624 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
16625 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
16626 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
16627 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
16628 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
16629 tm.h tree.h varasm.h vec.h wide-int.h.
16630 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
16631 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
16632 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
16633 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
16634 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
16635 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
16636 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
16637 * loop-iv.c: Likewise.
16638 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
16639 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
16640 statistics.h stmt.h tree.h varasm.h wide-int.h.
16641 * lra-constraints.c: Likewise.
16642 * lra-eliminations.c: Likewise.
16643 * lra-lives.c: Likewise.
16644 * lra-remat.c: Likewise.
16645 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
16646 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
16647 statistics.h stmt.h tree.h varasm.h wide-int.h.
16648 * hw-doloop.c: Likewise.
16649 * ira-color.c: Likewise.
16650 * ira-emit.c: Likewise.
16651 * loop-doloop.c: Likewise.
16652 * loop-invariant.c: Likewise.
16653 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
16654 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
16655 statistics.h stmt.h tree.h varasm.h wide-int.h.
16656 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
16657 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
16658 statistics.h stmt.h tree.h varasm.h wide-int.h.
16659 * combine-stack-adj.c: Likewise.
16662 * ifcvt.c: Likewise.
16663 * ira-costs.c: Likewise.
16664 * jump.c: Likewise.
16665 * lra-coalesce.c: Likewise.
16666 * lra-spills.c: Likewise.
16667 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
16668 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
16669 stmt.h varasm.h wide-int.h.
16670 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
16671 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
16673 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
16674 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
16675 statistics.h stmt.h varasm.h wide-int.h.
16676 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
16677 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
16678 varasm.h wide-int.h.
16679 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
16680 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
16681 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
16682 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
16683 statistics.h stmt.h.
16684 * config/tilepro/tilepro.c: Likewise.
16685 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
16686 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
16687 * config/pdp11/pdp11.c: Likewise.
16688 * config/xtensa/xtensa.c: Likewise.
16689 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
16690 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
16692 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16693 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
16694 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
16695 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16696 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
16697 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
16698 * rtl-chkp.c: Likewise.
16699 * tree-chkp-opt.c: Likewise.
16700 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
16701 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
16702 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
16703 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16704 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
16705 statistics.h stmt.h.
16706 * tree-vect-data-refs.c: Likewise.
16707 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
16708 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
16709 rtl.h statistics.h stmt.h varasm.h.
16710 * internal-fn.c: Likewise.
16711 * ipa-icf-gimple.c: Likewise.
16712 * lto-section-out.c: Likewise.
16713 * tree-data-ref.c: Likewise.
16714 * tree-nested.c: Likewise.
16715 * tree-outof-ssa.c: Likewise.
16716 * tree-predcom.c: Likewise.
16717 * tree-pretty-print.c: Likewise.
16718 * tree-scalar-evolution.c: Likewise.
16719 * tree-ssa-strlen.c: Likewise.
16720 * tree-vect-loop.c: Likewise.
16721 * tree-vect-patterns.c: Likewise.
16722 * tree-vect-slp.c: Likewise.
16723 * tree-vect-stmts.c: Likewise.
16724 * tsan.c: Likewise.
16725 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16726 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
16728 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
16729 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
16730 statistics.h stmt.h varasm.h.
16731 * loop-unroll.c: Likewise.
16732 * ubsan.c: Likewise.
16733 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
16734 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
16736 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16737 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
16738 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
16739 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
16740 statistics.h stmt.h.
16741 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
16742 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
16743 statistics.h stmt.h varasm.h.
16744 * gimple-match-head.c: Likewise.
16745 * lto-cgraph.c: Likewise.
16746 * lto-section-in.c: Likewise.
16747 * lto-streamer-in.c: Likewise.
16748 * lto-streamer-out.c: Likewise.
16749 * tree-affine.c: Likewise.
16750 * tree-cfg.c: Likewise.
16751 * tree-cfgcleanup.c: Likewise.
16752 * tree-if-conv.c: Likewise.
16753 * tree-into-ssa.c: Likewise.
16754 * tree-ssa-alias.c: Likewise.
16755 * tree-ssa-copyrename.c: Likewise.
16756 * tree-ssa-dse.c: Likewise.
16757 * tree-ssa-forwprop.c: Likewise.
16758 * tree-ssa-live.c: Likewise.
16759 * tree-ssa-math-opts.c: Likewise.
16760 * tree-ssa-pre.c: Likewise.
16761 * tree-ssa-sccvn.c: Likewise.
16762 * tree-tailcall.c: Likewise.
16763 * tree-vect-generic.c: Likewise.
16764 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16765 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
16766 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16767 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
16768 * varasm.c: Likewise.
16769 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16770 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
16772 * init-regs.c: Likewise.
16774 * omp-low.c: Likewise.
16775 * stack-ptr-mod.c: Likewise.
16776 * tree-ssa-reassoc.c: Likewise.
16777 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16778 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
16780 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16781 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
16782 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16783 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
16784 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16785 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
16786 * tree-ssa-phiopt.c: Likewise.
16787 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16788 fixed-value.h hashtab.h real.h statistics.h stmt.h.
16789 * config/fr30/fr30.c: Likewise.
16790 * config/frv/frv.c: Likewise.
16791 * expr.c: Likewise.
16792 * final.c: Likewise.
16793 * optabs.c: Likewise.
16794 * passes.c: Likewise.
16795 * simplify-rtx.c: Likewise.
16796 * stmt.c: Likewise.
16797 * toplev.c: Likewise.
16798 * var-tracking.c: Likewise.
16799 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16800 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
16801 * lower-subreg.c: Likewise.
16802 * postreload-gcse.c: Likewise.
16804 * reginfo.c: Likewise.
16805 * store-motion.c: Likewise.
16806 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16807 fixed-value.h hashtab.h real.h stmt.h varasm.h.
16808 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16809 fixed-value.h hashtab.h statistics.h stmt.h.
16810 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16811 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
16812 * except.c: Likewise.
16813 * explow.c: Likewise.
16814 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16815 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
16817 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16818 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
16819 * tree-ssa-structalias.c: Likewise.
16820 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16821 fixed-value.h insn-config.h real.h statistics.h.
16822 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16823 fixed-value.h insn-config.h real.h statistics.h stmt.h.
16824 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16825 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
16826 * cfgbuild.c: Likewise.
16827 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16828 fixed-value.h real.h rtl.h statistics.h stmt.h.
16829 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16830 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
16831 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16832 fixed-value.h real.h statistics.h stmt.h.
16833 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16834 fixed-value.h real.h statistics.h stmt.h varasm.h.
16835 * cprop.c: Likewise.
16836 * modulo-sched.c: Likewise.
16837 * postreload.c: Likewise.
16838 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
16839 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
16840 statistics.h stmt.h varasm.h.
16841 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
16842 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
16843 rtl.h statistics.h stmt.h varasm.h.
16844 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
16845 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
16847 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
16848 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
16850 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
16851 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
16853 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
16854 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
16855 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
16856 function.h real.h statistics.h stmt.h varasm.h.
16857 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
16858 insn-config.h real.h statistics.h stmt.h.
16859 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
16860 statistics.h stmt.h.
16861 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
16862 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
16863 statistics.h stmt.h varasm.h.
16864 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
16865 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
16866 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
16867 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
16868 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
16869 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
16870 statistics.h stmt.h varasm.h.
16871 * ipa-polymorphic-call.c: Likewise.
16872 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
16873 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
16874 statistics.h stmt.h.
16875 * config/c6x/c6x.c: Likewise.
16876 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
16877 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
16878 statistics.h stmt.h varasm.h.
16879 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
16880 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
16882 * ipa-split.c: Likewise.
16883 * tree-eh.c: Likewise.
16884 * tree-ssa-dce.c: Likewise.
16885 * tree-ssa-loop-niter.c: Likewise.
16886 * tree-vrp.c: Likewise.
16887 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
16888 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
16890 * config/nds32/nds32-fp-as-gp.c: Likewise.
16891 * config/nds32/nds32-intrinsic.c: Likewise.
16892 * config/nds32/nds32-isr.c: Likewise.
16893 * config/nds32/nds32-md-auxiliary.c: Likewise.
16894 * config/nds32/nds32-memory-manipulation.c: Likewise.
16895 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16896 * config/nds32/nds32-predicates.c: Likewise.
16897 * config/nds32/nds32.c: Likewise.
16898 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
16899 fixed-value.h hashtab.h real.h statistics.h.
16900 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
16901 fixed-value.h hashtab.h real.h statistics.h stmt.h.
16902 * config/arm/arm.c: Likewise.
16903 * config/avr/avr.c: Likewise.
16904 * config/bfin/bfin.c: Likewise.
16905 * config/h8300/h8300.c: Likewise.
16906 * config/i386/i386.c: Likewise.
16907 * config/ia64/ia64.c: Likewise.
16908 * config/iq2000/iq2000.c: Likewise.
16909 * config/m32c/m32c.c: Likewise.
16910 * config/m32r/m32r.c: Likewise.
16911 * config/m68k/m68k.c: Likewise.
16912 * config/mcore/mcore.c: Likewise.
16913 * config/mep/mep.c: Likewise.
16914 * config/mips/mips.c: Likewise.
16915 * config/mn10300/mn10300.c: Likewise.
16916 * config/moxie/moxie.c: Likewise.
16917 * config/pa/pa.c: Likewise.
16918 * config/rl78/rl78.c: Likewise.
16919 * config/rx/rx.c: Likewise.
16920 * config/s390/s390.c: Likewise.
16921 * config/sh/sh.c: Likewise.
16922 * config/sparc/sparc.c: Likewise.
16923 * config/spu/spu.c: Likewise.
16924 * config/stormy16/stormy16.c: Likewise.
16925 * config/v850/v850.c: Likewise.
16926 * config/vax/vax.c: Likewise.
16927 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
16928 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
16929 * config/msp430/msp430.c: Likewise.
16930 * predict.c: Likewise.
16931 * value-prof.c: Likewise.
16932 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
16933 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
16934 * config/microblaze/microblaze.c: Likewise.
16935 * config/nios2/nios2.c: Likewise.
16936 * config/rs6000/rs6000.c: Likewise.
16937 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
16938 insn-config.h real.h rtl.h statistics.h stmt.h.
16939 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
16940 insn-config.h real.h statistics.h stmt.h.
16941 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
16942 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
16943 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
16944 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
16945 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
16946 fixed-value.h real.h statistics.h stmt.h.
16947 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
16948 fixed-value.h statistics.h stmt.h.
16949 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
16952 2015-01-15 Jakub Jelinek <jakub@redhat.com>
16954 * gengtype.c (create_user_defined_type): Workaround
16955 -Wmaybe-uninitialized false positives.
16956 * cse.c (fold_rtx): Likewise.
16957 * loop-invariant.c (gain_for_invariant): Likewise.
16959 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
16961 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
16962 set the memory attributes in all cases but clear MEM_EXPR if need be.
16964 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
16966 PR tree-optimization/64434
16967 * cfgexpand.c (reorder_operands): New function.
16968 (expand_gimple_basic_block): Insert call of reorder_operands if
16971 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
16973 * config/mips/micromips.md (*swp): Remove explicit parallel.
16974 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
16975 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
16976 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
16977 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
16978 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
16979 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
16980 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
16981 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
16982 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
16983 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
16984 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
16985 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
16986 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
16987 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
16988 (mips_wrdsp): Likewise.
16989 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
16991 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
16992 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
16993 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
16994 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
16995 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
16996 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
16997 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
16998 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
16999 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
17001 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
17003 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
17004 (mips_print_operand): Support 'y' to print exact log2 in decimal
17006 * config/mips/mips.h (ISA_HAS_LSA): New define.
17007 (ISA_HAS_DLSA): Likewise.
17008 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
17009 * config/mips/predicates.md (const_immlsa_operand): New predicate.
17011 2015-01-15 Martin Liska <mliska@suse.cz>
17014 * optc-save-gen.awk: Add support for array types.
17016 2015-01-15 Richard Biener <rguenther@suse.de>
17018 PR middle-end/64365
17019 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
17020 for MEM_REF access functions with the same base can never partially
17023 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
17025 * common.opt: New option -fstack-protector-explicit.
17026 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
17027 (stack_protect_decl_phase): Handle stack_protect attribute for
17028 explicit stack protection requests.
17029 (expand_used_vars): Similarly.
17030 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
17031 * doc/extend.texi: Add documentation for "stack_protect" attribute.
17032 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
17034 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
17037 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
17039 (sh_extending_set_of_reg): New struct.
17040 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
17041 sh_remove_reg_dead_or_unused_notes): New Declarations.
17042 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
17043 sh_find_extending_set_of_reg, sh_split_tst_subregs,
17044 sh_extending_set_of_reg::use_as_extended_reg): New functions.
17045 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
17046 convert to insn_and_split and use new function sh_split_tst_subregs.
17048 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
17050 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
17052 (Optimization Options): Move -fuse-ld documentation to...
17053 (Link Options): ...here.
17055 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
17057 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
17059 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
17060 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
17061 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
17062 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
17063 instead of ZR for the memory operand of LL/SC.
17064 (compare_and_swap_12, sync_add<mode>): Likewise.
17065 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
17066 (sync_new_<optab>_12, sync_nand_12): Likewise.
17067 (sync_old_nand_12, sync_new_nand_12): Likewise.
17068 (sync_sub<mode>, sync_old_add<mode>): Likewise.
17069 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
17070 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
17071 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
17072 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
17073 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
17074 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
17075 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
17076 * doc/md.texi (ZC): Update description.
17078 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
17080 * builtins.c (expand_builtin_atomic_exchange): Remove error when
17081 memory model is CONSUME.
17082 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
17083 expand_builtin_atomic_store): Change invalid memory model errors to
17085 (expand_builtin_atomic_clear): Change invalid model errors to warnings
17086 and issue warning for CONSUME.
17088 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
17090 * lto-cgraph: Update function comments for
17091 lto_symtab_encoder_encode_*.
17093 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
17095 * Makefile.in (site.exp): Do not set ENABLE_LTO.
17097 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
17099 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
17100 * lto-cgraph.c (select_what_to_stream): Remove argument, use
17101 lto_stream_offload_p instead.
17102 * lto-streamer.h (select_what_to_stream): Remove argument.
17103 * passes.c (ipa_write_summaries): Likewise.
17104 * tree-pass.h (ipa_write_summaries): Likewise.
17106 2015-01-14 Richard Biener <rguenther@suse.de>
17108 PR tree-optimization/59354
17109 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
17110 groups larger than the slp group size as having gaps.
17112 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
17114 PR middle-end/59448
17115 * builtins.c (get_memmodel): Promote consume to acquire always.
17117 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
17120 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
17123 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
17126 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
17128 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
17129 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
17130 AVX512VBMI, as it implies AVX512BW.
17132 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
17135 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
17136 (vec_unpacks_hi_v16sf): Ditto.
17138 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17140 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
17143 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17145 * doc/invoke.texi (mapcs): Mention deprecation.
17146 (mapcs-frame): Likewise.
17148 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
17151 * config/arm/arm.c (callee_saved_reg_p): Define.
17152 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
17153 register is callee saved instead of !call_used_regs[reg].
17154 (thumb1_compute_save_reg_mask): Likewise.
17156 2015-01-14 Hale Wang <hale.wang@arm.com>
17158 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
17161 2015-01-14 Richard Biener <rguenther@suse.de>
17164 * tree-inline.c (insert_debug_decl_map): Check destination
17165 function MAY_HAVE_DEBUG_STMTS.
17166 (insert_init_debug_bind): Likewise.
17167 (insert_init_stmt): Remove redundant check.
17168 (remap_gimple_stmt): Drop debug stmts if the destination
17169 function has var-tracking assignments disabled.
17171 2015-01-14 Martin Liska <mliska@suse.cz>
17173 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
17174 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
17176 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17179 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
17180 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
17182 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
17184 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
17185 level from an ARCH; do not inject the default.
17186 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
17187 MIPS_ISA_LEVEL_SPEC.
17188 (MIPS_ISA_NAN2008_SPEC): Update comment.
17189 (BASE_DRIVER_SELF_SPECS): Likewise.
17190 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
17191 MIPS_DEFAULT_ISA_LEVEL_SPEC.
17192 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
17193 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
17194 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
17196 2015-01-14 Richard Biener <rguenther@suse.de>
17198 PR tree-optimization/64493
17199 PR tree-optimization/64495
17200 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
17201 assign the proper vectorized PHI to the inner loop exit PHIs.
17203 2015-01-14 Joey Ye <joey.ye@arm.com>
17205 * config/arm/arm.c (arm_compute_save_reg_mask):
17206 Do not save lr in case of tail call.
17207 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
17209 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
17211 * tree-vrp.c (check_array_ref): Emit more warnings
17212 for warn_array_bounds >= 2.
17213 * common.opt: New option -Warray-bounds=.
17214 * doc/invoke.texi: Document -Warray-bounds=.
17216 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
17218 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
17219 (mforbid-fp-as-gp): Remove.
17221 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
17222 (nds32_symbol_load_store_p): Remove.
17223 (nds32_fp_as_gp_check_available): Clean up implementation.
17224 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
17226 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
17227 fp-as-gp and ex9 cases.
17229 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
17231 * tree-profile.c (init_ic_make_global_vars): Drop workaround
17232 for bintuils bug 14342.
17233 (init_ic_make_global_vars): Likewise.
17234 (gimple_init_edge_profiler): Likewise.
17235 (gimple_gen_ic_func_profiler): Likewise.
17237 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17239 * ipa-inline.c (inline_small_functions): Swap the operands in
17242 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
17245 * ipa-inline-analysis.c (node_growth_cache): Remove.
17246 (initialize_growth_caches): Do not initialize it.
17247 (free_growth_caches): Do not free it.
17248 (do_estimate_growth): Rename to ...
17249 (estimate_growth): ... this one; drop growth cache code.
17250 (growth_likely_positive): Always go the heuristics way.
17251 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
17252 (reset_edge_caches): Do not reset node growth.
17253 (heap_edge_removal_hook): Do not maintain cache.
17254 (inline_small_functions): Likewise; strenghten sanity check.
17255 (ipa_inline): Do not maintain caches.
17256 * ipa-inline.h (node_growth_cache): Remove.
17257 (do_estimate_growth): Remove to ...
17258 (estimate_growth): this one; remove inline version.
17259 (reset_node_growth_cache): Remove.
17261 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
17264 * ipa-inline.c (inline_small_functions): Update callee keys after
17265 resolving speculation
17266 (inline_small_functions): Always check monotonicity of the queue.
17268 2015-01-13 Marek Polacek <polacek@redhat.com>
17270 PR middle-end/64391
17271 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
17273 2015-01-13 Jakub Jelinek <jakub@redhat.com>
17275 PR rtl-optimization/64286
17276 * ree.c (combine_reaching_defs): Move part of comment earlier,
17277 remove !SCALAR_INT_MODE_P check.
17278 (add_removable_extension): Don't add vector mode
17279 extensions if all uses of the source register aren't the same
17282 2015-01-13 Renlin Li <renlin.li@arm.com>
17284 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
17285 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
17287 2015-01-13 Martin Liska <mliska@suse.cz>
17289 * ipa-icf.c (sem_function::equals_private): Call new functions
17290 cl_target_option_print_diff and cl_optimization_print_diff.
17291 * optc-save-gen.awk (cl_target_option_print_diff): New function.
17292 (cl_optimization_print_diff): Likewise.
17293 * opth-gen.awk: Likewise.
17295 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
17297 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
17298 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
17299 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
17300 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
17301 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
17302 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
17304 2015-01-13 Andrew Pinski <apinski@cavium.com>
17306 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
17307 instead of src mode.
17309 2015-01-13 Richard Biener <rguenther@suse.de>
17312 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
17315 2015-01-13 Andrew Pinski <apinski@cavium.com>
17317 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
17319 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
17321 2015-01-13 Jakub Jelinek <jakub@redhat.com>
17323 PR middle-end/63974
17324 * cfgexpand.c (expand_computed_goto): Don't call
17325 convert_memory_address here.
17327 2015-01-13 Richard Biener <rguenther@suse.de>
17329 PR tree-optimization/64406
17330 * tree-loop-distibution.c (pass_loop_distribution::execute):
17331 Reset the SCEV hashtable if we distributed anything.
17333 2015-01-13 Richard Biener <rguenther@suse.de>
17335 PR tree-optimization/64404
17336 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
17337 SLP types for CSEd loads.
17339 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
17341 PR tree-optimization/64436
17342 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
17343 merge of two symbolic numbers for a bitwise OR to ...
17344 (perform_symbolic_merge): This. Also fix computation of the range and
17345 end of the symbolic number corresponding to the result of a bitwise OR.
17347 2015-01-13 Richard Biener <rguenther@suse.de>
17349 PR tree-optimization/64568
17350 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
17351 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
17353 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
17355 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
17356 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
17358 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
17360 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
17361 target-specific symbol_ref flag.
17362 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
17363 resides in rodata section.
17364 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
17365 (nds32_encode_section_info): New function.
17367 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
17369 * config/nds32/nds32.md (call): Use pseudo instruction bal which
17370 clobbers TA_REGNUM if large code model is specified.
17371 (call_register): Likewise.
17372 (call_immediate): Likewise.
17373 (call_value): Likewise.
17374 (call_value_register): Likewise.
17375 (call_value_immediate): Likewise.
17377 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
17379 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
17380 (TARGET_CMODEL_MEDIUM): New macro.
17381 (TARGET_CMODEL_LARGE): New macro.
17382 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
17383 code model setting in assembly code.
17385 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
17387 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
17388 Remove MASK_GP_DIRECT flag.
17389 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
17390 one of the multilib default options.
17391 * config/nds32/nds32.opt (mgp-direct): Remove.
17392 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
17393 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
17395 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
17397 * config/nds32/nds32.opt (mcmodel): Add new option.
17398 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
17399 to describe code model.
17401 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
17404 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
17406 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
17408 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
17409 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
17410 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
17411 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
17412 __builtin_sh_set_fpscr.
17414 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
17416 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
17417 after a funtion name just to indicate it is a function.
17418 ([-fsanitize-undefined-trap-on-error]): Likewise.
17419 ([-fdbg-cnt=]): Likewise.
17420 ([-mmemcpy]): Likewise.
17421 ([-mflush-func]): Likewise.
17422 ([-msynci]): Likewise.
17424 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
17426 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
17429 2015-01-12 Jakub Jelinek <jakub@redhat.com>
17431 PR tree-optimization/64563
17432 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
17433 instead of != VR_VARYING.
17436 * config/i386/i386.c (ix86_expand_prologue): Add
17437 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
17439 PR tree-optimization/64454
17440 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
17441 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
17442 for signed or [0, op1 - 1] for unsigned modulo.
17443 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
17444 even if op1 does not satisfy integer_pow2p.
17447 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
17449 2015-01-12 Jeff Law <law@redhat.com>
17452 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
17453 (trunchiqi2, truncsihi2): Similarly.
17455 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
17456 rather than calling F.
17458 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
17460 * tsan.c (instrument_expr): Use force_gimple_operand.
17461 Use may_be_nonaddressable_p instead of is_gimple_addressable.
17463 2015-01-12 Richard Biener <rguenther@suse.de>
17465 PR tree-optimization/64530
17466 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
17469 2015-01-12 Richard Biener <rguenther@suse.de>
17471 PR middle-end/64357
17472 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
17475 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17477 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
17478 Cortex-A17 tuning parameters.
17479 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
17481 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17483 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
17484 * config/arm/arm.c (arm_macro_fusion_p): New function.
17485 (arm_macro_fusion_pair_p): Likewise.
17486 (TARGET_SCHED_MACRO_FUSION_P): Define.
17487 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
17488 (ARM_FUSE_NOTHING): Likewise.
17489 (ARM_FUSE_MOVW_MOVT): Likewise.
17490 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
17491 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
17492 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
17493 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
17494 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
17495 arm_cortex_a5_tune): Specify fuseable_ops value.
17497 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
17500 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
17501 test for PIE with copy reloc.
17502 * configure: Regenerated.
17504 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17506 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
17508 (arm_tls_descseq_addr): Likewise.
17509 (arm_gen_movmemqi): Likewise.
17510 (arm_expand_epilogue_apcs_frame): Likewise.
17511 (arm_expand_epilogue): Likewise.
17512 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
17515 2015-01-12 Martin Liska <mliska@suse.cz>
17518 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
17519 volatility for correct operands.
17521 2015-01-12 Martin Liska <mliska@suse.cz>
17523 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
17524 indication that a function is not leaf.
17525 (sem_function::compare_polymorphic_p): Likewise.
17527 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17529 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
17530 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
17531 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
17532 fold-const.h, tree-check.h.
17534 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
17538 * ipa-inline.c (compute_uninlined_call_time,
17539 compute_inlined_call_time): Use counts for extra precision when
17541 (big_speedup_p): Fix formating.
17542 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
17543 (relative_time_benefit): Remove.
17544 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
17545 merge guessed and read profile paths.
17546 (inline_small_functions): Count only !optimize_size functions into
17547 initial size; be more lax about sanity check when profile is used;
17548 be sure to update inlined function profile when profile is read.
17550 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
17553 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
17554 cost when edge becomes direct.
17555 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
17556 is resolved or when introducing new speculation.
17558 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
17562 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
17563 '||' to fix typo issue.
17565 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
17566 accept and return NULL.
17568 2015-01-12 Martin Liska <mliska@suse.cz>
17570 * cgraph.c (cgraph_edge::remove_callee): Move function to header
17571 file for being inlined.
17572 (cgraph_set_edge_callee): Delete.
17573 (cgraph_edge::redirect_callee): Move function to header file
17575 (cgraph_edge::make_direct): Use new function.
17576 (cgraph_edge::dump_edge_flags): New function created from
17577 static dump_edge_flags function.
17578 (cgraph_node::dump): Use new function.
17579 (cgraph_edge::verify_count_and_frequency): New function created
17580 from verify_edge_count_and_frequency.
17581 (cgraph_edge::verify_corresponds_to_fndecl): New function created
17582 from verify_edge_corresponds_to_fndecl.
17583 (verify_edge_corresponds_to_fndecl): Delete.
17584 (cgraph_node::verify_node): Use new function.
17585 * cgraph.h (cgraph_edge::set_callee): New function.
17586 (cgraph_edge::dump_edge_flags): Likewise.
17587 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
17589 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
17591 * ipa-utils.c (estimate_function_body_sizes): Do not
17592 free node params when called late with early=true.
17594 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
17596 * doc/md.texi (Instruction Patterns): Rewrite text for
17598 (Example): Likewise.
17600 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
17602 * doc/invoke.texi (Option Summary): Break long lines.
17603 [(-fdiagnostics-color)]: Put long literal in @smallexample
17605 [(-fsanitize-recover)]: Likewise.
17606 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
17607 [(-ffast-math)]: Likewise.
17608 [(--param max-inline-insns-recursive)]: Likewise.
17609 [(--param max-inline-recursive-depth)]: Likewise.
17610 [(-mno-text-section-literals)]: Likewise.
17612 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
17614 * doc/install.texi: Update for libgomp being renamed from "GNU
17615 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
17617 * doc/sourcebuild.texi: Likewise.
17619 2015-01-10 Anthony Green <green@moxielogic.com>
17621 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
17622 mul.x availability for moxiebox configuration.
17624 2015-01-09 Anthony Green <green@moxielogic.com>
17626 * config/moxie/moxie.md: Tabify assembly output.
17628 2015-01-09 Anthony Green <green@moxielogic.com>
17630 * config/moxie/moxie.md (CC_REG): Correct register definition.
17632 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
17634 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
17635 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
17638 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
17640 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
17642 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
17643 Jakub Jelinek <jakub@redhat.com>
17645 PR middle-end/64412
17646 * lto-streamer.h (lto_stream_offload_p): New declaration.
17647 * lto-streamer.c (lto_stream_offload_p): New variable.
17648 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
17649 at the same time as section_name_prefix.
17650 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
17651 if lto_stream_offload_p.
17652 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
17653 stream TREE_TARGET_OPTION if lto_stream_offload_p.
17654 (write_ts_function_decl_tree_pointers): Don't
17655 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
17656 * tree-streamer-in.c (unpack_value_fields): Don't stream
17657 TREE_TARGET_OPTION in if ACCEL_COMPILER.
17658 (lto_input_ts_function_decl_tree_pointers): Don't stream
17659 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
17660 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
17661 instead of section_name_prefix string comparisons.
17663 2015-01-09 Jakub Jelinek <jakub@redhat.com>
17665 PR rtl-optimization/64536
17666 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
17669 2015-01-09 Michael Collison <michael.collison@linaro.org>
17671 PR tree-optimization/64322
17672 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
17673 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
17675 2015-01-09 Tom de Vries <tom@codesourcery.com>
17677 PR rtl-optimization/64539
17678 * regcprop.c (kill_clobbered_values): Factor out of ...
17679 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
17680 instead of note_stores with kill_clobbered_value.
17682 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
17684 * ginclude/unwind-arm-common.h: Revert previous commit.
17686 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
17688 * config.gcc (arm*-*-freebsd*): New configuration.
17689 * config/arm/freebsd.h: New file.
17690 * config.host: Add extra components for arm*-*-freebsd*.
17691 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
17692 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
17694 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
17696 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
17698 * config/rs6000/t-rtems: Add e6500 multilibs.
17700 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
17702 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
17705 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
17707 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
17708 MULTILIB_EXCEPTIONS.
17710 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
17712 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
17713 MULTILIB_EXCEPTIONS.
17715 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
17717 * config/arm/t-rtems-eabi: Rename to...
17718 * config/arm/t-rtems: ...this.
17719 * config/arm/rtems-eabi.h: Rename to...
17720 * config/arm/rtems.h: ...this.
17721 * config.gcc (arm*-*-rtems*): Reflect changes above.
17723 2015-01-09 Richard Biener <rguenther@suse.de>
17725 PR tree-optimization/64410
17726 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
17728 (execute_update_addresses_taken): Deal with that.
17729 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
17730 loads/stores for complex variables.
17732 2015-01-09 Martin Liska <mliska@suse.cz>
17734 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
17736 (func_checker::compare_memory_operand): New function.
17737 (func_checker::compare_operand): Split case to newly
17739 (func_checker::compare_cst_or_decl): New function.
17740 (func_checker::compare_gimple_call): Identify
17742 (func_checker::compare_gimple_assign): Likewise.
17743 * ipa-icf-gimple.h: New function.
17745 2015-01-09 Martin Liska <mliska@suse.cz>
17748 * sreal.c (sreal::dump): Change unsigned format to signed for
17750 (sreal::to_double): Replace exp2 with scalbln.
17752 2015-01-09 Martin Liska <mliska@suse.cz>
17754 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
17755 * ipa-icf.c (sem_function::equals_private): Add support for target and
17756 (sem_item_optimizer::merge_classes): Remove redundant function
17757 optimization flags comparison.
17758 * tree.h (target_opts_for_fn): New function.
17760 2015-01-09 Tom de Vries <tom@codesourcery.com>
17762 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
17764 2015-01-09 Kito Cheng <kito@0xlab.org>
17766 PR rtl-optimization/64348
17767 * lra-constraints.c (split_reg): Fix caller-save store/restore
17768 instruction generation.
17770 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
17772 PR gcov-profile/61790
17773 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
17774 long long. Fallback to int64_t if host doesn't have long long and
17775 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
17777 2015-01-08 Jakub Jelinek <jakub@redhat.com>
17779 PR tree-optimization/63989
17780 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
17781 from 1000 to 10000.
17782 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
17783 (get_stridx): If we don't have a record for certain SSA_NAME,
17784 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
17785 constant offset, call get_stridx_plus_constant.
17786 (get_stridx_plus_constant): New function.
17787 (zero_length_string): Don't use get_stridx here.
17790 PR middle-end/64388
17791 * dse.c (struct insn_info): Mention frame_read set also
17792 before reload for tail calls on some targets.
17793 (scan_insn): Revert 2014-12-22 change. Set frame_read
17794 also before reload for tail calls if
17795 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
17796 instead of add_non_frame_wild_read for non-const/memset
17797 tail calls after reload.
17799 2015-01-08 Jason Merrill <jason@redhat.com>
17801 * ubsan.c (do_ubsan_in_current_function): New.
17802 (pass_ubsan::gate): Use it.
17803 * ubsan.h: Declare it.
17804 * convert.c (convert_to_integer): Use it.
17806 2015-01-08 Jakub Jelinek <jakub@redhat.com>
17809 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
17810 compare_code when it is unconditionally overwritten afterwards.
17811 Use ix86_reverse_condition instead of reverse_condition. Don't
17812 change code if *reverse_condition* returned UNKNOWN and don't
17813 swap ct/cf and negate diff in that case.
17815 2015-01-08 Mike Stump <mikestump@comcast.net>
17817 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
17818 (pass_tsan_O0::gate): Likewise.
17819 * extend.texi (Function Attributes): Add no_sanitize_thread
17822 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
17824 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
17825 for registering builtins.
17826 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
17827 add -fopenmp to the argv_obstack used when invoking
17828 compile_for_target.
17830 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
17831 add "-m32" or "-m64" to argv_obstack.
17832 (generate_host_descr_file): Likewise, when invoking host_compiler.
17833 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
17836 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
17838 * config/sh/sh-mem.cc: Use constant as second operand when emitting
17841 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
17844 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
17845 constant load if constant operand fits into I08.
17847 2015-01-08 Jakub Jelinek <jakub@redhat.com>
17850 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
17851 and TREE_THIS_VOLATILE for MEM_REFs.
17852 (build5_stat): Fix up initialization of TREE_READONLY and
17853 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
17855 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
17858 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
17859 of r for the second alternative of the destination operand.
17861 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
17864 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
17866 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
17868 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
17870 ([-fivar-visibility], [-fvisibility]): Likewise.
17872 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
17874 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
17875 the file where @code, @command, etc is more appropriate.
17877 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
17879 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
17880 of -mrecip= documentation.
17882 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
17885 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
17886 correct reload handler if -m32 -mpowerpc64 is used.
17888 2015-01-06 Tom de Vries <tom@codesourcery.com>
17890 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
17892 2015-01-08 Christian Bruel <christian.bruel@st.com>
17895 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
17897 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
17899 PR tree-optimization/63259
17900 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
17901 if optab exists for 16bit byteswap.
17903 2015-01-06 Jakub Jelinek <jakub@redhat.com>
17905 * opts.c (common_handle_option): Add support for
17906 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
17907 * doc/invoke.texi: Document -fno-sanitize=all,
17908 -f{,no-}sanitize-recover=all. Document that
17909 -fsanitize=float-cast-overflow is not enabled
17910 by -fsanitize=undefined. Fix up documentation
17911 of -f{,no-}sanitize-recover.
17913 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
17915 * config.gcc: Add Visium support.
17916 * configure.ac: Likewise.
17917 * configure: Regenerate.
17918 * doc/extend.texi (interrupt attribute): Add Visium.
17919 * doc/invoke.texi: Document Visium options.
17920 * doc/install.texi: Document Visium target.
17921 * doc/md.texi: Document Visium constraints.
17922 * common/config/visium: New directory.
17923 * config/visium: Likewise.
17925 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
17927 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
17928 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
17930 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
17932 * combine.c (combine_validate_cost): Do not count the cost of a
17933 split I2 twice. Do not display it twice in the dump, either.
17935 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
17937 Revert parts of r219199.
17938 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
17940 ([-Wtraditional]): Restore markup on <limits.h>.
17942 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
17945 * doc/invoke.texi: Document -Wsuggest-override.
17947 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
17949 PR rtl-optimization/64287
17950 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
17951 (process_options): Disable flag_ipa_ra if profiling.
17953 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
17955 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
17957 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
17959 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
17960 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
17961 put under #if TARGET_LOOPS guard.
17963 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
17965 * config/i386/i386.c (output_387_binary_op): Use std::swap.
17967 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
17969 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
17970 * rtl.h (refers_to_regno_p): Add overload.
17972 * bt-load.c: Likewise.
17973 * combine.c: Likewise.
17974 * df-scan.c: Likewise.
17975 * sched-deps.c: Likewise.
17976 * config/s390/s390.c: Likewise.
17977 * config/m32r/m32r.c: Likewise.
17978 * config/rs6000/spe.md: Likewise.
17979 * config/rs6000/rs6000.c: Likewise.
17980 * config/pa/pa.c: Likewise.
17981 * config/stormy16/stormy16.c: Likewise.
17982 * config/cris/cris.c: Likewise.
17983 * config/arc/arc.md: Likewise.
17984 * config/arc/arc.c: Likewise.
17985 * config/sh/sh.md: Likewise.
17986 * config/sh/sh.c: Likewise.
17987 * config/frv/frv.c: Likewise.
17989 2015-01-05 Jakub Jelinek <jakub@redhat.com>
17992 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
17993 call as cleanup of the whole body.
17994 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
17995 * tsan.c (replace_func_exit): New function.
17996 (instrument_func_exit): Moved earlier.
17997 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
17998 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
18000 (tsan_pass): Don't call instrument_func_exit.
18001 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
18002 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
18006 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
18007 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
18008 it to libubsan handler instead of EXPR. Fold comparisons earlier,
18009 if the result is integer_zerop, return NULL_TREE.
18010 * convert.c (convert_to_integer): Pass expr as ARG.
18012 PR tree-optimization/64465
18013 * tree-inline.c (redirect_all_calls): During inlining
18014 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
18015 changed the stmt to a non-throwing call.
18017 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
18019 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
18020 etc markup throughout the file.
18022 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
18024 Enable experimental TSAN support for Ada.
18025 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
18027 2015-01-05 Jakub Jelinek <jakub@redhat.com>
18029 PR tree-optimization/64494
18030 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
18031 clear SSA_NAME_ANTI_RANGE_P flag.
18033 2015-01-05 Marek Polacek <polacek@redhat.com>
18035 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
18037 2015-01-05 Jakub Jelinek <jakub@redhat.com>
18039 Update copyright years.
18041 * gcc.c (process_command): Update copyright notice dates.
18042 * gcov-dump.c: Ditto.
18044 * doc/cpp.texi: Bump @copying's copyright year.
18045 * doc/cppinternals.texi: Ditto.
18046 * doc/gcc.texi: Ditto.
18047 * doc/gccint.texi: Ditto.
18048 * doc/gcov.texi: Ditto.
18049 * doc/install.texi: Ditto.
18050 * doc/invoke.texi: Ditto.
18052 * auto-profile.c, auto-profile.h: Fix up Copyright line.
18054 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
18056 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
18058 ([-fvtable-verify], [-fvtv-debug]): Likewise.
18059 ([-Wabi]): Likewise.
18060 ([-fmessage-length]): Likewise.
18061 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
18062 ([-Wno-discarded-qualifiers]): Likewise.
18063 ([-Wnodiscarded-array-qualifiers]): Likewise.
18064 ([-Wno-virtual-move-assign]): Likewise.
18065 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
18066 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
18067 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
18068 ([-fsanitize-undefined-trap-on-error]): Likewise.
18069 ([-floop-interchange]): Likewise.
18070 ([-ftree-coalesce-inlined-vars]): Likewise.
18071 ([-fvect-cost-model]): Likewise.
18072 ([-flto]): Likewise.
18073 ([--param]): Likewise.
18074 (Spec Files): Likewise.
18075 ([-mstrict-align]): Likewise.
18076 ([-mfix-cortex-a53-835769]): Likewise.
18077 ([-march], [-mtune]): Likewise.
18078 ([-mpic-register]): Likewise.
18079 ([-munaligned-access]): Likewise.
18080 ([-msp8]): Likewise.
18081 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
18082 (AVR Built-in Macros): Likewise.
18083 ([-mpreferred-stack-boundary]): Likewise.
18084 ([-mtune-crtl]): Likewise.
18085 ([-mashf]): Likewise.
18086 ([-mmcu=]): Likewise.
18087 ([-minrt]): Likewise.
18088 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
18089 ([-mupper-regs]): Likewise.
18090 ([-matomic-model]): Likewise.
18091 ([-mdiv]): Likewise.
18092 ([-mzdcbranch]): Likewise.
18093 ([-mdisable-callt]): Likewise.
18094 ([-msoft-float]): Likewise.
18095 ([-m8byte-align]): Likewise.
18096 ([-fstack-reuse]): Likewise.
18098 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
18100 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
18101 Fix markup, light copy-editing.
18102 ([-fauto-profile]): Rewrite to fix formatting and content
18105 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
18107 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
18108 Copy-edit description.
18109 ([-fisolate-erroneous-paths-attribute]): Likewise.
18110 * common.opt (fisolate-erroneous-paths-dereference):
18111 Copy-edit description.
18112 (fisolate-erroneous-paths-attribute): Likewise.
18114 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
18116 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
18119 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
18121 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
18122 ([-fvtv-debug]): Likewise.
18123 ([-Wc++-compat]): Likewise.
18124 ([-Wc++11-compat]): Likewise.
18125 ([-Wc++14-compat]): Likewise.
18126 ([-Wno-sized-deallocation]): Likewise.
18127 ([-femit-class-debug-always]): Likewise.
18128 ([-femit-struct-debug-detailed]): Likewise.
18129 ([-fno-keep-inline-dllexport]): Likewise.
18130 ([-fira-algorithm]): Likewise.
18131 ([-fira-region]): Likewise.
18132 ([-flra-remat]): Likewise.
18133 ([-fipa-ra]): Likewise.
18134 ([-fhoist-adjacent-loads]): Likewise.
18135 ([-fisolate-erroneous-paths-dereference]): Likewise.
18136 ([-fisolate-erroneous-paths-attribute]): Likewise.
18137 ([-ftree-switch-conversion]): Likewise.
18138 ([-ftree-tail-merge]): Likewise.
18139 ([-ftree-loop-if-convert]): Likewise.
18140 ([-ftree-loop-if-convert-stores]): Likewise.
18141 ([-ftree-loop-distribution]): Likewise.
18142 ([-ftree-loop-distribute-patterns]): Likewise.
18143 ([-flto-compression-level]): Likewise.
18144 ([-flto-report]): Likewise.
18145 ([-flto-report-wpa]): Likewise.
18146 ([-fuse-linker-plugin]): Likewise.
18147 ([-mfix-cortex-a53-835769]): Likewise.
18148 ([-mno-fix-cortex-a53-835769]): Likewise.
18149 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
18150 explicit listing; add a note to the discussion indicating they
18151 exist. Reorder table to group similar options. Add missing
18152 @opindex entries. Add @need commands throughout the table to
18153 allow it to be split across multiple pages.
18154 ([-m8bit-idiv]): Fix @opindex.
18155 ([-mavx256-split-unaligned-load]): Likewise.
18156 ([-mavx256-split-unaligned-store]): Likewise.
18157 ([-mstack-protector-guard]): Likewise.
18158 ([-mcpu=]): Likewise.
18159 ([-mcpu]): Likewise.
18160 ([-mpointer-size=]): Likewise.
18162 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
18164 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
18165 instead of `m' constraint. Likewise for unnamed movb comparison
18166 patterns using reg_before_reload_operand predicate.
18167 * config/pa/predicates.md (reg_before_reload_operand): Tighten
18168 predicate to reject register index and LO_SUM DLT memory forms
18171 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
18173 * doc/invoke.texi (Option Summary): Fix spelling of
18174 -fdevirtualize-at-ltrans.
18175 ([-fdevirtualize]): Fix markup.
18176 ([-fdevirtualize-speculatively]): Fix typo.
18177 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
18178 implementor-speaky.
18179 * common.opt (fdevirtualize-at-ltrans): Likewise.
18180 * ipa-devirt.c: Fix typos in comments throughout the file.
18181 (ipa_devirt): Fix typos in format strings for dump output.
18183 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
18185 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
18186 discussion of defaults, light copy-editing.
18188 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
18190 * tsan.c (instrument_expr): corrected previous checkin.
18192 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
18194 Instrument bit field and unaligned accesses for TSAN.
18195 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
18196 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
18197 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
18198 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
18199 unaligned memory regions.
18201 2015-01-01 Anthony Green <green@moxielogic.com>
18203 * config/moxie/predicates.md (moxie_general_movsrc_operand):
18204 Restrict move source register offsets to 16 bits.
18206 Copyright (C) 2015 Free Software Foundation, Inc.
18208 Copying and distribution of this file, with or without modification,
18209 are permitted in any medium without royalty provided the copyright
18210 notice and this notice are preserved.