1 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
3 * hash-map-traits.h: Include hash-traits.h.
4 (simple_hashmap_traits): New class.
5 * mem-stats.h (hash_map): Change the default traits to
6 simple_hashmap_traits<default_hash_traits<Key> >.
8 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
10 * hash-table.h: Update comments.
12 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
14 * hash-traits.h (default_hash_traits): New structure.
15 * hash-set.h (default_hashset_traits): Delete.
16 (hash_set): Use default_hash_traits<Key> instead of
17 default_hashset_traits. Delete hash_entry type and use Key directly.
18 * ipa-devirt.c (pair_traits): Delete.
19 (default_hash_traits <type_pair>): Override.
20 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
21 (odr_types_equivalent_p, add_type_duplicate): Likewise.
23 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
27 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
29 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
30 (has_is_empty, is_empty_helper): Delete.
31 (has_mark_deleted, mark_deleted_helper): Delete.
32 (has_mark_empty, mark_empty_helper): Delete.
33 (hash_table::is_deleted): Call the Descriptor unconditionally.
34 (hash_table::is_empty): Likewise.
35 (hash_table::mark_deleted): Likewise.
36 (hash_table::mark_empty): Likewise.
38 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
40 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
41 redundant typedefs and members.
42 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
44 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
45 * ipa-devirt.c (odr_name_hasher): Likewise.
46 (polymorphic_call_target_hasher): Likewise.
47 * ira-costs.c (cost_classes_hasher): Likewise.
48 * statistics.c (stats_counter_hasher): Likewise.
49 * trans-mem.c (log_entry_hasher): Likewise.
50 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
51 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
52 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
53 * var-tracking.c (variable_hasher): Likewise.
54 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
55 Remove redundant typedefs and members.
57 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
59 * hash-traits.h (ggc_cache_hasher): Rename to...
60 (ggc_cache_remove): ...this and remove typedefs.
61 (ggc_cache_ptr_hash): New class.
62 * hash-table.h: Update commentary.
63 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
64 rather than ggc_cache_hasher.
65 (const_wide_int_hasher, reg_attr_hasher): Likewise.
66 (const_double_hasher, const_fixed_hasher): Likewise.
67 * function.c (insn_cache_hasher): Likewise.
68 * trans-mem.c (tm_wrapper_hasher): Likewise.
69 * tree.h (tree_decl_map_cache_hasher): Likewise.
70 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
71 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
72 * ubsan.c (tree_type_map_cache_hasher): Likewise.
73 * varasm.c (tm_clone_hasher): Likewise.
74 * config/i386/i386.c (dllimport_hasher): Likewise.
75 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
76 (tree_hasher): Likewise.
78 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
80 * hash-traits.h (ggc_hasher): Rename to...
81 (ggc_remover): ...this and remove typedefs.
82 (ggc_cache_hasher): Update accordingly. Add typedefs.
83 (ggc_ptr_hash): New class.
84 * hash-table.h: Update comment.
85 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
87 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
88 (tree_descriptor_hasher): Likewise.
89 * cgraph.c (function_version_hasher): Likewise.
90 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
91 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
92 (dw_loc_list_hasher, addr_hasher): Likewise.
93 * function.h (used_type_hasher): Likewise.
94 * function.c (temp_address_hasher): Likewise.
95 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
96 * libfuncs.h (libfunc_hasher): Likewise.
97 * lto-streamer.h (decl_state_hasher): Likewise.
98 * optabs.c (libfunc_decl_hasher): Likewise.
99 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
100 * varasm.c (section_hasher, object_block_hasher): Likewise.
101 (const_rtx_desc_hasher): Likewise.
102 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
103 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
105 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
107 * hash-traits.h (free_ptr_hash): New class.
108 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
109 rather than typed_free_remove. Remove redudant typedefs.
110 (external_ref_hasher): Likewise.
111 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
112 (ehspec_hasher): Likewise.
113 * ggc-common.c (saving_hasher): Likewise.
114 * gimplify.c (gimplify_hasher): Likewise.
115 * haifa-sched.c (delay_i2_hasher): Likewise.
116 * loop-invariant.c (invariant_expr_hasher): Likewise.
117 * loop-iv.c (biv_entry_hasher): Likewise.
118 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
119 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
120 * tree-cfg.c (locus_discrim_hasher): Likewise.
121 * tree-eh.c (finally_tree_hasher): Likewise.
122 * tree-into-ssa.c (var_info_hasher): Likewise.
123 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
124 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
125 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
126 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
127 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
128 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
129 (shared_bitmap_hasher): Likewise.
130 * tree-ssa-threadupdate.c (redirection_data): Likewise.
131 * tree-vectorizer.h (peel_info_hasher): Likewise.
132 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
133 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
135 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
137 * hash-table.h: Update comments.
138 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
139 (nofree_ptr_hash): New class.
140 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
141 than typed_noop_remove. Remove redudant typedefs.
142 * attribs.c (attribute_hasher): Likewise.
143 * cfg.c (bb_copy_hasher): Likewise.
144 * cselib.c (cselib_hasher): Likewise.
145 * dse.c (invariant_group_base_hasher): Likewise.
146 * dwarf2cfi.c (trace_info_hasher): Likewise.
147 * dwarf2out.c (macinfo_entry_hasher): Likewise.
148 (comdat_type_hasher, loc_list_hasher): Likewise.
149 * gcse.c (pre_ldst_expr_hasher): Likewise.
150 * genmatch.c (id_base): Likewise.
151 * genrecog.c (test_pattern_hasher): Likewise.
152 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
153 * haifa-sched.c (delay_i1_hasher): Likewise.
154 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
155 * ipa-icf.h (congruence_class_group_hash): Likewise.
156 * ipa-profile.c (histogram_hash): Likewise.
157 * ira-color.c (allocno_hard_regs_hasher): Likewise.
158 * lto-streamer.h (string_slot_hasher): Likewise.
159 * lto-streamer.c (tree_entry_hasher): Likewise.
160 * plugin.c (event_hasher): Likewise.
161 * postreload-gcse.c (expr_hasher): Likewise.
162 * store-motion.c (st_expr_hasher): Likewise.
163 * tree-sra.c (uid_decl_hasher): Likewise.
164 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
165 (ssa_name_var_hash): Likewise.
166 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
167 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
168 * tree-ssa-pre.c (pre_expr_d): Likewise.
169 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
170 * vtable-verify.h (registration_hasher): Likewise.
171 * vtable-verify.c (vtbl_map_hasher): Likewise.
172 * config/arm/arm.c (libcall_hasher): Likewise.
173 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
174 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
175 * config/sol2.c (comdat_entry_hasher): Likewise.
176 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
177 (print_fold_checksum, fold_checksum_tree): Likewise.
178 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
179 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
180 (fold_build_call_array_loc): Likewise.
181 * tree-ssa-ccp.c (gimple_htab): Likewise.
182 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
183 rather than pointer_type.
185 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
187 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
188 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
190 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
192 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
193 (ggc_hasher::ggc_mx): Likewise.
194 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
195 that duplicate ggc_hasher ones.
197 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
199 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
200 (gt_cleare_cache): Check here for deleted and empty entries.
201 Replace handle_cache_entry with a call to keep_cache_entry.
202 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
203 (ggc_cache_hasher::keep_cache_entry): New function.
204 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
205 (tm_wrapper_hasher::keep_cache_entry): New function.
206 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
207 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
208 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
209 (type_cache_hasher::keep_cache_entry): New function.
210 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
211 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
212 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
213 (tree_type_map_cache_hasher::keep_cache_entry): New function.
214 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
215 (tm_clone_hasher::keep_cache_entry): New function.
216 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
217 (dllimport_hasher::keep_cache_entry): New function.
219 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
221 * hash-table.h: Include hash-traits.h.
222 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
223 (ggc_cache_hasher): Move to...
224 * hash-traits.h: ...this new file.
226 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
228 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
229 struct cl_optimization.
230 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
231 * tree.c (make_node_stat): Allocate cl_optimization struct.
232 (copy_node_stat): Allocate and copy cl_optimization struct.
234 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
236 * function.h (struct incoming_args): Move struct.
237 (pass_by_reference, reference_callee_copied): Remove prototypes.
238 * emit-rtl.h (struct incoming_args): Relocate struct here.
239 * calls.h (pass_by_reference, reference_callee_copied): Relocate
241 * function.c (pass_by_reference, reference_callee_copied): Move.
242 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
243 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
244 * ipa-chkp.c: Include calls.h.
246 2015-06-25 Andrew Macleod <amacleod@redhat.com>
248 * alias.h (alias_set_type): Move typedef.
249 * coretypes.h (alias_set_type): Relocate typedef here.
250 * rtl.h: Don't include alias.h.
252 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
254 * cgraph.h (cgraph_rtl_info): Move to rtl.h
255 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
257 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
258 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
260 * calls.c: Include hard-reg-set.h before rtl.h.
263 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
264 Vladimir Makarov <vmakarov@redhat.com>
266 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
269 2015-06-25 Richard Biener <rguenther@suse.de>
271 * fold-const.c (fold_binary_loc): Move simplification of
273 * match.pd: ... here.
275 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
277 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
279 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
281 * match.pd: Add patterns for vec_conds between 1 and 0.
283 2015-06-25 Richard Biener <rguenther@suse.de>
285 * tree-vect-stmts.c (vectorizable_conversion): Do not set
286 STMT_VINFO_VEC_STMT for SLP.
287 (vectorizable_store): Likewise.
288 (vectorizable_load): Likewise.
289 (vect_transform_stmt): Catch SLP vectorization clobbering
292 2015-06-25 Richard Biener <rguenther@suse.de>
294 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
296 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
297 cleanup resulting dead code and parameters.
298 (vect_transform_slp_perm_load): Adjust.
300 2015-06-25 Nick Clifton <nickc@redhat.com>
302 * config/bfin/bfin.c (bfin_expand_prologue): Set
303 current_function_static_stack_size if flag_stack_usage_info is
305 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
306 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
307 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
308 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
310 2015-06-25 Tom de Vries <tom@codesourcery.com>
312 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
313 comment that the generated IV is unsigned.
315 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
318 * config/arm/arm.c (arm_dbx_register_number): Return
319 DWARF_FRAME_REGISTERS by default.
321 2015-06-25 Tom de Vries <tom@codesourcery.com>
323 * dominance.c (calculate_dominance_info): Fix verify_dominators call
324 argument. Call verify_dominator when reusing dominator info.
326 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
329 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
330 an additional element of the unspec vector. Modify indices
332 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
333 * config/sh/sh.c (prepare_move_operands): Pass incremented
334 const_int to gen_GOTaddr2picreg.
335 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
337 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
339 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
340 Condition on TARGET_FLOAT.
342 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
344 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
347 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
349 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
351 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
352 aarch64_err_no_fpadvsimd.
354 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
355 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
356 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
357 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
358 Turn error into assert, test TARGET_FLOAT.
359 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
362 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
365 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
367 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
369 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
371 2015-06-24 Renlin Li <renlin.li@arm.com>
373 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
374 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
376 2015-06-24 Richard Biener <rguenther@suse.de>
378 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
380 (lower_opt_convert): Support lowering of conditional view_convert.
381 (parser::parse_operation): Likewise.
382 (parser::parse_for): Likewise.
384 2015-06-24 Renlin Li <renlin.li@arm.com>
386 * varasm.c (emit_local): Use unsigned int for align variable.
388 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
391 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
392 for negative numbers.
394 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
396 PR rtl-optimization/66306
397 * reload.c (find_reloads): Swap the match_dup info for
398 commutative operands.
400 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
402 * config/s390/vx-builtins.md
403 ("vec_scatter_element<mode>_<non_vec_int>")
404 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
405 attribute with bhfgq.
407 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
409 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
411 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
413 * config/s390/s390-builtin-types.def: Add flag to indicate the
414 options under which the function type is needed.
415 * config/s390/s390-builtins.def: Add flag to indicate the options
416 under which the builtin is enabled.
417 * config/s390/s390-builtins.h: Add flags parameter to macro
419 (bflags_for_builtin): New function.
420 (flags_for_builtin): Renamed to ...
421 (opflags_for_builtin): ... this.
422 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
423 flags_for_builtin to bflags_for_builtin and
424 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
425 * config/s390/s390.c: Add initialization of bflags_builtin and
426 opflags_builtin arrays.
427 Remove code for flags_builtin.
428 (s390_init_builtins): Only create builtin function types if one of
429 their flags is active.
430 Only create builtins if all of their flags are active.
431 (s390_expand_builtin): Rename flags_for_builtin to
434 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
436 * config/s390/vecintrin.h: Remove internal builtins.
438 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
440 * config/s390/s390.c (s390_secondary_reload): Fix check for
441 GENERAL_REGS register class.
443 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
445 * config/s390/s390.c (s390_support_vector_misalignment): Call
446 default implementation for !TARGET_VX.
448 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
450 * config/s390/s390.c (s390_legitimate_constant_p): Add
453 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
455 * config/s390/s390.c (s390_vector_abi): New variable definition.
456 (s390_check_type_for_vector_abi): New function.
457 (TARGET_ASM_FILE_END): New macro definition.
458 (s390_asm_file_end): New function.
459 (s390_function_arg): Call s390_check_type_for_vector_abi.
460 (s390_gimplify_va_arg): Likewise.
461 * configure: Regenerate.
462 * configure.ac: Check for .gnu_attribute Binutils feature.
464 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
467 * config/bfin/bfin.c (hwloop_optimize): Initialize
468 JUMP_LABEL for newly created jump.
470 2015-06-23 Tristan Gingold <gingold@adacore.com>
472 * collect-utils.c (collect_wait): Unlink the response file here
475 (utils_cleanup): ...and here.
477 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
479 * df-scan.c: Don't include target-def.h.
480 * targhooks.c: Likewise.
481 * config/arm/arm-c.c: Likewise.
482 * config/i386/i386-c.c: Likewise.
483 * config/nds32/nds32-cost.c: Likewise.
484 * config/nds32/nds32-fp-as-gp.c: Likewise.
485 * config/nds32/nds32-intrinsic.c: Likewise.
486 * config/nds32/nds32-isr.c: Likewise.
487 * config/nds32/nds32-md-auxiliary.c: Likewise.
488 * config/nds32/nds32-memory-manipulation.c: Likewise.
489 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
490 * config/nds32/nds32-predicates.c: Likewise.
492 2015-06-23 Richard Biener <rguenther@suse.de>
494 PR tree-optimization/66636
495 * tree-vect-stmts.c (vectorizable_store): Properly compute the
496 def type for further defs for strided stores.
498 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
500 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
502 (setcc_int<mode>, setcc_float<mode>): Reformat.
504 2015-06-23 Marek Polacek <polacek@redhat.com>
506 * match.pd ((x + y) - (x | y) -> x & y,
507 (x + y) - (x & y) -> x | y): New patterns.
509 2015-06-23 Ludovic Courtès <ludo@gnu.org>
512 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
513 '-dynamic-linker' within %{!shared: ...}.
515 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
518 * config/i386/predicates.md (addsub_vm_operator): New predicate.
519 (addsub_vs_operator): Ditto.
520 (addsub_vs_parallel): Ditto.
521 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
522 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
523 Put minus RTX before plus and adjust vec_merge selector.
524 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
525 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
526 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
527 (addsub vec_merge splitters): New combiner splitters.
528 (addsub vec_select/vec_concat splitters): Ditto.
530 2015-06-23 Bin Cheng <bin.cheng@arm.com>
532 PR tree-optimization/66449
533 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
534 POINTER_PLUS_EXPR for pointers.
536 2015-06-23 Alan Modra <amodra@gmail.com>
538 * rtlanal.c (commutative_operand_precedence): Correct comments.
539 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
540 declaration. Return an int. Distinguish REG,REG return from
542 (struct simplify_plus_minus_op_data): Make local to function.
543 (simplify_plus_minus): Don't set canonicalized if merely sorting
544 registers. Avoid packing ops if nothing changes. White space fixes.
546 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
548 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
549 -fdump-ada-spec is passed but not if -fsyntax-only is.
551 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
554 * lra-lives.c (process_bb_lives): Check insn copying the same
555 reload pseudo and don't create a copy for it.
557 2015-06-22 Tom de Vries <tom@codesourcery.com>
559 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
562 2015-06-22 Tom de Vries <tom@codesourcery.com>
564 * builtins.def (DEF_GOMP_BUILTIN): Test
565 'flag_tree_parallelize_loops > 1' instead of
566 'flag_tree_parallelize_loops'. Test flag_cilkplus.
568 2015-06-22 Tom de Vries <tom@codesourcery.com>
570 * dominance.c (calculate_dominance_info): Verify dominators if
573 2015-06-22 Marek Polacek <polacek@redhat.com>
575 * match.pd ((x ^ y) ^ (x | y) -> x & y,
576 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
577 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
578 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
580 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
583 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
584 cost of embedded comparison.
586 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
589 * config/rs6000/predicates.md (altivec_register_operand): Permit
590 virtual stack registers.
591 (vsx_register_operand): Likewise.
592 (vfloat_operand): Likewise.
593 (vint_operand): Likewise.
594 (vlogical_operand): Likewise.
596 2015-06-22 Richard Biener <rguenther@suse.de>
598 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
599 and single_scalar_iteration_cost members.
600 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
601 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
602 (vect_get_single_scalar_iteration_cost): Remove.
603 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
604 Use LOOP_VINFO_SCALAR_ITERATION_COST.
605 * tree-vect-loop.c (destroy_loop_vec_info): Free
607 (vect_get_single_scalar_iteration_cost): Compute result into
608 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
609 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
610 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
611 (vect_estimate_min_profitable_iters): Use them.
613 2015-06-22 Christian Bruel <christian.bruel@st.com>
616 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
617 (TARGET_INSERT_ATTRIBUTES): Define.
618 (thumb_flipper): New var.
619 * config/arm/arm.opt (-mflip-thumb): New switch.
621 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
622 Martin Liska <mliska@suse.cz>
625 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
626 construction of arg_types.
627 (sem_function::sem_function): Likewise.
628 (sem_function::~sem_function): Remove destruction of arg_types.
629 (sem_function::compatible_parm_types_p): New function.
630 (sem_function::equals_wpa): Reorg matching of return values
632 (sem_function::equals_private): Reorg mathcing of argument types.
633 (sem_function::parse_tree_args): Remove.
634 * ipa-icf.h (init_wpa): Do not call it.
635 (parse_tree_args): Remove.
636 (compatible_parm_types_p): Declare.
637 (result_type): Remove.
640 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
643 * ipa-polymorphic-call.c
644 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
645 initializing alias oracle; fix formating; set base_alias_set if it
648 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
650 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
651 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
652 (find_inc): Likewise.
653 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
655 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
656 * df-scan.c (df_swap_refs): Remove.
657 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
658 * dominance.c (link_roots): Use std::swap instead of manually swapping.
659 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
660 * fold-const.c (fold_relational_const): Likewise.
661 * genattrtab.c (simplify_test_exp): Likewise.
662 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
663 gimple_simplify): Likewise.
664 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
665 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
666 * ipa-devirt.c (add_type_duplicate): Likewise.
667 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
668 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
669 * lra.c (lra_create_copy): Likewise.
670 * lto-streamer-out.c (DFS::DFS): Likewise.
671 * modulo-sched.c (get_sched_window): Likewise.
672 * omega.c (omega_pretty_print_problem): Likewise.
673 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
674 * reload1.c (reloads_unique_chain_p): Likewise.
675 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
676 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
678 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
680 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
681 predicate_mem_writes): Likewise.
682 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
683 * tree-predcom.c (combine_chains): Likewise.
684 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
685 refs_may_alias_p_1): Likewise.
686 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
687 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
688 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
689 number_of_iterations_cond): Likewise.
690 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
691 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
692 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
693 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
694 * tree-vrp.c (extract_range_from_binary_expr_1,
695 extract_range_from_unary_expr_1): Likewise.
697 2015-06-20 Marek Polacek <polacek@redhat.com>
699 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
701 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
704 * config/sh/sh.c (prepare_move_operands): Replace subreg
705 index term with R0 for base and index addressing.
707 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
709 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
711 (movsf_aarch64): Change condition from register_operand to
712 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
713 load1. Change type for alternative 7 to store1.
714 (movdf_aarch64): Likewise.
716 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
718 * config/vax/vax.md: Adjust sign/zero extend patterns to
719 handle SUBREGs in operands[1].
721 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
723 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
724 of manually swapping.
725 (expand_vec_perm_interleave2): Likewise.
727 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
729 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
730 reuse bounds created for abnormal ssa names.
732 2015-06-19 Jakub Jelinek <jakub@redhat.com>
734 * config/nvptx/nvptx.md (allocate_stack): Rename to...
735 (allocate_stack_<mode>): ... this, and add :P on both
736 match_operand and unspec.
737 (allocate_stack): New expander.
739 2015-06-19 Christian Bruel <christian.bruel@st.com>
743 * config/arm/arm.c (arm_set_current_function): Handle
744 explicit default options.
746 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
748 * config/i386/i386.md (*movsicc_noc_zext): New insn.
749 (zero-extended cmove with mem peephole2): New pattern.
750 (cmove with mem peephole2): Merge patterns.
752 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
754 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
756 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
758 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
759 * config/mips/mips.md (*madd4<mode>): Ditto.
760 (*nmadd3<mode>) Ditto.
761 (*nmadd4<mode>_fastmath): Ditto.
762 (*nmadd3<mode>_fastmath): Ditto.
763 (*nmsub4<mode>): Ditto.
764 (*nmsub3<mode>): Ditto.
765 (*nmsub4<mode>_fastmath): Ditto.
766 (*nmsub3<mode>_fastmath): Ditto.
768 2015-06-18 Michael Matz <matz@suse.de>
771 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
772 grouped strided stores.
773 (vectorizable_load): Don't use the DR from first_stmt in
774 the non-SLP grouped strided case.
776 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
779 * function.c (assign_bounds): Add arguments assign_regs,
780 assign_special, assign_bt.
781 (assign_parms): For vararg functions handle bounds in BT
782 and special slots after incoming vararg bounds.
784 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
787 * cfgexpand.c (expand_return): Handle missing bounds.
788 (expand_gimple_stmt_1): Likewise.
789 * tree-chkp.c (chkp_expand_zero_bounds): New.
790 * tree-chkp.h (chkp_expand_zero_bounds): New.
792 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
795 * ipa-chkp.c (chkp_maybe_create_clone): Require
796 functions to be instrumentable.
797 * tree-chkp.c (chkp_replace_function_pointer): Use
798 chkp_instrumentable_p instead of attribute check.
800 2015-06-18 Richard Biener <rguenther@suse.de>
802 PR tree-optimization/66510
803 * tree-vect-stmts.c (vectorizable_load): Properly compute the
804 number of vector loads for SLP permuted loads.
805 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
806 check the stride for loop vectorization.
807 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
808 vectorization factor.
809 (vect_analyze_group_access): If the group size is not a power
810 of two require a epilogue loop.
811 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
812 compute and optimizing and alias test pruning after final
813 vectorization factor computation.
814 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
816 (vect_transform_slp_perm_load): Properly compute the original
817 number of vector load stmts.
819 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
821 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
822 "unlikely character , in @var" warning.
824 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
826 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
827 (ix86_function_arg_advance): Ditto.
828 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
830 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
832 * function.h (struct rtl_data): Remove struct and accessor macros.
833 * emit-rtl.h (struct rtl_data): Relocate to here.
834 * Makefile.in (GTFILES): Add emit-rtl.h.
835 * df-core.c: Include emit-rtl.h.
836 * genattrtab.c: Likewise.
837 * genconditions.c: Likewise.
838 * genpreds.c: Likewise.
839 * genrecog.c: Likewise.
840 * regcprop.c: Likewise.
841 * resource.c: Likewise.
842 * sched-rgn.c: Likewise.
843 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
844 * config/i386/winnt.c: Likewise.
846 2015-06-17 Jakub Jelinek <jakub@redhat.com>
849 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
850 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
851 and has_force_vectorize_loops flags from cfun into
853 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
854 if simduid is non-NULL.
855 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
856 * passes.def (pass_simduid_cleanup): Add new pass after loop
858 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
859 indirection from htab argument's type.
860 (shrink_simd_arrays): New function.
861 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
862 Don't call adjust_simduid_builtins if there are no loops.
863 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
864 (pass_simduid_cleanup::execute): New method.
865 (make_pass_simduid_cleanup): New function.
867 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
869 * tree-core.h (tree_target_option): Make opts field a pointer to a
870 cl_target_option instead of an instance of the struct.
871 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
873 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
875 (copy_node_stat): Allocate and copy struct cl_target_option.
877 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
879 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
880 Remove conditional exposure of prototypes.
881 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
882 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
883 definitions in tree.h with functions.
884 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
886 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
888 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
890 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
891 (*cmp<mode>_signed): ... this.
892 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
893 (*cmp<mode>_unsigned): ... this. Remove %b.
895 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
897 * coretypes.h: Include input.h and as-a.h.
898 * rtl.h: Include input.h and as-a.h for generator files.
899 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
900 * vec.c: Don't include diagnostic-core.h.
901 * alias.c: Do not include input.h, line-map.h or is-a.h.
903 * attribs.c: Likewise.
904 * auto-inc-dec.c: Likewise.
905 * auto-profile.c: Likewise.
906 * bb-reorder.c: Likewise.
907 * bt-load.c: Likewise.
908 * builtins.c: Likewise.
909 * caller-save.c: Likewise.
913 * cfganal.c: Likewise.
914 * cfgbuild.c: Likewise.
915 * cfgcleanup.c: Likewise.
916 * cfgexpand.c: Likewise.
917 * cfghooks.c: Likewise.
918 * cfgloop.c: Likewise.
919 * cfgloop.h: Likewise.
920 * cfgloopanal.c: Likewise.
921 * cfgloopmanip.c: Likewise.
922 * cfgrtl.c: Likewise.
923 * cgraph.c: Likewise.
924 * cgraphbuild.c: Likewise.
925 * cgraphclones.c: Likewise.
926 * cgraphunit.c: Likewise.
927 * cilk-common.c: Likewise.
928 * combine-stack-adj.c: Likewise.
929 * combine.c: Likewise.
930 * compare-elim.c: Likewise.
931 * convert.c: Likewise.
932 * coverage.c: Likewise.
933 * cppbuiltin.c: Likewise.
936 * cselib.c: Likewise.
937 * data-streamer-in.c: Likewise.
938 * data-streamer-out.c: Likewise.
939 * data-streamer.c: Likewise.
940 * dbxout.c: Likewise.
944 * df-core.c: Likewise.
945 * df-problems.c: Likewise.
946 * df-scan.c: Likewise.
949 * diagnostic-core.h: Likewise.
950 * diagnostic.c: Likewise.
951 * dojump.c: Likewise.
952 * dominance.c: Likewise.
953 * domwalk.c: Likewise.
954 * double-int.c: Likewise.
956 * dumpfile.c: Likewise.
957 * dumpfile.h: Likewise.
958 * dwarf2asm.c: Likewise.
959 * dwarf2cfi.c: Likewise.
960 * dwarf2out.c: Likewise.
961 * emit-rtl.c: Likewise.
962 * et-forest.c: Likewise.
963 * except.c: Likewise.
964 * explow.c: Likewise.
965 * expmed.c: Likewise.
968 * fixed-value.c: Likewise.
969 * fold-const.c: Likewise.
970 * function.c: Likewise.
971 * fwprop.c: Likewise.
972 * gcc-plugin.h: Likewise.
974 * generic-match-head.c: Likewise.
975 * ggc-page.c: Likewise.
976 * gimple-builder.c: Likewise.
977 * gimple-expr.c: Likewise.
978 * gimple-fold.c: Likewise.
979 * gimple-iterator.c: Likewise.
980 * gimple-low.c: Likewise.
981 * gimple-match-head.c: Likewise.
982 * gimple-pretty-print.c: Likewise.
983 * gimple-ssa-isolate-paths.c: Likewise.
984 * gimple-ssa-strength-reduction.c: Likewise.
985 * gimple-streamer-in.c: Likewise.
986 * gimple-streamer-out.c: Likewise.
987 * gimple-streamer.h: Likewise.
988 * gimple-walk.c: Likewise.
989 * gimple.c: Likewise.
990 * gimplify-me.c: Likewise.
991 * gimplify.c: Likewise.
992 * godump.c: Likewise.
994 * graphite-blocking.c: Likewise.
995 * graphite-dependences.c: Likewise.
996 * graphite-interchange.c: Likewise.
997 * graphite-isl-ast-to-gimple.c: Likewise.
998 * graphite-optimize-isl.c: Likewise.
999 * graphite-poly.c: Likewise.
1000 * graphite-scop-detection.c: Likewise.
1001 * graphite-sese-to-poly.c: Likewise.
1002 * graphite.c: Likewise.
1003 * haifa-sched.c: Likewise.
1004 * hw-doloop.c: Likewise.
1005 * ifcvt.c: Likewise.
1006 * init-regs.c: Likewise.
1007 * input.c: Likewise.
1008 * internal-fn.c: Likewise.
1009 * ipa-chkp.c: Likewise.
1010 * ipa-comdats.c: Likewise.
1011 * ipa-cp.c: Likewise.
1012 * ipa-devirt.c: Likewise.
1013 * ipa-icf-gimple.c: Likewise.
1014 * ipa-icf.c: Likewise.
1015 * ipa-inline-analysis.c: Likewise.
1016 * ipa-inline-transform.c: Likewise.
1017 * ipa-inline.c: Likewise.
1018 * ipa-polymorphic-call.c: Likewise.
1019 * ipa-profile.c: Likewise.
1020 * ipa-prop.c: Likewise.
1021 * ipa-pure-const.c: Likewise.
1022 * ipa-ref.c: Likewise.
1023 * ipa-reference.c: Likewise.
1024 * ipa-split.c: Likewise.
1025 * ipa-utils.c: Likewise.
1026 * ipa-visibility.c: Likewise.
1028 * ira-build.c: Likewise.
1029 * ira-color.c: Likewise.
1030 * ira-conflicts.c: Likewise.
1031 * ira-costs.c: Likewise.
1032 * ira-emit.c: Likewise.
1033 * ira-lives.c: Likewise.
1036 * langhooks.c: Likewise.
1038 * loop-doloop.c: Likewise.
1039 * loop-init.c: Likewise.
1040 * loop-invariant.c: Likewise.
1041 * loop-iv.c: Likewise.
1042 * loop-unroll.c: Likewise.
1043 * lower-subreg.c: Likewise.
1044 * lra-assigns.c: Likewise.
1045 * lra-coalesce.c: Likewise.
1046 * lra-constraints.c: Likewise.
1047 * lra-eliminations.c: Likewise.
1048 * lra-lives.c: Likewise.
1049 * lra-remat.c: Likewise.
1050 * lra-spills.c: Likewise.
1052 * lto-cgraph.c: Likewise.
1053 * lto-compress.c: Likewise.
1054 * lto-opts.c: Likewise.
1055 * lto-section-in.c: Likewise.
1056 * lto-section-out.c: Likewise.
1057 * lto-streamer-in.c: Likewise.
1058 * lto-streamer-out.c: Likewise.
1059 * lto-streamer.c: Likewise.
1061 * mode-switching.c: Likewise.
1062 * modulo-sched.c: Likewise.
1063 * omega.c: Likewise.
1064 * omp-low.c: Likewise.
1065 * optabs.c: Likewise.
1066 * opts-global.c: Likewise.
1068 * passes.c: Likewise.
1069 * plugin.c: Likewise.
1070 * postreload-gcse.c: Likewise.
1071 * postreload.c: Likewise.
1072 * predict.c: Likewise.
1073 * pretty-print.h: Likewise.
1074 * print-rtl.c: Likewise.
1075 * print-tree.c: Likewise.
1076 * profile.c: Likewise.
1078 * realmpfr.c: Likewise.
1079 * recog.c: Likewise.
1081 * reg-stack.c: Likewise.
1082 * regcprop.c: Likewise.
1083 * reginfo.c: Likewise.
1084 * regrename.c: Likewise.
1085 * regstat.c: Likewise.
1086 * reload.c: Likewise.
1087 * reload1.c: Likewise.
1088 * reorg.c: Likewise.
1089 * resource.c: Likewise.
1090 * rtl-chkp.c: Likewise.
1091 * rtl-error.c: Likewise.
1092 * rtlanal.c: Likewise.
1093 * rtlhooks.c: Likewise.
1094 * sanopt.c: Likewise.
1095 * sched-deps.c: Likewise.
1096 * sched-ebb.c: Likewise.
1097 * sched-rgn.c: Likewise.
1098 * sched-vis.c: Likewise.
1099 * sdbout.c: Likewise.
1100 * sel-sched-dump.c: Likewise.
1101 * sel-sched-ir.c: Likewise.
1102 * sel-sched.c: Likewise.
1104 * shrink-wrap.c: Likewise.
1105 * simplify-rtx.c: Likewise.
1106 * stack-ptr-mod.c: Likewise.
1107 * statistics.c: Likewise.
1109 * stor-layout.c: Likewise.
1110 * store-motion.c: Likewise.
1111 * streamer-hooks.c: Likewise.
1112 * stringpool.c: Likewise.
1113 * symtab.c: Likewise.
1114 * target-globals.c: Likewise.
1115 * targhooks.c: Likewise.
1116 * toplev.c: Likewise.
1117 * tracer.c: Likewise.
1118 * trans-mem.c: Likewise.
1119 * tree-affine.c: Likewise.
1120 * tree-browser.c: Likewise.
1121 * tree-call-cdce.c: Likewise.
1122 * tree-cfg.c: Likewise.
1123 * tree-cfgcleanup.c: Likewise.
1124 * tree-chkp-opt.c: Likewise.
1125 * tree-chkp.c: Likewise.
1126 * tree-chrec.c: Likewise.
1127 * tree-complex.c: Likewise.
1128 * tree-data-ref.c: Likewise.
1129 * tree-dfa.c: Likewise.
1130 * tree-diagnostic.c: Likewise.
1131 * tree-dump.c: Likewise.
1132 * tree-eh.c: Likewise.
1133 * tree-emutls.c: Likewise.
1134 * tree-if-conv.c: Likewise.
1135 * tree-inline.c: Likewise.
1136 * tree-into-ssa.c: Likewise.
1137 * tree-iterator.c: Likewise.
1138 * tree-loop-distribution.c: Likewise.
1139 * tree-nested.c: Likewise.
1140 * tree-nrv.c: Likewise.
1141 * tree-object-size.c: Likewise.
1142 * tree-outof-ssa.c: Likewise.
1143 * tree-parloops.c: Likewise.
1144 * tree-phinodes.c: Likewise.
1145 * tree-predcom.c: Likewise.
1146 * tree-pretty-print.c: Likewise.
1147 * tree-profile.c: Likewise.
1148 * tree-scalar-evolution.c: Likewise.
1149 * tree-sra.c: Likewise.
1150 * tree-ssa-address.c: Likewise.
1151 * tree-ssa-alias.c: Likewise.
1152 * tree-ssa-ccp.c: Likewise.
1153 * tree-ssa-coalesce.c: Likewise.
1154 * tree-ssa-copy.c: Likewise.
1155 * tree-ssa-copyrename.c: Likewise.
1156 * tree-ssa-dce.c: Likewise.
1157 * tree-ssa-dom.c: Likewise.
1158 * tree-ssa-dse.c: Likewise.
1159 * tree-ssa-forwprop.c: Likewise.
1160 * tree-ssa-ifcombine.c: Likewise.
1161 * tree-ssa-live.c: Likewise.
1162 * tree-ssa-loop-ch.c: Likewise.
1163 * tree-ssa-loop-im.c: Likewise.
1164 * tree-ssa-loop-ivcanon.c: Likewise.
1165 * tree-ssa-loop-ivopts.c: Likewise.
1166 * tree-ssa-loop-manip.c: Likewise.
1167 * tree-ssa-loop-niter.c: Likewise.
1168 * tree-ssa-loop-prefetch.c: Likewise.
1169 * tree-ssa-loop-unswitch.c: Likewise.
1170 * tree-ssa-loop.c: Likewise.
1171 * tree-ssa-math-opts.c: Likewise.
1172 * tree-ssa-operands.c: Likewise.
1173 * tree-ssa-phiopt.c: Likewise.
1174 * tree-ssa-phiprop.c: Likewise.
1175 * tree-ssa-pre.c: Likewise.
1176 * tree-ssa-propagate.c: Likewise.
1177 * tree-ssa-reassoc.c: Likewise.
1178 * tree-ssa-sccvn.c: Likewise.
1179 * tree-ssa-scopedtables.c: Likewise.
1180 * tree-ssa-sink.c: Likewise.
1181 * tree-ssa-strlen.c: Likewise.
1182 * tree-ssa-structalias.c: Likewise.
1183 * tree-ssa-tail-merge.c: Likewise.
1184 * tree-ssa-ter.c: Likewise.
1185 * tree-ssa-threadedge.c: Likewise.
1186 * tree-ssa-threadupdate.c: Likewise.
1187 * tree-ssa-uncprop.c: Likewise.
1188 * tree-ssa-uninit.c: Likewise.
1189 * tree-ssa.c: Likewise.
1190 * tree-ssanames.c: Likewise.
1191 * tree-stdarg.c: Likewise.
1192 * tree-streamer-in.c: Likewise.
1193 * tree-streamer-out.c: Likewise.
1194 * tree-streamer.c: Likewise.
1195 * tree-switch-conversion.c: Likewise.
1196 * tree-tailcall.c: Likewise.
1197 * tree-vect-data-refs.c: Likewise.
1198 * tree-vect-generic.c: Likewise.
1199 * tree-vect-loop-manip.c: Likewise.
1200 * tree-vect-loop.c: Likewise.
1201 * tree-vect-patterns.c: Likewise.
1202 * tree-vect-slp.c: Likewise.
1203 * tree-vect-stmts.c: Likewise.
1204 * tree-vectorizer.c: Likewise.
1205 * tree-vrp.c: Likewise.
1208 * ubsan.c: Likewise.
1209 * valtrack.c: Likewise.
1210 * value-prof.c: Likewise.
1211 * var-tracking.c: Likewise.
1212 * varasm.c: Likewise.
1213 * varpool.c: Likewise.
1214 * vmsdbgout.c: Likewise.
1215 * vtable-verify.c: Likewise.
1217 * wide-int.cc: Likewise.
1218 * xcoffout.c: Likewise.
1219 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
1220 * common/common-targhooks.c: Likewise.
1221 * config/aarch64/aarch64-builtins.c: Likewise.
1222 * config/aarch64/aarch64.c: Likewise.
1223 * config/alpha/alpha.c: Likewise.
1224 * config/arc/arc.c: Likewise.
1225 * config/arm/aarch-common.c: Likewise.
1226 * config/arm/arm-builtins.c: Likewise.
1227 * config/arm/arm-c.c: Likewise.
1228 * config/arm/arm.c: Likewise.
1229 * config/avr/avr-c.c: Likewise.
1230 * config/avr/avr-log.c: Likewise.
1231 * config/avr/avr.c: Likewise.
1232 * config/bfin/bfin.c: Likewise.
1233 * config/c6x/c6x.c: Likewise.
1234 * config/cr16/cr16.c: Likewise.
1235 * config/cris/cris.c: Likewise.
1236 * config/darwin-c.c: Likewise.
1237 * config/darwin.c: Likewise.
1238 * config/default-c.c: Likewise.
1239 * config/epiphany/epiphany.c: Likewise.
1240 * config/epiphany/mode-switch-use.c: Likewise.
1241 * config/epiphany/resolve-sw-modes.c: Likewise.
1242 * config/fr30/fr30.c: Likewise.
1243 * config/frv/frv.c: Likewise.
1244 * config/ft32/ft32.c: Likewise.
1245 * config/glibc-c.c: Likewise.
1246 * config/h8300/h8300.c: Likewise.
1247 * config/i386/i386-c.c: Likewise.
1248 * config/i386/i386.c: Likewise.
1249 * config/i386/msformat-c.c: Likewise.
1250 * config/i386/winnt-cxx.c: Likewise.
1251 * config/i386/winnt-stubs.c: Likewise.
1252 * config/i386/winnt.c: Likewise.
1253 * config/ia64/ia64-c.c: Likewise.
1254 * config/ia64/ia64.c: Likewise.
1255 * config/iq2000/iq2000.c: Likewise.
1256 * config/lm32/lm32.c: Likewise.
1257 * config/m32c/m32c-pragma.c: Likewise.
1258 * config/m32c/m32c.c: Likewise.
1259 * config/m32r/m32r.c: Likewise.
1260 * config/m68k/m68k.c: Likewise.
1261 * config/mcore/mcore.c: Likewise.
1262 * config/mep/mep-pragma.c: Likewise.
1263 * config/mep/mep.c: Likewise.
1264 * config/microblaze/microblaze-c.c: Likewise.
1265 * config/microblaze/microblaze.c: Likewise.
1266 * config/mips/mips.c: Likewise.
1267 * config/mmix/mmix.c: Likewise.
1268 * config/mn10300/mn10300.c: Likewise.
1269 * config/moxie/moxie.c: Likewise.
1270 * config/msp430/msp430-c.c: Likewise.
1271 * config/msp430/msp430.c: Likewise.
1272 * config/nds32/nds32-cost.c: Likewise.
1273 * config/nds32/nds32-fp-as-gp.c: Likewise.
1274 * config/nds32/nds32-intrinsic.c: Likewise.
1275 * config/nds32/nds32-isr.c: Likewise.
1276 * config/nds32/nds32-md-auxiliary.c: Likewise.
1277 * config/nds32/nds32-memory-manipulation.c: Likewise.
1278 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1279 * config/nds32/nds32-predicates.c: Likewise.
1280 * config/nds32/nds32.c: Likewise.
1281 * config/nios2/nios2.c: Likewise.
1282 * config/nvptx/nvptx.c: Likewise.
1283 * config/pa/pa.c: Likewise.
1284 * config/pdp11/pdp11.c: Likewise.
1285 * config/rl78/rl78-c.c: Likewise.
1286 * config/rl78/rl78.c: Likewise.
1287 * config/rs6000/rs6000-c.c: Likewise.
1288 * config/rs6000/rs6000.c: Likewise.
1289 * config/rx/rx.c: Likewise.
1290 * config/s390/s390-c.c: Likewise.
1291 * config/s390/s390.c: Likewise.
1292 * config/sh/sh-c.c: Likewise.
1293 * config/sh/sh-mem.cc: Likewise.
1294 * config/sh/sh.c: Likewise.
1295 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
1296 * config/sh/sh_treg_combine.cc: Likewise.
1297 * config/sol2-c.c: Likewise.
1298 * config/sol2-cxx.c: Likewise.
1299 * config/sol2-stubs.c: Likewise.
1300 * config/sol2.c: Likewise.
1301 * config/sparc/sparc-c.c: Likewise.
1302 * config/sparc/sparc.c: Likewise.
1303 * config/spu/spu-c.c: Likewise.
1304 * config/spu/spu.c: Likewise.
1305 * config/stormy16/stormy16.c: Likewise.
1306 * config/tilegx/mul-tables.c: Likewise.
1307 * config/tilegx/tilegx-c.c: Likewise.
1308 * config/tilegx/tilegx.c: Likewise.
1309 * config/tilepro/mul-tables.c: Likewise.
1310 * config/tilepro/tilepro-c.c: Likewise.
1311 * config/tilepro/tilepro.c: Likewise.
1312 * config/v850/v850-c.c: Likewise.
1313 * config/v850/v850.c: Likewise.
1314 * config/vax/vax.c: Likewise.
1315 * config/visium/visium.c: Likewise.
1316 * config/vms/vms-c.c: Likewise.
1317 * config/vms/vms.c: Likewise.
1318 * config/vxworks.c: Likewise.
1319 * config/winnt-c.c: Likewise.
1320 * config/xtensa/xtensa.c: Likewise.
1322 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
1324 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
1326 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
1328 2015-06-17 Richard Biener <rguenther@suse.de>
1330 PR tree-optimization/66251
1331 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
1332 stmts for SLP strided stores.
1335 2015-05-22 Richard Biener <rguenther@suse.de>
1337 PR tree-optimization/66251
1338 * tree-vect-stmts.c (vectorizable_conversion): Properly
1339 set STMT_VINFO_VEC_STMT even for the SLP case.
1341 2015-05-26 Michael Matz <matz@suse.de>
1344 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
1345 STMT_VINFO_VEC_STMT, also with SLP.
1347 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
1350 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
1351 (*avx_addsubv4df3_1s): Ditto.
1352 (*sse3_addsubv2df3_1): Ditto.
1353 (*sse3_addsubv2df3_1s): Ditto.
1354 (*avx_addsubv8sf3_1): Ditto.
1355 (*avx_addsubv8sf3_1s): Ditto.
1356 (*sse3_addsubv4sf3_1): Ditto.
1357 (*sse3_addsubv4sf3_1s): Ditto.
1359 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
1361 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
1362 (SYSROOT_SUFFIX_SPEC): Update.
1363 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
1364 (STARTFILE_PREFIX_SPEC): Update.
1365 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
1366 (MULTILIB_REQUIRED): New.
1367 (MULTILIB_OSDIRNAMES): New.
1368 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
1369 (MULTILIB_REQUIRED): New.
1370 (MULTILIB_OSDIRNAMES): New.
1372 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
1374 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
1375 * config/aarch64/aarch64-options-extensions.def: Update "fP",
1376 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
1377 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
1378 (AARCH64_FL_PAN): New.
1379 (AARCH64_FL_LOR): New.
1380 (AARCH64_FL_RDMA): New.
1381 (AARCH64_FL_FOR_ARCH8_1): New.
1382 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
1383 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
1385 2015-06-16 Martin Liska <mliska@suse.cz>
1387 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
1388 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
1391 2015-06-16 Richard Biener <rguenther@suse.de>
1393 * tree-vect-stmts.c (vectorizable_store): Adjust.
1394 (vectorizable_load): Likewise.
1395 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1397 (vect_create_data_ref_ptr): Likewise.
1398 (bump_vector_ptr): Adjust.
1400 2015-06-16 Richard Biener <rguenther@suse.de>
1402 * tree-vect-stmts.c (vectorizable_load): Properly start loads
1403 with the first element if this is grouped loads.
1405 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
1407 * config/arm/arm-protos.h (struct tune_params): Rename
1408 log_op_non_sc to log_op_non_short_circuit, and rename enum
1409 values to expand SC to SHORT_CIRCUIT.
1410 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
1411 to LOG_OP_NON_SHORT_CIRCUIT.
1412 (arm_fastmul_tune):Likewise
1413 (arm_strongarm_tune): Likewise.
1414 (arm_xscale_tune): Likewise.
1415 (arm_9e_tune): Likewise.
1416 (arm_marvell_pj4_tune): Likewise.
1417 (arm_v6t2_tune): Likewise.
1418 (arm_cortex_tune): Likewise.
1419 (arm_cortex_a8_tune): Likewise.
1420 (arm_cortex_a7_tune): Likewise.
1421 (arm_cortex_a15_tune): Likewise.
1422 (arm_cortex_a53_tune): Likewise.
1423 (arm_cortex_a57_tune): Likewise.
1424 (arm_xgene1_tune): Likewise.
1425 (arm_cortex_a5_tune): Likewise.
1426 (arm_cortex_a9_tune): Likewise.
1427 (arm_cortex_a12_tune): Likewise.
1428 (arm_v7m_tune): Likewise.
1429 (arm_cortex_m7_tune): Likewise.
1430 (arm_v6m_tune): Likewise.
1431 (arm_fa726te_tune): Likewise.
1433 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
1435 * altivec.md: Delete UNSPEC_VMLADDUHM.
1436 (mulv4si3_p8): New pattern.
1437 (mulv4si3): Use it for POWER8.
1438 (mulv8hi3): Use vmladduhm with zero addend.
1439 (altivec_vmladduhm): Descriptive RTL.
1441 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
1443 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
1444 to use neon_move instead of mov_imm.
1445 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
1446 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
1448 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
1449 aarch64_float_const_zero_rtx_p check before TFmode check.
1450 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
1452 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
1453 code and attributes to match. Change condition from register_operand
1454 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
1455 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
1458 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
1461 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
1464 2015-06-14 Shiva Chen <shiva0217@gmail.com>
1466 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
1467 HOST_WIDE_INT parameter.
1469 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
1472 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
1473 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
1475 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
1477 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
1479 * rtl.h (classify_insn): Declare.
1480 * emit-rtl.c (classify_insn): Move to...
1481 * rtl.c: ...here and add generator support.
1482 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
1483 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
1484 * genemit.c (gen_emit_seq): New function.
1485 (gen_expand, gen_split): Use it.
1487 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
1489 * tree.c (make_vector_stat): Fix comment to state that the
1490 function returns a VECTOR_CST.
1492 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
1494 * gensupport.h (add_implicit_parallel): Declare.
1495 * genrecog.c (add_implicit_parallel): Move to...
1496 * gensupport.c (add_implicit_parallel): ...here.
1497 (process_one_cond_exec): Use it.
1498 * genemit.c (gen_insn): Likewise.
1500 2015-06-13 Iain Sandoe <iain@codesourcery.com>
1503 * passes.c (rest_of_decl_compilation): Do not register globals for
1504 early debug if they are declared in built-ins.
1506 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
1508 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
1510 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1512 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
1514 (noce_try_cmove_arith): Likewise.
1515 (noce_get_alt_condition): Likewise.
1517 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
1519 * common/config/i386/i386-common.c
1520 (OPTION_MASK_ISA_MWAITX_SET): New.
1521 (ix86_handle_option): Handle mwaitx.
1522 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
1523 (x86_64-*-*): Likewise.
1524 * config/i386/mwaitxintrin.h: New header.
1525 * config/i386/cpuid.h (bit_MWAITX): Define.
1526 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1528 * config/i386/i386.opt (mwaitx): New.
1529 * config/i386/i386-builtin-types.def
1530 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
1531 * config/i386/i386-c.c: Define __MWAITX__ if needed.
1532 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
1534 (ix86_option_override_internal): Handle new option.
1535 (processor_alias_table): Added PTA_MWAITX.
1536 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
1537 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
1538 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
1539 IX86_BUILTIN_MONITORX built-ins.
1540 * config/i386/i386.h (TARGET_MWAITX): New.
1541 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
1543 (mwaitx): New pattern.
1544 (monitorx_<mode>): New pattern.
1545 * config/i386/x86intrin.h: Include mwaitxintrin.h.
1546 * doc/extend.texi: Document monitorx and mwaitx builtins.
1547 * doc/invoke.texi: Document -mmwaitx option.
1549 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
1551 * emit-rtl.c (need_atomic_barrier_p): Mask model with
1552 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
1554 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
1556 * dbxout.c (xcoff_debug_hooks): Provide a function for
1557 register_main_translation_unit hook.
1559 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
1561 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
1562 variants cases from switch.
1563 (rs6000_post_atomic_barrier): Same.
1564 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
1565 (rs6000_expand_atomic_exchange): Same.
1566 (rs6000_expand_atomic_op): Same.
1567 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
1568 SYNC variants cases from switch.
1569 (atomic_load): Same.
1570 (atomic_store): Same.
1572 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
1574 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
1577 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
1580 * dwarf2out.c (check_die): Check for common duplicate attributes.
1581 (add_location_or_const_value_attribute): Do not add duplicate
1583 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
1585 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
1586 (gen_type_die_with_usage): Call check_die.
1587 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
1589 2015-06-11 Jason Merrill <jason@redhat.com>
1591 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
1594 2015-06-11 Marek Polacek <polacek@redhat.com>
1596 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
1598 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
1601 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
1602 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
1603 (*addx_extend_sp32): Fix pasto.
1604 (*subx_extend): Rename into...
1605 (*subx_extend_sp32): ...this.
1606 (*adddi3_extend_sp32): Add earlyclobber.
1607 (*subdi3_insn_sp32): Likewise.
1608 (*subdi3_extend_sp32): Likewise.
1609 (*and_not_di_sp32): Likewise.
1610 (*or_not_di_sp32): Likewise.
1611 (*xor_not_di_sp32): Likewise.
1612 (*negdi2_sp32): Likewise.
1613 (*one_cmpldi2_sp32): Likewise.
1615 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
1617 * debug.h (struct gcc_debug_hooks): Add a
1618 register_main_translation_unit hook.
1619 * debug.c (do_nothing_debug_hooks): Provide a function for this
1621 * dbxout.c (dbx_debug_hooks): Likewise.
1622 * sdbout.c (sdb_debug_hooks): Likewise.
1623 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
1624 * dwarf2out.c (main_translation_unit): New global variable.
1625 (dwarf2out_register_main_translation_unit): New function
1626 implementing the new hook.
1627 (dwarf2_debug_hooks): Assign
1628 dwarf2out_register_main_translation_unit to this new hook.
1629 (dwarf2out_init): Associate any main translation unit to
1632 2015-06-11 Marek Polacek <polacek@redhat.com>
1634 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
1636 2015-06-11 Marek Polacek <polacek@redhat.com>
1638 * match.pd: Use single_use throughout.
1640 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1642 * config/arm/arm.c (arm_option_params_internal): When optimising
1643 for speed set max_insns_skipped when arm_restrict_it.
1645 2015-06-11 Christian Bruel <christian.bruel@st.com>
1648 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
1650 (arm_cpu_builtins): New function.
1651 (arm_pragma_target_parse): Call arm_cpu_builtins.
1652 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
1653 (arm_register_target_pragmas): Likewise.
1654 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
1655 Call arm_register_target_pragmas.
1656 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
1657 (arm_pragma_target_parse): Likewise.
1659 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
1661 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
1662 of the second operand.
1664 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
1667 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
1668 to prepare mask operand for AVX512 modes.
1670 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1673 * doc/md.texi (Machine Constraints): Document that on the PowerPC
1674 if you use a constraint that targets a VSX register, you must use
1675 %x<n> in the template.
1677 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
1679 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
1680 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
1681 (define_insn "trap"): New definition.
1683 2015-06-10 Richard Biener <rguenther@suse.de>
1685 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
1687 (vect_supported_load_permutation_p): ... here. Handle
1688 supportable permutations in reductions.
1689 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
1690 for vectorizing strided group loads.
1692 2015-06-10 Jakub Jelinek <jakub@redhat.com>
1695 * config/i386/i386.c (ix86_split_long_move): For collisions
1696 involving direct tls segment refs, move the UNSPEC_TP possibly
1697 wrapped in ZERO_EXTEND out of the address for lea, to each of
1700 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1702 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
1703 dmb sy. Adjust tabs.
1705 2015-06-10 Tom de Vries <tom@codesourcery.com>
1707 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
1709 2015-06-10 Martin Liska <mliska@suse.cz>
1712 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
1713 all enum values in mem_alloc_origin.
1714 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
1716 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
1717 * bitmap.c (bitmap_register): Likewise.
1718 (dump_bitmap_statistics): Likewise.
1719 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
1720 (ggc_record_overhead): Likewise.
1721 * hash-map.h: Likewise.
1722 * hash-set.h: Likewise.
1723 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
1724 * hash-table.h: Likewise.
1725 * vec.c (vec_prefix::register_overhead): Likewise.
1726 (vec_prefix::release_overhead): Likewise.
1727 (dump_vec_loc_statistics): Likewise.
1729 2015-06-09 Christian Bruel <christian.bruel@st.com>
1732 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
1733 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
1734 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
1735 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
1736 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
1737 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
1738 (arm_valid_target_attribute_p): Likewise.
1739 (arm_set_current_function, arm_can_inline_p): Likewise.
1740 (arm_valid_target_attribute_rec): Likewise.
1741 (arm_previous_fndecl): New variable.
1742 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
1743 (TARGET_CAN_INLINE_P): Define.
1744 (arm_asm_trampoline_template): Emit mode.
1745 (arm_file_start): Don't set unified syntax.
1746 (arm_declare_function_name): Set unified syntax and mode.
1747 (arm_option_override): Init target_option_default_node.
1748 and target_option_current_node.
1749 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
1750 (*call_symbol): Likewise.
1751 * doc/extend.texi: Document ARM/Thumb target attribute.
1752 * doc/invoke.texi: Likewise.
1754 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
1757 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
1758 PR rtl-optimization/64164
1759 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
1760 * tree-ssa-copyrename.c: Removed.
1761 * opts.c (default_options_table): Drop -ftree-copyrename. Add
1762 -ftree-coalesce-vars.
1763 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
1764 * common.opt (ftree-copyrename): Ignore.
1765 (ftree-coalesce-inlined-vars): Likewise.
1766 * doc/invoke.texi: Remove the ignored options above.
1767 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
1768 * tree-ssa-coalesce.h: ... here.
1769 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
1770 headers required by it.
1771 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
1772 across variables when flag_tree_coalesce_vars. Check register
1773 use and promoted modes to allow coalescing. Moved to
1774 tree-ssa-coalesce.c.
1775 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
1776 with its member functions to tree-ssa-coalesce.c.
1777 (var_map_base_init): Likewise. Renamed to
1778 compute_samebase_partition_bases.
1779 (partition_view_normal): Drop want_bases parameter.
1780 (partition_view_bitmap): Likewise.
1781 * tree-ssa-live.h: Adjust declarations.
1782 * tree-ssa-coalesce.c: Include explow.h.
1783 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
1784 default defs at the entry point.
1785 (dump_part_var_map): New.
1786 (compute_optimized_partition_bases): New, called by...
1787 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
1788 of compute_samebase_partition_bases. Adjust.
1789 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
1790 * cfgexpand.c (leader_merge): New.
1791 (get_rtl_for_parm_ssa_default_def): New.
1792 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
1793 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
1794 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
1795 redundant MEM attr setting.
1796 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
1798 (expand_one_stack_var): ... this. New wrapper to check and
1799 skip already expanded SSA partitions.
1800 (record_alignment_for_reg_var): New, factored out of...
1801 (expand_one_var): ... this.
1802 (expand_one_ssa_partition): New.
1803 (adjust_one_expanded_partition_var): New.
1804 (expand_one_register_var): Check and skip already expanded SSA
1806 (expand_used_vars): Don't create DECLs for anonymous SSA
1807 names. Expand all SSA partitions, then adjust all SSA names.
1808 (pass::execute): Replace the loops that set
1809 SA.partition_to_pseudo from partition leaders and cleared
1810 DECL_RTL for multi-location variables, and that which used to
1811 rename vars and set attrs, with one that clears DECL_RTL and
1812 checks that PARMs and RESULTs default_defs match DECL_RTL.
1813 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
1814 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
1815 * explow.c (promote_ssa_mode): New.
1816 * explow.h (promote_ssa_mode): Declare.
1817 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
1818 * function.c: Include cfgexpand.h.
1819 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
1820 (use_register_for_parm_decl): Wrapper for the above to
1821 special-case the result_ptr.
1822 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
1823 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
1825 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
1826 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
1827 (assign_parm_setup_block): Prefer SSA-assigned location.
1828 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
1829 if stack_parm is NULL.
1830 (assign_parm_setup_stack): Prefer SSA-assigned location.
1831 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
1832 rtl before testing for pointer bounds. Special-case result_ptr.
1833 (expand_function_start): Maybe reset DECL_RTL of result.
1834 Prefer SSA-assigned location for result and static chain.
1835 Factor out DECL_RESULT and SET_DECL_RTL.
1836 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
1837 anonymous SSA names. Use promote_ssa_mode.
1838 (get_temp_reg): Likewise.
1839 (remove_ssa_form): Adjust.
1840 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
1841 and get its reg_usage for reg invalidation.
1842 (compute_bb_dataflow): Pass it insn.
1843 (emit_notes_in_bb): Likewise.
1844 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
1845 fail assert on conversion between unsigned types.
1847 2015-06-09 Tom de Vries <tom@codesourcery.com>
1849 PR tree-optimization/65460
1850 * omp-low.c (expand_omp_target): Set parallelized_function on
1851 cgraph_node for child_fn.
1853 2015-06-09 Tom de Vries <tom@codesourcery.com>
1855 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
1856 parallelized_function before add_new_function.
1858 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
1860 * gcc-plugin.h: Move decls to plugin.h and include it.
1861 * plugin.h: Relocate decls from gcc-plugin.h
1862 * ggc-page.c: Include required header files.
1863 * passes.c: Likewise.
1864 * cgraphunit.c: Likewise.
1866 2015-06-09 Tom de Vries <tom@codesourcery.com>
1868 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
1870 2015-06-09 Jason Merrill <jason@redhat.com>
1873 * toplev.c (check_global_declaration): Don't warn about a clone.
1875 2015-06-09 Marek Polacek <polacek@redhat.com>
1877 PR tree-optimization/66299
1878 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
1879 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
1882 2015-06-09 Richard Biener <rguenther@suse.de>
1884 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
1885 (vect_analyze_slp_instance): Instead do not falsely drop
1888 2015-06-09 Richard Biener <rguenther@suse.de>
1891 * match.pd: Handle A % (unsigned)(1 << B).
1893 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
1895 * varasm.c (output_object_block_htab): Remove.
1896 (output_object_block_compare): New.
1897 (output_object_blocks): Sort named object_blocks before outputting
1900 2015-06-09 Richard Biener <rguenther@suse.de>
1902 PR tree-optimization/66419
1903 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
1904 consider GROUP_GAP when detecting a perfect subchain.
1906 2015-06-09 Nick Clifton <nickc@redhat.com>
1908 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
1909 place read only data in the .frodata section.
1911 2015-06-09 Shiva Chen <shiva0217@gmail.com>
1913 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
1914 (atomic_store<mode>): Likewise.
1916 2015-06-09 Richard Biener <rguenther@suse.de>
1918 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
1920 2015-06-09 Richard Biener <rguenther@suse.de>
1923 * tree-inline.c (insert_init_debug_bind): Unshare value.
1925 2015-06-09 Richard Biener <rguenther@suse.de>
1927 PR tree-optimization/66396
1928 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
1929 Rename virtual operands.
1931 2015-06-09 Tom de Vries <tom@codesourcery.com>
1933 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
1934 always return false.
1936 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
1938 PR rtl-optimization/64164
1939 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
1940 * tree-ssa-copyrename.c: Removed.
1941 * opts.c (default_options_table): Drop -ftree-copyrename. Add
1942 -ftree-coalesce-vars.
1943 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
1944 * common.opt (ftree-copyrename): Ignore.
1945 (ftree-coalesce-inlined-vars): Likewise.
1946 * doc/invoke.texi: Remove the ignored options above.
1947 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
1948 * tree-ssa-coalesce.h: ... here.
1949 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
1950 headers required by it.
1951 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
1952 across variables when flag_tree_coalesce_vars. Check register
1953 use and promoted modes to allow coalescing. Moved to
1954 tree-ssa-coalesce.c.
1955 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
1956 with its member functions to tree-ssa-coalesce.c.
1957 (var_map_base_init): Likewise. Renamed to
1958 compute_samebase_partition_bases.
1959 (partition_view_normal): Drop want_bases parameter.
1960 (partition_view_bitmap): Likewise.
1961 * tree-ssa-live.h: Adjust declarations.
1962 * tree-ssa-coalesce.c: Include explow.h.
1963 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
1964 default defs at the entry point.
1965 (dump_part_var_map): New.
1966 (compute_optimized_partition_bases): New, called by...
1967 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
1968 of compute_samebase_partition_bases. Adjust.
1969 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
1970 * cfgexpand.c (leader_merge): New.
1971 (get_rtl_for_parm_ssa_default_def): New.
1972 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
1973 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
1974 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
1975 redundant MEM attr setting.
1976 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
1978 (expand_one_stack_var): ... this. New wrapper to check and
1979 skip already expanded SSA partitions.
1980 (record_alignment_for_reg_var): New, factored out of...
1981 (expand_one_var): ... this.
1982 (expand_one_ssa_partition): New.
1983 (adjust_one_expanded_partition_var): New.
1984 (expand_one_register_var): Check and skip already expanded SSA
1986 (expand_used_vars): Don't create DECLs for anonymous SSA
1987 names. Expand all SSA partitions, then adjust all SSA names.
1988 (pass::execute): Replace the loops that set
1989 SA.partition_to_pseudo from partition leaders and cleared
1990 DECL_RTL for multi-location variables, and that which used to
1991 rename vars and set attrs, with one that clears DECL_RTL and
1992 checks that PARMs and RESULTs default_defs match DECL_RTL.
1993 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
1994 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
1995 * explow.c (promote_ssa_mode): New.
1996 * explow.h (promote_ssa_mode): Declare.
1997 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
1998 * function.c: Include cfgexpand.h.
1999 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
2000 (use_register_for_parm_decl): Wrapper for the above to
2001 special-case the result_ptr.
2002 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
2003 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
2005 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
2006 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
2007 (assign_parm_setup_block): Prefer SSA-assigned location.
2008 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
2009 if stack_parm is NULL.
2010 (assign_parm_setup_stack): Prefer SSA-assigned location.
2011 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
2012 rtl before testing for pointer bounds. Special-case result_ptr.
2013 (expand_function_start): Maybe reset DECL_RTL of result.
2014 Prefer SSA-assigned location for result and static chain.
2015 Factor out DECL_RESULT and SET_DECL_RTL.
2016 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
2017 anonymous SSA names. Use promote_ssa_mode.
2018 (get_temp_reg): Likewise.
2019 (remove_ssa_form): Adjust.
2020 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
2021 and get its reg_usage for reg invalidation.
2022 (compute_bb_dataflow): Pass it insn.
2023 (emit_notes_in_bb): Likewise.
2024 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
2025 fail assert on conversion between unsigned types.
2027 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
2030 * tree-inline.c (reset_debug_binding): New.
2031 (reset_debug_bindings): Likewise.
2032 (expand_call_inline): Call it.
2034 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
2036 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
2039 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
2041 * lto-streamer-out.c (lto_output_location): Stream
2042 reserved locations correctly.
2043 * lto-streamer-in.c (lto_output_location): Likewise.
2045 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
2047 * coretypes.h: Include hash-table.h and hash-set.h for host files.
2048 * ggc.h: Don't include statistics.h>
2049 * hash-map.h: Remove all includes.
2050 * hash-set.h: Likewise.
2051 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
2052 the include list. Remove <new>.
2053 * inchash.h: Remove all includes.
2054 * mem-stats.h: Likewise.
2055 * vec.h: No special processing for generators or ggc.
2056 * alias.c : Adjust include files.
2057 * alloc-pool.c : Likewise.
2058 * alloc-pool.h : Likewise.
2059 * asan.c : Likewise.
2060 * attribs.c : Likewise.
2061 * auto-inc-dec.c : Likewise.
2062 * auto-profile.c : Likewise.
2063 * bb-reorder.c : Likewise.
2064 * bitmap.c : Likewise.
2065 * bitmap.h : Likewise.
2066 * bt-load.c : Likewise.
2067 * builtins.c : Likewise.
2068 * caller-save.c : Likewise.
2069 * calls.c : Likewise.
2070 * ccmp.c : Likewise.
2072 * cfganal.c : Likewise.
2073 * cfgbuild.c : Likewise.
2074 * cfgcleanup.c : Likewise.
2075 * cfgexpand.c : Likewise.
2076 * cfghooks.c : Likewise.
2077 * cfgloop.c : Likewise.
2078 * cfgloop.h : Likewise.
2079 * cfgloopanal.c : Likewise.
2080 * cfgloopmanip.c : Likewise.
2081 * cfgrtl.c : Likewise.
2082 * cgraph.c : Likewise.
2083 * cgraphbuild.c : Likewise.
2084 * cgraphclones.c : Likewise.
2085 * cgraphunit.c : Likewise.
2086 * cilk-common.c : Likewise.
2087 * combine-stack-adj.c : Likewise.
2088 * combine.c : Likewise.
2089 * compare-elim.c : Likewise.
2090 * context.c : Likewise.
2091 * convert.c : Likewise.
2092 * coverage.c : Likewise.
2093 * cppbuiltin.c : Likewise.
2094 * cprop.c : Likewise.
2096 * cselib.c : Likewise.
2097 * data-streamer-in.c : Likewise.
2098 * data-streamer-out.c : Likewise.
2099 * data-streamer.c : Likewise.
2100 * data-streamer.h : Likewise.
2101 * dbxout.c : Likewise.
2104 * debug.c : Likewise.
2105 * df-core.c : Likewise.
2106 * df-problems.c : Likewise.
2107 * df-scan.c : Likewise.
2110 * dojump.c : Likewise.
2111 * dominance.c : Likewise.
2112 * domwalk.c : Likewise.
2113 * double-int.c : Likewise.
2115 * dumpfile.c : Likewise.
2116 * dwarf2asm.c : Likewise.
2117 * dwarf2cfi.c : Likewise.
2118 * dwarf2out.c : Likewise.
2119 * emit-rtl.c : Likewise.
2120 * et-forest.c : Likewise.
2121 * except.c : Likewise.
2122 * except.h : Likewise.
2123 * explow.c : Likewise.
2124 * expmed.c : Likewise.
2125 * expr.c : Likewise.
2126 * final.c : Likewise.
2127 * fixed-value.c : Likewise.
2128 * fold-const.c : Likewise.
2129 * function.c : Likewise.
2130 * fwprop.c : Likewise.
2131 * gcc-plugin.h : Likewise.
2133 * gcse-common.c : Likewise.
2134 * gcse.c : Likewise.
2135 * genattrtab.c : Likewise.
2136 * genautomata.c : Likewise.
2137 * genconditions.c : Likewise.
2138 * genemit.c : Likewise.
2139 * generic-match-head.c : Likewise.
2140 * genextract.c : Likewise.
2141 * gengtype-state.c : Likewise.
2142 * gengtype.c : Likewise.
2143 * genhooks.c : Likewise.
2144 * genmatch.c : Likewise.
2145 * genmodes.c : Likewise.
2146 * genrecog.c : Likewise.
2147 * gensupport.c : Likewise.
2148 * ggc-common.c : Likewise.
2149 * ggc-internal.h : Likewise.
2150 * ggc-none.c : Likewise.
2151 * ggc-page.c : Likewise.
2152 * gimple-builder.c : Likewise.
2153 * gimple-expr.c : Likewise.
2154 * gimple-fold.c : Likewise.
2155 * gimple-iterator.c : Likewise.
2156 * gimple-low.c : Likewise.
2157 * gimple-match-head.c : Likewise.
2158 * gimple-pretty-print.c : Likewise.
2159 * gimple-ssa-isolate-paths.c : Likewise.
2160 * gimple-ssa-strength-reduction.c : Likewise.
2161 * gimple-ssa.h : Likewise.
2162 * gimple-streamer-in.c : Likewise.
2163 * gimple-streamer-out.c : Likewise.
2164 * gimple-streamer.h : Likewise.
2165 * gimple-walk.c : Likewise.
2166 * gimple.c : Likewise.
2167 * gimplify-me.c : Likewise.
2168 * gimplify.c : Likewise.
2169 * godump.c : Likewise.
2170 * graph.c : Likewise.
2171 * graphds.c : Likewise.
2172 * graphite-blocking.c : Likewise.
2173 * graphite-dependences.c : Likewise.
2174 * graphite-interchange.c : Likewise.
2175 * graphite-isl-ast-to-gimple.c : Likewise.
2176 * graphite-optimize-isl.c : Likewise.
2177 * graphite-poly.c : Likewise.
2178 * graphite-scop-detection.c : Likewise.
2179 * graphite-sese-to-poly.c : Likewise.
2180 * graphite.c : Likewise.
2181 * haifa-sched.c : Likewise.
2182 * hard-reg-set.h : Likewise.
2183 * hw-doloop.c : Likewise.
2184 * ifcvt.c : Likewise.
2185 * inchash.c : Likewise.
2186 * incpath.c : Likewise.
2187 * init-regs.c : Likewise.
2188 * input.c : Likewise.
2189 * internal-fn.c : Likewise.
2190 * ipa-chkp.c : Likewise.
2191 * ipa-comdats.c : Likewise.
2192 * ipa-cp.c : Likewise.
2193 * ipa-devirt.c : Likewise.
2194 * ipa-icf-gimple.c : Likewise.
2195 * ipa-icf.c : Likewise.
2196 * ipa-inline-analysis.c : Likewise.
2197 * ipa-inline-transform.c : Likewise.
2198 * ipa-inline.c : Likewise.
2199 * ipa-polymorphic-call.c : Likewise.
2200 * ipa-profile.c : Likewise.
2201 * ipa-prop.c : Likewise.
2202 * ipa-pure-const.c : Likewise.
2203 * ipa-ref.c : Likewise.
2204 * ipa-reference.c : Likewise.
2205 * ipa-split.c : Likewise.
2206 * ipa-utils.c : Likewise.
2207 * ipa-visibility.c : Likewise.
2209 * ira-build.c : Likewise.
2210 * ira-color.c : Likewise.
2211 * ira-conflicts.c : Likewise.
2212 * ira-costs.c : Likewise.
2213 * ira-emit.c : Likewise.
2214 * ira-lives.c : Likewise.
2216 * jump.c : Likewise.
2217 * langhooks.c : Likewise.
2219 * libfuncs.h : Likewise.
2220 * lists.c : Likewise.
2221 * loop-doloop.c : Likewise.
2222 * loop-init.c : Likewise.
2223 * loop-invariant.c : Likewise.
2224 * loop-iv.c : Likewise.
2225 * loop-unroll.c : Likewise.
2226 * lower-subreg.c : Likewise.
2227 * lra-assigns.c : Likewise.
2228 * lra-coalesce.c : Likewise.
2229 * lra-constraints.c : Likewise.
2230 * lra-eliminations.c : Likewise.
2231 * lra-lives.c : Likewise.
2232 * lra-remat.c : Likewise.
2233 * lra-spills.c : Likewise.
2235 * lto-cgraph.c : Likewise.
2236 * lto-compress.c : Likewise.
2237 * lto-opts.c : Likewise.
2238 * lto-section-in.c : Likewise.
2239 * lto-section-out.c : Likewise.
2240 * lto-streamer-in.c : Likewise.
2241 * lto-streamer-out.c : Likewise.
2242 * lto-streamer.c : Likewise.
2243 * lto-streamer.h : Likewise.
2245 * mode-switching.c : Likewise.
2246 * modulo-sched.c : Likewise.
2247 * omega.c : Likewise.
2248 * omp-low.c : Likewise.
2249 * optabs.c : Likewise.
2250 * opts-global.c : Likewise.
2251 * opts.h : Likewise.
2252 * passes.c : Likewise.
2253 * plugin.c : Likewise.
2254 * postreload-gcse.c : Likewise.
2255 * postreload.c : Likewise.
2256 * predict.c : Likewise.
2257 * print-rtl.c : Likewise.
2258 * print-tree.c : Likewise.
2259 * profile.c : Likewise.
2260 * read-md.c : Likewise.
2261 * read-md.h : Likewise.
2262 * read-rtl.c : Likewise.
2263 * real.c : Likewise.
2264 * realmpfr.c : Likewise.
2265 * recog.c : Likewise.
2267 * reg-stack.c : Likewise.
2268 * regcprop.c : Likewise.
2269 * reginfo.c : Likewise.
2270 * regrename.c : Likewise.
2271 * regstat.c : Likewise.
2272 * reload.c : Likewise.
2273 * reload1.c : Likewise.
2274 * reorg.c : Likewise.
2275 * resource.c : Likewise.
2276 * rtl-chkp.c : Likewise.
2279 * rtlanal.c : Likewise.
2280 * rtlhash.c : Likewise.
2281 * rtlhash.h : Likewise.
2282 * rtlhooks.c : Likewise.
2283 * sanopt.c : Likewise.
2284 * sched-deps.c : Likewise.
2285 * sched-ebb.c : Likewise.
2286 * sched-rgn.c : Likewise.
2287 * sched-vis.c : Likewise.
2288 * sdbout.c : Likewise.
2289 * sel-sched-dump.c : Likewise.
2290 * sel-sched-ir.c : Likewise.
2291 * sel-sched-ir.h : Likewise.
2292 * sel-sched.c : Likewise.
2293 * sese.c : Likewise.
2294 * shrink-wrap.c : Likewise.
2295 * shrink-wrap.h : Likewise.
2296 * simplify-rtx.c : Likewise.
2297 * stack-ptr-mod.c : Likewise.
2298 * statistics.c : Likewise.
2299 * stmt.c : Likewise.
2300 * stor-layout.c : Likewise.
2301 * store-motion.c : Likewise.
2302 * stringpool.c : Likewise.
2303 * symtab.c : Likewise.
2304 * target-globals.c : Likewise.
2305 * targhooks.c : Likewise.
2306 * tlink.c : Likewise.
2307 * toplev.c : Likewise.
2308 * tracer.c : Likewise.
2309 * trans-mem.c : Likewise.
2310 * tree-affine.c : Likewise.
2311 * tree-affine.h : Likewise.
2312 * tree-browser.c : Likewise.
2313 * tree-call-cdce.c : Likewise.
2314 * tree-cfg.c : Likewise.
2315 * tree-cfgcleanup.c : Likewise.
2316 * tree-chkp-opt.c : Likewise.
2317 * tree-chkp.c : Likewise.
2318 * tree-chrec.c : Likewise.
2319 * tree-complex.c : Likewise.
2320 * tree-data-ref.c : Likewise.
2321 * tree-dfa.c : Likewise.
2322 * tree-diagnostic.c : Likewise.
2323 * tree-dump.c : Likewise.
2324 * tree-eh.c : Likewise.
2325 * tree-eh.h : Likewise.
2326 * tree-emutls.c : Likewise.
2327 * tree-hasher.h : Likewise.
2328 * tree-if-conv.c : Likewise.
2329 * tree-inline.c : Likewise.
2330 * tree-inline.h : Likewise.
2331 * tree-into-ssa.c : Likewise.
2332 * tree-iterator.c : Likewise.
2333 * tree-loop-distribution.c : Likewise.
2334 * tree-nested.c : Likewise.
2335 * tree-nrv.c : Likewise.
2336 * tree-object-size.c : Likewise.
2337 * tree-outof-ssa.c : Likewise.
2338 * tree-parloops.c : Likewise.
2339 * tree-phinodes.c : Likewise.
2340 * tree-predcom.c : Likewise.
2341 * tree-pretty-print.c : Likewise.
2342 * tree-profile.c : Likewise.
2343 * tree-scalar-evolution.c : Likewise.
2344 * tree-sra.c : Likewise.
2345 * tree-ssa-address.c : Likewise.
2346 * tree-ssa-alias.c : Likewise.
2347 * tree-ssa-ccp.c : Likewise.
2348 * tree-ssa-coalesce.c : Likewise.
2349 * tree-ssa-copy.c : Likewise.
2350 * tree-ssa-copyrename.c : Likewise.
2351 * tree-ssa-dce.c : Likewise.
2352 * tree-ssa-dom.c : Likewise.
2353 * tree-ssa-dse.c : Likewise.
2354 * tree-ssa-forwprop.c : Likewise.
2355 * tree-ssa-ifcombine.c : Likewise.
2356 * tree-ssa-live.c : Likewise.
2357 * tree-ssa-loop-ch.c : Likewise.
2358 * tree-ssa-loop-im.c : Likewise.
2359 * tree-ssa-loop-ivcanon.c : Likewise.
2360 * tree-ssa-loop-ivopts.c : Likewise.
2361 * tree-ssa-loop-manip.c : Likewise.
2362 * tree-ssa-loop-niter.c : Likewise.
2363 * tree-ssa-loop-prefetch.c : Likewise.
2364 * tree-ssa-loop-unswitch.c : Likewise.
2365 * tree-ssa-loop.c : Likewise.
2366 * tree-ssa-math-opts.c : Likewise.
2367 * tree-ssa-operands.c : Likewise.
2368 * tree-ssa-phiopt.c : Likewise.
2369 * tree-ssa-phiprop.c : Likewise.
2370 * tree-ssa-pre.c : Likewise.
2371 * tree-ssa-propagate.c : Likewise.
2372 * tree-ssa-reassoc.c : Likewise.
2373 * tree-ssa-sccvn.c : Likewise.
2374 * tree-ssa-scopedtables.c : Likewise.
2375 * tree-ssa-sink.c : Likewise.
2376 * tree-ssa-strlen.c : Likewise.
2377 * tree-ssa-structalias.c : Likewise.
2378 * tree-ssa-tail-merge.c : Likewise.
2379 * tree-ssa-ter.c : Likewise.
2380 * tree-ssa-threadedge.c : Likewise.
2381 * tree-ssa-threadupdate.c : Likewise.
2382 * tree-ssa-uncprop.c : Likewise.
2383 * tree-ssa-uninit.c : Likewise.
2384 * tree-ssa.c : Likewise.
2385 * tree-ssanames.c : Likewise.
2386 * tree-stdarg.c : Likewise.
2387 * tree-streamer-in.c : Likewise.
2388 * tree-streamer-out.c : Likewise.
2389 * tree-streamer.c : Likewise.
2390 * tree-streamer.h : Likewise.
2391 * tree-switch-conversion.c : Likewise.
2392 * tree-tailcall.c : Likewise.
2393 * tree-vect-data-refs.c : Likewise.
2394 * tree-vect-generic.c : Likewise.
2395 * tree-vect-loop-manip.c : Likewise.
2396 * tree-vect-loop.c : Likewise.
2397 * tree-vect-patterns.c : Likewise.
2398 * tree-vect-slp.c : Likewise.
2399 * tree-vect-stmts.c : Likewise.
2400 * tree-vectorizer.c : Likewise.
2401 * tree-vectorizer.h : Likewise.
2402 * tree-vrp.c : Likewise.
2403 * tree.c : Likewise.
2404 * tsan.c : Likewise.
2405 * ubsan.c : Likewise.
2406 * valtrack.c : Likewise.
2407 * valtrack.h : Likewise.
2408 * value-prof.c : Likewise.
2409 * var-tracking.c : Likewise.
2410 * varasm.c : Likewise.
2411 * varpool.c : Likewise.
2413 * vmsdbgout.c : Likewise.
2414 * vtable-verify.c : Likewise.
2415 * vtable-verify.h : Likewise.
2417 * wide-int.cc : Likewise.
2418 * xcoffout.c : Likewise.
2419 * config/aarch64/aarch64-builtins.c : Likewise.
2420 * config/aarch64/aarch64.c : Likewise.
2421 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
2422 * config/alpha/alpha.c : Likewise.
2423 * config/arc/arc.c : Likewise.
2424 * config/arm/aarch-common.c : Likewise.
2425 * config/arm/arm-builtins.c : Likewise.
2426 * config/arm/arm-c.c : Likewise.
2427 * config/arm/arm.c : Likewise.
2428 * config/avr/avr-c.c : Likewise.
2429 * config/avr/avr-log.c : Likewise.
2430 * config/avr/avr.c : Likewise.
2431 * config/bfin/bfin.c : Likewise.
2432 * config/c6x/c6x.c : Likewise.
2433 * config/cr16/cr16.c : Likewise.
2434 * config/cris/cris.c : Likewise.
2435 * config/darwin-c.c : Likewise.
2436 * config/darwin.c : Likewise.
2437 * config/default-c.c : Likewise.
2438 * config/epiphany/epiphany.c : Likewise.
2439 * config/epiphany/mode-switch-use.c : Likewise.
2440 * config/epiphany/resolve-sw-modes.c : Likewise.
2441 * config/fr30/fr30.c : Likewise.
2442 * config/frv/frv.c : Likewise.
2443 * config/ft32/ft32.c : Likewise.
2444 * config/glibc-c.c : Likewise.
2445 * config/h8300/h8300.c : Likewise.
2446 * config/i386/i386-c.c : Likewise.
2447 * config/i386/i386.c : Likewise.
2448 * config/i386/msformat-c.c : Likewise.
2449 * config/i386/winnt-cxx.c : Likewise.
2450 * config/i386/winnt-stubs.c : Likewise.
2451 * config/i386/winnt.c : Likewise.
2452 * config/ia64/ia64-c.c : Likewise.
2453 * config/ia64/ia64.c : Likewise.
2454 * config/iq2000/iq2000.c : Likewise.
2455 * config/lm32/lm32.c : Likewise.
2456 * config/m32c/m32c-pragma.c : Likewise.
2457 * config/m32c/m32c.c : Likewise.
2458 * config/m32r/m32r.c : Likewise.
2459 * config/m68k/m68k.c : Likewise.
2460 * config/mcore/mcore.c : Likewise.
2461 * config/mep/mep-pragma.c : Likewise.
2462 * config/mep/mep.c : Likewise.
2463 * config/microblaze/microblaze-c.c : Likewise.
2464 * config/microblaze/microblaze.c : Likewise.
2465 * config/mips/mips.c : Likewise.
2466 * config/mmix/mmix.c : Likewise.
2467 * config/mn10300/mn10300.c : Likewise.
2468 * config/moxie/moxie.c : Likewise.
2469 * config/msp430/msp430-c.c : Likewise.
2470 * config/msp430/msp430.c : Likewise.
2471 * config/nds32/nds32-cost.c : Likewise.
2472 * config/nds32/nds32-fp-as-gp.c : Likewise.
2473 * config/nds32/nds32-intrinsic.c : Likewise.
2474 * config/nds32/nds32-isr.c : Likewise.
2475 * config/nds32/nds32-md-auxiliary.c : Likewise.
2476 * config/nds32/nds32-memory-manipulation.c : Likewise.
2477 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
2478 * config/nds32/nds32-predicates.c : Likewise.
2479 * config/nds32/nds32.c : Likewise.
2480 * config/nios2/nios2.c : Likewise.
2481 * config/nvptx/nvptx.c : Likewise.
2482 * config/pa/pa.c : Likewise.
2483 * config/pdp11/pdp11.c : Likewise.
2484 * config/rl78/rl78-c.c : Likewise.
2485 * config/rl78/rl78.c : Likewise.
2486 * config/rs6000/rs6000-c.c : Likewise.
2487 * config/rs6000/rs6000.c : Likewise.
2488 * config/rx/rx.c : Likewise.
2489 * config/s390/s390-c.c : Likewise.
2490 * config/s390/s390.c : Likewise.
2491 * config/sh/sh-c.c : Likewise.
2492 * config/sh/sh-mem.cc : Likewise.
2493 * config/sh/sh.c : Likewise.
2494 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
2495 * config/sh/sh_treg_combine.cc : Likewise.
2496 * config/sol2-c.c : Likewise.
2497 * config/sol2-cxx.c : Likewise.
2498 * config/sol2-stubs.c : Likewise.
2499 * config/sol2.c : Likewise.
2500 * config/sparc/sparc-c.c : Likewise.
2501 * config/sparc/sparc.c : Likewise.
2502 * config/spu/spu-c.c : Likewise.
2503 * config/spu/spu.c : Likewise.
2504 * config/stormy16/stormy16.c : Likewise.
2505 * config/tilegx/mul-tables.c : Likewise.
2506 * config/tilegx/tilegx-c.c : Likewise.
2507 * config/tilegx/tilegx.c : Likewise.
2508 * config/tilepro/mul-tables.c : Likewise.
2509 * config/tilepro/tilepro-c.c : Likewise.
2510 * config/tilepro/tilepro.c : Likewise.
2511 * config/v850/v850-c.c : Likewise.
2512 * config/v850/v850.c : Likewise.
2513 * config/vax/vax.c : Likewise.
2514 * config/visium/visium.c : Likewise.
2515 * config/vms/vms-c.c : Likewise.
2516 * config/vms/vms.c : Likewise.
2517 * config/vxworks.c : Likewise.
2518 * config/winnt-c.c : Likewise.
2519 * config/xtensa/xtensa.c : Likewise.
2521 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
2524 * ipa-utils.h (warn_types_mismatch): Update prototype.
2525 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
2527 (type_mismatch_p): New function.
2528 (warn_types_mismatch): Reorg to work better on non-C++ types.
2529 (odr_types_equivalent_p): Add loc1/loc2 parameters.
2530 (add_type_duplicate): Update.
2532 2015-06-08 Tom de Vries <tom@codesourcery.com>
2534 PR rtl-optimization/66444
2535 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
2538 2015-06-08 Richard Biener <rguenther@suse.de>
2540 PR tree-optimization/66422
2541 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
2542 block after inserted gcc_unreachable.
2544 2015-06-08 Nick Clifton <nickc@redhat.com>
2546 * config/rx/rx.c (rx_function_value): Do not promote vector types.
2547 (rx_promote_function_mode): Likewise.
2548 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
2550 2015-06-08 Jakub Jelinek <jakub@redhat.com>
2552 * genattrtab.c (insn_alternatives): Change type from int *
2554 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
2555 (get_attr_value): Change type of num_alt to uint64_t.
2556 (compute_alternative_mask): Change return type from
2557 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
2558 (make_alternative_compare, mk_attr_alt): Change argument type
2559 from int to uint64_t.
2560 (simplify_test_exp): Change type of i from int to uint64_t.
2561 Shift ((uint64_t) 1) instead of 1 up.
2562 (main): Adjust oballocvec first argument from int to uint64_t.
2563 Shift ((uint64_t) 1) instead of 1 up.
2565 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2568 * gdbhooks.py: Import sys.
2569 (intptr): New function. Replace int(...) by intptr(...).
2571 2015-06-08 Richard Biener <rguenther@suse.de>
2573 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
2574 adjustment for gaps at the end of a SLP load group properly.
2575 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
2576 all permutations we can generate.
2577 (vect_transform_slp_perm_load): Use the correct group-size.
2579 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
2581 * genmatch.c (expr::gen_transform): For conditions, guess the type
2582 from the second operand.
2584 2015-06-08 Tom de Vries <tom@codesourcery.com>
2586 PR tree-optimization/66442
2587 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
2588 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
2589 if the loop latch is not a singleton. Use
2590 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
2592 2015-06-08 Marek Polacek <polacek@redhat.com>
2595 * toplev.c (check_global_declaration): Don't warn about artificial
2598 2015-06-08 Tom de Vries <tom@codesourcery.com>
2600 PR tree-optimization/66436
2601 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
2603 * gimplify.c: Add tree-dump.h include.
2604 (gimplify_function_tree): Dump function to gimple dump file.
2605 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
2608 2015-06-08 Tom de Vries <tom@codesourcery.com>
2610 PR tree-optimization/66435
2611 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
2614 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
2616 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
2617 of ptr_type_node to not be ptr_to_node.
2618 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
2619 TREE_TYPE of pointers.
2620 * gimple-expr.c (useless_type_conversion): Reorder the check for
2621 function pointers and TYPE_CANONICAL.
2623 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
2626 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
2627 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
2628 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
2630 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
2631 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
2632 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
2633 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
2634 and non iso if unix2003.
2636 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
2638 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
2640 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
2642 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
2643 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
2644 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
2645 except.c, final.c, function.c, gcse-common.c, genemit.c,
2646 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
2647 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
2648 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
2649 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
2652 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
2654 * combine.c (combine_split_insns): Remove cast.
2655 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
2656 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
2657 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
2658 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
2659 * genemit.c (gen_split): Change return type of generated functions to
2661 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
2662 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
2663 gen_peephole2_* functions.
2664 (print_subroutine, main): Likewise.
2665 * recog.c (peephole2_optimize): Remove cast.
2666 (peep2_next_insn): Promote return type to rtx_insn.
2667 * recog.h (peep2_next_insn): Fix prototype.
2668 * rtl.h (try_split, split_insns): Likewise.
2670 2015-06-06 DJ Delorie <dj@redhat.com>
2672 * config/msp430/msp430.c (msp430_asm_integer): Support addition
2673 and subtraction too.
2675 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
2678 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
2679 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
2680 instead of Snd. Disparage Sid/z alternative with '^'.
2682 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
2684 * dwarf2out.c: Remove deferred_locations*.
2685 (dwarf2_debug_hooks): Add early_finish hook.
2686 Remove global_decl hook.
2687 Add early_global_decl and late_global_decl hook.
2688 New global early_dwarf.
2689 New structure set_early_dwarf.
2690 (output_die): Indicate whether a DIE was generated early
2691 when generating assembly with -dA.
2692 (struct limbo_die_struct): Document created_for field.
2693 Remove file_table_last_lookup.
2694 (remove_AT): Return TRUE if successful.
2695 (remove_child_TAG): Clear die_parent.
2696 (reparent_child): New function abstracted from...
2697 (splice_child_die): ...here.
2698 (new_die): ICE if a DIE ends up in limbo too late.
2700 (defer_location): Remove.
2701 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
2702 (fill_variable_array_bounds): New.
2703 (decl_start_label): Call fill_variable_array_bounds.
2704 (gen_formal_parameter_die): Rewrite to reuse previously generated
2706 (gen_subprogram_die): Same.
2707 (gen_variable_die): Same.
2708 (gen_const_die): Same.
2709 (gen_label_die): Same.
2710 (gen_lexical_block_die): Same.
2711 (decl_will_get_specification_p): New.
2712 (local_function_static): New.
2713 (gen_struct_or_union_type_die): Fill in variable-length fields.
2714 (gen_typedef_die): Fill in variable-length typedefs.
2715 (gen_tagged_type_die): Gracefully return on error_mark_node.
2717 (gen_type_die_with_usage): Handle variable-length types.
2718 Remove duplicate code for ARRAY_TYPE case.
2719 (process_scope_var): Only process imported modules during early
2721 (dwarf2out_early_global_decl): New.
2722 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
2723 (dwarf2out_type_decl): Set early_dwarf while calling
2725 (dwarf2out_decl): Verify that we did not recreate a previously
2727 Do not return on DECL_EXTERNALs in VAR_DECLs.
2728 Abstract some code to local_function_static.
2729 (lookup_filename): Remove use of file_table_last_lookup.
2730 Gracefully exit on missing file_name.
2731 (dwarf2out_finish): Verify limbo list.
2732 Remove deferred_locations_list use.
2733 Move deferred_asm_name and limbo flushing to...
2734 (dwarf2out_early_finish): ...here. New.
2735 (dwarf2out_c_finalize): Remove set of deferred_location_list,
2736 deferred_asm_name, and file_table_last_lookup.
2737 * cgraph.h (referred_to_p): Add default argument.
2738 * cgraphunit.c (referred_to_p): Add and handle include_self
2740 (analyze_functions): Add first_time argument.
2741 Call check_global_declaration for all symbols.
2742 Call late_global_decl for nodes for moribund nodes.
2743 (finalize_compilation_unit): Add new argument to
2745 Call early_global_decl for functions.
2746 Call early_finish debug hook.
2747 * dbxout.c (dbxout_early_global_decl): New.
2748 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
2749 (dbx_debug_hooks): Add new hooks.
2750 (xcoff_debug_hooks): Same.
2751 * debug.c (do_nothing_debug_hooks): Add early_finish field.
2752 Add early and late debug hooks.
2753 Remove global_decl hook.
2754 * debug.h (struct gcc_debug_hooks): Add early_finish,
2755 early_global_decl, and late_global_decl fields.
2756 Remove global_decl field.
2757 Document gcc_debug_hooks.
2758 * gengtype.c (output_typename): Remove.
2759 * godump.c (go_early_global_decl): New.
2760 (go_late_global_decl): New.
2761 (go_global_decl): Remove.
2762 (dump_go_spec_init): Remove global_decl. Add
2763 {early,late}_global_decl.
2764 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
2765 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
2766 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
2767 (write_global_declarations): Remove.
2768 (global_decl_processing): New.
2769 * langhooks.h (struct lang_hooks_for_decls): Remove
2770 final_write_globals field.
2771 Add post_compilation_parsing_cleanups field.
2772 * passes.c (rest_of_decl_compilation): Call early_global_decl.
2773 * sdbout.c: Add early and late_global_decl hooks. Remove
2774 sdbout_global_decl hook.
2775 Add early_finish field for sdb_debug_hooks.
2776 (sdbout_global_decl): Remove.
2777 (sdbout_early_global_decl): New.
2778 (sdbout_late_global_decl): New.
2779 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
2780 * toplev.c (check_global_declaration): Rename from
2781 check_global_declaration_1.
2782 Adapt to use symtab infrastructure.
2783 (check_global_declarations): Remove.
2784 (emit_debug_global_declarations): Remove.
2785 (compile_file): Remove call to final_write_globals langhook.
2786 Run the actual compilation process.
2787 Perform any post compilation parser cleanups.
2788 Generate late debug info.
2789 * toplev.h (check_global_declaration): New.
2790 (check_global_declaration_1): Remove.
2791 (check_global_declarations): Remove.
2792 (write_global_declarations): Remove.
2793 (emit_debug_global_declarations): Remove.
2794 (global_decl_processing): New.
2795 * tree-core.h (struct tree_block): Add DIE field.
2796 * tree.h (BLOCK_DIE): New.
2797 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
2799 (vmsdbgout_early_global_decl): New.
2800 (vmsdbgout_late_global_decl): New.
2801 Add early_finish debug hook field to vmsdbg_debug_hooks.
2802 Remove vmsdbgout_decl to vmsdbgout_function_decl.
2803 Add early and late_global_decl debug hooks.
2805 2015-06-05 Julian Brown <julian@codesourcery.com>
2806 Sandra Loosemore <sandra@codesourcery.com>
2808 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
2809 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
2810 to print-sysroot-suffix.sh script.
2812 2015-06-05 Tom de Vries <tom@codesourcery.com>
2814 merge from gomp4 branch:
2815 2015-05-28 Tom de Vries <tom@codesourcery.com>
2817 PR tree-optimization/65443
2818 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
2819 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
2820 (try_transform_to_exit_first_loop_alt): New function.
2821 (transform_to_exit_first_loop): Use
2822 try_transform_to_exit_first_loop_alt.
2824 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
2826 * builtins.c (expand_builtin_atomic_compare_exchange): Call
2827 emit_cmp_and_jump_insns with the mode of target.
2829 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2831 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
2833 2015-06-04 DJ Delorie <dj@redhat.com>
2835 * config/msp430/msp430.md (movsi_s): New. Special case for
2836 storing a 20-bit symbol into a 32-bit register.
2837 * config/msp430/msp430.c (msp430_subreg): Add support for it.
2838 * config/msp430/predicates.md (msp430_symbol_operand): New.
2840 2015-06-04 Sriraman Tallam <tmsriram@google.com>
2842 * c-family/c-common.c (noplt): New attribute.
2843 (handle_noplt_attribute): New handler.
2844 * calls.c (prepare_call_address): Check for noplt
2846 * config/i386/i386.c (ix86_expand_call): Check
2847 for noplt attribute.
2848 (ix86_nopic_noplt_attribute_p): New function.
2849 (ix86_output_call_insn): Output indirect call for non-pic
2851 * doc/extend.texi (noplt): Document new attribute.
2852 * doc/invoke.texi: Document new attribute.
2854 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
2856 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
2857 real.h, and fixed-value.h when included in host source files.
2858 * double-int.h: Remove redundant #includes listed above.
2859 * fixed-value.h: Likewise.
2861 * wide-int.h: Likewise.
2862 * inchash.h: Likewise.
2863 * rtl.h: Add some include files When included from a generator file.
2864 * target.h: Remove wide-int.h and insn-modes.h from the include list.
2865 * internal-fn.h: Don't include coretypes.h.
2866 * alias.c: Adjust includes for restructured coretypes.h.
2868 * attribs.c: Likewise.
2869 * auto-inc-dec.c: Likewise.
2870 * auto-profile.c: Likewise.
2871 * bb-reorder.c: Likewise.
2872 * bt-load.c: Likewise.
2873 * builtins.c: Likewise.
2874 * caller-save.c: Likewise.
2875 * calls.c: Likewise.
2878 * cfganal.c: Likewise.
2879 * cfgbuild.c: Likewise.
2880 * cfgcleanup.c: Likewise.
2881 * cfgexpand.c: Likewise.
2882 * cfghooks.c: Likewise.
2883 * cfgloop.c: Likewise.
2884 * cfgloop.h: Likewise.
2885 * cfgloopanal.c: Likewise.
2886 * cfgloopmanip.c: Likewise.
2887 * cfgrtl.c: Likewise.
2888 * cgraph.c: Likewise.
2889 * cgraphbuild.c: Likewise.
2890 * cgraphclones.c: Likewise.
2891 * cgraphunit.c: Likewise.
2892 * cilk-common.c: Likewise.
2893 * combine-stack-adj.c: Likewise.
2894 * combine.c: Likewise.
2895 * compare-elim.c: Likewise.
2896 * convert.c: Likewise.
2897 * coverage.c: Likewise.
2898 * cppbuiltin.c: Likewise.
2899 * cprop.c: Likewise.
2901 * cselib.c: Likewise.
2902 * data-streamer-in.c: Likewise.
2903 * data-streamer-out.c: Likewise.
2904 * data-streamer.c: Likewise.
2905 * dbxout.c: Likewise.
2908 * debug.c: Likewise.
2909 * df-core.c: Likewise.
2910 * df-problems.c: Likewise.
2911 * df-scan.c: Likewise.
2914 * dojump.c: Likewise.
2915 * dominance.c: Likewise.
2916 * domwalk.c: Likewise.
2917 * double-int.c: Likewise.
2919 * dumpfile.c: Likewise.
2920 * dwarf2asm.c: Likewise.
2921 * dwarf2cfi.c: Likewise.
2922 * dwarf2out.c: Likewise.
2923 * dwarf2out.h: Likewise.
2924 * emit-rtl.c: Likewise.
2925 * et-forest.c: Likewise.
2926 * except.c: Likewise.
2927 * explow.c: Likewise.
2928 * expmed.c: Likewise.
2930 * final.c: Likewise.
2931 * fixed-value.c: Likewise.
2932 * fold-const.c: Likewise.
2933 * function.c: Likewise.
2934 * fwprop.c: Likewise.
2935 * gcc-plugin.h: Likewise.
2937 * generic-match-head.c: Likewise.
2938 * ggc-page.c: Likewise.
2939 * gimple-builder.c: Likewise.
2940 * gimple-expr.c: Likewise.
2941 * gimple-fold.c: Likewise.
2942 * gimple-iterator.c: Likewise.
2943 * gimple-low.c: Likewise.
2944 * gimple-match-head.c: Likewise.
2945 * gimple-pretty-print.c: Likewise.
2946 * gimple-ssa-isolate-paths.c: Likewise.
2947 * gimple-ssa-strength-reduction.c: Likewise.
2948 * gimple-streamer-in.c: Likewise.
2949 * gimple-streamer-out.c: Likewise.
2950 * gimple-streamer.h: Likewise.
2951 * gimple-walk.c: Likewise.
2952 * gimple.c: Likewise.
2953 * gimplify-me.c: Likewise.
2954 * gimplify.c: Likewise.
2955 * godump.c: Likewise.
2956 * graph.c: Likewise.
2957 * graphite-blocking.c: Likewise.
2958 * graphite-dependences.c: Likewise.
2959 * graphite-interchange.c: Likewise.
2960 * graphite-isl-ast-to-gimple.c: Likewise.
2961 * graphite-optimize-isl.c: Likewise.
2962 * graphite-poly.c: Likewise.
2963 * graphite-scop-detection.c: Likewise.
2964 * graphite-sese-to-poly.c: Likewise.
2965 * graphite.c: Likewise.
2966 * haifa-sched.c: Likewise.
2967 * hooks.h: Likewise.
2968 * hw-doloop.c: Likewise.
2969 * ifcvt.c: Likewise.
2970 * incpath.c: Likewise.
2971 * init-regs.c: Likewise.
2972 * internal-fn.c: Likewise.
2973 * ipa-chkp.c: Likewise.
2974 * ipa-comdats.c: Likewise.
2975 * ipa-cp.c: Likewise.
2976 * ipa-devirt.c: Likewise.
2977 * ipa-icf-gimple.c: Likewise.
2978 * ipa-icf.c: Likewise.
2979 * ipa-inline-analysis.c: Likewise.
2980 * ipa-inline-transform.c: Likewise.
2981 * ipa-inline.c: Likewise.
2982 * ipa-polymorphic-call.c: Likewise.
2983 * ipa-profile.c: Likewise.
2984 * ipa-prop.c: Likewise.
2985 * ipa-pure-const.c: Likewise.
2986 * ipa-ref.c: Likewise.
2987 * ipa-reference.c: Likewise.
2988 * ipa-split.c: Likewise.
2989 * ipa-utils.c: Likewise.
2990 * ipa-visibility.c: Likewise.
2992 * ira-build.c: Likewise.
2993 * ira-color.c: Likewise.
2994 * ira-conflicts.c: Likewise.
2995 * ira-costs.c: Likewise.
2996 * ira-emit.c: Likewise.
2997 * ira-lives.c: Likewise.
3000 * langhooks.c: Likewise.
3002 * loop-doloop.c: Likewise.
3003 * loop-init.c: Likewise.
3004 * loop-invariant.c: Likewise.
3005 * loop-iv.c: Likewise.
3006 * loop-unroll.c: Likewise.
3007 * lower-subreg.c: Likewise.
3008 * lra-assigns.c: Likewise.
3009 * lra-coalesce.c: Likewise.
3010 * lra-constraints.c: Likewise.
3011 * lra-eliminations.c: Likewise.
3012 * lra-lives.c: Likewise.
3013 * lra-remat.c: Likewise.
3014 * lra-spills.c: Likewise.
3016 * lto-cgraph.c: Likewise.
3017 * lto-compress.c: Likewise.
3018 * lto-opts.c: Likewise.
3019 * lto-section-in.c: Likewise.
3020 * lto-section-out.c: Likewise.
3021 * lto-streamer-in.c: Likewise.
3022 * lto-streamer-out.c: Likewise.
3023 * lto-streamer.c: Likewise.
3025 * mode-switching.c: Likewise.
3026 * modulo-sched.c: Likewise.
3027 * omega.c: Likewise.
3028 * omp-low.c: Likewise.
3029 * optabs.c: Likewise.
3030 * opts-global.c: Likewise.
3031 * passes.c: Likewise.
3032 * plugin.c: Likewise.
3033 * postreload-gcse.c: Likewise.
3034 * postreload.c: Likewise.
3035 * predict.c: Likewise.
3036 * print-rtl.c: Likewise.
3037 * print-tree.c: Likewise.
3038 * profile.c: Likewise.
3040 * realmpfr.c: Likewise.
3041 * realmpfr.h: Likewise.
3042 * recog.c: Likewise.
3044 * reg-stack.c: Likewise.
3045 * regcprop.c: Likewise.
3046 * reginfo.c: Likewise.
3047 * regrename.c: Likewise.
3049 * regstat.c: Likewise.
3050 * reload.c: Likewise.
3051 * reload1.c: Likewise.
3052 * reorg.c: Likewise.
3053 * resource.c: Likewise.
3054 * rtl-chkp.c: Likewise.
3055 * rtlanal.c: Likewise.
3056 * rtlhooks.c: Likewise.
3057 * sanopt.c: Likewise.
3058 * sched-deps.c: Likewise.
3059 * sched-ebb.c: Likewise.
3060 * sched-rgn.c: Likewise.
3061 * sched-vis.c: Likewise.
3062 * sdbout.c: Likewise.
3063 * sel-sched-dump.c: Likewise.
3064 * sel-sched-ir.c: Likewise.
3065 * sel-sched.c: Likewise.
3067 * shrink-wrap.c: Likewise.
3068 * shrink-wrap.h: Likewise.
3069 * simplify-rtx.c: Likewise.
3070 * stack-ptr-mod.c: Likewise.
3071 * statistics.c: Likewise.
3073 * stor-layout.c: Likewise.
3074 * store-motion.c: Likewise.
3075 * stringpool.c: Likewise.
3076 * symtab.c: Likewise.
3077 * target-globals.c: Likewise.
3078 * targhooks.c: Likewise.
3079 * toplev.c: Likewise.
3080 * tracer.c: Likewise.
3081 * trans-mem.c: Likewise.
3082 * tree-affine.c: Likewise.
3083 * tree-affine.h: Likewise.
3084 * tree-browser.c: Likewise.
3085 * tree-call-cdce.c: Likewise.
3086 * tree-cfg.c: Likewise.
3087 * tree-cfgcleanup.c: Likewise.
3088 * tree-chkp-opt.c: Likewise.
3089 * tree-chkp.c: Likewise.
3090 * tree-chrec.c: Likewise.
3091 * tree-complex.c: Likewise.
3092 * tree-data-ref.c: Likewise.
3093 * tree-dfa.c: Likewise.
3094 * tree-diagnostic.c: Likewise.
3095 * tree-dump.c: Likewise.
3096 * tree-eh.c: Likewise.
3097 * tree-emutls.c: Likewise.
3098 * tree-if-conv.c: Likewise.
3099 * tree-inline.c: Likewise.
3100 * tree-into-ssa.c: Likewise.
3101 * tree-iterator.c: Likewise.
3102 * tree-loop-distribution.c: Likewise.
3103 * tree-nested.c: Likewise.
3104 * tree-nrv.c: Likewise.
3105 * tree-object-size.c: Likewise.
3106 * tree-outof-ssa.c: Likewise.
3107 * tree-parloops.c: Likewise.
3108 * tree-phinodes.c: Likewise.
3109 * tree-predcom.c: Likewise.
3110 * tree-pretty-print.c: Likewise.
3111 * tree-pretty-print.h: Likewise.
3112 * tree-profile.c: Likewise.
3113 * tree-scalar-evolution.c: Likewise.
3114 * tree-sra.c: Likewise.
3115 * tree-ssa-address.c: Likewise.
3116 * tree-ssa-alias.c: Likewise.
3117 * tree-ssa-ccp.c: Likewise.
3118 * tree-ssa-coalesce.c: Likewise.
3119 * tree-ssa-copy.c: Likewise.
3120 * tree-ssa-copyrename.c: Likewise.
3121 * tree-ssa-dce.c: Likewise.
3122 * tree-ssa-dom.c: Likewise.
3123 * tree-ssa-dse.c: Likewise.
3124 * tree-ssa-forwprop.c: Likewise.
3125 * tree-ssa-ifcombine.c: Likewise.
3126 * tree-ssa-live.c: Likewise.
3127 * tree-ssa-loop-ch.c: Likewise.
3128 * tree-ssa-loop-im.c: Likewise.
3129 * tree-ssa-loop-ivcanon.c: Likewise.
3130 * tree-ssa-loop-ivopts.c: Likewise.
3131 * tree-ssa-loop-manip.c: Likewise.
3132 * tree-ssa-loop-niter.c: Likewise.
3133 * tree-ssa-loop-prefetch.c: Likewise.
3134 * tree-ssa-loop-unswitch.c: Likewise.
3135 * tree-ssa-loop.c: Likewise.
3136 * tree-ssa-loop.h: Likewise.
3137 * tree-ssa-math-opts.c: Likewise.
3138 * tree-ssa-operands.c: Likewise.
3139 * tree-ssa-phiopt.c: Likewise.
3140 * tree-ssa-phiprop.c: Likewise.
3141 * tree-ssa-pre.c: Likewise.
3142 * tree-ssa-propagate.c: Likewise.
3143 * tree-ssa-reassoc.c: Likewise.
3144 * tree-ssa-sccvn.c: Likewise.
3145 * tree-ssa-scopedtables.c: Likewise.
3146 * tree-ssa-sink.c: Likewise.
3147 * tree-ssa-strlen.c: Likewise.
3148 * tree-ssa-structalias.c: Likewise.
3149 * tree-ssa-tail-merge.c: Likewise.
3150 * tree-ssa-ter.c: Likewise.
3151 * tree-ssa-threadedge.c: Likewise.
3152 * tree-ssa-threadupdate.c: Likewise.
3153 * tree-ssa-uncprop.c: Likewise.
3154 * tree-ssa-uninit.c: Likewise.
3155 * tree-ssa.c: Likewise.
3156 * tree-ssanames.c: Likewise.
3157 * tree-stdarg.c: Likewise.
3158 * tree-streamer-in.c: Likewise.
3159 * tree-streamer-out.c: Likewise.
3160 * tree-streamer.c: Likewise.
3161 * tree-switch-conversion.c: Likewise.
3162 * tree-tailcall.c: Likewise.
3163 * tree-vect-data-refs.c: Likewise.
3164 * tree-vect-generic.c: Likewise.
3165 * tree-vect-loop-manip.c: Likewise.
3166 * tree-vect-loop.c: Likewise.
3167 * tree-vect-patterns.c: Likewise.
3168 * tree-vect-slp.c: Likewise.
3169 * tree-vect-stmts.c: Likewise.
3170 * tree-vectorizer.c: Likewise.
3171 * tree-vrp.c: Likewise.
3174 * ubsan.c: Likewise.
3175 * valtrack.c: Likewise.
3176 * value-prof.c: Likewise.
3177 * var-tracking.c: Likewise.
3178 * varasm.c: Likewise.
3179 * varpool.c: Likewise.
3180 * vmsdbgout.c: Likewise.
3181 * vtable-verify.c: Likewise.
3183 * wide-int-print.cc: Likewise.
3184 * wide-int-print.h: Likewise.
3185 * wide-int.cc: Likewise.
3186 * xcoffout.c: Likewise.
3187 * config/aarch64/aarch64-builtins.c: Likewise.
3188 * config/aarch64/aarch64.c: Likewise.
3189 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
3190 * config/alpha/alpha.c: Likewise.
3191 * config/arc/arc.c: Likewise.
3192 * config/arm/aarch-common.c: Likewise.
3193 * config/arm/arm-builtins.c: Likewise.
3194 * config/arm/arm-c.c: Likewise.
3195 * config/arm/arm.c: Likewise.
3196 * config/avr/avr-c.c: Likewise.
3197 * config/avr/avr-log.c: Likewise.
3198 * config/avr/avr.c: Likewise.
3199 * config/bfin/bfin.c: Likewise.
3200 * config/c6x/c6x.c: Likewise.
3201 * config/cr16/cr16.c: Likewise.
3202 * config/cris/cris.c: Likewise.
3203 * config/darwin-c.c: Likewise.
3204 * config/darwin.c: Likewise.
3205 * config/default-c.c: Likewise.
3206 * config/epiphany/epiphany.c: Likewise.
3207 * config/epiphany/mode-switch-use.c: Likewise.
3208 * config/epiphany/resolve-sw-modes.c: Likewise.
3209 * config/fr30/fr30.c: Likewise.
3210 * config/frv/frv.c: Likewise.
3211 * config/ft32/ft32.c: Likewise.
3212 * config/glibc-c.c: Likewise.
3213 * config/h8300/h8300.c: Likewise.
3214 * config/i386/i386-c.c: Likewise.
3215 * config/i386/i386.c: Likewise.
3216 * config/i386/msformat-c.c: Likewise.
3217 * config/i386/winnt-cxx.c: Likewise.
3218 * config/i386/winnt-stubs.c: Likewise.
3219 * config/i386/winnt.c: Likewise.
3220 * config/ia64/ia64-c.c: Likewise.
3221 * config/ia64/ia64.c: Likewise.
3222 * config/iq2000/iq2000.c: Likewise.
3223 * config/lm32/lm32.c: Likewise.
3224 * config/m32c/m32c-pragma.c: Likewise.
3225 * config/m32c/m32c.c: Likewise.
3226 * config/m32r/m32r.c: Likewise.
3227 * config/m68k/m68k.c: Likewise.
3228 * config/mcore/mcore.c: Likewise.
3229 * config/mep/mep-pragma.c: Likewise.
3230 * config/mep/mep.c: Likewise.
3231 * config/microblaze/microblaze-c.c: Likewise.
3232 * config/microblaze/microblaze.c: Likewise.
3233 * config/mips/mips.c: Likewise.
3234 * config/mmix/mmix.c: Likewise.
3235 * config/mn10300/mn10300.c: Likewise.
3236 * config/moxie/moxie.c: Likewise.
3237 * config/msp430/msp430-c.c: Likewise.
3238 * config/msp430/msp430.c: Likewise.
3239 * config/nds32/nds32-cost.c: Likewise.
3240 * config/nds32/nds32-fp-as-gp.c: Likewise.
3241 * config/nds32/nds32-intrinsic.c: Likewise.
3242 * config/nds32/nds32-isr.c: Likewise.
3243 * config/nds32/nds32-md-auxiliary.c: Likewise.
3244 * config/nds32/nds32-memory-manipulation.c: Likewise.
3245 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3246 * config/nds32/nds32-predicates.c: Likewise.
3247 * config/nds32/nds32.c: Likewise.
3248 * config/nios2/nios2.c: Likewise.
3249 * config/nvptx/nvptx.c: Likewise.
3250 * config/pa/pa.c: Likewise.
3251 * config/pdp11/pdp11.c: Likewise.
3252 * config/rl78/rl78-c.c: Likewise.
3253 * config/rl78/rl78.c: Likewise.
3254 * config/rs6000/rs6000-c.c: Likewise.
3255 * config/rs6000/rs6000.c: Likewise.
3256 * config/rx/rx.c: Likewise.
3257 * config/s390/s390-c.c: Likewise.
3258 * config/s390/s390.c: Likewise.
3259 * config/sh/sh-c.c: Likewise.
3260 * config/sh/sh-mem.cc: Likewise.
3261 * config/sh/sh.c: Likewise.
3262 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
3263 * config/sh/sh_treg_combine.cc: Likewise.
3264 * config/sol2-c.c: Likewise.
3265 * config/sol2-cxx.c: Likewise.
3266 * config/sol2-stubs.c: Likewise.
3267 * config/sol2.c: Likewise.
3268 * config/sparc/sparc-c.c: Likewise.
3269 * config/sparc/sparc.c: Likewise.
3270 * config/spu/spu-c.c: Likewise.
3271 * config/spu/spu.c: Likewise.
3272 * config/stormy16/stormy16.c: Likewise.
3273 * config/tilegx/mul-tables.c: Likewise.
3274 * config/tilegx/tilegx-c.c: Likewise.
3275 * config/tilegx/tilegx.c: Likewise.
3276 * config/tilepro/mul-tables.c: Likewise.
3277 * config/tilepro/tilepro-c.c: Likewise.
3278 * config/tilepro/tilepro.c: Likewise.
3279 * config/v850/v850-c.c: Likewise.
3280 * config/v850/v850.c: Likewise.
3281 * config/vax/vax.c: Likewise.
3282 * config/visium/visium.c: Likewise.
3283 * config/vms/vms-c.c: Likewise.
3284 * config/vms/vms.c: Likewise.
3285 * config/vxworks.c: Likewise.
3286 * config/winnt-c.c: Likewise.
3287 * config/xtensa/xtensa.c: Likewise.
3288 * common/config/bfin/bfin-common.c: Likewise.
3290 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
3292 * tree.h (tree_code_for_canonical_type_merging): New function.
3293 * tree.c (gimple_canonical_types_compatible_p): Use
3294 tree_code_for_canonical_type_merging..
3296 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3300 * doc/tm.texi: Regenerate.
3301 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
3302 * target.def (TARGET_RELAXED_ORDERING): Likewise.
3303 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
3304 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
3305 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
3306 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
3307 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
3308 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
3309 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
3311 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3313 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
3314 register fma steering pass.
3315 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
3316 AARCH64_TUNE_FMA_STEERING.
3318 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
3320 * tree.c (verify_type_variant): Verify that type and variant is
3322 (gimple_canonical_types_compatible_p): Look for main variants.
3324 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
3326 * config.gcc (powerpc*-*-*): Add support for a new configure
3327 option --with-advance-toolchain=<xxx> which overrides using the
3328 default header files, libraries and dynamic linker.
3330 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
3331 specs to support the configure --with-advance-toolchain=<xxx>
3333 (INCLUDE_EXTRA_SPEC): Likewise.
3334 (LINK_OS_EXTRA_SPEC32): Likewise.
3335 (LINK_OK_EXTRA_SPEC64): Likewise.
3336 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
3337 (DYNAMIC_LINKER_PREFIX): Likewise.
3338 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
3340 (GLIBC_DYNAMIC_LINKER32): Likewise.
3341 (GLIBC_DYNAMIC_LINKER64): Likewise.
3342 (LINK_OS_LINUX_SPEC32): Likewise.
3343 (LINK_OS_LINUX_SPEC64): Likewise.
3345 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
3346 configuration option.
3348 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
3351 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
3352 to determine current function ABI.
3353 (ix86_function_value_regno_p): Ditto.
3355 2015-06-03 Martin Liska <mliska@suse.cz>
3357 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
3358 * bitmap.h (struct bitmap_usage): Likewise.
3359 * ggc-common.c (struct ggc_usage): Likewise.
3360 * mem-stats.h (struct mem_location): Likewise.
3361 (struct mem_usage): Likewise.
3362 * vec.c (struct vec_usage): Likewise.
3364 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
3366 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
3369 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
3371 * doc/plugins.texi (enum plugin_event): New event.
3372 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
3373 and PLUGIN_FINISH_FUNCTION.
3374 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
3375 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
3377 2015-06-03 Richard Biener <rguenther@suse.de>
3379 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
3380 compute GROUP_GAP for the first element.
3381 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
3384 2015-06-03 Nick Clifton <nickc@redhat.com>
3386 * config/rl78/rl78-real.md: Add peepholes to avoid a register
3387 copy when calling a function.
3388 * config/rl78/rl78.c (need_to_save): Do not push the frame
3389 pointer in an interrupt handler prologue if it is never used.
3391 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3393 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
3395 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
3397 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
3398 reference when cloning alias node.
3400 2015-06-03 Martin Liska <mliska@suse.cz>
3402 * alloc-pool.h (struct pool_usage): Correct space padding.
3403 * ggc-page.c (ggc_print_statistics): Align columns in a report.
3404 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
3405 * tree.c (dump_tree_statistics): Align columns in a report.
3407 2015-06-03 Martin Liska <mliska@suse.cz>
3409 * alloc-pool.c (allocate_pool_descriptor): Remove.
3410 (struct pool_output_info): Likewise.
3411 (print_alloc_pool_statistics): Likewise.
3412 (dump_alloc_pool_statistics): Likewise.
3413 * alloc-pool.h (struct pool_usage): New struct.
3414 (pool_allocator::initialize): Change usage of memory statistics
3416 (pool_allocator::release): Likewise.
3417 (pool_allocator::allocate): Likewise.
3418 (pool_allocator::remove): Likewise.
3419 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
3420 for a pool allocator.
3421 * mem-stats.h (struct mem_location): Add new ctor.
3422 (struct mem_usage): Add counter for number of
3424 (mem_alloc_description::register_descriptor): New overload of
3425 * mem-stats.h (mem_location::to_string): New function.
3426 * bitmap.h (struct bitmap_usage): Use this new function.
3427 * ggc-common.c (struct ggc_usage): Likewise.
3430 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
3432 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
3433 of GCC_INSN_FLAGS_H block.
3435 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
3437 * explow.c (plus_constant): Update check after force_const_mem call
3438 to see if the value returned is not a NULL_RTX.
3440 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
3442 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
3443 remove instumentation thunks calling reachable functions.
3444 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
3445 * lto/lto-partition.c (privatize_symbol_name_1): New.
3446 (privatize_symbol_name): Privatize both decl and orig_decl
3447 names for instrumented functions.
3448 * cgraph.c (cgraph_node::verify_node): Add transparent
3449 alias chain check for instrumented node.
3451 2015-06-03 Marek Polacek <polacek@redhat.com>
3455 * tree.c (attribute_value_equal): Handle attribute format.
3456 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
3458 2015-06-03 Richard Biener <rguenther@suse.de>
3460 PR tree-optimization/63916
3461 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
3462 Forward-propagate non-invariant addresses by splicing their
3463 reference ops if the result isn't going to be used by PRE.
3464 (vn_reference_lookup_3): Remove pointless assert.
3466 2015-06-03 Richard Biener <rguenther@suse.de>
3468 PR tree-optimization/66375
3469 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
3470 add to the evolution before following SSA edges.
3472 2015-06-03 Bin Cheng <bin.cheng@arm.com>
3474 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
3475 (dump_use, dump_cand, find_induction_variables): Pass new argument
3477 (record_use): Preserve the ssa name information in IV.
3479 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
3481 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
3483 (add_mode_tests): Don't add mode tests if the predicate only
3484 accepts scalar constant integers. Otherwise, allow the mode
3485 of "op" to be VOIDmode if the predicate does accept such integers.
3487 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
3490 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
3491 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
3492 (aarch64_secondary_reload): Likewise
3493 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
3495 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
3498 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
3499 Zhenqiang Chen <zhenqiang.chen@linaro.org>
3502 * cprop.c (try_replace_reg): Check cost of constants before propagating.
3504 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
3506 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
3507 provide access to the IBM extended double floating point mode if
3508 long double is IEEE 128-bit floating point.
3509 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
3510 point if long double is the IBM extended double type.
3512 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
3513 enable adding IEEE 128-bit floating point support.
3514 (-mfloat128-software): Likewise.
3515 (-mfloat128-sw): Likewise.
3517 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
3518 128-bit floating point types to occupy any register if
3519 -mlong-double-64. Do not allow use of IFmode/KFmode unless
3520 -mfloat128-software is enabled.
3521 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
3523 (rs6000_option_override_internal): Add -mfloat128-* support.
3524 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
3526 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
3527 and float128 type nodes.
3528 (ieee128_float_type_node): Likewise.
3529 (ibm128_float_type_node): Likewise.
3531 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
3534 * config/aarch64/geniterators.sh: Rewrite in awk.
3536 2015-06-02 Martin Liska <mliska@suse.cz>
3538 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
3539 values to avoid -Wmaybe-uninitialized errors.
3541 2015-06-02 Richard Biener <rguenther@suse.de>
3544 * dwarf2out.c (lookup_context_die): New function.
3545 (resolve_addr): Avoid forcing a full DIE for the
3546 target of a DW_TAG_GNU_call_site during late compilation.
3547 Instead create a stub DIE without a type if we have a
3548 context DIE present.
3550 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
3552 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
3554 2015-06-02 Bin Cheng <bin.cheng@arm.com>
3556 PR tree-optimization/48052
3557 * cfgloop.h (struct control_iv): New.
3558 (struct loop): New field control_ivs.
3559 * tree-ssa-loop-niter.c : Include "stor-layout.h".
3560 (number_of_iterations_lt): Set no_overflow information.
3561 (number_of_iterations_exit): Init control iv in niter struct.
3562 (record_control_iv): New.
3563 (estimate_numbers_of_iterations_loop): Call record_control_iv.
3564 (loop_exits_before_overflow): New. Interface factored out of
3565 scev_probably_wraps_p.
3566 (scev_probably_wraps_p): Factor loop niter related code into
3567 loop_exits_before_overflow.
3568 (free_numbers_of_iterations_estimates_loop): Free control ivs.
3569 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
3571 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
3573 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
3574 the target doesn't belong to the current function.
3576 2015-06-02 Marek Polacek <polacek@redhat.com>
3579 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
3580 get_maxval_strlen does not produce an INTEGER_CST.
3582 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
3584 * config/arc/constraints.md: Use lower-case names in match_code.
3585 * config/mmix/constraints.md: Likewise.
3587 2015-06-02 Richard Biener <rguenther@suse.de>
3589 PR tree-optimization/65961
3590 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
3591 check and clarify dump message.
3592 (vect_build_slp_tree): If all children are built up from scalars
3593 build up the parent from scalars instead.
3594 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
3596 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3599 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
3600 instead of print ... .
3602 2015-06-02 Alan Modra <amodra@gmail.com>
3604 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
3607 2015-06-02 Bin Cheng <bin.cheng@arm.com>
3609 PR tree-optimization/52563
3610 PR tree-optimization/62173
3611 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
3612 (alloc_iv, set_iv): New parameter.
3613 (determine_biv_step): Delete.
3614 (find_bivs): Inline original determine_biv_step. Pass new
3616 (idx_find_step): Use no_overflow information for conversion.
3617 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
3618 resolve_mixers handle folded_casts.
3619 (instantiate_scev_name): Change bool parameter to bool pointer.
3620 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
3621 (instantiate_array_ref, instantiate_scev_not): Ditto.
3622 (instantiate_scev_3, instantiate_scev_2): Ditto.
3623 (instantiate_scev_1, instantiate_scev_r): Ditto.
3624 (instantiate_scev_convert, ): Change parameter. Pass argument
3625 to chrec_convert_aggressive.
3626 (instantiate_scev): Change argument.
3627 (resolve_mixers): New parameter and set it.
3628 (scev_const_prop): New argument.
3629 * tree-scalar-evolution.h (resolve_mixers): New parameter.
3630 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
3632 (chrec_convert): New parameter. Move definition below.
3633 (chrec_convert_aggressive): New parameter and set it. Call
3634 convert_affine_scev.
3635 * tree-chrec.h (chrec_convert): New parameter.
3636 (chrec_convert_aggressive): Ditto.
3638 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
3640 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
3641 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
3642 the LHS of a no-return call if its type has variable size.
3643 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
3644 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
3646 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
3648 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
3649 * config.in: Regenerate.
3651 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
3653 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
3654 consecutive accesses within outer-loop with force_vectorize
3655 for references with zero step in inner-loop.
3657 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
3659 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
3660 rather than from gcc/build directory.
3662 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
3665 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
3666 for __sync memory models, emit initial loads and final barriers as
3669 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
3672 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
3673 (aarch64_split_atomic_op): Check for __sync memory models, emit
3674 appropriate initial loads and final barriers.
3676 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
3678 * Makefile.in: Fix gcov dependencies that should
3679 not point to a build folder.
3681 2015-06-01 Richard Biener <rguenther@suse.de>
3684 2015-05-29 Richard Biener <rguenther@suse.de>
3686 PR tree-optimization/66314
3687 * tree-ssa-threadupdate.c (create_block_for_threading): Add
3688 parameter that says which loop the new block belongs to.
3689 (ssa_create_duplicates): Blocks duplicated for the threaded
3690 path belong to the loop of the thread destination.
3692 2015-06-01 Martin Liska <mliska@suse.cz>
3694 * sched-deps.c: Include pool-alloc.h before
3695 cselib.h header file is included.
3697 2015-06-01 Richard Biener <rguenther@suse.de>
3699 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
3702 2015-06-01 Martin Liska <mliska@suse.cz>
3704 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
3705 a function local variable.
3707 2015-06-01 Martin Liska <mliska@suse.cz>
3709 * alloc-pool.c (create_alloc_pool): Remove.
3710 (empty_alloc_pool): Likewise.
3711 (free_alloc_pool): Likewise.
3712 (free_alloc_pool_if_empty): Likewise.
3713 (pool_alloc): Likewise.
3714 (pool_free): Likewise.
3715 * alloc-pool.h: Remove old declarations.
3717 2015-06-01 Martin Liska <mliska@suse.cz>
3719 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
3720 (ira_create_object): Likewise.
3721 (ira_create_allocno): Likewise.
3722 (ira_create_live_range): Likewise.
3723 (copy_live_range): Likewise.
3724 (ira_finish_live_range): Likewise.
3725 (ira_free_allocno_costs): Likewise.
3726 (finish_allocno): Likewise.
3727 (finish_allocnos): Likewise.
3728 (initiate_prefs): Likewise.
3729 (ira_create_pref): Likewise.
3730 (finish_pref): Likewise.
3731 (finish_prefs): Likewise.
3732 (initiate_copies): Likewise.
3733 (ira_create_copy): Likewise.
3734 (finish_copy): Likewise.
3735 (finish_copies): Likewise.
3736 (finish_prefs): Likewise.
3738 2015-06-01 Martin Liska <mliska@suse.cz>
3740 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
3741 (allocate_and_init_ipcp_value): Likewise.
3742 (ipcp_lattice::add_value): Likewise.
3743 (merge_agg_lats_step): Likewise.
3744 (ipcp_driver): Likewise.
3745 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
3746 (ipa_free_all_structures_after_iinln): Likewise.
3747 * ipa-prop.h: Likewise.
3749 2015-06-01 Martin Liska <mliska@suse.cz>
3751 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
3753 (set_hint_predicate): Likewise.
3754 (inline_summary_alloc): Likewise.
3755 (reset_inline_edge_summary): Likewise.
3756 (reset_inline_summary): Likewise.
3757 (set_cond_stmt_execution_predicate): Likewise.
3758 (set_switch_stmt_execution_predicate): Likewise.
3759 (compute_bb_predicates): Likewise.
3760 (estimate_function_body_sizes): Likewise.
3761 (inline_free_summary): Likewise.
3763 2015-06-01 Martin Liska <mliska@suse.cz>
3765 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
3766 (ipa_edge_duplication_hook): Likewise.
3767 (ipa_free_all_structures_after_ipa_cp): Likewise.
3768 (ipa_free_all_structures_after_iinln): Likewise.
3770 2015-06-01 Martin Liska <mliska@suse.cz>
3772 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
3773 (ipa_profile_generate_summary): Likewise.
3774 (ipa_profile_read_summary): Likewise.
3775 (ipa_profile): Likewise.
3777 2015-06-01 Martin Liska <mliska@suse.cz>
3779 * tree-ssa-structalias.c (new_var_info): Use new type-based
3781 (new_constraint): Likewise.
3782 (init_alias_vars): Likewise.
3783 (delete_points_to_sets): Likewise.
3785 2015-06-01 Martin Liska <mliska@suse.cz>
3787 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
3788 (free_strinfo): Likewise.
3789 (pass_strlen::execute): Likewise.
3791 2015-06-01 Martin Liska <mliska@suse.cz>
3793 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
3795 (vn_reference_insert_pieces): Likewise.
3796 (vn_phi_insert): Likewise.
3797 (visit_reference_op_call): Likewise.
3798 (copy_phi): Likewise.
3799 (copy_reference): Likewise.
3800 (process_scc): Likewise.
3801 (allocate_vn_table): Likewise.
3802 (free_vn_table): Likewise.
3804 2015-06-01 Martin Liska <mliska@suse.cz>
3806 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
3808 (add_repeat_to_ops_vec): Likewise.
3809 (get_ops): Likewise.
3810 (maybe_optimize_range_tests): Likewise.
3811 (init_reassoc): Likewise.
3812 (fini_reassoc): Likewise.
3814 2015-06-01 Martin Liska <mliska@suse.cz>
3816 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
3818 (bitmap_set_new): Likewise.
3819 (get_or_alloc_expr_for_constant): Likewise.
3820 (get_or_alloc_expr_for): Likewise.
3821 (phi_translate_1): Likewise.
3822 (compute_avail): Likewise.
3823 (init_pre): Likewise.
3824 (fini_pre): Likewise.
3826 2015-06-01 Martin Liska <mliska@suse.cz>
3828 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
3829 (delete_dep_node): Likewise.
3830 (create_deps_list): Likewise.
3831 (free_deps_list): Likewise.
3832 (sched_deps_init): Likewise.
3833 (sched_deps_finish): Likewise.
3835 2015-06-01 Martin Liska <mliska@suse.cz>
3837 * regcprop.c (free_debug_insn_changes): Use new type-based
3839 (replace_oldest_value_reg): Likewise.
3840 (pass_cprop_hardreg::execute): Likewise.
3842 2015-06-01 Martin Liska <mliska@suse.cz>
3844 * ira-build.c (initiate_cost_vectors): Use new type-based
3846 (ira_allocate_cost_vector): Likewise.
3847 (ira_free_cost_vector): Likewise.
3848 (finish_cost_vectors): Likewise.
3850 2015-06-01 Martin Liska <mliska@suse.cz>
3852 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
3854 (free_sched_pools): Likewise.
3855 * sel-sched-ir.h (_list_alloc): Likewise.
3856 (_list_remove): Likewise.
3858 2015-06-01 Martin Liska <mliska@suse.cz>
3860 * stmt.c (add_case_node): Use new type-based pool allocator.
3861 (expand_case): Likewise.
3862 (expand_sjlj_dispatch_table): Likewise.
3864 2015-06-01 Martin Liska <mliska@suse.cz>
3866 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
3867 (free_bb): Likewise.
3868 (pass_cse_reciprocals::execute): Likewise.
3870 2015-06-01 Martin Liska <mliska@suse.cz>
3872 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
3873 (sra_deinitialize) Likewise.
3874 (create_access_1) Likewise.
3875 (build_accesses_from_assign) Likewise.
3876 (create_artificial_child_access) Likewise.
3878 2015-06-01 Martin Liska <mliska@suse.cz>
3880 * dse.c (get_group_info):Use new type-based pool allocator.
3881 (dse_step0) Likewise.
3882 (free_store_info) Likewise.
3883 (delete_dead_store_insn) Likewise.
3884 (free_read_records) Likewise.
3885 (record_store) Likewise.
3886 (replace_read) Likewise.
3887 (check_mem_read_rtx) Likewise.
3888 (scan_insn) Likewise.
3889 (dse_step1) Likewise.
3890 (dse_step7) Likewise.
3892 2015-06-01 Martin Liska <mliska@suse.cz>
3894 * df-scan.c (struct df_scan_problem_data):Use new type-based
3896 (df_scan_free_internal) Likewise.
3897 (df_scan_alloc) Likewise.
3898 (df_grow_reg_info) Likewise.
3899 (df_free_ref) Likewise.
3900 (df_insn_create_insn_record) Likewise.
3901 (df_mw_hardreg_chain_delete) Likewise.
3902 (df_insn_info_delete) Likewise.
3903 (df_free_collection_rec) Likewise.
3904 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
3905 (df_sort_and_compress_mws) Likewise.
3906 (df_ref_create_structure) Likewise.
3907 (df_ref_record) Likewise.
3909 2015-06-01 Martin Liska <mliska@suse.cz>
3911 * df-problems.c (df_chain_create):Use new type-based pool allocator.
3912 (df_chain_unlink_1) Likewise.
3913 (df_chain_unlink) Likewise.
3914 (df_chain_remove_problem) Likewise.
3915 (df_chain_alloc) Likewise.
3916 (df_chain_free) Likewise.
3917 * df.h (struct dataflow) Likewise.
3919 2015-06-01 Martin Liska <mliska@suse.cz>
3921 * cselib.c (new_elt_list):Use new type-based pool allocator.
3922 (new_elt_loc_list) Likewise.
3923 (unchain_one_elt_list) Likewise.
3924 (unchain_one_elt_loc_list) Likewise.
3925 (unchain_one_value) Likewise.
3926 (new_cselib_val) Likewise.
3927 (cselib_init) Likewise.
3928 (cselib_finish) Likewise.
3930 2015-06-01 Martin Liska <mliska@suse.cz>
3932 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
3933 (sh_reorg) Likewise.
3935 2015-06-01 Martin Liska <mliska@suse.cz>
3937 * cfg.c (initialize_original_copy_tables):Use new type-based
3939 (free_original_copy_tables) Likewise.
3940 (copy_original_table_clear) Likewise.
3941 (copy_original_table_set) Likewise.
3943 2015-06-01 Martin Liska <mliska@suse.cz>
3945 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
3947 (asan_mem_ref_new) Likewise.
3948 (free_mem_ref_resources) Likewise.
3950 2015-06-01 Martin Liska <mliska@suse.cz>
3952 * var-tracking.c (variable_htab_free):Use new type-based
3954 (attrs_list_clear) Likewise.
3955 (attrs_list_insert) Likewise.
3956 (attrs_list_copy) Likewise.
3957 (shared_hash_unshare) Likewise.
3958 (shared_hash_destroy) Likewise.
3959 (unshare_variable) Likewise.
3960 (var_reg_delete_and_set) Likewise.
3961 (var_reg_delete) Likewise.
3962 (var_regno_delete) Likewise.
3963 (drop_overlapping_mem_locs) Likewise.
3964 (variable_union) Likewise.
3965 (insert_into_intersection) Likewise.
3966 (canonicalize_values_star) Likewise.
3967 (variable_merge_over_cur) Likewise.
3968 (dataflow_set_merge) Likewise.
3969 (remove_duplicate_values) Likewise.
3970 (variable_post_merge_new_vals) Likewise.
3971 (dataflow_set_preserve_mem_locs) Likewise.
3972 (dataflow_set_remove_mem_locs) Likewise.
3973 (variable_from_dropped) Likewise.
3974 (variable_was_changed) Likewise.
3975 (set_slot_part) Likewise.
3976 (clobber_slot_part) Likewise.
3977 (delete_slot_part) Likewise.
3978 (loc_exp_insert_dep) Likewise.
3979 (notify_dependents_of_changed_value) Likewise.
3980 (emit_notes_for_differences_1) Likewise.
3981 (vt_emit_notes) Likewise.
3982 (vt_initialize) Likewise.
3983 (vt_finalize) Likewise.
3985 2015-06-01 Martin Liska <mliska@suse.cz>
3987 * ira-color.c (init_update_cost_records):Use new type-based
3989 (get_update_cost_record) Likewise.
3990 (free_update_cost_record_list) Likewise.
3991 (finish_update_cost_records) Likewise.
3992 (initiate_cost_update) Likewise.
3994 2015-06-01 Martin Liska <mliska@suse.cz>
3996 * lra.c (init_insn_regs): Use new type-based pool allocator.
3997 (new_insn_reg) Likewise.
3998 (free_insn_reg) Likewise.
3999 (free_insn_regs) Likewise.
4000 (finish_insn_regs) Likewise.
4001 (init_insn_recog_data) Likewise.
4002 (init_reg_info) Likewise.
4003 (finish_reg_info) Likewise.
4004 (lra_free_copies) Likewise.
4005 (lra_create_copy) Likewise.
4006 (invalidate_insn_data_regno_info) Likewise.
4008 2015-06-01 Martin Liska <mliska@suse.cz>
4010 * lra-lives.c (free_live_range): Use new type-based pool allocator.
4011 (free_live_range_list) Likewise.
4012 (create_live_range) Likewise.
4013 (copy_live_range) Likewise.
4014 (lra_merge_live_ranges) Likewise.
4015 (remove_some_program_points_and_update_live_ranges) Likewise.
4016 (lra_live_ranges_init) Likewise.
4017 (lra_live_ranges_finish) Likewise.
4019 2015-06-01 Martin Liska <mliska@suse.cz>
4021 * et-forest.c (et_new_occ): Use new type-based pool allocator.
4022 (et_new_tree): Likewise.
4023 (et_free_tree): Likewise.
4024 (et_free_tree_force): Likewise.
4025 (et_free_pools): Likewise.
4026 (et_split): Likewise.
4028 2015-06-01 Martin Liska <mliska@suse.cz>
4030 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
4032 * alloc-pool.h (pool_allocator::pool_allocator): New function.
4033 (pool_allocator::release): Likewise.
4034 (inline pool_allocator::release_if_empty): Likewise.
4035 (inline pool_allocator::~pool_allocator): Likewise.
4036 (pool_allocator::allocate): Likewise.
4037 (pool_allocator::remove): Likewise.
4039 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
4041 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
4044 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
4046 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
4048 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
4049 (arm_macro_fusion_p): Likewise.
4050 (arm_macro_fusion_pair_p): Likewise.
4052 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
4054 * config/aarch64/aarch64-protos.h (tune_params): Rename
4055 fuseable_ops to fusible_ops.
4056 * config/aarch64/aarch64.c (generic_tunings): Rename
4057 fuseable_ops to fusible_ops.
4058 (cortexa53_tunings): Likewise.
4059 (cortexa57_tunings): Likewise.
4060 (thunderx_tunings): Likewise.
4061 (xgene1_tunings): Likewise.
4062 (aarch64_macro_fusion_p): Likewise.
4063 (aarch64_macro_fusion_pair_p): Likewise.
4065 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
4067 * config/s390/driver-native.c: New file.
4068 * config/s390/x-native: New file.
4069 * config.host: Add new files for s390.
4070 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
4072 * config.gcc: Likewise.
4073 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
4074 * config/s390/s390-opts.h (enum processor_type): Ditto.
4075 * config/s390/s390.c (s390_option_override): Catch unhandled
4078 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
4081 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
4082 redirection for instrumented calls.
4083 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
4084 (append_compiler_options): Append -fcheck-pointer-bounds.
4085 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
4086 (chkp_redirect_edge): New.
4087 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
4088 (chkp_redirect_edge): New.
4090 2015-06-01 Richard Biener <rguenther@suse.de>
4092 PR tree-optimization/66280
4093 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
4096 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4098 * config/aarch64/aarch64.md
4099 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
4102 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
4104 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
4105 Remove obsolete kludge.
4107 2015-06-01 Richard Biener <rguenther@suse.de>
4109 * tree-ssa-reassoc.c (get_rank): Simplify.
4111 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
4113 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
4114 * configure: Regenerated.
4116 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
4118 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
4119 issue (add space between string literal and macro).
4120 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
4122 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
4124 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
4125 implict or explicit -fPIE or -fpie.
4127 2015-05-30 Mike Frysinger <vapier@gentoo.org>
4129 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
4131 2015-05-28 DJ Delorie <dj@redhat.com>
4133 * expmed.c (extract_bit_field_1): Avoid clobbering a
4134 yet-to-be-used base/index register.
4136 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
4138 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
4139 (alias_stats): Add num_universal.
4140 (alias_set_subset_of): Special case pointers; be ready for NULL
4142 (alias_sets_conflict_p): Special case pointers; be ready for NULL
4144 (init_alias_set_entry): Break out from ...
4145 (record_alias_subset): ... here; propagate new fields;
4146 allocate children only when really needed.
4147 (get_alias_set): Do less generous pointer globbing.
4148 (dump_alias_stats_in_alias_c): Update statistics.
4150 2015-05-30 Alan Modra <amodra@gmail.com>
4152 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
4153 correct block for use of r12.
4154 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
4156 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
4159 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
4162 2015-05-29 Jakub Jelinek <jakub@redhat.com>
4164 PR tree-optimization/66142
4165 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
4166 virtual phis that feed themselves.
4168 2015-05-29 Richard Biener <rguenther@suse.de>
4170 PR tree-optimization/66314
4171 * tree-ssa-threadupdate.c (create_block_for_threading): Add
4172 parameter that says which loop the new block belongs to.
4173 (ssa_create_duplicates): Blocks duplicated for the threaded
4174 path belong to the loop of the thread destination.
4176 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4178 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
4179 to cleanup-saved-temps.
4180 * doc/sourcebuild.texi (Clean up generated test files): Expand
4182 (dg-keep-saved-temps): Document new proc.
4183 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
4184 cleanup-saved-temps): Remove.
4186 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
4188 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
4190 * configure: Regenerate.
4192 2015-05-28 Mike Frysinger <vapier@gentoo.org>
4194 * config/nios2/linux.h (CPP_SPEC): Define.
4196 2015-05-28 Mike Frysinger <vapier@gentoo.org>
4198 * config/microblaze/linux.h (CPP_SPEC): Define.
4200 2015-05-28 Mike Frysinger <vapier@gentoo.org>
4202 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
4203 -pthread is specified.
4205 2015-05-28 Richard Biener <rguenther@suse.de>
4207 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
4208 (vect_fixup_scalar_cycles_with_patterns): Likewise.
4209 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
4210 after pattern recog.
4211 (vect_create_epilog_for_reduction): Properly handle reductions
4213 (vectorizable_reduction): Likewise.
4214 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
4216 (vect_get_constant_vectors): Create the correct number of
4217 initial values for reductions.
4218 (vect_schedule_slp_instance): Handle reduction chains that are
4219 type changing properly.
4220 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
4222 2015-05-28 Richard Biener <rguenther@suse.de>
4224 PR tree-optimization/66142
4225 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
4226 values better in memcpy destination handling. Handle non-aliasing
4229 2015-05-28 Lawrence Velázquez <vq@larryv.me>
4232 * config/darwin-c.c (version_components): New global enum.
4233 (parse_version, version_as_legacy_macro)
4234 (version_as_modern_macro, macosx_version_as_macro): New functions.
4235 (version_as_macro): Remove.
4236 (darwin_cpp_builtins): Use new function.
4238 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
4240 * builtins.c (expand_builtin_acc_on_device): Mark parameters
4241 with ATTRIBUTE_UNUSED.
4243 2015-05-28 Julian Brown <julian@codesourcery.com>
4247 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
4248 sequence for !ACCEL_COMPILER.
4250 2015-05-28 Nick Clifton <nickc@redhat.com>
4252 * config/rx/rx.c (push_regs): New function. Extracts code from...
4253 (rx_expand_prologue): ... here. Use push_regs to push even small
4255 (pop_regs): New function.
4256 (rx_expand_epilogue): Use pop_regs to pop even small spans of
4259 2015-05-28 Richard Biener <rguenther@suse.de>
4261 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
4263 (SLP_INSTANCE_BODY_COST_VEC): Remove.
4264 (vect_update_slp_costs_according_to_vf): Likewise.
4265 (vect_slp_analyze_operations): Update prototype.
4266 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
4267 vect_update_slp_costs_according_to_vf, adjust.
4268 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
4269 (vect_analyze_slp_cost_1): Likewise.
4270 (vect_analyze_slp_cost): Likewise. Properly deal with
4271 widening reduction ops. Commit body costs.
4272 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
4273 cost for loops from here.
4274 (vect_slp_analyze_operations): But do it from here when
4275 the vectorization factor is known and stmts are analyzed.
4276 (vect_bb_vectorization_profitable_p): Simplify.
4277 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
4278 (vect_update_slp_costs_according_to_vf): Remove.
4280 2015-05-27 Magnus Granberg <zorry@gentoo.org>
4281 H.J. Lu <hongjiu.lu@intel.com>
4283 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
4284 (BUILD_CFLAGS): Likewise.
4285 (BUILD_CXXFLAGS): Likewise.
4286 (LINKER): Add @NO_PIE_FLAG@.
4287 (BUILD_LDFLAGS): Likewise.
4288 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
4289 --enable-default-pie.
4290 * common.opt (fPIE): Initialize to -1.
4292 (no-pie): New option.
4293 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
4294 * configure.ac: Add --enable-default-pie.
4295 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
4296 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
4297 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
4298 * gcc.c (NO_PIE_SPEC): New.
4299 (PIE_SPEC): Likewise.
4300 (NO_FPIE1_SPEC): Likewise.
4301 (FPIE1_SPEC): Likewise.
4302 (NO_FPIE2_SPEC): Likewise.
4303 (FPIE2_SPEC): Likewise.
4304 (NO_FPIE2_SPEC): Likewise.
4305 (FPIE_SPEC): Likewise.
4306 (NO_FPIE_SPEC): Likewise.
4307 (NO_FPIC1_SPEC): Likewise.
4308 (FPIC1_SPEC): Likewise.
4309 (NO_FPIC2_SPEC): Likewise.
4310 (FPIC2_SPEC): Likewise.
4311 (NO_FPIC2_SPEC): Likewise.
4312 (FPIC_SPEC): Likewise.
4313 (NO_FPIC_SPEC): Likewise.
4314 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
4315 (FPIE1_OR_FPIC1_SPEC): Likewise.
4316 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
4317 (FPIE2_OR_FPIC2_SPEC): Likewise.
4318 (NO_FPIE_AND_FPIC_SPEC): Likewise.
4319 (FPIE_OR_FPIC_SPEC): Likewise.
4320 (LD_PIE_SPEC): Likewise.
4321 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
4322 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
4323 * config/darwin.h (PIE_SPEC): Renamed to ...
4324 (DARWIN_PIE_SPEC): This.
4325 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
4326 * config/darwin9.h (PIE_SPEC): Renamed to ...
4327 (DARWIN_PIE_SPEC): This.
4328 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
4329 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
4330 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
4331 FPIE2_OR_FPIC2_SPEC.
4332 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
4333 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
4334 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
4335 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
4336 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
4337 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
4338 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
4339 * config/m32r/m32r.h (ASM_SPEC): Likewise.
4340 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
4341 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
4342 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
4343 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
4344 * config/sparc/linux.h (ASM_SPEC): Likewise.
4345 * config/sparc/linux64.h (ASM_SPEC): Likewise.
4346 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
4347 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
4348 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
4349 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
4350 * config/sparc/sparc.h (ASM_SPEC): Likewise.
4351 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
4352 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
4353 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
4354 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
4355 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
4356 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
4357 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
4358 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
4359 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
4360 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
4361 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
4362 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
4363 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
4364 * config/vax/linux.h (ASM_SPEC): Likewise.
4365 * doc/install.texi: Document --enable-default-pie.
4366 * doc/invoke.texi: Document -no-pie.
4367 * config.in: Regenerated.
4368 * configure: Likewise.
4370 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
4372 PR rtl-optimization/66168
4373 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
4374 can_move_invariant_reg.
4376 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
4379 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
4380 REG_EQUAL note when doing insert.
4382 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
4383 instead of "%d" for 'o' operand.
4385 2015-05-27 Nathan Sidwell <nathan@acm.org>
4388 * tree.c (build_pointer_type_for_mode): Canonical type does not
4389 inherit can_alias_all.
4390 (build_reference_type_for_mode): Likewise.
4392 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
4394 * expr.h (array_at_struct_end_p): Move to...
4395 (array_ref_element_size): Likewise.
4396 (component_ref_field_offset): Likewise.
4397 * tree.h (array_ref_element_size): ...here.
4398 (array_at_struct_end_p): Likewise.
4399 (component_ref_field_offset): Likewise.
4400 * expr.c (array_ref_element_size): Move to...
4401 (array_ref_low_bound): Likewise.
4402 (array_at_struct_end_p): Likewise.
4403 (array_ref_up_bound): Likewise.
4404 (component_ref_field_offset): Likewise.
4405 * tree.c (array_ref_element_size): ...here.
4406 (array_ref_low_bound): Likewise.
4407 (array_ref_up_bound): Likewise.
4408 (array_at_struct_end_p): Likewise.
4409 (component_ref_field_offset): Likewise.
4411 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
4412 Szabolcs Nagy <szabolcs.nagy@arm.com>
4414 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
4416 2015-05-27 Jason Merrill <jason@redhat.com>
4419 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
4420 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
4421 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
4423 2015-05-22 Aditya Kumar <hiraditya@msn.com>
4425 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
4428 * statistics.c (statistics_fini_pass): Print pass name.
4430 2015-05-27 Richard Biener <rguenther@suse.de>
4432 PR tree-optimization/66272
4434 2014-08-15 Richard Biener <rguenther@suse.de>
4436 PR tree-optimization/62031
4437 * tree-data-ref.c (dr_analyze_indices): Do not set
4438 DR_UNCONSTRAINED_BASE.
4439 (dr_may_alias_p): All indirect accesses have to go the
4440 formerly DR_UNCONSTRAINED_BASE path.
4441 * tree-data-ref.h (struct indices): Remove
4442 unconstrained_base member.
4443 (DR_UNCONSTRAINED_BASE): Remove.
4445 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
4447 * dwarf2out.c: Remove block_map.
4448 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
4449 (gen_lexical_block_die): Same.
4450 (dwarf2out_function_decl): Remove block_map use.
4451 (dwarf2out_c_finalize): Same.
4452 * tree-core.h (struct tree_block): Add die field.
4453 * tree.h (BLOCK_DIE): New.
4455 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4458 * expr.c (memory_load_overlap): New function.
4459 (emit_push_insn): When pushing partial args to the stack would
4460 clobber the register part load the overlapping part into a pseudo
4461 and put it into the hard reg after pushing. Change return type
4462 to bool. Add bool argument.
4463 * expr.h (emit_push_insn): Change return type to bool.
4465 * calls.c (expand_call): Cancel sibcall optimization when encountering
4466 partial argument on targets with ARGS_GROW_DOWNWARD and
4467 !STACK_GROWS_DOWNWARD.
4468 (emit_library_call_value_1): Update callsite of emit_push_insn.
4469 (store_one_arg): Likewise.
4471 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
4473 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
4475 2015-05-27 Martin Liska <mliska@suse.cz>
4477 * Makefile.in: Add additional dependencies related to memory report
4479 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
4480 * bitmap.c (struct bitmap_descriptor_d): Remove.
4481 (struct loc): Likewise.
4482 (struct bitmap_desc_hasher): Likewise.
4483 (bitmap_desc_hasher::hash): Likewise.
4484 (bitmap_desc_hasher::equal): Likewise.
4485 (get_bitmap_descriptor): Likewise.
4486 (bitmap_register): User new memory descriptor API.
4487 (register_overhead): Likewise.
4488 (bitmap_find_bit): Register nsearches and search_iter statistics.
4489 (struct bitmap_output_info): Remove.
4490 (print_statistics): Likewise.
4491 (dump_bitmap_statistics): Use new memory descriptor.
4492 * bitmap.h (struct bitmap_usage): New class.
4493 * genmatch.c: Extend header file inclusion.
4494 * genpreds.c: Likewise.
4495 * ggc-common.c (struct ggc_usage): New class.
4496 (struct ggc_loc_desc_hasher): Remove.
4497 (ggc_loc_desc_hasher::hash): Likewise.
4498 (ggc_loc_desc_hasher::equal): Likewise.
4499 (struct ggc_ptr_hash_entry): Likewise.
4500 (struct ptr_hash_hasher): Likewise.
4501 (ptr_hash_hasher::hash): Likewise.
4502 (ptr_hash_hasher::equal): Likewise.
4503 (make_loc_descriptor): Likewise.
4504 (ggc_prune_ptr): Likewise.
4505 (dump_ggc_loc_statistics): Use new memory descriptor.
4506 (ggc_record_overhead): Likewise.
4507 (ggc_free_overhead): Likewise.
4508 (final_cmp_statistic): Remove.
4509 (cmp_statistic): Likewise.
4510 (ggc_add_statistics): Liekwise.
4511 (ggc_prune_overhead_list): Likewise.
4512 * hash-map-traits.h: New file.
4513 * hash-map.h (struct default_hashmap_traits): Move the traits to a
4514 separate header file.
4515 * hash-set.h: Pass memory statistics info to ctor.
4516 * hash-table.c (void dump_hash_table_loc_statistics): New function.
4517 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
4518 (hash_table::~hash_table): Register memory release operation.
4519 (hash_table::alloc_entries): Handle memory allocation operation.
4520 (hash_table::expand): Likewise.
4521 * inchash.c (iterative_hash_hashval_t): Move implementation to header
4523 (iterative_hash_host_wide_int): Likewise.
4524 * inchash.h (class hash): Likewise.
4525 * mem-stats-traits.h: New file.
4526 * mem-stats.h: New file.
4527 (mem_location): Add new class.
4528 (mem_usage): Likewise.
4529 (mem_alloc_description): Likewise.
4530 * sese.c: Add new header file inclusision.
4531 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
4533 * tree-sra.c: Add new header file inclusision.
4534 * vec.c (struct vec_descriptor): Remove.
4535 (hash_descriptor): Likewise.
4536 (struct vec_usage): Likewise.
4537 (struct ptr_hash_entry): Likewise.
4538 (hash_ptr): Likewise.
4540 (vec_prefix::register_overhead): Use new memory descriptor API.
4541 (vec_prefix::release_overhead): Likewise.
4542 (add_statistics): Remove.
4543 (dump_vec_loc_statistics): Use new memory descriptor API.
4544 * vec.h (struct vec_prefix): Likewise.
4545 (va_heap::reserve): Likewise.
4546 (va_heap::release): Likewise.
4547 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
4549 2015-05-27 Richard Biener <rguenther@suse.de>
4551 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
4552 earlier and remove ??? comment.
4553 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
4554 and got called from loop analysis bail out. Always pass the SLP
4555 node to the vectorizable_* functions.
4556 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
4557 the premature SLP check here.
4558 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
4560 (vect_detect_hybrid_slp_1): Likewise.
4562 2015-05-26 Jeff Law <law@redhat.com>
4564 * combine.c (find_split_point): Verify that the shift count is a
4565 constant when choosing (plus (ashift ...)) as a split point.
4567 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
4568 No functional changes.
4570 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
4572 * ipa-polymorphic-call.c
4573 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
4574 case when call target is already known.
4576 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
4579 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
4580 take into account the case that operands[1] and operands[2]
4581 are the same register.
4583 2015-05-26 Michael Matz <matz@suse.de>
4587 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
4589 (vect_create_vectorized_demotion_stmts): Always set
4590 STMT_VINFO_VEC_STMT, also with SLP.
4591 (vectorizable_store): Handle strided group stores.
4593 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4596 * config/aarch64/aarch64.md
4597 (*adds_shift_imm_<mode>): New pattern.
4598 (*subs_shift_imm_<mode>): Likewise.
4599 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
4600 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
4601 (*add_uxt<mode>_shift2): Likewise.
4602 (*add_uxtsi_shift2_uxtw): Likewise.
4603 (*sub_uxt<mode>_shift2): Likewise.
4604 (*sub_uxtsi_shift2_uxtw): Likewise.
4606 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
4608 * config/rs6000/constraints.md (Y, U): Use match_test.
4610 2015-05-26 Christian Bruel <christian.bruel@st.com>
4613 * config/arm/arm.c (arm_option_check_internal)
4614 (arm_option_params_internal): Check opts->target_flags to set macros.
4615 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
4616 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
4617 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
4618 (builtin_define): Replaced with def_or_undef_macro.
4619 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
4620 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
4621 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
4622 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
4623 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
4624 (TARGET_ARM_FEATURE_LDREX_P)
4625 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
4626 * config/arm/arm-c.c (def_or_undef_macro): New function.
4627 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
4629 2015-05-26 Christian Bruel <christian.bruel@st.com>
4631 * c-common.h (builtin_define_with_int_value)
4632 (builtin_define_type_sizeof): Declare.
4633 * c-cppbuiltin.c (builtin_define_with_int_value)
4634 (builtin_define_type_sizeof): Externalize.
4635 (builtin_define_std): Cleanup declaration.
4636 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
4637 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
4638 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
4639 (builtin_define, builtin_assert): New macros.
4641 2015-05-26 Richard Biener <rguenther@suse.de>
4643 PR tree-optimization/66142
4644 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
4645 MEM_REFs for the same base address.
4647 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4650 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
4652 2015-05-26 Jason Merrill <jason@redhat.com>
4654 * configure.ac: Set CXXFLAGS for ISL test.
4655 * configure: Regenerate.
4657 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
4658 strstr and basename.
4659 * configure: Regenerate.
4661 2015-05-26 Richard Biener <rguenther@suse.de>
4663 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
4664 X % C -> X & (C - 1) for C being a power-of two to ...
4665 * match.pd: ... patterns.
4667 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
4669 * match.pd (swapped_tcc_comparison): New operator list.
4670 (-A CMP -B): New simplification.
4671 * fold-const.c (fold_comparison): Remove corresponding code.
4673 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
4675 * caller-save.c (init_caller_save): Base temporary register numbers
4676 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
4677 * cfgloopanal.c (init_set_costs): Likewise.
4678 * dojump.c (prefer_and_bit_test): Likewise.
4679 * expr.c (init_expr_target): Likewise.
4680 * ira.c (setup_prohibited_mode_move_regs): Likewise.
4681 * lower-subreg.c (init_lower_subreg): Likewise.
4682 * postreload.c (reload_cse_regs_1): Likewise.
4684 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
4686 * gensupport.h (compute_test_codes): Declare.
4687 * gensupport.c (compute_predicate_codes): Rename to...
4688 (compute_test_codes): ...this. Generalize error message.
4689 (process_define_predicate): Update accordingly.
4690 * genpreds.c (compute_maybe_allows): Delete.
4691 (add_constraint): Use compute_test_codes to determine whether
4692 something can accept a SUBREG, REG or MEM.
4694 2015-05-26 Torvald Riegel <triegel@redhat.com>
4696 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
4697 'memory model' to align with C++11; fix description of memory orders;
4700 2015-05-26 Richard Biener <rguenther@suse.de>
4702 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
4703 (vect_analyze_loop_operations): ... here. Remove slp parameter,
4704 detect whether we apply SLP. Remove call to
4705 vect_update_slp_costs_according_to_vf.
4706 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
4707 vect_update_slp_costs_according_to_vf from here. Dispatch
4708 to vect_slp_analyze_operations to analyze SLP stmts.
4709 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
4710 unused bb_vec_info parameter, adjust assert.
4711 (vect_slp_analyze_operations): Pass in the slp instance tree
4712 instead of bb_vec_info.
4713 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
4714 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
4716 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
4718 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
4719 Q_REGS. Expand comment.
4720 (REG_CLASS_NAMES): Ditto.
4721 (REG_CLASS_CONTENTS): Ditto.
4723 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
4726 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
4727 when LEGACY_INT_REGNO_P is processed.
4729 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
4731 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
4733 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4735 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
4736 register if not marked dead/unused, before return.
4738 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
4741 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
4742 is set; check for assembler name at LTO time.
4743 (type_in_anonymous_namespace): Remove hacks, check that all
4744 anonymous types are called "<anon>"
4745 (odr_type_p): Simplify; add check for "<anon>"
4746 (odr_subtypes_equivalent): Add odr_type_p check.
4747 * tree.c (need_assembler_name_p): Even anonymous namespace needs
4750 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
4752 * ipa-utils.h (method_class_type): Remove.
4753 * cgraphunit.c (walk_polymorphic_call_targets): Use
4754 TYPE_METHOD_BASETYPE.
4755 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
4756 on main variants only.
4757 (method_class_type): Remove.
4758 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
4759 (build_type_inheritance_graph): Likewise.
4760 * ipa-icf.c (sem_function::equals_wpa): Likewise.
4761 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
4762 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
4764 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
4766 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
4767 is_typedef_decl, typedef_variant_p): Constify.
4768 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
4769 is_typedef_decl, typedef_variant_p): Constify.
4771 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4773 * defaults.h (gen_tablejump): New function.
4774 (HAVE_tablejump): Add default value.
4778 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4780 * defaults.h (gen_store_multiple): New function.
4781 (HAVE_store_multiple): Add default value.
4782 * expr.c (move_block_from_reg): Adjust.
4784 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4786 * defaults.h (gen_load_multiple): New function.
4787 (HAVE_load_multiple): Add default value.
4788 * expr.c (move_block_to_reg): Adjust.
4790 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4792 * defaults.h (gen_mem_signal_fence): New function.
4793 (HAVE_mem_signal_fence): Add default value.
4796 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4798 * defaults.h (gen_memory_barrier): New function.
4799 (HAVE_memory_barrier): Add default value.
4802 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4804 * defaults.h (gen_mem_thread_fence): New function.
4805 (HAVE_mem_thread_fence): Add default definition.
4808 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4810 * combine.c (find_split_point): Check the value of HAVE_lo_sum
4811 instead of if it is defined.
4812 (combine_simplify_rtx): Likewise.
4813 * lra-constraints.c (process_address_1): Likewise.
4814 * config/darwin.c: Adjust.
4815 * genconfig.c (main): Always define HAVE_lo_sum.
4817 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4819 * genmatch.c (parser::parse_operation): Reject expanding
4820 operator-list inside 'for'.
4822 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4824 * genmatch.c (parser::parse_for): Reject iterator if used as
4827 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4829 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
4830 after end of id-list.
4832 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
4834 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
4835 we do not try to compute canonical type for type that does not need
4837 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
4839 * tree.h (type_with_alias_set_p): New.
4841 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
4843 * tree.c (gimple_canonical_types_compatible_p): Do not compare
4844 function attributes.
4845 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
4847 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
4849 * Makefile.in (check_gcc_parallelize): Delete.
4850 (lang_checks_parallelized): Update comment.
4852 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
4854 PR rtl-optimization/66237
4855 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
4856 location of an "as_a" cast.
4858 2015-05-22 Jeff Law <law@redhat.com>
4860 * config/pa/pa.md (non-canonical shift-add insns): Remove.
4861 (peepholes with non-canonical RTL sources): Remove.
4862 (peepholes for indexed stores of FP regs in integer modes): Match and
4863 generate canonical RTL.
4865 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
4867 PR tree-optimization/63387
4868 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
4869 ((x ord x) & (y ord y) -> (x ord y),
4870 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
4871 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
4872 vectors like scalars.
4874 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
4876 * convert.c (convert_to_integer, convert_to_vector): Include the
4877 types in the error message.
4879 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
4881 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
4884 2015-05-22 Jeff Law <law@redhat.com>
4886 * config/pa/pa.md (integer_indexed_store splitters): Use
4887 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
4888 insns -- adjusting the constant 2nd operand accordingly.
4890 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
4891 (plus (ashift X log2) Y) if it is a split point.
4893 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
4894 out of hppa_legitimize_address to handle both forms of a multiply
4896 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
4897 Always generate the ASHIFT variant as the result is not directly
4898 used in a MEM. Update comments and refactor slightly to improve
4901 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4904 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
4905 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
4906 (aarch64_composite_type_p): Return false if given type and mode are
4909 2015-05-22 Richard Biener <rguenther@suse.de>
4911 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
4913 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
4914 patterns when determining whether SLP is pure.
4915 (vect_is_slp_reduction): Remove check for pattern stmts.
4916 (vect_is_simple_reduction_1): Remove dead code.
4917 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
4918 (vect_get_and_check_slp_defs): Pass in the stmt number.
4919 Allow the first def in a reduction to be not a pattern stmt when
4920 the rest of the stmts def are patterns.
4921 (vect_build_slp_tree_1): Allow tcc_expression codes like
4922 SAD_EXPR and DOT_PROD_EXPR.
4923 (vect_build_slp_tree): Adjust.
4924 (vect_analyze_slp): Refactor and move BB vect error message ...
4925 (vect_slp_analyze_bb_1): ... here.
4927 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
4929 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
4930 for CSWTCH temporary.
4932 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4934 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
4935 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
4938 2015-05-22 Richard Biener <rguenther@suse.de>
4940 PR tree-optimization/66251
4941 * tree-vect-stmts.c (vectorizable_conversion): Properly
4942 set STMT_VINFO_VEC_STMT even for the SLP case.
4944 2015-05-22 Marek Polacek <polacek@redhat.com>
4946 * doc/extend.texi: Use @pxref instead of @xref.
4948 2015-05-22 hiraditya <hiraditya@msn.com>
4950 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
4953 2015-05-22 Richard Biener <rguenther@suse.de>
4955 PR tree-optimization/65701
4956 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4957 Move peeling cost models into one place. Peel for alignment
4958 for single loads only if an aligned load is cheaper than
4961 2015-05-22 Marek Polacek <polacek@redhat.com>
4964 * doc/extend.texi (Enumerator Attributes): New section.
4965 Document syntax of enumerator attributes.
4967 2015-05-22 Richard Biener <rguenther@suse.de>
4969 * tree-vect-loop.c (get_reduction_op): New function.
4970 (vect_model_reduction_cost): Use it, add reduc_index parameter.
4971 Make ready for BB reductions.
4972 (vect_create_epilog_for_reduction): Use get_reduction_op.
4973 (vectorizable_reduction): Init reduc_index to a valid value.
4974 Adjust vect_model_reduction_cost call.
4975 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
4976 operand for reduction defaults. Add SAD_EXPR support.
4977 Assert we have a neutral op for SLP reductions.
4978 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
4979 walking pattern stmt ops only recurse to SSA names.
4981 2015-05-22 Richard Biener <rguenther@suse.de>
4983 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
4984 assert with guard, remove check on detected reduction.
4985 (vect_recog_sad_pattern): Likewise.
4986 (vect_recog_widen_sum_pattern): Likewise.
4988 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4990 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
4991 __always_inline__ attribute.
4992 (vaesdq_u8): Likewise.
4993 (vaesmcq_u8): Likewise.
4994 (vaesimcq_u8): Likewise.
4995 (vsha1cq_u32): Likewise.
4996 (vsha1mq_u32): Likewise.
4997 (vsha1pq_u32): Likewise.
4998 (vsha1h_u32): Likewise.
4999 (vsha1su0q_u32): Likewise.
5000 (vsha1su1q_u32): Likewise.
5001 (vsha256hq_u32): Likewise.
5002 (vsha256h2q_u32): Likewise.
5003 (vsha256su0q_u32): Likewise.
5004 (vsha256su1q_u32): Likewise.
5005 (vmull_p64): Likewise.
5006 (vmull_high_p64): Likewise.
5008 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5010 * final.c (final_scan_insn): Don't check HAVE_peephole with the
5012 * output.h: Likewise.
5013 * genconfig.c (main): Alwways define HAVE_peephole.
5014 * genpeep.c: Don't emit checks of HAVE_peephole.
5016 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5018 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
5019 check HAVE_conditional_move with the preprocessor.
5021 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5023 * genconfig.c (main): Always define HAVE_conditional_move.
5024 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
5025 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
5028 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5030 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
5031 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
5032 and FRAME_POINTER_REGNUM with the preprocessor.
5034 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5036 * defaults.h: Add default for STACK_PUSH_CODE.
5037 * expr.c: Don't redefine STACK_PUSH_CODE.
5038 * recog.c: Likewise.
5040 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5042 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
5043 sched-deps.c: Use if instead of preprocessor checks with
5044 STACK_GROWS_DOWNWARD.
5046 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5048 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
5050 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
5051 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
5052 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
5053 * doc/tm.texi: Regenerate.
5055 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
5058 * config/i386/constraints.md (Bg): New constraint for GOT memory
5060 * config/i386/i386.md (*call_got_x32): New pattern.
5061 (*call_value_got_x32): Likewise.
5062 * config/i386/predicates.md (GOT_memory_operand): New predicate.
5064 2015-05-21 Jakub Jelinek <jakub@redhat.com>
5066 PR tree-optimization/66233
5067 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
5070 2015-05-21 Jeff Law <law@redhat.com>
5072 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
5073 than MULT for shadd sequences.
5075 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
5077 * alias.c (alias_stats): New static var.
5078 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
5079 (dump_alias_stats_in_alias_c): New function.
5080 * alias.h (dump_alias_stats_in_alias_c): Declare.
5081 * tree-ssa-alias.c (dump_alias_stats): Call it.
5083 2015-05-08 Michael Matz <matz@suse.de>
5085 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
5087 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
5088 (STMT_VINFO_STRIDED_P): ... this.
5089 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
5090 (vect_verify_datarefs_alignment): Likewise.
5091 (vect_enhance_data_refs_alignment): Likewise.
5092 (vect_analyze_data_ref_access): Likewise.
5093 (vect_analyze_data_refs): Accept strided stores.
5094 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
5095 (vect_model_load_cost): Adjust for macro rename.
5096 (vectorizable_mask_load_store): Likewise.
5097 (vectorizable_load): Likewise.
5098 (vectorizable_store): Open code strided stores.
5100 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5102 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
5105 2015-05-21 Richard Biener <rguenther@suse.de>
5108 * match.pd: Guard pattern optimzing (int)(float)int
5109 conversions to apply only on GIMPLE.
5111 2015-05-21 Jeff Law <law@redhat.com>
5113 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
5114 multiply-accumulate/shift-add insn generation.
5116 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
5119 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
5120 operands[1] are the same.
5122 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
5125 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
5126 build_distinct_type_copy to copy bounds.
5128 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
5130 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
5131 Change to unsigned int.
5133 2015-05-20 Jeff Law <law@redhat.com>
5135 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
5136 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
5137 (pa_shadd_constant_p): Allow constants for shadd insns rather
5138 than valid scaling constants for memory addresses.
5139 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
5140 * config/pa/predicates.md (mem_shadd_operand): New predicate.
5141 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
5142 (shift-add insns using ASHIFT): New patterns.
5144 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
5146 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
5148 (fix_up_fall_thru_edges): Likewise.
5149 (fix_crossing_conditional_branches): Likewise. Promote jump targets
5150 from to rtx_insn to rtx_code_label where feasible.
5151 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
5152 gen_move_insn (returned type changed to rtx_insn).
5153 * builtins.c (expand_errno_check): Fix arguments of
5154 do_compare_rtx_and_jump (now expects rtx_code_label).
5155 (expand_builtin_acc_on_device): Likewise.
5156 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
5157 invert_jump (now exprects rtx_jump_insn).
5158 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
5159 (construct_init_block): Use rtx_code_label.
5160 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
5161 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
5162 calling redirect_jump.
5163 (patch_jump_insn): Likewise.
5164 (redirect_branch_edge): Likewise.
5165 (force_nonfallthru_and_redirect): Likewise.
5166 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
5168 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
5169 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
5170 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
5171 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
5172 to store the value retured by gen_label_rtx.
5173 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
5175 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
5176 (split_branches): Fix calls of redirect_jump.
5177 * dojump.c (jumpifnot): Promote argument type from rtx to
5179 (jumpifnot_1): Likewise.
5181 (jumpif_1): Likewise.
5182 (do_jump_1): Likewise.
5183 (do_jump): Likewise. Use rtx_code_label when feasible.
5184 (do_jump_by_parts_greater_rtx): Likewise.
5185 (do_jump_by_parts_zero_rtx): Likewise.
5186 (do_jump_by_parts_equality_rtx): Likewise.
5187 (do_compare_rtx_and_jump): Likewise.
5188 * dojump.h: Update function prototypes.
5189 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
5191 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
5193 (emit_label_before): Likewise.
5194 (emit_jump_insn_after_noloc): Likewise.
5195 (emit_jump_insn_after_setloc): Likewise.
5196 (emit_jump_insn_after): Likewise
5197 (emit_jump_insn_before_setloc): Likewise.
5198 (emit_jump_insn_before): Likewise.
5199 (emit_label_before): Promote return type to rtx_code_label.
5200 (emit_label): Likewise.
5201 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
5202 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
5204 (emit_stack_restore): Likewise.
5205 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
5206 (do_cmp_and_jump): Likewise.
5207 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
5208 from rtx to rtx_code_label.
5209 (gen_move_insn_uncast): New function.
5210 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
5211 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
5212 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
5213 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
5214 invert_jump_1 and redirect_jump_1.
5215 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
5216 do_compare_rtx_and_jump.
5217 (expand_addsub_overflow): Likewise.
5218 (expand_neg_overflow): Likewise.
5219 (expand_mul_overflow): Likewise.
5220 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
5221 return value of gen_move_insn.
5222 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
5223 * loop-doloop.c (add_test): Use rtx_code_label.
5224 (doloop_modify): Likewise.
5225 (doloop_optimize): Likewise.
5226 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
5227 * lra-constraints.c (emit_spill_move): Remove cast of value returned
5229 (inherit_reload_reg): Add cast when calling dump_insn_slim.
5230 (split_reg): Likewise.
5231 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
5233 * optabs.c (expand_binop_directly): Remove casts of values returned by
5235 (expand_unop_direct): Likewise.
5236 (expand_abs): Likewise.
5237 (maybe_emit_unop_insn): Likewise.
5238 (maybe_gen_insn): Promote return type to rtx_insn.
5239 * optabs.h: Update prototype of maybe_gen_insn.
5240 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
5242 * recog.c (struct peep2_insn_data): Promote type of insn field to
5244 (peep2_reinit_state): Use NULL instead of NULL_RTX.
5245 (peep2_attempt): Remove casts of insn in peep2_insn_data.
5246 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
5247 * recog.h (struct insn_gen_fn): Promote return types of function
5248 pointers and operator ().from rtx to rtx_insn.
5249 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
5250 (fill_eager_delay_slots): Likewise.
5251 (relax_delay_slots): Likewise.
5252 (make_return_insns): Likewise.
5253 (dbr_schedule): Likewise.
5254 (optimize_skips): Likewise.
5255 (reorg_redirect_jump): Likewise.
5256 (fill_slots_from_thread): Likewise.
5257 * reorg.h: Update prototypes.
5258 * resource.c (find_dead_or_set_registers): Use dyn_cast to
5259 rtx_jump_insn instead of check. Use it's jump_target method.
5260 * rtl.h (rtx_jump_insn::jump_label): Define new method.
5261 (rtx_jump_insn::jump_target): Define new method.
5262 (rtx_jump_insn::set_jump_target): Define new method.
5263 * rtlanal.c (tablejump_p): Promote type of one local variable.
5264 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
5265 (sched_analyze_insn): Likewise.
5266 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
5267 (print_insn): Likewise.
5268 * stmt.c (label_rtx): Promote return type to rtx_insn.
5269 (force_label_rtx): Likewise.
5270 (jump_target_rtx): Define new function.
5271 (expand_label): Use it, get rid of one cast.
5272 (expand_naked_return): Promote rtx to rtx_code_label.
5273 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
5274 (expand_case): Use rtx_code_label instread of rtx where feasible.
5275 (expand_sjlj_dispatch_table): Likewise.
5276 (emit_case_nodes): Likewise.
5277 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
5278 * store-motion.c (insert_store): Make use of new return type of
5279 gen_move_insn and remove a cast.
5280 (replace_store_insn): Likewise.
5282 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
5284 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
5285 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
5287 2015-05-20 Jeff Law <law@redhat.com>
5289 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
5290 dispose of the jump thread path when the jump threading
5291 opportunity is cancelled.
5293 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5295 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
5296 when printing the caret character.
5298 2015-05-20 Marek Polacek <polacek@redhat.com>
5300 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
5302 2015-05-20 Marek Polacek <polacek@redhat.com>
5304 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
5305 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
5306 * gimple-fold.c (canonicalize_bool): Likewise.
5307 (same_bool_result_p): Likewise.
5308 * tree-if-conv.c (parse_predicate): Likewise.
5310 2015-05-20 Marek Polacek <polacek@redhat.com>
5312 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
5313 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
5315 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5317 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
5318 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
5321 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
5323 * config/mips/mips.h (micromips_globals): Declare.
5325 2015-05-20 David Malcolm <dmalcolm@redhat.com>
5327 * timevar.def (TV_INITIALIZE_RTL): New.
5328 * toplev.c (initialize_rtl): Use an auto_timevar to account this
5329 function's time to TV_INITIALIZE_RTL.
5331 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
5333 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
5334 gimple_build_nop calls.
5335 (chkp_find_bounds_for_elem): Likewise.
5336 (chkp_get_zero_bounds): Likewise.
5337 (chkp_get_none_bounds): Likewise.
5338 (chkp_get_bounds_by_definition): Likewise.
5339 (chkp_generate_extern_var_bounds): Likewise.
5340 (chkp_get_bounds_for_decl_addr): Likewise.
5341 (chkp_get_bounds_for_string_cst): Likewise.
5343 2015-05-20 Bin Cheng <bin.cheng@arm.com>
5345 PR tree-optimization/65447
5346 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
5347 (dump_use, dump_uses): Support to dump sub use.
5348 (record_use): New parameters to support sub use. Remove call to
5350 (record_sub_use, record_group_use): New functions.
5351 (compute_max_addr_offset, split_all_small_groups): New functions.
5352 (group_address_uses, rewrite_use_address): New functions.
5353 (strip_offset): New declaration.
5354 (find_interesting_uses_address): Call record_group_use.
5355 (add_candidate): New assertion.
5356 (infinite_cost_p): Move definition forward.
5357 (add_costs): Check INFTY cost and return immediately.
5358 (get_computation_cost_at): Clear setup cost and dependent bitmap
5360 (determine_use_iv_cost_address): Compute cost for sub uses.
5361 (rewrite_use_address_1): Rename from old rewrite_use_address.
5362 (free_loop_data): Free sub uses.
5363 (tree_ssa_iv_optimize_loop): Call group_address_uses.
5365 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
5366 Jim Wilson <jim.wilson@linaro.org>
5368 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
5369 new fields loadv and storev.
5370 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
5371 Initialize loadv and storev.
5372 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
5373 (cortexa53_extra_costs): Likewise.
5374 (cortexa57_extra_costs): Likewise.
5375 (xgene1_extra_costs): Likewise.
5376 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
5379 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
5381 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
5383 (cortexa8_extra_costs): Likewise.
5384 (cortexa5_extra_costs): Likewise.
5385 (cortexa7_extra_costs): Likewise.
5386 (cortexa12_extra_costs): Likewise.
5387 (cortexa15_extra_costs): Likewise.
5388 (v7m_extra_costs): Likewise.
5390 2015-05-20 Jeff Law <law@redhat.com>
5392 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
5393 instead of open-coded version. Also delete the jump thread created
5394 within this function.
5396 2015-05-20 Alan Modra <amodra@gmail.com>
5398 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
5399 stack adjusting insn. Formatting.
5400 (rs6000_emit_prologue): Track stack adjusting insn, and use of
5401 r12. If possible, emit first -fsplit-stack arg pointer insn
5402 before stack adjust. Don't use r12 to save cr if split-stack.
5404 2015-05-20 Alan Modra <amodra@gmail.com>
5406 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
5408 (rs6000_supports_split_stack): New function.
5409 * gcc/config/rs6000/rs6000.c (machine_function): Add
5410 split_stack_arg_pointer.
5411 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
5412 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
5413 rather than virtual_incoming_args_rtx.
5414 (rs6000_va_start): Likewise.
5415 (split_stack_arg_pointer_used_p): New function.
5416 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
5417 (morestack_ref): New var.
5418 (gen_add3_const, rs6000_expand_split_stack_prologue,
5419 rs6000_internal_arg_pointer, rs6000_live_on_entry,
5420 rs6000_split_stack_space_check): New functions.
5421 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
5422 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
5423 (UNSPECV_SPLIT_STACK_RETURN): Define.
5424 (split_stack_prologue, load_split_stack_limit,
5425 load_split_stack_limit_di, load_split_stack_limit_si,
5426 split_stack_return, split_stack_space_check): New expands and insns.
5427 * gcc/config/rs6000/rs6000-protos.h
5428 (rs6000_expand_split_stack_prologue): Declare.
5429 (rs6000_split_stack_space_check): Declare.
5431 2015-05-20 Alan Modra <amodra@gmail.com>
5433 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
5434 (rs6000_stack_info): Don't zero offsets when not saving registers.
5435 (debug_stack_info): Adjust to omit printing unused offsets,
5437 (direct_return): Test vrsave_size rather than vrsave_mask.
5438 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
5439 (rs6000_emit_epilogue): Likewise.
5441 2015-05-20 Alan Modra <amodra@gmail.com>
5443 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
5444 when not saving registers.
5445 (debug_stack_info): Adjust to omit printing unused offsets,
5447 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
5450 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5453 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
5454 value_type to const char *.
5456 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
5458 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
5459 to build a biarch toolchain again.
5461 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
5463 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
5464 or implicit declarations.
5465 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
5467 (get_odr_type): Check type has linkage before adding bases.
5468 (register_odr_type): Check that type has linkage before adding it.
5469 (type_known_to_have_no_deriavations_p): Rename to ..
5470 (type_known_to_have_no_derivations_p): This one.
5471 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
5472 (type_known_to_have_no_derivations_p): This one.
5473 * ipa-polymorphic-call.c
5474 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
5477 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
5479 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
5480 (layout_type): Use RECORD_OR_UNION_TYPE_P.
5482 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5484 * config/s390/s390.c (s390_vector_bool_type_p): New function.
5485 (s390_invalid_binary_op): New function.
5486 (TARGET_INVALID_BINARY_OP): Define macro.
5488 2015-05-19 David Sherwood <david.sherwood@arm.com>
5490 * loop-invariant.c (create_new_invariant): Don't calculate address cost
5491 if mode is not a scalar integer.
5492 (get_inv_cost): Increase computational cost for unused invariants.
5494 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5496 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
5497 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
5498 * config/s390/s390-builtin-types.def: New file.
5499 * config/s390/s390-builtins.def: New file.
5500 * config/s390/s390-builtins.h: New file.
5501 * config/s390/s390-c.c: New file.
5502 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
5503 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
5504 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
5505 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
5507 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
5509 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
5510 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
5511 variable definitions.
5512 (s390_const_operand_ok): New function.
5513 (s390_expand_builtin): Rewrite.
5514 (s390_init_builtins): New function.
5515 (s390_handle_vectorbool_attribute): New function.
5516 (s390_attribute_table): Add s390_vector_bool attribute.
5517 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
5518 (s390_branch_condition_mask): Generate masks for new modes.
5519 (s390_expand_vec_compare_cc): New function.
5520 (s390_mangle_type): Add mangling for vector bool types.
5521 (enum s390_builtin): Remove.
5522 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
5524 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
5525 s390_cpu_cpp_builtins.
5526 (REGISTER_TARGET_PRAGMAS): New macro.
5527 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
5528 (insn_cmp mode attribute): Add new CC modes.
5529 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
5530 (lcbb): New pattern definition.
5531 * config/s390/s390intrin.h: Include vecintrin.h.
5532 * config/s390/t-s390: New file.
5533 * config/s390/vecintrin.h: New file.
5534 * config/s390/vector.md: Include vx-builtins.md.
5535 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
5538 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5540 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
5542 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
5543 (s390_select_ccmode): Likewise.
5544 (s390_canonicalize_comparison): Swap operands if necessary.
5545 (s390_expand_vec_compare_scalar): Expand DFmode compare using
5546 single element vector instructions.
5547 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
5548 (s390_branch_condition_mask): Generate CC masks for the new modes.
5549 * config/s390/s390.md (v0, vf, vd): New mode attributes.
5550 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
5551 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
5552 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
5553 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
5554 (*extend<DSF:mode><BFP:mode>2): New insn definition.
5555 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
5556 (extend<DSF:mode><BFP:mode>2): Turn into expander.
5557 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
5558 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
5559 (sqrt<mode>2): Add vector instruction.
5561 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5563 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
5565 * config/s390/predicates.md (const0_operand, constm1_operand)
5566 (constable_operand): Accept vector operands.
5567 * config/s390/s390-modes.def: Add supported vector modes.
5568 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
5569 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
5570 (s390_bytemask_vector_p, s390_expand_vec_strlen)
5571 (s390_expand_vec_compare, s390_expand_vcond)
5572 (s390_expand_vec_init): Add prototypes.
5573 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
5574 (s390_vector_mode_supported_p): New function.
5575 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
5576 (s390_contiguous_bitmask_vector_p): New function.
5577 (s390_bytemask_vector_p): New function.
5578 (s390_split_ok_p): Vector regs don't work either.
5579 (regclass_map): Add VEC_REGS.
5580 (s390_legitimate_constant_p): Handle vector constants.
5581 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
5582 (legitimate_reload_vector_constant_p): New function.
5583 (s390_preferred_reload_class): Handle CONST_VECTOR.
5584 (s390_reload_symref_address): Likewise.
5585 (s390_secondary_reload): Vector memory instructions only support
5586 short displacements. Rename reload*_nonoffmem* to reload*_la*.
5587 (s390_emit_ccraw_jump): New function.
5588 (s390_expand_vec_strlen): New function.
5589 (s390_expand_vec_compare): New function.
5590 (s390_expand_vcond): New function.
5591 (s390_expand_vec_init): New function.
5592 (s390_dwarf_frame_reg_mode): New function.
5593 (print_operand): Handle addresses with 'O' and 'R' constraints.
5594 (NR_C_MODES, constant_modes): Add vector modes.
5595 (s390_output_pool_entry): Handle vector constants.
5596 (s390_hard_regno_mode_ok): Handle vector registers.
5597 (s390_class_max_nregs): Likewise.
5598 (s390_cannot_change_mode_class): New function.
5599 (s390_invalid_arg_for_unprototyped_fn): New function.
5600 (s390_function_arg_vector): New function.
5601 (s390_function_arg_float): Remove size variable.
5602 (s390_pass_by_reference): Handle vector arguments.
5603 (s390_function_arg_advance): Likewise.
5604 (s390_function_arg): Likewise.
5605 (s390_return_in_memory): Vector values are returned in a VR if
5607 (s390_function_and_libcall_value): Handle vector arguments.
5608 (s390_gimplify_va_arg): Likewise.
5609 (s390_call_saved_register_used): Consider the arguments named.
5610 (s390_conditional_register_usage): Disable v16-v31 for non-vec
5612 (s390_preferred_simd_mode): New function.
5613 (s390_support_vector_misalignment): New function.
5614 (s390_vector_alignment): New function.
5615 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
5616 (TARGET_VECTOR_MODE_SUPPORTED_P)
5617 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
5618 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
5619 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
5620 (TARGET_VECTOR_ALIGNMENT): Define target macro.
5621 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
5622 (FIRST_PSEUDO_REGISTER): Increase value.
5623 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
5624 (VECTOR_REG_P): Define macros.
5625 (FIXED_REGISTERS, CALL_USED_REGISTERS)
5626 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
5627 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
5628 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
5629 Add vector registers.
5630 (CANNOT_CHANGE_MODE_CLASS): Call C function.
5631 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
5632 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
5634 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
5635 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
5636 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
5637 (VR*_REGNUM): New constants.
5638 (ALL): New mode iterator.
5639 (INTALL): Remove mode iterator.
5641 (movti): Implement TImode moves for VRs.
5642 Disable TImode splitter for VR targets.
5643 Implement splitting TImode GPR<->VR moves.
5644 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
5645 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
5646 reload<mode>_la_in, reload<mode>_la_out.
5647 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
5648 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
5649 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
5650 (mov<mode> SF SD): Prefer lder, lde for loading.
5651 Add lrl and strl instructions.
5652 Add vector instructions.
5653 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
5654 Call s390_expand_vec_strlen on z13.
5655 (*cc_to_int): Change predicate to nonimmediate_operand.
5656 (addti3): Rename to *addti3. New expander.
5657 (subti3): Rename to *subti3. New expander.
5658 * config/s390/vector.md: New file.
5660 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5662 * common/config/s390/s390-common.c (processor_flags_table): Add
5664 * config.gcc: Add z13.
5665 * config/s390/s390-opts.h (enum processor_type): Add
5667 * config/s390/s390.c (s390_adjust_priority): Check for
5669 (s390_reorg): Likewise.
5670 (s390_sched_reorder): Likewise.
5671 (s390_sched_variable_issue): Likewise.
5672 (s390_loop_unroll_adjust): Likewise.
5673 (s390_option_override): Likewise. Default to -mvx when available.
5674 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
5675 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
5676 (TARGET_VX_ABI): Define macros.
5678 (TARGET_DEFAULT): Add MASK_OPT_VX.
5679 * config/s390/s390.md ("cpu" attribute): Add z13.
5680 ("cpu_facility" attribute): Add vec.
5681 * config/s390/s390.opt (processor_type): Add z13.
5683 * doc/invoke.texi: Add z13 option for -march.
5685 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5687 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
5688 mode check to make sure that only scalar integer values are
5691 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
5693 * tree.c (verify_type_variant): Fix #undef.
5694 (gimple_canonical_types_compatible_p): Move here from lto.c
5695 (verify_type): Verify TYPE_CANONICAL compatibility.
5696 * tree.h (gimple_canonical_types_compatible_p): Declare.
5698 2015-05-19 Jakub Jelinek <jakub@redhat.com>
5701 * tree.h (OMP_TEAMS_COMBINED): Define.
5702 * gimplify.c (enum gimplify_omp_var_data): Add
5703 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
5704 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
5705 (omp_notice_variable): Accept both ORT_TEAMS
5706 and ORT_COMBINED_TEAMS. Don't recurse if
5707 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
5708 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
5710 (omp_no_lastprivate): New function.
5711 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
5712 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
5713 notice_outer and set appropriate bits, otherwise make
5714 sure default(none) combined constructs won't complain.
5715 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
5716 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
5717 omp_no_lastprivate either remove the clause or turn it
5718 into OMP_CLAUSE_PRIVATE.
5719 (gimplify_omp_for): Fix up handling of implicit
5720 lastprivate or linear iterators.
5721 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
5723 * omp-low.c (lower_omp_for_lastprivate): For combined
5724 for simd use fd.loop.n2 from the for rather than simd.
5726 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
5728 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
5729 instead of gen_rtx_raw_REG.
5730 (cris_expand_epilogue): Likewise.
5731 * config/microblaze/microblaze.c (microblaze_classify_address):
5733 * config/sparc/sparc.md: Likewise.
5735 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
5737 * config/alpha/alpha.c (alpha_legitimize_reload_address)
5738 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
5739 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
5740 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
5741 Use CASE_CONST_SCALAR_INT.
5742 (print_operand) <case 'M'>: Use mode_width_operand to check the
5743 value of the constant.
5744 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
5745 * config/alpha/predicates.md (input_operand): Use general_operand
5746 instead of match_code as operand check.
5747 (symbolic_operand): Use match_code with subexpression digits.
5748 * config/alpha/constraints.md (Q): Ditto.
5750 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5752 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
5754 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5756 * config/s390/s390.c (s390_secondary_reload): Fix check for
5757 load/store relative.
5759 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5761 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
5762 alternative_mask to uint64_t.
5764 2015-05-19 Jakub Jelinek <jakub@redhat.com>
5766 PR tree-optimization/66187
5767 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
5768 Pass TYPE_SIGN to tree_int_cst_min_precision. If
5769 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
5771 2015-05-19 David Malcolm <dmalcolm@redhat.com>
5773 * diagnostic.c (diagnostic_report_current_module): Strengthen
5774 local "new_map" from const line_map * to
5775 const line_map_ordinary *.
5776 * genmatch.c (error_cb): Likewise for local "map".
5777 (output_line_directive): Likewise for local "map".
5778 * input.c (expand_location_1): Likewise for local "map".
5779 Pass NULL rather than &map to
5780 linemap_unwind_to_first_non_reserved_loc, since the value is never
5781 read from there, and the value written back not read from here.
5782 (is_location_from_builtin_token): Strengthen local "map" from
5783 const line_map * to const line_map_ordinary *.
5784 (dump_location_info): Strengthen locals "map" from
5785 line_map *, one to const line_map_ordinary *, the other
5786 to const line_map_macro *.
5787 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
5788 const line_map * to const line_map_macro *.
5789 (maybe_unwind_expanded_macro_loc): Add a call to
5790 linemap_check_macro when writing to the "map" field of the
5792 Introduce local const line_map_ordinary * "ord_map", using it in
5793 place of "map" in the part of the function where we know we have
5794 an ordinary map. Strengthen local "m" from const line_map * to
5795 const line_map_ordinary *.
5797 2015-05-19 Nick Clifton <nickc@redhat.com>
5800 * config/msp430/msp430.md (zero_extendhisi2): Add support for
5801 separate source and destination registers.
5803 2015-05-19 Richard Biener <rguenther@suse.de>
5805 PR tree-optimization/66165
5806 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
5807 for no load permutation.
5809 PR tree-optimization/66185
5810 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
5811 when building the SLP node from scalars.
5813 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
5814 Tristan Gingold <gingold@adacore.com>
5816 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
5817 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
5818 (expand_stack_restore): Call record_new_stack_level.
5819 (expand_stack_save): Do not call do_pending_stack_adjust.
5820 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
5821 * calls.c (expand_call): Call record_new_stack_level for alloca.
5822 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
5823 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
5824 (update_sjlj_context): New global function.
5825 * except.h (update_sjlj_context): Declare.
5826 * explow.c (record_new_stack_level): New global function.
5827 (allocate_dynamic_stack_space): Call record_new_stack_level.
5828 * explow.h (record_new_stack_level): Declare.
5829 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
5830 * cfgrtl.c (duplicate_insn_chain): Likewise.
5832 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5834 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
5835 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
5836 STACK_GROWS_DOWNWARD as normal if.
5837 (expand_call): Likewise.
5839 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
5842 * config/sh/sh.md (*round_int_even): New insn_and_split and
5843 accompanying new unnamed split.
5845 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
5847 * bitmap.c (bitmap_set_range): Handle count==1 specially.
5848 (bitmap_clear_range): Likewise.
5849 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
5850 bitmap_set_range unconditionally.
5851 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
5852 * df-scan.c (df_mark_reg): Likewise.
5853 * haifa-sched.c (setup_ref_regs): Likewise.
5854 * sched-rgn.c (update_live_1): Likewise.
5856 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
5858 * regs.h (END_HARD_REGNO): Delete.
5859 (END_REGNO): Move to...
5861 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
5862 * caller-save.c (mark_set_regs): Likewise.
5863 * combine.c (move_deaths, distribute_notes): Likewise.
5864 * cse.c (invalidate, invalidate_for_call): Likewise.
5865 * df-scan.c (df_ref_record): Likewise.
5866 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
5867 (record_last_reg_set_info): Likewise.
5868 * reg-stack.c (convert_regs_exit): Likewise.
5869 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
5870 * resource.c (update_live_status): Likewise.
5871 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
5873 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
5875 * rtl.h (reg_info): Add an nregs field.
5876 (REG_NREGS): Use it.
5877 (SET_REGNO_RAW): Delete.
5878 (set_regno_raw): New function.
5879 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
5880 (END_REGNO): Redefine in terms of REG_NREGS.
5881 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
5883 * emit-rtl.c (set_mode_and_regno): Likewise.
5884 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
5885 instead of SET_REGNO_RAW.
5887 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
5889 * rtl.h (PUT_MODE_RAW): New macro.
5890 (PUT_REG_NOTE_KIND): Use it.
5891 (set_mode_and_regno): Declare.
5892 (gen_raw_REG): Change regno to "unsigned int".
5893 (gen_rtx_REG): Change "unsigned" to "unsigned int".
5894 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
5895 use set_mode_and_regno to change the mode of registers.
5896 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
5897 * emit-rtl.c (set_mode_and_regno): New function.
5898 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
5899 * caller-save.c (reg_save_code): Use set_mode_and_regno.
5900 * expr.c (init_expr_target): Likewise.
5901 * ira.c (setup_prohibited_mode_move_regs): Likewise.
5902 * postreload.c (reload_cse_simplify_operands): Likewise.
5904 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
5906 * caller-save.c (init_caller_save): Use word_mode and
5907 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
5908 * expr.c (init_expr_target): Likewise.
5909 * ira.c (setup_prohibited_mode_move_regs): Likewise.
5910 * postreload.c (reload_cse_regs_1): Likewise.
5912 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
5914 * rtl.def (REG): Change format to "r".
5915 * rtl.h (rtunion): Remove rt_reg.
5916 (reg_info): New structure.
5917 (rtx_def): Add reg field to main union.
5918 (X0REGATTR): Delete.
5919 (REG_CHECK): New macro.
5920 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
5921 * rtl.c (rtx_format): Document "r".
5922 (rtx_code_size): Handle REG specially.
5923 * gengenrtl.c (special_format): Return true for formats
5925 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
5926 Deal with REG_ATTRS after the field loop.
5927 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
5928 * expmed.c (init_expmed): Call gen_raw_REG instead of
5930 * expr.c (init_expr_target): Likewise.
5931 * regcprop.c (maybe_mode_change): Likewise.
5932 * varasm.c (make_decl_rtl): Likewise.
5933 * final.c (leaf_renumber_regs_insn): Return early after
5935 * genemit.c (gen_exp): Handle 'r' fields.
5936 * genpeep.c (match_rtx): Likewise.
5937 * gensupport.c (subst_pattern_match): Likewise.
5938 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
5939 (alter_constraints, subst_dup): Likewise.
5940 * read-rtl.c (read_rtx_code): Likewise.
5941 * print-rtl.c (print_rtx): Likewise.
5942 * genrecog.c (find_operand, find_matching_operand): Likewise.
5943 (validate_pattern, match_pattern_2): Likewise.
5944 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
5945 (rtx_test::regno_field): New function.
5946 (operator ==, safe_to_hoist_p, transition_parameter_type)
5947 (parameter_type_string, print_parameter_value)
5948 (print_nonbool_test, print_test): Handle new enum values.
5949 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
5950 * lra-constraints.c (operands_match_p): Likewise.
5952 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
5954 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
5955 Change type of new_regno to unsigned int.
5956 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
5957 new_regno to unsigned int.
5958 (df_ref_change_reg_with_loc): Remove old_regno parameter.
5959 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
5960 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
5961 (SET_REGNO_RAW): Add space after ",".
5963 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
5965 * rtl.h (REG_NREGS): New macro
5966 * alias.c (record_set): Use it.
5967 * cfgcleanup.c (mark_effect): Likewise.
5968 * combine.c (likely_spilled_retval_1): Likewise.
5969 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
5970 (move_deaths, distribute_notes): Likewise.
5971 * cselib.c (cselib_record_set): Likewise.
5972 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
5973 * df-scan.c (df_mark_reg): Likewise.
5974 * dse.c (look_for_hardregs): Likewise.
5975 * dwarf2out.c (reg_loc_descriptor): Likewise.
5976 (multiple_reg_loc_descriptor): Likewise.
5977 * expr.c (write_complex_part, read_complex_part): Likewise.
5978 (emit_move_complex): Likewise.
5979 * haifa-sched.c (setup_ref_regs): Likewise.
5980 * ira-lives.c (mark_hard_reg_live): Likewise.
5981 * lra.c (lra_set_insn_recog_data): Likewise.
5982 * mode-switching.c (create_pre_exit): Likewise.
5983 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
5984 (reload_combine_recognize_pattern): Likewise.
5985 (reload_combine_note_use, move2add_record_mode): Likewise.
5986 (reload_cse_move2add): Likewise.
5987 * reg-stack.c (subst_stack_regs_pat): Likewise.
5988 * regcprop.c (kill_value, copy_value): Likewise.
5989 (copyprop_hardreg_forward_1): Likewise.
5990 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
5991 (build_def_use): Likewise.
5992 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
5993 (deps_analyze_insn): Likewise.
5994 * sched-rgn.c (check_live_1, update_live_1): Likewise.
5995 * sel-sched.c (count_occurrences_equiv): Likewise.
5996 * valtrack.c (dead_debug_insert_temp): Likewise.
5998 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
6000 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
6001 * dse.c (note_add_store): Likewise.
6002 * ira-lives.c (mark_hard_reg_dead): Likewise.
6003 * loop-invariant.c (mark_reg_store): Likewise.
6004 (mark_reg_death): Likewise.
6005 * postreload.c (reload_combine): Likewise.
6006 (reload_combine_note_store): Likewise.
6007 (reload_combine_note_use): Likewise.
6008 * recog.c (peep2_reg_dead_p): Likewise.
6010 2015-05-19 Alan Modra <amodra@gmail.com>
6012 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
6013 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
6014 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
6016 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
6017 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
6018 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
6019 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
6021 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
6023 * config/mips/mips.md (JOIN_MODE): New mode iterator.
6024 (join2_load_Store<JOIN_MODE:mode>): New pattern.
6025 (join2_loadhi): Likewise.
6026 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
6027 load-load and store-stores.
6028 * config/mips/mips.opt (mload-store-pairs): New option.
6029 (TARGET_LOAD_STORE_PAIRS): New macro.
6030 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
6031 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
6032 * config/mips/mips.c (mips_load_store_bonding_p): New function.
6034 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
6036 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
6038 * dojump.c (do_compare_rtx_and_jump): Likewise.
6039 * expmed.c (emit_store_flag_1): Likewise.
6040 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
6041 * final.c (sprint_ul): Use std::reverse for reversing a string.
6042 * fold-const.c (extract_muldiv_1): Use std::swap.
6043 * genmodes.c (emit_mode_int_n): Likewise.
6044 * ifcvt.c (dead_or_predicable): Likewise.
6045 * ira-build.c (ira_merge_live_ranges): Likewise.
6046 (swap_allocno_copy_ends_if_necessary): Likewise.
6047 * ira.c (ira_setup_alts): Likewise.
6048 * loop-iv.c (iv_analyze_expr): Likewise.
6049 (implies_p): Likewise.
6050 (canon_condition): Likewise.
6051 * lra-constraints.c (swap_operands): Likewise.
6052 * lra-lives.c (lra_merge_live_ranges): Likewise.
6053 * omega.c (swap): Remove.
6055 (omega_unprotect_1): Use std::swap.
6056 (omega_solve_geq): Likewise.
6057 * optabs.c (expand_binop_directly): Likewise.
6058 (expand_binop): Likewise.
6059 (emit_conditional_move): Likewise.
6060 (emit_conditional_add): Likewise.
6061 * postreload.c (reload_cse_simplify_operands): Likewise.
6062 * reg-stack.c (emit_swap_insn): Likewise.
6063 (swap_to_top): Likewise.
6064 (compare_for_stack_reg): Likewise.
6065 (subst_asm_stack_regs): Likewise.
6066 * reload.c (find_reloads): Likewise.
6067 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
6068 * sel-sched.c (invoke_reorder_hooks): Likewise.
6069 (create_block_for_bookkeeping): Likewise.
6070 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
6071 (lambda_matrix_right_hermite): Use std::swap.
6072 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
6073 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
6074 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
6075 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
6076 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
6077 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
6078 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
6079 * tree-vrp.c (compare_ranges): Likewise.
6080 * var-tracking.c (add_with_sets): Likewise.
6081 (vt_find_locations): Likewise.
6083 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
6085 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
6087 (FBSD_ENDFILE_SPEC): Likewise.
6088 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
6089 config/freebsd-spec.h.
6090 (ENDFILE_SPEC): Likewise.
6092 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
6093 Richard Henderson <rth@redhat.com>
6096 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
6097 Check for a memory location that is not a reference (using an AND)
6098 to an unaligned location here.
6099 * config/alpha/predicates.md (normal_memory_operand): Remove.
6101 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
6103 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
6104 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
6106 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
6108 * config/mips/mips.c (micromips_globals): New variable.
6109 (mips_set_compression_mode): Save and reinitialize target-dependent
6110 state for microMIPS.
6112 2015-05-18 Martin Liska <mliska@suse.cz>
6114 * dbgcnt.def: Add new counter.
6115 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
6117 2015-05-18 Martin Liska <mliska@suse.cz>
6119 * dbgcnt.def: Sort counters.
6120 * opts.c (common_handle_option): Do not compile if
6121 -fdbg-cnt-list is enabled.
6123 2015-05-18 Tom de Vries <tom@codesourcery.com>
6125 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
6126 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
6127 address operator to va_list operand.
6128 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
6130 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
6132 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
6133 * config/s390/s390.c (s390_gimplify_va_arg): Same.
6134 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
6136 2015-05-18 Tom de Vries <tom@codesourcery.com>
6138 * tree-ssa-tail-merge.c: Fix whitespace.
6140 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
6142 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
6143 cortex-a17, and cortex-a17.cortex-a7.
6145 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
6148 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
6150 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
6153 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
6154 QImode inner modes for TARGET_AVX512BW. Force mask operand
6155 to a register for AVX512F modes.
6157 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
6159 * toplev.c (emit_debug_global_declarations): Do not output debug info
6160 when doing slim LTO objects.
6162 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
6164 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
6165 odr_types_equivalent_p): Declare.
6166 (odr_type_p): Use gcc_checking_assert.
6167 (type_in_anonymous_namespace_p) Declare.
6168 (type_with_linkage_p): Declare.
6169 * common.opt (Wlto-type-mismatch): New warning.
6170 * ipa-devirt.c (compound_type_base): New function.
6171 (odr_or_derived_type_p): New function.
6172 (odr_types_equivalent_p): New function.
6173 (add_type_duplicate): Simplify.
6174 (type_with_linkage_p): Add hack to prevent false positives on C types
6175 (type_in_anonymous_namespace_p): Likewise.
6176 * tree.c (need_assembler_name_p): Use type_with_linkage.
6177 * tree.h (type_in_anonymous_namespace_p): Remove.
6178 * doc/invoke.texi (-Wlto-type-mismatch): Document
6180 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
6182 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
6183 (verify_type): Verify STRING_FLAG.
6185 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6188 * tree-pretty-print.c (percent_K_format): Replace locus pointer
6189 with accessor function.
6190 * tree-diagnostic.c (diagnostic_report_current_function): Use
6191 diagnostic_location function.
6192 (maybe_unwind_expanded_macro_loc): Likewise.
6193 (virt_loc_aware_diagnostic_finalizer): Likewise.
6194 (default_tree_printer): Replace locus pointer with accessor function.
6195 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
6196 (diagnostic_set_info_translated): Initialize second location.
6197 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
6198 (diagnostic_show_locus): Handle two locations. Call
6199 diagnostic_print_caret_line.
6200 (diagnostic_print_caret_line): New.
6201 (default_diagnostic_starter): Use diagnostic_location function.
6202 (diagnostic_report_diagnostic): Use diagnostic_location function.
6203 (verbatim): Do not set text.locus.
6204 * diagnostic.h (struct diagnostic_info): Remove location field.
6205 (struct diagnostic_context): Make caret_chars an array of two.
6206 (diagnostic_location): New inline.
6207 (diagnostic_expand_location): Handle two locations.
6208 (diagnostic_same_line): New inline.
6209 (diagnostic_print_caret_line): Declare.
6210 (CARET_LINE_MARGIN): New constant.
6211 * pretty-print.c (pp_printf): Do not set text.locus.
6212 (pp_verbatim): Do not set text.locus.
6213 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
6214 (struct text_info): Replace locus pointer with locations
6215 array. Add accessor functions.
6217 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
6218 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6221 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
6222 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
6223 large constants in register instead of splitting them.
6225 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
6228 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
6229 replacements in memory addresses.
6230 (get_unaligned_address): Ditto.
6232 2015-05-16 James Bowman <james.bowman@ftdichip.com>
6234 * config/ft32/*: New files for FT32 port.
6235 * doc/install.texi: Add FT32 information.
6236 * doc/invoke.texi: Add FT32 information.
6237 * doc/md.texi: Add FT32 information.
6238 * doc/contrib.texi: Self added.
6240 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
6242 PR tree-optimization/64454
6243 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
6244 (-1 - A -> ~A): Remove unnecessary condition.
6246 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
6248 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
6249 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
6250 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
6252 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
6254 * ipa-chkp.h (chkp_wrap_function): New.
6255 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
6256 (chkp_wrap_function_name): New.
6257 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
6258 to get wrapper name.
6259 * lto-cgraph.c: Include ipa-chkp.h.
6260 (input_cgraph_1): Avoid alias chain for wrappers.
6262 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
6265 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
6266 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
6268 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6270 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
6271 (AARCH64_FL_SLOWMUL): Delete.
6272 (AARCH64_FL_CRC): Redefine to 1<<3.
6273 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
6275 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6277 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
6280 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
6282 * config/alpha/alpha.md (extendqidi2): Use general_operand
6283 instead of some_operand for operand[1] predicate.
6284 (extendhidi2): Ditto.
6285 (cbranchdi4): Use general_operand instead of some_operand
6286 for operand[1] and operands[2] predicates.
6288 * config/alpha/predicates.md (some_operand): Remove unused predicate.
6289 (some_ni_operand): Ditto.
6291 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
6293 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
6294 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
6295 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
6296 low part of the constant using alpha_emit_set_const_1.
6297 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
6299 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
6301 * varasm.c (output_constant_pool_1): Pass down alignment from
6302 constant pool entry's descriptor to output_constant_pool_2.
6303 (output_object_block): Add comment prior to call to
6304 output_constant_pool_1.
6306 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
6308 PR rtl-optimization/65862
6309 * target.def (ira_change_pseudo_allocno_class): New hook.
6310 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
6312 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
6313 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
6315 * ira-costs.c (find_costs_and_classes): Call the hook and change
6316 classes when it is necessary.
6317 * doc/tm.texi: Update.
6319 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
6321 * config/i386/i386.md (sibcall_memory): Check that register with
6322 callee address is not also used as one of the arguments, instead
6323 of checking that it is not live after the sibcall.
6324 (sibcall_pop_memory): Ditto.
6325 (sibcall_value_memory): Ditto.
6326 (sibcall_value_pop_memory): Ditto.
6328 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
6330 * generic-match-head.c (types_match): Handle non-types.
6331 * gimple-match-head.c (types_match): Likewise.
6332 * match.pd: Remove unnecessary TREE_TYPE for types_match.
6334 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
6336 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
6337 (csneg3<mode>_insn): Enable expansion of pattern.
6339 2015-05-14 Nick Clifton <nickc@redhat.com>
6341 * config/rl78/rl78.c (rl78_select_section): Select the correct
6342 default section based upon the category of the decl.
6344 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
6346 PR rtl-optimization/30967
6347 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
6348 destination mode for the cost of scc patterns.
6350 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
6352 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
6353 using SWIM248 mode iterator.
6354 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
6355 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
6356 for operand[2] constraint.
6357 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
6359 2015-05-13 Jakub Jelinek <jakub@redhat.com>
6362 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
6363 make sure it is never noreturn, even when the task body does not
6365 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
6366 right before GIMPLE_OMP_RETURN.
6367 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
6368 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
6369 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
6371 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6373 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
6374 * tree-ssa-math-opts.c: Include params.h
6375 (pow_synth_sqrt_info): New struct.
6376 (representable_as_half_series_p): New function.
6377 (get_fn_chain): Likewise.
6378 (print_nested_fn): Likewise.
6379 (dump_fractional_sqrt_sequence): Likewise.
6380 (dump_integer_part): Likewise.
6381 (expand_pow_as_sqrts): Likewise.
6382 (gimple_expand_builtin_pow): Use above to attempt to expand
6383 pow as series of square roots. Removed now unused variables.
6385 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
6387 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
6388 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
6389 Remove *p0 and *p1 arguments. Rewrite function.
6390 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
6391 (alpha_split_const_mov): Update calls to alpha_extract_integer and
6392 alpha_emit_set_long_const.
6393 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
6394 (alpha_output_mi_thunk_osf): Ditto.
6395 * config/alpha/alpha.md (movti): Do not check operands[1]
6398 2015-05-13 Richard Biener <rguenther@suse.de>
6400 PR tree-optimization/66129
6401 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
6403 (vect_schedule_slp_instance): Fix typo.
6405 2015-05-13 David Malcolm <dmalcolm@redhat.com>
6407 * common.opt (fdump-internal-locations): New option.
6408 * input.c: Include diagnostic-core.h.
6409 (get_end_location): New function.
6410 (write_digit): New function.
6411 (write_digit_row): New function.
6412 (dump_location_range): New function.
6413 (dump_labelled_location_range): New function.
6414 (dump_location_info): New function.
6415 * input.h (dump_location_info): New prototype.
6416 * toplev.c (compile_file): Handle flag_dump_locations.
6418 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
6420 * gimple-expr.h (is_gimple_constant): Reorder.
6421 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
6423 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
6425 * combine.c (simplify_set): When generating a CC set, if the
6426 source already is in the correct mode, do not wrap it in a
6427 compare. Simplify the rest of that code.
6429 2015-05-13 Richard Biener <rguenther@suse.de>
6431 PR tree-optimization/66123
6432 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
6435 2015-05-13 Richard Biener <rguenther@suse.de>
6438 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
6440 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
6442 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
6444 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
6445 * aclocal.m4: Regenerated with automake-1.11.6.
6447 2015-05-13 Tom de Vries <tom@codesourcery.com>
6449 PR tree-optimization/66010
6450 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
6451 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
6452 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
6453 and rval based on do_deref.
6455 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
6458 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
6459 link time constants into adress expressions and therefore set
6462 2015-05-13 Jakub Jelinek <jakub@redhat.com>
6465 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
6466 Use SWI248 iterator instead of SWI.
6467 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
6468 Use eq_attr "alternative" "0" instead of match_test in
6469 length_immediate attribute computation.
6470 (*mulvhi4, *mulvhi4_1): New define_insns.
6473 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
6474 SIGNED to get precision of non-negative value.
6476 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
6479 * function.c (diddle_return_value_1): Process bounds first.
6480 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
6483 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
6485 PR rtl-optimization/64616
6486 * loop-invariant.c (can_move_invariant_reg): New.
6487 (move_invariant_reg): Call above new function to decide whether
6488 instruction can just be moved, skipping creation of temporary
6491 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
6494 * i386.c (ix86_function_sseregparm): Only return -1 if local function
6495 with implied regparm is called from -mno-sse function.
6496 (init_cumulative_args): Output error if ix86_function_sseregparm
6497 return -1 and SSE register would be needed.
6498 (function_arg_advance_32): Likewise.
6499 (function_arg_32): Likewise.
6500 * i386.h (ix86_args): Add decl field.
6502 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
6505 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
6506 inlines across optimization boundary.
6508 2015-05-12 Jason Merrill <jason@redhat.com>
6510 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
6511 string literal and macro name.
6513 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
6515 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
6516 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
6517 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
6519 2015-05-12 David Malcolm <dmalcolm@redhat.com>
6521 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
6522 (-Wmisleading-indentation): New option.
6523 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
6525 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
6527 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
6528 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
6529 (alpha_extract_integer): Ditto.
6530 (alpha_legitimate_constant_p): Ditto.
6531 (alpha_split_tmode_pair): Ditto.
6532 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
6533 (alpha_expand_mov): Ditto.
6534 (print_operand): Remove handling of 'H' modifier.
6535 <case 'm'>: Remove CONST_DOUBLE handling.
6536 (summarize_insn): Handle CONST_WIDE_INT.
6537 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
6539 (movti): Handle CONST_WIDE_INT.
6540 * config/alpha/constraints.md ('H'): Remove constraint definition.
6541 ('G'): Do not match MODE_FLOAT class.
6542 * config/alpha/predicates.md (const0_operand): Also match
6544 (non_add_const_operand): Ditto.
6545 (non_zero_const_operand): Ditto.
6546 (some_operand): Ditto.
6547 (input_operand): Ditto. Handle CONST_WIDE_INT.
6548 (and_operand): Do not match const_double.
6549 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
6551 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
6554 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
6555 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
6556 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
6557 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
6558 is_mm_seq_cst, is_mm_sync): New accessor functions.
6559 * builtins.c (expand_builtin_sync_operation,
6560 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
6561 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
6562 (get_memmodel, expand_builtin_atomic_compare_exchange,
6563 expand_builtin_atomic_load, expand_builtin_atomic_store,
6564 expand_builtin_atomic_clear): Use new accessor routines.
6565 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
6566 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
6567 (maybe_emit_sync_lock_test_and_set): Use new accessors and
6568 MEMMODEL_SYNC_ACQUIRE.
6569 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
6570 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
6571 expand_atomic_store): Use new accessors.
6572 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
6573 * tsan.c (instrument_builtin_call): Update check for memory model beyond
6574 final enum to use MEMMODEL_LAST.
6575 * c-family/c-common.c: Use new accessor for memmodel_base.
6576 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
6578 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
6579 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
6580 mem_thread_fence, *dmb): Likewise.
6581 * config/alpha/alpha.c (alpha_split_compare_and_swap,
6582 alpha_split_compare_and_swap_12): Likewise.
6583 * config/arm/arm.c (arm_expand_compare_and_swap,
6584 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
6585 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
6586 atomic_loaddi): Likewise.
6587 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
6589 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
6590 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
6592 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
6593 atomic_store<mode>, atomic_compare_and_swap<mode>,
6594 atomic_exchange<mode>): Use new accessors.
6595 * config/mips/mips.c (mips_process_sync_loop): Likewise.
6596 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
6597 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
6598 rs6000_post_atomic_barrier): Add new cases.
6599 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
6600 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
6601 (atomic_load<mode>): Add new cases and use new accessors.
6602 (store_quadpti): Add new cases.
6603 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
6605 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
6606 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
6609 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
6611 * ipa-devirt.c (type_with_linkage_p): New function.
6612 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
6614 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
6615 (can_be_name_hashed_p): Simplify.
6616 (hash_odr_name): Check that type has linkage before checking if it is
6618 (types_same_for_odr): Likewise.
6619 (odr_name_hasher::equal): Likewise.
6620 (odr_subtypes_equivalent_p): Likewise.
6621 (warn_types_mismatch): Likewise.
6622 (get_odr_type): Likewise.
6623 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
6624 * ipa-utils.h (odr_type_p): Move offline.
6625 * tree.c (need_assembler_name_p): Fix handling of types
6627 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
6629 2015-05-12 David Malcolm <dmalcolm@redhat.com>
6631 * timevar.c (timevar_enable): Delete in favor of...
6632 (g_timer): New global.
6633 (struct timevar_def): Move to timevar.h inside class timer.
6634 (struct timevar_stack_def): Likewise.
6635 (timevars): Delete global in favor of field "m_timevars" within
6636 class timer in timevar.h
6637 (stack): Likewise, in favor of field "m_stack".
6638 (unused_stack_instances): Likewise, in favor of field
6639 "m_unused_stack_instances".
6640 (start_time): Likewise, in favor of field "m_start_time".
6641 (get_time): Eliminate check for timevar_enable.
6642 (timer::timer): New function, built from part of timevar_init.
6643 (timevar_init): Rewrite idempotency test from using
6644 "timevar_enable" bool to using dynamic allocation of "g_timer".
6645 Move rest of implementation into timer's constructor.
6646 (timevar_push_1): Rename to...
6647 (timer::push): ...this, adding "m_" prefixes to variables that
6648 are now fields of timer.
6649 (timevar_pop_1): Likewise, rename to...
6650 (timer::pop): ...this, and add "m_" prefixes.
6651 (timevar_start): Replace test for "timevar_enable" with one for
6652 "g_timer", and move bulk of implementation to...
6653 (timer::start): ...here, adding "m_" prefixes.
6654 (timevar_stop): Likewise, from here...
6655 (timer::stop): ...to here.
6656 (timevar_cond_start): Likewise, from here...
6657 (timer::cond_start): ...to here.
6658 (timevar_cond_stop): Likewise, from here...
6659 (timer::cond_stop): ...to here.
6660 (validate_phases): Rename to...
6661 (timer::validate_phases): ...this, and add "m_" prefixes. Make
6662 locals "total" and "tv" const.
6663 (timevar_print): Rename to...
6664 (timer::print): ...this, and add "m_" prefixes. Make locals
6665 "total" and "tv" const. Eliminate test for timevar_enable.
6666 * timevar.h (timevar_enable): Eliminate.
6667 (g_timer): New declaration.
6668 (timevar_push_1): Eliminate.
6669 (timevar_pop_1): Eliminate.
6670 (timevar_print): Eliminate.
6671 (class timer): New class.
6672 (timevar_push): Rewrite to use g_timer.
6673 (timevar_pop): Likewise.
6674 * toplev.c (toplev::~toplev): Likewise.
6676 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
6678 * arm-protos.h (arm_sched_autopref): Delete.
6679 (tune_params): Re-organize, use enums for flag values.
6680 (FUSE_OPS): New macro.
6681 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
6682 (ARM_PREFETCH_BENEFICIAL): Likewise.
6683 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
6684 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
6685 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
6686 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
6687 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
6688 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
6689 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
6690 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
6692 (arm_option_override, thumb2_reorg, arm_print_tune_info)
6693 (aarch_macro_fusion_pair_p): Update uses of current_tune.
6694 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
6696 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
6698 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
6701 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
6702 Sandra Loosemore <sandra@codesourcery.com>
6704 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
6706 (REG_CLASS_NAMES): Add "IJMP_REGS".
6707 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
6708 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
6709 use new "c" register constraint.
6710 * config/nios2/constraint.md (c): New register constraint
6711 corresponding to IJMP_REGS.
6713 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
6715 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
6716 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
6717 define_splits): Delete, revamp, transmogrify into ...
6718 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
6719 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
6720 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
6723 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
6725 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
6726 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
6728 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
6730 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
6731 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
6732 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
6733 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
6734 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
6735 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
6736 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
6737 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
6738 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
6739 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
6740 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
6741 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
6742 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
6743 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
6744 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
6745 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
6746 and 30 corresponding splitters): Delete.
6748 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
6750 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
6753 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
6755 * combine.c (recog_for_combine_1): New function, factored out
6756 from recog_for_combine.
6757 (change_zero_ext): New function.
6758 (recog_for_combine): If recog fails, try again with the pattern
6759 modified by change_zero_ext; if that still fails, restore the
6762 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
6764 * combine.c (get_undo_marker): New function.
6765 (undo_to_marker): New function, largely factored out from ...
6766 (undo_all): ... this. Adjust.
6768 2015-05-12 Richard Biener <rguenther@suse.de>
6770 PR tree-optimization/66101
6771 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
6772 fixup if we turn a loop exit edge to a fallthru edge.
6774 2015-05-12 Richard Biener <rguenther@suse.de>
6776 PR tree-optimization/37021
6777 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
6778 (SLP_TREE_TWO_OPERATORS): New define.
6779 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
6780 SLP_TREE_TWO_OPERATORS.
6781 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
6783 (vect_build_slp_tree): Adjust.
6784 (vect_analyze_slp_cost_1): Likewise.
6785 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
6786 emitting two vector stmts and mixing the results.
6788 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
6790 * call.c (print_z_candidates): Remove dead code.
6792 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6794 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
6795 and zEC12_simple_fp.
6796 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
6799 2015-05-12 Tom de Vries <tom@codesourcery.com>
6801 PR tree-optimization/66010
6802 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
6804 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
6805 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
6806 va_lists are passed, and remove corresponding handling.
6807 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
6808 do_deref argument to ifn_va_arg.
6809 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
6812 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6815 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
6816 REG before taking its REGNO.
6818 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
6820 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
6821 rsp->sign_bit_copies and rsp->nonzero_bits into ...
6822 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
6823 present to get more accurate information about the number of sign bit
6824 copies and non zero bits.
6826 2015-05-12 Richard Biener <rguenther@suse.de>
6828 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
6829 do not allow unrolling.
6831 2015-05-11 Richard Henderson <rth@redhat.com>
6833 * config/i386/i386-modes.def (CCP): New.
6834 * config/i386/i386.c (put_condition_code): Handle it.
6835 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
6837 2015-05-11 Richard Henderson <rth@redhat.com>
6839 * target.def (md_asm_clobbers): Replace with...
6840 (md_asm_adjust): this.
6841 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
6842 (TARGET_MD_ASM_ADJUST): New.
6844 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
6845 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
6846 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
6848 * cfgexpand.c (check_operand_nalternatives): Accept vector of
6849 constraints instead of lists of outputs and inputs.
6850 (expand_asm_stmt): Save and restore input_location around the
6851 body of the function. Move asm data into vectors instead of
6852 building tree lists. Generate cleanup sequences as needed,
6853 rather than waiting til the end. Use new md_asm_adjust hook.
6855 * config/vxworks.c: Include vec.h before target.h.
6856 * gimple.c: Likewise.
6857 * incpath.c: Likewise.
6858 * mode-switching.c: Likewise.
6860 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
6861 (cris_md_asm_adjust): this.
6862 (TARGET_MD_ASM_CLOBBERS): Remove.
6863 (TARGET_MD_ASM_ADJUST): New.
6864 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
6865 (ix86_md_asm_adjust): this.
6866 (TARGET_MD_ASM_CLOBBERS): Remove.
6867 (TARGET_MD_ASM_ADJUST): New.
6868 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
6869 (mn10300_md_asm_adjust): this.
6870 (TARGET_MD_ASM_CLOBBERS): Remove.
6871 (TARGET_MD_ASM_ADJUST): New.
6872 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
6873 (rs6000_md_asm_adjust): this.
6874 (TARGET_MD_ASM_CLOBBERS): Remove.
6875 (TARGET_MD_ASM_ADJUST): New.
6876 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
6877 (visium_md_asm_adjust): this.
6878 (TARGET_MD_ASM_CLOBBERS): Remove.
6879 (TARGET_MD_ASM_ADJUST): New.
6881 2015-05-11 Richard Henderson <rth@redhat.com>
6883 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
6884 if noutputs is zero.
6885 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
6887 * cfgexpand.c (expand_asm_operands): Merge into...
6888 (expand_asm_stmt): ... here.
6890 * cfgexpand.c (expand_asm_operands): Don't call
6891 resolve_asm_operand_names.
6892 * stmt.c (resolve_asm_operand_names): Clarify block comment.
6894 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
6896 * dwarf2out.c (gen_member_die): Sanity check that we access
6897 TYPE_MAIN_VARIANT for TYPE_METHODS.
6898 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
6899 checking TYPE_METHODS.
6900 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
6902 (build_distinct_type_copy): Clear TYPE_METHODS.
6903 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
6904 (verify_type): Allow TYPE_METHODS to be error_mark_node.
6905 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
6907 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
6909 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
6910 (emit_pattern_before_setloc): Likewise.
6912 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
6914 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
6915 for define_peephole2s.
6916 (get_peephole2_pattern): New function.
6917 (main): Use it. Call validate_pattern.
6919 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
6921 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
6922 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
6923 (Last callee saved reg is different for AVR_TINY architecture)
6925 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
6927 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
6928 when looking for memory references.
6930 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
6933 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
6934 via function pointers.
6936 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
6938 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
6939 indirect call by forcing address into a pseudo with -fno-plt.
6940 * common.opt (flag_plt): New option.
6941 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
6942 ([-fno-plt]): Document.
6944 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
6947 * config/rs6000/option-defaults.h: Add space between string literal
6950 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
6952 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
6953 accross ARM targets.
6955 2015-05-11 Christian Bruel <christian.bruel@st.com>
6957 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
6958 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
6960 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
6962 PR rtl-optimization/66076
6963 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
6964 Don't grow the heap array if it is already big enough from a
6967 2015-05-11 Christian Bruel <christian.bruel@st.com>
6969 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
6970 (is_called_in_ARM_mode): Remove.
6971 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
6972 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
6973 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
6974 arm_declare_function_name.
6976 2015-05-11 Christian Bruel <christian.bruel@st.com>
6978 * config/arm/arm.c (arm_option_override): Reoganized and split into :
6979 (arm_option_params_internal); New function.
6980 (arm_option_check_internal): New function.
6981 (arm_option_override_internal): New function.
6982 (thumb_code, thumb1_code): Remove.
6983 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
6984 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
6985 (thumb_code, thumb1_code): Remove.
6986 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
6988 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
6990 * config/alpha/alpha.c (alpha_emit_set_const_1)
6991 (alpha_emit_set_long_const, alpha_extract_integer)
6992 (alpha_legitimate_constant_p, alpha_split_const_mov)
6993 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
6994 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
6995 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
6997 * config/alpha/predicates.md (mode_mask_operand): Do not match
6999 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
7000 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
7001 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
7002 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
7003 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
7005 2015-05-11 Jakub Jelinek <jakub@redhat.com>
7008 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
7009 default_binds_local_p_2.
7010 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
7011 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
7013 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
7015 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
7017 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
7019 Patch by Richard Biener
7020 * coverage.c (coverage_obj_init): Delay building of type variant
7021 until the type is finished.
7023 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
7025 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
7026 mismatch between C and C++ type; compoare correctly ARG_TYPES
7027 for non-prototypes and output correctly parameter index for METHOD_TYPE.
7028 (odr_types_equivalent_p): Fix wording of warning about attributes;
7029 it is OK to match prototype and non-prototype.
7031 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
7033 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
7034 TYPE_ARG_TYPES list.
7035 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
7036 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
7038 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
7040 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
7041 * tree.h (is_lang_specific): Constify.
7043 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
7045 PR tree-optimization/64454
7046 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
7049 2015-05-08 Jason Merrill <jason@redhat.com>
7051 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
7052 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
7053 config/darwin.h, config/darwin9.h, config/elfos.h,
7054 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
7055 config/microblaze/microblaze.h, config/mips/mips.h,
7056 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
7057 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
7058 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
7059 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
7060 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
7061 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
7062 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
7063 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
7064 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
7065 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
7066 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
7067 between string literal and macro name.
7069 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7071 * jump.c: Change argument types to rtx_insn *.
7074 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7076 * lra-constraints.c: Change argument type to rtx_insn *.
7078 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7080 * df-problems.c: Change argument type to rtx_insn *.
7082 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7084 * combine.c: Change argument type to rtx_insn *.
7086 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7089 * rtlanal.c: Change argument type to rtx_insn *.
7091 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7093 * sched-deps.c: Change argument types to rtx_insn *.
7094 * sched-int.h: Adjust.
7096 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7098 * dwarf2cfi.c: Change argument type to rtx_insn *.
7100 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7102 * ira.c (decrease_live_ranges_number): Changetype of local
7103 variable to rtx_insn *.
7104 * recog.c: Change argument types to rtx_insn *.
7107 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7109 * reorg.c: Change argument types to rtx_insn *.
7111 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7113 * ira-color.c: Change argument types to rtx_insn *.
7114 * lra-eliminations.c: Likewise.
7117 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7119 * gcse.c: Change argument types to rtx_insn *.
7121 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7123 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
7125 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7127 * emit-rtl.c (emit_debug_insn_before): Change argument type to
7131 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7133 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
7136 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7138 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
7141 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7143 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
7146 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7148 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
7151 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7153 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
7157 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7159 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
7163 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7165 * except.c (can_nonlocal_goto): Change type of argument to
7169 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7171 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
7174 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7176 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
7177 * cfgrtl.c (can_delete_label_p): Adjust.
7180 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7182 * reorg.c (stop_search_p): Change argument to rtx_insn *.
7184 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7186 * except.c (make_reg_eh_region_note): Change argument to
7188 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
7191 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7193 * mode-switching.c (commit_mode_sets): Change type of local
7194 variable from rtx to rtx_insn *.
7196 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
7198 * doc/install.texi (--enable-languages): Add missing jit and lto info.
7199 Add ^ to grep command.
7200 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
7201 arg to last gimple_simplify declaration. Add missing gimple_build
7202 declaration for built-in function case with four tree args.
7204 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
7205 Szabolcs Nagy <szabolcs.nagy@arm.com>
7207 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
7208 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
7209 (GNU_USER_DYNAMIC_LINKERN32): Update.
7211 2015-05-08 Richard Biener <rguenther@suse.de>
7213 PR tree-optimization/66036
7214 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
7215 Handle strided group loads.
7216 (vect_verify_datarefs_alignment): Likewise.
7217 (vect_enhance_data_refs_alignment): Likewise.
7218 (vect_analyze_group_access): Likewise.
7219 (vect_analyze_data_ref_access): Likewise.
7220 (vect_analyze_data_ref_accesses): Likewise.
7221 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
7222 (vectorizable_load): Likewise.
7224 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
7226 * config/rs6000/rs6000.md: Require operand inequality in one
7229 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
7230 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7232 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
7234 * config/rx/rx.md (movdi, movdf): Likewise.
7235 Likewise for define_peephole2s.
7237 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
7239 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
7240 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
7241 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
7242 vtst_u64): Rewrite using gcc vector extensions.
7244 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
7246 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
7247 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
7249 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
7251 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
7253 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
7255 * config/glibc-stdint.h (OPTION_MUSL): Define.
7256 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
7257 Change the definition based on OPTION_MUSL for 64 bit targets.
7258 * config/linux.h (OPTION_MUSL): Redefine.
7259 * config/alpha/linux.h (OPTION_MUSL): Redefine.
7260 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
7261 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
7263 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
7264 Szabolcs Nagy <szabolcs.nagy@arm.com>
7266 * config.gcc (LIBC_MUSL): New tm_defines macro.
7267 * config/linux.h (OPTION_MUSL): Define.
7268 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
7269 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
7270 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
7271 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
7272 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
7273 * config/linux.opt (mmusl): New option.
7274 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
7275 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
7276 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
7277 * configure: Regenerate.
7279 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
7280 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7283 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
7284 * config/i386/knetbsd-gnu64.h: New file.
7286 2015-05-08 Marek Polacek <polacek@redhat.com>
7289 * doc/invoke.texi: Document -Woverride-init-side-effects.
7291 2015-05-07 Marek Polacek <polacek@redhat.com>
7294 * doc/invoke.texi: Document -Wshift-negative-value.
7296 2015-05-06 Aditya Kumar <hiraditya@msn.com>
7298 * gcov-tool.c (do_merge): Refactore to remove int ret.
7299 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
7300 !type == FUNC to type != FUNC.
7301 * reload.h (struct target_reload): Changee to type of
7302 x_spill_indirect_levels from bool to unsigned char.
7304 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
7306 * rtl.h (always_void_p): New function.
7307 * gengenrtl.c (always_void_p): Likewise.
7308 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
7309 with code foo are always VOIDmode.
7310 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
7311 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
7312 compare-elim.c, config/aarch64/aarch64.c,
7313 config/aarch64/aarch64.md, config/alpha/alpha.c,
7314 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
7315 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
7316 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
7317 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
7318 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
7319 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
7320 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
7321 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
7322 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
7323 config/ia64/vect.md, config/iq2000/iq2000.c,
7324 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
7325 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
7326 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
7327 config/mep/mep.c, config/microblaze/microblaze.c,
7328 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
7329 config/mn10300/mn10300.c, config/msp430/msp430.c,
7330 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
7331 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
7332 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
7333 config/rs6000/altivec.md, config/rs6000/rs6000.c,
7334 config/rs6000/rs6000.md, config/rs6000/vector.md,
7335 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
7336 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
7337 config/sh/sh.md, config/sh/sh_treg_combine.cc,
7338 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
7339 config/spu/spu.md, config/stormy16/stormy16.c,
7340 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
7341 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
7342 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
7343 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
7344 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
7345 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
7346 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
7347 var-tracking.c: Update calls accordingly.
7349 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
7353 * varasm.c (function_mergeable_rodata_prefix): New function.
7354 (mergeable_string_section): Use it.
7355 (mergeable_constant_section): Use it.
7357 2015-05-07 Jeff Law <law@redhat.com>
7360 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
7361 simplifier to narrow arithmetic.
7362 * generic-match-head.c: (types_match, single_use): New functions.
7363 * gimple-match-head.c: (types_match, single_use): New functions.
7365 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7367 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
7370 2015-05-07 Richard Biener <rguenther@suse.de>
7372 PR tree-optimization/66002
7373 * passes.def: Schedule another pass_merge_phi after ifcombine, right
7376 2015-05-07 Marek Polacek <polacek@redhat.com>
7377 Martin Uecker <uecker@eecs.berkeley.edu>
7379 * doc/invoke.texi: Document -fsanitize=bounds-strict.
7380 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
7381 into SANITIZE_NONDEFAULT.
7382 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
7384 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
7387 * config/alpha/alpha.c (alpha_override_options_after_change): New.
7388 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
7389 (alpha_override_options): Move align_loops, align_jumps and
7390 align_functions handling into alpha_override_options_after_change.
7392 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
7393 Chris Jones <chrisj@nvidia.com>
7394 Joshua Conner <jconner@nvidia.com>
7396 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
7397 linking of crtfastmath.o.
7398 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
7400 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
7402 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
7403 (cstore<mode>4_unsigned_imm): New expander.
7404 (cstore<mode>4): Remove empty constraint strings. Use the new
7407 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
7410 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
7413 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
7415 * config/aarch64/geniterators.sh: Use standard BRE in sed.
7417 2015-05-06 Alan Modra <amodra@gmail.com>
7420 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
7421 (UNSPEC_NOP): Define.
7422 (reload_vsx_from_gpr<mode>): Add missing DONE.
7423 (reload_gpr_from_vsx<mode>): Likewise.
7424 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
7425 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
7427 2015-05-06 Christian Bruel <christian.bruel@st.com>
7430 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
7431 align_jumps, align_functions into aarch64_override_options_after_change.
7433 2015-05-06 Richard Biener <rguenther@suse.de>
7435 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
7436 vect_transform_slp_perm_load to check if we support a permutation
7437 for basic-block vectorization.
7439 2015-05-06 Nick Clifton <nickc@redhat.com>
7441 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
7442 used, even if it is not being used as a frame pointer.
7444 2015-05-05 Jason Merrill <jason@redhat.com>
7446 * dwarf2out.c (gen_member_die): Don't emit anything for an
7447 anonymous class constructor.
7449 2015-05-05 David Malcolm <dmalcolm@redhat.com>
7451 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
7452 that it reflects the block structure.
7453 (afdo_propagate_edge): Likewise.
7454 (afdo_calculate_branch_prob): Likewise.
7455 (afdo_annotate_cfg): Likewise.
7456 * cfgcleanup.c (equal_different_set_p): Likewise.
7457 (try_crossjump_to_edge): Likewise.
7458 * cgraph.c (cgraph_node::verify_node): Likewise.
7459 * cgraphunit.c (expand_all_functions): Likewise.
7460 * config/i386/i386.c (ix86_expand_copysign): Likewise.
7461 (exact_dependency_1): Likewise.
7462 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
7463 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
7464 * gensupport.c (process_define_subst): Likewise.
7465 * lto-wrapper.c (merge_and_complain): Likewise.
7466 * tree-if-conv.c (if_convertible_bb_p): Likewise.
7467 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
7468 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
7469 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
7470 * tree-vect-loop.c (vectorizable_reduction): Likewise.
7471 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
7472 * tree-vect-stmts.c (vectorizable_shift): Likewise.
7473 * tree-vrp.c (vrp_finalize): Likewise.
7474 * tree.c (variably_modified_type_p): Likewise.
7476 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
7478 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
7479 on darwin12 and later.
7480 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
7481 file to pass -rdynamic on darwin12 and later.
7482 * config/darwin.opt (rdynamic): Add.
7484 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
7486 * doc/extend.texi (C Extensions): Update menu for moved Variable
7487 Attributes and Type Attributes sections.
7489 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
7492 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
7493 if rep_8byte stringop strategy was specified for 32-bit target.
7495 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
7498 * config/i386/i386.md (vector convert to float spltiter): Check for
7499 xmm16+, when splitting scalar float conversion.
7500 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
7502 2015-05-05 Nick Clifton <nickc@redhat.com>
7504 * config/msp430/msp430-opts.h (enum msp430_regions): New.
7505 * config/msp430/msp430.c (msp430_override_options): Complain if
7506 -mcode-region or -mdata-region is used on a non MSP430X.
7507 (msp430_section_attr): New function. Checks lower, upper and
7509 (msp430_attribute_table): Add lower, upper and either.
7510 (gen_prefix): New function. Generates a prefix for a section
7512 (msp430_select_section): New function - handles the choice of
7513 section for an object. Takes into account memory region
7514 attributes and options.
7515 (msp430_function_section): Use gen_prefix.
7516 (TARGET_SECTION_TYPE_FLAGS): Define.
7517 (msp430_section_type_flags): New function.
7518 (TARGET_ASM_UNIQUE_SECTION): Define.
7519 (msp430_unique_section): New function.
7520 (msp430_output_aligned_decl_common): New function.
7521 (msp430_do_not_relax_short_jumps): New function.
7522 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
7524 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
7525 * config/msp430/msp430-protos.h
7526 (msp430_do_not_relax_short_jumps): New prototype.
7527 (msp430_output_aligned_decl_common): New prototype.
7528 * config/msp430/msp430.md (length): New attribute.
7529 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
7530 then use a long code sequence for short jumps.
7531 * config/msp430/msp430.opt (mcode-region): New.
7532 (mdata-region): New.
7533 * doc/invoke.texi: Document new options.
7534 * doc/extend.texi: Document new attributes.
7536 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
7538 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
7539 (tune_params): Add field branch_costs.
7540 (aarch64_branch_cost): Declare.
7541 * gcc/config/aarch64.c (generic_branch_cost): New.
7542 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
7543 (cortexa53_tunings): Likewise.
7544 (cortexa57_tunings): Likewise.
7545 (thunderx_tunings): Likewise.
7546 (xgene1_tunings): Likewise.
7547 (aarch64_branch_cost): Define.
7548 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
7550 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
7552 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
7553 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
7554 * config/i386/i386.md: Ditto.
7555 * config/i386/winnt.c: Ditto.
7557 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
7559 * doc/extend.texi (__atomic Builtins): Move implementation details
7560 to the end of the description, rewrite opening paragraphs, state
7561 difference with __sync builtins, state C11/C++11 assumptions,
7562 weaken itemized descriptions, add explanation of memory model
7563 behaviour, expand description of compare-exchange, simplify text.
7565 2015-05-05 Renlin Li <renlin.li@arm.com>
7567 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
7569 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
7571 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
7572 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
7573 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
7574 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
7575 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
7576 * configure: Regenerate.
7577 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
7578 * doc/install.texi (aarch64*-*-*): Document new
7579 --enable-fix-cortex-a53-843419 option.
7580 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
7581 and -mno-fix-cortex-a53-843419 options.
7583 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
7586 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
7588 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
7590 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
7591 fix overactive TYPE_MIN_VALUE check and add FIXME for type
7592 compatibility problems.
7594 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
7596 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
7598 (cbranchsi4_reg): New.
7599 * config/microblaze/microblaze.c
7600 (microblaze_expand_conditional_branch_reg): New.
7601 * config/microblaze/microblaze-protos.h
7602 (microblaze_expand_conditional_branch_reg): New prototype.
7604 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
7606 * config/microblaze/microblaze.md (peephole2): New.
7608 2015-05-04 Jeff Law <law@redhat.com>
7611 2015-05-04 Jeff Law <law@redhat.com>
7613 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
7614 simplifier to narrow arithmetic.
7615 * generic-match-head.c: (types_match, single_use): New functions.
7616 * gimple-match-head.c: (types_match, single_use): New functions.
7618 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
7621 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
7622 (split_branches): Likewise.
7624 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
7626 * common.opt (fdelete-null-pointer-checks): Init to -1.
7627 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
7628 override flag_delete_null_pointer_checks default.
7629 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
7630 behavior re address zero. Better document target-specific behavior.
7631 (-fisolate-errneous-paths-dereference): Mention relationship to
7632 -fdelete-null-pointer-checks.
7634 2015-05-04 Jakub Jelinek <jakub@redhat.com>
7636 PR tree-optimization/65984
7637 * ubsan.c: Include tree-cfg.h.
7638 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
7639 stmt_could_throw_p test, rename can_throw variable to ends_bb.
7641 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
7643 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
7644 to CONST_DOUBLE_P predicate.
7645 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
7646 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
7647 allow only operands that satisfy standard_sse_constant_p predicate.
7648 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
7649 to CONST_DOUBLE_P predicate.
7651 2015-05-04 Jeff Law <law@redhat.com>
7653 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
7654 simplifier to narrow arithmetic.
7655 * generic-match-head.c: (types_match, single_use): New functions.
7656 * gimple-match-head.c: (types_match, single_use): New functions.
7658 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
7660 * config/arm/arm.c: Restore bootstrap.
7662 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
7664 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
7665 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
7666 as CONST_WIDE_INT, not CONST_DOUBLE.
7667 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
7668 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
7669 (ix86_find_base_term): Do not check for CONST_DOUBLE.
7670 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
7671 (ix86_build_signbit_mask): Rewrite using wide ints.
7672 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
7673 (ix86_rtx_costs): Handle CONST_WIDE_INT.
7674 (find_constant): Ditto.
7675 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
7677 * config/i386/predicates.md (x86_64_immediate_operand)
7678 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
7679 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
7680 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
7681 (const0_operand): Also match const_wide_int.
7682 (constm1_operand): Ditto.
7683 (const1_operand): Ditto.
7685 2015-05-04 Richard Biener <rguenther@suse.de>
7687 PR tree-optimization/65965
7688 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
7689 store groups at gaps.
7691 2015-05-04 Richard Biener <rguenther@suse.de>
7693 PR tree-optimization/65935
7694 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
7695 then make sure to apply that swapping to the IL.
7697 2015-05-04 Jakub Jelinek <jakub@redhat.com>
7699 * Makefile.in (PATCHLEVEL_c): New variable.
7700 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
7701 expand the same way as if DEVPHASE_c was non-empty.
7703 2015-05-04 Kai Tietz <ktietz@redhat.com>
7706 * lto-wrapper.c (run_gcc): Open filename
7709 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
7711 * doc/extend.texi (Variable Attributes, Type Attributes): Move
7712 sections up in file, to immediately after the Function Attributes
7715 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
7717 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
7719 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7721 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
7722 (insert_partition_copy_on_edge): Adjust.
7723 (insert_rtx_to_part_on_edge): Likewise.
7724 (insert_part_to_rtx_on_edge): Likewise.
7726 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7728 * function.c (set_return_jump_label): Change type of argument to
7730 * function.h (set_return_jump_label): Adjust.
7732 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7734 * reload.h (struct reg_equivs_t): Change type of init to
7736 * ira.c (fix_reg_equiv_init): Adjust.
7737 * reload1.c (eliminate_regs_1): Likewise.
7738 (init_eliminable_invariants): Likewise.
7740 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7742 * cselib.c (fp_setter_insn): Take a rtx_insn *.
7743 * cselib.h (fp_setter_insn): Adjust.
7745 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7747 * recog.c (struct validate_replace_src_data): Change type of
7748 insn field to rtx_insn *.
7749 (validate_replace_src_group): Change type of argument to rtx_insn *.
7750 * recog.h (validate_replace_src_group): Adjust.
7752 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7754 * haifa-sched.c: Change the type of some variables to rtx_insn *.
7755 * sched-deps.c: Likewise.
7756 * sched-int.h: Likewise.
7757 * sched-rgn.c: Likewise.
7758 * sel-sched.c: Likewise.
7760 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7763 * config/i386/i386.c: Change the type of some arguments to
7765 * config/arm/arm.c: Likewise.
7767 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7769 * lra-constraints.c: Change type of some arguments to rtx_insn *.
7771 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7773 * regcprop.c (kill_autoinc_value): Change type of argument to
7776 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7778 * genrecog.c (print_subroutine): Adjust.
7779 * recog.c (get_bool_attr_mask_uncached): Likewise.
7780 * recog.h (struct recog_data_d): Change the type of insn to
7783 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7785 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
7787 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7789 * df-problems.c (df_set_note): Change type of argument to
7792 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7794 * builtins.c (expand_builtin_trap): Change type of local
7795 variable to rtx_insn *.
7796 (add_sched_insns_for_speculation): Likewise.
7797 (ix86_emit_save_regs): Likewise.
7798 (get_scratch_register_on_entry): Likewise.
7799 (ix86_emit_restore_reg_using_pop): Likewise.
7800 (ix86_emit_leave): Likewise.
7801 (ix86_emit_restore_regs_using_mov): Likewise.
7802 (ix86_expand_epilogue): Likewise.
7804 (rl78_alloc_physical_registers_umul): Likewise.
7805 * cselib.c (discard_useless_locs): Likewise.
7806 (cselib_invalidate_regno): Likewise.
7807 (cselib_invalidate_mem): Likewise.
7808 * function.c (expand_function_start): Likewise.
7809 (emit_use_return_register_into_block): Likewise.
7811 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
7812 * ifcvt.c (noce_get_alt_condition): Likewise.
7813 * loop-doloop.c (doloop_condition_get): Likewise.
7814 * lra-constraints.c (inherit_in_ebb): Likewise.
7815 * modulo-sched.c (sms_schedule_by_order): Likewise.
7816 * recog.c (next_insn_tests_no_inequality): Likewise.
7817 * reorg.c (emit_delay_sequence): Likewise.
7818 (update_reg_dead_notes): Likewise.
7819 (fix_reg_dead_note): Likewise.
7820 (fill_slots_from_thread): Likewise.
7821 (delete_computation): Likewise.
7823 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
7825 * doc/extend.texi (Variable Attributes): Add menu and proper
7826 @nodes to subsections. Move Microsoft Windows attributes to
7827 their own subsection.
7828 (Type Attributes): Reorganize introduction to remove duplicate
7829 list of attributes. Add menu and proper @nodes to subsections.
7830 Alphabetize the main table of common attributes.
7832 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
7834 * match.pd: New simplification patterns.
7835 (x + (x & 1)) -> ((x + 1) & ~1)
7836 (x & ~(x & y)) -> ((x & ~y))
7837 (x | ~(x | y)) -> ((x | ~y))
7839 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7841 * target.def (attribute_table): Mention that struct attribute_spec
7842 is defined in tree-core.h rather than tree.h
7843 * doc/tm.texi: Regenerate.
7845 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
7847 * genrecog.c (test): Rename to rtx_test. Update rest of file
7850 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
7852 PR translation/65959
7853 * params.h (DEFPARAM): Rename msgid to nocmsgid.
7855 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
7857 * gcc/config/aarch64/aarch64-protos.h (tune_params):
7858 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
7859 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
7860 Return value depending on target.
7861 (generic_tunings): Initialize new target settings.
7862 (cortexa53_tunings): Likewise.
7863 (cortexa57_tunings): Likewise.
7864 (thunderx_tunings): Likewise.
7865 (xgene1_tunings): Likewise.
7867 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
7869 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
7870 Make Cortex-A53 shift costs more accurate.
7872 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7874 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
7877 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
7879 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
7880 Calculate cost of op0 and op1 in PLUS and MINUS cases.
7882 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7884 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
7885 Add cost of op0 in the compare-with-fpzero case.
7887 2015-04-30 David Malcolm <dmalcolm@redhat.com>
7889 * builtins.c (fold_builtin_1): Remove spurious second
7891 * cgraph.h (symtab_node::get_availability): Likewise.
7892 * opts.c (common_handle_option): Remove spurious second semicolon.
7893 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
7894 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
7896 2015-04-30 Caroline Tice <cmtice@google.com>
7898 PR gcov-profile/65929
7899 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
7900 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
7901 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
7902 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
7903 * doc/tm.texi: Regenerate.
7904 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
7905 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
7906 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
7907 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
7909 2015-04-30 Marek Polacek <polacek@redhat.com>
7911 * varasm.c (handle_cache_entry): Fix logic.
7913 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7915 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
7916 (*extrsi5_insn_uxtw_alt): Likewise.
7917 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
7918 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
7921 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7923 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
7926 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7928 * config/aarch64/aarch64.md
7929 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
7930 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
7931 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
7932 appropriately. Handle alternative EON form.
7934 2015-04-30 Renlin Li <renlin.li@arm.com>
7936 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
7937 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
7939 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
7942 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
7943 -fstrict-aliasing boundaries.
7945 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7947 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
7948 and [SU]MNEGL patterns.
7950 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7952 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
7953 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
7954 combined arithmetic-shift ops. Properly handle all shift and extend
7955 operations that can occur in combination with PLUS/MINUS.
7956 Rename maybe_fma to compound_p.
7957 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
7958 arithmetic and shift operations.
7960 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7962 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
7963 rather than arith_shift cost when costing ADD/MINUS of an
7966 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
7969 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
7972 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
7974 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
7975 are for the same position.
7977 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
7979 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
7981 (vectorize_loops): Use it.
7983 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
7985 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
7986 for aggregate types.
7987 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
7989 * tree.c (need_assembler_name_p): Compute mangled name for
7990 non-fundamental types and integer types.
7992 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
7994 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
7996 * expr.c (expand_expr_real_2): Likewise.
7998 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
8000 * tree.c (build_common_builtin_nodes): Do not build
8001 __builtin_alloca_with_align as equivalent of library alloca.
8003 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
8005 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
8006 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
8008 * tree.c: Include print-tree.h and ipa-utils.h
8009 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
8010 (free_lang_data_in_cgraph): Call verify_type.
8011 (verify_type_variant): New function.
8012 (verify_type): New function.
8013 * tree.h (verify_type): Declare.
8015 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
8017 * config/mips/mips-cpus.def: (mips4): Change default processor
8018 from PROCESSOR_R8000 to PROCESSOR_R10000.
8020 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
8022 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
8023 la/jalr instead of jal.
8025 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
8028 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
8029 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
8030 (setcc+movzbl peephole2): Check also clobbered reg.
8031 (setcc+andl peephole2): Ditto.
8033 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
8036 * config/nvptx/mkoffload.c (target_ilp32): New variable.
8037 (main): Set it depending on "-foffload-abi=[...]".
8038 (compile_native, main): Use it to pass "-m32" or "-m64" to the
8041 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
8044 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
8045 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
8046 Flip lane index back at assembly time for bigendian.
8048 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
8050 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
8051 * gimplify.c (gimplify_omp_workshare): Use it.
8053 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
8055 * Makefile.in (build/genrecog.o): Depend on inchash.h.
8056 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
8058 * genrecog.c: Rewrite most of the code except for the third page.
8060 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
8062 * inchash.h, inchash.c: Include bconfig.h for build objects.
8063 * Makefile.in (build/inchash.o): New rule.
8065 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
8068 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
8069 number in type attribute expression.
8071 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
8073 * loop-iv.c (canon_condition): Generalize to all types of integer
8076 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
8078 * gimple-walk.c: Prune duplicate or unneeded includes.
8079 (walk_gimple_asm): Only call parse_input_constraint or
8080 parse_output_constraint if their findings are used.
8081 Honour parse_input_constraint and parse_output_constraint
8084 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
8086 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
8088 2015-04-29 Tom de Vries <tom@codesourcery.com>
8090 PR tree-optimization/65893
8091 * passes.def (pass_all_optimizations): Move pass_stdarg to after
8094 2015-04-29 Richard Biener <rguenther@suse.de>
8096 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
8097 compute GROUP_SIZE for basic-block SLP.
8098 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
8099 take into account gaps.
8100 (vect_get_mask_element): Properly reject references to previous
8102 (vect_transform_slp_perm_load): Likewise.
8104 2015-04-29 Christian Bruel <christian.bruel@st.com>
8107 * config/i386/i386.c (ix86_default_align): New function.
8108 (ix86_override_options_after_change): Call ix86_default_align.
8109 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
8110 (ix86_override_options_after_change): New function.
8112 2015-04-28 Jeff Law <law@redhat.com>
8114 * tree-ssa-dom.c (record_equality); Fix comment typos.
8116 2015-04-28 Tom de Vries <tom@codesourcery.com>
8118 PR tree-optimization/65887
8119 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
8121 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
8123 * doc/extend.texi (Declaring Attributes of Functions): Split into
8124 subsections by target. Alphabetize the table of common attributes.
8125 Rewrite some of the introductory text to reflect the new structure.
8126 Update some cross-references to point to the new subsections.
8127 (Attribute Syntax): Put paragraph about "__" naming here. Remove
8128 duplicate copies in the discussion of function, label, and type
8131 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
8134 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
8136 2015-04-28 Jason Merrill <jason@redhat.com>
8139 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
8140 (finalize_type_size): Respect TYPE_USER_ALIGN.
8141 (layout_type) [ARRAY_TYPE]: Likewise.
8143 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
8145 * config/arm/arm.md (*arm_movt): Fix type attribute.
8146 (*cmpsi_shiftsi): Likewise.
8147 (*cmpsi_shiftsi_swp): Likewise.
8148 (*movsicc_insn): Likewise.
8149 (*cond_move): Likewise.
8150 (*if_plus_move): Likewise.
8151 (*if_move_plus): Likewise.
8152 (*if_arith_move): Likewise.
8153 (*if_move_arith): Likewise.
8154 (*if_shift_move): Likewise.
8155 (*if_move_shift): Likewise.
8156 (*arm_movtas_ze): Likewise.
8157 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
8158 redundancy and type attribute.
8159 (*thumb2_movsi_insn): Fix type attribute.
8160 (*thumb2_addsi_short): Likewise.
8161 (thumb2_addsi3_compare0): Likewise.
8162 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
8163 attributes accordingly.
8165 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
8168 * function.c (pad_to_arg_alignment): Add parentheses.
8170 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
8172 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
8173 libgcc/config/frv/elf-lib.h.
8175 2015-04-28 Tom de Vries <tom@codesourcery.com>
8177 * tree-call-cdce.c: Fix example in header comment.
8179 2015-04-28 Richard Biener <rguenther@suse.de>
8181 PR tree-optimization/62283
8182 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
8183 fails fatally and we are vectorizing a basic-block simply
8184 cause the child to be constructed piecewise.
8185 (vect_analyze_slp_cost_1): Adjust.
8186 (vect_detect_hybrid_slp_stmts): Likewise.
8187 (vect_bb_slp_scalar_cost): Likewise.
8188 (vect_get_constant_vectors): For piecewise constructed
8189 constants place them after the last def.
8190 (vect_get_slp_defs): Adjust.
8191 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
8192 externals for basic-block vectorization.
8194 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
8197 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
8199 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
8200 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
8201 (AARCH64_TUNE_FMA_STEERING): Likewise.
8202 * config/aarch64/aarch64-cores.def: Set
8203 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
8204 FMUL/FMADD instructions.
8205 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
8206 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
8207 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
8208 * config/aarch64/cortex-a57-fma-steering.h: New file.
8209 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8211 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
8213 * gensupport.c (std_preds): Add missing codes to address_operand entry.
8215 2015-04-28 Richard Biener <rguenther@suse.de>
8217 PR tree-optimization/65851
8218 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
8219 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
8220 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
8221 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
8222 (ccp_visit_phi_node): Adjust.
8223 (evaluate_stmt): For simplifications to SSA names return its
8224 lattice value if that isn't VARYING. Return immediately when
8225 simplified to a constant.
8226 (visit_assignment): Adjust.
8227 (ccp_visit_stmt): Likewise.
8229 2015-04-28 Tom de Vries <tom@codesourcery.com>
8231 PR tree-optimization/65818
8232 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
8235 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8237 * calls.c (save_fixed_argument_area): Don't check
8238 ARGS_GROW_DOWNWARD with the preprocessor.
8239 (restore_fixed_argument_area): Likewise.
8240 (mem_overlaps_already_clobbered_arg_p): Likewise.
8241 (check_sibcall_argument_overlap): Likewise.
8242 (expand_call): Likewise.
8243 (emit_library_call_value_1): Likewise.
8244 (store_one_arg): Likewise.
8245 * function.c (assign_parms): Likewise.
8246 (locate_and_pad_parm): Likewise.
8247 (pad_to_arg_alignment): Likewise.
8248 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
8250 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8252 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
8253 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
8254 * calls.c (save_fixed_argument_area): Don't chekc if
8255 ARGS_GROW_DOWNWARD is defined.
8256 (restore_fixed_argument_area): Likewise.
8257 (mem_overlaps_already_clobbered_arg_p): Likewise.
8258 (check_sibcall_argument_overlap): Likewise.
8259 (expand_call): Likewise.
8260 (emit_library_call_value_1): Likewise.
8261 (store_one_arg): Likewise.
8262 * function.c (assign_parms): Likewise.
8263 (locate_and_pad_parm): Likewise.
8264 (pad_to_arg_alignment): Likewise.
8265 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
8267 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8269 * defaults.h (gen_epilogue): New function.
8270 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
8272 * cfgrtl.c (cfg_layout_finalize): Likewise.
8273 * df-scan.c: Likewise.
8274 * function.c (thread_prologue_and_epilogue_insns): Likewise.
8275 (reposition_prologue_and_epilogue_notes): Likewise.
8276 * reorg.c (find_end_label): Likewise.
8277 * toplev.c: Likewise.
8279 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8281 * bb-reorder.c (HAVE_return): Don't check if its undefined.
8282 * defaults.h (gen_simple_return): New function.
8283 (gen_simple_return): Likewise.
8284 (HAVE_return): Add default definition to false.
8285 (HAVE_simple_return): Likewise.
8286 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
8287 HAVE_return and HAVE_simple_return are defined.
8288 * function.c (gen_return_pattern): Likewise.
8289 (convert_jumps_to_returns): Likewise.
8290 (thread_prologue_and_epilogue_insns): Likewise.
8291 * reorg.c (find_end_label): Likewise.
8292 (dbr_schedule): Likewise.
8293 * shrink-wrap.c: Likewise.
8294 * shrink-wrap.h: Likewise.
8296 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8298 * defaults.h (EPILOGUE_USES): Add default definition of false.
8299 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
8300 * resource.c (init_resource_info): Likewise.
8302 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8304 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
8306 * dwarf2out.c (field_byte_offset): REmove check if
8307 PCC_BITFIELD_TYPE_MATTERS is defined.
8308 * stor-layout.c (layout_decl): Likewise.
8309 (update_alignment_for_field): Likewise.
8310 (place_field): Likewise.
8312 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8314 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
8316 * regrename.c (check_new_reg_p): Remove check if
8317 HARD_REGNO_RENAME_OK is defined.
8318 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
8320 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8322 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
8323 * cse.c (fold_rtx): Likewise.
8324 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
8325 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
8326 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
8327 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
8328 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
8329 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
8330 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
8331 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
8332 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
8333 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
8335 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
8336 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
8337 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
8338 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
8339 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
8340 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
8341 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
8342 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
8343 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
8344 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
8345 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
8346 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
8347 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
8348 * doc/tm.texi: Regenerate.
8349 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
8350 either true or false.
8352 2015-04-27 Jeff Law <law@redhat.com>
8354 PR tree-optimization/65217
8355 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
8356 of them has a single use, make sure it is the LHS of the implied
8359 2015-04-28 Alan Modra <amodra@gmail.com>
8362 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
8363 (offsettable_ok_by_alignment): Use minimum of decl and toc
8364 pointer alignment. Replace dead code with assertion.
8365 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
8366 case if size exceeds toc pointer alignment.
8367 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
8368 (rs6000_emit_move): Likewise.
8369 * configure.ac: Add linker toc pointer alignment check.
8370 * configure: Regenerate.
8371 * config.in: Regenerate.
8373 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
8375 * config.gcc: Add h8300-*-linux.
8376 * config/h8300/linux.h: New.
8377 * config/h8300/t-linux: New.
8378 * config/h8300/h8300.c (h8300_option_override): Normal mode
8379 is not supported for h8300-*-linux.
8380 (h8300_file_start): Target priority change.
8381 (get_shift_alg): Likewise.
8382 (h8300_shift_need_scratch_p): Likewise.
8383 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
8384 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
8386 2015-04-27 Caroline Tice <cmtice@google.com>
8388 * final.c (final_scan_insn): Output cold_function_name as function
8390 * varasm.c (cold_function_name): Make global.
8391 (assemble_start_function): Re-set cold_function_name.
8392 (assemble_end_function): Output cold partition size.
8393 * varasm.h (cold_function_name): Declare global.
8395 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
8397 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
8398 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
8400 (*movxi_internal_avx512f): Ditto.
8401 (define_split): Check for xmm16+, when splitting scalar float_extend.
8402 (*extendsfdf2_mixed): Use "v" constraint.
8403 (define_split): Check for xmm16+, when splitting scalar float_truncate.
8404 (*truncdfsf_fast_sse): Use "v" constraint.
8405 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
8406 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
8407 (define_peephole2): Check for xmm16+, when converting scalar
8409 (define_peephole2): Check for xmm16+, when converting scalar
8411 (*fop_<mode>_comm_mixed): Use "v" constraint.
8412 (*fop_<mode>_comm_sse): Ditto.
8413 (*fop_<mode>_1_mixed): Ditto.
8414 (*sqrt<mode>2_sse): Ditto.
8415 (*ieee_s<ieee_maxmin><mode>3): Ditto.
8417 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8419 * combine.c (simplify_if_then_else): Use std::swap instead
8420 of manually swapping.
8421 (known_cond): Likewise.
8422 (simplify_comparison): Likewise.
8424 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
8427 * config/rs6000/htm.md: Remove all define_expands.
8428 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
8429 UNSPECV_HTM_TABORTWCI): Remove.
8430 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
8431 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
8432 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
8433 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
8434 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
8435 tabortwci_internal): Remove define_insns.
8436 (tabort<wd>c, tabort<wd>ci): New define_insns.
8437 (tabort): Use gpc_reg_operand.
8438 (tcheck): Remove operand.
8439 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
8440 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
8442 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
8443 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
8444 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
8445 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
8446 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
8447 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
8448 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
8449 (tcheck): Remove builtin argument.
8450 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
8452 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
8453 tabortdc and tabortdci builtins when not in 64-bit mode.
8454 Modify code to handle the loss of the HTM define_expands.
8455 Emit code to copy the CR register to TARGET.
8456 (htm_init_builtins): Modify code to handle the loss of the HTM
8458 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
8459 (RS6000_BTC_64BIT): Likewise.
8460 (RS6000_BTC_CR): New macro.
8461 * doc/extend.texi: Update documentation for htm builtins.
8463 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8465 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
8466 of manually swapping.
8467 (simplify_associative_operation): Likewise.
8468 (simplify_binary_operation): Likewise.
8469 (simplify_plus_minus): Likewise.
8470 (simplify_relational_operation): Likewise.
8471 (simplify_ternary_operation): Likewise.
8473 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
8475 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
8476 (xs_hi_nonmemory_operand): Remove error.
8477 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
8478 general_operand rather than xs_hi_general_operand.
8480 2015-04-27 Richard Biener <rguenther@suse.de>
8482 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
8483 (record_equivalences_from_stmt): Valueize rhs.
8484 (record_equality): Canonicalize x and y order via
8485 tree_swap_operands_p. Do not swap operands for same loop depth.
8487 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
8491 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
8492 Add hint how to use own spec file.
8494 2015-04-27 Jakub Jelinek <jakub@redhat.com>
8496 PR tree-optimization/65875
8497 * tree-vrp.c (update_value_range): If in is_new case setting
8498 old_vr to VR_VARYING, also set new_vr to it. Remove
8499 old_vr->type == VR_VARYING test.
8500 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
8501 SSA_PROP_INTERESTING if update_value_range returned true,
8502 but new range is VR_VARYING.
8504 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
8506 * combine.c (sign_extend_short_imm): New.
8507 (set_nonzero_bits_and_sign_copies): Use above new function for sign
8508 extension of src short immediate.
8509 (reg_nonzero_bits_for_combine): Likewise for tem.
8511 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
8513 * stor-layout.c (self_referential_component_ref_p): New predicate.
8514 (copy_self_referential_tree_r): Use it.
8515 (self_referential_size): Punt for simple operations directly involving
8516 self-referential component references.
8517 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
8519 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
8521 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
8523 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
8525 * vec.h (vec): Make splice arguments const. Update definitions
8528 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
8530 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
8533 2015-04-26 Tom de Vries <tom@codesourcery.com>
8535 PR tree-optimization/65826
8536 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
8538 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
8540 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
8541 (*madd3<mode>): Ditto.
8542 (*msub4<mode>): Ditto.
8543 (*msub3<mode>): Ditto.
8544 (*nmadd4<mode>): Ditto.
8545 (*nmadd3<mode>): Ditto.
8546 (*nmadd4<mode>_fastmath): Ditto.
8547 (*nmadd3<mode>_fastmath): Ditto.
8548 (*nmsub4<mode>): Ditto.
8549 (*nmsub3<mode>): Ditto.
8550 (*nmsub4<mode>_fastmath): Ditto.
8551 (*nmsub3<mode>_fastmath): Ditto.
8553 2015-04-24 Jason Merrill <jason@redhat.com>
8556 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
8557 down when building TYPE_CANONICAL.
8558 (build_pointer_type_for_mode): Likewise.
8560 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
8562 * genrecog.c (validate_pattern): Check matching constraint refers
8563 to a lower numbered operand.
8565 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
8568 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
8569 save to independent variables use the Save attribute. This will
8570 allow these options to be modified with the #pragma/attribute
8572 (-mallow-movmisalign): Likewise.
8573 (-mallow-df-permute): Likewise.
8574 (-msched-groups): Likewise.
8575 (-malways-hint): Likewise.
8576 (-malign-branch-targets): Likewise.
8577 (-mvectorize-builtins): Likewise.
8578 (-msave-toc-indirect): Likewise.
8580 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
8581 can be set via the #pragma/attribute target support.
8582 (rs6000_opt_vars): Likewise.
8583 (rs6000_inner_target_options): If VSX was set, also set
8584 -mno-avoid-indexed-addresses.
8586 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8588 * config/arm/iterators.md (shiftable_ops): Rename to...
8589 (SHIFTABLE_OPS): ... This. Update use in comments.
8590 (ior_xor): Rename to...
8591 (IOR_XOR): ... This.
8592 (vqh_ops): Rename to...
8593 (VQH_OPS): ... This.
8594 (vqhs_ops): Rename to...
8595 (VQHS_OPS): ... This.
8596 (rshifts): Rename to...
8597 (RSHIFTS): ... This.
8598 (returns): Rename to...
8599 (RETURNS): ... This.
8600 * config/arm/arm.md: Update uses of the above.
8601 * config/arm/neon.md: Likewise.
8603 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8605 * config.host (case ${host}): Add aarch64*-*-linux case.
8606 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
8607 fields to all the cores.
8608 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
8609 Add MCPU_MTUNE_NATIVE_SPECS.
8610 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
8611 field to all extensions.
8612 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
8613 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
8614 Adjust definition of AARCH64_OPT_EXTENSION.
8615 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
8616 (MCPU_MTUNE_NATIVE_SPECS): Define.
8617 * config/aarch64/driver-aarch64.c: New file.
8618 * config/aarch64/x-arch64: New file.
8619 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
8622 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
8623 Wei Mi <wmi@google.com>
8625 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
8626 * config/i386/i386.c (extract_base_offset_in_addr): New function.
8627 (ix86_operands_ok_for_move_multiple): Ditto.
8628 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
8629 (movlpd/movhpd to movupd peephole2): Ditto.
8631 2015-04-24 Marek Polacek <polacek@redhat.com>
8634 * input.h (from_macro_expansion_at): Define.
8637 * doc/invoke.texi: Update description of -Wlogical-op.
8639 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
8641 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
8642 ternary operator in fprintf and harmonize spacing.
8644 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
8646 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
8647 Mark operand1 commutative.
8649 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
8651 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
8652 input operands in memory.
8653 (*vec_concatv2si_sse4_1): Ditto.
8654 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
8655 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
8657 (vec_extract_hi_v32hi): Ditto.
8658 (vec_extract_hi_v64hi): Ditto.
8659 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
8661 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
8662 Steven Bosscher <steven@gcc.gnu.org>
8664 PR rtl-optimization/34503
8665 * cprop.c (cprop_reg_p): New.
8666 (hash_scan_set): Use above function to check if register can be
8668 (find_avail_set): Return up to two sets, one whose source is a
8669 register and one whose source is a constant. Sets are returned in an
8670 array passed as parameter rather than as a return value.
8671 (cprop_insn): Use a do while loop rather than a goto. Try each of the
8672 sets returned by find_avail_set, starting with the one whose source is
8673 a constant. Use cprop_reg_p to check if register can be propagated.
8674 (do_local_cprop): Use cprop_reg_p to check if register can be
8676 (implicit_set_cond_p): Likewise.
8678 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
8680 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
8681 (sem_function::equals): IGNORED_NODES parameter is now unused;
8682 update call of equals_private.
8683 (sem_function::equals_private): Do not call equals_wpa; skip
8684 gimple body matching if there is no body.
8685 (sem_function::init): Add logic to hash tthunk info.
8686 (sem_function::parse): Also parse thunks.
8687 * ipa-icf.h (equals_private): Update declaration.
8689 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8691 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
8692 asterisk from name so this can be generated directly.
8693 (*altivec_stvx_<mode>_internal): Likewise.
8694 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
8695 that this is never called during or after reload/lra.
8696 (rs6000_frame_related): Remove split_reg
8697 argument and logic that references it.
8698 (emit_frame_save): Remove last parameter from call to
8699 rs6000_frame_related.
8700 (rs6000_emit_prologue): Remove last parameter from eight calls to
8701 rs6000_frame_related. Force generation of stvx instruction for
8702 Altivec register saves. Remove split_reg handling, which is no
8704 (rs6000_emit_epilogue): Force generation of lvx instruction for
8705 Altivec register restores.
8707 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8709 * config/rs6000/rs6000.opt (mcrypto): Change option description to
8710 match category changes in ISA 2.07B.
8712 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8714 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
8716 (cmp_op, cmp_type): New code attributes.
8717 (NEON_VCMP, NEON_VACMP): New int iterators.
8718 (cmp_op_unsp): New int attribute.
8719 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
8720 (neon_vceq<mode>): Delete.
8721 (neon_vc<cmp_op><mode>_insn): New pattern.
8722 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
8723 (neon_vcgeu<mode>): Delete.
8724 (neon_vcle<mode>): Likewise.
8725 (neon_vclt<mode>: Likewise.
8726 (neon_vcage<mode>): Likewise.
8727 (neon_vcagt<mode>): Likewise.
8728 (neon_vca<cmp_op><mode>): New define_expand.
8729 (neon_vca<cmp_op><mode>_insn): New pattern.
8730 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
8732 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
8734 * tree.h (attribute_value_equal): Declare.
8735 * tree.c (attribute_value_equal): Export.
8737 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
8739 * ipa-icf.c (sem_item::compare_attributes): New function.
8740 (sem_item::compare_referenced_symbol_properties): Compare variable
8742 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
8743 (sem_function::param_used_p): New function.
8744 (sem_function::equals_wpa): Fix attribute comparsion; match
8745 parameter type codes; do not compare paremter flags when
8746 they are not used; compare edge flags; compare indirect calls.
8747 (sem_item::update_hash_by_addr_refs): Hash reference type.
8748 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
8749 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
8751 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
8752 * ipa-icf.h (compare_attributes, param_used_p): Declare.
8754 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
8756 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
8758 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
8759 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
8760 (sem_item::compare_referenced_symbol_properties): New.
8761 (sem_item::hash_referenced_symbol_properties): New.
8762 (sem_item::compare_cgraph_references): Rename to ...
8763 (sem_item::compare_symbol_references): ... this one; use
8764 compare_referenced_symbol_properties.
8765 (sem_function::equals_wpa): Do not compare
8766 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
8767 DECL_IS_OPERATOR_NEW; compare pointer sizes.
8768 (sem_item::update_hash_by_addr_refs): Call
8769 hash_referenced_symbol_properties.
8770 (sem_item::update_hash_by_local_refs): Cleanup.
8771 (sem_function::merge): Do not mix up symbol properties.
8772 (sem_variable::equals_wpa): Use compare_symbol_references.
8773 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
8774 (sem_item::hash_referenced_symbol_properties): New.
8775 (sem_item::compare_symbol_references): New.
8776 (sem_item::compare_cgraph_references): Remove.
8778 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
8781 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
8784 2015-04-23 Nick Clifton <nickc@redhat.com>
8786 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
8787 ATTRIBUTE_UNUSED to x parameter.
8788 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
8790 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8792 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
8793 TARGET_CRYPTO to TARGET_P8_VECTOR>
8794 (crypto_vpermxor_<mode>): Likewise.
8795 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
8796 (BU_CRYPTO_3A): Likewise.
8797 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
8798 (BU_CRYPTO_OVERLOAD_3A): New #define.
8799 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
8800 (VPMSUMH): Likewise.
8801 (VPMSUMW): Likewise.
8802 (VPMSUMD): Likewise.
8803 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
8804 (VPERMXOR_V4SI): Likewise.
8805 (VPERMXOR_V8HI): Likewise.
8806 (VPERMXOR_V16QI): Likewise.
8807 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
8808 BU_CRYPTO_OVERLOAD_2A.
8809 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
8810 BU_CRYPTO_OVERLOAD_3A.
8811 * config/rs6000/rs6000.opt (mcrypto): Change description of
8814 2015-04-23 Richard Biener <rguenther@suse.de>
8816 * passes.def: Remove copy propagation passes run directly after CCP.
8817 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
8819 (ccp_visit_phi_node): Rework to handle first executable edge
8822 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
8824 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
8825 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
8826 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
8827 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
8828 (thumb_legimitimize_reload_address): Remove.
8829 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
8831 (thumb_legimitimize_reload_address): Remove.
8833 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8835 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
8837 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8839 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
8841 (store_multiple): Likewise.
8843 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8845 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
8846 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
8847 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
8848 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
8849 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
8850 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
8851 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
8852 Specify issue_rate value.
8853 (arm_issue_rate): Look up issue rate from tuning structs. Remove
8854 large switch statement.
8855 (arm_marvell_pj4_tune): New struct.
8856 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
8859 2015-04-23 Richard Biener <rguenther@suse.de>
8861 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
8862 (vect_find_last_store_in_slp_instance): Rename to ...
8863 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
8864 (vect_analyze_slp_cost_1): Use vector_load for constant defs
8865 and vec_construct for external defs when estimating prologue cost.
8866 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
8867 Compute costs here only when vectorizing loops.
8868 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
8869 have been determined.
8870 (vect_schedule_slp_instance): Simplify vectorized code placement
8871 and prepare for in-BB external defs.
8872 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
8873 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
8874 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
8876 (vect_model_load_cost): Likewise.
8877 (vectorizable_store): Instead add it here.
8878 (vectorizable_load): Likewise.
8879 (vect_is_simple_use): Dump def type textually.
8881 2015-04-23 Richard Biener <rguenther@suse.de>
8883 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
8884 * cfgloop.c (verify_loop_structure): Verify the root loop node.
8885 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
8886 instead of get_eh_region_from_lp_number.
8887 * loop-init.c (fix_loop_structure): If we removed a loop, reset
8890 2015-04-23 Anton Blanchard <anton@samba.org>
8892 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
8893 need for -mprofile-kernel to save LR to stack.
8895 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8897 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
8899 (insn_is_swappable_p): Return 1 for a convert from double to
8900 single precision when all of its uses are splats of BE element
8903 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
8905 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
8907 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8910 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
8911 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
8912 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
8914 (rs6000_builtin_mask_for_load): Return 0 for targets with
8915 efficient unaligned VSX accesses so that the vectorizer will use
8916 direct unaligned loads.
8917 (rs6000_builtin_support_vector_misalignment): Always return true
8918 for targets with efficient unaligned VSX accesses.
8919 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
8920 stores on targets with efficient unaligned VSX accesses is almost
8921 always the same as the cost of an aligned load or store, so model
8923 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
8924 unaligned vectors if we have efficient unaligned VSX accesses.
8925 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
8926 undocumented option.
8928 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8931 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
8933 * config.gcc (LIBC_MUSL): New tm_defines macro.
8934 * config/linux.h (OPTION_MUSL): Define.
8935 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
8936 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
8937 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
8939 * config/linux.opt (mmusl): New option.
8940 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
8941 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
8943 * configure: Regenerate.
8945 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
8947 * config.gcc (LIBC_MUSL): New tm_defines macro.
8948 * config/linux.h (OPTION_MUSL): Define.
8949 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
8950 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
8951 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
8953 * config/linux.opt (mmusl): New option.
8954 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
8955 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
8957 * configure: Regenerate.
8959 2015-04-22 Yury Gribov <y.gribov@samsung.com>
8961 * doc/invoke.texi (-fsanitize-sections): Update description.
8962 * asan.c (set_sanitized_sections): Parse incoming arg.
8963 (section_sanitized_p): Support wildcards.
8965 2015-04-22 Tom de Vries <tom@codesourcery.com>
8967 PR tree-optimization/65823
8968 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
8969 equality between ap_copy and ap.
8971 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8974 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
8976 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8979 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
8981 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8984 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
8985 remove already contained t-files.
8987 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8989 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
8990 Remove unneeded forward declarations.
8991 (suitable_for_tail_call_opt_p): Commentary typo fix.
8993 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8995 * varasm.c (emit_bss): Remove redundant guard.
8997 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8999 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
9001 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9003 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
9005 2015-04-22 Hale Wang <hale.wang@arm.com>
9006 Terry Guo <terry.guo@arm.com>
9008 PR rtl-optimization/64818
9009 * combine.c (can_combine_p): Don't combine user-specified
9010 register if it is in an asm input.
9012 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
9015 * passes.def (early_optimizations): Add pass_dse.
9017 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9019 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
9020 * reorg.c (redundant_insn): Remove ifdef
9021 INSN_REFERENCES_ARE_DELAYED.
9022 * resource.c (mark_referenced_resources): Likewise.
9024 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9026 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
9027 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
9028 * resource.c (mark_set_resources): Likewise.
9030 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9032 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
9033 * cfgcleanup.c (flow_find_cross_jump): Likewise.
9034 (flow_find_head_matching_sequence): Likewise.
9035 (try_head_merge_bb): Likewise.
9036 * combine.c (can_combine_p): Likewise.
9037 (try_combine): Likewise.
9038 (distribute_notes): Likewise.
9039 * df-problems.c (can_move_insns_across): Likewise.
9040 * final.c (final): Likewise.
9041 * gcse.c (insert_insn_end_basic_block): Likewise.
9042 * ira.c (find_moveable_pseudos): Likewise.
9043 * reorg.c (try_merge_delay_insns): Likewise.
9044 (fill_simple_delay_slots): Likewise.
9045 (fill_slots_from_thread): Likewise.
9046 * sched-deps.c (sched_analyze_2): Likewise.
9048 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9050 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
9051 PIC_OFFSET_TABLE_REGNUM.
9053 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9055 * alias.c (init_alias_target): Remove ifdef
9056 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
9057 * df-scan.c (df_insn_refs_collect): Likewise.
9058 (df_get_regular_block_artificial_uses): Likewise.
9059 (df_get_eh_block_artificial_uses): Likewise.
9060 (df_get_entry_block_def_set): Likewise.
9061 (df_get_exit_block_use_set): Likewise.
9062 * emit-rtl.c (gen_rtx_REG): Likewise.
9063 * ira.c (ira_setup_eliminable_regset): Likewise.
9064 * reginfo.c (init_reg_sets_1): Likewise.
9065 * regrename.c (rename_chains): Likewise.
9066 * reload1.c (reload): Likewise.
9067 (eliminate_regs_in_insn): Likewise.
9068 * resource.c (mark_referenced_resources): Likewise.
9069 (init_resource_info): Likewise.
9071 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9073 * defaults.h (MASK_RETURN_ADDR): New definition.
9074 * except.c (expand_builtin_extract_return_addr): Remove ifdef
9077 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9079 * defaults.h (RETURN_ADDR_OFFSET): New definition.
9080 * except.c (expand_builtin_extract_return_addr): Remove ifdef
9082 (expand_builtin_frob_return_addr): Likewise.
9084 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9086 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
9087 (try_redirect_by_replacing_jump): Likewise.
9088 (rtl_tidy_fallthru_edge): Likewise.
9089 * combine.c (insn_a_feeds_b): Likewise.
9090 (find_split_point): Likewise.
9091 (simplify_set): Likewise.
9092 * cprop.c (cprop_jump): Likewise.
9093 * cse.c (cse_extended_basic_block): Likewise.
9094 * df-problems.c (can_move_insns_across): Likewise.
9095 * function.c (emit_use_return_register_into_block): Likewise.
9096 * haifa-sched.c (sched_init): Likewise.
9097 * ira.c (find_moveable_pseudos): Likewise.
9098 * loop-invariant.c (find_invariant_insn): Likewise.
9099 * lra-constraints.c (curr_insn_transform): Likewise.
9100 * postreload.c (reload_combine_recognize_const_pattern):
9102 * reload.c (find_reloads): Likewise.
9103 * reorg.c (delete_scheduled_jump): Likewise.
9104 (steal_delay_list_from_target): Likewise.
9105 (steal_delay_list_from_fallthrough): Likewise.
9106 (redundant_insn): Likewise.
9107 (fill_simple_delay_slots): Likewise.
9108 (fill_slots_from_thread): Likewise.
9109 (delete_computation): Likewise.
9110 * sched-rgn.c (add_branch_dependences): Likewise.
9112 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9114 * genconfig.c (main): Always define HAVE_cc0.
9115 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
9117 * cfgcleanup.c (flow_find_cross_jump): Likewise.
9118 (flow_find_head_matching_sequence): Likewise.
9119 (try_head_merge_bb): Likewise.
9120 * cfgrtl.c (rtl_merge_blocks): Likewise.
9121 (try_redirect_by_replacing_jump): Likewise.
9122 (rtl_tidy_fallthru_edge): Likewise.
9123 * combine.c (do_SUBST_MODE): Likewise.
9124 (insn_a_feeds_b): Likewise.
9125 (combine_instructions): Likewise.
9126 (can_combine_p): Likewise.
9127 (try_combine): Likewise.
9128 (find_split_point): Likewise.
9130 (simplify_set): Likewise.
9131 (distribute_notes): Likewise.
9132 * cprop.c (cprop_jump): Likewise.
9133 * cse.c (cse_extended_basic_block): Likewise.
9134 * df-problems.c (can_move_insns_across): Likewise.
9135 * final.c (final): Likewise.
9136 (final_scan_insn): Likewise.
9137 * function.c (emit_use_return_register_into_block): Likewise.
9138 * gcse.c (insert_insn_end_basic_block): Likewise.
9139 * haifa-sched.c (sched_init): Likewise.
9140 * ira.c (find_moveable_pseudos): Likewise.
9141 * loop-invariant.c (find_invariant_insn): Likewise.
9142 * lra-constraints.c (curr_insn_transform): Likewise.
9143 * optabs.c (prepare_cmp_insn): Likewise.
9144 * postreload.c (reload_combine_recognize_const_pattern):
9146 * reload.c (find_reloads): Likewise.
9147 (find_reloads_address_1): Likewise.
9148 * reorg.c (delete_scheduled_jump): Likewise.
9149 (steal_delay_list_from_target): Likewise.
9150 (steal_delay_list_from_fallthrough): Likewise.
9151 (try_merge_delay_insns): Likewise.
9152 (redundant_insn): Likewise.
9153 (fill_simple_delay_slots): Likewise.
9154 (fill_slots_from_thread): Likewise.
9155 (delete_computation): Likewise.
9156 (relax_delay_slots): Likewise.
9157 * sched-deps.c (sched_analyze_2): Likewise.
9158 * sched-rgn.c (add_branch_dependences): Likewise.
9160 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9162 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
9163 that is trivially ded on non cc0 targets.
9164 (simplify_set): Likewise.
9165 (mark_used_regs_combine): Likewise.
9166 * cse.c (new_basic_block): Likewise.
9167 (fold_rtx): Likewise.
9168 (cse_insn): Likewise.
9169 (cse_extended_basic_block): Likewise.
9170 (set_live_p): Likewise.
9171 * rtlanal.c (canonicalize_condition): Likewise.
9172 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9174 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9176 * conditions.h: Define macros even if HAVE_cc0 is undefined.
9177 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
9178 * final.c: Likewise.
9180 * recog.c: Likewise.
9181 * recog.h: Declare functions even when HAVE_cc0 is undefined.
9182 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
9184 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9186 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
9187 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
9188 * builtins.c (expand_builtin): Remove check if
9189 EH_RETURN_DATA_REGNO is defined.
9190 * df-scan.c (df_bb_refs_collect): Likewise.
9191 (df_get_exit_block_use_set): Likewise.
9192 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
9193 * ira-lives.c (process_bb_node_lives): Likewise.
9194 * lra-lives.c (process_bb_lives): Likewise.
9196 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
9198 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
9199 FIRST_PSEUDO_REG): New.
9200 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
9201 (ARG_POINTER_REGNUM): Define to ARGP_REG.
9202 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
9203 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
9204 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
9205 (FIRST_INT_REG): New.
9206 (LAST_INT_REG): New.
9207 (FIRST_*_REG): Define using *_REG.
9208 (LAST_*_REG): Ditto.
9209 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
9210 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
9211 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
9213 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9215 * expmed.c: (synth_mult): Only assume overlapping
9216 shift with previous steps in alg_sub_t_m2 case.
9218 2015-04-21 Richard Biener <rguenther@suse.de>
9220 PR tree-optimization/65650
9221 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
9222 transitions involving copies.
9223 (set_lattice_value): Adjust for copy lattice state.
9224 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
9225 if that doesn't dominate the merge point.
9226 (bit_value_unop): Adjust what we treat as varying mask.
9227 (bit_value_binop): Likewise.
9228 (bit_value_assume_aligned): Likewise.
9229 (evaluate_stmt): When we simplified to a SSA name record a copy
9230 instead of dropping to varying.
9231 (visit_assignment): Simplify.
9233 * gimple-match.h (gimple_simplify): Add another callback.
9234 * gimple-fold.c (fold_stmt_1): Adjust caller.
9235 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
9236 for the 2nd callback.
9237 * gimple-match-head.c (gimple_simplify): Add a callback that is
9238 used to valueize the stmt operands and use it that way.
9240 2015-04-21 Richard Biener <rguenther@suse.de>
9242 PR tree-optimization/65788
9243 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
9245 2015-04-21 Richard Biener <rguenther@suse.de>
9247 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
9248 vec_construct cost by vec_stmt_cost.
9250 2015-04-21 Richard Biener <rguenther@suse.de>
9252 * cfghooks.h (create_basic_block): Replace with two overloads
9254 (split_block): Likewise.
9255 * cfghooks.c (split_block): Rename to ...
9256 (split_block_1): ... this.
9257 (split_block): Add two type-safe overloads for RTL and GIMPLE.
9258 (split_block_after_labels): Call split_block_1.
9259 (create_basic_block): Rename to ...
9260 (create_basic_block_1): ... this.
9261 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
9262 (create_empty_bb): Call create_basic_block_1.
9263 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
9264 split_block_after_labels.
9265 * omp-low.c (expand_parallel_call): Likewise.
9266 (expand_omp_target): Likewise.
9267 (simd_clone_adjust): Likewise.
9268 * tree-chkp.c (chkp_get_entry_block): Likewise.
9269 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
9270 create_basic_block overload.
9271 (cgraph_node::expand_thunk): Likewise.
9272 * tree-cfg.c (make_blocks): Likewise.
9273 (handle_abnormal_edges): Likewise.
9274 * tree-inline.c (copy_bb): Likewise.
9276 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9278 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
9280 (*xor_one_cmplsidi3_ze): Likewise.
9282 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
9284 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
9285 use df_remove_problem rather than manually removing problems, leaving
9286 holes in df->problems_in_order[].
9288 2015-04-21 Tom de Vries <tom@codesourcery.com>
9290 PR tree-optimization/65802
9291 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
9293 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9295 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
9297 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
9298 at '.'. Assert that there's enough space for everything.
9300 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
9302 PR tree-optimization/64950
9304 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
9307 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
9310 2015-04-20 Shiva Chen <shiva0217@gmail.com>
9312 PR rtl-optimization/64916
9313 * cfgcleanup.c (values_equal_p): New function.
9314 (can_replace_by): Use it.
9316 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
9319 * doc/invoke.texi ([-Wnarrowing]): Update.
9321 2015-04-20 Jeff Law <law@redhat.com>
9323 PR tree-optimization/65658
9324 * tree-ssa-threadupdate.c (redirection_block_p): Remove
9325 redundant test for GIMPLE_ASSIGN in last change.
9327 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
9329 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
9330 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
9331 (legitimize_tls_address): Ditto.
9332 (ix86_expand_move): Ditto.
9333 (ix86_expand_binary_operator): Remove reload_in_progress checks.
9334 (ix86_expand_unary_operator): Ditto.
9335 * config/i386/predicates.md (index_register_operand): Ditto.
9337 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
9339 * reorg.c (try_merge_delay_insns): Improve correctness checking
9340 for targets with multiple delay slots.
9342 2015-04-20 Jeff Law <law@redhat.com>
9344 PR tree-optimization/65658
9345 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
9348 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
9350 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
9351 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
9354 2015-04-20 Jakub Jelinek <jakub@redhat.com>
9357 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
9359 2015-04-20 Richard Biener <rguenther@suse.de>
9361 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
9362 * gimple-fold.c (gimple_build_valueize): New function.
9363 (gimple_build): Always use gimple_build_valueize as valueize hook.
9365 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
9368 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
9369 and overwrite variable parts if <= 1/2 the elements are variable.
9371 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
9373 PR rtl-optimization/65805
9374 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
9375 Don't use difference of offset and previous offset if
9376 update_sp_offset is non-zero.
9377 (eliminate_regs_in_insn): Ditto.
9378 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
9379 lra_eliminate_regs_1 call.
9380 * lra-constraints.c (get_equiv_with_elimination): Ditto.
9382 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
9384 * hash-table.h: Remove version of hash_table that stored value_type *.
9385 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
9386 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
9387 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
9388 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
9389 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
9390 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
9391 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
9392 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
9393 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
9394 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
9395 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
9396 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
9397 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
9398 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
9399 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
9400 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
9402 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9403 Jakub Jelinek <jakub@redhat.com>
9406 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
9407 subsequent SH_NONE operand does not overwrite an existing *special
9409 (adjust_extract): Handle case where a vec_extract operation is
9410 wrapped in a PARALLEL.
9412 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
9415 * config/i386/i386.c (ix86_binds_local_p): Define only if
9416 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
9418 2015-04-17 Jeff Law <law@redhat.com>
9420 PR tree-optimization/47679
9421 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
9422 * tree-ssa-scopedtables.c: New file.
9423 * tree-ssa-scopedtables.h: New file.
9424 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
9425 (const_and_copies): Change name/type.
9426 (record_const_or_copy): Move into tree-ssa-scopedtables.c
9427 (record_const_or_copy_1): Similarly.
9428 (restore_vars_to_original_value): Similarly.
9429 (pass_dominator::execute): Create and destroy const_and_copies table.
9430 (thread_across_edge): Update passing of const_and_copies.
9431 (record_temporary_equivalence): Use method calls rather than
9432 manipulating const_and_copies directly.
9433 (record_equality, cprop_into_successor_phis): Similarly.
9434 (dom_opt_dom_walker::before_dom_children): Similarly.
9435 (dom_opt_dom_walker::after_dom_children): Similarly.
9436 (eliminate_redundant_computations): Similarly.
9437 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
9438 (record_temporary_equivalence): Likewise.
9439 (invalidate_equivalences): Likewise.
9440 (record_temporary_equivalences_from_phis): Update due to type
9441 change of const_and_copies. Use method calls rather than
9442 manipulating the stack directly.
9443 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
9444 (thread_through_normal_block, thread_across_edge): Likewise.
9445 (thread_across_edge): Likewise.
9446 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
9447 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
9449 (identify_jump_threads): Update due to type change of equiv_stack.
9450 (finalize_jump_threads): Delete the equiv_stack when complete.
9452 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
9454 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
9455 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
9456 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
9458 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
9461 * config.gcc: Exit with a comment when we do not have a major version
9462 number for the FreeBSD target.
9464 2015-04-17 Jakub Jelinek <jakub@redhat.com>
9467 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
9468 maybe_allows_mem bitfields.
9469 (maybe_allows_none_start, maybe_allows_none_end,
9470 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
9471 maybe_allows_mem_end): New variables.
9472 (compute_maybe_allows): New function.
9473 (add_constraint): Use it to initialize maybe_allows_reg and
9474 maybe_allows_mem fields.
9475 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
9476 is_address constraints such that those that allow neither mem nor
9477 reg come first, then those that only allow reg but not mem, then
9478 those that only allow mem but not reg, then the rest.
9479 (write_allows_reg_mem_function): New function.
9480 (write_tm_preds_h): Call it.
9481 * stmt.c (parse_output_constraint, parse_input_constraint): Use
9482 the generated insn_extra_constraint_allows_reg_mem function
9483 instead of always setting *allows_reg = true; *allows_mem = true;
9484 for unknown extra constraints.
9486 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
9489 * output.h (default_binds_local_p_3): New.
9490 * varasm.c (default_binds_local_p_3): Make it public. Take an
9491 argument to indicate if common symbol may be local. If common
9492 symbol may be local, treat non-external variable as defined
9494 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
9495 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
9496 * config/i386/i386.c (ix86_binds_local_p): New.
9497 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
9500 2015-04-17 Jakub Jelinek <jakub@redhat.com>
9503 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
9504 trying mem_loc_descriptor on XEXP (rtl, 0).
9506 2015-04-17 Martin Liska <mliska@suse.cz>
9508 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
9509 Release symbol_compare_collection.
9510 * ipa-reference.c: Add TODO that a vector should be released.
9512 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
9515 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
9516 to new AVR-LibC file layout (bug #44574).
9517 (*avrlibc_devicelib): Same.
9518 * config/avr/avr-mcus.def: Adjust comments.
9519 * config/avr/avr.opt (nodevicelib): Adjust help.
9521 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
9523 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
9525 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
9528 * gimplify.c (gimplify_init_constructor): Always emit a
9529 side-effecting constructor.
9531 2015-04-17 Tom de Vries <tom@codesourcery.com>
9533 PR tree-optimization/64950
9534 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
9535 in cfun->curr_properties.
9536 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
9537 if we generate an IFN_VA_ARG.
9538 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
9539 function if PROP_gimple_lva is not set in src function.
9541 2015-04-17 Tom de Vries <tom@codesourcery.com>
9542 Michael Matz <matz@suse.de>
9544 PR tree-optimization/64950
9545 * gimple-iterator.c (update_modified_stmts): Remove static.
9546 * gimple-iterator.h (update_modified_stmts): Declare.
9547 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
9548 (gimplify_va_arg_internal): New function.
9549 (gimplify_va_arg_expr): Use IFN_VA_ARG.
9550 * gimplify.h (gimplify_va_arg_internal): Declare.
9551 * internal-fn.c (expand_VA_ARG): New unreachable function.
9552 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
9553 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
9554 (expand_ifn_va_arg): New function.
9555 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
9556 (pass_stdarg::execute): Call expand_ifn_va_arg.
9557 (pass_data_lower_vaarg): New pass_data.
9558 (pass_lower_vaarg): New gimple_opt_pass.
9559 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
9560 (make_pass_lower_vaarg): New function.
9561 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
9562 properties_required field.
9563 * passes.def (all_passes): Add pass_lower_vaarg.
9564 * tree-pass.h (PROP_gimple_lva): Add define.
9565 (make_pass_lower_vaarg): Declare.
9567 2015-04-17 Tom de Vries <tom@codesourcery.com>
9569 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
9570 * calls.c (call_expr_flags): Same.
9572 2015-04-17 Tom de Vries <tom@codesourcery.com>
9574 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
9575 (pass_stdarg::execute): ... here.
9577 2015-04-17 Tom de Vries <tom@codesourcery.com>
9578 Michael Matz <matz@suse.de>
9580 * tree-cfg.c (make_blocks_1): Factor out of ...
9581 (make_blocks): ... here.
9582 (make_edges_bb): Factor out of ...
9583 (make_edges): ... here.
9584 (gimple_find_sub_bbs): New function.
9585 * tree-cfg.h (gimple_find_sub_bbs): Declare.
9587 2015-04-17 Tom de Vries <tom@codesourcery.com>
9589 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
9591 2015-04-17 Yury Gribov <y.gribov@samsung.com>
9593 * asan.c (set_sanitized_sections): New function.
9594 (section_sanitized_p): Ditto.
9595 (asan_protect_global): Optionally sanitize user-defined
9597 * asan.h (set_sanitized_sections): Declare new function.
9598 * common.opt (fsanitize-sections): New option.
9599 * doc/invoke.texi (-fsanitize-sections): Document new option.
9600 * opts-global.c (handle_common_deferred_options): Handle new
9603 2015-04-17 Jakub Jelinek <jakub@redhat.com>
9606 * dwarf2out.c (loc_list_from_tree): Return NULL
9607 for DEBUG_EXPR_DECL.
9609 2015-04-17 Christian Bruel <christian.bruel@st.com>
9611 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
9614 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
9616 * ira-color.c (setup_left_conflict_sizes_p): Do not process
9617 node itself when computing left conflict subnode size.
9619 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
9621 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
9622 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
9623 *fop_<mode>_1_sse using enabled attribute. Use
9624 register_mixssei387nonimm_operand operand 1 predicate. Change
9625 alternative 3 constraints from "x" to "v".
9627 2015-04-16 Richard Biener <rguenther@suse.de>
9629 PR tree-optimization/65774
9630 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
9631 bit-value tracking on.
9633 2015-04-16 Richard Biener <rguenther@suse.de>
9635 PR tree-optimization/64277
9636 * tree-vrp.c (check_array_ref): Fix anti-range handling,
9637 simplify upper bound handling.
9638 (search_for_addr_array): Simplify.
9639 (check_array_bounds): Handle ADDR_EXPRs here.
9640 (check_all_array_refs): Simplify.
9642 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
9644 * config/i386/i386.c (print_reg): Rewrite function.
9646 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9648 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
9649 Invert the condition.
9651 2015-04-16 Renlin Li <renlin.li@arm.com>
9653 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
9654 simplifications for UNSIGNED_FLOAT.
9656 2015-04-16 Nick Clifton <nickc@redhat.com>
9658 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
9660 (enum rl78_cpu_type): New.
9661 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
9662 (umulhi3_shift_virt): Remove m constraint from operand 1.
9663 (umulqihi3_virt): Likewise.
9664 * config/rl78/rl78.c (rl78_option_override): Add code to process
9665 -mcpu and -mmul options.
9666 (rl78_alloc_physical_registers): Add code to handle divhi and
9667 divsi valloc attributes.
9668 (set_origin): Likewise.
9669 * config/rl78/rl78.h (RL78_MUL_G14): Define.
9670 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
9671 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
9673 (ASM_SPEC): Pass -mcpu on to assembler.
9674 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
9675 (mulqi3_rl78): Likewise.
9676 (mulhi3_g13): Likewise.
9677 (mulhi3): Generate the G13 or G14 versions of the insn directly.
9679 (mulhi3_g14): Add clobbers of AX and BC.
9680 (mulsi3_g14): Likewise.
9681 (mulsi3_g13): Likewise.
9682 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
9683 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
9684 * config/rl78/rl78.opt (mmul): Initialise value to
9687 (m13, m14, mrl78): New option aliases.
9688 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
9689 (MULTILIB_DIRNAMES): Add g13 and g14.
9690 * doc/invoke.texi: Document -mcpu and -mmul options.
9692 2015-04-16 Richard Biener <rguenther@suse.de>
9694 * tree-ssa-ccp.c (likely_value): See if we have operands that
9695 are marked as never simulate again and return CONSTANT in this
9697 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
9698 not have any operands that will be simulated again as
9699 not being simulated again.
9701 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
9703 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
9704 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
9705 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
9707 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
9709 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
9710 *float<SWI48:mode><MODEF:mode>2_sse.
9711 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
9713 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
9716 2015-04-15 Tom de Vries <tom@codesourcery.com>
9719 * function.c (push_dummy_function): New function.
9720 (init_dummy_function_start): Use push_dummy_function.
9721 (pop_dummy_function): New function. Factored out of ...
9722 (expand_dummy_function_end): ... here.
9723 * function.h (push_dummy_function, pop_dummy_function): Declare.
9724 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
9726 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
9728 2015-04-15 Jeff Law <law@redhat.com>
9730 PR tree-optimization/47679
9731 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
9732 need for forward declaration in upcoming changes.
9733 (record_conditions, record_edge_info): Likewise.
9735 PR rtl-optimization/42522
9736 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
9737 SIGN_EXTRACT as a whole object rather than simplifying
9740 2015-04-15 Jakub Jelinek <jakub@redhat.com>
9743 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
9744 and GIMPLE_PREDICT use break instead of return true. For
9745 GIMPLE_EH_DISPATCH, compare dispatch region.
9747 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
9749 * doc/extend.texi (__sync Builtins): Simplify some text. Update
9750 details about the implementation. Make clear preference for
9751 __atomic builtins. Reduce possibility of future change.
9753 2015-04-15 Nick Clifton <nickc@redhat.com>
9755 * config/rx/rx.opt (mallow-string-insns): New option.
9756 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
9757 builtin if string instructions are denied.
9758 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
9759 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
9761 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
9762 * config/rx/rx.md (movstr): Enable pattern only if string
9763 instructions are allowed.
9764 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
9765 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
9766 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
9767 (MULTILIB_DIRNAMES): Add no-strings.
9768 * doc/invoke.texi: Document -mno-allow-string-insns.
9770 2015-04-15 Alan Modra <amodra@gmail.com>
9775 * calls.c (load_register_parameters): Don't load past end of
9776 mem unless suitably aligned.
9778 2015-04-15 Nick Clifton <nickc@redhat.com>
9780 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
9781 decrement instruction as being frame related.
9782 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
9784 If zero extending a function address enclose the operation in
9786 (rl78_preferred_reload_class): New function.
9787 (TARGET_PREFERRED_RELOAD_CLASS): Define.
9788 * config/rl78/rl78.md: Remove useless constraints in expanders.
9789 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
9790 (mulhi3_rl78): Likewise.
9791 (mulhi3_g13): Likewise.
9792 (mulsi3_rl78): Likewise.
9793 (es_addr): Move to before the multiply patterns.
9795 2015-04-15 Alan Modra <amodra@gmail.com>
9797 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
9798 and sequence_stack. Add seq.
9799 (seq_stack): Delete.
9800 * function.c (prepare_function_start): Don't access x_last_insn.
9801 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
9802 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
9803 * emit_rtl.c (start_sequence, push_topmost_sequence,
9804 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
9806 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
9807 remove_insn): Likewise. Simplify.
9808 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
9809 and pop_topmost_sequence.
9810 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
9812 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
9814 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
9817 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
9820 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
9822 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
9823 (LEGACY_INT_REGNO_P): Ditto.
9824 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
9825 (ANY_MASK_REG_P): Remove.
9826 (BND_REG_P): Rename from ANY_BND_REG_P.
9827 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
9828 legacy integer registers. Do not handle MMX_REG_P in a special way.
9829 Merge 64byte and 32byte SSE handling.
9831 2015-04-14 Nick Clifton <nickc@redhat.com>
9833 * expr.c (expand_assignment): Force an address offset computation
9834 into a register before changing its mode.
9835 (expand_expr_real_1): Likewise.
9837 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
9839 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
9840 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
9841 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
9842 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
9843 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
9844 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
9845 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
9846 and __aarch64_vget_lane_any.
9848 2015-04-14 Jakub Jelinek <jakub@redhat.com>
9850 PR rtl-optimization/65761
9851 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
9852 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
9854 2015-04-14 Richard Biener <rguenther@suse.de>
9856 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
9857 (graphite_can_represent_scev): Use POINTER_TYPE_P.
9859 2015-04-14 Richard Biener <rguenther@suse.de>
9861 PR tree-optimization/65758
9862 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
9864 (ccp_lattice_meet): Likewise.
9865 (bit_value_unop): Likewise.
9866 (bit_value_binop): Likewise.
9867 (bit_value_assume_aligned): Likewise.
9869 2015-04-14 Christian Bruel <christian.bruel@st.com>
9871 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
9874 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
9876 PR tree-optimization/63387
9877 * match.pd ((x unord x) | (y unord y) -> (x unord y),
9878 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
9880 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
9882 * config/i386/predicates.md (any_QIreg_operand): Rename from
9883 q_regs_operand. Do not process subregs.
9884 (QIreg_operand): Use QI_REGNO_P predicate.
9885 (ext_QIreg_operand): Ditto.
9886 (ext_register_operand): Ditto.
9887 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
9888 (AND splitters): Ditto.
9889 (AND with -65536 splitter): Add SWI48 mode for operand 0.
9890 (AND with -256 splitter): Use any_QIreg_operand predicate and
9891 SWI248 mode for operand 0.
9892 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
9894 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
9896 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
9898 * doc/plugins.texi: Rewrite first introductory paragraph.
9900 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
9902 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
9903 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
9905 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
9907 * ipa-profie.c (ipa_profile): Check number of parameters
9908 and possible polymorphic call targets before
9911 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
9913 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
9914 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
9916 2015-04-13 Richard Biener <rguenther@suse.de>
9918 PR tree-optimization/65204
9919 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
9922 2015-04-13 Richard Biener <rguenther@suse.de>
9925 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
9926 and cond_not_taken_branch_cost to 4 and 2.
9927 (bdver2_cost): Likewise.
9928 (bdver3_cost): Likewise.
9929 (bdver4_cost): Likewise.
9931 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
9933 * hash-table.h (hash_table constructor): Add mem stats.
9934 (alloc_entries): Likewise.
9936 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
9938 * ipa-cp.c (ipcp_driver): Relase prev_edge.
9939 * passes.c (execute_one_pass): Only add transform if pass has one.
9941 2015-04-12 Joseph Myers <joseph@codesourcery.com>
9943 * config/i386/i386.c (ix86_option_override_internal): Don't set
9944 -fprefetch-loop-arrays if optimizing for size.
9946 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
9947 Gerald Pfeifer <gerald@pfeifer.com>
9949 * doc/contrib.texi (Contributors): Add Martin Jambor and
9952 2015-04-12 Jakub Jelinek <jakub@redhat.com>
9954 * BASE-VER: Set to 6.0.0.
9956 PR tree-optimization/65747
9957 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
9958 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
9960 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
9962 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
9963 sentence. Improve grammar.
9965 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
9967 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
9969 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
9972 * ipa-inline-transform.c (speculation_removed): Remove static var.
9973 (check_speculations): New function.
9974 (clone_inlined_nodes): Do not check spculations.
9975 (inline_call): Call check_speculations.
9976 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
9977 consider non-invariants.
9979 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
9980 Martin Liska <mliska@suse.cz>
9983 * ipa-icf.c (sem_item::compare_cgraph_references): function and
9984 variable can not match.
9985 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
9986 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
9988 2015-04-11 Jakub Jelinek <jakub@redhat.com>
9990 PR tree-optimization/65735
9991 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
9992 Remove visited_phis argument, add visited_bbs, avoid recursing into the
9993 same bb rather than just into the same phi node.
9994 (thread_through_normal_block): Adjust caller.
9996 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
9998 * doc/contrib.texi (Contributors): Add Ira Rosen.
10000 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
10002 * gcov.c (find_source): Fix miswording in error message.
10003 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
10004 (ix86_expand_sse_comi_round): Fix typo in error message.
10006 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
10008 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
10010 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
10012 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
10014 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
10017 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
10018 Print bad_spills_num and insn_pseudos_num.
10020 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10023 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
10024 when creating +1 values for SImode.
10026 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
10029 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
10032 2015-04-10 Jakub Jelinek <jakub@redhat.com>
10033 Iain Sandoe <iain@codesourcery.com>
10036 * configure: Regenerate.
10038 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
10041 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
10043 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
10045 * doc/contrib.texi (Contributors): Add John Marino.
10047 2015-04-09 Jakub Jelinek <jakub@redhat.com>
10049 PR tree-optimization/65709
10050 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
10051 TREE_TYPE (TREE_TYPE (t)).
10053 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
10056 * lra-int.h (lra_bad_spill_regno_start): New.
10057 * lra.c (lra_bad_spill_regno_start): New.
10058 (lra): Set up lra_bad_spill_regno_start. Set up
10059 lra_constraint_new_regno_start unconditionally.
10060 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
10063 2015-04-09 Marek Polacek <polacek@redhat.com>
10064 Jakub Jelinek <jakub@redhat.com>
10066 PR middle-end/65554
10067 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
10068 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
10071 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
10073 PR rtl-optimization/65693
10074 * combine.c (is_parallel_of_n_reg_sets): Move outside of
10077 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
10080 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
10081 device specs file if "device-specs%s" didn't resolve to a path.
10083 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
10086 * config/i386/i386.c (fixup_modeless_constant): New.
10087 (ix86_expand_args_builtin): Fixup modeless constant operand.
10088 (ix86_expand_round_builtin): Ditto.
10089 (ix86_expand_special_args_builtin): Ditto.
10090 (ix86_expand_builtin): Ditto.
10092 2015-04-09 Jakub Jelinek <jakub@redhat.com>
10095 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
10096 any pow2 integer in between 2 and 0x80000000U inclusive.
10098 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
10100 PR rtl-optimization/65693
10101 * combine.c (is_parallel_of_n_reg_sets): Change first argument
10102 from an rtx_insn * to an rtx.
10103 (try_combine): Adjust both callers. Use it once more.
10105 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
10107 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
10108 (chkp_make_static_const_bounds): Search existing
10109 symbol by assembler name. Use make_decl_one_only.
10110 (chkp_get_zero_bounds_var): Remove node search which
10111 is now performed in chkp_make_static_const_bounds.
10112 (chkp_get_none_bounds_var): Likewise.
10114 2015-04-08 Michael Witten <mfwitten@gmail.com>
10116 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
10119 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
10121 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
10123 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
10125 * doc/extend.texi (__sync Builtins): Fix grammar.
10127 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
10129 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
10131 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
10133 * varasm.c (emit_local): Move definition of align.
10135 2015-04-08 Julian Brown <julian@codesourcery.com>
10137 * config/nvptx/mkoffload.c (process): Support variable mapping.
10139 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
10141 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
10143 (alpha_write_one_linkage): Correct typo.
10145 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
10147 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
10149 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
10151 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
10153 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
10155 * tree-chkp.h (chkp_insert_retbnd_call): New.
10156 * tree-chkp.c (chkp_insert_retbnd_call): New.
10157 * ipa-split.c (insert_bndret_call_after): Remove.
10158 (split_function): Use chkp_insert_retbnd_call.
10159 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
10160 bounds for instrumented functions.
10162 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
10165 * calls.c (initialize_argument_information): When producing tail
10166 call also turn SSA_NAMES passed by references to original PARM_DECLs
10168 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
10171 * lra-remat.c (do_remat): Process input and non-input insn
10172 registers separately.
10174 2015-04-07 Jakub Jelinek <jakub@redhat.com>
10177 * valtrack.c (debug_lowpart_subreg): New function.
10178 (dead_debug_insert_temp): Use it.
10180 PR middle-end/65680
10181 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
10182 into signed HOST_WIDE_INT the same as negative bit_offset.
10184 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
10186 * ipa-comdats.c (ipa_comdats): Visit all thunks
10187 to set proper comdat group.
10189 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10192 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
10193 on constants for NEON VSTRUCT modes.
10195 2015-04-07 Jakub Jelinek <jakub@redhat.com>
10196 Iain Sandoe <iain@codesourcery.com>
10199 * configure: Regenerate.
10201 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
10204 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
10205 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
10206 that LFD is used to load double constants instead of LFS. Add
10207 defaults for all costs structures. Add comments for missing
10208 initialization fields.
10209 (size32_cost): Likewise.
10210 (size64_cost): Likewise.
10211 (rs64a_cost): Likewise.
10212 (mpccore_cost): Likewise.
10213 (ppc403_cost): Likewise.
10214 (ppc405_cost): Likewise.
10215 (ppc440_cost): Likewise.
10216 (ppc476_cost): Likewise.
10217 (ppc601_cost): Likewise.
10218 (ppc603_cost): Likewise.
10219 (ppc604_cost): Likewise.
10220 (ppc604e_cost): Likewise.
10221 (ppc620_cost): Likewise.
10222 (ppc630_cost): Likewise.
10223 (ppccell_cost): Likewise.
10224 (ppc750_cost): Likewise.
10225 (ppc7450_cost): Likewise.
10226 (ppc8540_cost): Likewise.
10227 (ppce300c2c3_cost): Likewise.
10228 (ppce500mc_cost): Likewise.
10229 (ppce500mc64_cost): Likewise.
10230 (ppce5500_cost): Likewise.
10231 (ppce6500_cost): Likewise.
10232 (titan_cost): Likewise.
10233 (power4_cost): Likewise.
10234 (power6_cost): Likewise.
10235 (power7_cost): Likewise.
10236 (power8_cost): Likewise.
10237 (ppca2_cost): Likewise.
10238 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
10240 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
10241 instead of XXLOR to copy SFmode to clear out dirty bits created
10242 when SFmode denormals are generated.
10243 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
10244 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
10246 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
10248 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
10249 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
10250 * config/aarch64/aarch64-tune.md: Regenerate.
10252 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
10254 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
10255 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
10256 * config/arm/arm-cores.def (exynos-m1): New core.
10257 * config/arm/arm-tune.md: Regenerate.
10258 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
10259 * config/arm/bpabi.h: Likewise.
10261 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
10263 * ipa-cp (set_single_call_flag): Remove too
10264 restrictive assert.
10266 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
10268 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
10269 GOMP_offload_unregister from the destructor.
10271 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
10273 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
10274 flags for instrumentation thunk.
10275 (chkp_produce_thunks): Likewise.
10277 2015-04-05 Martin Liska <mliska@suse.cz>
10280 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
10281 has computed data structure.
10282 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
10284 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
10286 * invoke.texi (inline-unit-growth): Increase growth to 20%
10287 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
10289 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
10292 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
10294 (lra_rematerialization_iter): New.
10295 * lra.c (lra): Initialize lra_rematerialization_iter.
10296 Stop updating lra_constraint_new_regno_start after switching of
10297 inheritance and rematerialization.
10298 * lra-remat.c (lra_rematerialization_iter): New.
10299 (lra_remat): Add printing pass iteration. Do rematerialization
10300 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
10302 2015-04-04 Richard Biener <rguenther@suse.de>
10304 PR tree-optimization/64909
10305 PR tree-optimization/65660
10306 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
10307 to take a cost vector for scalar iteration cost.
10308 (vect_get_single_scalar_iteration_cost): Likewise.
10309 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
10310 Compute the scalar iteration cost into a cost vector.
10311 (vect_get_known_peeling_cost): Use the scalar cost vector to
10312 account for the cost of the peeled iterations.
10313 (vect_estimate_min_profitable_iters): Likewise.
10314 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
10317 2015-04-04 Alan Modra <amodra@gmail.com>
10321 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
10322 0.0 constant unless TARGET_VSX.
10323 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
10326 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
10329 * ipa-inline-transform.c (inline_call): Skip sanity check to work
10332 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
10335 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
10336 speculative indirect edges to avoid ordering issue.
10338 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
10341 * ipa-inline.c (edge_badness): Add combined size to the denominator.
10343 2015-04-03 Jakub Jelinek <jakub@redhat.com>
10345 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
10346 TYPE_ARTIFICIAL on the .omp_data* types.
10348 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
10350 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
10351 instrumentation thunks.
10353 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
10355 * config/i386/i386.c (ix86_expand_call): Avoid nested
10356 PARALLEL in returned call value.
10358 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
10360 * lto-cgraph.c (input_cgraph_1): Always link instrumented
10361 assembler name with original one.
10363 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
10365 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
10367 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
10369 Revert parts of r216820.
10370 * config/i386/i386.md (movqi_internal): Correct type calculation
10371 for alternatives 3 and 5.
10373 2015-04-02 Jakub Jelinek <jakub@redhat.com>
10375 PR preprocessor/61977
10376 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
10377 predefine __vector/__bool/__pixel macros nor context sensitive
10378 macros for CLK_ASM.
10379 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
10381 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
10383 * config/pa/pa.c (pa_output_move_double): Directly handle register
10384 indexed memory operand. Simplify handling of scaled register indexed
10387 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
10390 * config/i386/linux-common.h (MPX_SPEC): New.
10391 (CHKP_SPEC): Add MPX_SPEC.
10392 * doc/invoke.texi (-fcheck-pointer-boudns): Document
10393 possible issues with '-z bndplt' support in linker.
10395 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
10397 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
10398 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
10399 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
10400 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
10401 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
10403 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
10405 * config/i386/sync.md (UNSPEC_MOVA): Remove.
10406 (atomic_load<mode>): Change operand 0 predicate to
10407 nonimmediate_operand and fix up the destination when needed.
10409 (atomic_loaddi_fpu): Use UNSPEC_LDA.
10410 (atomic_store<mode>): Change operand 1 predicate to
10411 nonimmendate_operand and move the source to register when needed.
10413 (atomic_store<mode>_1): Use UNSPEC_STA.
10414 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
10415 Fix moves from memory operand. Use UNSPEC_STA.
10417 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10419 * expmed.c (strict_volatile_bitfield_p): Check that the access will
10420 not cross a MODESIZE boundary.
10421 (store_bit_field, extract_bit_field): Added assertions in the
10422 strict volatile bitfields code path.
10424 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
10427 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
10428 Increase args array size by one to avoid buffer overflow.
10430 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
10432 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
10434 * ipa-inline.c (edge_badness): Add wrapper penalty.
10435 (sum_callers): Move up.
10436 (inline_small_functions): Set single_caller.
10437 * ipa-inline.h (inline_summary): Add single_caller.
10438 * ipa-split.c (split_function): Set split_part.
10439 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
10440 * cgraph.h (cgraph_node): Add split_part.
10442 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
10445 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
10446 Do not split operands 0 and operands 2 to halfmode.
10447 (atomic_compare_and_swap<mode>): Update for
10448 atomic_compare_and_swap<dwi>_doubleword changes.
10450 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
10452 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
10453 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
10454 no caching is done.
10456 2015-03-31 Martin Liska <mliska@suse.cz>
10459 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
10460 has already filled up function summary.
10461 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
10463 2015-03-31 Richard Biener <rguenther@suse.de>
10465 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
10468 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
10470 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
10472 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
10473 (s390_asm_output_function_label): Adapt to new signature of
10474 s390_function_num_hotpatch_hw
10475 Optimise the code generating assembler output.
10476 Add comments to assembler file.
10478 2015-03-31 Richard Biener <rguenther@suse.de>
10480 PR middle-end/65626
10481 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
10482 of the noreturn call so it is last and cleanup_control_flow_bb
10483 can do the CFG part.
10485 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
10488 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
10489 same_comdat_group for external symbols.
10490 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
10491 infinite same_comdat_group traversal loop.
10493 2015-03-31 Jakub Jelinek <jakub@redhat.com>
10496 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
10497 automatically to $headers.
10499 2015-03-30 Jakub Jelinek <jakub@redhat.com>
10502 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
10503 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
10505 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
10507 * ipa-prop.c (param_type_may_change_p): Likewise.
10508 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
10509 (remove_unused_scope_block_p): Add in_ctor_dtor_block
10510 argument. Before inlining, preserve
10511 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
10512 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
10514 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
10516 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
10519 * ipa-inline.c (edge_badness): Base denominator on callee's
10522 2015-03-27 Martin Jambor <mjambor@suse.cz>
10525 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
10526 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
10527 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
10528 node_calling_single_call.
10529 * ipa-cp.c (count_callers): New function.
10530 (set_single_call_flag): Likewise.
10531 (initialize_node_lattices): Count callers and set single_flag_call if
10533 (incorporate_penalties): New function.
10534 (good_cloning_opportunity_p): Use it, dump new flags.
10535 (propagate_constants_topo): Set node_within_scc flag if appropriate.
10536 * doc/invoke.texi (ipa-cp-recursion-penalty,
10537 ipa-cp-single-call-pentalty): Document.
10539 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
10542 * symtab.c (symtab_node::get_partitioning_class): Register vars
10544 * varpool.c (symbol_table::output_variables) Do not assemble unefined
10545 decls for non-symbols.
10547 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
10550 * output.h (default_binds_local_p_2): New.
10551 * varasm.c (default_binds_local_p_2): Renamed to ...
10552 (default_binds_local_p_3): This. Don't return true on protected
10553 data symbol if protected data may be external.
10554 (default_binds_local_p): Use default_binds_local_p_3.
10555 (default_binds_local_p_1): Likewise.
10556 (default_binds_local_p_2): New.
10557 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
10558 default_binds_local_p_2 if TARGET_MACHO is undefined.
10560 2015-03-27 Jakub Jelinek <jakub@redhat.com>
10563 * config/i386/i386.c (legitimize_pic_address): If base
10564 is SYMBOL_REF or LABEL_REF using %rip addressing, force
10565 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
10567 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
10570 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
10573 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
10576 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
10577 of optimized out indirect call.
10578 (redirect_to_unreachable): Always build symbol table node for
10579 BUILT_IN_UNREACHABLE
10581 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
10584 * ira-costs.c (record_reg_classes): Process all constraint string
10587 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
10589 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
10593 * config/c6x/constraints.md (S3): New constraint.
10594 * config/c6x/c6x.md (real_jump): Use it.
10596 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
10598 PR middle-end/65595
10599 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
10600 do redirection if the call is not optimized out.
10602 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
10605 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
10606 (fchkp-check-incomplete-type): Add LTO.
10607 (fchkp-zero-input-bounds-for-main): Likewise.
10608 (fchkp-first-field-has-own-bounds): Likewise.
10609 (fchkp-narrow-bounds): Likewise.
10610 (fchkp-narrow-to-innermost-array): Likewise.
10611 (fchkp-use-static-bounds): Likewise.
10612 (fchkp-use-static-const-bounds): Likewise.
10613 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
10615 2015-03-27 Marek Polacek <polacek@redhat.com>
10617 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
10619 2015-03-27 Marek Polacek <polacek@redhat.com>
10622 * ubsan.c (ubsan_create_edge): New function.
10623 (instrument_bool_enum_load): Call it.
10624 (instrument_nonnull_arg): Likewise.
10625 (instrument_nonnull_return): Likewise.
10626 (instrument_object_size): Likewise.
10628 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
10630 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
10633 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
10636 * lto-streamer.h (class lto_location_cache): New.
10637 (struct data_in): Add location_cache.
10638 (lto_input_location): Update prototype.
10639 (stream_input_location_now): New.
10640 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
10641 pointer to location.
10642 (stream_input_location): Update.
10643 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
10644 (warn_odr): Apply location cache before warning.
10645 (lto_input_location): Update prototype.
10646 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
10647 Use stream_input_location_now.
10648 * lto-streamer-in.c (lto_location_cache::current_cache): New static
10650 (lto_location_cache::cmp_loc): New function.
10651 (lto_location_cache::apply_location_cache): New function.
10652 (lto_location_cache::accept_location_cache): New function.
10653 (lto_location_cache::revert_location_cache): New function.
10654 (lto_location_cache::input_location): New function.
10655 (lto_input_location): Do location caching.
10656 (stream_input_location_now): New function.
10657 (input_eh_region, input_struct_function_base): Use
10658 stream_input_location_now.
10659 (lto_data_in_create): use new.
10660 (lto_data_in_delete): Use delete.
10661 * tree-streamer-in.c (unpack_ts_block_value_fields,
10662 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
10663 lto_input_ts_exp_tree_pointers): Update for cached location api.
10665 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
10668 * passes.def: Add pass_nothrow.
10669 * ipa-pure-const.c: (pass_data_nothrow): New.
10670 (pass_nothrow): New.
10671 (pass_nothrow::execute): New.
10672 (make_pass_nothrow): New.
10673 * tree-pass.h (make_pass_nothrow): Declare.
10675 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
10677 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
10678 edge to change by speculation resolution or redirection.
10679 (edge_set_predicate): Likewise.
10680 (inline_summary_t::duplicate): Likewise.
10681 (remap_edge_summaries): Likewise.
10683 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
10685 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
10687 (can_inline_edge_p): Relax option matching for always inline functions.
10689 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
10692 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
10693 Check operand 4 and operand 0 for equality.
10694 (avx512f_vextract<shuffletype>32x4_1_maskm):
10695 Check operand 6 and operand 0 for equality.
10696 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
10698 (vec_extract_hi_<mode>_maskm): Ditto.
10700 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
10702 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
10703 dead calls back to live.
10704 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
10706 (cgraph_node::verify_node): ... here; verify only callee edges,
10708 * cif-code.def (CILK_SPAWN): New code.
10710 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
10712 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
10713 (edge_set_predicate): Use it to mark unreachable edges.
10714 (inline_summary_t::duplicate): Remove unnecesary code.
10715 (remap_edge_summaries): Likewise.
10716 (dump_inline_summary): Report contains_cilk_spawn.
10717 (compute_inline_parameters): Compute contains_cilk_spawn.
10718 (inline_read_section, inline_write_summary): Stream
10719 contains_cilk_spawn.
10720 * ipa-inline.c (can_inline_edge_p): Do not touch
10721 DECL_STRUCT_FUNCTION that may not be available;
10722 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
10723 remove check for callee_fun->can_throw_non_call_exceptions and
10724 replace it by optimization attribute check; check for flag_exceptions.
10725 * ipa-inline-transform.c (inline_call): Maintain
10726 DECL_FUNCTION_PERSONALITY
10727 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
10729 2015-03-26 Jakub Jelinek <jakub@redhat.com>
10731 PR tree-optimization/65551
10732 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
10733 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
10735 2015-03-26 Richard Biener <rguenther@suse.de>
10737 PR middle-end/65555
10738 * tree-cfg.c (verify_gimple_call): Do not require a call to
10739 have no LHS if it wasn't recognized as control altering yet.
10741 2015-03-26 Jakub Jelinek <jakub@redhat.com>
10743 PR tree-optimization/64715
10744 * passes.def: Add another instance of pass_object_sizes before ccp1.
10745 * tree-object-size.c (pass_object_sizes::execute): In
10746 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
10747 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
10748 __bos result and the computed constant. Remove redundant
10749 checks, obsoleted by gimple_call_builtin_p test.
10751 * var-tracking.c (variable_tracking_main_1): Don't track
10752 variables for targetm.no_register_allocation targets.
10754 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
10756 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
10757 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
10759 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
10762 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
10763 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
10764 0.0 is correctly setup.
10765 (extenddftf2_internal): Likewise.
10767 2015-03-25 Sebastian Pop <s.pop@samsung.com>
10769 PR tree-optimization/65177
10770 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
10772 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
10773 edges not adjacent on the path to the original code.
10775 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
10778 * doc/install.texi (Building a native compiler): Document new
10779 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
10780 configuration assumes that the host supports the linker plugin.
10782 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
10785 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
10786 chain for generated call.
10788 2015-03-25 Richard Biener <rguenther@suse.de>
10790 * passes.c (pass_manager::execute_early_local_passes): Guard
10791 execution of pass_chkp_instrumentation_passes with
10792 flag_check_pointer_bounds.
10793 (pass_chkp_instrumentation_passes::gate): Likewise.
10795 2015-03-25 Martin Liska <mliska@suse.cz>
10797 PR tree-optimization/65538
10798 * symbol-summary.h (function_summary::~function_summary):
10799 Relese memory for allocated summaries.
10800 (function_summary::release): New function.
10802 2015-03-25 Jakub Jelinek <jakub@redhat.com>
10805 * lto-streamer-out.c (DFS::worklist): New struct.
10806 (DFS::worklist_vec): New data member.
10807 (DFS::next_dfs_num): Remove.
10808 (DFS::DFS): Rewritten using worklist instead of recursion,
10809 using most of code from DFS::DFS_write_tree.
10810 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
10811 pass it to DFS_write_tree calls.
10812 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
10813 quick initial checks push it into worklist_vec and return.
10815 2015-03-25 Richard Biener <rguenther@suse.de>
10817 PR middle-end/65519
10818 * genmatch.c (expr::gen_transform): Re-write to avoid
10819 using gimple_build.
10821 2015-03-25 Bin Cheng <bin.cheng@arm.com>
10823 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
10825 2015-03-25 Bin Cheng <bin.cheng@arm.com>
10827 * config/arm/arm.opt (print_tune_info): New option.
10828 * config/arm/arm.c (arm_print_tune_info): New function.
10829 (arm_file_start): Call arm_print_tune_info.
10830 * config/arm/arm-protos.h (struct tune_params): Add comment.
10831 * doc/invoke.texi (@item -mprint-tune-info): New item.
10832 (-mtune): mention it in ARM Option Summary.
10834 2015-03-25 DJ Delorie <dj@redhat.com>
10836 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
10839 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
10840 Martin Liska <mliska@suse.cz>
10842 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
10843 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
10844 (sem_item::add_type): New function.
10845 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
10846 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
10847 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
10848 (sem_function::equals_wpa): Fix typo.
10849 * ipa-icf.h (sem_item::add_type): New function.
10850 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
10853 2015-03-24 Jakub Jelinek <jakub@redhat.com>
10855 PR tree-optimization/65533
10856 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
10857 with swapped operands, call vect_free_slp_tree on
10858 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
10861 2015-03-24 Richard Biener <rguenther@suse.de>
10863 PR middle-end/65517
10864 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
10865 for fixup if necessary.
10867 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
10869 * doc/extend.texi (Function Attributes): Add @cindex entries
10870 for all attributes and regularize their format. Delete text
10871 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
10872 information about "eightbit_data", "tiny_data", and "model"
10873 variable attributes to the Variable Attributes section. Fix
10874 some obvious typos and copy-editing issues.
10875 (Variable Attributes, Type Attributes): Likewise add/fix
10876 @cindex entries for all attributes.
10878 2015-03-23 Jakub Jelinek <jakub@redhat.com>
10881 * tree-chkp.c (chkp_build_returned_bound): Ignore
10882 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
10884 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
10887 * config/sh/predicates.md (simple_mem_operand,
10888 displacement_mem_operand): Add test for reg.
10889 (short_displacement_mem_operand): Test for displacement_mem_operand
10890 before invoking sh_disp_addr_displacement.
10891 * config/sh/constraints.md (Sdd, Sra): Simplify.
10892 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
10893 Remove redundant displacement_mem_operand tests.
10895 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
10898 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
10899 the same -mmcu=MCU more than once.
10901 2015-03-23 Jakub Jelinek <jakub@redhat.com>
10904 * ipa-devirt.c: Remove duplicate demangle.h include.
10907 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
10909 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
10910 REG_POINTER on *destptr after adjusting it for prologue size.
10913 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
10914 ultimate_alias_target ()->order ints instead of
10915 ultimate_alias_target () pointers.
10917 2015-03-23 Richard Biener <rguenther@suse.de>
10919 PR tree-optimization/65518
10920 * tree-vect-stmts.c (vectorizable_load): Reject single-element
10921 interleaving cases we generate absymal code for.
10923 2015-03-23 Richard Biener <rguenther@suse.de>
10925 PR tree-optimization/65494
10926 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
10928 (vect_analyze_slp_instance): But do that here, always and once.
10930 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10932 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
10933 adding T or multiplying by T+1 and subracting T.
10935 2015-03-22 Jeff Law <law@redhat.com>
10937 PR rtl-optimization/64317
10938 * Makefile.in (OBJS): Add gcse-common.c
10939 * gcse.c: Include gcse-common.h
10940 (struct modify_pair_s): Move structure definition to gcse-common.h
10941 (compute_transp): Move function to gcse-common.c.
10942 (canon_list_insert): Similarly.
10943 (record_last_mem_set_info): Break out some code and put it into
10944 gcse-common.c. Call into the new common code.
10945 (compute_local_properties): Pass additional arguments to compute_transp.
10946 * postreload-gcse.c: Include gcse-common.h and df.h
10947 (modify_mem_list_set, blocks_with_calls): New variables.
10948 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
10949 (get_bb_avail_insn): Pass in the expression index too.
10950 (alloc_mem): Allocate memory for the new bitmaps and lists.
10951 (free_mem): Free memory for the new bitmaps and lists.
10952 (insert_expr_in_table): Record a bitmap index for each entry we
10954 (record_last_mem_set_info): Call into common code in gcse-common.c.
10955 (get_bb_avail_insn): If no available insn was found in the requested
10956 BB. If BB has a single predecessor, see if the expression is
10957 transparent in BB and available in that single predecessor.
10958 (compute_expr_transp): New wrapper for compute_transp.
10959 (eliminate_partially_redundant_load): Pass expression's bitmap_index
10960 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
10961 (gcse_after_reload_main): If there are elements in the hash table,
10962 then compute transparency for all the elements in the hash table.
10963 * gcse-common.h: New file.
10964 * gcse-common.c: New file.
10966 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
10968 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
10970 (System Headers): Likewise.
10972 (Traditional macros): Likewise.
10973 (Invocation): Likewise.
10974 (Option Index): Likewise.
10975 * doc/cppopts.texi (-M): Likewise.
10976 (-finput-charset): Likewise.
10977 (--help): Likewise.
10978 * doc.invoke.texi (AVR Options): Likewise.
10979 (V850 Options): Likewise.
10981 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
10984 * ipa-devirt.c: Include demangle.h
10985 (odr_type_d): Add field rtti_broken.
10986 (odr_subtypes_equivalent_p): Do not require name to match.
10987 (compare_virtual_tables): Fix typo; if type already has ODR violation,
10988 bypass the tests; be ready for function referneces in vtables that are
10989 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
10990 (warn_odr): Give up for nameless types.
10991 (warn_types_mismatch): Report mismatch in mangled names;
10992 report mismatch in anonymous namespaces; look into component types to
10993 give useful error; report when mismatch is dragged in from other ODR
10995 (odr_types_equivalent_p): Match types for being polymorphic; avoid
10996 duplicated diagnostics.
10997 (add_type_duplicate): Reorder checks so more informative ones come
10998 first; fix typo; do not output "the extra base is defined here" when
11000 (BINFO_N_BASE_BINFOS): Relax sanity check.
11002 2015-03-22 Martin Liska <mliska@suse.cz>
11003 Jakub Jelinek <jakub@redhat.com>
11005 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
11006 masks that can potentially include a builtin.
11007 (ix86_add_new_builtins): Introduce fast filter for isa values
11008 that cannot trigger builtin inclusion.
11010 2015-03-22 Martin Liska <mliska@suse.cz>
11012 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
11013 (sem_item::update_hash_by_local_refs): Likewise.
11014 (sem_variable::get_hash): Empty line is fixed.
11015 (sem_item_optimizer::execute): Include adding of hash references.
11016 (sem_item_optimizer::update_hash_by_addr_refs): New function.
11017 (sem_item_optimizer::build_hash_based_classes): Use local hash.
11018 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
11019 (sem_item::update_hash_by_local_refs): Likewise.
11021 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
11024 * ipa-comdats.c (enqueue_references): Walk through thunks.
11025 (ipa_comdats): Likewise.
11026 (set_comdat_group_1): New function.
11028 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
11031 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
11034 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
11035 Gerald Pfeifer <gerald@pfeifer.com>
11037 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
11039 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11040 Sandra Loosemore <sandra@codesourcery.com>
11042 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
11043 function parameter declaration.
11044 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
11045 Update arguments to nios2_adjust_call_address().
11046 (sibcall_internal): Rename from *sibcall.
11047 (sibcall_value_internal): Rename from *sibcall_value.
11048 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
11049 (nios2_large_got_address): Add target temp reg parameter.
11050 (nios2_got_address): Adjust call to nios2_large_got_address, add
11051 force_reg around it.
11052 (nios2_load_pic_address): Add target temp reg parameter, replace call
11053 to nios2_got_address with corresponding code.
11054 (nios2_legitimize_constant_address): Update call to
11055 nios2_load_pic_address.
11056 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
11057 to use temp reg for PIC loading purposes.
11058 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
11059 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
11060 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
11062 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
11064 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
11065 usage of "the @option{...}".
11066 (-Wopenmp-simd): Likewise.
11067 (-fsanitize-recover): Likewise.
11068 (-fsanitize-undefined-trap-on-error): Likewise.
11070 (tracer-dynamic-coverage-feedback): Likewise.
11071 (reorder-block-duplicate-feedback): Likewise.
11072 (loop-unroll-jam-size): Likewise.
11075 (-mabs=legacy): Likewise.
11076 (-mupper-regs-df): Likewise.
11077 (-mupper-regs-sf): Likewise.
11078 (-mpointers-to-nested-functions): Likewise.
11080 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
11082 * doc/extend.texi (Cilk Plus Builtins): Add markup.
11084 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
11086 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
11087 additional index entries and cross-references.
11088 (-fchkp-check-incomplete-type): Likewise.
11089 (-fchkp-first-field-has-own-bounds): Likewise.
11090 (-fchkp-narrow-to-innermost-array): Likewise.
11091 (-fchkp-use-fast-string-functions): Likewise.
11092 (-fchkp-use-nochk-string-functions): Likewise.
11093 (-fchkp-use-static-const-bounds): Likewise.
11094 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
11095 (-fchkp-instrument-marked-only): Likewise.
11096 (-fchkp-use-wrappers): Likewise.
11097 (-static-libmpx): Likewise.
11098 (-static-libmpxwrappers): Likewise.
11099 * doc/extend.texi (bnd_legacy): Likewise.
11100 (bnd_instrument): Likewise.
11101 (bnd_variable_size): Likewise.
11102 (Pointer Bounds Checker builtins): Likewise.
11104 2015-03-21 Tom de Vries <tom@codesourcery.com>
11106 PR tree-optimization/65458
11107 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
11108 * cgraph.h (cgraph_node): Add parallelized_function field.
11109 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
11110 (input_overwrite_node): Read parallelized_function field.
11111 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
11112 parallelized_function on cgraph_node for child_fn.
11113 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
11114 Remove include of gt-tree-parloops.h.
11115 (parallelized_functions): Remove static variable.
11116 (parallelized_function_p): Rewrite using parallelized_function field of
11118 (create_loop_fn): Remove adding to parallelized_functions.
11119 * Makefile.in (GTFILES): Remove tree-parloops.c
11121 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
11123 PR rtl-optimization/64366
11124 * lra.c (lra_update_insn_regno_info): Consider regs in
11125 CALL_INSN_FUNCTION_USAGE memory.
11127 2015-03-20 Richard Biener <rguenther@suse.de>
11129 PR middle-end/64715
11130 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
11131 for type comparison and gcc_checking_assert.
11132 (chrec_fold_plus_poly_poly): Likewise.
11133 (chrec_fold_multiply_poly_poly): Likewise.
11134 (chrec_convert_1): Likewise.
11135 * gimplify.c (gimplify_expr): Remove premature folding of
11136 &X + CST to &MEM[&X, CST].
11138 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
11140 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
11142 (ipa_inline): Recompute inline_failed codes.
11143 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
11144 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
11147 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
11149 PR rtl-optimization/60851
11150 * recog.c (constrain_operands): Accept a pseudo register before reload
11151 for LRA enabled targets.
11153 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
11156 * config/rs6000/predicates.md (easy_fp_constant): Remove special
11157 -ffast-math handling that kept non-0 constants live in the RTL
11158 until reload. Remove logic testing the number of instructions it
11159 took to create a constant in a GPR that was never used, due to a
11160 test for soft-float earlier.
11161 (memory_fp_constant): Delete, no longer used.
11163 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
11164 alternatives for loading non-0 constants into GPRs for hard
11165 floating point that is no longer needed due to changes in
11166 easy_fp_constant. Add support for loading 0.0 into GPRs.
11167 (mov<mode>_hardfloat32): Likewise.
11168 (mov<mode>_hardfloat64): Likewise.
11169 (mov<mode>_64bit_dm): Likewise.
11170 (movtd_64bit_nodm): Likewise.
11171 (pre-reload move FP constant define_split): Delete define_split,
11172 since it is no longer used.
11173 (extenddftf2_internal): Remove GHF constraints that are not valid
11176 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
11178 PR rtl-optimization/63491
11179 * lra-constraints.c (check_and_process_move): Use src instead of
11180 sreg. Remove some dead code.
11182 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
11185 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
11186 (sem_variable::merge): Likewise.
11188 2015-03-19 Martin Liska <mliska@suse.cz>
11191 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
11192 all fields of cgraph_thunk_info.
11194 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
11196 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
11197 clone instrumented thunks.
11199 2015-03-19 Richard Biener <rguenther@suse.de>
11202 2015-03-10 Richard Biener <rguenther@suse.de>
11204 PR middle-end/63155
11205 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
11206 * tree-ssa-coalesce.c: Include timevar.h.
11207 (attempt_coalesce): Handle graph being NULL.
11208 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
11209 Split out abnormal coalescing to ...
11210 (perform_abnormal_coalescing): ... this function.
11211 (coalesce_ssa_name): Perform abnormal coalescing without computing
11213 (verify_ssa_coalescing_worker): New function.
11214 (verify_ssa_coalescing): Likewise.
11216 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
11217 Jakub Jelinek <jakub@redhat.com>
11220 * tsan.c (instrument_gimple): Clear tail call flag on
11223 2015-03-19 Jakub Jelinek <jakub@redhat.com>
11226 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
11227 call in the return bb.
11228 (find_split_points): Add RETURN_BB argument, don't call
11230 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
11231 if true append TSAN_FUNC_EXIT internal call after the call to
11232 the split off function.
11233 (execute_split_functions): Call find_return_bb here.
11234 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
11235 Adjust find_split_points and split_function calls.
11237 2015-03-18 DJ Delorie <dj@redhat.com>
11239 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
11240 (iorqi3_virt): Likewise.
11242 2015-03-18 Tom de Vries <tom@codesourcery.com>
11244 * tree-parloops.c (parallelize_loops): Make static.
11245 * tree-parloops.h (parallelize_loops): Remove extern declaration.
11247 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
11249 PR middle-end/64491
11251 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
11253 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
11254 condition would be removed due to undefined behaviour.
11256 2015-03-18 Martin Liska <mliska@suse.cz>
11259 * cgraph.c (cgraph_node::get_create): Remove unnecessary
11260 xstrdup_for_dump wrapper.
11261 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
11263 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
11264 with xstrdup_for_dump.
11265 (sem_variable::equals): Likewise.
11266 (sem_item_optimizer::read_section): Use symtab_node::name instead of
11268 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
11269 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
11270 symtab_node::asm_name with xstrdup_for_dump.
11271 (congruence_class::dump): Use symtab_node::name instead of
11273 * ipa-icf.h (symtab_node::name): Remove.
11274 (symtab_node::asm_name): Likewise.
11276 2015-03-18 Jakub Jelinek <jakub@redhat.com>
11278 PR tree-optimization/65450
11279 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
11281 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
11282 it instead of duplicate_ssa_name_ptr_info.
11285 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
11287 2015-03-18 Richard Biener <rguenther@suse.de>
11289 * tree-data-ref.h (struct access_matrix): Remove.
11290 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
11291 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
11292 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
11293 (am_vector_index_for_loop): Likewise.
11294 (struct data_reference): Remove access_matrix member.
11295 (DR_ACCESS_MATRIX): Remove.
11296 (lambda_vector_new): Add comment.
11297 (lambda_matrix_new): Use XOBNEWVEC.
11299 2015-03-18 Richard Biener <rguenther@suse.de>
11301 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
11302 (pass_ch::execute): Cleanup the CFG only if we did sth.
11303 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
11305 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11307 * expmed.c (synth_mult): Use std::swap instead of manually
11308 swapping algorithms.
11310 2015-03-18 Jakub Jelinek <jakub@redhat.com>
11313 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
11315 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
11318 * config/avr/avr.opt (-nodevicelib): New option.
11319 * doc/invoke.texi (AVR Options): Document it.
11320 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
11321 libgcc.a, libc.a, libm.a.
11322 * config/avr/specs.h: Same.
11323 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
11324 which don't (directly) depend on the device. Print more help.
11325 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
11326 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
11327 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
11329 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
11330 for specs file name.
11331 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
11332 * config/avr/avr-mcus.def: Adjust initializers and comments.
11334 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
11336 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
11337 DECL_ONE_ONLY to check if decl is one only.
11338 * ipa-split.c (consider_split): Limit splitt of one only functions.
11340 2015-03-16 Jakub Jelinek <jakub@redhat.com>
11342 PR tree-optimization/65427
11343 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
11345 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
11347 2015-03-16 Marek Polacek <polacek@redhat.com>
11349 * cgraph.h (add_new_static_var): Remove declaration.
11350 * varpool.c (add_new_static_var): Remove function.
11352 2015-03-16 Jakub Jelinek <jakub@redhat.com>
11354 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
11355 instead of vec<tree> * with vec_alloc and release for args.
11358 PR middle-end/65431
11359 * omp-low.c (delete_omp_context): Only splay_tree_delete
11360 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
11361 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
11363 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
11366 * cfgexpand.c (align_base): New function.
11367 (alloc_stack_frame_space): Call it.
11368 (expand_stack_vars): Align prev_frame to be sure
11369 data->asan_vec elements aligned properly.
11371 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
11373 PR middle-end/65409
11374 * expr.c (store_field): Do not do a direct block copy if the source is
11375 a PARALLEL with BLKmode.
11377 2015-03-16 Tom de Vries <tom@codesourcery.com>
11379 PR middle-end/65414
11381 2015-03-12 Tom de Vries <tom@codesourcery.com>
11383 PR rtl-optimization/64895
11384 * lra-lives.c (check_pseudos_live_through_calls): Use
11385 actual_call_used_reg_set instead of call_used_reg_set, if available.
11387 2015-03-16 Alan Modra <amodra@gmail.com>
11390 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
11391 Modify Z->r bswapdi splitter to use dest in place of scratch.
11392 In r->Z and Z->r bswapdi splitter rename word_high, word_low
11393 to word1, word2 and rearrange logic to suit.
11394 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
11395 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
11396 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
11397 Add one '?' on r->r. Modify Z->r splitter to avoid need for
11400 2015-03-14 Jakub Jelinek <jakub@redhat.com>
11402 PR tree-optimization/65369
11403 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
11404 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
11405 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
11407 PR tree-optimization/65418
11408 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
11409 are casts in the first PLUS_EXPR operand, ensure tbias and
11410 *totallowp are in the inner type.
11412 PR rtl-optimization/65401
11413 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
11414 argument. If true, adjust_address_nv of x with big-endian
11415 correction for the mode widening to GET_MODE (y).
11416 (make_field_assignment): Don't do MEM mode widening here.
11417 Use MEM_P instead of GET_CODE == MEM.
11419 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
11421 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
11422 the external decls.
11424 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11427 * config/arm/arm.c (arm_gen_constant, AND case): Use
11428 ARM_SIGN_EXTEND when constructing AND mask.
11430 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
11432 * graph.c (print_graph_cfg): Make function names visible and append
11433 parenthesis to it. Also make groups of basic blocks belonging to the
11434 same function visible.
11436 2015-03-12 Richard Biener <rguenther@suse.de>
11438 PR middle-end/44563
11439 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
11440 to avoid quadratic behavior with inline expansion splitting blocks.
11441 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
11442 with the successor if the predecessor will be merged with it.
11443 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
11444 entry block with its successor.
11446 2015-03-13 Richard Biener <rguenther@suse.de>
11448 PR middle-end/44563
11449 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
11450 (cleanup_tree_cfg_1): Do not call it.
11451 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
11452 (fixup_noreturn_call): Mark the stmt as control altering.
11453 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
11455 (pass_data_fixup_cfg): Produce a dump file.
11456 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
11457 (need_noreturn_fixup): New global.
11458 (pass_dominator::execute): Fixup queued noreturn calls.
11459 (optimize_stmt): Queue calls that became noreturn for fixup.
11460 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
11461 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
11462 (el_to_fixup): New global.
11463 (eliminate_dom_walker::before_dom_childre): Queue calls that
11464 became noreturn for fixup.
11465 (eliminate): Fixup queued noreturn calls.
11466 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
11467 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
11468 (substitute_and_fold_dom_walker::before_dom_children): Queue
11469 alls that became noreturn for fixup.
11470 (substitute_and_fold): Fixup queued noreturn calls.
11472 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
11474 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
11475 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
11476 are building; for methods check ODR type of class they belong to if
11477 they may lead to a polymorphic call.
11478 (sem_function::compare_polymorphic_p): Be bit smarter about testing
11479 when function may lead to a polymorphic call.
11480 (sem_function::compare_type_list): Remove.
11481 (sem_variable::equals): Update use of compatible_types_p.
11482 (sem_variable::parse_tree_refs): Remove.
11483 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
11485 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
11487 (func_checker::compatible_polymorphic_types_p): Break out from ...
11488 (unc_checker::compatible_types_p): ... here.
11489 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
11491 (unc_checker::compatible_types_p): Update.
11492 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
11495 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11497 PR rtl-optimization/65235
11498 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
11499 When first element of vec_concat is const_int, calculate its size
11500 using second element.
11502 2015-03-12 Richard Biener <rguenther@suse.de>
11504 PR middle-end/65270
11505 * fold-const.c (operand_equal_p): Fix ordering of resetting
11506 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
11508 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
11510 * config/s390/s390.c (s390_reorg): Move code to output nops after label
11512 (s390_asm_output_function_label): Likewise.
11513 * config/s390/s390.c (s390_asm_output_function_label):
11514 Fix function label alignment with -mhtopatch.
11515 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
11516 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
11517 ("nop_2_byte"): New define_insn.
11518 ("nop_4_byte"): Likewise.
11519 ("nop_6_byte"): Likewise.
11520 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
11521 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
11523 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
11526 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
11529 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
11532 * toplev.c (process_options): Restrict Pointer Bounds Checker
11533 usage with Address Sanitizer.
11535 2015-03-12 Richard Biener <rguenther@suse.de>
11537 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
11539 * omp-low.c (expand_omp_taskreg): Split block before removing
11541 (expand_omp_target): Likewise.
11542 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
11543 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
11544 stmt to split_block.
11546 2015-03-12 Tom de Vries <tom@codesourcery.com>
11548 PR rtl-optimization/64895
11549 * lra-lives.c (check_pseudos_live_through_calls): Use
11550 actual_call_used_reg_set instead of call_used_reg_set, if available.
11552 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
11554 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
11555 (cgraph_node::remove): Likewise.
11556 (cgraph_node::get_untransformed_body): Likewise.
11557 * varpool.c (varpool_node::remove): Likewise.
11558 (varpool_node::get_constructor): Add sanity check.
11560 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
11562 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
11564 (-fabi-compat-version): Likewise.
11565 (-ffriend-injection): Likewise.
11566 (-Wdeclaration-after-statement): Likewise.
11567 (-fomit-frame-pointer): Likewise.
11568 (-ftree-coalesce-inlined-vars): Likewise.
11569 (-fvisibility=): Likewise.
11570 * doc/extend.texi (Typeof): Likewise.
11571 (Zero Length): Likewise.
11572 (Escaped Newlines): Likewise.
11573 (Compound Literals): Likewise.
11574 (Function Attributes): Likewise.
11575 (Label Attributes): Likewise.
11576 (Type Attributes): Likewise.
11577 (Function Names): Likewise.
11578 (Other Builtins): Likewise.
11579 (Function Specific Option Pragmas): Likewise.
11580 (C++ Interface): Likewise.
11582 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
11584 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
11586 2015-03-11 Marek Polacek <polacek@redhat.com>
11588 PR tree-optimization/65388
11589 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
11591 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
11594 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
11595 * configure: Regenerate.
11596 * config.in: Regenerate.
11597 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
11598 [-mn-flash]: Document it.
11599 [__AVR_ARCH__]: Document avrtiny.
11601 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
11602 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
11603 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
11605 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11607 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
11609 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
11612 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
11613 allow reloads of PLUS in floating point/VSX registers.
11615 2015-03-11 Junmo Park <junmoz.park@samsung.com>
11617 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
11618 crypto_sha256_fast.
11619 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
11621 2015-03-11 Richard Biener <rguenther@suse.de>
11623 PR tree-optimization/65310
11624 * tree-sra.c (build_ref_for_offset): Also preserve larger
11627 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
11629 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
11631 2015-03-10 Jakub Jelinek <jakub@redhat.com>
11634 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
11636 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
11638 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
11640 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
11641 (sem_function::equals_wpa): ... here.
11643 2015-03-10 Marek Polacek <polacek@redhat.com>
11644 Jakub Jelinek <jakub@redhat.com>
11647 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
11648 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
11651 2015-03-10 Jakub Jelinek <jakub@redhat.com>
11654 * config/rs6000/t-linux: For powerpc64* target set
11655 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
11657 2015-03-10 Richard Biener <rguenther@suse.de>
11659 PR middle-end/44563
11660 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
11661 for redirect_all_calls.
11663 2015-03-10 Marek Polacek <polacek@redhat.com>
11665 * gdbinit.in (pcfun): Define and document.
11667 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
11669 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
11670 of libgomp-plugin.h.
11671 (find_target_compiler): Support a case when the path to gcc is
11672 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
11673 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
11674 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
11676 (main): Use GCC_INSTALL_NAME as target_driver_name.
11677 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
11679 (mkoffload.o): Remove obsolete include path and defines.
11680 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
11682 2015-03-10 Richard Biener <rguenther@suse.de>
11684 PR middle-end/63155
11685 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
11686 * tree-ssa-coalesce.c: Include timevar.h.
11687 (attempt_coalesce): Handle graph being NULL.
11688 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
11689 Split out abnormal coalescing to ...
11690 (perform_abnormal_coalescing): ... this function.
11691 (coalesce_ssa_name): Perform abnormal coalescing without computing
11693 (verify_ssa_coalescing_worker): New function.
11694 (verify_ssa_coalescing): Likewise.
11696 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
11699 * config.gcc (extra_options) [avr]: Remove.
11700 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
11701 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
11702 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
11704 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
11705 (-mmcu=): Add Var and MissingArgError properties.
11707 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
11708 * config/avr/t-multilib: Regenerate.
11709 * config/avr/specs.h: New file.
11710 * config/avr/driver-avr.c: New file.
11711 * config/avr/genopt.sh: Remove file.
11712 * config/avr/avr-tables.opt: Remove file.
11713 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
11714 * config/avr/avr-c.c: Same.
11715 * avr-arch.h: Same.
11716 (avr_current_device): Remove proto.
11717 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
11718 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
11719 (EXTRA_SPEC_FUNCTIONS): Define.
11720 (avr_devicespecs_file): New specs function proto.
11721 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
11722 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
11723 (avr_current_device): Remove definition and usage.
11724 (avr_set_core_architecture): New static function.
11725 (avr_option_override): Use it.
11726 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
11727 (mcu_name): New static array.
11728 (comparator, avr_archs_str, avr_mcus_str): New static functions.
11729 (avr_inform_devices, avr_inform_core_architectures): New functions.
11730 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
11731 (avrlibc.h) [WITH_AVRLIBC]: Include.
11732 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
11733 (print_mcu): Rewrite from scratch.
11734 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
11735 Forward to avr-specific specs defined in device-specs file.
11736 * config/avr/t-avr (driver-avr.o): New rule.
11737 (avr-devices.o): Depend on avr-arch.h.
11738 (avr-mcus): No more depend on avr-tables.opt.
11739 (avr-tables.opt): Remove rule.
11740 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
11742 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
11744 * c-family/c.opt (fchkp-use-wrappers): New.
11745 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
11746 (chkp_wrap_function): New.
11747 (chkp_build_instrumented_fndecl): Support wrapped
11749 * doc/invoke.texi (-fcheck-pointer-bounds): New.
11750 (-fchkp-check-incomplete-type): New.
11751 (-fchkp-first-field-has-own-bounds): New.
11752 (-fchkp-narrow-bounds): New.
11753 (-fchkp-narrow-to-innermost-array): New.
11754 (-fchkp-optimize): New.
11755 (-fchkp-use-fast-string-functions): New.
11756 (-fchkp-use-nochk-string-functions): New.
11757 (-fchkp-use-static-bounds): New.
11758 (-fchkp-use-static-const-bounds): New.
11759 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
11760 (-fchkp-check-read): New.
11761 (-fchkp-check-write): New.
11762 (-fchkp-store-bounds): New.
11763 (-fchkp-instrument-calls): New.
11764 (-fchkp-instrument-marked-only): New.
11765 (-fchkp-use-wrappers): New.
11766 (-static-libmpx): New.
11767 (-static-libmpxwrappers): New.
11769 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
11771 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
11772 (CHKP_SPEC): Add wrappers library.
11773 * c-family/c.opt (static-libmpxwrappers): New.
11775 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
11777 * config/i386/linux-common.h (LIBMPX_LIBS): New.
11778 (LIBMPX_SPEC): New.
11780 * gcc.c (CHKP_SPEC): New.
11781 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
11782 * c-family/c.opt (static-libmpx): New.
11784 2015-03-10 Richard Biener <rguenther@suse.de>
11786 PR middle-end/44563
11787 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
11789 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
11790 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
11791 (cgraph_add_edge_to_call_site_hash): Likewise.
11792 (cgraph_node::get_edge): Likewise.
11793 (cgraph_edge::set_call_stmt): Likewise.
11794 (cgraph_edge::remove_caller): Likewise.
11796 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
11798 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
11799 (callee_saved_gpr_regs_size): ... this.
11800 (callee_saved_regs_first_regno): Rename to ...
11801 (callee_saved_first_gpr_regno): ... this.
11802 (callee_saved_regs_last_regno) Rename to ...
11803 (callee_saved_last_gpr_regno): ... this.
11804 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
11806 (nds32_initial_elimination_offset): Likewise.
11807 (nds32_expand_prologue): Likewise.
11808 (nds32_expand_epilogue): Likewise.
11809 (nds32_expand_prologue_v3push): Likewise.
11810 (nds32_expand_epilogue_v3pop): Likewise.
11811 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
11812 Adjust renamed variables.
11813 (nds32_output_stack_pop): Likewise.
11815 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
11817 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
11820 2015-03-10 Jakub Jelinek <jakub@redhat.com>
11822 PR rtl-optimization/65321
11823 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
11825 * var-tracking.c (use_narrower_mode): Likewise.
11827 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
11829 PR tree-optimization/65355
11830 * varasm.c (notice_global_symbol): Do not produce RTL.
11831 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
11833 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
11834 check for section anchors.
11836 2015-03-10 Alan Modra <amodra@gmail.com>
11839 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
11840 to be single-arch by default. Set cpu_is_64bit for powerpc64
11841 given --with-cpu=native.
11842 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
11843 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
11845 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
11846 rs6000_isa_flags rather than TARGET_64BIT.
11848 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
11849 Kaz Kojima <kkojima@gcc.gnu.org>
11851 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
11853 2015-03-09 Jakub Jelinek <jakub@redhat.com>
11856 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
11857 on a TREE_BINFO, instead use BINFO_TYPE.
11859 2015-03-09 Richard Biener <rguenther@suse.de>
11861 PR middle-end/65270
11862 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
11863 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
11864 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
11865 of that. When comparing dereferences compare alignment.
11866 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
11868 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
11870 * ipa-inline-analysis.c (check_callers): Check
11871 node->can_remove_if_no_direct_calls_and_refs_p.
11872 (growth_likely_positive): Reorganize to call
11873 can_remove_if_no_direct_calls_p later.
11874 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
11875 will_be_removed_from_program_if_no_direct_calls_p): Add
11876 will_inline parameter.
11877 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
11878 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
11879 Handle inliner case correctly.
11881 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
11883 PR tree-optimization/63743
11884 * cfgexpand.c (reorder_operands): Also reorder if only second operand
11885 had its definition forwarded by TER.
11887 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
11890 * ipa-utils.h (types_odr_comparable): Add strict argument.
11891 * ipa-devirt.c: Fix whitespace;
11892 (odr_hasher): Remove.
11893 (odr_name_hasher, odr_vtable_hasher): New hashers.
11894 (can_be_name_hashed_p): New predicate.
11895 (hash_type_name): remove.
11896 (hash_odr_name): New.
11897 (odr_name_hasher::hash): new.
11898 (can_be_vtable_hashed_p): New.
11899 (hash_odr_vtable): New.
11900 (odr_vtable_hasher::hash): New.
11901 (types_same_for_odr): Add strict parameter.
11902 (types_odr_comparable): Likewise.
11903 (odr_name_hasher::equal): New.
11904 (odr_vtable_hasher::equal): New.
11905 (odr_name_hasher::remove): New.
11906 (odr_hash_type): Change to hash_table<odr_name_hasher>.
11907 (odr_vtable_hash_type): New.
11908 (odr_vtable_hash): New.
11909 (odr_subtypes_equivalent_p): Do strict comparsion.
11910 (add_type_duplicate): Merge type names; cleanup; avoid type
11912 (register_odr_type): Initialize vtable hash.
11913 (build_type_inheritance_graph): Likewise
11914 (get_odr_type): Reorg to use two hashes.
11915 (dump_possible_polymorphic_call_targets): Move sanity check after debug
11917 (ipa_devirt): Dump type_inheritance_graph.
11918 (types_same_for_odr): Add strict mode.
11920 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
11923 * cgraph.h (symtab_node): Add definition_alignment,
11924 can_increase_alignment_p and increase_alignment.
11925 * symtab.c (symtab_node::can_increase_alignment_p,
11926 increase_alignment_1, symtab_node::increase_alignment,
11927 symtab_node::definition_alignment): New.
11928 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
11929 can_increase_alignment_p.
11930 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
11931 * tree-vect-stmts.c (ensure_base_align): Likewise.
11932 * varasm.c (function_section_1): Use definition_alignment.
11933 (assemble_start_function): Likewise.
11934 (emit_local): likewise.
11935 (build_constant_desc): Likewsie.
11936 (output_constant_def_contents): Likewise.
11937 (place_block_symbol): Likewise.
11938 (output_object_block): Likewise.
11940 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
11943 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
11944 when outputting debug.
11946 2015-03-07 Marek Polacek <polacek@redhat.com>
11947 Martin Uecker <uecker@eecs.berkeley.edu>
11950 * doc/invoke.texi: Update description of -fsanitize=bounds.
11952 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
11954 * tree-ssa-phiopt.c (neg_replacement): Remove.
11955 (tree_ssa_phiopt_worker): Remove negate optimization.
11957 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
11960 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
11962 2015-03-06 Richard Biener <rguenther@suse.de>
11964 PR middle-end/64928
11965 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
11966 and liveout_obstack members.
11967 (calculate_live_on_exit): Remove.
11968 (calculate_live_ranges): Change declaration.
11969 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
11970 (new_tree_live_info): Adjust.
11971 (calculate_live_ranges): Delete livein when not wanted.
11972 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
11973 Deal with partly deleted live info.
11974 (loe_visit_block): Remove temporary bitmap by using
11975 bitmap_ior_and_compl_into.
11976 (live_worklist): Adjust accordingly.
11977 (calculate_live_on_exit): Make static.
11978 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
11979 we do not need livein.
11981 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
11983 * real.c (real_from_string): Fix typo in assertion.
11985 2015-03-06 Alex Velenko <alex.velenko@arm.com>
11987 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
11990 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
11992 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
11994 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
11997 * lra-assigns.c (find_hard_regno_for): Rename to
11998 find_hard_regno_for_1. Add a new parameter.
11999 (find_hard_regno_for): New function using find_hard_regno_for_1.
12001 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
12003 PR rtl-optimization/65067
12004 * expmed.c (store_bit_field, extract_bit_field): Reworked the
12005 strict volatile bitfield handling.
12007 2015-03-05 Martin Liska <mliska@suse.cz>
12010 * ipa-icf.c (sem_variable::equals): Compare variables types.
12012 2015-03-05 Richard Henderson <rth@redhat.com>
12015 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
12016 correctly check weak symbol binding.
12018 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
12020 PR middle-end/65315
12021 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
12024 2015-03-05 Martin Liska <mliska@suse.cz>
12026 * ipa-inline.c (inline_small_functions): Set default value to
12027 prevent warning during bootstrap.
12028 * tree.h: Add pragma guard that ignores false positives during
12031 2015-03-05 Richard Biener <rguenther@suse.de>
12033 PR tree-optimization/65310
12034 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
12035 Properly preserve alignment of the base of the access.
12037 2015-03-05 Richard Biener <rguenther@suse.de>
12040 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
12041 Compare dependence info.
12043 2015-03-05 Richard Biener <rguenther@suse.de>
12045 PR middle-end/65233
12046 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
12048 (walk_ssa_copies): Revert last chage. Instead do not walk
12049 SSA names registered for SSA update.
12051 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
12054 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
12055 vtable references for their containing type.
12056 (sem_function::equals_wpa): Compare TYPE_RESTRICT
12057 and type attributes.
12059 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
12061 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
12062 before negating it.
12063 * stor-layout.c (finalize_record_size): Revert latest change.
12065 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
12067 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
12069 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
12071 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
12072 for correct comdat handling.
12073 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
12075 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
12076 (used_from_object_file_p_worker): Remove.
12077 (cgraph_node::only_called_directly_or_alised): Add
12078 used_from_object_file_p.
12079 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
12080 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
12081 can_remove_if_no_direct_calls_and_refs_p.
12083 2015-03-04 Nick Clifton <nickc@redhat.com>
12085 * config/rl78/rl78.h (enum reg_class): Remove real registers from
12086 General register class.
12087 * config/rl78/rl78-real.md: Replace general register constraints
12088 with real+virtual register constraints.
12090 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12092 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
12093 from checking for -mhtm option.
12095 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
12097 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
12098 (struct ipa_sra_check_caller_data): Add has_thunk field.
12099 (ipa_sra_check_caller): Check for thunk.
12100 (ipa_sra_preliminary_function_checks): Give up on function with
12102 (ipa_early_sra): Use call_for_symbol_and_aliases.
12104 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
12107 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
12108 called for __stack_chk_guard symbol.
12110 2015-03-03 DJ Delorie <dj@redhat.com>
12112 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
12114 (*addhi3_real): Likewise.
12115 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
12116 pattern to match incrementing memory.
12117 * config/rl78/predicates.md (rl78_1_2_operand): New.
12118 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
12119 it's the same and only mem.
12120 (rl78_alloc_physical_registers_op2): If there's effectively only
12121 one MEM, transcode it into HL.
12122 (rl78_far_p): Reject addresses that aren't legitimate.
12124 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
12126 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
12129 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
12131 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
12133 Implement call0 ABI for xtensa
12134 * config/xtensa/constraints.md ("a" constraint): Include stack
12135 pointer in case of call0 ABI.
12136 ("q" constraint): Make empty in case of call0 ABI.
12137 ("D" constraint): Include stack pointer in case of call0 ABI.
12138 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
12139 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
12141 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
12143 (xtensa_regno_to_class): Make it a local variable in the
12144 function xtensa_regno_to_class.
12145 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
12146 macro, function prototype and implementation.
12147 (reg_nonleaf_alloc_order): Make it a local variable in the
12148 function order_regs_for_local_alloc.
12149 (xtensa_conditional_register_usage): New function.
12150 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
12151 (xtensa_valid_move): Allow direct moves to stack pointer
12152 register in call0 ABI.
12153 (xtensa_setup_frame_addresses): Only spill register windows in
12155 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
12156 call0 ABI respectively.
12157 (xtensa_function_arg_1): Only mark a7 register for copying in
12159 (xtensa_call_save_reg): New function.
12160 (compute_frame_size): Add space for callee saved register
12161 storage to the frame size in call0 ABI.
12162 (xtensa_expand_prologue): Generate code to set up stack frame
12163 and save callee-saved registers in call0 ABI.
12164 (xtensa_expand_epilogue): New function.
12165 (xtensa_set_return_address): New function.
12166 (xtensa_return_addr): Calculate return address in call0 ABI.
12167 (xtensa_builtin_saveregs): Only mark a7 register for copying and
12168 emit copying code in windowed ABI.
12169 (order_regs_for_local_alloc): Add preferred register allocation
12170 order for non-leaf function in call0 ABI.
12171 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
12172 (xtensa_asm_trampoline_template): Add trampoline generation for
12174 (xtensa_trampoline_init): Add trampoline initialization for
12176 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
12178 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
12179 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
12180 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
12181 ABI call-used registers.
12182 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
12183 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
12185 (REG_CLASS_CONTENTS): Include all registers into the preferred
12186 reload registers set, adjust the set in the
12187 xtensa_conditional_register_usage.
12188 (xtensa_regno_to_class): Drop variable declaration.
12189 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
12191 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
12193 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
12194 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
12195 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
12196 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
12197 location in call0 ABI.
12198 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
12199 stack adjustment size when handling exception.
12200 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
12201 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
12203 ("return" pattern): Generate ret.n/ret in call0 ABI.
12204 ("epilogue" pattern): Expand epilogue.
12205 ("nonlocal_goto" pattern): Use default in call0 ABI.
12206 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
12207 emit eh_set_a0_* depending on ABI.
12208 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
12209 ("eh_set_a0_call0", "blockage"): New patterns.
12211 2015-03-03 Martin Liska <mliska@suse.cz>
12214 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
12216 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
12219 * config/rs6000/rs6000-tables.opt: Regenerate table.
12221 2015-03-03 Renlin Li <renlin.li@arm.com>
12223 * doc/md.texi (@item ^): Change ? into ^.
12225 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
12227 * doc/tm.texi: Regenerated.
12229 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
12231 * builtins.c (expand_builtin_return_addr): Add
12232 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
12233 surrounding #ifdef.
12234 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
12236 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
12238 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
12240 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
12243 2015-03-03 Martin Jambor <mjambor@suse.cz>
12244 Eric Botcazou <ebotcazou@adacore.com>
12246 * tree-sra.c (ipa_sra_check_caller_data): New type.
12247 (has_caller_p): Removed.
12248 (ipa_sra_check_caller): New function.
12249 (ipa_sra_preliminary_function_checks): Use it.
12251 2015-03-03 Martin Liska <mliska@suse.cz>
12253 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
12254 instead of if branch.
12256 2015-03-03 Martin Liska <mliska@suse.cz>
12259 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
12261 2015-03-23 Jeff Law <law@redhat.com>
12263 PR tree-optimization/65241
12264 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
12265 hash table if INSERT is true.
12267 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
12270 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
12272 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
12275 * config/avr/avr.c (context.h, tree-pass.h): Include them.
12276 (avr_pass_data_recompute_notes): New static variable.
12277 (avr_pass_recompute_notes): New class.
12278 (avr_register_passes): New static function.
12279 (avr_option_override): Call it.
12281 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
12283 Fix various problems with specs file generation.
12286 * config.gcc (extra_gcc_objs) [avr]: Remove.
12287 * config/avr/driver-avr.c: Remove file.
12288 * config/avr/t-avr (driver-avr.o): Remove rule.
12289 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
12290 INCLUDES to build. Depend on TM_H.
12291 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
12292 build warnings. Fix non-matching types and non-existing %-codes.
12294 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
12295 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
12296 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
12297 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
12298 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
12299 (LIBGCC_SPEC): Remove definitions.
12301 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
12303 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
12304 to create a register in testing mode.
12306 2015-03-03 Martin Liska <mliska@suse.cz>
12307 Jan Hubicka <hubicka@ucw.cz>
12310 * cgraph.c (cgraph_node::has_thunk_p): New function.
12311 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
12312 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
12313 (sem_function::merge): Assert is changed.
12315 2015-03-03 Martin Liska <mliska@suse.cz>
12316 Martin Jambor <mjambor@suse.cz>
12319 * ipa-icf.c (sem_item_optimizer::execute): Change function
12320 return value to boolean.
12321 (sem_item_optimizer::merge_classes): Likewise.
12322 (ipa_icf_driver): Return TODO_remove_functions in case there's
12323 a merge operation processed.
12324 * ipa-icf.h: Change function return value to boolean.
12326 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12329 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
12330 processor type for 64-bit little endian PowerPC.
12332 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
12333 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
12334 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
12335 printing built-in mask so it does not pass NULL pointers.
12337 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
12340 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
12343 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
12344 !ISA_HAS_FP_CONDMOVE.
12346 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
12348 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
12351 2015-03-02 Ulrich Drepper <drepper@gmail.com>
12353 * doc/invoke.texi (Options for Code Generation Conventions):
12354 Fix URL of DSO paper.
12356 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
12359 * ipa-inline.c (check_callers): Looks for recursion.
12360 (inline_to_all_callers): Give up on uninlinable or recursive edges.
12361 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
12362 summary of inline clones.
12363 (do_estimate_growth_1): Fix recursion check.
12365 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
12368 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
12371 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
12372 Aldy Hernandez <aldyh@redhat.com>
12375 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
12376 when checking TYPE_BINFO.
12378 2015-03-02 Richard Biener <rguenther@suse.de>
12381 * ipa-icf-gimple.c: Include builtins.h.
12382 (func_checker::compare_memory_operand): Compare base alignment.
12384 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
12387 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
12388 are never passed by reference.
12390 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
12393 * tree-chkp.c (chkp_check_lower): Don't check against
12394 zero bounds for already instrumented functions.
12395 (chkp_check_upper): Likewise.
12396 (chkp_fini): Clean pass local data to avoid wrong reusage.
12398 2015-02-28 Martin Liska <mliska@suse.cz>
12399 Jan Hubicka <hubicka@ucw.cz>
12401 * ipa-icf.c (sem_variable::equals): Improve debug output;
12402 get variable constructor.
12403 (sem_variable::parse): Do not filter out too early; give up on
12404 volatile and register vars.
12405 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
12407 * ipa-icf.h (sem_variable::init): Do not set ctor.
12408 (sem_variable::ctor): Remove.
12410 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
12412 PR middle-end/65233
12413 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
12415 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
12417 * ipa-icf.c: Include stor-layout.h
12418 (sem_function::compare_cgraph_references): Rename to ...
12419 (sem_item::compare_cgraph_references): ... this one.
12420 (sem_variable::equals_wpa): New function
12421 (sem_variable::equals): Do not check stuff already verified by
12423 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
12424 * ipa-icf.h (sem_item): Add compare_cgraph_references.
12425 (sem_function): Remove compare_cgraph_references.
12426 (sem_variable): Turns equals_wpa into non-inline.
12428 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
12430 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
12431 (sem_item::add_expr): New function.
12432 (sem_function::hash_stmt): Handle operands of most statements.
12433 (sem_variable::get_hash): Hash the actual constructor.
12434 * ipa-icf.h (sem_item): Add add_expr.
12435 (sem_function): Update prototype of hash_stmt
12437 2015-02-28 Martin Liska <mliska@suse.cz>
12438 Jan Hubicka <hubicka@ucw.cz>
12441 * ipa-icf-gimple.c (func_checker::compare_function_decl):
12443 (func_checker::compare_variable_decl): Skip symtab vars.
12444 (func_checker::compare_cst_or_decl): Update.
12445 * ipa-icf.c (sem_function::parse): Do not consider aliases.
12446 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
12447 use correct symtab predicates.
12448 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
12449 (sem_variable::parse): Update comment.
12450 (sem_item_optimizer::build_graph): Consider ultimate aliases
12453 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
12455 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
12458 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
12460 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
12461 (sem_variable::merge) Likewise.
12463 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
12465 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
12466 target; also match flag_ipa_devirt.
12468 2015-03-01 Martin Liska <mliska@suse.cz>
12469 Jan Hubicka <hubicka@ucw.cz>
12471 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
12472 Validate variable alignment.
12473 * ipa-icf.c (sem_function::equals_private): Be more precise
12474 about non-common function attributes.
12475 (sem_variable::equals): Likewise.
12477 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
12480 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
12481 across COMDAT group boundary.
12483 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
12486 * ipa-icf.c (clear_decl_rtl): New function.
12487 (sem_function::merge): Clear RTL before forming alias.
12488 (sem_variable::merge): Clear RTL before forming alias.
12490 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
12493 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
12495 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
12497 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
12500 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
12502 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
12503 a typo in the description.
12505 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
12508 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
12509 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
12510 * lra-constraints.c: Include "params.h".
12511 (EBB_PROBABILITY_CUTOFF): Use
12512 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
12513 (lra_inheritance): Use '<' instead of '<=' for
12514 EBB_PROBABILITY_CUTOFF.
12515 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
12518 2015-02-27 Martin Liska <mliska@suse.cz>
12520 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
12521 vector length condition.
12523 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
12525 * doc/extend.texi (x86 transactional memory intrinsics):
12526 Reorganize discussion of _xbegin. Clarify that the return
12527 value is a bit mask. Expand example and move to end of section.
12529 2015-02-26 Jakub Jelinek <jakub@redhat.com>
12530 Aldy Hernandez <aldyh@redhat.com>
12532 PR rtl-optimization/65220
12533 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
12535 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
12538 * lra-remat.c (update_scratch_ops): New.
12539 (do_remat): Call it.
12540 * lra.c (lra_register_new_scratch_op): New. Take code from ...
12541 (remove_scratches): ... here.
12542 * lra-int.h (lra_register_new_scratch_op): New prototype.
12544 2015-02-27 Marek Polacek <polacek@redhat.com>
12547 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
12548 -Wformat-signedness anymore.
12550 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12552 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
12554 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
12556 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12558 * config/s390/s390.c (enum s390_builtin):
12559 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
12560 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
12561 (s390_init_builtins): Generate new builtin functions.
12562 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
12563 (s390_sfpc, s390_efpc): New pattern definitions.
12565 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12567 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
12568 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
12569 (s390_builtin_decls): New array.
12570 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
12571 (s390_builtin_decl): New function.
12572 (TARGET_BUILTIN_DECL): Define macro.
12574 2015-02-27 Richard Biener <rguenther@suse.de>
12576 PR middle-end/63175
12577 * builtins.c (get_object_alignment_2): Make sure to re-apply
12578 the ANDed mask after recursing to its operand gets us a new
12579 misalignment bit position.
12581 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
12582 Martin Liska <mliska@suse.cz>
12585 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
12586 Use address_matters_p.
12587 (redirect_all_callers, set_addressable): New functions.
12588 (sem_function::merge): Reorganize and fix merging issues.
12589 (sem_variable::merge): Likewise.
12590 (sem_variable::compare_sections): Remove.
12591 * common.opt (fmerge-all-constants, fmerge-constants): Remove
12593 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
12595 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
12597 (address_matters_1): New function.
12598 (symtab_node::address_matters_p): New function.
12599 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
12600 check for merged flag.
12601 * cgraph.h (address_matters_p): Declare.
12602 (symtab_node::address_taken_from_non_vtable_p): Remove.
12603 (symtab_node::address_can_be_compared_p): New method.
12604 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
12605 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
12607 (comdat_can_be_unshared_p_1) Use address_matters_p.
12608 (update_vtable_references): Fix formating.
12609 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
12610 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
12611 * cgraphclones.c: Preserve merged and icf_merged flags.
12613 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
12615 * doc/extend.texi (Function Attributes): Fix spelling and typos.
12616 (Label Attributes): Likewise.
12617 (Cilk Plus Builtins): Likewise.
12618 (ARC SIMD Built-in Functions): Likewise.
12619 (ARM C Language Extensions (ACLE)): Likewise.
12620 (PowerPC Built-in Functions): Likewise.
12621 (PowerPC Hardware Transactional Memory Built-in Functions):
12624 2015-02-26 Jakub Jelinek <jakub@redhat.com>
12626 PR tree-optimization/65216
12627 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
12628 new stmt and new SSA_NAME for lhs whenever the arguments have
12629 changed and weren't just swapped. Fix comment typo.
12631 PR tree-optimization/65215
12632 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
12633 for PDP endian targets.
12634 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
12635 Fix up formatting issues.
12636 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
12637 size is smaller than the original, adjust MEM_REF offset by the
12638 difference of sizes. Use is_gimple_mem_ref_addr instead of
12639 is_gimple_min_invariant test to avoid adding address temporaries.
12641 2015-02-26 Martin Liska <mliska@suse.cz>
12642 Jan Hubicka <hubicka@ucw.cz>
12645 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
12646 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
12647 (sem_item_optimizer::process_cong_reduction): Include division by
12648 sensitive references.
12649 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
12650 * ipa-ref.c (ipa_ref::address_matters_p): New function.
12651 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
12653 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
12656 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
12658 * config/avr/avr.c: Same.
12659 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
12660 Refuse any constant address not in 0..0xbf.
12661 * config/avr/avr.md (*mov<mode>, *movsf): Remove
12662 tiny_valid_direct_memory_access_range from insn conditions.
12663 (mov<mode>): Don't special-case expansion of avrtiny addresses.
12665 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
12668 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
12669 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
12670 * config/sh/predicates.md (const_logical_operand): New predicate.
12671 * config/sh/sh.md: Add new peephole2 patterns.
12673 2015-02-26 Marek Polacek <polacek@redhat.com>
12676 * ipa-inline.c (early_inliner): Recompute inline parameters.
12678 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12681 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
12682 instructions with TImode operands are included in the analysis.
12684 2015-02-26 Sebastian Pop <s.pop@samsung.com>
12686 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
12687 of an EDGE_FSM_THREAD.
12689 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
12691 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
12693 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
12696 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
12698 2015-02-26 Sebastian Pop <s.pop@samsung.com>
12700 PR tree-optimization/65048
12701 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
12702 (thread_through_all_blocks): Call valid_jump_thread_path.
12703 Remove invalid FSM jump-thread paths.
12705 2015-02-26 Jakub Jelinek <jakub@redhat.com>
12707 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
12708 (ipa_write_optimization_summaries): Likewise.
12709 * tree-streamer.h: Include data-streamer.h.
12710 (streamer_mode_table): Declare extern variable.
12711 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
12712 * lto-streamer-out.c (lto_output_init_mode_table,
12713 lto_write_mode_table): New functions.
12714 (produce_asm_for_decls): Call lto_write_mode_table when streaming
12716 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
12717 (lto_create_simple_input_block): Add mode_table argument to the
12718 lto_input_block constructors.
12719 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
12721 * data-streamer-in.c (string_for_index): Likewise.
12722 * ipa-inline-analysis.c (inline_read_section): Likewise.
12723 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
12724 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
12725 * lto-streamer-in.c (lto_read_body_or_constructor,
12726 lto_input_toplevel_asms): Likewise.
12727 (lto_input_mode_table): New function.
12728 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
12729 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
12730 Use bp_pack_machine_mode.
12731 * real.h (struct real_format): Add name field.
12732 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
12733 (class lto_input_block): Add mode_table member.
12734 (lto_input_block::lto_input_block): Add mode_table_ argument,
12735 initialize mode_table.
12736 (struct lto_file_decl_data): Add mode_table field.
12737 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
12738 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
12739 unpack_ts_decl_common_value_fields,
12740 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
12741 * tree-streamer.c (streamer_mode_table): New variable.
12742 * real.c (ieee_single_format, mips_single_format,
12743 motorola_single_format, spu_single_format, ieee_double_format,
12744 mips_double_format, motorola_double_format,
12745 ieee_extended_motorola_format, ieee_extended_intel_96_format,
12746 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
12747 ibm_extended_format, mips_extended_format, ieee_quad_format,
12748 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
12749 decimal_single_format, decimal_double_format, decimal_quad_format,
12750 ieee_half_format, arm_half_format, real_internal_format): Add name
12752 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
12754 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
12757 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
12758 reordering for selective scheduling.
12760 2015-02-26 Terry Guo <terry.guo@arm.com>
12762 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
12763 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
12764 (arm_arch_no_volatile_ce): Declare new global variable.
12765 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
12766 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
12767 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
12768 (TARGET_NO_VOLATILE_CE): New macro.
12769 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
12770 volatile memory access in IT block
12772 2015-02-25 Kai Tietz <ktietz@redhat.com>
12774 PR tree-optimization/61917
12775 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
12776 that reduc_def_stmt is null.
12778 2015-02-25 Martin Liska <mliska@suse.cz>
12780 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
12781 hard register variables.
12783 2015-02-25 Kai Tietz <ktietz@redhat.com>
12786 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
12787 (symtab::noninterposable_alias): Likewise.
12789 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
12792 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
12794 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
12796 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
12799 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
12800 as split condition; force split via '#' in output pattern.
12802 2015-02-25 Richard Biener <rguenther@suse.de>
12803 Kai Tietz <ktietz@redhat.com>
12805 PR tree-optimization/61917
12806 * tree-vect-loop.c (vectorizable_reduction): Allow
12807 vect_internal_def without reduction to exit graceful.
12809 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
12812 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
12813 only with NONDEBUG_INSN_P.
12815 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
12817 Use variadic macros with avr-log.c.
12819 * config/avr/avr-protos.h (avr_vdump): New prototype.
12820 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
12821 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
12822 * config/avr/avr-log.c: Adjust comments.
12823 (avr_vdump): New function.
12824 (avr_vadump): Pass caller as 2nd argument instead of format string.
12825 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
12826 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
12828 2015-02-25 Jakub Jelinek <jakub@redhat.com>
12831 * target.def (target_option_stream_in): New target hook.
12832 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
12833 targetm.target_option.post_stream_in if non-NULL.
12834 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
12835 * doc/tm.texi: Updated.
12836 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
12838 (TARGET_OPTION_POST_STREAM_IN): Redefine.
12840 2015-02-24 Jeff Law <law@redhat.com>
12843 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
12844 of operand 0 and operand 2.
12845 (zero_cost_loop_end, loop_end): Similarly.
12847 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
12849 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
12852 2015-02-24 DJ Delorie <dj@redhat.com>
12854 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
12855 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
12856 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
12857 instead of hardcoding SImode.
12859 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
12861 * omp-low.c (create_omp_child_function): Tag entrypoint
12862 functions with a special attribute.
12864 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
12867 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
12869 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
12871 PR rtl-optimization/65123
12872 * lra-remat.c (operand_to_remat): Check hard regs in insn
12875 2015-02-24 Nick Clifton <nickc@redhat.com>
12877 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
12880 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
12883 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
12884 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
12885 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
12886 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
12887 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
12888 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
12889 (BUILT_IN_GOACC_PARALLEL): Specify as
12890 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
12891 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
12892 * builtin-types.def
12893 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
12894 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
12895 Remove function types.
12896 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
12897 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
12898 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
12899 New function types.
12901 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
12903 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
12905 2015-02-24 Jakub Jelinek <jakub@redhat.com>
12907 PR tree-optimization/65170
12908 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
12909 if val[1] < 0, clear also val[2] and return 3.
12911 2015-02-24 Alan Modra <amodra@gmail.com>
12914 * config/rs6000/rs6000.c (get_memref_parts): Only return true
12915 when *base is a reg. Handle nested plus addresses. Simplify
12918 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
12920 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
12921 use natural alignment when optimizing for size.
12923 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
12926 * config/sh/sh.md (movsicc_true+3): Remove peephole.
12927 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
12928 * config/sh/sh.c (replace_n_hard_rtx): Remove.
12930 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
12933 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
12934 too big for a wide_int. Implement missing wrapping operation.
12936 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
12939 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
12940 instead of const_int 4294901760.
12942 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
12944 * config/avr/t-avr: Fix typo in comment.
12946 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
12948 * doc/rtl.texi (fma): Clarify documentation.
12950 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
12953 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
12954 over input_location.
12956 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
12958 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
12959 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
12960 restrict alignments to absolute_biggest_alignment.
12961 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
12963 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
12964 * doc/tm.texi: Regenerate.
12965 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
12967 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
12970 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
12972 2015-02-20 Richard Biener <rguenther@suse.de>
12974 PR tree-optimization/65136
12975 * tree-ssa-propagate.c: Include cfgloop.h.
12976 (replace_phi_args_in): Avoid replacing loop latch edge PHI
12977 arguments with constants.
12979 2015-02-20 Jakub Jelinek <jakub@redhat.com>
12980 Martin Liska <mliska@suse.cz>
12983 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
12984 don't try to create_thunk if stdarg_p. If
12985 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
12986 redirect_callers if possible.
12987 (sem_item_optimizer::execute): Call unregister_hooks here...
12988 (ipa_icf_driver): ... instead of here.
12990 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12992 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
12993 Mark operand 0 as earlyclobber in 2nd alternative.
12994 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
12995 Write negated shift amount into QI lowpart operand 0 and use it
12997 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
12999 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
13001 * cgraph.h (clone_function_name_1): Declare.
13002 * cgraphclones.c (clone_function_name_1): New function.
13003 (clone_function_name): Use it.
13004 * lto-partition.c: Include "stringpool.h".
13005 (must_not_rename, maybe_rewrite_identifier)
13006 (validize_symbol_for_target): New static functions.
13007 (privatize_symbol_name): Use must_not_rename.
13008 (promote_symbol): Call validize_symbol_for_target.
13009 (lto_promote_cross_file_statics): Likewise.
13010 (lto_promote_statics_nonwpa): Likewise.
13012 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
13015 * config/avr/avr.md (pushhi_insn): New insn.
13016 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
13018 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
13019 Jakub Jelinek <jakub@redhat.com>
13021 * tree-streamer.c (preload_common_nodes): Don't preload
13022 TI_VA_LIST* for offloading.
13023 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
13026 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
13028 * config/pa/pa.c (pa_emit_move_sequence): Always force
13029 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
13032 * config/pa/pa.c (pa_reloc_rw_mask): New function.
13033 (TARGET_ASM_RELOC_RW_MASK): Define.
13034 (pa_cannot_force_const_mem): Revert previous change.
13036 2015-02-19 Martin Jambor <mjmabor@suse.cz>
13037 Jan Hubicka <hubicka@ucw.cz>
13040 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
13041 across jump functions.
13043 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
13045 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
13047 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
13049 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
13051 2015-02-19 Richard Henderson <rth@redhat.com>
13053 PR middle-end/65074
13054 * varasm.c (default_binds_local_p_2): Don't test node->definition;
13055 test DECL_EXTERNAL independent of symtab_node.
13057 2015-02-19 Jakub Jelinek <jakub@redhat.com>
13060 * varpool.c (varpool_node::get_constructor): Return early
13061 if this->lto_file_data is NULL.
13063 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
13065 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
13066 (rank_for_schedule_debug): Update.
13067 (ready_sort): Make static. Move sorting logic to ...
13068 (ready_sort_debug, ready_sort_real): New static functions.
13069 (schedule_block): Sort both debug insns and real insns in preparation
13070 for ready list trimming. Improve debug output.
13071 * sched-int.h (ready_sort): Remove global declaration.
13073 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
13075 * ipa-icf.c (sem_function::equals_private): Adjust.
13076 (sem_function::bb_dict_test): Take a vec<int> * instead of
13078 * ipa-icf.h (bb_dict_test): Likewise.
13080 2015-02-18 Jakub Jelinek <jakub@redhat.com>
13082 PR gcov-profile/64634
13083 * tree-eh.c (frob_into_branch_around): Fix up typos
13084 in function comment.
13085 (lower_catch): Put eh_seq resulting from EH lowering of
13086 the cleanup sequence after the cleanup rather than before it.
13088 2015-02-18 Tom de Vries <tom@codesourcery.com>
13090 * common.opt (fstdarg-opt): New option.
13091 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
13092 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
13093 (@item -fstdarg-opt): New item.
13095 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
13098 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
13099 for common symbols.
13101 2015-02-18 Jakub Jelinek <jakub@redhat.com>
13103 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
13105 (ALL_HOST_OBJS): Add mkoffload.o.
13106 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
13108 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
13110 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
13111 (compare_virtual_tables): Be smarter about skipping typeinfos;
13112 do sane output on virtual table table mismatch.
13113 (warn_odr): Be ready for forward declarations of enums;
13114 output sane info on base mismatch and virtual table mismatch.
13115 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
13116 when only one type is polymorphic.
13117 (get_odr_type): Fix hashtable corruption.
13118 (dump_odr_type): Dump mangled names.
13120 2015-02-18 Richard Biener <rguenther@suse.de>
13122 PR tree-optimization/65063
13123 * tree-predcom.c (determine_unroll_factor): Return 1 if we
13124 have replaced looparound PHIs.
13126 2015-02-18 Martin Liska <mliska@suse.cz>
13128 * lto-streamer.c (lto_streamer_init): Encapsulate
13129 streamer_check_handled_ts_structures with checking macro.
13131 2015-02-18 Jakub Jelinek <jakub@redhat.com>
13134 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
13135 section if !implicit_section.
13136 (cgraph_node::create_version_clone_with_body): Likewise.
13137 * trans-mem.c (ipa_tm_create_version): Likewise.
13139 2015-02-18 Richard Biener <rguenther@suse.de>
13141 PR tree-optimization/62217
13142 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
13145 2015-02-18 Marek Polacek <polacek@redhat.com>
13148 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
13149 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
13150 is in range [-16K, -1]. Don't issue run-time error if
13151 (ptr > ptr + offset).
13153 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
13155 * doc/install.texi (nvptx-*-none): New section.
13156 * doc/invoke.texi (Nvidia PTX Options): Likewise.
13157 * config/nvptx/nvptx.opt: Update.
13159 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
13160 (access_check): New functions, copied from
13161 config/i386/intelmic-mkoffload.c.
13162 (main): For non-installed testing, look in all COMPILER_PATHs for
13165 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
13167 2015-02-18 Andrew Pinski <apinski@cavium.com>
13168 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13170 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
13171 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
13173 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
13175 * ipa-visibility.c (function_and_variable_visibility): Only
13176 check locality if node is not already local.
13177 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
13178 call_for_symbol_and_aliases instead of
13179 call_for_symbol_thunks_and_aliases.
13180 (ipa_inline): Likewise.
13181 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
13182 first walk aliases.
13183 * ipa.c (symbol_table::remove_unreachable_nodes): Use
13184 call_for_symbol_and_aliases.
13185 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
13186 (ipa_propagate_frequency_1): Use it; use opt_for_fn
13187 (ipa_propagate_frequency): Update.
13188 (ipa_profile): Add opt_for_fn gueards.
13190 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
13192 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
13193 * doc/invoke.texi (SH options): Document it.
13194 * config/sh/sh.c (sh_insn_length_adjustment): Check
13195 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
13197 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
13199 * common.opt (fipa-cp-alignment): New.
13200 * ipa-cp.c (ipcp_store_alignment_results): Check
13201 flag_ipa_cp_alignment.
13202 * opts.c (default_options_table): Enable -fipa-cp-alignment for
13204 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
13205 * doc/invoke.texi: Document -fipa-cp-alignment.
13207 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
13210 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
13211 to nil. Adjust comments.
13213 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
13215 * ipa-visibility.c (function_and_variable_visibility): Only
13216 check locality if node is not already local.
13217 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
13218 call_for_symbol_and_aliases instead of
13219 call_for_symbol_thunks_and_aliases.
13220 (ipa_inline): Likewise.
13221 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
13222 first walk aliases.
13223 * ipa.c (symbol_table::remove_unreachable_nodes): Use
13224 call_for_symbol_and_aliases.
13225 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
13226 (ipa_propagate_frequency_1): Use it; use opt_for_fn
13227 (ipa_propagate_frequency): Update.
13228 (ipa_profile): Add opt_for_fn guards.
13230 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
13232 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
13233 skipping of "strange" tokens.
13235 2015-02-17 Jeff Law <law@redhat.com>
13237 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
13240 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
13242 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
13243 as forcing a HARD_DEP between instructions, thereby
13244 disallowing rewriting to break dependencies.
13246 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
13248 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
13249 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
13250 variables in boundary that have no inlitalizer encoded and are
13252 * varasm.c (default_binds_local_p_2): External definitions do not
13253 count as definitions here.
13255 2015-02-16 Jeff Law <law@redhat.com>
13257 PR tree-optimization/64823
13258 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
13260 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
13261 threading through blocks with PHIs, but no statements.
13262 (thread_through_normal_block): Distinguish between blocks where
13263 we did not process all the statements and blocks with no statements.
13265 2015-02-16 Jakub Jelinek <jakub@redhat.com>
13266 James Greenhalgh <james.greenhalgh@arm.com>
13269 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
13270 section if not linkonce. Fix up formatting.
13271 (cgraph_node::create_version_clone_with_body): Copy section.
13272 * trans-mem.c (ipa_tm_create_version): Likewise.
13274 2015-02-16 Richard Biener <rguenther@suse.de>
13276 PR tree-optimization/65077
13277 * tree-ssa-structalias.c (get_constraint_for_1): Handle
13278 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
13279 (find_func_aliases): Allow float values to carry pointers again.
13281 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
13283 * doc/install.texi (Specific): Reorder targets list to put
13284 aarch64 in alphabetical order. Add a link to aarch64*-*-*
13287 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
13288 David Edelsohn <dje.gcc@gmail.com>
13291 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
13292 mapping class to external variable or function reference.
13293 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
13296 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
13299 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
13300 ASM_WEAKEN_DECL if defined.
13302 2015-02-16 Richard Biener <rguenther@suse.de>
13305 * varasm.c (default_file_start): For LTO produced units
13306 emit <artificial> as file directive.
13308 2015-02-16 Richard Biener <rguenther@suse.de>
13310 PR tree-optimization/63593
13311 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
13312 stmts and releasing SSA names until...
13313 (execute_pred_commoning): ... after processing all chains.
13315 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
13318 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
13319 external functions.
13321 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
13323 * doc/bugreport.texi: Adjust section titles throughout the file
13324 to use "Title Case".
13325 * doc/extend.texi: Likewise.
13326 * doc/gcov.texi: Likewise.
13327 * doc/implement-c.texi: Likewise.
13328 * doc/implement-cxx.texi: Likewise.
13329 * doc/invoke.texi: Likewise.
13330 * doc/objc.texi: Likewise.
13331 * doc/standards.texi: Likewise.
13332 * doc/trouble.texi: Likewise.
13334 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
13336 * cgraph.h (symtab_node::has_aliases_p): Simplify.
13337 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
13338 * tree.c (lookup_binfo_at_offset): Make static.
13339 (get_binfo_at_offset): Do not shadow offset; add explanatory
13342 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
13344 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
13345 for all floading point loads and stores except those using a register
13347 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
13350 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
13352 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
13353 (do_estimate_growth_1): Record if any uninlinable edge was seen.
13354 (estimate_growth): Handle uninlinable edges correctly.
13355 (check_callers): New.
13356 (growth_likely_positive): Handle aliases correctly.
13358 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
13360 * ipa-chkp.c: Use iterate_direct_aliases.
13361 * symtab.c (resolution_used_from_other_file_p): Move inline.
13362 (symtab_node::create_reference): Fix formating.
13363 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
13364 (symtab_node::iterate_reference): Move inline.
13365 (symtab_node::iterate_referring): Move inline.
13366 (symtab_node::iterate_direct_aliases): Move inline.
13367 (symtab_node::used_from_object_file_p_worker): Inline into ...
13368 (symtab_node::used_from_object_file_p): ... this one; move inline.
13369 (symtab_node::call_for_symbol_and_aliases): Move inline;
13370 use iterate_direct_aliases.
13371 (symtab_node::call_for_symbol_and_aliases_1): New method.
13372 (cgraph_node::call_for_symbol_and_aliases): Move inline;
13373 use iterate_direct_aliases.
13374 (cgraph_node::call_for_symbol_and_aliases_1): New method.
13375 (varpool_node::call_for_node_and_aliases): Rename to ...
13376 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
13377 use iterate_direct_aliases.
13378 (varpool_node::call_for_symbol_and_aliases_1): New method.
13379 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
13380 (ipa_discover_readonly_nonaddressable_var): Update.
13381 * ipa-devirt.c: Fix formating.
13382 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
13384 (cgraph_node::call_for_symbol_and_aliases): Move inline.
13385 (cgraph_node::call_for_symbol_and_aliases_1): New function..
13386 * cgraph.h (used_from_object_file_p_worker): Remove.
13387 (resolution_used_from_other_file_p): Move inline.
13388 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
13389 (symtab_node::iterate_reference): Move inline.
13390 (symtab_node::iterate_referring): Move inline.
13391 (symtab_node::iterate_direct_aliases): Move inline.
13392 (symtab_node::used_from_object_file_p_worker): Inline into ...
13393 (symtab_node::used_from_object_file_p): Move inline.
13394 * tree-emutls.c (ipa_lower_emutls): Update.
13395 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
13396 (varpool_node::call_for_node_and_aliases): Remove.
13398 2015-02-14 Jakub Jelinek <jakub@redhat.com>
13400 PR tree-optimization/62209
13401 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
13402 op == range->exp, insert seq and gimplified code after labels
13403 instead of after the phi.
13405 2015-02-13 Jeff Law <law@redhat.com>
13408 Revert my change for tree-optimization/64823.
13410 2015-02-13 Jakub Jelinek <jakub@redhat.com>
13412 PR tree-optimization/65053
13413 * tree-ssa-phiopt.c (value_replacement): When moving assign before
13414 cond, either reset VR on lhs or set it to phi result VR.
13416 2015-02-13 Jeff Law <law@redhat.com>
13418 PR tree-optimization/64823
13419 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
13420 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
13421 threading through blocks with PHIs, but no statements.
13422 (thread_through_normal_block): Distinguish between blocks where
13423 we did not process all the statements and blocks with no statements.
13425 PR rtl-optimization/47477
13426 * match.pd (convert (plus/minus (convert @0) (convert @1): New
13427 simplifier to narrow arithmetic.
13429 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
13432 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
13433 polymorphic call info when type is not known to be preserved.
13435 2015-02-13 Maritn Jambor <mjambor@suse.cz>
13438 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
13439 (inline_call): Use it.
13441 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
13443 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
13444 GOMP_DEVICE_NVIDIA_PTX.
13446 2015-02-13 Jakub Jelinek <jakub@redhat.com>
13449 * stmt.c (emit_case_nodes): Use void_type_node instead of
13450 NULL_TREE as LABEL_DECL type.
13452 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
13454 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
13456 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
13457 symbolic references to data to be forced to constant memory on the
13460 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
13462 PR tree-optimization/65002
13463 * tree-cfg.c (pass_data_fixup_cfg): Don't update
13465 * tree-sra.c (some_callers_have_no_vuse_p): New.
13466 (ipa_early_sra): Reject functions whose callers
13467 assume function is read only.
13469 2015-02-13 Richard Biener <rguenther@suse.de>
13472 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
13473 for LTO produced CUs.
13475 2015-02-13 Bin Cheng <bin.cheng@arm.com>
13477 PR tree-optimization/64705
13478 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
13479 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
13480 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
13481 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
13482 expand_simple_operations.
13484 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
13485 Richard Henderson <rth@redhat.com>
13488 * cgraphunit.c (cgraph_node::finalize_function): Set definition
13489 before notice_global_symbol.
13490 (varpool_node::finalize_decl): Likewise.
13491 * varasm.c (default_binds_local_p_2): Rename from
13492 default_binds_local_p_1, add weak_dominate argument. Use direct
13493 returns instead of assigning to local variable. Unify varpool and
13494 cgraph paths via symtab_node. Reject undef weak variables before
13495 testing visibility. Reorder tests for simplicity.
13496 (default_binds_local_p): Use default_binds_local_p_2.
13497 (default_binds_local_p_1): Likewise.
13498 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
13500 (default_elf_asm_output_external): Emit visibility when specified.
13502 2015-02-13 Alan Modra <amodra@gmail.com>
13504 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
13505 code setting up r11 for out-of-line fp restore.
13507 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
13509 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
13510 (muser-mode): Likewise.
13512 2015-02-13 Alan Modra <amodra@gmail.com>
13514 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
13515 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
13517 2015-02-12 David Howells <dhowells@redhat.com>
13519 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
13521 * tree-ssa-uninit.c (dump_predicates): Likewise.
13522 * opts.c (print_filtered_help): Likewise.
13524 2015-02-12 Jakub Jelinek <jakub@redhat.com>
13526 * dwarf2out.c (output_die): Use "%s", name instead of name to
13527 avoid -Wformat-security warning.
13529 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
13530 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
13531 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
13532 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
13534 2015-02-12 Jason Merrill <jason@redhat.com>
13536 * common.opt (-flifetime-dse): New.
13538 2015-02-12 Jakub Jelinek <jakub@redhat.com>
13541 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
13543 PR tree-optimization/65014
13544 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
13545 use original second operand of arg0 or arg1 instead of
13546 that adjusted by STRIP_NOPS.
13548 2015-02-11 Jeff Law <law@redhat.com>
13551 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
13552 that needs to be queued, just queue it for a single cycle.
13554 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
13556 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
13557 bodies of thunks; comment on why.
13558 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
13559 symbols are extern.
13561 2015-02-11 Richard Henderson <rth@redhat.com>
13564 * tree-eh.c (mark_reachable_handlers): Mark source and destination
13565 regions of __builtin_eh_copy_values.
13567 2015-02-11 Jakub Jelinek <jakub@redhat.com>
13569 PR middle-end/65003
13570 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
13571 ultimate alias is MEM with SYMBOL_REF satisfying
13572 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
13573 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
13575 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
13577 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
13578 "diagnostic-core.h".
13579 (main): Initialize progname, and call diagnostic_initialize.
13581 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
13582 instead of __OPENMP_TARGET__.
13584 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
13585 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
13586 hard-coding PTX_ID.
13588 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
13590 * doc/sourcebuild.texi (pie_enabled): Document.
13592 2015-02-11 Martin Liska <mliska@suse.cz>
13595 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
13596 a return value for call to a function that is noreturn.
13598 2015-02-11 Richard Biener <rguenther@suse.de>
13601 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
13604 2015-02-11 Andrew Pinski <apinski@cavium.com>
13607 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
13608 Change the first argument type to size_type_node and add another
13610 (aarch64_simd_expand_builtin): Handle the new argument to
13611 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
13612 print an out when the first two arguments are not
13613 nonzero integer constants.
13614 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
13615 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
13617 2015-02-11 Jakub Jelinek <jakub@redhat.com>
13620 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
13621 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
13622 (ix86_set_current_function): Rewritten.
13623 (ix86_add_new_builtins): Temporarily clear current_target_pragma
13624 when creating builtin fndecls.
13626 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
13629 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
13631 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
13632 have no comdat group.
13633 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
13634 (lto_output_varpool_node): Always output alias info.
13635 (output_refs): Output refs of boundary aliases, too.
13636 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
13637 (output_symtab): Output call eges in thunks in boundary.
13638 (get_alias_symbol): Remove.
13639 (input_node, input_varpool_node): Do not special case weakrefs.
13640 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
13641 alias and thunks targets in the boundary; do not take removed symbols
13642 from their comdat groups.
13643 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
13644 (cgraph_node::global_info): Remove.
13645 (cgraph_node::rtl_info): Look through aliases and thunks.
13646 * cgrpah.h (global_info): Remove.
13647 (non_local_p): Remove.
13649 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
13650 Sandra Loosemore <sandra@codesourcery.com>
13652 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
13653 to inline asm. List dialects in proper order.
13655 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
13656 Sandra Loosemore <sandra@codesourcery.com>
13658 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
13660 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
13662 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
13663 modified) reference to Solaris.
13665 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
13667 * doc/extend.texi (Extended Asm): Fix typos.
13669 2015-02-10 Jakub Jelinek <jakub@redhat.com>
13672 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
13674 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
13677 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
13678 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
13679 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
13680 * config/sh/constraints.md (Ara, Add): New constraints.
13681 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
13683 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
13684 atomic_mem_operand_0. Don't use force_reg on the memory address.
13685 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
13686 Sra constraint. Convert to insn_and_split. Add workaround for
13688 (atomic_compare_and_swap<mode>_hard): Copy to
13689 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
13690 Use atomic_mem_operand_0 predicate.
13691 (atomic_compare_and_swap<mode>_soft_gusa,
13692 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
13693 AraAdd constraints.
13694 (atomic_compare_and_swap<mode>_soft_tcb,
13695 atomic_compare_and_swap<mode>_soft_imask,
13696 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
13697 atomic_mem_operand_0 predicate and SraSdd constraints.
13698 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
13700 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
13701 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
13702 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
13703 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
13704 force_reg on the memory address.
13705 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
13706 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
13707 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
13708 atomic_mem_operand_1 predicate and Sra constraint.
13709 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
13710 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
13711 Use atomic_mem_operand_1 predicate.
13712 (atomic_<fetchop_name><mode>_hard): Copy to
13713 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
13714 Use atomic_mem_operand_1 predicate.
13715 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
13716 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
13717 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
13718 insn_and_split. Use atomic_mem_operand_1 predicate.
13719 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
13720 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
13721 Use atomic_mem_operand_1 predicate.
13722 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
13723 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
13724 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
13725 in generated insn with original mem operand before emitting the insn.
13726 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
13727 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
13728 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
13729 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
13730 Use atomic_mem_operand_1 predicate and AraAdd constraints.
13731 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
13732 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
13733 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
13734 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
13735 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
13736 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
13737 atomic_not_fetch<mode>_soft_tcb,
13738 atomic_<fetchop_name>_fetch<mode>_soft_imask,
13739 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
13740 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
13741 Use atomic_mem_operand_1 predicate and SraSdd constraints.
13743 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
13745 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
13746 and 3 earlyclobber operands.
13748 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
13750 * common.opt (fstack-reuse): Mark as optimization.
13752 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
13755 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
13757 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
13759 PR tree-optimization/64326
13760 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
13762 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
13764 PR gcov-profile/61889
13765 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
13767 2015-02-10 Richard Biener <rguenther@suse.de>
13769 PR tree-optimization/64995
13770 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
13771 value we use is final.
13772 (visit_reference_op_store): Always valueize op.
13773 (visit_use): Properly valueize vuses.
13775 2015-02-10 Richard Biener <rguenther@suse.de>
13777 PR tree-optimization/64909
13778 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
13779 pass a scalar-stmt count estimate to the cost model.
13780 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
13782 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
13784 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
13785 enabled by default together with var-tracking.
13787 2015-02-10 Nick Clifton <nickc@redhat.com>
13789 * config/rl78/rl78.c: Remove DIV attribute code accidentally
13790 included in previous rl78 commit.
13792 2015-02-10 Richard Biener <rguenther@suse.de>
13794 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
13795 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
13796 return the bitpack.
13798 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
13800 PR gcov-profile/61889
13801 * config.in: regenerate.
13802 * configure.in: Likewise.
13803 * configure.ac: Check for ftw.h.
13804 * gcov-tool.c: Check for ftw.h before using nftw.
13806 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
13809 * ipa-visibility.c (update_visibility_by_resolution_info): Only
13810 assert when not in lto mode.
13812 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
13814 * ira-color.c (setup_left_conflict_sizes_p): Simplify
13815 initialization/assignment of conflict_size.
13817 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
13820 * ipa-cp.c (gather_caller_stats): Skip thunks.
13821 (propagate_constants_topo): Skip aliases.
13823 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
13826 * config/sh/sh.c (sh_option_override): Don't change
13827 -freorder-blocks-and-partition to -freorder-blocks even when
13828 unwinding is enabled.
13829 (sh_can_follow_jump): Return false if the followee jump is
13830 a crossing jump when -freorder-blocks-and-partition is specified.
13831 * config/sh/sh.md (*jump_compact_crossing): New insn.
13833 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
13834 Kaz Kojima <kkojima@gcc.gnu.org>
13837 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
13838 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
13839 (sh_can_redirect_branch): Rename to ...
13840 (sh_can_follow_jump): ... this. Constify argument types.
13841 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
13842 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
13843 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
13844 * doc/tm.texi: Regenerate.
13846 2015-02-09 Jakub Jelinek <jakub@redhat.com>
13849 * builtins.c (expand_builtin): Call targetm.expand_builtin
13850 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
13852 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
13855 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
13857 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
13860 * ipa-icf.c (set_local): New function.
13861 (sem_function::merge): Use it.
13863 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
13865 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
13866 (add_type_duplicate): Fix comparison of BINFOs.
13868 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
13870 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
13871 on getting VOID pointer.
13873 2015-02-09 Jakub Jelinek <jakub@redhat.com>
13876 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
13879 2015-02-09 Richard Biener <rguenther@suse.de>
13881 * genmatch.c (replace_id): Copy expr_type.
13883 2015-02-09 Richard Biener <rguenther@suse.de>
13885 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
13886 (streamer_write_tree_bitfields): Declare.
13887 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
13888 properly unpack padding.
13889 (unpack_value_fields): Inline ...
13890 (streamer_read_tree_bitfields): ... here.
13891 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
13892 and properly add padding bits.
13893 (streamer_pack_tree_bitfields): Fold into ...
13894 (streamer_write_tree_bitfields): ... this new function,
13895 exposing the bitpack object.
13896 * lto-streamer-out.c (lto_write_tree_1): Call
13897 streamer_write_tree_bitfields.
13899 2015-02-09 Richard Biener <rguenther@suse.de>
13901 PR tree-optimization/54000
13902 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
13903 (struct ivopts_data): Add loop_loc member.
13904 (tree_ssa_iv_optimize_loop): Dump loop location.
13905 (create_new_ivs): Likewise, also dump number of IVs generated.
13907 2015-02-09 Martin Liska <mliska@suse.cz>
13909 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
13910 just if not yet registered.
13911 (ipa_icf_generate_summary): Register callgraph hooks.
13913 2015-02-08 Andrew Pinski <apinski@cavium.com>
13915 * config/aarch64/aarch64.c (gty_dummy): Delete.
13917 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
13920 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
13921 (cgraph_node::local_p): Remove thunk related FIXME.
13923 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
13926 * i386.c (ix86_function_regparm): Look through aliases to see if callee
13927 is local and optimized.
13928 (ix86_function_sseregparm): Likewise; also use target's SSE math
13929 settings; error out instead of silently generating wrong code
13931 (init_cumulative_args): Look through aliases.
13933 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
13936 * ipa-split.c (execute_split_functions): Split if function has aliases.
13938 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
13941 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
13942 aliases before trying to expand it.
13943 (cgraph_node::expand_thunk): Fix formating.
13945 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
13947 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
13948 (Using Assembly Language with C): Expand introduction.
13949 (Basic Asm): Copy-edit. Add more information about uses of
13951 (Extended Asm): Copy-edit. Document new escape syntax and
13953 (Global Reg Vars): Copy-edit.
13954 (Local Reg Vars): Likewise.
13956 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
13960 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
13961 (DBX_CONTIN_CHAR): Define.
13963 2015-02-06 Sebastian Pop <s.pop@samsung.com>
13964 Brian Rzycki <b.rzycki@samsung.com>
13966 PR tree-optimization/64878
13967 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
13968 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
13969 Stop recursion at loop phi nodes after having visited a loop phi node.
13971 2015-02-06 Jakub Jelinek <jakub@redhat.com>
13973 * toplev.c (process_options): Change flag_ipa_ra before creating
13974 optimization_{default,current}_node.
13977 * cgraphunit.c (cgraph_node::expand_thunk): If
13978 restype is not is_gimple_reg_type nor the thunk_fndecl
13979 returns aggregate_value_p, set restmp to a temporary variable
13980 instead of resdecl.
13982 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
13984 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
13986 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
13989 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
13990 add a general secondary reload handler for SDmode, unless we have
13991 both read/write support for SDmode.
13993 2015-02-06 Jakub Jelinek <jakub@redhat.com>
13995 PR middle-end/64937
13996 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
13997 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
13998 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
13999 1 before, push it to abstract_vec.
14000 (dwarf2out_abstract_function): Adjust caller. Don't call
14001 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
14002 DECL_ABSTRACT_P flags for all abstract_vec elts.
14004 2015-02-06 Renlin Li <renlin.li@arm.com>
14006 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
14008 * tree-ssa.c (execute_update_addresses_taken): Likewise.
14010 2015-02-06 Jeff Law <law@redhat.com>
14013 * config/h8300/h8300.c (push): New argument "in_prologue".
14014 Pass "in_prologue" along to "F".
14015 (h8300_push_pop): Corresponding changes.
14016 (h8300_expand_prologue): Likewise.
14017 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
14019 2015-02-06 Jakub Jelinek <jakub@redhat.com>
14021 PR rtl-optimization/64957
14023 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
14024 IOR rather than for AND.
14026 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
14029 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
14030 of shift-add and (add + shift) operations. Rename local variable.
14032 2015-02-05 Jeff Law <law@redhat.com>
14035 * config/h8300/constraints.md (U): Correctly dectect
14036 "eightbit_data" memory addresses.
14037 * config/h8300/h8300.c (eightbit_constant_address_p): Also
14038 handle (const (plus (symbol_ref (x)))) where x is declared
14039 as an 8-bit data memory address.
14040 * config/h8300/h8300.md (call, call_value): Correctly detect
14041 "funcvec" functions.
14044 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
14045 24 to 28 bits for the H8/300.
14047 2015-02-06 Alan Modra <amodra@gmail.com>
14050 * config/rs6000/rs6000.c (chain_already_loaded): New function.
14051 (rs6000_call_aix): Use it.
14053 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
14055 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
14058 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
14060 * config/h8300/constraints.md ("U" constraint): Use strict
14061 variant of REG_OK_FOR_BASE_P after reload has started.
14063 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
14065 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
14066 define to zero if !TARGET_NEON.
14067 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
14069 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
14070 Trevor Saunders <tsaunders@mozilla.com>
14073 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
14075 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
14078 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
14079 when removing varpool nodes.
14081 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
14084 * varpool.c (varpool_node::remove): Fix order of variables.
14086 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
14089 * ipa-inline.c (inline_small_functions): Fix ordering issue between
14090 speculation resolution and key updates.
14092 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
14094 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
14095 about not letting any speculative edges unupdated.
14097 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
14100 * gcov-io.c (gcov_var): Export.
14102 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
14104 PR middle-end/64922
14105 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
14106 edges that become speculative.
14108 2015-02-04 Jakub Jelinek <jakub@redhat.com>
14110 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
14111 or DW_LANG_Fortran08.
14112 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
14114 (gen_compile_unit_die): Handle "GNU Fortran2003" and
14115 "GNU Fortran2008" language strings.
14116 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
14117 * langhooks.h (lang_GNU_Fortran): New prototype.
14118 * langhooks.c (lang_GNU_Fortran): New function.
14119 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
14122 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
14124 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
14125 (RTX_OK_FOR_OLO10_P): Likewise.
14127 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
14129 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
14131 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
14133 PR middle-end/64922
14134 * gimple.c: Include gimple-ssa.h.
14135 (maybe_remove_unused_call_args): New function.
14136 * gimple.h (maybe_remove_unused_call_args): Declare.
14137 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
14138 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
14139 * gimple-fold.c (gimple_fold_call): Likewise.
14141 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
14143 PR rtl-optimization/64905
14144 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
14145 pointer alignment if it isn't needed.
14147 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
14149 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
14150 cortex-a72.cortex-a53.
14151 * config/aarch64/aarch64-tune.md: Regenerate.
14152 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
14154 2015-02-04 Nick Clifton <nickc@redhat.com>
14156 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
14159 2015-02-04 Jakub Jelinek <jakub@redhat.com>
14161 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
14162 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
14163 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
14165 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
14166 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
14167 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
14168 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
14169 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
14170 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
14171 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
14172 * tree-core.h (enum built_in_function): In between
14173 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
14174 for builtins that use DEF_BUILTIN_CHKP macro.
14176 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
14179 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
14180 operands for tcc_comparison exprs. Fix typos.
14183 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
14184 of two XORs that have an intervening AND or IOR.
14187 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
14188 simplification of XOR of AND to not allocate new rtx before
14189 committing to a simplification.
14191 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14193 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
14194 manual swaps in all peepholes.
14196 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14198 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
14199 of manual swapping implementation.
14200 (aarch64_expand_vec_perm_const_1): Likewise.
14202 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
14204 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
14205 (generic_addrcost_table): Remove NAMED_PARAM.
14206 (cortexa57_addrcost_table): Likewise.
14207 (xgene1_addrcost_table): Likewise.
14208 (generic_regmove_table): Likewise.
14209 (cortexa53_regmove_table): Likewise.
14210 (xgene1_regmove_table): Likewise.
14211 (generic_vector_table): Likewise.
14212 (cortexa57_vector_table): Likewise.
14213 (xgene1_vector_table): Likewise.
14214 (generic_tunings): Likewise.
14215 (cortexa53_tunings): Likewise.
14216 (cortexa57_tunings): Likewise.
14217 (xgene1_tunings): Likewise.
14219 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
14221 * config/arm/arm-cores.def: Add cortex-a72 and
14222 cortex-a72.cortex-a53.
14223 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
14224 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
14225 * config/arm/arm-tune.md: Regenerate.
14226 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
14227 "cortex-a72.cortex-a53".
14228 * doc/invoke.texi (ARM Options/-mtune): Likewise.
14230 2015-02-04 Nick Clifton <nickc@redhat.com>
14233 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
14235 (nonimmediate_di_operand): Likewise.
14237 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
14238 prefixes of known F5 using MSP430 MCUs.
14240 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14242 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
14243 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
14244 instead of __builtin_sqrt.
14246 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
14248 * varasm.c (do_assemble_alias): Follow transparent alias
14250 (default_assemble_visibility): Follow transparent alias
14251 chain for decl name.
14253 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
14255 PR middle-end/62103
14256 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
14257 to compute size of referenced value in the constant case.
14259 2015-02-03 Jakub Jelinek <jakub@redhat.com>
14261 PR rtl-optimization/64756
14262 * cse.c (invalidate_dest): New function.
14263 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
14264 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
14265 invalidate and do not record it.
14267 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
14270 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
14271 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
14272 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
14273 atomic_nand<mode>_soft_tcb): New insns.
14274 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
14275 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
14276 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
14277 Split into atomic_not_fetchsi_hard if operands[0] is unused.
14278 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
14279 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
14280 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
14281 atomic_not<mode>_hard if operands[0] is unused.
14282 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
14283 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
14284 if operands[0] is unused.
14285 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
14286 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
14287 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
14288 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
14290 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
14291 into atomic_not<mode>_soft_tcb if operands[0] is unused.
14292 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
14293 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
14294 if operands[0] is unused.
14295 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
14296 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
14297 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
14298 atomic_nand_fetchsi_hard if operands[0] is unused.
14299 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
14300 atomic_nand<mode>_hard if operands[0] is unused.
14301 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
14302 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
14303 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
14304 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
14305 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
14306 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
14307 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
14308 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
14309 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
14310 atomic_not<mode>_hard if operands[0] is unused.
14311 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
14312 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
14314 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
14315 into atomic_not<mode>_soft_tcb if operands[0] is unused.
14316 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
14317 atomic_nand<mode>_hard if operands[0] is unused.
14318 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
14319 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
14321 2015-02-03 David Malcolm <dmalcolm@redhat.com>
14324 * Makefile.in (GCC_OBJS): Add gcc-main.o.
14325 * gcc-main.c: New file, containing "main" taken from gcc.c.
14326 * gcc.c (do_self_spec): Free decoded_options.
14327 (class driver): Move declaration to gcc.h.
14328 (main): Move declaration and implementation to new file
14330 (driver_get_configure_time_options): New function.
14331 * gcc.h (class driver): Move this declaration here, from
14333 (driver_get_configure_time_options): New declaration.
14335 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
14337 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
14338 cross-module inlining.
14339 * cgraph.h (cgraph_node): Add flag merged.
14340 * ipa-icf.c (sem_function::merge): Maintain it.
14342 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
14344 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
14345 instead of OBJECT_P.
14347 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
14350 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
14351 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
14352 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
14353 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
14355 2015-02-03 Jakub Jelinek <jakub@redhat.com>
14358 * combine.c (reg_n_sets_max): New variable.
14359 (can_change_dest_mode, reg_nonzero_bits_for_combine,
14360 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
14361 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
14362 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
14363 (rest_of_handle_combine): Initialize reg_n_sets_max.
14365 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
14367 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
14368 if some always_inline was inlined, apply changes before inlining
14371 2015-02-02 David Malcolm <dmalcolm@redhat.com>
14374 * config/arm/arm.c (arm_option_override): Set
14375 arm_selected_arch/cpu/tune to NULL on entry.
14377 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
14378 Andrew Pinski <pinskia@gcc.gnu.org>
14379 Jakub Jelinek <jakub@gcc.gnu.org>
14382 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
14383 integer typing for small model. Use IN_RANGE.
14385 2015-02-02 Richard Biener <rguenther@suse.de>
14387 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
14388 * tree-vrp.c (vrp_valueize_1): Likewise.
14390 2015-02-02 Alan Modra <amodra@gmail.com>
14392 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
14393 than mem for toc_restore.
14394 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
14395 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
14396 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
14398 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
14401 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
14402 explicit default options.
14404 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
14407 * ipa-utils.c (ipa_merge_profiles): Add release argument.
14408 * ipa-icf.c (sem_function::merge): Do not release body when merging.
14409 * ipa-utils.h (ipa_merge_profiles): Update prototype.
14411 2015-02-01 Jakub Jelinek <jakub@redhat.com>
14414 * cfgexpand.c (deep_ter_debug_map): New variable.
14415 (avoid_deep_ter_for_debug): New function.
14416 (expand_debug_expr): If TERed SSA_NAME is in
14417 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
14418 instead of trying to expand SSA_NAME's def stmt.
14419 (expand_debug_locations): When expanding debug bind
14420 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
14421 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
14423 (pass_expand::execute): Call avoid_deep_ter_for_debug on
14424 all debug bind stmts. Delete deep_ter_debug_map after
14425 expand_debug_location if non-NULL and clear it.
14427 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
14430 * config/sh/sync.md (atomic_fetch_notsi_hard,
14431 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
14432 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
14433 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
14434 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
14435 atomic_not_fetch<mode>_soft_imask): New insns.
14437 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14439 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
14440 (rank_for_schedule_debug): Split from ...
14441 (rank_for_schedule): ... this.
14442 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
14443 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
14445 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
14447 * doc/md.texi (Machine Constraints): Alphabetize table by target.
14448 * doc/extend.texi (x86 Variable Attributes): Move section to
14449 correct alphabetization after renaming.
14450 (x86 Type Attributes): Likewise.
14451 (Target Builtins): Re-alphabetize menu.
14452 (x86 Built-in Functions): Move section to correct alphabetization
14454 (x86 transactional memory intrinsics): Likewise.
14455 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
14456 and x86 Windows Options in table and menu.
14457 (x86 Options): Move section to correct alphabetization after
14459 (x86 Windows Options): Likewise.
14461 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
14463 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
14464 preferred names of the architecture and its 32- and 64-bit
14466 * doc/invoke.texi: Likewise.
14467 * doc/md.texi: Likewise.
14469 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
14472 * config/i386/predicates.md (address_no_seg_operand): Reject
14473 non-CONST_INT_P operands in invalid mode.
14475 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
14477 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
14478 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
14479 * config/i386/predicates.md (address_no_seg_operand): Call
14480 address_operand with VOIDmode.
14481 (vsib_address_operand): Ditto.
14482 (address_mpx_no_base_operand): Ditto.
14483 (address_mpx_no_index_operand): Ditto.
14485 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
14488 * lra-constraints.c (original_subreg_reg_mode): New.
14489 (simplify_operand_subreg): Try to simplify subreg of const. Use
14490 original_subreg_reg_mode for it.
14491 (swap_operands): Update original_subreg_reg_mode.
14492 (curr_insn_transform): Set up original_subreg_reg_mode.
14494 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
14497 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
14499 (process_alt_operands): Use it.
14500 (curr_insn_transform): Check the optional reload pseudo class is
14503 2015-01-30 Joseph Myers <joseph@codesourcery.com>
14505 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
14506 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
14508 * toplev.h (init_asm_output): Update comment on use of
14509 UNKNOWN_LOCATION with fatal_error.
14510 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
14511 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
14512 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
14513 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
14514 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
14515 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
14516 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
14517 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
14518 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
14519 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
14520 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
14521 fatal_error changed to pass input_location as first argument.
14523 2015-01-30 Martin Liska <mliska@suse.cz>
14525 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
14526 in #pragma GCC diagnostic guards.
14528 2015-01-30 Richard Biener <rguenther@suse.de>
14530 PR tree-optimization/64829
14531 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
14532 not add a widening conversion pattern but hand off extra
14533 widenings to callers.
14534 (vect_recog_widen_mult_pattern): Handle extra widening produced
14535 by vect_handle_widen_op_by_const.
14536 (vect_recog_widen_shift_pattern): Likewise.
14537 (vect_pattern_recog_1): Remove excess vertical space in dumping.
14538 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
14539 (vect_init_vector_1): Likewise.
14540 (vect_get_vec_def_for_operand): Likewise.
14541 (vect_finish_stmt_generation): Likewise.
14542 (vectorizable_load): Likewise.
14543 (vect_analyze_stmt): Likewise.
14544 (vect_is_simple_use): Likewise.
14546 2015-01-29 Jeff Law <law@redhat.com>
14548 * combine.c (try_combine): Fix typo in comment.
14550 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
14553 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
14554 (rs6000_stack_info): Add assert.
14555 (rs6000_output_savres_externs): New function, split off from...
14556 (rs6000_output_function_prologue): ... here. Do not call it for
14559 2015-01-29 Jeff Law <law@redhat.com>
14562 * combine.c (try_combine): If I0 is a memory load and I3 a store
14563 to a related address, increase the "goodness" of doing a 4-insn
14564 combination with I0-I3.
14565 (make_field_assignment): Handle SUBREGs in the ior+and case.
14567 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
14569 PR tree-optimization/64746
14570 * tree-if-conv.c (mask_exists): New function.
14571 (predicate_mem_writes): Save created mask with given size for further
14573 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
14574 (ifcvt_repair_bool_pattern): Collect all statements that are root
14575 of bool pattern and use iterative algorithm to remove multiple uses
14576 of predicates, display number of required iterations.
14578 2015-01-29 Richard Biener <rguenther@suse.de>
14580 PR tree-optimization/64853
14581 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
14582 stmt will get simulated again.
14583 * tree-ssa-ccp.c (valueize_op_1): Likewise.
14585 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14587 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
14588 return_in_pc. Remove redundant assignments.
14589 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
14590 (arm_expand_epilogue): Don't compare boolean with true in if condition.
14592 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
14594 * config/i386/i386.c (ix86_mode_after): Make static.
14596 2015-01-29 Richard Biener <rguenther@suse.de>
14598 PR tree-optimization/64844
14599 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
14600 dump cost model analysis.
14601 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
14602 Do not register adjusted load/store costs here.
14604 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
14605 Uros Bizjak <ubizjak@gmail.com>
14607 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
14608 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
14609 using x86_use_pseudo_pic_reg.
14610 * config/i386/i386.c (ix86_conditional_register_usage): Remove
14611 support for fixed PIC register.
14612 (ix86_use_pseudo_pic_reg): Not static any more.
14614 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
14616 PR middle-end/64805
14617 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
14618 to avoid error in cgraph node verification.
14620 2015-01-29 Marek Polacek <polacek@redhat.com>
14622 * doc/standards.texi: Reflect that the default for C is gnu11.
14624 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
14627 * reorg.c (switch_text_sections_between_p): New function.
14628 (relax_delay_slots): Call it when testing if the jump insn
14629 is removable. Use targetm.can_follow_jump when testing if
14630 the conditional branch can follow an unconditional jump.
14632 2015-01-27 Caroline Tice <cmtice@google.com>
14634 Committing VTV Cywin/Ming patch for Patrick Wollgast
14635 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
14636 if -fvtable-verify=preinit/std is used.
14637 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
14638 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
14639 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
14640 if -fvtable-verify=preinit/std is used.
14641 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
14642 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
14643 if -fvtable-verify=preinit/std is used.
14644 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
14645 * config/i386/mingw32.h (LIB_SPEC): Likewise.
14646 * varasm.c (assemble_variable): Add code to properly set the comdat
14647 section and name for the .vtable_map_vars section in case the
14648 target is PE or COFF.
14650 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
14653 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
14654 make sane BB profile.
14655 (cgraph_node::expand_thunk): Make sane BB profile.
14656 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
14657 * cgraph.h (init_lowered_empty_function): Update prototype.
14658 * config/i386/i386.c (make_resolver_func): Update call.
14659 * predict.c (gate): Disable branch prediction pass if
14660 profile is already there.
14662 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
14664 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
14665 * opth-gen.awk: Likewise.
14666 * common.opt: Mark flag_fp_contract_mode as Optimization.
14668 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
14670 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
14671 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
14673 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
14676 * config/sh/predicates.md (atomic_arith_operand,
14677 atomic_logical_operand): Remove.
14678 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
14679 (atomic_arith_operand_0): New predicate.
14680 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
14681 Use atomic_arith_operand_0 for input values.
14682 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
14683 atomic_compare_and_swap<mode>_soft_gusa,
14684 atomic_compare_and_swap<mode>_soft_tcb,
14685 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
14686 arith_reg_operand instead of register_operand.
14687 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
14688 atomic_arith_operand_0 for newval input.
14689 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
14690 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
14691 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
14692 arith_reg_operand instead of register_operand.
14693 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
14694 fetchop_predicate_1, fetchop_constraint_1_llcs,
14695 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
14696 fetchop_constraint_1_imask): New code iterator attributes.
14697 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
14698 register_operand. Use fetchop_predicate_1.
14699 (atomic_fetch_<fetchop_name>si_hard,
14700 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
14701 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
14702 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
14703 and arith_reg_operand instead of register_operand. Use
14704 fetchop_predicate_1, fetchop_constraint_1_gusa.
14705 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
14706 and arith_reg_operand instead of register_operand. Use
14707 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
14709 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
14710 and arith_reg_operand instead of register_operand. Use
14711 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
14713 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
14714 register_operand. Use atomic_logical_operand_1.
14715 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
14716 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
14717 arith_reg_operand instead of register_operand.
14718 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
14719 Use arith_reg_dest and arith_reg_operand instead of register_operand.
14720 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
14721 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
14722 register_operand. Use fetchop_predicate_1.
14723 (atomic_<fetchop_name>_fetchsi_hard,
14724 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
14725 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
14726 fetchop_constraint_1_llcs.
14727 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
14728 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
14729 fetchop_constraint_1_gusa.
14730 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
14731 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
14732 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
14733 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
14734 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
14735 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
14736 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
14737 register_operand. Use atomic_logical_operand_1.
14738 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
14739 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
14740 arith_reg_operand instead of register_operand.
14741 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
14742 arith_reg_operand instead of register_operand. Use logical_operand
14743 and K08. Adjust asm sequence to allow R0 usage.
14744 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
14745 arith_reg_operand instead of register_operand. Use logical_operand
14748 2015-01-28 Jakub Jelinek <jakub@redhat.com>
14751 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
14752 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
14753 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
14754 only get_full_len HOST_WIDE_INTs from get_val () array rather than
14755 all bits in *val_wide.
14757 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
14759 * varpool.c (tls_model_names): Fix names.
14760 (varpool_node::dump): Dump tls- prefix for tls models.
14762 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
14763 Bernd Schmidt <bernds@codesourcery.com>
14764 Nathan Sidwell <nathan@codesourcery.com>
14766 * config/nvptx/mkoffload.c: New file.
14767 * config/nvptx/t-nvptx: Add build rules for it.
14768 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
14769 (extra_programs): Add mkoffload.
14770 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
14772 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
14774 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
14776 PR middle-end/64809
14777 * cfgexpand.c (reorder_operands): Skip debug gimples.
14779 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
14781 PR tree-optimization/64277
14782 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
14783 range info when possible to refine estimation.
14785 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
14787 PR tree-optimization/64718
14788 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
14789 be a 16bit unsigned integer when n->range is 16.
14790 (bswap_replace): Convert src to that type if necessary for all bswap
14791 sizes. Fix rotation right notation in nearby comment. Use bswap_type
14792 set in pass_optimize_bswap::execute ().
14794 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
14796 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
14797 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
14798 integer and floating point variants.
14799 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
14801 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
14803 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
14804 for all vector modes.
14806 2015-01-28 Jakub Jelinek <jakub@redhat.com>
14809 * doc/sourcebuild.texi (comdat_group): Document.
14811 2015-01-28 Terry Guo <terry.guo@arm.com>
14813 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
14815 2015-01-27 David Malcolm <dmalcolm@redhat.com>
14817 * toplev.c (print_version): Add param "show_global_state", and
14818 only print GGC and plugin information if it is true.
14819 (init_asm_output): Pass in "true" for the new param when calling
14821 (process_options): Likewise.
14822 (toplev::main): Likewise.
14823 * toplev.h (print_version): Add new param to decl.
14825 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
14829 * tree.c (lookup_binfo_at_offset): New function.
14830 (get_binfo_at_offset): Use it.
14832 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
14835 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
14836 on vtable being vtable.
14838 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
14840 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
14841 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
14842 -mhotpatch= option.
14843 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
14844 -mno-hotpatch options. Change syntax of -mhotpatch= option.
14845 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
14847 (s390_hotpatch_trampoline_halfwords_max): Renamed.
14848 (s390_hotpatch_hw_max): New name.
14849 (s390_hotpatch_trampoline_halfwords): Renamed.
14850 (s390_hotpatch_hw_before_label): New name.
14851 (get_hotpatch_attribute): Removed.
14852 (s390_hotpatch_hw_after_label): New name.
14853 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
14855 (s390_attribute_table): Ditto.
14856 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
14857 (s390_function_num_hotpatch_hw): New name.
14858 Remove special handling of inline functions and hotpatching.
14859 Return number of nops before and after the function label.
14860 (s390_can_inline_p): Removed.
14861 (s390_asm_output_function_label): Emit a configurable number of nops
14862 after the function label.
14863 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
14864 (TARGET_CAN_INLINE_P) Removed.
14865 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
14867 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14868 Jiong Wang <jiong.wang@arm.com>
14870 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
14872 (cb<optab><mode>1): Likewise.
14873 * config/aarch64/iterators.md (bcond): New define_code_attr.
14875 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14877 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
14880 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14882 * config/s390/s390.c (s390_register_move_cost): Increase costs for
14885 2015-01-27 Richard Biener <rguenther@suse.de>
14887 * tree-vrp.c (update_value_range): Intersect the range with
14888 old recorded SSA name range information.
14890 2015-01-27 Nick Clifton <nickc@redhat.com>
14892 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
14893 BC, DE and HL registers directly, not via AX.
14894 When decrementing the stack pointer by a large amount, transfer SP
14895 into AX and perform the subtraction there.
14896 (rl78_expand_epilogue): Perform the inverse of the above
14899 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14901 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
14903 2015-01-27 Jakub Jelinek <jakub@redhat.com>
14904 Yury Gribov <y.gribov@samsung.com>
14907 * ubsan.c (ubsan_source_location): Refactor code.
14908 (ubsan_type_descriptor): Update type size. Refactor code.
14910 2015-01-27 Richard Biener <rguenther@suse.de>
14912 PR tree-optimization/56273
14913 PR tree-optimization/59124
14914 PR tree-optimization/64277
14915 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
14916 from the first VRP pass.
14918 2015-01-27 Jakub Jelinek <jakub@redhat.com>
14921 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
14922 handle the first argument in the same loop as all the other arguments.
14924 PR rtl-optimization/61058
14925 * jump.c (cleanup_barriers): Update basic block boundaries
14926 if BLOCK_FOR_INSN is non-NULL on PREV.
14928 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
14930 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
14931 bounds narrowing, already instrumented calls and calls to
14932 not instrumentable functions.
14934 2015-01-27 Jakub Jelinek <jakub@redhat.com>
14936 PR tree-optimization/64807
14937 * wide-int.cc (wi::divmod_internal): Clear
14938 b_dividend[dividend_blocks_needed].
14940 2015-01-26 DJ Delorie <dj@redhat.com>
14942 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
14943 volatile memory references.
14945 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
14948 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
14950 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
14951 shifts if it already fits into K08.
14953 2015-01-26 Jakub Jelinek <jakub@redhat.com>
14956 * ipa-inline.c (inline_small_functions): Print "unknown" even
14957 if edge->call_stmt is non-NULL, but has builtins or unknown
14960 PR middle-end/64421
14961 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
14962 with asterisk, skip the first character.
14964 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
14967 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
14970 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
14973 * config/i386/i386.md (*movdi_internal): Also check operand 0
14974 to determine TYPE_LEA operand.
14975 (*movsi_internal): Ditto.
14977 2015-01-26 Jakub Jelinek <jakub@redhat.com>
14979 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
14980 OPTION_MASK_QUAD_MEMORY_ATOMIC.
14982 2015-01-26 Renlin Li <renlin.li@arm.com>
14984 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
14986 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
14989 2015-01-26 Richard Biener <rguenther@suse.de>
14991 PR middle-end/64764
14992 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
14993 combining two BIT_AND_EXPR predicates.
14995 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
14998 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
15000 2015-01-26 Terry Guo <terry.guo@arm.com>
15002 * config/arm/arm.c (arm_file_start): Update the assignment of
15003 Tag_ABI_HardFP_use.
15005 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
15007 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
15009 config/arm/arm.md: Include the new Cortex-A57 model.
15010 (generic_sched): Don't use generic_sched when tuning for
15013 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
15014 Uros Bizjak <ubizjak@gmail.com>
15016 * config/i386/i386.c (get_builtin_code_for_version): Add
15017 support for BMI and BMI2 multiversion functions.
15019 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15021 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
15022 (extract_bit_field): Likewise.
15023 (extract_low_bits): Likewise.
15024 (expand_mult): Likewise.
15025 (expand_mult_highpart_adjust): Likewise.
15027 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
15029 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
15030 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
15031 * config/i386/i386.c (processor_model): Add
15032 M_INTEL_COREI7_BROADWELL.
15033 (arch_names_table): Add "broadwell".
15035 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
15044 * config/sh/sh-protos.h
15045 (sh_extending_set_of_reg::can_use_as_unextended_reg,
15046 sh_extending_set_of_reg::use_as_unextended_reg,
15047 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
15048 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
15049 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
15050 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
15051 (sh_treg_insns): New class.
15052 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
15053 (scope_counter): New class.
15054 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
15055 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
15056 sh_extending_set_of_reg::can_use_as_unextended_reg,
15057 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
15058 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
15059 sh_split_treg_set_expr): New functions.
15060 (addsubcosts): Handle treg_set_expr.
15061 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
15062 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
15063 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
15064 (sh_insn_operands_modified_between_p): Make non-static.
15065 * config/sh/predicates.md (zero_extend_movu_operand): Allow
15066 simple_mem_operand in addition to displacement_mem_operand.
15067 (zero_extend_operand): Don't allow zero_extend_movu_operand.
15068 (treg_set_expr, treg_set_expr_not_const01,
15069 arith_reg_or_treg_set_expr): New predicates.
15070 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
15071 arith_or_int_operand instead of logical_operand. Convert to
15072 insn_and_split. Try to optimize constant operand in splitter.
15073 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
15074 (*tstqi_t_zero): Delete.
15075 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
15076 (tstsi_t_and_not): Delete.
15077 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
15078 Convert to insn_and_split.
15079 (unnamed split, tstsi_t_zero_extract_xor,
15080 tstsi_t_zero_extract_subreg_xor_little,
15081 tstsi_t_zero_extract_subreg_xor_big): Delete.
15082 (*tstsi_t_shift_mask): New insn_and_split.
15083 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
15084 to recombine with surrounding insns when splitting.
15085 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
15086 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
15087 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
15088 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
15089 (*cbranch_div0s: Delete.
15090 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
15091 Try to recombine with surrounding insns when splitting. Add operand
15093 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
15094 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
15095 *addc_r_r_msb, *addc_2r_msb): Delete.
15096 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
15098 (*addc_negreg_t): New insn_and_split.
15099 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
15100 Try to recombine with surrounding insns when splitting.
15101 Add operand order variants.
15102 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
15103 insn_and_split patterns.
15104 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
15105 surrounding insns when splitting.
15106 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
15107 (*rotcl): Likewise. Add zero_extract variant.
15108 (*ashrsi2_31): New insn_and_split.
15109 (*negc): Convert to insn_and_split. Use treg_set_expr.
15110 (*zero_extend<mode>si2_disp_mem): Update comment.
15111 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
15113 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
15114 with surrounding insns when splitting.
15115 (any_treg_expr_to_reg): New insn_and_split.
15116 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
15117 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
15118 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
15119 *zero_extract_2): New single bit zero extract patterns.
15120 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
15121 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
15122 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
15123 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
15125 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
15126 register_operand for set source.
15128 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
15130 * i386.opt (prefetch_sse): New targetsave.
15131 * i386.c (ix86_function_specific_save): Save prefetch_sse.
15132 (ix86_function_specific_restore): Restore prefetch_sse and initialize
15133 ix86_cost/ix86_tune_cost.
15135 2015-01-23 David Malcolm <dmalcolm@redhat.com>
15137 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
15138 Support the JIT by using 0 as the language type.
15140 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
15143 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
15144 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
15145 (mark_regno_live, process_bb_lives): Pass new parameter value to
15146 make_hard_regno_born.
15148 2015-01-23 Jakub Jelinek <jakub@redhat.com>
15150 PR rtl-optimization/63637
15151 PR rtl-optimization/60663
15152 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
15153 if elt->cost is MAX_COST for ASM_OPERANDS.
15154 (find_sets_in_insn): Fix up comment typo.
15155 (cse_insn): Don't set src_volatile for all non-volatile
15156 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
15157 or with "memory" clobber. Set elt->cost to MAX_COST
15158 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
15159 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
15161 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
15163 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
15166 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
15168 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
15169 libgcc/config/i386/elf-lib.h.
15171 2015-01-23 Jakub Jelinek <jakub@redhat.com>
15174 * gcc.c (print_configuration): Don't print a blank line at the end
15176 (run_attempt): ... but here unstead.
15178 PR middle-end/64734
15179 * omp-low.c (scan_sharing_clauses): Don't ignore
15180 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
15181 on target data/update constructs.
15183 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
15186 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
15187 (DEBUG_RELOAD): Removed define.
15188 (m32c_limit_reload_class): Enable traces with if DEBUG0.
15189 (m32c_function_arg): Added a type cast.
15190 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
15191 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
15192 * config/m32c/bitops.md (andqi3_16): Likewise.
15193 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
15194 (push_a01_l): Likewise.
15196 2015-01-23 David Malcolm <dmalcolm@redhat.com>
15199 * main.c (main): Construct toplev instances with init_signals=true.
15200 * toplev.c (general_init): Add param "init_signals", and use it to
15201 conditionalize the calls to signal and host_hooks.extra_signals.
15202 (toplev::toplev): Add param "init_signals".
15203 (toplev::main): When invoking general_init, pass m_init_signals
15204 to control whether signal-handlers are installed.
15205 * toplev.h (toplev::toplev): Add param "init_signals".
15206 (toplev::m_init_signals): New field.
15208 2015-01-23 David Malcolm <dmalcolm@redhat.com>
15211 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
15212 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
15213 latter may be affected by the former (e.g. on i686).
15215 2015-01-23 Martin Liska <mliska@suse.cz>
15217 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
15218 false positive during profiledbootstrap.
15220 2015-01-23 Tom de Vries <tom@codesourcery.com>
15223 * lto-opts.c (lto_write_options): Output non-explicit conservative
15225 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
15226 (append_compiler_options): Pass -fopenacc through.
15228 2015-01-23 Tom de Vries <tom@codesourcery.com>
15231 * lto-opts.c (lto_write_options): Output non-explicit conservative
15233 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
15234 (append_compiler_options): Pass -fopenmp through.
15236 2015-01-23 Jakub Jelinek <jakub@redhat.com>
15239 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
15242 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
15243 * diagnostic.def (DK_ICE_NOBT): New kind.
15244 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
15245 like DK_ICE, but never print backtrace.
15246 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
15247 (internal_error_no_backtrace): New function.
15248 * gcc.c (execute): Use internal_error_no_backtrace instead of
15251 2015-01-22 Jeff Law <law@redhat.com>
15254 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
15255 improve code density for small immediate to memory case.
15256 (insv): Better handle bitfield assignments when the field is
15257 being set to all ones.
15258 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
15261 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15262 Jakub Jelinek <jakub@redhat.com>
15264 PR middle-end/64729
15265 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
15266 for !TARGET_LIBC_PROVIDES_SSP version and
15267 -fstack-protector-{all,strong,explicit} otherwise.
15268 * config/freebsd.h (LINK_SSP_SPEC): Handle
15269 -fstack-protector-{strong,explicit}.
15271 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
15272 H.J. Lu <hongjiu.lu@intel.com>
15275 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
15278 2015-01-22 Wei Mi <wmi@google.com>
15280 PR rtl-optimization/64557
15281 * dse.c (record_store): Call get_addr for mem_addr.
15282 (check_mem_read_rtx): Likewise.
15284 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
15286 * fold-const.c (const_binop): Add early return for non-tcc_binary.
15288 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
15290 * toplev.c (init_local_tick): Process the failure when read
15291 fails for random_seed.
15293 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
15294 'pretty_name' to avoid memory overflow.
15296 2015-01-22 Richard Biener <rguenther@suse.de>
15298 PR middle-end/64728
15299 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
15300 abnormal coalescing on undefined SSA names.
15302 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
15306 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
15308 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
15310 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
15312 PR middle-end/63325
15313 * fold-const.c (fold_checksum_tree): Don't include value of
15314 expr->decl_with_vis.symtab_node in the checksum.
15316 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15318 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
15320 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
15323 * gcc.c (insert_comments): New function.
15324 (try_generate_repro): Call it.
15325 (append_text): Removed.
15327 2015-01-22 Richard Biener <rguenther@suse.de>
15329 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
15330 with IL incompatible options. Properly honor user optimize
15333 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
15335 PR rtl-optimization/64682
15336 * combine.c (distribute_notes): When moving a death note for
15337 a register that is set in the new I2, make sure to put it
15338 before that new I2.
15340 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
15342 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
15343 not TARGET_DEFAULT.
15345 2015-01-21 Jakub Jelinek <jakub@redhat.com>
15348 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
15349 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
15350 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
15353 * doc/invoke.texi (-fsanitize=vptr): Document.
15355 PR rtl-optimization/62078
15356 * dse.c: Include cfgcleanup.h.
15357 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
15358 anything call purge_all_dead_edges and cleanup_cfg at the end
15361 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
15363 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
15366 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
15368 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
15371 2015-01-21 David Sherwood <david.sherwood@arm.com>
15372 Tejas Belagod <Tejas.Belagod@arm.com>
15374 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
15375 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
15376 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
15379 2015-01-21 David Sherwood <david.sherwood@arm.com>
15380 Tejas Belagod <Tejas.Belagod@arm.com>
15382 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
15383 (aarch64_reverse_mask): New decls.
15384 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
15385 (insn_count): New mode_attr.
15386 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
15387 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
15388 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
15389 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
15390 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
15391 (aarch64_simd_st4): New patterns.
15392 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
15393 (aarch64_reverse_mask): New functions.
15395 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
15397 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
15399 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
15400 addressing modes for BE.
15401 (aarch64_print_operand): Add 'R' specifier.
15402 (aarch64_simd_disambiguate_copy): Delete.
15403 (aarch64_simd_emit_reg_reg_move): New function.
15404 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
15405 in define_splits for structural moves.
15406 (mov<mode>): Use less restrictive predicates.
15407 (*aarch64_mov<mode>): Simplify and only allow for LE.
15408 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
15410 2015-01-21 Alan Hayward <alan.hayward@arm.com>
15412 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
15414 2015-01-21 Richard Henderson <rth@redhat.com>
15417 * ccmp.c (used_in_cond_stmt_p): Remove.
15418 (expand_ccmp_expr): Don't use it.
15420 2015-01-21 Nick Clifton <nickc@redhat.com>
15422 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
15425 2015-01-21 Richard Biener <rguenther@suse.de>
15427 PR middle-end/64313
15428 * tree-core.h (builtin_info, builtin_info_type): Turn from
15429 an object with two arrays into an array of an object with
15430 decl and two flags, implicit_p and declared_p.
15431 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
15432 set_builtin_decl, set_builtin_decl_implicit_p,
15433 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
15434 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
15435 * builtins.c (builtin_info): Adjust.
15436 * gimplify.c (gimplify_addr_expr): References to builtins
15437 that have been declared by the user makes them eligible for
15438 use by the compiler. Call set_builtin_decl_implicit_p on them.
15440 2015-01-20 Jeff Law <law@redhat.com>
15443 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
15444 allow pc-relative addresses in operand predicates or constraints.
15446 2015-01-21 Bin Cheng <bin.cheng@arm.com>
15448 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
15449 neon on aarch32 processors for stringops.
15451 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
15454 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
15456 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
15459 * ipa-inline.c: Include lto-streamer.h
15460 (report_inline_failed_reason): Output source file differences and
15461 flags on optimization/target node mismatch.
15462 (can_inline_edge_p): Consider caller to be the outer inline function;
15463 be less restrictive about matching opimize and optimize_size attributes.
15464 (inline_account_function_p): Break out from ...
15465 (inline_small_functions): ... here.
15466 * ipa-inline-transform.c (clone_inlined_nodes): Use
15467 inline_account_function_p.
15468 (inline_call): Use optimize attribution; use inline_account_function_p.
15469 (inline_transform): Use opt_for_fn.
15470 * ipa-inline.h (inline_account_function_p): Declare.
15472 2015-01-20 Jakub Jelinek <jakub@redhat.com>
15475 * dwarf2out.c (decl_piece_node): Don't put bitsize into
15476 mode if bitsize <= 0.
15477 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
15478 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
15479 sizes and positions.
15481 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
15483 * config/nios2/nios2.c (nios2_asm_file_end): Implement
15484 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
15486 (TARGET_ASM_FILE_END): Define.
15488 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15490 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
15491 (struct tune_params): Use the enum.
15492 * arm.c (arm_*_tune): Update.
15493 (arm_option_override): Update.
15495 2015-01-20 Richard Biener <rguenther@suse.de>
15498 * ipa-reference.c (add_static_var): Inline ...
15499 (analyze_function): ... here after splitting out from ...
15500 (is_proper_for_analysis): ... this.
15502 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
15505 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
15506 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
15507 replace the conditional with it's true branch.
15508 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
15509 (arm_lra_p): Remove.
15511 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
15513 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
15515 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15517 * config/tilegx/mul-tables.c: Move symtab.h include after
15518 coretypes.h include.
15519 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
15520 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
15521 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
15522 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
15523 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
15525 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
15529 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
15531 PR rtl-optimization/64081
15532 * loop-iv.c (def_pred_latch_p): New function.
15533 (latch_dominating_def): Allow specific cases with non-single
15535 (iv_get_reaching_def): Likewise.
15536 (check_complex_exit_p): New function.
15537 (check_simple_exit): Use check_complex_exit_p to allow certain cases
15538 with exits not executing on any iteration.
15540 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
15543 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
15544 to set branch cost.
15546 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
15549 * i386.c (gate): Check flag_expensive_optimizations and
15551 (ix86_option_override_internal): Drop optimize_size condition
15552 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
15553 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
15554 MASK_PREFER_AVX128.
15555 (ix86_avx256_split_vector_move_misalign,
15556 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
15557 * sse.md (all uses of TARGET_PREFER_AVX128): Add
15558 optimize_insn_for_speed_p check.
15560 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
15562 * config/mips/mips.h (FP_ASM_SPEC): New define.
15563 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
15566 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
15569 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
15570 nullptr for insn when reaching the first insn.
15571 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
15572 (sh_insn_operands_modified_between_p): Add nullptr check.
15573 (sh_find_extending_set_of_reg): Fix log message. Don't accept
15574 sign extending mem load if the insn contains any UNSPEC or
15577 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
15579 * params.def (inline-unit-growth): Drop to 15%.
15580 * invoke.texi (inline-unit-growth): Document change.
15582 2015-01-19 Martin Liska <mliska@suse.cz>
15585 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
15586 function for second argument of OBJ_TYPE_REF.
15588 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
15591 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
15592 whether function is an alias.
15594 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
15596 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
15599 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
15601 PR rtl-optimization/64671
15602 * lra-remat.c (operand_to_remat): Don't consider jump and call
15605 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
15608 * config/rs6000/default64.h: Include rs6000-cpus.def.
15609 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
15610 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
15611 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
15613 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
15615 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
15616 pseudo-op to specify assembler dialect.
15618 2015-01-19 Martin Liska <mliska@suse.cz>
15621 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
15622 Handle safe potentially removed nodes during filtering.
15624 2015-01-19 Martin Liska <mliska@suse.cz>
15626 * doc/extend.texi (no_icf): Add new attribute description.
15627 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
15628 where the pass attempts to merge a function with no_icf attribute.
15630 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15633 * doc/md.texi (ARM Options): Document register constraints.
15635 2015-01-19 Jiong Wang <jiong.wang@arm.com>
15636 Andrew Pinski <apinski@cavium.com>
15639 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
15640 (ashl<mode>3): Don't expand if operands[2] is not constant.
15642 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15645 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
15646 Match xor-and-xor RTL pattern.
15648 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
15650 PR rtl-optimization/64081
15651 * loop-iv.c (def_pred_latch_p): New function.
15652 (latch_dominating_def): Allow specific cases with non-single
15654 (iv_get_reaching_def): Likewise.
15655 (check_complex_exit_p): New function.
15656 (check_simple_exit): Use check_complex_exit_p to allow certain cases
15657 with exits not executing on any iteration.
15659 2015-01-19 Jakub Jelinek <jakub@redhat.com>
15661 * common.opt (fgraphite): Fix a typo.
15663 2015-01-19 Felix Yang <felix.yang@huawei.com>
15665 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
15667 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
15668 uminp, smax_nanp, smin_nanp): New builtins.
15669 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
15670 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
15671 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
15672 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
15673 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
15674 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
15675 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
15676 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
15677 vpminnms_f32): Rewrite using builtin functions.
15679 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
15682 * omp-low.c (offload_symbol_decl): Remove variable.
15683 (get_offload_symbol_decl): Remove function.
15684 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
15685 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
15686 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
15687 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
15688 BUILT_IN_GOACC_UPDATE don't pass it at all.
15690 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
15692 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
15695 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
15697 * ipa-chkp.c (chkp_produce_thunks): Add early param
15698 to split thunks production into two passes. Keep
15699 'always_inline' function bodies after the first pass.
15700 (pass_data_ipa_chkp_early_produce_thunks): New.
15701 (pass_ipa_chkp_early_produce_thunks): New.
15702 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
15703 chkp_produce_thunks signature.
15704 (make_pass_ipa_chkp_early_produce_thunks): New.
15705 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
15706 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
15707 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
15709 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
15711 * cgraph.c (cgraph_node::dump): Dump profile flags.
15713 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
15716 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
15717 reg appear first in the parallel.
15719 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
15721 * ipa-reference.c (set_reference_optimization_summary,
15722 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
15724 (ignore_module_statics): New static var.
15725 (propagate_bits): If ipa-reference is disabled, do not look into local
15727 (analyze_function): Disable analysis when ipa_reference is disabled.
15728 (generate_summary): Do not dump when reference is disabled;
15729 collect vars accessed from functions with ipa-reference disabled.
15730 (get_read_write_all_from_node): When ipa-reference is disabled, use the
15732 (gate): Enable for LTO.
15733 (ignore_edge_p): New function.
15734 (propagate): Skip functions w/o ipa-reference analysis.
15735 * optc-save-gen.awk: Handle optimize_debug correctly.
15736 * opth-gen.awk: Likewise.
15737 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
15738 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
15739 fira-share-save-slots, fira-share-spill-slots,
15740 fmodulo-sched-allow-regmoves, fpartial-inlining,
15741 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
15742 ftracer, ftree-parallelize-loops, fassociative-math,
15743 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
15745 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
15746 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
15748 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
15751 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
15754 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
15756 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
15758 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
15760 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
15761 Remove duplicate option listings.
15763 2015-01-18 Felix Yang <felix.yang@huawei.com>
15765 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
15766 (autofdo_source_profile::get_callsite_total_count,
15767 function_instance::get_function_instance_by_decl,
15768 string_table::get_index, string_table::get_index_by_decl,
15769 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
15770 Fix comment typos. Reformatting and minor code rearrangement.
15772 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
15774 * config/rs6000/rs6000.md (probe_stack): Delete.
15775 (probe_stack_address): New.
15777 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
15779 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
15780 to test for 32-bit ABIs, not !TARGET_POWERPC64.
15782 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
15784 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
15785 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
15786 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
15788 (rs6000_libcall_value): Use the new function.
15790 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
15792 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
15794 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
15796 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
15797 implement a more precise life analysis for it during backward scan.
15799 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
15801 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
15803 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
15805 PR rtl-optimization/52773
15806 * calls.c (emit_library_call_value): When pushing arguments use
15807 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
15808 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
15809 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
15811 2015-01-17 Jeff Law <law@redhat.com>
15813 PR rtl-optimization/32790
15814 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
15815 not ZERO_EXTEND in SET_DESTs.
15817 2015-01-17 Alan Modra <amodra@gmail.com>
15819 * cprop.c (do_local_cprop): Revert last change.
15821 2015-01-16 DJ Delorie <dj@redhat.com>
15822 Nick Clifton <nickc@redhat.com>
15824 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
15825 (addhi3_real): Likewise. Fix [HL+0] syntax.
15826 (subqi3_real): Likewise.
15827 (subhi3_real): Likewise.
15828 (cbranchqi4_real): Likewise. Allow saddr,#imm.
15829 (cbranchhi4_real): Likewise.
15830 (cbranchhi4_real_inverted): Likewise.
15831 (cbranchsi4_real_lt): Likewise.
15832 (cbranchsi4_real_ge): Likewise.
15833 (cbranchsi4_real_ge): Likewise.
15834 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
15835 (sub<mode>3_virt): Likewise.
15836 (cbranchqi4_virt): Likewise.
15837 (cbranchhi4_virt): Likewise.
15838 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
15839 always use '[reg+imm]' even when imm is zero.
15840 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
15841 (rl78_general_operand): New.
15842 (rl78_nonimmediate_operand): New.
15843 (rl78_nonfar_operand): Use them.
15844 (rl78_nonfar_nonimm_operand): Likewise.
15845 (rl78_stack_based_mem): Fix.
15846 * config/rl78/constraints.md (Ibqi): New.
15851 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
15852 (iorqi3): Likewise.
15853 (xorqi3): Likewise.
15854 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
15856 * config/rl78/constrains (Qs8): New constraint.
15857 * config/rl78/rl78.c (rl78_flags_already_set): New function.
15858 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
15859 * config/rl78/rl78-real.md (update_Z): New attribute.
15860 Update patterns to set it.
15861 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
15862 shorter compare and branch sequence can be used.
15863 (cbranchhi4_real): Likewise.
15864 (cbranchhi4_real_inverted): Likewise.
15866 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
15867 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
15869 * config/rl78/rl78.c (rl78_get_name_encoding): New.
15870 (rl78_option_override): Allow -mes0 only if C.
15871 (characterize_address): Support subregs of symbol_refs.
15872 (rl78_addr_space_address_mode): Move. Add __near.
15873 (rl78_far_p): Likewise.
15874 (rl78_addr_space_pointer_mode): Likewise.
15875 (rl78_as_legitimate_address): Likewise.
15876 (rl78_addr_space_subset_p): Likewise.
15877 (rl78_addr_space_convert): Likewise.
15878 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
15879 symbols with -mes0.
15880 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
15882 (rl78_alloc_physical_registers_op1): Change logic to prefer
15883 symbol[BC] addressing.
15884 (frodata_section): New.
15885 (rl78_asm_init_sections): Initialize it.
15886 (rl78_select_section): Put __far readonly symbols in .frodata.
15887 (rl78_make_type_far): New.
15888 (rl78_insert_attributes): Force all readonly symbols to be
15890 (rl78_asm_out_integer): New.
15891 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
15892 * config/rl78/rl78.opt (-mes0): New.
15894 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
15895 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
15896 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
15897 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
15898 (rl78_saddr_p): New.
15899 (rl78_output_aligned_common): New.
15900 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
15901 (rl78_handle_saddr_attribute): New.
15902 (rl78_handle_naked_attribute): New.
15903 (rl78_attribute_table): Add saddr.
15904 (rl78_print_operand_1): Don't print '!' on saddr operands.
15905 (rl78_print_operand_1): Strip encodings.
15907 (rl78_strip_name_encoding): New.
15908 (rl78_attrlist_to_encoding): New.
15909 (rl78_encode_section_info): New.
15910 (rl78_asm_init_sections): New.
15911 (rl78_select_section): New.
15912 (rl78_output_labelref): New.
15913 (rl78_output_aligned_common): New.
15914 (rl78_asm_out_integer): New.
15915 (rl78_asm_ctor_dtor): New.
15916 (rl78_asm_constructor): New.
15917 (rl78_asm_destructor): New.
15919 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
15920 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
15921 (transcode_memory_rtx): Update.
15922 (rl78_expand_epilogue): Use A_REG instead of 0.
15924 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15926 * config/arm/arm-protos.h (struct tune_params): New field
15927 sched_autopref_queue_depth.
15928 * config/arm/arm.c (sched-int.h): Include header.
15929 (arm_first_cycle_multipass_dfa_lookahead_guard,)
15930 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
15931 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
15932 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
15933 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
15934 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
15935 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
15936 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
15937 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
15938 * config/arm/t-arm (arm.o): Update.
15939 * haifa-sched.c (update_insn_after_change): Update.
15940 (rank_for_schedule): Use auto-prefetcher model, if requested.
15941 (autopref_multipass_init): New static function.
15942 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
15943 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
15944 variable for debug dumps.
15945 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
15946 (autopref_multipass_dfa_lookahead_guard): New global function that
15947 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
15948 (init_h_i_d): Update.
15949 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
15950 * sched-int.h (enum autopref_multipass_data_status): New const enum.
15951 (autopref_multipass_data_): Structure for auto-prefetcher data.
15952 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
15953 (struct _haifa_insn_data:autopref_multipass_data): New field.
15954 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
15955 (autopref_multipass_dfa_lookahead_guard): Declare.
15957 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15959 * rtlanal.c (get_base_term): Handle SCRATCH.
15961 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15963 * config/aarch64/aarch64.c
15964 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
15965 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
15967 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
15968 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
15970 2015-01-17 Alan Modra <amodra@gmail.com>
15972 * cprop.c (do_local_cprop): Disallow replacement of fixed
15975 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15978 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
15981 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
15983 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
15984 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
15986 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15988 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
15989 * config/arm/thumb1.md: ... Here.
15991 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
15993 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
15994 TImode for TARGET_32BIT.
15996 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
15998 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
15999 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
16001 (rs6000_abi_word_mode): New function.
16003 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
16005 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
16006 instead of UNITS_PER_WORD to describe the size of stack slots.
16008 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
16010 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
16011 as rs6000_promote_function_mode. Move comment to there.
16012 (rs6000_promote_function_mode): New function.
16014 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
16016 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
16017 -mpowerpc64 is active.
16019 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
16021 PR middle-end/64353
16022 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
16025 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
16027 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
16028 introduced in revision 219724.
16030 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16031 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16034 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
16035 destination is not a GP reg.
16036 (*movdi_aarch64): Likewise.
16038 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
16041 * config/rs6000/default64.h: Revert ISA change.
16043 2015-01-16 Richard Biener <rguenther@suse.de>
16045 PR middle-end/64614
16046 * tree-ssa-uninit.c: Include tree-cfg.h.
16047 (MAX_SWITCH_CASES): New define.
16048 (convert_control_dep_chain_into_preds): Handle switch statements.
16049 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
16050 (normalize_one_pred_1): Do not split bit-manipulations.
16053 2015-01-16 Richard Biener <rguenther@suse.de>
16055 PR tree-optimization/64568
16056 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
16057 complex load rewriting for TARGET_MEM_REFs.
16059 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
16061 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
16063 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
16066 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
16068 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
16069 (aarch64_lra_p): Remove.
16071 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
16074 * ipa-chkp.h (chkp_instrumentable_p): New.
16075 * ipa-chkp.c: Include tree-inline.h.
16076 (chkp_instrumentable_p): New.
16077 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
16078 Fix processing of not instrumentable functions.
16079 (chkp_versioning): Use chkp_instrumentable_p. Warn about
16080 not instrumentable functions.
16081 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
16082 chkp_instrumentable_p.
16083 * tree-inline.h (copy_forbidden): New.
16084 * tree-inline.c (copy_forbidden): Not static anymore.
16086 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16088 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
16091 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
16093 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
16094 type OP_OUT to OP_INOUT.
16096 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
16098 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
16099 (high x) y) to y if x and y have the same base.
16101 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
16103 * config/arm/cortex-a57.md: New.
16104 * config/aarch64/aarch64.md: Include it.
16105 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
16106 * config/aarch64/aarch64-tune.md: Regenerate.
16108 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
16111 * ccmp.c (expand_ccmp_next): New function.
16112 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
16113 and compare insn sequence.
16114 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
16115 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
16116 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
16117 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
16118 (*ccmp_ior): Changed to ccmp_ior<mode>.
16119 (cmp<mode>): New pattern.
16120 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
16122 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
16124 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
16126 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
16127 _mm256_bsrli_epi128): New.
16128 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
16130 2015-01-15 Jiong Wang <jiong.wang@arm.com>
16132 * expmed.c (store_bit_field_using_insv): Improve warning message.
16133 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
16135 2015-01-15 Jiong Wang <jiong.wang@arm.com>
16137 PR rtl-optimization/64011
16138 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
16139 there is partial overflow.
16141 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
16143 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
16145 (nds32_expand_epilogue_v3pop): Likewise.
16146 * config/nds32/nds32.md (sibcall): Define this for sibling call
16148 (sibcall_register): Likewise.
16149 (sibcall_immediate): Likewise.
16150 (sibcall_value): Likewise.
16151 (sibcall_value_register): Likewise.
16152 (sibcall_value_immediate): Likewise.
16153 (sibcall_epilogue): Likewise.
16154 (epilogue): Pass false to indicate this is not a sibcall epilogue.
16155 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
16156 (nds32_expand_epilogue_v3pop): Likewise.
16158 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
16160 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
16161 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
16162 (return_internal): New.
16163 (return): Define this named pattern.
16164 (simple_return): Define this named pattern.
16165 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
16166 pattern instead of unspec_volatile_func_return.
16167 (nds32_expand_epilogue_v3pop): Likewise.
16168 (nds32_can_use_return_insn): New function.
16170 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
16172 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
16173 * config/nds32/nds32.md (pop25return): New.
16174 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
16175 pop25return pattern.
16177 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
16179 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
16180 -mforbid-fp-as-gp, and -mex9 options.
16182 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
16184 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
16185 remove -mgp-direct option.
16187 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
16189 * doc/invoke.texi (--param early-inlining-insns): Update default value.
16190 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
16192 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
16194 * ipa-inline.c (inline_small_functions): Work around hints
16197 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
16200 * doc/invoke.texi (Option Summary): Document new Nios II
16202 (Nios II Options): Likewise.
16203 * config/nios2/nios2.opt: Add -mgpopt= option support.
16204 Modify existing -mgpopt and -mno-gpopt options to be aliases.
16205 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
16206 * config/nios2/nios2.c (nios2_option_override): Adjust
16207 -mgpopt defaulting.
16208 (nios2_in_small_data_p): Return true for explicit small data
16209 sections even with -G0.
16210 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
16213 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
16216 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
16218 (inline_call): Fix removal of aliases.
16220 2015-01-15 Jakub Jelinek <jakub@redhat.com>
16222 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
16223 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
16224 * opts.c (common_handle_option): Add -fsanitize=vptr.
16225 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
16226 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
16227 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
16228 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
16229 (ubsan_expand_vptr_ifn): New prototype.
16230 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
16231 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
16232 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
16233 expand_LOOP_VECTORIZED): Make argument nameless, remove
16235 (expand_UBSAN_VPTR): New function.
16236 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
16238 (UBSAN_VPTR): New internal function.
16239 * sanopt.c (tree_map_traits): Renamed to ...
16240 (sanopt_tree_map_traits): ... this.
16241 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
16242 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
16243 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
16244 (maybe_optimize_ubsan_vptr_ifn): New function.
16245 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
16246 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
16248 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
16249 internal calls like pure functions for aliasing, even when they
16250 have other side-effects that prevent making them ECF_PURE.
16251 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
16252 (ubsan_expand_vptr_ifn): New function.
16254 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
16256 PR rtl-optimization/64110
16257 * stmt.c (parse_output_constraint): Process '^' and '$'.
16258 (parse_input_constraint): Ditto.
16259 * lra-constraints.c (process_alt_operands): Process the new
16261 * ira-costs.c (record_reg_classes): Process the new constraint
16263 * genoutput.c (indep_constraints): Add '^' and '$'.
16264 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
16265 * doc/md.texi: Add description of the new constraints.
16267 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
16268 Bernd Schmidt <bernds@codesourcery.com>
16269 Cesar Philippidis <cesar@codesourcery.com>
16270 James Norris <jnorris@codesourcery.com>
16271 Tom de Vries <tom@codesourcery.com>
16272 Ilmir Usmanov <i.usmanov@samsung.com>
16273 Dmitry Bocharnikov <dmitry.b@samsung.com>
16274 Evgeny Gavrin <e.gavrin@samsung.com>
16275 Jakub Jelinek <jakub@redhat.com>
16277 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
16278 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
16279 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
16280 New function types.
16281 * builtins.c: Include "gomp-constants.h".
16282 (expand_builtin_acc_on_device): New function.
16283 (expand_builtin, is_inexpensive_builtin): Handle
16284 BUILT_IN_ACC_ON_DEVICE.
16285 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
16287 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
16289 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
16290 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
16291 i386/intelmic-offload.h.
16292 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
16293 to libgomp and its dependencies.
16294 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
16295 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
16296 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
16297 * config/ia64/hpux.h (LIB_SPEC): Likewise.
16298 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
16299 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
16300 * doc/generic.texi: Update for OpenACC changes.
16301 * doc/gimple.texi: Likewise.
16302 * doc/invoke.texi: Likewise.
16303 * doc/sourcebuild.texi: Likewise.
16304 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
16305 GF_OMP_FOR_KIND_OACC_LOOP.
16306 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
16307 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
16308 GF_OMP_TARGET_KIND_OACC_UPDATE,
16309 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
16311 * gimple.c: Update comments for OpenACC changes.
16312 * gimple.def: Likewise.
16313 * gimple.h: Likewise.
16314 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
16315 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
16316 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
16317 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
16318 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
16320 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
16321 * gimplify.c: Include "gomp-constants.h".
16322 Update comments for OpenACC changes.
16323 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
16324 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
16325 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
16326 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
16327 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
16328 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
16329 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
16330 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
16331 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
16333 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
16334 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
16335 OMP_CLAUSE_SET_MAP_KIND.
16336 (gimplify_oacc_cache): New function.
16337 (gimplify_omp_for): Handle OACC_LOOP.
16338 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
16340 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
16341 OACC_EXIT_DATA, OACC_UPDATE.
16342 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
16343 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
16344 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
16345 (gimplify_body): Consider flag_openacc next to flag_openmp.
16346 * lto-streamer-out.c: Include "gomp-constants.h".
16347 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
16348 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
16349 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
16350 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
16351 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
16352 (BUILT_IN_ACC_ON_DEVICE): New builtins.
16353 * omp-low.c: Include "gomp-constants.h".
16354 Update comments for OpenACC changes.
16355 (struct omp_context): Add reduction_map, gwv_below, gwv_this
16357 (extract_omp_for_data, use_pointer_for_field, install_var_field)
16358 (new_omp_context, delete_omp_context, scan_sharing_clauses)
16359 (create_omp_child_function, scan_omp_for, scan_omp_target)
16360 (check_omp_nesting_restrictions, lower_reduction_clauses)
16361 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
16362 Update for OpenACC changes.
16363 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
16364 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
16365 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
16366 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
16367 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
16368 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
16370 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
16371 Handle GF_OMP_FOR_KIND_OACC_LOOP.
16372 (expand_omp_target, lower_omp_target): Handle
16373 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
16374 GF_OMP_TARGET_KIND_OACC_UPDATE,
16375 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
16376 GF_OMP_TARGET_KIND_OACC_DATA.
16377 (pass_expand_omp::execute, execute_lower_omp)
16378 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
16380 (offload_symbol_decl): New variable.
16381 (oacc_get_reduction_array_id, oacc_max_threads)
16382 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
16383 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
16384 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
16385 (oacc_gimple_assign, oacc_initialize_reduction_data)
16386 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
16388 (is_targetreg_ctx): Remove function.
16389 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
16390 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
16391 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
16392 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
16393 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
16394 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
16395 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
16396 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
16397 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
16398 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
16399 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
16400 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
16401 * tree-core.h: Update comments for OpenACC changes.
16402 (enum omp_clause_map_kind): Remove.
16403 (struct tree_omp_clause): Change type of map_kind member from enum
16404 omp_clause_map_kind to unsigned char.
16405 * tree-inline.c: Update comments for OpenACC changes.
16406 * tree-nested.c: Likewise. Include "gomp-constants.h".
16407 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
16408 (convert_tramp_reference_stmt, convert_gimple_call): Update for
16409 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
16410 OMP_CLAUSE_SET_MAP_KIND.
16411 * tree-pretty-print.c: Include "gomp-constants.h".
16412 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
16413 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
16414 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
16415 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
16416 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
16417 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
16418 instead of OMP_CLAUSE_MAP_*.
16419 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
16420 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
16421 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
16422 * tree-streamer-in.c: Include "gomp-constants.h".
16423 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
16424 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
16425 * tree-streamer-out.c: Include "gomp-constants.h".
16426 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
16428 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
16429 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
16430 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
16431 * tree.c (omp_clause_num_ops): Update accordingly.
16432 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
16434 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
16435 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
16436 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
16437 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
16438 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
16439 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
16440 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
16441 (OMP_CLAUSE_SET_MAP_KIND): New macro.
16442 * varpool.c (varpool_node::get_create): Consider flag_openacc next
16444 * config/i386/intelmic-offload.h: New file.
16445 * config/nvptx/offload.h: Likewise.
16447 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16449 * explow.h: Remove duplicate contents.
16450 * dojump.h: Likewise.
16452 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
16454 * arm.c (arm_xgene_tune): Add default initializer for instruction
16457 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
16461 * ipa.c (symbol_table::remove_unreachable_nodes):
16462 Do not put abstract origins into boundary.
16464 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
16466 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
16467 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
16469 2015-01-15 Steve Ellcey <sellcey@mips.com>
16471 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
16472 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
16473 builtins.def, and chkp-builtins.def.
16475 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
16477 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
16480 2015-01-15 Richard Biener <rguenther@suse.de>
16482 PR tree-optimization/61743
16483 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
16484 information on PHIs for some simple cases.
16486 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16488 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
16490 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
16491 * config/arm/arm-cores.def (xgene1): New entry.
16492 * config/arm/arm-tables.opt: Regenerate.
16493 * config/arm/arm-tune.md: Regenerate.
16494 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
16496 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
16498 * tree-if-conv.c: Include hash-map.h.
16499 (aggressive_if_conv): New variable.
16500 (fold_build_cond_expr): Add simplification of non-zero condition.
16501 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
16502 destination block is not always executed.
16503 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
16504 than two predecessors if AGGRESSIVE_IF_CONV is true.
16505 (if_convertible_stmt_p): Fix commentary.
16506 (all_preds_critical_p): New function.
16507 (has_pred_critical_p): New function.
16508 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
16509 BB can have more than two predecessors and all incoming edges can be
16511 (predicate_bbs): Skip predication for loop exit block, use build2_loc
16512 to compute predicate for true edge.
16513 (find_phi_replacement_condition): Delete this function.
16514 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
16515 Allow interchange PHI arguments if EXTENDED is false.
16516 Change check that block containing reduction statement candidate
16517 is predecessor of phi-block since phi may have more than two arguments.
16518 (phi_args_hash_traits): New helper structure.
16519 (struct phi_args_hash_traits): New type.
16520 (phi_args_hash_traits::hash): New function.
16521 (phi_args_hash_traits::equal_keys): New function.
16522 (gen_phi_arg_condition): New function.
16523 (predicate_scalar_phi): Add handling of phi nodes with more than two
16524 arguments, delete COND and TRUE_BB arguments, insert body of
16525 find_phi_replacement_condition to predicate ordinary phi nodes.
16526 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
16527 delete call of find_phi_replacement_condition and invoke
16528 predicate_scalar_phi with two arguments.
16529 (insert_gimplified_predicates): Add assert that non-predicated block
16530 don't have statements to insert.
16531 (ifcvt_split_critical_edges): New function.
16532 (ifcvt_split_def_stmt): Likewise.
16533 (ifcvt_walk_pattern_tree): Likewise.
16534 (stmt_is_root_of_bool_pattern): Likewise.
16535 (ifcvt_repair_bool_pattern): Likewise.
16536 (ifcvt_local_dce): Likewise.
16537 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
16538 is copy of inner or outer loop force_vectorize field, invoke
16539 ifcvt_split_critical_edges, ifcvt_local_dce and
16540 ifcvt_repair_bool_pattern for aggressive if-conversion.
16542 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
16544 * config/aarch64/aarch64.md: Include xgene1.md.
16545 * config/aarch64/xgene1.md: New file.
16547 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16549 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
16550 xgene1 (APM XGene-1) core definition.
16551 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
16552 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
16553 * doc/invoke.texi: Document -mcpu=xgene1.
16555 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16557 * dojump.h: New header file.
16558 * explow.h: Likewise.
16559 * expr.h: Remove includes.
16560 Move expmed.c prototypes to expmed.h.
16561 Move dojump.c prototypes to dojump.h.
16562 Move alias.c prototypes to alias.h.
16563 Move explow.c prototypes to explow.h.
16564 Move calls.c prototypes to calls.h.
16565 Move emit-rtl.c prototypes to emit-rtl.h.
16566 Move varasm.c prototypes to varasm.h.
16567 Move stmt.c prototypes to stmt.h.
16568 (saved_pending_stack_adjust): Move to dojump.h.
16569 (adjust_address): Move to explow.h.
16570 (adjust_address_nv): Move to emit-rtl.h.
16571 (adjust_bitfield_address): Likewise.
16572 (adjust_bitfield_address_size): Likewise.
16573 (adjust_bitfield_address_nv): Likewise.
16574 (adjust_automodify_address_nv): Likewise.
16575 * explow.c (expr_size): Move to expr.c.
16576 (int_expr_size): Likewise.
16577 (tree_expr_size): Likewise.
16578 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16579 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
16580 * genemit.c (main): Generate includes statistics.h, real.h,
16581 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
16583 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
16584 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
16585 explow.h, emit-rtl.h, stmt.h.
16586 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
16587 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
16588 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
16589 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
16590 emit-rtl.h, varasm.h, stmt.h.
16591 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
16592 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
16593 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
16594 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
16595 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
16596 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
16597 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
16598 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
16599 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
16600 tm.h tree.h varasm.h vec.h wide-int.h.
16601 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
16602 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
16603 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
16604 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
16605 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
16606 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
16607 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
16608 * loop-iv.c: Likewise.
16609 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
16610 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
16611 statistics.h stmt.h tree.h varasm.h wide-int.h.
16612 * lra-constraints.c: Likewise.
16613 * lra-eliminations.c: Likewise.
16614 * lra-lives.c: Likewise.
16615 * lra-remat.c: Likewise.
16616 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
16617 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
16618 statistics.h stmt.h tree.h varasm.h wide-int.h.
16619 * hw-doloop.c: Likewise.
16620 * ira-color.c: Likewise.
16621 * ira-emit.c: Likewise.
16622 * loop-doloop.c: Likewise.
16623 * loop-invariant.c: Likewise.
16624 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
16625 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
16626 statistics.h stmt.h tree.h varasm.h wide-int.h.
16627 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
16628 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
16629 statistics.h stmt.h tree.h varasm.h wide-int.h.
16630 * combine-stack-adj.c: Likewise.
16633 * ifcvt.c: Likewise.
16634 * ira-costs.c: Likewise.
16635 * jump.c: Likewise.
16636 * lra-coalesce.c: Likewise.
16637 * lra-spills.c: Likewise.
16638 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
16639 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
16640 stmt.h varasm.h wide-int.h.
16641 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
16642 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
16644 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
16645 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
16646 statistics.h stmt.h varasm.h wide-int.h.
16647 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
16648 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
16649 varasm.h wide-int.h.
16650 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
16651 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
16652 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
16653 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
16654 statistics.h stmt.h.
16655 * config/tilepro/tilepro.c: Likewise.
16656 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
16657 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
16658 * config/pdp11/pdp11.c: Likewise.
16659 * config/xtensa/xtensa.c: Likewise.
16660 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
16661 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
16663 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16664 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
16665 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
16666 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16667 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
16668 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
16669 * rtl-chkp.c: Likewise.
16670 * tree-chkp-opt.c: Likewise.
16671 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
16672 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
16673 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
16674 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16675 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
16676 statistics.h stmt.h.
16677 * tree-vect-data-refs.c: Likewise.
16678 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
16679 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
16680 rtl.h statistics.h stmt.h varasm.h.
16681 * internal-fn.c: Likewise.
16682 * ipa-icf-gimple.c: Likewise.
16683 * lto-section-out.c: Likewise.
16684 * tree-data-ref.c: Likewise.
16685 * tree-nested.c: Likewise.
16686 * tree-outof-ssa.c: Likewise.
16687 * tree-predcom.c: Likewise.
16688 * tree-pretty-print.c: Likewise.
16689 * tree-scalar-evolution.c: Likewise.
16690 * tree-ssa-strlen.c: Likewise.
16691 * tree-vect-loop.c: Likewise.
16692 * tree-vect-patterns.c: Likewise.
16693 * tree-vect-slp.c: Likewise.
16694 * tree-vect-stmts.c: Likewise.
16695 * tsan.c: Likewise.
16696 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16697 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
16699 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
16700 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
16701 statistics.h stmt.h varasm.h.
16702 * loop-unroll.c: Likewise.
16703 * ubsan.c: Likewise.
16704 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
16705 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
16707 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16708 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
16709 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
16710 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
16711 statistics.h stmt.h.
16712 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
16713 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
16714 statistics.h stmt.h varasm.h.
16715 * gimple-match-head.c: Likewise.
16716 * lto-cgraph.c: Likewise.
16717 * lto-section-in.c: Likewise.
16718 * lto-streamer-in.c: Likewise.
16719 * lto-streamer-out.c: Likewise.
16720 * tree-affine.c: Likewise.
16721 * tree-cfg.c: Likewise.
16722 * tree-cfgcleanup.c: Likewise.
16723 * tree-if-conv.c: Likewise.
16724 * tree-into-ssa.c: Likewise.
16725 * tree-ssa-alias.c: Likewise.
16726 * tree-ssa-copyrename.c: Likewise.
16727 * tree-ssa-dse.c: Likewise.
16728 * tree-ssa-forwprop.c: Likewise.
16729 * tree-ssa-live.c: Likewise.
16730 * tree-ssa-math-opts.c: Likewise.
16731 * tree-ssa-pre.c: Likewise.
16732 * tree-ssa-sccvn.c: Likewise.
16733 * tree-tailcall.c: Likewise.
16734 * tree-vect-generic.c: Likewise.
16735 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16736 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
16737 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16738 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
16739 * varasm.c: Likewise.
16740 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16741 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
16743 * init-regs.c: Likewise.
16745 * omp-low.c: Likewise.
16746 * stack-ptr-mod.c: Likewise.
16747 * tree-ssa-reassoc.c: Likewise.
16748 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16749 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
16751 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16752 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
16753 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16754 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
16755 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16756 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
16757 * tree-ssa-phiopt.c: Likewise.
16758 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16759 fixed-value.h hashtab.h real.h statistics.h stmt.h.
16760 * config/fr30/fr30.c: Likewise.
16761 * config/frv/frv.c: Likewise.
16762 * expr.c: Likewise.
16763 * final.c: Likewise.
16764 * optabs.c: Likewise.
16765 * passes.c: Likewise.
16766 * simplify-rtx.c: Likewise.
16767 * stmt.c: Likewise.
16768 * toplev.c: Likewise.
16769 * var-tracking.c: Likewise.
16770 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16771 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
16772 * lower-subreg.c: Likewise.
16773 * postreload-gcse.c: Likewise.
16775 * reginfo.c: Likewise.
16776 * store-motion.c: Likewise.
16777 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16778 fixed-value.h hashtab.h real.h stmt.h varasm.h.
16779 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16780 fixed-value.h hashtab.h statistics.h stmt.h.
16781 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16782 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
16783 * except.c: Likewise.
16784 * explow.c: Likewise.
16785 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16786 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
16788 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16789 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
16790 * tree-ssa-structalias.c: Likewise.
16791 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16792 fixed-value.h insn-config.h real.h statistics.h.
16793 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16794 fixed-value.h insn-config.h real.h statistics.h stmt.h.
16795 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16796 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
16797 * cfgbuild.c: Likewise.
16798 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16799 fixed-value.h real.h rtl.h statistics.h stmt.h.
16800 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16801 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
16802 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16803 fixed-value.h real.h statistics.h stmt.h.
16804 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16805 fixed-value.h real.h statistics.h stmt.h varasm.h.
16806 * cprop.c: Likewise.
16807 * modulo-sched.c: Likewise.
16808 * postreload.c: Likewise.
16809 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
16810 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
16811 statistics.h stmt.h varasm.h.
16812 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
16813 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
16814 rtl.h statistics.h stmt.h varasm.h.
16815 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
16816 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
16818 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
16819 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
16821 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
16822 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
16824 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
16825 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
16826 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
16827 function.h real.h statistics.h stmt.h varasm.h.
16828 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
16829 insn-config.h real.h statistics.h stmt.h.
16830 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
16831 statistics.h stmt.h.
16832 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
16833 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
16834 statistics.h stmt.h varasm.h.
16835 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
16836 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
16837 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
16838 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
16839 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
16840 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
16841 statistics.h stmt.h varasm.h.
16842 * ipa-polymorphic-call.c: Likewise.
16843 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
16844 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
16845 statistics.h stmt.h.
16846 * config/c6x/c6x.c: Likewise.
16847 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
16848 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
16849 statistics.h stmt.h varasm.h.
16850 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
16851 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
16853 * ipa-split.c: Likewise.
16854 * tree-eh.c: Likewise.
16855 * tree-ssa-dce.c: Likewise.
16856 * tree-ssa-loop-niter.c: Likewise.
16857 * tree-vrp.c: Likewise.
16858 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
16859 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
16861 * config/nds32/nds32-fp-as-gp.c: Likewise.
16862 * config/nds32/nds32-intrinsic.c: Likewise.
16863 * config/nds32/nds32-isr.c: Likewise.
16864 * config/nds32/nds32-md-auxiliary.c: Likewise.
16865 * config/nds32/nds32-memory-manipulation.c: Likewise.
16866 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16867 * config/nds32/nds32-predicates.c: Likewise.
16868 * config/nds32/nds32.c: Likewise.
16869 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
16870 fixed-value.h hashtab.h real.h statistics.h.
16871 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
16872 fixed-value.h hashtab.h real.h statistics.h stmt.h.
16873 * config/arm/arm.c: Likewise.
16874 * config/avr/avr.c: Likewise.
16875 * config/bfin/bfin.c: Likewise.
16876 * config/h8300/h8300.c: Likewise.
16877 * config/i386/i386.c: Likewise.
16878 * config/ia64/ia64.c: Likewise.
16879 * config/iq2000/iq2000.c: Likewise.
16880 * config/m32c/m32c.c: Likewise.
16881 * config/m32r/m32r.c: Likewise.
16882 * config/m68k/m68k.c: Likewise.
16883 * config/mcore/mcore.c: Likewise.
16884 * config/mep/mep.c: Likewise.
16885 * config/mips/mips.c: Likewise.
16886 * config/mn10300/mn10300.c: Likewise.
16887 * config/moxie/moxie.c: Likewise.
16888 * config/pa/pa.c: Likewise.
16889 * config/rl78/rl78.c: Likewise.
16890 * config/rx/rx.c: Likewise.
16891 * config/s390/s390.c: Likewise.
16892 * config/sh/sh.c: Likewise.
16893 * config/sparc/sparc.c: Likewise.
16894 * config/spu/spu.c: Likewise.
16895 * config/stormy16/stormy16.c: Likewise.
16896 * config/v850/v850.c: Likewise.
16897 * config/vax/vax.c: Likewise.
16898 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
16899 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
16900 * config/msp430/msp430.c: Likewise.
16901 * predict.c: Likewise.
16902 * value-prof.c: Likewise.
16903 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
16904 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
16905 * config/microblaze/microblaze.c: Likewise.
16906 * config/nios2/nios2.c: Likewise.
16907 * config/rs6000/rs6000.c: Likewise.
16908 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
16909 insn-config.h real.h rtl.h statistics.h stmt.h.
16910 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
16911 insn-config.h real.h statistics.h stmt.h.
16912 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
16913 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
16914 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
16915 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
16916 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
16917 fixed-value.h real.h statistics.h stmt.h.
16918 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
16919 fixed-value.h statistics.h stmt.h.
16920 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
16923 2015-01-15 Jakub Jelinek <jakub@redhat.com>
16925 * gengtype.c (create_user_defined_type): Workaround
16926 -Wmaybe-uninitialized false positives.
16927 * cse.c (fold_rtx): Likewise.
16928 * loop-invariant.c (gain_for_invariant): Likewise.
16930 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
16932 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
16933 set the memory attributes in all cases but clear MEM_EXPR if need be.
16935 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
16937 PR tree-optimization/64434
16938 * cfgexpand.c (reorder_operands): New function.
16939 (expand_gimple_basic_block): Insert call of reorder_operands if
16942 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
16944 * config/mips/micromips.md (*swp): Remove explicit parallel.
16945 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
16946 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
16947 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
16948 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
16949 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
16950 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
16951 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
16952 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
16953 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
16954 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
16955 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
16956 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
16957 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
16958 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
16959 (mips_wrdsp): Likewise.
16960 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
16962 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
16963 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
16964 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
16965 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
16966 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
16967 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
16968 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
16969 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
16970 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
16972 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
16974 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
16975 (mips_print_operand): Support 'y' to print exact log2 in decimal
16977 * config/mips/mips.h (ISA_HAS_LSA): New define.
16978 (ISA_HAS_DLSA): Likewise.
16979 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
16980 * config/mips/predicates.md (const_immlsa_operand): New predicate.
16982 2015-01-15 Martin Liska <mliska@suse.cz>
16985 * optc-save-gen.awk: Add support for array types.
16987 2015-01-15 Richard Biener <rguenther@suse.de>
16989 PR middle-end/64365
16990 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
16991 for MEM_REF access functions with the same base can never partially
16994 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
16996 * common.opt: New option -fstack-protector-explicit.
16997 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
16998 (stack_protect_decl_phase): Handle stack_protect attribute for
16999 explicit stack protection requests.
17000 (expand_used_vars): Similarly.
17001 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
17002 * doc/extend.texi: Add documentation for "stack_protect" attribute.
17003 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
17005 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
17008 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
17010 (sh_extending_set_of_reg): New struct.
17011 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
17012 sh_remove_reg_dead_or_unused_notes): New Declarations.
17013 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
17014 sh_find_extending_set_of_reg, sh_split_tst_subregs,
17015 sh_extending_set_of_reg::use_as_extended_reg): New functions.
17016 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
17017 convert to insn_and_split and use new function sh_split_tst_subregs.
17019 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
17021 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
17023 (Optimization Options): Move -fuse-ld documentation to...
17024 (Link Options): ...here.
17026 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
17028 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
17030 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
17031 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
17032 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
17033 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
17034 instead of ZR for the memory operand of LL/SC.
17035 (compare_and_swap_12, sync_add<mode>): Likewise.
17036 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
17037 (sync_new_<optab>_12, sync_nand_12): Likewise.
17038 (sync_old_nand_12, sync_new_nand_12): Likewise.
17039 (sync_sub<mode>, sync_old_add<mode>): Likewise.
17040 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
17041 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
17042 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
17043 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
17044 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
17045 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
17046 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
17047 * doc/md.texi (ZC): Update description.
17049 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
17051 * builtins.c (expand_builtin_atomic_exchange): Remove error when
17052 memory model is CONSUME.
17053 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
17054 expand_builtin_atomic_store): Change invalid memory model errors to
17056 (expand_builtin_atomic_clear): Change invalid model errors to warnings
17057 and issue warning for CONSUME.
17059 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
17061 * lto-cgraph: Update function comments for
17062 lto_symtab_encoder_encode_*.
17064 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
17066 * Makefile.in (site.exp): Do not set ENABLE_LTO.
17068 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
17070 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
17071 * lto-cgraph.c (select_what_to_stream): Remove argument, use
17072 lto_stream_offload_p instead.
17073 * lto-streamer.h (select_what_to_stream): Remove argument.
17074 * passes.c (ipa_write_summaries): Likewise.
17075 * tree-pass.h (ipa_write_summaries): Likewise.
17077 2015-01-14 Richard Biener <rguenther@suse.de>
17079 PR tree-optimization/59354
17080 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
17081 groups larger than the slp group size as having gaps.
17083 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
17085 PR middle-end/59448
17086 * builtins.c (get_memmodel): Promote consume to acquire always.
17088 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
17091 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
17094 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
17097 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
17099 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
17100 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
17101 AVX512VBMI, as it implies AVX512BW.
17103 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
17106 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
17107 (vec_unpacks_hi_v16sf): Ditto.
17109 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17111 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
17114 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17116 * doc/invoke.texi (mapcs): Mention deprecation.
17117 (mapcs-frame): Likewise.
17119 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
17122 * config/arm/arm.c (callee_saved_reg_p): Define.
17123 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
17124 register is callee saved instead of !call_used_regs[reg].
17125 (thumb1_compute_save_reg_mask): Likewise.
17127 2015-01-14 Hale Wang <hale.wang@arm.com>
17129 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
17132 2015-01-14 Richard Biener <rguenther@suse.de>
17135 * tree-inline.c (insert_debug_decl_map): Check destination
17136 function MAY_HAVE_DEBUG_STMTS.
17137 (insert_init_debug_bind): Likewise.
17138 (insert_init_stmt): Remove redundant check.
17139 (remap_gimple_stmt): Drop debug stmts if the destination
17140 function has var-tracking assignments disabled.
17142 2015-01-14 Martin Liska <mliska@suse.cz>
17144 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
17145 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
17147 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17150 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
17151 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
17153 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
17155 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
17156 level from an ARCH; do not inject the default.
17157 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
17158 MIPS_ISA_LEVEL_SPEC.
17159 (MIPS_ISA_NAN2008_SPEC): Update comment.
17160 (BASE_DRIVER_SELF_SPECS): Likewise.
17161 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
17162 MIPS_DEFAULT_ISA_LEVEL_SPEC.
17163 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
17164 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
17165 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
17167 2015-01-14 Richard Biener <rguenther@suse.de>
17169 PR tree-optimization/64493
17170 PR tree-optimization/64495
17171 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
17172 assign the proper vectorized PHI to the inner loop exit PHIs.
17174 2015-01-14 Joey Ye <joey.ye@arm.com>
17176 * config/arm/arm.c (arm_compute_save_reg_mask):
17177 Do not save lr in case of tail call.
17178 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
17180 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
17182 * tree-vrp.c (check_array_ref): Emit more warnings
17183 for warn_array_bounds >= 2.
17184 * common.opt: New option -Warray-bounds=.
17185 * doc/invoke.texi: Document -Warray-bounds=.
17187 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
17189 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
17190 (mforbid-fp-as-gp): Remove.
17192 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
17193 (nds32_symbol_load_store_p): Remove.
17194 (nds32_fp_as_gp_check_available): Clean up implementation.
17195 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
17197 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
17198 fp-as-gp and ex9 cases.
17200 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
17202 * tree-profile.c (init_ic_make_global_vars): Drop workaround
17203 for bintuils bug 14342.
17204 (init_ic_make_global_vars): Likewise.
17205 (gimple_init_edge_profiler): Likewise.
17206 (gimple_gen_ic_func_profiler): Likewise.
17208 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17210 * ipa-inline.c (inline_small_functions): Swap the operands in
17213 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
17216 * ipa-inline-analysis.c (node_growth_cache): Remove.
17217 (initialize_growth_caches): Do not initialize it.
17218 (free_growth_caches): Do not free it.
17219 (do_estimate_growth): Rename to ...
17220 (estimate_growth): ... this one; drop growth cache code.
17221 (growth_likely_positive): Always go the heuristics way.
17222 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
17223 (reset_edge_caches): Do not reset node growth.
17224 (heap_edge_removal_hook): Do not maintain cache.
17225 (inline_small_functions): Likewise; strenghten sanity check.
17226 (ipa_inline): Do not maintain caches.
17227 * ipa-inline.h (node_growth_cache): Remove.
17228 (do_estimate_growth): Remove to ...
17229 (estimate_growth): this one; remove inline version.
17230 (reset_node_growth_cache): Remove.
17232 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
17235 * ipa-inline.c (inline_small_functions): Update callee keys after
17236 resolving speculation
17237 (inline_small_functions): Always check monotonicity of the queue.
17239 2015-01-13 Marek Polacek <polacek@redhat.com>
17241 PR middle-end/64391
17242 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
17244 2015-01-13 Jakub Jelinek <jakub@redhat.com>
17246 PR rtl-optimization/64286
17247 * ree.c (combine_reaching_defs): Move part of comment earlier,
17248 remove !SCALAR_INT_MODE_P check.
17249 (add_removable_extension): Don't add vector mode
17250 extensions if all uses of the source register aren't the same
17253 2015-01-13 Renlin Li <renlin.li@arm.com>
17255 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
17256 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
17258 2015-01-13 Martin Liska <mliska@suse.cz>
17260 * ipa-icf.c (sem_function::equals_private): Call new functions
17261 cl_target_option_print_diff and cl_optimization_print_diff.
17262 * optc-save-gen.awk (cl_target_option_print_diff): New function.
17263 (cl_optimization_print_diff): Likewise.
17264 * opth-gen.awk: Likewise.
17266 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
17268 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
17269 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
17270 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
17271 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
17272 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
17273 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
17275 2015-01-13 Andrew Pinski <apinski@cavium.com>
17277 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
17278 instead of src mode.
17280 2015-01-13 Richard Biener <rguenther@suse.de>
17283 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
17286 2015-01-13 Andrew Pinski <apinski@cavium.com>
17288 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
17290 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
17292 2015-01-13 Jakub Jelinek <jakub@redhat.com>
17294 PR middle-end/63974
17295 * cfgexpand.c (expand_computed_goto): Don't call
17296 convert_memory_address here.
17298 2015-01-13 Richard Biener <rguenther@suse.de>
17300 PR tree-optimization/64406
17301 * tree-loop-distibution.c (pass_loop_distribution::execute):
17302 Reset the SCEV hashtable if we distributed anything.
17304 2015-01-13 Richard Biener <rguenther@suse.de>
17306 PR tree-optimization/64404
17307 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
17308 SLP types for CSEd loads.
17310 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
17312 PR tree-optimization/64436
17313 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
17314 merge of two symbolic numbers for a bitwise OR to ...
17315 (perform_symbolic_merge): This. Also fix computation of the range and
17316 end of the symbolic number corresponding to the result of a bitwise OR.
17318 2015-01-13 Richard Biener <rguenther@suse.de>
17320 PR tree-optimization/64568
17321 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
17322 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
17324 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
17326 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
17327 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
17329 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
17331 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
17332 target-specific symbol_ref flag.
17333 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
17334 resides in rodata section.
17335 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
17336 (nds32_encode_section_info): New function.
17338 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
17340 * config/nds32/nds32.md (call): Use pseudo instruction bal which
17341 clobbers TA_REGNUM if large code model is specified.
17342 (call_register): Likewise.
17343 (call_immediate): Likewise.
17344 (call_value): Likewise.
17345 (call_value_register): Likewise.
17346 (call_value_immediate): Likewise.
17348 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
17350 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
17351 (TARGET_CMODEL_MEDIUM): New macro.
17352 (TARGET_CMODEL_LARGE): New macro.
17353 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
17354 code model setting in assembly code.
17356 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
17358 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
17359 Remove MASK_GP_DIRECT flag.
17360 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
17361 one of the multilib default options.
17362 * config/nds32/nds32.opt (mgp-direct): Remove.
17363 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
17364 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
17366 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
17368 * config/nds32/nds32.opt (mcmodel): Add new option.
17369 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
17370 to describe code model.
17372 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
17375 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
17377 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
17379 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
17380 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
17381 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
17382 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
17383 __builtin_sh_set_fpscr.
17385 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
17387 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
17388 after a funtion name just to indicate it is a function.
17389 ([-fsanitize-undefined-trap-on-error]): Likewise.
17390 ([-fdbg-cnt=]): Likewise.
17391 ([-mmemcpy]): Likewise.
17392 ([-mflush-func]): Likewise.
17393 ([-msynci]): Likewise.
17395 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
17397 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
17400 2015-01-12 Jakub Jelinek <jakub@redhat.com>
17402 PR tree-optimization/64563
17403 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
17404 instead of != VR_VARYING.
17407 * config/i386/i386.c (ix86_expand_prologue): Add
17408 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
17410 PR tree-optimization/64454
17411 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
17412 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
17413 for signed or [0, op1 - 1] for unsigned modulo.
17414 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
17415 even if op1 does not satisfy integer_pow2p.
17418 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
17420 2015-01-12 Jeff Law <law@redhat.com>
17423 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
17424 (trunchiqi2, truncsihi2): Similarly.
17426 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
17427 rather than calling F.
17429 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
17431 * tsan.c (instrument_expr): Use force_gimple_operand.
17432 Use may_be_nonaddressable_p instead of is_gimple_addressable.
17434 2015-01-12 Richard Biener <rguenther@suse.de>
17436 PR tree-optimization/64530
17437 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
17440 2015-01-12 Richard Biener <rguenther@suse.de>
17442 PR middle-end/64357
17443 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
17446 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17448 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
17449 Cortex-A17 tuning parameters.
17450 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
17452 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17454 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
17455 * config/arm/arm.c (arm_macro_fusion_p): New function.
17456 (arm_macro_fusion_pair_p): Likewise.
17457 (TARGET_SCHED_MACRO_FUSION_P): Define.
17458 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
17459 (ARM_FUSE_NOTHING): Likewise.
17460 (ARM_FUSE_MOVW_MOVT): Likewise.
17461 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
17462 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
17463 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
17464 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
17465 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
17466 arm_cortex_a5_tune): Specify fuseable_ops value.
17468 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
17471 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
17472 test for PIE with copy reloc.
17473 * configure: Regenerated.
17475 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17477 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
17479 (arm_tls_descseq_addr): Likewise.
17480 (arm_gen_movmemqi): Likewise.
17481 (arm_expand_epilogue_apcs_frame): Likewise.
17482 (arm_expand_epilogue): Likewise.
17483 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
17486 2015-01-12 Martin Liska <mliska@suse.cz>
17489 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
17490 volatility for correct operands.
17492 2015-01-12 Martin Liska <mliska@suse.cz>
17494 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
17495 indication that a function is not leaf.
17496 (sem_function::compare_polymorphic_p): Likewise.
17498 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17500 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
17501 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
17502 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
17503 fold-const.h, tree-check.h.
17505 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
17509 * ipa-inline.c (compute_uninlined_call_time,
17510 compute_inlined_call_time): Use counts for extra precision when
17512 (big_speedup_p): Fix formating.
17513 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
17514 (relative_time_benefit): Remove.
17515 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
17516 merge guessed and read profile paths.
17517 (inline_small_functions): Count only !optimize_size functions into
17518 initial size; be more lax about sanity check when profile is used;
17519 be sure to update inlined function profile when profile is read.
17521 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
17524 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
17525 cost when edge becomes direct.
17526 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
17527 is resolved or when introducing new speculation.
17529 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
17533 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
17534 '||' to fix typo issue.
17536 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
17537 accept and return NULL.
17539 2015-01-12 Martin Liska <mliska@suse.cz>
17541 * cgraph.c (cgraph_edge::remove_callee): Move function to header
17542 file for being inlined.
17543 (cgraph_set_edge_callee): Delete.
17544 (cgraph_edge::redirect_callee): Move function to header file
17546 (cgraph_edge::make_direct): Use new function.
17547 (cgraph_edge::dump_edge_flags): New function created from
17548 static dump_edge_flags function.
17549 (cgraph_node::dump): Use new function.
17550 (cgraph_edge::verify_count_and_frequency): New function created
17551 from verify_edge_count_and_frequency.
17552 (cgraph_edge::verify_corresponds_to_fndecl): New function created
17553 from verify_edge_corresponds_to_fndecl.
17554 (verify_edge_corresponds_to_fndecl): Delete.
17555 (cgraph_node::verify_node): Use new function.
17556 * cgraph.h (cgraph_edge::set_callee): New function.
17557 (cgraph_edge::dump_edge_flags): Likewise.
17558 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
17560 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
17562 * ipa-utils.c (estimate_function_body_sizes): Do not
17563 free node params when called late with early=true.
17565 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
17567 * doc/md.texi (Instruction Patterns): Rewrite text for
17569 (Example): Likewise.
17571 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
17573 * doc/invoke.texi (Option Summary): Break long lines.
17574 [(-fdiagnostics-color)]: Put long literal in @smallexample
17576 [(-fsanitize-recover)]: Likewise.
17577 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
17578 [(-ffast-math)]: Likewise.
17579 [(--param max-inline-insns-recursive)]: Likewise.
17580 [(--param max-inline-recursive-depth)]: Likewise.
17581 [(-mno-text-section-literals)]: Likewise.
17583 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
17585 * doc/install.texi: Update for libgomp being renamed from "GNU
17586 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
17588 * doc/sourcebuild.texi: Likewise.
17590 2015-01-10 Anthony Green <green@moxielogic.com>
17592 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
17593 mul.x availability for moxiebox configuration.
17595 2015-01-09 Anthony Green <green@moxielogic.com>
17597 * config/moxie/moxie.md: Tabify assembly output.
17599 2015-01-09 Anthony Green <green@moxielogic.com>
17601 * config/moxie/moxie.md (CC_REG): Correct register definition.
17603 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
17605 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
17606 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
17609 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
17611 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
17613 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
17614 Jakub Jelinek <jakub@redhat.com>
17616 PR middle-end/64412
17617 * lto-streamer.h (lto_stream_offload_p): New declaration.
17618 * lto-streamer.c (lto_stream_offload_p): New variable.
17619 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
17620 at the same time as section_name_prefix.
17621 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
17622 if lto_stream_offload_p.
17623 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
17624 stream TREE_TARGET_OPTION if lto_stream_offload_p.
17625 (write_ts_function_decl_tree_pointers): Don't
17626 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
17627 * tree-streamer-in.c (unpack_value_fields): Don't stream
17628 TREE_TARGET_OPTION in if ACCEL_COMPILER.
17629 (lto_input_ts_function_decl_tree_pointers): Don't stream
17630 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
17631 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
17632 instead of section_name_prefix string comparisons.
17634 2015-01-09 Jakub Jelinek <jakub@redhat.com>
17636 PR rtl-optimization/64536
17637 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
17640 2015-01-09 Michael Collison <michael.collison@linaro.org>
17642 PR tree-optimization/64322
17643 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
17644 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
17646 2015-01-09 Tom de Vries <tom@codesourcery.com>
17648 PR rtl-optimization/64539
17649 * regcprop.c (kill_clobbered_values): Factor out of ...
17650 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
17651 instead of note_stores with kill_clobbered_value.
17653 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
17655 * ginclude/unwind-arm-common.h: Revert previous commit.
17657 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
17659 * config.gcc (arm*-*-freebsd*): New configuration.
17660 * config/arm/freebsd.h: New file.
17661 * config.host: Add extra components for arm*-*-freebsd*.
17662 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
17663 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
17665 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
17667 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
17669 * config/rs6000/t-rtems: Add e6500 multilibs.
17671 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
17673 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
17676 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
17678 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
17679 MULTILIB_EXCEPTIONS.
17681 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
17683 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
17684 MULTILIB_EXCEPTIONS.
17686 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
17688 * config/arm/t-rtems-eabi: Rename to...
17689 * config/arm/t-rtems: ...this.
17690 * config/arm/rtems-eabi.h: Rename to...
17691 * config/arm/rtems.h: ...this.
17692 * config.gcc (arm*-*-rtems*): Reflect changes above.
17694 2015-01-09 Richard Biener <rguenther@suse.de>
17696 PR tree-optimization/64410
17697 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
17699 (execute_update_addresses_taken): Deal with that.
17700 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
17701 loads/stores for complex variables.
17703 2015-01-09 Martin Liska <mliska@suse.cz>
17705 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
17707 (func_checker::compare_memory_operand): New function.
17708 (func_checker::compare_operand): Split case to newly
17710 (func_checker::compare_cst_or_decl): New function.
17711 (func_checker::compare_gimple_call): Identify
17713 (func_checker::compare_gimple_assign): Likewise.
17714 * ipa-icf-gimple.h: New function.
17716 2015-01-09 Martin Liska <mliska@suse.cz>
17719 * sreal.c (sreal::dump): Change unsigned format to signed for
17721 (sreal::to_double): Replace exp2 with scalbln.
17723 2015-01-09 Martin Liska <mliska@suse.cz>
17725 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
17726 * ipa-icf.c (sem_function::equals_private): Add support for target and
17727 (sem_item_optimizer::merge_classes): Remove redundant function
17728 optimization flags comparison.
17729 * tree.h (target_opts_for_fn): New function.
17731 2015-01-09 Tom de Vries <tom@codesourcery.com>
17733 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
17735 2015-01-09 Kito Cheng <kito@0xlab.org>
17737 PR rtl-optimization/64348
17738 * lra-constraints.c (split_reg): Fix caller-save store/restore
17739 instruction generation.
17741 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
17743 PR gcov-profile/61790
17744 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
17745 long long. Fallback to int64_t if host doesn't have long long and
17746 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
17748 2015-01-08 Jakub Jelinek <jakub@redhat.com>
17750 PR tree-optimization/63989
17751 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
17752 from 1000 to 10000.
17753 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
17754 (get_stridx): If we don't have a record for certain SSA_NAME,
17755 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
17756 constant offset, call get_stridx_plus_constant.
17757 (get_stridx_plus_constant): New function.
17758 (zero_length_string): Don't use get_stridx here.
17761 PR middle-end/64388
17762 * dse.c (struct insn_info): Mention frame_read set also
17763 before reload for tail calls on some targets.
17764 (scan_insn): Revert 2014-12-22 change. Set frame_read
17765 also before reload for tail calls if
17766 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
17767 instead of add_non_frame_wild_read for non-const/memset
17768 tail calls after reload.
17770 2015-01-08 Jason Merrill <jason@redhat.com>
17772 * ubsan.c (do_ubsan_in_current_function): New.
17773 (pass_ubsan::gate): Use it.
17774 * ubsan.h: Declare it.
17775 * convert.c (convert_to_integer): Use it.
17777 2015-01-08 Jakub Jelinek <jakub@redhat.com>
17780 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
17781 compare_code when it is unconditionally overwritten afterwards.
17782 Use ix86_reverse_condition instead of reverse_condition. Don't
17783 change code if *reverse_condition* returned UNKNOWN and don't
17784 swap ct/cf and negate diff in that case.
17786 2015-01-08 Mike Stump <mikestump@comcast.net>
17788 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
17789 (pass_tsan_O0::gate): Likewise.
17790 * extend.texi (Function Attributes): Add no_sanitize_thread
17793 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
17795 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
17796 for registering builtins.
17797 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
17798 add -fopenmp to the argv_obstack used when invoking
17799 compile_for_target.
17801 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
17802 add "-m32" or "-m64" to argv_obstack.
17803 (generate_host_descr_file): Likewise, when invoking host_compiler.
17804 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
17807 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
17809 * config/sh/sh-mem.cc: Use constant as second operand when emitting
17812 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
17815 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
17816 constant load if constant operand fits into I08.
17818 2015-01-08 Jakub Jelinek <jakub@redhat.com>
17821 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
17822 and TREE_THIS_VOLATILE for MEM_REFs.
17823 (build5_stat): Fix up initialization of TREE_READONLY and
17824 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
17826 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
17829 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
17830 of r for the second alternative of the destination operand.
17832 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
17835 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
17837 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
17839 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
17841 ([-fivar-visibility], [-fvisibility]): Likewise.
17843 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
17845 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
17846 the file where @code, @command, etc is more appropriate.
17848 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
17850 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
17851 of -mrecip= documentation.
17853 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
17856 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
17857 correct reload handler if -m32 -mpowerpc64 is used.
17859 2015-01-06 Tom de Vries <tom@codesourcery.com>
17861 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
17863 2015-01-08 Christian Bruel <christian.bruel@st.com>
17866 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
17868 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
17870 PR tree-optimization/63259
17871 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
17872 if optab exists for 16bit byteswap.
17874 2015-01-06 Jakub Jelinek <jakub@redhat.com>
17876 * opts.c (common_handle_option): Add support for
17877 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
17878 * doc/invoke.texi: Document -fno-sanitize=all,
17879 -f{,no-}sanitize-recover=all. Document that
17880 -fsanitize=float-cast-overflow is not enabled
17881 by -fsanitize=undefined. Fix up documentation
17882 of -f{,no-}sanitize-recover.
17884 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
17886 * config.gcc: Add Visium support.
17887 * configure.ac: Likewise.
17888 * configure: Regenerate.
17889 * doc/extend.texi (interrupt attribute): Add Visium.
17890 * doc/invoke.texi: Document Visium options.
17891 * doc/install.texi: Document Visium target.
17892 * doc/md.texi: Document Visium constraints.
17893 * common/config/visium: New directory.
17894 * config/visium: Likewise.
17896 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
17898 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
17899 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
17901 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
17903 * combine.c (combine_validate_cost): Do not count the cost of a
17904 split I2 twice. Do not display it twice in the dump, either.
17906 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
17908 Revert parts of r219199.
17909 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
17911 ([-Wtraditional]): Restore markup on <limits.h>.
17913 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
17916 * doc/invoke.texi: Document -Wsuggest-override.
17918 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
17920 PR rtl-optimization/64287
17921 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
17922 (process_options): Disable flag_ipa_ra if profiling.
17924 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
17926 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
17928 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
17930 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
17931 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
17932 put under #if TARGET_LOOPS guard.
17934 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
17936 * config/i386/i386.c (output_387_binary_op): Use std::swap.
17938 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
17940 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
17941 * rtl.h (refers_to_regno_p): Add overload.
17943 * bt-load.c: Likewise.
17944 * combine.c: Likewise.
17945 * df-scan.c: Likewise.
17946 * sched-deps.c: Likewise.
17947 * config/s390/s390.c: Likewise.
17948 * config/m32r/m32r.c: Likewise.
17949 * config/rs6000/spe.md: Likewise.
17950 * config/rs6000/rs6000.c: Likewise.
17951 * config/pa/pa.c: Likewise.
17952 * config/stormy16/stormy16.c: Likewise.
17953 * config/cris/cris.c: Likewise.
17954 * config/arc/arc.md: Likewise.
17955 * config/arc/arc.c: Likewise.
17956 * config/sh/sh.md: Likewise.
17957 * config/sh/sh.c: Likewise.
17958 * config/frv/frv.c: Likewise.
17960 2015-01-05 Jakub Jelinek <jakub@redhat.com>
17963 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
17964 call as cleanup of the whole body.
17965 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
17966 * tsan.c (replace_func_exit): New function.
17967 (instrument_func_exit): Moved earlier.
17968 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
17969 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
17971 (tsan_pass): Don't call instrument_func_exit.
17972 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
17973 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
17977 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
17978 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
17979 it to libubsan handler instead of EXPR. Fold comparisons earlier,
17980 if the result is integer_zerop, return NULL_TREE.
17981 * convert.c (convert_to_integer): Pass expr as ARG.
17983 PR tree-optimization/64465
17984 * tree-inline.c (redirect_all_calls): During inlining
17985 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
17986 changed the stmt to a non-throwing call.
17988 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
17990 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
17991 etc markup throughout the file.
17993 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
17995 Enable experimental TSAN support for Ada.
17996 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
17998 2015-01-05 Jakub Jelinek <jakub@redhat.com>
18000 PR tree-optimization/64494
18001 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
18002 clear SSA_NAME_ANTI_RANGE_P flag.
18004 2015-01-05 Marek Polacek <polacek@redhat.com>
18006 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
18008 2015-01-05 Jakub Jelinek <jakub@redhat.com>
18010 Update copyright years.
18012 * gcc.c (process_command): Update copyright notice dates.
18013 * gcov-dump.c: Ditto.
18015 * doc/cpp.texi: Bump @copying's copyright year.
18016 * doc/cppinternals.texi: Ditto.
18017 * doc/gcc.texi: Ditto.
18018 * doc/gccint.texi: Ditto.
18019 * doc/gcov.texi: Ditto.
18020 * doc/install.texi: Ditto.
18021 * doc/invoke.texi: Ditto.
18023 * auto-profile.c, auto-profile.h: Fix up Copyright line.
18025 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
18027 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
18029 ([-fvtable-verify], [-fvtv-debug]): Likewise.
18030 ([-Wabi]): Likewise.
18031 ([-fmessage-length]): Likewise.
18032 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
18033 ([-Wno-discarded-qualifiers]): Likewise.
18034 ([-Wnodiscarded-array-qualifiers]): Likewise.
18035 ([-Wno-virtual-move-assign]): Likewise.
18036 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
18037 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
18038 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
18039 ([-fsanitize-undefined-trap-on-error]): Likewise.
18040 ([-floop-interchange]): Likewise.
18041 ([-ftree-coalesce-inlined-vars]): Likewise.
18042 ([-fvect-cost-model]): Likewise.
18043 ([-flto]): Likewise.
18044 ([--param]): Likewise.
18045 (Spec Files): Likewise.
18046 ([-mstrict-align]): Likewise.
18047 ([-mfix-cortex-a53-835769]): Likewise.
18048 ([-march], [-mtune]): Likewise.
18049 ([-mpic-register]): Likewise.
18050 ([-munaligned-access]): Likewise.
18051 ([-msp8]): Likewise.
18052 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
18053 (AVR Built-in Macros): Likewise.
18054 ([-mpreferred-stack-boundary]): Likewise.
18055 ([-mtune-crtl]): Likewise.
18056 ([-mashf]): Likewise.
18057 ([-mmcu=]): Likewise.
18058 ([-minrt]): Likewise.
18059 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
18060 ([-mupper-regs]): Likewise.
18061 ([-matomic-model]): Likewise.
18062 ([-mdiv]): Likewise.
18063 ([-mzdcbranch]): Likewise.
18064 ([-mdisable-callt]): Likewise.
18065 ([-msoft-float]): Likewise.
18066 ([-m8byte-align]): Likewise.
18067 ([-fstack-reuse]): Likewise.
18069 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
18071 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
18072 Fix markup, light copy-editing.
18073 ([-fauto-profile]): Rewrite to fix formatting and content
18076 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
18078 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
18079 Copy-edit description.
18080 ([-fisolate-erroneous-paths-attribute]): Likewise.
18081 * common.opt (fisolate-erroneous-paths-dereference):
18082 Copy-edit description.
18083 (fisolate-erroneous-paths-attribute): Likewise.
18085 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
18087 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
18090 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
18092 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
18093 ([-fvtv-debug]): Likewise.
18094 ([-Wc++-compat]): Likewise.
18095 ([-Wc++11-compat]): Likewise.
18096 ([-Wc++14-compat]): Likewise.
18097 ([-Wno-sized-deallocation]): Likewise.
18098 ([-femit-class-debug-always]): Likewise.
18099 ([-femit-struct-debug-detailed]): Likewise.
18100 ([-fno-keep-inline-dllexport]): Likewise.
18101 ([-fira-algorithm]): Likewise.
18102 ([-fira-region]): Likewise.
18103 ([-flra-remat]): Likewise.
18104 ([-fipa-ra]): Likewise.
18105 ([-fhoist-adjacent-loads]): Likewise.
18106 ([-fisolate-erroneous-paths-dereference]): Likewise.
18107 ([-fisolate-erroneous-paths-attribute]): Likewise.
18108 ([-ftree-switch-conversion]): Likewise.
18109 ([-ftree-tail-merge]): Likewise.
18110 ([-ftree-loop-if-convert]): Likewise.
18111 ([-ftree-loop-if-convert-stores]): Likewise.
18112 ([-ftree-loop-distribution]): Likewise.
18113 ([-ftree-loop-distribute-patterns]): Likewise.
18114 ([-flto-compression-level]): Likewise.
18115 ([-flto-report]): Likewise.
18116 ([-flto-report-wpa]): Likewise.
18117 ([-fuse-linker-plugin]): Likewise.
18118 ([-mfix-cortex-a53-835769]): Likewise.
18119 ([-mno-fix-cortex-a53-835769]): Likewise.
18120 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
18121 explicit listing; add a note to the discussion indicating they
18122 exist. Reorder table to group similar options. Add missing
18123 @opindex entries. Add @need commands throughout the table to
18124 allow it to be split across multiple pages.
18125 ([-m8bit-idiv]): Fix @opindex.
18126 ([-mavx256-split-unaligned-load]): Likewise.
18127 ([-mavx256-split-unaligned-store]): Likewise.
18128 ([-mstack-protector-guard]): Likewise.
18129 ([-mcpu=]): Likewise.
18130 ([-mcpu]): Likewise.
18131 ([-mpointer-size=]): Likewise.
18133 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
18135 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
18136 instead of `m' constraint. Likewise for unnamed movb comparison
18137 patterns using reg_before_reload_operand predicate.
18138 * config/pa/predicates.md (reg_before_reload_operand): Tighten
18139 predicate to reject register index and LO_SUM DLT memory forms
18142 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
18144 * doc/invoke.texi (Option Summary): Fix spelling of
18145 -fdevirtualize-at-ltrans.
18146 ([-fdevirtualize]): Fix markup.
18147 ([-fdevirtualize-speculatively]): Fix typo.
18148 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
18149 implementor-speaky.
18150 * common.opt (fdevirtualize-at-ltrans): Likewise.
18151 * ipa-devirt.c: Fix typos in comments throughout the file.
18152 (ipa_devirt): Fix typos in format strings for dump output.
18154 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
18156 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
18157 discussion of defaults, light copy-editing.
18159 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
18161 * tsan.c (instrument_expr): corrected previous checkin.
18163 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
18165 Instrument bit field and unaligned accesses for TSAN.
18166 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
18167 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
18168 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
18169 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
18170 unaligned memory regions.
18172 2015-01-01 Anthony Green <green@moxielogic.com>
18174 * config/moxie/predicates.md (moxie_general_movsrc_operand):
18175 Restrict move source register offsets to 16 bits.
18177 Copyright (C) 2015 Free Software Foundation, Inc.
18179 Copying and distribution of this file, with or without modification,
18180 are permitted in any medium without royalty provided the copyright
18181 notice and this notice are preserved.